*** empty log message ***
[emacs.git] / configure
blob1cf5f21d0b200a6db7789ccf066a6efbde7599df
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 GZIP_PROG EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS 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-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
903 _ACEOF
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 cd "$ac_popdir"
992 done
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1013 $ $0 $@
1015 _ACEOF
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1039 _ASUNAME
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1049 } >&5
1051 cat >&5 <<_ACEOF
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1058 _ACEOF
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1073 for ac_arg
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1120 echo
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 esac;
1143 echo
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1244 done
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath='${locallisppath}:${lispdir}'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1364 gameuser=games
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1381 else :
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1457 esac
1458 with_x_toolkit=$val
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 canonical=$host
1685 configuration=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 i[3456]86-*-freebsd*) machine=intel386 ;;
1721 esac
1724 ## NetBSD ports
1725 *-*-netbsd* )
1726 opsys=netbsd
1727 if test -f /usr/lib/crti.o; then
1729 cat >>confdefs.h <<\_ACEOF
1730 #define HAVE_CRTIN
1731 _ACEOF
1735 case "${canonical}" in
1736 alpha*-*-netbsd*) machine=alpha ;;
1737 i[3456]86-*-netbsd*) machine=intel386 ;;
1738 m68k-*-netbsd*)
1739 # This is somewhat bogus.
1740 machine=hp9000s300 ;;
1741 powerpc-apple-netbsd*) machine=macppc ;;
1742 mips-*-netbsd*) machine=pmax ;;
1743 mipsel-*-netbsd*) machine=pmax ;;
1744 mipseb-*-netbsd*) machine=pmax ;;
1745 ns32k-*-netbsd*) machine=ns32000 ;;
1746 powerpc-*-netbsd*) machine=macppc ;;
1747 sparc*-*-netbsd*) machine=sparc ;;
1748 vax-*-netbsd*) machine=vax ;;
1749 arm-*-netbsd*) machine=arm ;;
1750 esac
1753 ## OpenBSD ports
1754 *-*-openbsd* )
1755 opsys=openbsd
1756 case "${canonical}" in
1757 alpha*-*-openbsd*) machine=alpha ;;
1758 i386-*-openbsd*) machine=intel386 ;;
1759 m68k-*-openbsd*) machine=hp9000s300 ;;
1760 mipsel-*-openbsd*) machine=pmax ;;
1761 ns32k-*-openbsd*) machine=ns32000 ;;
1762 sparc-*-openbsd*) machine=sparc ;;
1763 vax-*-openbsd*) machine=vax ;;
1764 esac
1767 ## LynxOS ports
1768 *-*-lynxos* )
1769 opsys=lynxos
1770 case "${canonical}" in
1771 i[3456]86-*-lynxos*) machine=intel386 ;;
1772 powerpc-*-lynxos*) machine=powerpc ;;
1773 esac
1776 ## Acorn RISCiX:
1777 arm-acorn-riscix1.1* )
1778 machine=acorn opsys=riscix1-1
1780 arm-acorn-riscix1.2* | arm-acorn-riscix )
1781 ## This name is riscix12 instead of riscix1.2
1782 ## to avoid a file name conflict on MSDOS.
1783 machine=acorn opsys=riscix12
1786 ## BSDI ports
1787 *-*-bsdi* )
1788 opsys=bsdi
1789 case "${canonical}" in
1790 i[345]86-*-bsdi*) machine=intel386 ;;
1791 sparc-*-bsdi*) machine=sparc ;;
1792 powerpc-*-bsdi*) machine=macppc ;;
1793 esac
1794 case "${canonical}" in
1795 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1796 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1797 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1798 *-*-bsdi3* ) opsys=bsdos3 ;;
1799 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1800 esac
1803 ## Alliant machines
1804 ## Strictly speaking, we need the version of the alliant operating
1805 ## system to choose the right machine file, but currently the
1806 ## configuration name doesn't tell us enough to choose the right
1807 ## one; we need to give alliants their own operating system name to
1808 ## do this right. When someone cares, they can help us.
1809 fx80-alliant-* )
1810 machine=alliant4 opsys=bsd4-2
1812 i860-alliant-* )
1813 machine=alliant-2800 opsys=bsd4-3
1816 ## Alpha (DEC) machines.
1817 alpha*-dec-osf* )
1818 machine=alpha opsys=osf1
1819 # This is needed to find X11R6.1 libraries for certain tests.
1820 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1821 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1822 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1823 # due to non-traditional preprocessing with the current compiler
1824 # defaults. OSF 4 can also have that compiler version, and there
1825 # seems always to have been a usable /usr/bin/cpp.
1826 NON_GNU_CPP=/usr/bin/cpp
1827 case "${canonical}" in
1828 alpha*-dec-osf[5-9]*)
1829 opsys=osf5-0 ;;
1830 esac
1833 alpha*-*-linux-gnu* )
1834 machine=alpha opsys=gnu-linux
1837 arm*-*-linux-gnu* )
1838 machine=arm opsys=gnu-linux
1841 ## Altos 3068
1842 m68*-altos-sysv* )
1843 machine=altos opsys=usg5-2
1846 ## Amdahl UTS
1847 580-amdahl-sysv* )
1848 machine=amdahl opsys=usg5-2-2
1851 ## Apollo, Domain/OS
1852 m68*-apollo-* )
1853 machine=apollo opsys=bsd4-3
1856 ## AT&T 3b2, 3b5, 3b15, 3b20
1857 we32k-att-sysv* )
1858 machine=att3b opsys=usg5-2-2
1861 ## AT&T 3b1 - The Mighty Unix PC!
1862 m68*-att-sysv* )
1863 machine=7300 opsys=usg5-2-2
1866 ## Bull dpx20
1867 rs6000-bull-bosx* )
1868 machine=ibmrs6000 opsys=aix3-2
1871 ## Bull dpx2
1872 m68*-bull-sysv3* )
1873 machine=dpx2 opsys=usg5-3
1876 ## Bull sps7
1877 m68*-bull-sysv2* )
1878 machine=sps7 opsys=usg5-2
1881 ## CCI 5/32, 6/32 -- see "Tahoe".
1883 ## Celerity
1884 ## I don't know what configuration name to use for this; config.sub
1885 ## doesn't seem to know anything about it. Hey, Celerity users, get
1886 ## in touch with us!
1887 celerity-celerity-bsd* )
1888 machine=celerity opsys=bsd4-2
1891 ## Clipper
1892 ## What operating systems does this chip run that Emacs has been
1893 ## tested on?
1894 clipper-* )
1895 machine=clipper
1896 ## We'll use the catch-all code at the bottom to guess the
1897 ## operating system.
1900 ## Compaq Nonstop
1901 mips-compaq-nonstopux* )
1902 machine=nonstopux opsys=nonstopux
1905 ## Convex
1906 *-convex-bsd* | *-convex-convexos* )
1907 machine=convex opsys=bsd4-3
1908 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1909 NON_GNU_CPP="cc -E -P"
1912 ## Cubix QBx/386
1913 i[3456]86-cubix-sysv* )
1914 machine=intel386 opsys=usg5-3
1917 ## Cydra 5
1918 cydra*-cydrome-sysv* )
1919 machine=cydra5 opsys=usg5-3
1922 ## Data General AViiON Machines
1923 ## DG changed naming conventions with the release of 5.4.4.10, they
1924 ## dropped the initial 5.4 but left the intervening R. Because of the
1925 ## R this shouldn't conflict with older versions of the OS (which I
1926 ## think were named like dgux4.*). In addition, DG new AViiONs series
1927 ## uses either Motorola M88k or Intel Pentium CPUs.
1928 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1929 machine=aviion opsys=dgux4
1931 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1932 ## This name is dgux5-4-3 instead of dgux5-4r3
1933 ## to avoid a file name conflict on MSDOS.
1934 machine=aviion opsys=dgux5-4-3
1936 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1937 machine=aviion opsys=dgux5-4r2
1939 m88k-dg-dgux* )
1940 machine=aviion opsys=dgux
1943 ## Data General AViiON Intel (x86) Machines
1944 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1945 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1946 i[345]86-dg-dguxR4* )
1947 machine=aviion-intel opsys=dgux4
1950 ## DECstations
1951 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1952 machine=pmax opsys=bsd4-2
1954 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1955 machine=pmax opsys=bsd4-3
1957 mips-dec-ultrix* )
1958 machine=pmax opsys=ultrix4-3
1960 mips-dec-osf* )
1961 machine=pmax opsys=osf1
1963 mips-dec-mach_bsd4.3* )
1964 machine=pmax opsys=mach-bsd4-3
1967 ## Motorola Delta machines
1968 m68k-motorola-sysv* | m68000-motorola-sysv* )
1969 machine=delta opsys=usg5-3
1970 if test -z "`type gnucc | grep 'not found'`"
1971 then
1972 if test -s /etc/167config
1973 then CC="gnucc -m68040"
1974 else CC="gnucc -m68881"
1976 else
1977 if test -z "`type gcc | grep 'not found'`"
1978 then CC=gcc
1979 else CC=cc
1983 m88k-motorola-sysv4* )
1984 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1985 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1986 # I hope there are not other 4.0 versions for this machine
1987 # which really need usg5-4 instead.
1988 machine=delta88k opsys=usg5-4-2
1990 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1991 machine=delta88k opsys=usg5-3
1994 ## Dual machines
1995 m68*-dual-sysv* )
1996 machine=dual opsys=usg5-2
1998 m68*-dual-uniplus* )
1999 machine=dual opsys=unipl5-2
2002 ## Elxsi 6400
2003 elxsi-elxsi-sysv* )
2004 machine=elxsi opsys=usg5-2
2007 ## Encore machines
2008 ns16k-encore-bsd* )
2009 machine=ns16000 opsys=umax
2012 ## The GEC 63 - apparently, this port isn't really finished yet.
2013 # I'm sure we finished off the last of the machines, though. -- fx
2015 ## Gould Power Node and NP1
2016 pn-gould-bsd4.2* )
2017 machine=gould opsys=bsd4-2
2019 pn-gould-bsd4.3* )
2020 machine=gould opsys=bsd4-3
2022 np1-gould-bsd* )
2023 machine=gould-np1 opsys=bsd4-3
2026 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2027 ## as far as Emacs is concerned).
2028 m88k-harris-cxux* )
2029 # Build needs to be different on 7.0 and later releases
2030 case "`uname -r`" in
2031 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2032 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2033 esac
2034 NON_GNU_CPP="/lib/cpp"
2036 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2037 m68k-harris-cxux* )
2038 machine=nh3000 opsys=cxux
2040 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2041 powerpc-harris-powerunix )
2042 machine=nh6000 opsys=powerunix
2043 NON_GNU_CPP="cc -Xo -E -P"
2045 ## SR2001/SR2201 running HI-UX/MPP
2046 hppa1.1-hitachi-hiuxmpp* )
2047 machine=sr2k opsys=hiuxmpp
2049 hppa1.1-hitachi-hiuxwe2* )
2050 machine=sr2k opsys=hiuxwe2
2052 ## Honeywell XPS100
2053 xps*-honeywell-sysv* )
2054 machine=xps100 opsys=usg5-2
2057 ## HP 9000 series 200 or 300
2058 m68*-hp-bsd* )
2059 machine=hp9000s300 opsys=bsd4-3
2061 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2062 m68*-hp-hpux* )
2063 case "`uname -r`" in
2064 ## Someone's system reports A.B8.05 for this.
2065 ## I wonder what other possibilities there are.
2066 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2067 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2068 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2069 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2070 *) machine=hp9000s300 opsys=hpux ;;
2071 esac
2074 ## HP 9000 series 700 and 800, running HP/UX
2075 hppa*-hp-hpux7* )
2076 machine=hp800 opsys=hpux
2078 hppa*-hp-hpux8* )
2079 machine=hp800 opsys=hpux8
2081 hppa*-hp-hpux9shr* )
2082 machine=hp800 opsys=hpux9shr
2084 hppa*-hp-hpux9* )
2085 machine=hp800 opsys=hpux9
2087 hppa*-hp-hpux10.2* )
2088 machine=hp800 opsys=hpux10-20
2090 hppa*-hp-hpux10* )
2091 machine=hp800 opsys=hpux10
2093 hppa*-hp-hpux1[1-9]* )
2094 machine=hp800 opsys=hpux11
2097 hppa*-*-linux-gnu* )
2098 machine=hp800 opsys=gnu-linux
2101 ## HP 9000 series 700 and 800, running HP/UX
2102 hppa*-hp-hpux* )
2103 ## Cross-compilation? Nah!
2104 case "`uname -r`" in
2105 ## Someone's system reports A.B8.05 for this.
2106 ## I wonder what other possibilities there are.
2107 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2108 *.08.* ) machine=hp800 opsys=hpux8 ;;
2109 *.09.* ) machine=hp800 opsys=hpux9 ;;
2110 *) machine=hp800 opsys=hpux10 ;;
2111 esac
2113 hppa*-*-nextstep* )
2114 machine=hp800 opsys=nextstep
2117 ## Orion machines
2118 orion-orion-bsd* )
2119 machine=orion opsys=bsd4-2
2121 clipper-orion-bsd* )
2122 machine=orion105 opsys=bsd4-2
2125 ## IBM machines
2126 i[3456]86-ibm-aix1.1* )
2127 machine=ibmps2-aix opsys=usg5-2-2
2129 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2130 machine=ibmps2-aix opsys=usg5-3
2132 i370-ibm-aix*)
2133 machine=ibm370aix opsys=usg5-3
2135 s390-*-linux-gnu* )
2136 machine=ibms390 opsys=gnu-linux
2138 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2139 machine=ibmrs6000 opsys=aix3-1
2141 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2142 machine=ibmrs6000 opsys=aix3-2-5
2144 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2145 machine=ibmrs6000 opsys=aix4-1
2147 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2148 machine=ibmrs6000 opsys=aix4-2
2150 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2151 machine=ibmrs6000 opsys=aix4-2
2153 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2154 machine=ibmrs6000 opsys=aix4
2156 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2157 machine=ibmrs6000 opsys=aix4-1
2159 rs6000-ibm-aix* | powerpc-ibm-aix* )
2160 machine=ibmrs6000 opsys=aix3-2
2162 romp-ibm-bsd4.3* )
2163 machine=ibmrt opsys=bsd4-3
2165 romp-ibm-bsd4.2* )
2166 machine=ibmrt opsys=bsd4-2
2168 romp-ibm-aos4.3* )
2169 machine=ibmrt opsys=bsd4-3
2171 romp-ibm-aos4.2* )
2172 machine=ibmrt opsys=bsd4-2
2174 romp-ibm-aos* )
2175 machine=ibmrt opsys=bsd4-3
2177 romp-ibm-bsd* )
2178 machine=ibmrt opsys=bsd4-3
2180 romp-ibm-aix* )
2181 machine=ibmrt-aix opsys=usg5-2-2
2184 ## Integrated Solutions `Optimum V'
2185 m68*-isi-bsd4.2* )
2186 machine=isi-ov opsys=bsd4-2
2188 m68*-isi-bsd4.3* )
2189 machine=isi-ov opsys=bsd4-3
2192 ## Intel 386 machines where we do care about the manufacturer
2193 i[3456]86-intsys-sysv* )
2194 machine=is386 opsys=usg5-2-2
2197 ## Prime EXL
2198 i[3456]86-prime-sysv* )
2199 machine=i386 opsys=usg5-3
2202 ## Sequent Symmetry running Dynix
2203 i[3456]86-sequent-bsd* )
2204 machine=symmetry opsys=bsd4-3
2207 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2208 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2209 machine=sequent-ptx opsys=ptx4
2210 NON_GNU_CPP=/lib/cpp
2213 ## Sequent Symmetry running DYNIX/ptx
2214 ## Use the old cpp rather than the newer ANSI one.
2215 i[3456]86-sequent-ptx* )
2216 machine=sequent-ptx opsys=ptx
2217 NON_GNU_CPP="/lib/cpp"
2220 ## ncr machine running svr4.3.
2221 i[3456]86-ncr-sysv4.3 )
2222 machine=ncr386 opsys=usg5-4-3
2225 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2226 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2227 i[3456]86-ncr-sysv* )
2228 machine=ncr386 opsys=usg5-4-2
2231 ## Intel Paragon OSF/1
2232 i860-intel-osf1* )
2233 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2236 ## Intel 860
2237 i860-*-sysv4* )
2238 machine=i860 opsys=usg5-4
2239 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2240 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2243 ## Macintosh PowerPC
2244 powerpc*-*-linux-gnu* )
2245 machine=macppc opsys=gnu-linux
2248 ## Masscomp machines
2249 m68*-masscomp-rtu* )
2250 machine=masscomp opsys=rtu
2253 ## Megatest machines
2254 m68*-megatest-bsd* )
2255 machine=mega68 opsys=bsd4-2
2258 ## Workstations sold by MIPS
2259 ## This is not necessarily all workstations using the MIPS processor -
2260 ## Irises are produced by SGI, and DECstations by DEC.
2262 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2263 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2264 ## it gives for choosing between the alternatives seems to be "Use
2265 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2266 ## the BSD world." I'll assume that these are instructions for
2267 ## handling two odd situations, and that every other situation
2268 ## should use mips.h and usg5-2-2, they being listed first.
2269 mips-mips-usg* )
2270 machine=mips4
2271 ## Fall through to the general code at the bottom to decide on the OS.
2273 mips-mips-riscos4* )
2274 machine=mips4 opsys=bsd4-3
2275 NON_GNU_CC="cc -systype bsd43"
2276 NON_GNU_CPP="cc -systype bsd43 -E"
2278 mips-mips-riscos5* )
2279 machine=mips4 opsys=riscos5
2280 NON_GNU_CC="cc -systype bsd43"
2281 NON_GNU_CPP="cc -systype bsd43 -E"
2283 mips-mips-bsd* )
2284 machine=mips opsys=bsd4-3
2286 mips-mips-* )
2287 machine=mips opsys=usg5-2-2
2290 ## NeXT
2291 m68*-next-* | m68k-*-nextstep* )
2292 machine=m68k opsys=nextstep
2295 ## The complete machine from National Semiconductor
2296 ns32k-ns-genix* )
2297 machine=ns32000 opsys=usg5-2
2300 ## NCR machines
2301 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2302 machine=tower32 opsys=usg5-2-2
2304 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2305 machine=tower32v3 opsys=usg5-3
2308 ## NEC EWS4800
2309 mips-nec-sysv4*)
2310 machine=ews4800 opsys=ux4800
2313 ## Nixdorf Targon 31
2314 m68*-nixdorf-sysv* )
2315 machine=targon31 opsys=usg5-2-2
2318 ## Nu (TI or LMI)
2319 m68*-nu-sysv* )
2320 machine=nu opsys=usg5-2
2323 ## Plexus
2324 m68*-plexus-sysv* )
2325 machine=plexus opsys=usg5-2
2328 ## Pyramid machines
2329 ## I don't really have any idea what sort of processor the Pyramid has,
2330 ## so I'm assuming it is its own architecture.
2331 pyramid-pyramid-bsd* )
2332 machine=pyramid opsys=bsd4-2
2335 ## Sequent Balance
2336 ns32k-sequent-bsd4.2* )
2337 machine=sequent opsys=bsd4-2
2339 ns32k-sequent-bsd4.3* )
2340 machine=sequent opsys=bsd4-3
2343 ## Siemens Nixdorf
2344 mips-siemens-sysv* | mips-sni-sysv*)
2345 machine=mips-siemens opsys=usg5-4
2346 NON_GNU_CC=/usr/ccs/bin/cc
2347 NON_GNU_CPP=/usr/ccs/lib/cpp
2350 ## Silicon Graphics machines
2351 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2352 m68*-sgi-iris3.5* )
2353 machine=irist opsys=iris3-5
2355 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2356 machine=irist opsys=iris3-6
2358 ## Iris 4D
2359 mips-sgi-irix3* )
2360 machine=iris4d opsys=irix3-3
2362 mips-sgi-irix4* )
2363 machine=iris4d opsys=irix4-0
2365 mips-sgi-irix6.5 )
2366 machine=iris4d opsys=irix6-5
2367 # Without defining _LANGUAGE_C, things get masked out in the headers
2368 # so that, for instance, grepping for `free' in stdlib.h fails and
2369 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2370 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2371 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2373 mips-sgi-irix6* )
2374 machine=iris4d opsys=irix6-0
2375 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2376 # but presumably it does no harm.
2377 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2378 # -32 probably isn't necessary in later v.6s -- anyone know which?
2379 NON_GCC_TEST_OPTIONS=-32
2381 mips-sgi-irix5.[01]* )
2382 machine=iris4d opsys=irix5-0
2384 mips-sgi-irix5* | mips-sgi-irix* )
2385 machine=iris4d opsys=irix5-2
2388 ## SONY machines
2389 m68*-sony-bsd4.2* )
2390 machine=news opsys=bsd4-2
2392 m68*-sony-bsd4.3* )
2393 machine=news opsys=bsd4-3
2395 m68*-sony-newsos3* | m68*-sony-news3*)
2396 machine=news opsys=bsd4-3
2398 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2399 machine=news-risc opsys=bsd4-3
2401 mips-sony-newsos6* )
2402 machine=news-r6 opsys=newsos6
2404 mips-sony-news* )
2405 machine=news-risc opsys=newsos5
2408 ## Stride
2409 m68*-stride-sysv* )
2410 machine=stride opsys=usg5-2
2413 ## Suns
2414 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2415 machine=sparc opsys=gnu-linux
2418 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2419 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2420 | rs6000-*-solaris2*)
2421 case "${canonical}" in
2422 m68*-sunos1* ) machine=sun1 ;;
2423 m68*-sunos2* ) machine=sun2 ;;
2424 m68* ) machine=sun3 ;;
2425 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2426 i[3456]86-*-* ) machine=intel386 ;;
2427 powerpcle* ) machine=powerpcle ;;
2428 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2429 sparc* ) machine=sparc ;;
2430 * ) unported=yes ;;
2431 esac
2432 case "${canonical}" in
2433 ## The Sun386 didn't get past 4.0.
2434 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2435 *-sunos4.0* ) opsys=sunos4-0 ;;
2436 *-sunos4.1.[3-9]*noshare )
2437 ## This name is sunos413 instead of sunos4-1-3
2438 ## to avoid a file name conflict on MSDOS.
2439 opsys=sunos413
2440 NON_GNU_CPP=/usr/lib/cpp
2441 NON_GCC_TEST_OPTIONS=-Bstatic
2442 GCC_TEST_OPTIONS=-static
2444 *-sunos4.1.[3-9]* | *-sunos4shr*)
2445 opsys=sunos4shr
2446 NON_GNU_CPP=/usr/lib/cpp
2448 *-sunos4* | *-sunos )
2449 opsys=sunos4-1
2450 NON_GCC_TEST_OPTIONS=-Bstatic
2451 GCC_TEST_OPTIONS=-static
2453 *-sunos5.3* | *-solaris2.3* )
2454 opsys=sol2-3
2455 NON_GNU_CPP=/usr/ccs/lib/cpp
2457 *-sunos5.4* | *-solaris2.4* )
2458 opsys=sol2-4
2459 NON_GNU_CPP=/usr/ccs/lib/cpp
2460 RANLIB="ar -ts"
2462 *-sunos5.5* | *-solaris2.5* )
2463 opsys=sol2-5
2464 NON_GNU_CPP=/usr/ccs/lib/cpp
2465 RANLIB="ar -ts"
2467 *-sunos5.6* | *-solaris2.6* )
2468 opsys=sol2-6
2469 NON_GNU_CPP=/usr/ccs/lib/cpp
2470 RANLIB="ar -ts"
2472 *-sunos5* | *-solaris* )
2473 opsys=sol2-6
2474 NON_GNU_CPP=/usr/ccs/lib/cpp
2476 * ) opsys=bsd4-2 ;;
2477 esac
2478 ## Watch out for a compiler that we know will not work.
2479 case "${canonical}" in
2480 *-solaris* | *-sunos5* )
2481 if [ "x$CC" = x/usr/ucb/cc ]; then
2482 ## /usr/ucb/cc doesn't work;
2483 ## we should find some other compiler that does work.
2484 unset CC
2487 *) ;;
2488 esac
2490 sparc-*-nextstep* )
2491 machine=sparc opsys=nextstep
2494 ## Tadpole 68k
2495 m68*-tadpole-sysv* )
2496 machine=tad68k opsys=usg5-3
2499 ## Tahoe machines
2500 tahoe-tahoe-bsd4.2* )
2501 machine=tahoe opsys=bsd4-2
2503 tahoe-tahoe-bsd4.3* )
2504 machine=tahoe opsys=bsd4-3
2507 ## Tandem Integrity S2
2508 mips-tandem-sysv* )
2509 machine=tandem-s2 opsys=usg5-3
2512 ## Tektronix XD88
2513 m88k-tektronix-sysv3* )
2514 machine=tekxd88 opsys=usg5-3
2517 ## Tektronix 16000 box (6130?)
2518 ns16k-tektronix-bsd* )
2519 machine=ns16000 opsys=bsd4-2
2521 ## Tektronix 4300
2522 ## src/m/tek4300.h hints that this is a m68k machine.
2523 m68*-tektronix-bsd* )
2524 machine=tek4300 opsys=bsd4-3
2527 ## Titan P2 or P3
2528 ## We seem to have lost the machine-description file titan.h!
2529 titan-titan-sysv* )
2530 machine=titan opsys=usg5-3
2533 ## Ustation E30 (SS5E)
2534 m68*-unisys-uniplus* )
2535 machine=ustation opsystem=unipl5-2
2538 ## Vaxen.
2539 vax-dec-* )
2540 machine=vax
2541 case "${canonical}" in
2542 *-bsd4.1* ) opsys=bsd4-1 ;;
2543 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2544 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2545 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2546 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2547 *-vms* ) opsys=vms ;;
2548 * ) unported=yes
2549 esac
2552 ## Whitechapel MG1
2553 ns16k-whitechapel-* )
2554 machine=mg1
2555 ## We don't know what sort of OS runs on these; we'll let the
2556 ## operating system guessing code below try.
2559 ## Wicat
2560 m68*-wicat-sysv* )
2561 machine=wicat opsys=usg5-2
2564 ## IA-64
2565 ia64*-*-linux* )
2566 machine=ia64 opsys=gnu-linux
2569 ## Intel 386 machines where we don't care about the manufacturer
2570 i[3456]86-*-* )
2571 machine=intel386
2572 case "${canonical}" in
2573 *-cygwin ) opsys=cygwin ;;
2574 *-darwin* ) opsys=darwin
2575 CPP="${CC-cc} -E -no-cpp-precomp"
2577 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2578 *-isc2.2* ) opsys=isc2-2 ;;
2579 *-isc4.0* ) opsys=isc4-0 ;;
2580 *-isc4.* ) opsys=isc4-1
2581 GCC_TEST_OPTIONS=-posix
2582 NON_GCC_TEST_OPTIONS=-Xp
2584 *-isc* ) opsys=isc3-0 ;;
2585 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2586 *-esix* ) opsys=esix ;;
2587 *-xenix* ) opsys=xenix ;;
2588 *-linux-gnu* ) opsys=gnu-linux ;;
2589 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2590 *-sco3.2v5* ) opsys=sco5
2591 NON_GNU_CPP=/lib/cpp
2592 # Prevent -belf from being passed to $CPP.
2593 # /lib/cpp does not accept it.
2594 OVERRIDE_CPPFLAGS=" "
2596 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2597 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2598 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2599 *-386bsd* ) opsys=386bsd ;;
2600 *-nextstep* ) opsys=nextstep ;;
2601 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2602 esac
2605 ## m68k Linux-based GNU system
2606 m68k-*-linux-gnu* )
2607 machine=m68k opsys=gnu-linux
2610 ## Mips Linux-based GNU system
2611 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2612 machine=mips opsys=gnu-linux
2615 ## UXP/DS
2616 sparc-fujitsu-sysv4* )
2617 machine=sparc opsys=uxpds
2618 NON_GNU_CPP=/usr/ccs/lib/cpp
2619 RANLIB="ar -ts"
2622 ## UXP/V
2623 f301-fujitsu-uxpv4.1)
2624 machine=f301 opsys=uxpv
2627 ## Darwin / Mac OS X
2628 powerpc-apple-darwin* )
2629 machine=powermac opsys=darwin
2630 # Define CPP as follows to make autoconf work correctly.
2631 CPP="${CC-cc} -E -no-cpp-precomp"
2632 # Use fink packages if available.
2633 if test -d /sw/include && test -d /sw/lib; then
2634 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2635 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2636 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2640 ## AMD x86-64 Linux-based GNU system
2641 x86_64-*-linux-gnu* )
2642 machine=amdx86-64 opsys=gnu-linux
2646 unported=yes
2648 esac
2650 ### If the code above didn't choose an operating system, just choose
2651 ### an operating system based on the configuration name. You really
2652 ### only want to use this when you have no idea what the right
2653 ### operating system is; if you know what operating systems a machine
2654 ### runs, it's cleaner to make it explicit in the case statement
2655 ### above.
2656 if test x"${opsys}" = x; then
2657 case "${canonical}" in
2658 *-gnu* ) opsys=gnu ;;
2659 *-bsd4.[01] ) opsys=bsd4-1 ;;
2660 *-bsd4.2 ) opsys=bsd4-2 ;;
2661 *-bsd4.3 ) opsys=bsd4-3 ;;
2662 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2663 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2664 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2665 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2666 *-sysv4.2uw* ) opsys=unixware ;;
2667 *-sysv5uw* ) opsys=unixware ;;
2668 *-sysv5OpenUNIX* ) opsys=unixware ;;
2669 *-sysv4.1* | *-sysvr4.1* )
2670 NON_GNU_CPP=/usr/lib/cpp
2671 opsys=usg5-4 ;;
2672 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2673 if [ x$NON_GNU_CPP = x ]; then
2674 if [ -f /usr/ccs/lib/cpp ]; then
2675 NON_GNU_CPP=/usr/ccs/lib/cpp
2676 else
2677 NON_GNU_CPP=/lib/cpp
2680 opsys=usg5-4-2 ;;
2681 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2683 unported=yes
2685 esac
2690 if test $unported = yes; then
2691 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2692 Check \`etc/MACHINES' for recognized configuration names." >&5
2693 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2694 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2695 { (exit 1); exit 1; }; }
2698 machfile="m/${machine}.h"
2699 opsysfile="s/${opsys}.h"
2702 #### Choose a compiler.
2703 test -n "$CC" && cc_specified=yes
2705 # Save the value of CFLAGS that the user specified.
2706 SPECIFIED_CFLAGS="$CFLAGS"
2708 case ${with_gcc} in
2709 "yes" ) CC="gcc" GCC=yes ;;
2710 "no" ) : ${CC=cc} ;;
2712 esac
2713 ac_ext=c
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 if test -n "$ac_tool_prefix"; then
2719 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2721 echo "$as_me:$LINENO: checking for $ac_word" >&5
2722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2723 if test "${ac_cv_prog_CC+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2740 done
2741 done
2745 CC=$ac_cv_prog_CC
2746 if test -n "$CC"; then
2747 echo "$as_me:$LINENO: result: $CC" >&5
2748 echo "${ECHO_T}$CC" >&6
2749 else
2750 echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6
2755 if test -z "$ac_cv_prog_CC"; then
2756 ac_ct_CC=$CC
2757 # Extract the first word of "gcc", so it can be a program name with args.
2758 set dummy gcc; ac_word=$2
2759 echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764 if test -n "$ac_ct_CC"; then
2765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774 ac_cv_prog_ac_ct_CC="gcc"
2775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2778 done
2779 done
2783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784 if test -n "$ac_ct_CC"; then
2785 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2786 echo "${ECHO_T}$ac_ct_CC" >&6
2787 else
2788 echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2792 CC=$ac_ct_CC
2793 else
2794 CC="$ac_cv_prog_CC"
2797 if test -z "$CC"; then
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}cc; ac_word=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_prog_CC+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_CC="${ac_tool_prefix}cc"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2820 done
2821 done
2825 CC=$ac_cv_prog_CC
2826 if test -n "$CC"; then
2827 echo "$as_me:$LINENO: result: $CC" >&5
2828 echo "${ECHO_T}$CC" >&6
2829 else
2830 echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2835 if test -z "$ac_cv_prog_CC"; then
2836 ac_ct_CC=$CC
2837 # Extract the first word of "cc", so it can be a program name with args.
2838 set dummy cc; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 if test -n "$ac_ct_CC"; then
2845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_CC="cc"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2858 done
2859 done
2863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2866 echo "${ECHO_T}$ac_ct_CC" >&6
2867 else
2868 echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2872 CC=$ac_ct_CC
2873 else
2874 CC="$ac_cv_prog_CC"
2878 if test -z "$CC"; then
2879 # Extract the first word of "cc", so it can be a program name with args.
2880 set dummy cc; ac_word=$2
2881 echo "$as_me:$LINENO: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2883 if test "${ac_cv_prog_CC+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2888 else
2889 ac_prog_rejected=no
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2898 ac_prog_rejected=yes
2899 continue
2901 ac_cv_prog_CC="cc"
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2905 done
2906 done
2908 if test $ac_prog_rejected = yes; then
2909 # We found a bogon in the path, so make sure we never use it.
2910 set dummy $ac_cv_prog_CC
2911 shift
2912 if test $# != 0; then
2913 # We chose a different compiler from the bogus one.
2914 # However, it has the same basename, so the bogon will be chosen
2915 # first if we set CC to just the basename; use the full file name.
2916 shift
2917 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2922 CC=$ac_cv_prog_CC
2923 if test -n "$CC"; then
2924 echo "$as_me:$LINENO: result: $CC" >&5
2925 echo "${ECHO_T}$CC" >&6
2926 else
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2934 for ac_prog in cl
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2957 done
2958 done
2962 CC=$ac_cv_prog_CC
2963 if test -n "$CC"; then
2964 echo "$as_me:$LINENO: result: $CC" >&5
2965 echo "${ECHO_T}$CC" >&6
2966 else
2967 echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6
2971 test -n "$CC" && break
2972 done
2974 if test -z "$CC"; then
2975 ac_ct_CC=$CC
2976 for ac_prog in cl
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_CC="$ac_prog"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2999 done
3000 done
3004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3007 echo "${ECHO_T}$ac_ct_CC" >&6
3008 else
3009 echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3013 test -n "$ac_ct_CC" && break
3014 done
3016 CC=$ac_ct_CC
3022 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3023 See \`config.log' for more details." >&5
3024 echo "$as_me: error: no acceptable C compiler found in \$PATH
3025 See \`config.log' for more details." >&2;}
3026 { (exit 1); exit 1; }; }
3028 # Provide some information about the compiler.
3029 echo "$as_me:$LINENO:" \
3030 "checking for C compiler version" >&5
3031 ac_compiler=`set X $ac_compile; echo $2`
3032 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3033 (eval $ac_compiler --version </dev/null >&5) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }
3037 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3038 (eval $ac_compiler -v </dev/null >&5) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3043 (eval $ac_compiler -V </dev/null >&5) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3056 main ()
3060 return 0;
3062 _ACEOF
3063 ac_clean_files_save=$ac_clean_files
3064 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3065 # Try to create an executable without -o first, disregard a.out.
3066 # It will help us diagnose broken compilers, and finding out an intuition
3067 # of exeext.
3068 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3069 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3070 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3071 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3072 (eval $ac_link_default) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; then
3076 # Find the output, starting from the most likely. This scheme is
3077 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3078 # resort.
3080 # Be careful to initialize this variable, since it used to be cached.
3081 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3082 ac_cv_exeext=
3083 # b.out is created by i960 compilers.
3084 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3086 test -f "$ac_file" || continue
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3090 conftest.$ac_ext )
3091 # This is the source file.
3093 [ab].out )
3094 # We found the default executable, but exeext='' is most
3095 # certainly right.
3096 break;;
3097 *.* )
3098 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3099 # FIXME: I believe we export ac_cv_exeext for Libtool,
3100 # but it would be cool to find out if it's true. Does anybody
3101 # maintain Libtool? --akim.
3102 export ac_cv_exeext
3103 break;;
3105 break;;
3106 esac
3107 done
3108 else
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3112 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3113 See \`config.log' for more details." >&5
3114 echo "$as_me: error: C compiler cannot create executables
3115 See \`config.log' for more details." >&2;}
3116 { (exit 77); exit 77; }; }
3119 ac_exeext=$ac_cv_exeext
3120 echo "$as_me:$LINENO: result: $ac_file" >&5
3121 echo "${ECHO_T}$ac_file" >&6
3123 # Check the compiler produces executables we can run. If not, either
3124 # the compiler is broken, or we cross compile.
3125 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3126 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3127 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3128 # If not cross compiling, check that we can run a simple program.
3129 if test "$cross_compiling" != yes; then
3130 if { ac_try='./$ac_file'
3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132 (eval $ac_try) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; }; then
3136 cross_compiling=no
3137 else
3138 if test "$cross_compiling" = maybe; then
3139 cross_compiling=yes
3140 else
3141 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3142 If you meant to cross compile, use \`--host'.
3143 See \`config.log' for more details." >&5
3144 echo "$as_me: error: cannot run C compiled programs.
3145 If you meant to cross compile, use \`--host'.
3146 See \`config.log' for more details." >&2;}
3147 { (exit 1); exit 1; }; }
3151 echo "$as_me:$LINENO: result: yes" >&5
3152 echo "${ECHO_T}yes" >&6
3154 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3155 ac_clean_files=$ac_clean_files_save
3156 # Check the compiler produces executables we can run. If not, either
3157 # the compiler is broken, or we cross compile.
3158 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3159 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3160 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3161 echo "${ECHO_T}$cross_compiling" >&6
3163 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3164 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3166 (eval $ac_link) 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; then
3170 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3171 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3172 # work properly (i.e., refer to `conftest.exe'), while it won't with
3173 # `rm'.
3174 for ac_file in conftest.exe conftest conftest.*; do
3175 test -f "$ac_file" || continue
3176 case $ac_file in
3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3178 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179 export ac_cv_exeext
3180 break;;
3181 * ) break;;
3182 esac
3183 done
3184 else
3185 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3186 See \`config.log' for more details." >&5
3187 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3188 See \`config.log' for more details." >&2;}
3189 { (exit 1); exit 1; }; }
3192 rm -f conftest$ac_cv_exeext
3193 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3194 echo "${ECHO_T}$ac_cv_exeext" >&6
3196 rm -f conftest.$ac_ext
3197 EXEEXT=$ac_cv_exeext
3198 ac_exeext=$EXEEXT
3199 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3200 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3201 if test "${ac_cv_objext+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h. */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3212 main ()
3216 return 0;
3218 _ACEOF
3219 rm -f conftest.o conftest.obj
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; then
3225 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3228 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3229 break;;
3230 esac
3231 done
3232 else
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3236 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3237 See \`config.log' for more details." >&5
3238 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3239 See \`config.log' for more details." >&2;}
3240 { (exit 1); exit 1; }; }
3243 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3245 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3246 echo "${ECHO_T}$ac_cv_objext" >&6
3247 OBJEXT=$ac_cv_objext
3248 ac_objext=$OBJEXT
3249 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3250 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3251 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h. */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3262 main ()
3264 #ifndef __GNUC__
3265 choke me
3266 #endif
3269 return 0;
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>conftest.er1
3275 ac_status=$?
3276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 (eval $ac_try) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_compiler_gnu=yes
3294 else
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 ac_compiler_gnu=no
3300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3301 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3304 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3305 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3306 GCC=`test $ac_compiler_gnu = yes && echo yes`
3307 ac_test_CFLAGS=${CFLAGS+set}
3308 ac_save_CFLAGS=$CFLAGS
3309 CFLAGS="-g"
3310 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3311 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3312 if test "${ac_cv_prog_cc_g+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h. */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3323 main ()
3327 return 0;
3329 _ACEOF
3330 rm -f conftest.$ac_objext
3331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3332 (eval $ac_compile) 2>conftest.er1
3333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 (eval $ac_try) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 (eval $ac_try) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 ac_cv_prog_cc_g=yes
3352 else
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3356 ac_cv_prog_cc_g=no
3358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3360 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3361 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3362 if test "$ac_test_CFLAGS" = set; then
3363 CFLAGS=$ac_save_CFLAGS
3364 elif test $ac_cv_prog_cc_g = yes; then
3365 if test "$GCC" = yes; then
3366 CFLAGS="-g -O2"
3367 else
3368 CFLAGS="-g"
3370 else
3371 if test "$GCC" = yes; then
3372 CFLAGS="-O2"
3373 else
3374 CFLAGS=
3377 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3378 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3379 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382 ac_cv_prog_cc_stdc=no
3383 ac_save_CC=$CC
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390 #include <stdarg.h>
3391 #include <stdio.h>
3392 #include <sys/types.h>
3393 #include <sys/stat.h>
3394 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3395 struct buf { int x; };
3396 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3397 static char *e (p, i)
3398 char **p;
3399 int i;
3401 return p[i];
3403 static char *f (char * (*g) (char **, int), char **p, ...)
3405 char *s;
3406 va_list v;
3407 va_start (v,p);
3408 s = g (p, va_arg (v,int));
3409 va_end (v);
3410 return s;
3413 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3414 function prototypes and stuff, but not '\xHH' hex character constants.
3415 These don't provoke an error unfortunately, instead are silently treated
3416 as 'x'. The following induces an error, until -std1 is added to get
3417 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3418 array size at least. It's necessary to write '\x00'==0 to get something
3419 that's true only with -std1. */
3420 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3422 int test (int i, double x);
3423 struct s1 {int (*f) (int a);};
3424 struct s2 {int (*f) (double a);};
3425 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3426 int argc;
3427 char **argv;
3429 main ()
3431 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3433 return 0;
3435 _ACEOF
3436 # Don't try gcc -ansi; that turns off useful extensions and
3437 # breaks some systems' header files.
3438 # AIX -qlanglvl=ansi
3439 # Ultrix and OSF/1 -std1
3440 # HP-UX 10.20 and later -Ae
3441 # HP-UX older versions -Aa -D_HPUX_SOURCE
3442 # SVR4 -Xc -D__EXTENSIONS__
3443 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3445 CC="$ac_save_CC $ac_arg"
3446 rm -f conftest.$ac_objext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448 (eval $ac_compile) 2>conftest.er1
3449 ac_status=$?
3450 grep -v '^ *+' conftest.er1 >conftest.err
3451 rm -f conftest.er1
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } &&
3455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; } &&
3461 { ac_try='test -s conftest.$ac_objext'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; }; then
3467 ac_cv_prog_cc_stdc=$ac_arg
3468 break
3469 else
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3474 rm -f conftest.err conftest.$ac_objext
3475 done
3476 rm -f conftest.$ac_ext conftest.$ac_objext
3477 CC=$ac_save_CC
3481 case "x$ac_cv_prog_cc_stdc" in
3482 x|xno)
3483 echo "$as_me:$LINENO: result: none needed" >&5
3484 echo "${ECHO_T}none needed" >&6 ;;
3486 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3487 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3488 CC="$CC $ac_cv_prog_cc_stdc" ;;
3489 esac
3491 # Some people use a C++ compiler to compile C. Since we use `exit',
3492 # in C++ we need to declare it. In case someone uses the same compiler
3493 # for both compiling C and C++ we need to have the C++ compiler decide
3494 # the declaration of exit, since it's the most demanding environment.
3495 cat >conftest.$ac_ext <<_ACEOF
3496 #ifndef __cplusplus
3497 choke me
3498 #endif
3499 _ACEOF
3500 rm -f conftest.$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502 (eval $ac_compile) 2>conftest.er1
3503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 (eval $ac_try) 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 for ac_declaration in \
3522 '' \
3523 'extern "C" void std::exit (int) throw (); using std::exit;' \
3524 'extern "C" void std::exit (int); using std::exit;' \
3525 'extern "C" void exit (int) throw ();' \
3526 'extern "C" void exit (int);' \
3527 'void exit (int);'
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h. */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3535 $ac_declaration
3536 #include <stdlib.h>
3538 main ()
3540 exit (42);
3542 return 0;
3544 _ACEOF
3545 rm -f conftest.$ac_objext
3546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3547 (eval $ac_compile) 2>conftest.er1
3548 ac_status=$?
3549 grep -v '^ *+' conftest.er1 >conftest.err
3550 rm -f conftest.er1
3551 cat conftest.err >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } &&
3554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 (eval $ac_try) 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; } &&
3560 { ac_try='test -s conftest.$ac_objext'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 (eval $ac_try) 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3567 else
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3571 continue
3573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3574 cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h. */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3580 $ac_declaration
3582 main ()
3584 exit (42);
3586 return 0;
3588 _ACEOF
3589 rm -f conftest.$ac_objext
3590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591 (eval $ac_compile) 2>conftest.er1
3592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } &&
3598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try='test -s conftest.$ac_objext'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3610 break
3611 else
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3617 done
3618 rm -f conftest*
3619 if test -n "$ac_declaration"; then
3620 echo '#ifdef __cplusplus' >>confdefs.h
3621 echo $ac_declaration >>confdefs.h
3622 echo '#endif' >>confdefs.h
3625 else
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638 # On Suns, sometimes $CPP names a directory.
3639 if test -n "$CPP" && test -d "$CPP"; then
3640 CPP=
3643 #### Some systems specify a CPP to use unless we are using GCC.
3644 #### Now that we know whether we are using GCC, we can decide whether
3645 #### to use that one.
3646 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3647 then
3648 CPP="$NON_GNU_CPP"
3651 #### Some systems specify a CC to use unless we are using GCC.
3652 #### Now that we know whether we are using GCC, we can decide whether
3653 #### to use that one.
3654 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3655 test x$cc_specified != xyes
3656 then
3657 CC="$NON_GNU_CC"
3660 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3661 then
3662 CC="$CC $GCC_TEST_OPTIONS"
3665 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3666 then
3667 CC="$CC $NON_GCC_TEST_OPTIONS"
3670 #### Some other nice autoconf tests.
3672 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3673 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3674 LN_S=$as_ln_s
3675 if test "$LN_S" = "ln -s"; then
3676 echo "$as_me:$LINENO: result: yes" >&5
3677 echo "${ECHO_T}yes" >&6
3678 else
3679 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3680 echo "${ECHO_T}no, using $LN_S" >&6
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3689 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3690 # On Suns, sometimes $CPP names a directory.
3691 if test -n "$CPP" && test -d "$CPP"; then
3692 CPP=
3694 if test -z "$CPP"; then
3695 if test "${ac_cv_prog_CPP+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 # Double quotes because CPP needs to be expanded
3699 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3701 ac_preproc_ok=false
3702 for ac_c_preproc_warn_flag in '' yes
3704 # Use a header file that comes with gcc, so configuring glibc
3705 # with a fresh cross-compiler works.
3706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3707 # <limits.h> exists even on freestanding compilers.
3708 # On the NeXT, cc -E runs the code through the compiler's parser,
3709 # not just through cpp. "Syntax error" is here to catch this case.
3710 cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h. */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3716 #ifdef __STDC__
3717 # include <limits.h>
3718 #else
3719 # include <assert.h>
3720 #endif
3721 Syntax error
3722 _ACEOF
3723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } >/dev/null; then
3731 if test -s conftest.err; then
3732 ac_cpp_err=$ac_c_preproc_warn_flag
3733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3734 else
3735 ac_cpp_err=
3737 else
3738 ac_cpp_err=yes
3740 if test -z "$ac_cpp_err"; then
3742 else
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3746 # Broken: fails on valid input.
3747 continue
3749 rm -f conftest.err conftest.$ac_ext
3751 # OK, works on sane cases. Now check whether non-existent headers
3752 # can be detected and how.
3753 cat >conftest.$ac_ext <<_ACEOF
3754 /* confdefs.h. */
3755 _ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3759 #include <ac_nonexistent.h>
3760 _ACEOF
3761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } >/dev/null; then
3769 if test -s conftest.err; then
3770 ac_cpp_err=$ac_c_preproc_warn_flag
3771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3772 else
3773 ac_cpp_err=
3775 else
3776 ac_cpp_err=yes
3778 if test -z "$ac_cpp_err"; then
3779 # Broken: success on invalid input.
3780 continue
3781 else
3782 echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3785 # Passes both tests.
3786 ac_preproc_ok=:
3787 break
3789 rm -f conftest.err conftest.$ac_ext
3791 done
3792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3793 rm -f conftest.err conftest.$ac_ext
3794 if $ac_preproc_ok; then
3795 break
3798 done
3799 ac_cv_prog_CPP=$CPP
3802 CPP=$ac_cv_prog_CPP
3803 else
3804 ac_cv_prog_CPP=$CPP
3806 echo "$as_me:$LINENO: result: $CPP" >&5
3807 echo "${ECHO_T}$CPP" >&6
3808 ac_preproc_ok=false
3809 for ac_c_preproc_warn_flag in '' yes
3811 # Use a header file that comes with gcc, so configuring glibc
3812 # with a fresh cross-compiler works.
3813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3814 # <limits.h> exists even on freestanding compilers.
3815 # On the NeXT, cc -E runs the code through the compiler's parser,
3816 # not just through cpp. "Syntax error" is here to catch this case.
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #ifdef __STDC__
3824 # include <limits.h>
3825 #else
3826 # include <assert.h>
3827 #endif
3828 Syntax error
3829 _ACEOF
3830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } >/dev/null; then
3838 if test -s conftest.err; then
3839 ac_cpp_err=$ac_c_preproc_warn_flag
3840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3841 else
3842 ac_cpp_err=
3844 else
3845 ac_cpp_err=yes
3847 if test -z "$ac_cpp_err"; then
3849 else
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 # Broken: fails on valid input.
3854 continue
3856 rm -f conftest.err conftest.$ac_ext
3858 # OK, works on sane cases. Now check whether non-existent headers
3859 # can be detected and how.
3860 cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h. */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3866 #include <ac_nonexistent.h>
3867 _ACEOF
3868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3870 ac_status=$?
3871 grep -v '^ *+' conftest.er1 >conftest.err
3872 rm -f conftest.er1
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } >/dev/null; then
3876 if test -s conftest.err; then
3877 ac_cpp_err=$ac_c_preproc_warn_flag
3878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3879 else
3880 ac_cpp_err=
3882 else
3883 ac_cpp_err=yes
3885 if test -z "$ac_cpp_err"; then
3886 # Broken: success on invalid input.
3887 continue
3888 else
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3892 # Passes both tests.
3893 ac_preproc_ok=:
3894 break
3896 rm -f conftest.err conftest.$ac_ext
3898 done
3899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3900 rm -f conftest.err conftest.$ac_ext
3901 if $ac_preproc_ok; then
3903 else
3904 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3905 See \`config.log' for more details." >&5
3906 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3907 See \`config.log' for more details." >&2;}
3908 { (exit 1); exit 1; }; }
3911 ac_ext=c
3912 ac_cpp='$CPP $CPPFLAGS'
3913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3917 # Find a good install program. We prefer a C program (faster),
3918 # so one script is as good as another. But avoid the broken or
3919 # incompatible versions:
3920 # SysV /etc/install, /usr/sbin/install
3921 # SunOS /usr/etc/install
3922 # IRIX /sbin/install
3923 # AIX /bin/install
3924 # AmigaOS /C/install, which installs bootblocks on floppy discs
3925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3928 # OS/2's system install, which has a completely different semantic
3929 # ./install, which can be erroneously created by make from ./install.sh.
3930 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3931 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3932 if test -z "$INSTALL"; then
3933 if test "${ac_cv_path_install+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 # Account for people who put trailing slashes in PATH elements.
3942 case $as_dir/ in
3943 ./ | .// | /cC/* | \
3944 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3945 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3946 /usr/ucb/* ) ;;
3948 # OSF1 and SCO ODT 3.0 have their own names for install.
3949 # Don't use installbsd from OSF since it installs stuff as root
3950 # by default.
3951 for ac_prog in ginstall scoinst install; do
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3954 if test $ac_prog = install &&
3955 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3956 # AIX install. It has an incompatible calling convention.
3958 elif test $ac_prog = install &&
3959 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3960 # program-specific install script used by HP pwplus--don't use.
3962 else
3963 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3964 break 3
3967 done
3968 done
3970 esac
3971 done
3975 if test "${ac_cv_path_install+set}" = set; then
3976 INSTALL=$ac_cv_path_install
3977 else
3978 # As a last resort, use the slow shell script. We don't cache a
3979 # path for INSTALL within a source directory, because that will
3980 # break other packages using the cache if that directory is
3981 # removed, or if the path is relative.
3982 INSTALL=$ac_install_sh
3985 echo "$as_me:$LINENO: result: $INSTALL" >&5
3986 echo "${ECHO_T}$INSTALL" >&6
3988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3989 # It thinks the first close brace ends the variable substitution.
3990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3996 if test "x$RANLIB" = x; then
3997 if test -n "$ac_tool_prefix"; then
3998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4000 echo "$as_me:$LINENO: checking for $ac_word" >&5
4001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4002 if test "${ac_cv_prog_RANLIB+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005 if test -n "$RANLIB"; then
4006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4007 else
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 break 2
4019 done
4020 done
4024 RANLIB=$ac_cv_prog_RANLIB
4025 if test -n "$RANLIB"; then
4026 echo "$as_me:$LINENO: result: $RANLIB" >&5
4027 echo "${ECHO_T}$RANLIB" >&6
4028 else
4029 echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6
4034 if test -z "$ac_cv_prog_RANLIB"; then
4035 ac_ct_RANLIB=$RANLIB
4036 # Extract the first word of "ranlib", so it can be a program name with args.
4037 set dummy ranlib; ac_word=$2
4038 echo "$as_me:$LINENO: checking for $ac_word" >&5
4039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4040 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043 if test -n "$ac_ct_RANLIB"; then
4044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4045 else
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_ac_ct_RANLIB="ranlib"
4054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4057 done
4058 done
4060 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4064 if test -n "$ac_ct_RANLIB"; then
4065 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4066 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4067 else
4068 echo "$as_me:$LINENO: result: no" >&5
4069 echo "${ECHO_T}no" >&6
4072 RANLIB=$ac_ct_RANLIB
4073 else
4074 RANLIB="$ac_cv_prog_RANLIB"
4078 # Extract the first word of "install-info", so it can be a program name with args.
4079 set dummy install-info; ac_word=$2
4080 echo "$as_me:$LINENO: checking for $ac_word" >&5
4081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4082 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085 case $INSTALL_INFO in
4086 [\\/]* | ?:[\\/]*)
4087 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4101 done
4102 done
4105 esac
4107 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4109 if test -n "$INSTALL_INFO"; then
4110 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4111 echo "${ECHO_T}$INSTALL_INFO" >&6
4112 else
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4117 # Extract the first word of "install-info", so it can be a program name with args.
4118 set dummy install-info; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124 case $INSTALL_INFO in
4125 [\\/]* | ?:[\\/]*)
4126 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in /usr/sbin
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4140 done
4141 done
4144 esac
4146 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4148 if test -n "$INSTALL_INFO"; then
4149 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4150 echo "${ECHO_T}$INSTALL_INFO" >&6
4151 else
4152 echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6
4156 # Extract the first word of "install-info", so it can be a program name with args.
4157 set dummy install-info; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 case $INSTALL_INFO in
4164 [\\/]* | ?:[\\/]*)
4165 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in /sbin
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 break 2
4179 done
4180 done
4182 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4184 esac
4186 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4188 if test -n "$INSTALL_INFO"; then
4189 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4190 echo "${ECHO_T}$INSTALL_INFO" >&6
4191 else
4192 echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4196 # Extract the first word of "gzip", so it can be a program name with args.
4197 set dummy gzip; ac_word=$2
4198 echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4200 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203 case $GZIP_PROG in
4204 [\\/]* | ?:[\\/]*)
4205 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4219 done
4220 done
4223 esac
4225 GZIP_PROG=$ac_cv_path_GZIP_PROG
4227 if test -n "$GZIP_PROG"; then
4228 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4229 echo "${ECHO_T}$GZIP_PROG" >&6
4230 else
4231 echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4237 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4238 then
4239 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4242 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4243 then
4244 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4248 late_LDFLAGS=$LDFLAGS
4249 if test "$GCC" = yes; then
4250 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4251 else
4252 LDFLAGS="$LDFLAGS -znocombreloc"
4255 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4256 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4258 cat >conftest.$ac_ext <<_ACEOF
4259 main(){return 0;}
4260 _ACEOF
4261 rm -f conftest.$ac_objext conftest$ac_exeext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4263 (eval $ac_link) 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; } &&
4276 { ac_try='test -s conftest$ac_exeext'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 (eval $ac_try) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 echo "$as_me:$LINENO: result: yes" >&5
4283 echo "${ECHO_T}yes" >&6
4284 else
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4288 LDFLAGS=$late_LDFLAGS
4289 echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4292 rm -f conftest.err conftest.$ac_objext \
4293 conftest$ac_exeext conftest.$ac_ext
4296 echo "$as_me:$LINENO: checking for egrep" >&5
4297 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4298 if test "${ac_cv_prog_egrep+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4302 then ac_cv_prog_egrep='grep -E'
4303 else ac_cv_prog_egrep='egrep'
4306 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4307 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4308 EGREP=$ac_cv_prog_egrep
4312 echo "$as_me:$LINENO: checking for AIX" >&5
4313 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 #ifdef _AIX
4322 #endif
4324 _ACEOF
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "yes" >/dev/null 2>&1; then
4327 echo "$as_me:$LINENO: result: yes" >&5
4328 echo "${ECHO_T}yes" >&6
4329 cat >>confdefs.h <<\_ACEOF
4330 #define _ALL_SOURCE 1
4331 _ACEOF
4333 else
4334 echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6
4337 rm -f conftest*
4342 #### Extract some information from the operating system and machine files.
4344 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4345 - which libraries the lib-src programs will want, and
4346 - whether the GNU malloc routines are usable..." >&5
4347 echo "$as_me: checking the machine- and system-dependent files to find out
4348 - which libraries the lib-src programs will want, and
4349 - whether the GNU malloc routines are usable..." >&6;}
4351 ### First figure out CFLAGS (which we use for running the compiler here)
4352 ### and REAL_CFLAGS (which we use for real compilation).
4353 ### The two are the same except on a few systems, where they are made
4354 ### different to work around various lossages. For example,
4355 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4356 ### as implying static linking.
4358 ### If the CFLAGS env var is specified, we use that value
4359 ### instead of the default.
4361 ### It's not important that this name contain the PID; you can't run
4362 ### two configures in the same directory and have anything work
4363 ### anyway.
4364 tempcname="conftest.c"
4366 echo '
4367 #include "'${srcdir}'/src/'${opsysfile}'"
4368 #include "'${srcdir}'/src/'${machfile}'"
4369 #ifndef LIBS_MACHINE
4370 #define LIBS_MACHINE
4371 #endif
4372 #ifndef LIBS_SYSTEM
4373 #define LIBS_SYSTEM
4374 #endif
4375 #ifndef C_SWITCH_SYSTEM
4376 #define C_SWITCH_SYSTEM
4377 #endif
4378 #ifndef C_SWITCH_MACHINE
4379 #define C_SWITCH_MACHINE
4380 #endif
4381 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4382 configure___ c_switch_system=C_SWITCH_SYSTEM
4383 configure___ c_switch_machine=C_SWITCH_MACHINE
4385 #ifndef LIB_X11_LIB
4386 #define LIB_X11_LIB -lX11
4387 #endif
4389 #ifndef LIBX11_MACHINE
4390 #define LIBX11_MACHINE
4391 #endif
4393 #ifndef LIBX11_SYSTEM
4394 #define LIBX11_SYSTEM
4395 #endif
4396 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4398 #ifdef UNEXEC
4399 configure___ unexec=UNEXEC
4400 #else
4401 configure___ unexec=unexec.o
4402 #endif
4404 #ifdef SYSTEM_MALLOC
4405 configure___ system_malloc=yes
4406 #else
4407 configure___ system_malloc=no
4408 #endif
4410 #ifdef USE_MMAP_FOR_BUFFERS
4411 configure___ use_mmap_for_buffers=yes
4412 #else
4413 configure___ use_mmap_for_buffers=no
4414 #endif
4416 #ifndef C_DEBUG_SWITCH
4417 #define C_DEBUG_SWITCH -g
4418 #endif
4420 #ifndef C_OPTIMIZE_SWITCH
4421 #ifdef __GNUC__
4422 #define C_OPTIMIZE_SWITCH -O2
4423 #else
4424 #define C_OPTIMIZE_SWITCH -O
4425 #endif
4426 #endif
4428 #ifndef LD_SWITCH_MACHINE
4429 #define LD_SWITCH_MACHINE
4430 #endif
4432 #ifndef LD_SWITCH_SYSTEM
4433 #define LD_SWITCH_SYSTEM
4434 #endif
4436 #ifndef LD_SWITCH_X_SITE_AUX
4437 #define LD_SWITCH_X_SITE_AUX
4438 #endif
4440 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4441 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4443 #ifdef THIS_IS_CONFIGURE
4445 /* Get the CFLAGS for tests in configure. */
4446 #ifdef __GNUC__
4447 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4448 #else
4449 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4450 #endif
4452 #else /* not THIS_IS_CONFIGURE */
4454 /* Get the CFLAGS for real compilation. */
4455 #ifdef __GNUC__
4456 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4457 #else
4458 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4459 #endif
4461 #endif /* not THIS_IS_CONFIGURE */
4462 ' > ${tempcname}
4464 # The value of CPP is a quoted variable reference, so we need to do this
4465 # to get its actual value...
4466 CPP=`eval "echo $CPP"`
4467 eval `${CPP} -Isrc ${tempcname} \
4468 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4469 if test "x$SPECIFIED_CFLAGS" = x; then
4470 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4471 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4472 else
4473 REAL_CFLAGS="$CFLAGS"
4475 rm ${tempcname}
4477 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4479 ### Make sure subsequent tests use flags consistent with the build flags.
4481 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4482 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4483 else
4484 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4490 cat >>confdefs.h <<\_ACEOF
4491 #define _GNU_SOURCE 1
4492 _ACEOF
4496 # Check whether --enable-largefile or --disable-largefile was given.
4497 if test "${enable_largefile+set}" = set; then
4498 enableval="$enable_largefile"
4501 if test "$enable_largefile" != no; then
4503 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4504 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4505 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508 ac_cv_sys_largefile_CC=no
4509 if test "$GCC" != yes; then
4510 ac_save_CC=$CC
4511 while :; do
4512 # IRIX 6.2 and later do not support large files by default,
4513 # so use the C compiler's -n32 option if that helps.
4514 cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h. */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 #include <sys/types.h>
4521 /* Check that off_t can represent 2**63 - 1 correctly.
4522 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4523 since some C++ compilers masquerading as C compilers
4524 incorrectly reject 9223372036854775807. */
4525 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4526 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4527 && LARGE_OFF_T % 2147483647 == 1)
4528 ? 1 : -1];
4530 main ()
4534 return 0;
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>conftest.er1
4540 ac_status=$?
4541 grep -v '^ *+' conftest.er1 >conftest.err
4542 rm -f conftest.er1
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 (eval $ac_try) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; } &&
4552 { ac_try='test -s conftest.$ac_objext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 break
4559 else
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4564 rm -f conftest.err conftest.$ac_objext
4565 CC="$CC -n32"
4566 rm -f conftest.$ac_objext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4568 (eval $ac_compile) 2>conftest.er1
4569 ac_status=$?
4570 grep -v '^ *+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; } &&
4581 { ac_try='test -s conftest.$ac_objext'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 (eval $ac_try) 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 ac_cv_sys_largefile_CC=' -n32'; break
4588 else
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4593 rm -f conftest.err conftest.$ac_objext
4594 break
4595 done
4596 CC=$ac_save_CC
4597 rm -f conftest.$ac_ext
4600 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4601 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4602 if test "$ac_cv_sys_largefile_CC" != no; then
4603 CC=$CC$ac_cv_sys_largefile_CC
4606 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4607 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4608 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 while :; do
4612 ac_cv_sys_file_offset_bits=no
4613 cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h. */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 #include <sys/types.h>
4620 /* Check that off_t can represent 2**63 - 1 correctly.
4621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4622 since some C++ compilers masquerading as C compilers
4623 incorrectly reject 9223372036854775807. */
4624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4626 && LARGE_OFF_T % 2147483647 == 1)
4627 ? 1 : -1];
4629 main ()
4633 return 0;
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>conftest.er1
4639 ac_status=$?
4640 grep -v '^ *+' conftest.er1 >conftest.err
4641 rm -f conftest.er1
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 break
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664 cat >conftest.$ac_ext <<_ACEOF
4665 /* confdefs.h. */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 #define _FILE_OFFSET_BITS 64
4671 #include <sys/types.h>
4672 /* Check that off_t can represent 2**63 - 1 correctly.
4673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4674 since some C++ compilers masquerading as C compilers
4675 incorrectly reject 9223372036854775807. */
4676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4678 && LARGE_OFF_T % 2147483647 == 1)
4679 ? 1 : -1];
4681 main ()
4685 return 0;
4687 _ACEOF
4688 rm -f conftest.$ac_objext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>conftest.er1
4691 ac_status=$?
4692 grep -v '^ *+' conftest.er1 >conftest.err
4693 rm -f conftest.er1
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; } &&
4703 { ac_try='test -s conftest.$ac_objext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 (eval $ac_try) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_cv_sys_file_offset_bits=64; break
4710 else
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4716 break
4717 done
4719 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4720 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4721 if test "$ac_cv_sys_file_offset_bits" != no; then
4723 cat >>confdefs.h <<_ACEOF
4724 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4725 _ACEOF
4728 rm -f conftest*
4729 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4730 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4731 if test "${ac_cv_sys_large_files+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 else
4734 while :; do
4735 ac_cv_sys_large_files=no
4736 cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h. */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 #include <sys/types.h>
4743 /* Check that off_t can represent 2**63 - 1 correctly.
4744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4745 since some C++ compilers masquerading as C compilers
4746 incorrectly reject 9223372036854775807. */
4747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4749 && LARGE_OFF_T % 2147483647 == 1)
4750 ? 1 : -1];
4752 main ()
4756 return 0;
4758 _ACEOF
4759 rm -f conftest.$ac_objext
4760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4761 (eval $ac_compile) 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } &&
4768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 (eval $ac_try) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 break
4781 else
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4787 cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h. */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 #define _LARGE_FILES 1
4794 #include <sys/types.h>
4795 /* Check that off_t can represent 2**63 - 1 correctly.
4796 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4797 since some C++ compilers masquerading as C compilers
4798 incorrectly reject 9223372036854775807. */
4799 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4800 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4801 && LARGE_OFF_T % 2147483647 == 1)
4802 ? 1 : -1];
4804 main ()
4808 return 0;
4810 _ACEOF
4811 rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813 (eval $ac_compile) 2>conftest.er1
4814 ac_status=$?
4815 grep -v '^ *+' conftest.er1 >conftest.err
4816 rm -f conftest.er1
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_cv_sys_large_files=1; break
4833 else
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839 break
4840 done
4842 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4843 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4844 if test "$ac_cv_sys_large_files" != no; then
4846 cat >>confdefs.h <<_ACEOF
4847 #define _LARGE_FILES $ac_cv_sys_large_files
4848 _ACEOF
4851 rm -f conftest*
4855 if test "${with_sound}" != "no"; then
4856 # Sound support for GNU/Linux and the free BSDs.
4857 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4858 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4859 if test "${ac_cv_header_stdc+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862 cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h. */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4868 #include <stdlib.h>
4869 #include <stdarg.h>
4870 #include <string.h>
4871 #include <float.h>
4874 main ()
4878 return 0;
4880 _ACEOF
4881 rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; } &&
4896 { ac_try='test -s conftest.$ac_objext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 (eval $ac_try) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 ac_cv_header_stdc=yes
4903 else
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 ac_cv_header_stdc=no
4909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4911 if test $ac_cv_header_stdc = yes; then
4912 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 #include <string.h>
4921 _ACEOF
4922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4923 $EGREP "memchr" >/dev/null 2>&1; then
4925 else
4926 ac_cv_header_stdc=no
4928 rm -f conftest*
4932 if test $ac_cv_header_stdc = yes; then
4933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4934 cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h. */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 #include <stdlib.h>
4942 _ACEOF
4943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4944 $EGREP "free" >/dev/null 2>&1; then
4946 else
4947 ac_cv_header_stdc=no
4949 rm -f conftest*
4953 if test $ac_cv_header_stdc = yes; then
4954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4955 if test "$cross_compiling" = yes; then
4957 else
4958 cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h. */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 #include <ctype.h>
4965 #if ((' ' & 0x0FF) == 0x020)
4966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4968 #else
4969 # define ISLOWER(c) \
4970 (('a' <= (c) && (c) <= 'i') \
4971 || ('j' <= (c) && (c) <= 'r') \
4972 || ('s' <= (c) && (c) <= 'z'))
4973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4974 #endif
4976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4978 main ()
4980 int i;
4981 for (i = 0; i < 256; i++)
4982 if (XOR (islower (i), ISLOWER (i))
4983 || toupper (i) != TOUPPER (i))
4984 exit(2);
4985 exit (0);
4987 _ACEOF
4988 rm -f conftest$ac_exeext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4990 (eval $ac_link) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
5000 else
5001 echo "$as_me: program exited with status $ac_status" >&5
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5005 ( exit $ac_status )
5006 ac_cv_header_stdc=no
5008 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5012 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5013 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5014 if test $ac_cv_header_stdc = yes; then
5016 cat >>confdefs.h <<\_ACEOF
5017 #define STDC_HEADERS 1
5018 _ACEOF
5022 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5032 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5033 inttypes.h stdint.h unistd.h
5035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5036 echo "$as_me:$LINENO: checking for $ac_header" >&5
5037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041 cat >conftest.$ac_ext <<_ACEOF
5042 /* confdefs.h. */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5047 $ac_includes_default
5049 #include <$ac_header>
5050 _ACEOF
5051 rm -f conftest.$ac_objext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053 (eval $ac_compile) 2>conftest.er1
5054 ac_status=$?
5055 grep -v '^ *+' conftest.er1 >conftest.err
5056 rm -f conftest.er1
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062 (eval $ac_try) 2>&5
5063 ac_status=$?
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; } &&
5066 { ac_try='test -s conftest.$ac_objext'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 (eval $ac_try) 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5072 eval "$as_ac_Header=yes"
5073 else
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5077 eval "$as_ac_Header=no"
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5084 cat >>confdefs.h <<_ACEOF
5085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5086 _ACEOF
5090 done
5096 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5100 echo "$as_me:$LINENO: checking for $ac_header" >&5
5101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5107 else
5108 # Is the header compilable?
5109 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h. */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 $ac_includes_default
5118 #include <$ac_header>
5119 _ACEOF
5120 rm -f conftest.$ac_objext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5122 (eval $ac_compile) 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
5129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest.$ac_objext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_header_compiler=yes
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 ac_header_compiler=no
5148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5150 echo "${ECHO_T}$ac_header_compiler" >&6
5152 # Is the header present?
5153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5155 cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h. */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5161 #include <$ac_header>
5162 _ACEOF
5163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } >/dev/null; then
5171 if test -s conftest.err; then
5172 ac_cpp_err=$ac_c_preproc_warn_flag
5173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5174 else
5175 ac_cpp_err=
5177 else
5178 ac_cpp_err=yes
5180 if test -z "$ac_cpp_err"; then
5181 ac_header_preproc=yes
5182 else
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186 ac_header_preproc=no
5188 rm -f conftest.err conftest.$ac_ext
5189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5190 echo "${ECHO_T}$ac_header_preproc" >&6
5192 # So? What about this header?
5193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5194 yes:no: )
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5199 ac_header_preproc=yes
5201 no:yes:* )
5202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5215 cat <<\_ASBOX
5216 ## ------------------------------------------ ##
5217 ## Report this to the AC_PACKAGE_NAME lists. ##
5218 ## ------------------------------------------ ##
5219 _ASBOX
5221 sed "s/^/$as_me: WARNING: /" >&2
5223 esac
5224 echo "$as_me:$LINENO: checking for $ac_header" >&5
5225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 eval "$as_ac_Header=\$ac_header_preproc"
5231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5236 cat >>confdefs.h <<_ACEOF
5237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5238 _ACEOF
5242 done
5244 # Emulation library used on NetBSD.
5245 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5246 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5247 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250 ac_check_lib_save_LIBS=$LIBS
5251 LIBS="-lossaudio $LIBS"
5252 cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h. */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5259 /* Override any gcc2 internal prototype to avoid an error. */
5260 #ifdef __cplusplus
5261 extern "C"
5262 #endif
5263 /* We use char because int might match the return type of a gcc2
5264 builtin and then its argument prototype would still apply. */
5265 char _oss_ioctl ();
5267 main ()
5269 _oss_ioctl ();
5271 return 0;
5273 _ACEOF
5274 rm -f conftest.$ac_objext conftest$ac_exeext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5276 (eval $ac_link) 2>conftest.er1
5277 ac_status=$?
5278 grep -v '^ *+' conftest.er1 >conftest.err
5279 rm -f conftest.er1
5280 cat conftest.err >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 (eval $ac_try) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; } &&
5289 { ac_try='test -s conftest$ac_exeext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 ac_cv_lib_ossaudio__oss_ioctl=yes
5296 else
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5300 ac_cv_lib_ossaudio__oss_ioctl=no
5302 rm -f conftest.err conftest.$ac_objext \
5303 conftest$ac_exeext conftest.$ac_ext
5304 LIBS=$ac_check_lib_save_LIBS
5306 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5307 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5308 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5309 LIBSOUND=-lossaudio
5310 else
5311 LIBSOUND=
5342 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5343 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5344 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5345 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5346 sys/utsname.h pwd.h
5348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5350 echo "$as_me:$LINENO: checking for $ac_header" >&5
5351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5357 else
5358 # Is the header compilable?
5359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5361 cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h. */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 $ac_includes_default
5368 #include <$ac_header>
5369 _ACEOF
5370 rm -f conftest.$ac_objext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5372 (eval $ac_compile) 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
5379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 (eval $ac_try) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; } &&
5385 { ac_try='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 (eval $ac_try) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5391 ac_header_compiler=yes
5392 else
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5396 ac_header_compiler=no
5398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5400 echo "${ECHO_T}$ac_header_compiler" >&6
5402 # Is the header present?
5403 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5405 cat >conftest.$ac_ext <<_ACEOF
5406 /* confdefs.h. */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <$ac_header>
5412 _ACEOF
5413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5415 ac_status=$?
5416 grep -v '^ *+' conftest.er1 >conftest.err
5417 rm -f conftest.er1
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } >/dev/null; then
5421 if test -s conftest.err; then
5422 ac_cpp_err=$ac_c_preproc_warn_flag
5423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5424 else
5425 ac_cpp_err=
5427 else
5428 ac_cpp_err=yes
5430 if test -z "$ac_cpp_err"; then
5431 ac_header_preproc=yes
5432 else
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5436 ac_header_preproc=no
5438 rm -f conftest.err conftest.$ac_ext
5439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5440 echo "${ECHO_T}$ac_header_preproc" >&6
5442 # So? What about this header?
5443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5444 yes:no: )
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5449 ac_header_preproc=yes
5451 no:yes:* )
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5465 cat <<\_ASBOX
5466 ## ------------------------------------------ ##
5467 ## Report this to the AC_PACKAGE_NAME lists. ##
5468 ## ------------------------------------------ ##
5469 _ASBOX
5471 sed "s/^/$as_me: WARNING: /" >&2
5473 esac
5474 echo "$as_me:$LINENO: checking for $ac_header" >&5
5475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479 eval "$as_ac_Header=\$ac_header_preproc"
5481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5486 cat >>confdefs.h <<_ACEOF
5487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5488 _ACEOF
5492 done
5495 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5496 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 #include <sys/personality.h>
5505 main ()
5507 personality (PER_LINUX32)
5509 return 0;
5511 _ACEOF
5512 rm -f conftest.$ac_objext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5514 (eval $ac_compile) 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 (eval $ac_try) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; } &&
5527 { ac_try='test -s conftest.$ac_objext'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 (eval $ac_try) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 emacs_cv_personality_linux32=yes
5534 else
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5538 emacs_cv_personality_linux32=no
5540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5541 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5542 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5544 if test $emacs_cv_personality_linux32 = yes; then
5546 cat >>confdefs.h <<\_ACEOF
5547 #define HAVE_PERSONALITY_LINUX32 1
5548 _ACEOF
5553 for ac_header in term.h
5555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5556 echo "$as_me:$LINENO: checking for $ac_header" >&5
5557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 #include <$ac_header>
5568 _ACEOF
5569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5571 ac_status=$?
5572 grep -v '^ *+' conftest.er1 >conftest.err
5573 rm -f conftest.er1
5574 cat conftest.err >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } >/dev/null; then
5577 if test -s conftest.err; then
5578 ac_cpp_err=$ac_c_preproc_warn_flag
5579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5580 else
5581 ac_cpp_err=
5583 else
5584 ac_cpp_err=yes
5586 if test -z "$ac_cpp_err"; then
5587 eval "$as_ac_Header=yes"
5588 else
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5592 eval "$as_ac_Header=no"
5594 rm -f conftest.err conftest.$ac_ext
5596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5599 cat >>confdefs.h <<_ACEOF
5600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5601 _ACEOF
5605 done
5607 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5608 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5609 if test "${ac_cv_header_stdc+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h. */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 #include <stdlib.h>
5619 #include <stdarg.h>
5620 #include <string.h>
5621 #include <float.h>
5624 main ()
5628 return 0;
5630 _ACEOF
5631 rm -f conftest.$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest.$ac_objext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_header_stdc=yes
5653 else
5654 echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5657 ac_cv_header_stdc=no
5659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5661 if test $ac_cv_header_stdc = yes; then
5662 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 #include <string.h>
5671 _ACEOF
5672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5673 $EGREP "memchr" >/dev/null 2>&1; then
5675 else
5676 ac_cv_header_stdc=no
5678 rm -f conftest*
5682 if test $ac_cv_header_stdc = yes; then
5683 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h. */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 #include <stdlib.h>
5692 _ACEOF
5693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5694 $EGREP "free" >/dev/null 2>&1; then
5696 else
5697 ac_cv_header_stdc=no
5699 rm -f conftest*
5703 if test $ac_cv_header_stdc = yes; then
5704 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5705 if test "$cross_compiling" = yes; then
5707 else
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #include <ctype.h>
5715 #if ((' ' & 0x0FF) == 0x020)
5716 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5717 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5718 #else
5719 # define ISLOWER(c) \
5720 (('a' <= (c) && (c) <= 'i') \
5721 || ('j' <= (c) && (c) <= 'r') \
5722 || ('s' <= (c) && (c) <= 'z'))
5723 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5724 #endif
5726 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5728 main ()
5730 int i;
5731 for (i = 0; i < 256; i++)
5732 if (XOR (islower (i), ISLOWER (i))
5733 || toupper (i) != TOUPPER (i))
5734 exit(2);
5735 exit (0);
5737 _ACEOF
5738 rm -f conftest$ac_exeext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5740 (eval $ac_link) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5750 else
5751 echo "$as_me: program exited with status $ac_status" >&5
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 ( exit $ac_status )
5756 ac_cv_header_stdc=no
5758 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5762 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5763 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5764 if test $ac_cv_header_stdc = yes; then
5766 cat >>confdefs.h <<\_ACEOF
5767 #define STDC_HEADERS 1
5768 _ACEOF
5772 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5773 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5774 if test "${ac_cv_header_time+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777 cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h. */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5783 #include <sys/types.h>
5784 #include <sys/time.h>
5785 #include <time.h>
5788 main ()
5790 if ((struct tm *) 0)
5791 return 0;
5793 return 0;
5795 _ACEOF
5796 rm -f conftest.$ac_objext
5797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5798 (eval $ac_compile) 2>conftest.er1
5799 ac_status=$?
5800 grep -v '^ *+' conftest.er1 >conftest.err
5801 rm -f conftest.er1
5802 cat conftest.err >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } &&
5805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 (eval $ac_try) 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; } &&
5811 { ac_try='test -s conftest.$ac_objext'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 (eval $ac_try) 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 ac_cv_header_time=yes
5818 else
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5822 ac_cv_header_time=no
5824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5826 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5827 echo "${ECHO_T}$ac_cv_header_time" >&6
5828 if test $ac_cv_header_time = yes; then
5830 cat >>confdefs.h <<\_ACEOF
5831 #define TIME_WITH_SYS_TIME 1
5832 _ACEOF
5836 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5837 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5838 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841 cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h. */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 $ac_includes_default
5849 main ()
5851 #ifndef sys_siglist
5852 char *p = (char *) sys_siglist;
5853 #endif
5856 return 0;
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>conftest.er1
5862 ac_status=$?
5863 grep -v '^ *+' conftest.er1 >conftest.err
5864 rm -f conftest.er1
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_have_decl_sys_siglist=yes
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 ac_cv_have_decl_sys_siglist=no
5887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5889 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5890 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5891 if test $ac_cv_have_decl_sys_siglist = yes; then
5893 cat >>confdefs.h <<_ACEOF
5894 #define HAVE_DECL_SYS_SIGLIST 1
5895 _ACEOF
5898 else
5899 cat >>confdefs.h <<_ACEOF
5900 #define HAVE_DECL_SYS_SIGLIST 0
5901 _ACEOF
5907 if test $ac_cv_have_decl_sys_siglist != yes; then
5908 # For Tru64, at least:
5909 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5910 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5911 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 $ac_includes_default
5922 main ()
5924 #ifndef __sys_siglist
5925 char *p = (char *) __sys_siglist;
5926 #endif
5929 return 0;
5931 _ACEOF
5932 rm -f conftest.$ac_objext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934 (eval $ac_compile) 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; } &&
5947 { ac_try='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_cv_have_decl___sys_siglist=yes
5954 else
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5958 ac_cv_have_decl___sys_siglist=no
5960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5962 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5963 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5964 if test $ac_cv_have_decl___sys_siglist = yes; then
5966 cat >>confdefs.h <<_ACEOF
5967 #define HAVE_DECL___SYS_SIGLIST 1
5968 _ACEOF
5971 else
5972 cat >>confdefs.h <<_ACEOF
5973 #define HAVE_DECL___SYS_SIGLIST 0
5974 _ACEOF
5980 if test $ac_cv_have_decl___sys_siglist = yes; then
5982 cat >>confdefs.h <<\_ACEOF
5983 #define sys_siglist __sys_siglist
5984 _ACEOF
5988 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5989 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5990 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h. */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 #include <sys/types.h>
6000 #include <sys/wait.h>
6001 #ifndef WEXITSTATUS
6002 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6003 #endif
6004 #ifndef WIFEXITED
6005 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6006 #endif
6009 main ()
6011 int s;
6012 wait (&s);
6013 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6015 return 0;
6017 _ACEOF
6018 rm -f conftest.$ac_objext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6020 (eval $ac_compile) 2>conftest.er1
6021 ac_status=$?
6022 grep -v '^ *+' conftest.er1 >conftest.err
6023 rm -f conftest.er1
6024 cat conftest.err >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } &&
6027 { ac_try='test -z "$ac_c_werror_flag" || 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_header_sys_wait_h=yes
6040 else
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 ac_cv_header_sys_wait_h=no
6046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6048 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6049 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6050 if test $ac_cv_header_sys_wait_h = yes; then
6052 cat >>confdefs.h <<\_ACEOF
6053 #define HAVE_SYS_WAIT_H 1
6054 _ACEOF
6059 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6060 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6061 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #ifdef TIME_WITH_SYS_TIME
6071 #include <sys/time.h>
6072 #include <time.h>
6073 #else
6074 #ifdef HAVE_SYS_TIME_H
6075 #include <sys/time.h>
6076 #else
6077 #include <time.h>
6078 #endif
6079 #endif
6080 #ifdef HAVE_UTIME_H
6081 #include <utime.h>
6082 #endif
6084 main ()
6086 static struct utimbuf x; x.actime = x.modtime;
6088 return 0;
6090 _ACEOF
6091 rm -f conftest.$ac_objext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093 (eval $ac_compile) 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 (eval $ac_try) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; } &&
6106 { ac_try='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 emacs_cv_struct_utimbuf=yes
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6117 emacs_cv_struct_utimbuf=no
6119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6121 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6122 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6123 if test $emacs_cv_struct_utimbuf = yes; then
6125 cat >>confdefs.h <<\_ACEOF
6126 #define HAVE_STRUCT_UTIMBUF 1
6127 _ACEOF
6131 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6132 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6133 if test "${ac_cv_type_signal+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 #include <sys/types.h>
6143 #include <signal.h>
6144 #ifdef signal
6145 # undef signal
6146 #endif
6147 #ifdef __cplusplus
6148 extern "C" void (*signal (int, void (*)(int)))(int);
6149 #else
6150 void (*signal ()) ();
6151 #endif
6154 main ()
6156 int i;
6158 return 0;
6160 _ACEOF
6161 rm -f conftest.$ac_objext
6162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6163 (eval $ac_compile) 2>conftest.er1
6164 ac_status=$?
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } &&
6170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest.$ac_objext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_type_signal=void
6183 else
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6187 ac_cv_type_signal=int
6189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6191 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6192 echo "${ECHO_T}$ac_cv_type_signal" >&6
6194 cat >>confdefs.h <<_ACEOF
6195 #define RETSIGTYPE $ac_cv_type_signal
6196 _ACEOF
6200 echo "$as_me:$LINENO: checking for speed_t" >&5
6201 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6202 if test "${emacs_cv_speed_t+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 #include <termios.h>
6213 main ()
6215 speed_t x = 1;
6217 return 0;
6219 _ACEOF
6220 rm -f conftest.$ac_objext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6222 (eval $ac_compile) 2>conftest.er1
6223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 (eval $ac_try) 2>&5
6232 ac_status=$?
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; } &&
6235 { ac_try='test -s conftest.$ac_objext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 (eval $ac_try) 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 emacs_cv_speed_t=yes
6242 else
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 emacs_cv_speed_t=no
6248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6250 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6251 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6252 if test $emacs_cv_speed_t = yes; then
6254 cat >>confdefs.h <<\_ACEOF
6255 #define HAVE_SPEED_T 1
6256 _ACEOF
6260 echo "$as_me:$LINENO: checking for struct timeval" >&5
6261 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6262 if test "${emacs_cv_struct_timeval+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h. */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6271 #ifdef TIME_WITH_SYS_TIME
6272 #include <sys/time.h>
6273 #include <time.h>
6274 #else
6275 #ifdef HAVE_SYS_TIME_H
6276 #include <sys/time.h>
6277 #else
6278 #include <time.h>
6279 #endif
6280 #endif
6282 main ()
6284 static struct timeval x; x.tv_sec = x.tv_usec;
6286 return 0;
6288 _ACEOF
6289 rm -f conftest.$ac_objext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6291 (eval $ac_compile) 2>conftest.er1
6292 ac_status=$?
6293 grep -v '^ *+' conftest.er1 >conftest.err
6294 rm -f conftest.er1
6295 cat conftest.err >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 (eval $ac_try) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; } &&
6304 { ac_try='test -s conftest.$ac_objext'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 (eval $ac_try) 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }; then
6310 emacs_cv_struct_timeval=yes
6311 else
6312 echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6315 emacs_cv_struct_timeval=no
6317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6319 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6320 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6321 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6322 if test $emacs_cv_struct_timeval = yes; then
6324 cat >>confdefs.h <<\_ACEOF
6325 #define HAVE_TIMEVAL 1
6326 _ACEOF
6330 echo "$as_me:$LINENO: checking for struct exception" >&5
6331 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6332 if test "${emacs_cv_struct_exception+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 #include <math.h>
6343 main ()
6345 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6347 return 0;
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352 (eval $ac_compile) 2>conftest.er1
6353 ac_status=$?
6354 grep -v '^ *+' conftest.er1 >conftest.err
6355 rm -f conftest.er1
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; } &&
6365 { ac_try='test -s conftest.$ac_objext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 emacs_cv_struct_exception=yes
6372 else
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 emacs_cv_struct_exception=no
6378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6380 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6381 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6382 HAVE_EXCEPTION=$emacs_cv_struct_exception
6383 if test $emacs_cv_struct_exception != yes; then
6385 cat >>confdefs.h <<\_ACEOF
6386 #define NO_MATHERR 1
6387 _ACEOF
6392 for ac_header in sys/socket.h
6394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396 echo "$as_me:$LINENO: checking for $ac_header" >&5
6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6403 else
6404 # Is the header compilable?
6405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 $ac_includes_default
6414 #include <$ac_header>
6415 _ACEOF
6416 rm -f conftest.$ac_objext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418 (eval $ac_compile) 2>conftest.er1
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 (eval $ac_try) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; } &&
6431 { ac_try='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 ac_header_compiler=yes
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 ac_header_compiler=no
6444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6446 echo "${ECHO_T}$ac_header_compiler" >&6
6448 # Is the header present?
6449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6452 /* confdefs.h. */
6453 _ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 #include <$ac_header>
6458 _ACEOF
6459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6461 ac_status=$?
6462 grep -v '^ *+' conftest.er1 >conftest.err
6463 rm -f conftest.er1
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } >/dev/null; then
6467 if test -s conftest.err; then
6468 ac_cpp_err=$ac_c_preproc_warn_flag
6469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6470 else
6471 ac_cpp_err=
6473 else
6474 ac_cpp_err=yes
6476 if test -z "$ac_cpp_err"; then
6477 ac_header_preproc=yes
6478 else
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6482 ac_header_preproc=no
6484 rm -f conftest.err conftest.$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6486 echo "${ECHO_T}$ac_header_preproc" >&6
6488 # So? What about this header?
6489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6490 yes:no: )
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6495 ac_header_preproc=yes
6497 no:yes:* )
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6511 cat <<\_ASBOX
6512 ## ------------------------------------------ ##
6513 ## Report this to the AC_PACKAGE_NAME lists. ##
6514 ## ------------------------------------------ ##
6515 _ASBOX
6517 sed "s/^/$as_me: WARNING: /" >&2
6519 esac
6520 echo "$as_me:$LINENO: checking for $ac_header" >&5
6521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525 eval "$as_ac_Header=\$ac_header_preproc"
6527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6532 cat >>confdefs.h <<_ACEOF
6533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6534 _ACEOF
6538 done
6541 for ac_header in net/if.h
6543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6544 echo "$as_me:$LINENO: checking for $ac_header" >&5
6545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549 cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h. */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6555 $ac_includes_default
6556 #if HAVE_SYS_SOCKET_H
6557 #include <sys/socket.h>
6558 #endif
6560 #include <$ac_header>
6561 _ACEOF
6562 rm -f conftest.$ac_objext
6563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6564 (eval $ac_compile) 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } &&
6571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 (eval $ac_try) 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; } &&
6577 { ac_try='test -s conftest.$ac_objext'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 (eval $ac_try) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6583 eval "$as_ac_Header=yes"
6584 else
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6588 eval "$as_ac_Header=no"
6590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6595 cat >>confdefs.h <<_ACEOF
6596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597 _ACEOF
6601 done
6604 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6605 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6606 if test "${ac_cv_struct_tm+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609 cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h. */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 #include <sys/types.h>
6616 #include <time.h>
6619 main ()
6621 struct tm *tp; tp->tm_sec;
6623 return 0;
6625 _ACEOF
6626 rm -f conftest.$ac_objext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6628 (eval $ac_compile) 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; } &&
6641 { ac_try='test -s conftest.$ac_objext'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 (eval $ac_try) 2>&5
6644 ac_status=$?
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 ac_cv_struct_tm=time.h
6648 else
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6652 ac_cv_struct_tm=sys/time.h
6654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6656 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6657 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6658 if test $ac_cv_struct_tm = sys/time.h; then
6660 cat >>confdefs.h <<\_ACEOF
6661 #define TM_IN_SYS_TIME 1
6662 _ACEOF
6666 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6667 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6668 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 #include <sys/types.h>
6678 #include <$ac_cv_struct_tm>
6682 main ()
6684 static struct tm ac_aggr;
6685 if (ac_aggr.tm_zone)
6686 return 0;
6688 return 0;
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 (eval $ac_try) 2>&5
6703 ac_status=$?
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; } &&
6706 { ac_try='test -s conftest.$ac_objext'
6707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 (eval $ac_try) 2>&5
6709 ac_status=$?
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); }; }; then
6712 ac_cv_member_struct_tm_tm_zone=yes
6713 else
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h. */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <sys/types.h>
6724 #include <$ac_cv_struct_tm>
6728 main ()
6730 static struct tm ac_aggr;
6731 if (sizeof ac_aggr.tm_zone)
6732 return 0;
6734 return 0;
6736 _ACEOF
6737 rm -f conftest.$ac_objext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739 (eval $ac_compile) 2>conftest.er1
6740 ac_status=$?
6741 grep -v '^ *+' conftest.er1 >conftest.err
6742 rm -f conftest.er1
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } &&
6746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; } &&
6752 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6758 ac_cv_member_struct_tm_tm_zone=yes
6759 else
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 ac_cv_member_struct_tm_tm_zone=no
6765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6769 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6770 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6771 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6773 cat >>confdefs.h <<_ACEOF
6774 #define HAVE_STRUCT_TM_TM_ZONE 1
6775 _ACEOF
6780 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6782 cat >>confdefs.h <<\_ACEOF
6783 #define HAVE_TM_ZONE 1
6784 _ACEOF
6786 else
6787 echo "$as_me:$LINENO: checking for tzname" >&5
6788 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6789 if test "${ac_cv_var_tzname+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792 cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h. */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <time.h>
6799 #ifndef tzname /* For SGI. */
6800 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6801 #endif
6804 main ()
6806 atoi(*tzname);
6808 return 0;
6810 _ACEOF
6811 rm -f conftest.$ac_objext conftest$ac_exeext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813 (eval $ac_link) 2>conftest.er1
6814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; } &&
6826 { ac_try='test -s conftest$ac_exeext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 ac_cv_var_tzname=yes
6833 else
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6837 ac_cv_var_tzname=no
6839 rm -f conftest.err conftest.$ac_objext \
6840 conftest$ac_exeext conftest.$ac_ext
6842 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6843 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6844 if test $ac_cv_var_tzname = yes; then
6846 cat >>confdefs.h <<\_ACEOF
6847 #define HAVE_TZNAME 1
6848 _ACEOF
6853 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6854 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6855 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858 cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h. */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 #include <time.h>
6867 main ()
6869 static struct tm ac_aggr;
6870 if (ac_aggr.tm_gmtoff)
6871 return 0;
6873 return 0;
6875 _ACEOF
6876 rm -f conftest.$ac_objext
6877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6878 (eval $ac_compile) 2>conftest.er1
6879 ac_status=$?
6880 grep -v '^ *+' conftest.er1 >conftest.err
6881 rm -f conftest.er1
6882 cat conftest.err >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } &&
6885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; } &&
6891 { ac_try='test -s conftest.$ac_objext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 ac_cv_member_struct_tm_tm_gmtoff=yes
6898 else
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6902 cat >conftest.$ac_ext <<_ACEOF
6903 /* confdefs.h. */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 #include <time.h>
6911 main ()
6913 static struct tm ac_aggr;
6914 if (sizeof ac_aggr.tm_gmtoff)
6915 return 0;
6917 return 0;
6919 _ACEOF
6920 rm -f conftest.$ac_objext
6921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922 (eval $ac_compile) 2>conftest.er1
6923 ac_status=$?
6924 grep -v '^ *+' conftest.er1 >conftest.err
6925 rm -f conftest.er1
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
6929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 (eval $ac_try) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; } &&
6935 { ac_try='test -s conftest.$ac_objext'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
6941 ac_cv_member_struct_tm_tm_gmtoff=yes
6942 else
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6946 ac_cv_member_struct_tm_tm_gmtoff=no
6948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6952 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6953 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6954 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6956 cat >>confdefs.h <<\_ACEOF
6957 #define HAVE_TM_GMTOFF 1
6958 _ACEOF
6962 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6963 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6964 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967 cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h. */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 $ac_includes_default
6974 #if HAVE_SYS_SOCKET_H
6975 #include <sys/socket.h>
6976 #endif
6977 #if HAVE_NET_IF_H
6978 #include <net/if.h>
6979 #endif
6982 main ()
6984 static struct ifreq ac_aggr;
6985 if (ac_aggr.ifr_flags)
6986 return 0;
6988 return 0;
6990 _ACEOF
6991 rm -f conftest.$ac_objext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6993 (eval $ac_compile) 2>conftest.er1
6994 ac_status=$?
6995 grep -v '^ *+' conftest.er1 >conftest.err
6996 rm -f conftest.er1
6997 cat conftest.err >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } &&
7000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; } &&
7006 { ac_try='test -s conftest.$ac_objext'
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 (eval $ac_try) 2>&5
7009 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then
7012 ac_cv_member_struct_ifreq_ifr_flags=yes
7013 else
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7017 cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h. */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 $ac_includes_default
7024 #if HAVE_SYS_SOCKET_H
7025 #include <sys/socket.h>
7026 #endif
7027 #if HAVE_NET_IF_H
7028 #include <net/if.h>
7029 #endif
7032 main ()
7034 static struct ifreq ac_aggr;
7035 if (sizeof ac_aggr.ifr_flags)
7036 return 0;
7038 return 0;
7040 _ACEOF
7041 rm -f conftest.$ac_objext
7042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043 (eval $ac_compile) 2>conftest.er1
7044 ac_status=$?
7045 grep -v '^ *+' conftest.er1 >conftest.err
7046 rm -f conftest.er1
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 (eval $ac_try) 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try='test -s conftest.$ac_objext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 ac_cv_member_struct_ifreq_ifr_flags=yes
7063 else
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7067 ac_cv_member_struct_ifreq_ifr_flags=no
7069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7073 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7074 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7075 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7077 cat >>confdefs.h <<_ACEOF
7078 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7079 _ACEOF
7083 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7084 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7085 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 $ac_includes_default
7095 #if HAVE_SYS_SOCKET_H
7096 #include <sys/socket.h>
7097 #endif
7098 #if HAVE_NET_IF_H
7099 #include <net/if.h>
7100 #endif
7103 main ()
7105 static struct ifreq ac_aggr;
7106 if (ac_aggr.ifr_hwaddr)
7107 return 0;
7109 return 0;
7111 _ACEOF
7112 rm -f conftest.$ac_objext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7114 (eval $ac_compile) 2>conftest.er1
7115 ac_status=$?
7116 grep -v '^ *+' conftest.er1 >conftest.err
7117 rm -f conftest.er1
7118 cat conftest.err >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } &&
7121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7127 { ac_try='test -s conftest.$ac_objext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 (eval $ac_try) 2>&5
7130 ac_status=$?
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7134 else
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7138 cat >conftest.$ac_ext <<_ACEOF
7139 /* confdefs.h. */
7140 _ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 $ac_includes_default
7145 #if HAVE_SYS_SOCKET_H
7146 #include <sys/socket.h>
7147 #endif
7148 #if HAVE_NET_IF_H
7149 #include <net/if.h>
7150 #endif
7153 main ()
7155 static struct ifreq ac_aggr;
7156 if (sizeof ac_aggr.ifr_hwaddr)
7157 return 0;
7159 return 0;
7161 _ACEOF
7162 rm -f conftest.$ac_objext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164 (eval $ac_compile) 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } &&
7171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 (eval $ac_try) 2>&5
7174 ac_status=$?
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; } &&
7177 { ac_try='test -s conftest.$ac_objext'
7178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179 (eval $ac_try) 2>&5
7180 ac_status=$?
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7183 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7184 else
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7188 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7194 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7195 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7196 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7198 cat >>confdefs.h <<_ACEOF
7199 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7200 _ACEOF
7204 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7205 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7206 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209 cat >conftest.$ac_ext <<_ACEOF
7210 /* confdefs.h. */
7211 _ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7215 $ac_includes_default
7216 #if HAVE_SYS_SOCKET_H
7217 #include <sys/socket.h>
7218 #endif
7219 #if HAVE_NET_IF_H
7220 #include <net/if.h>
7221 #endif
7224 main ()
7226 static struct ifreq ac_aggr;
7227 if (ac_aggr.ifr_netmask)
7228 return 0;
7230 return 0;
7232 _ACEOF
7233 rm -f conftest.$ac_objext
7234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7235 (eval $ac_compile) 2>conftest.er1
7236 ac_status=$?
7237 grep -v '^ *+' conftest.er1 >conftest.err
7238 rm -f conftest.er1
7239 cat conftest.err >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } &&
7242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 (eval $ac_try) 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; } &&
7248 { ac_try='test -s conftest.$ac_objext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 (eval $ac_try) 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7254 ac_cv_member_struct_ifreq_ifr_netmask=yes
7255 else
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7259 cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h. */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 $ac_includes_default
7266 #if HAVE_SYS_SOCKET_H
7267 #include <sys/socket.h>
7268 #endif
7269 #if HAVE_NET_IF_H
7270 #include <net/if.h>
7271 #endif
7274 main ()
7276 static struct ifreq ac_aggr;
7277 if (sizeof ac_aggr.ifr_netmask)
7278 return 0;
7280 return 0;
7282 _ACEOF
7283 rm -f conftest.$ac_objext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285 (eval $ac_compile) 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 (eval $ac_try) 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; } &&
7298 { ac_try='test -s conftest.$ac_objext'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 (eval $ac_try) 2>&5
7301 ac_status=$?
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; }; then
7304 ac_cv_member_struct_ifreq_ifr_netmask=yes
7305 else
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7309 ac_cv_member_struct_ifreq_ifr_netmask=no
7311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7315 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7316 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7317 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7319 cat >>confdefs.h <<_ACEOF
7320 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7321 _ACEOF
7325 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7326 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7327 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330 cat >conftest.$ac_ext <<_ACEOF
7331 /* confdefs.h. */
7332 _ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7336 $ac_includes_default
7337 #if HAVE_SYS_SOCKET_H
7338 #include <sys/socket.h>
7339 #endif
7340 #if HAVE_NET_IF_H
7341 #include <net/if.h>
7342 #endif
7345 main ()
7347 static struct ifreq ac_aggr;
7348 if (ac_aggr.ifr_broadaddr)
7349 return 0;
7351 return 0;
7353 _ACEOF
7354 rm -f conftest.$ac_objext
7355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7356 (eval $ac_compile) 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } &&
7363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 (eval $ac_try) 2>&5
7366 ac_status=$?
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; } &&
7369 { ac_try='test -s conftest.$ac_objext'
7370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371 (eval $ac_try) 2>&5
7372 ac_status=$?
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7375 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7376 else
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 $ac_includes_default
7387 #if HAVE_SYS_SOCKET_H
7388 #include <sys/socket.h>
7389 #endif
7390 #if HAVE_NET_IF_H
7391 #include <net/if.h>
7392 #endif
7395 main ()
7397 static struct ifreq ac_aggr;
7398 if (sizeof ac_aggr.ifr_broadaddr)
7399 return 0;
7401 return 0;
7403 _ACEOF
7404 rm -f conftest.$ac_objext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7406 (eval $ac_compile) 2>conftest.er1
7407 ac_status=$?
7408 grep -v '^ *+' conftest.er1 >conftest.err
7409 rm -f conftest.er1
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } &&
7413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 (eval $ac_try) 2>&5
7416 ac_status=$?
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; } &&
7419 { ac_try='test -s conftest.$ac_objext'
7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421 (eval $ac_try) 2>&5
7422 ac_status=$?
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; }; then
7425 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7426 else
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7430 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7436 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7437 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7438 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7440 cat >>confdefs.h <<_ACEOF
7441 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7442 _ACEOF
7446 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7447 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7448 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451 cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h. */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 $ac_includes_default
7458 #if HAVE_SYS_SOCKET_H
7459 #include <sys/socket.h>
7460 #endif
7461 #if HAVE_NET_IF_H
7462 #include <net/if.h>
7463 #endif
7466 main ()
7468 static struct ifreq ac_aggr;
7469 if (ac_aggr.ifr_addr)
7470 return 0;
7472 return 0;
7474 _ACEOF
7475 rm -f conftest.$ac_objext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7477 (eval $ac_compile) 2>conftest.er1
7478 ac_status=$?
7479 grep -v '^ *+' conftest.er1 >conftest.err
7480 rm -f conftest.er1
7481 cat conftest.err >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; } &&
7490 { ac_try='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 (eval $ac_try) 2>&5
7493 ac_status=$?
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 ac_cv_member_struct_ifreq_ifr_addr=yes
7497 else
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7501 cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h. */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 $ac_includes_default
7508 #if HAVE_SYS_SOCKET_H
7509 #include <sys/socket.h>
7510 #endif
7511 #if HAVE_NET_IF_H
7512 #include <net/if.h>
7513 #endif
7516 main ()
7518 static struct ifreq ac_aggr;
7519 if (sizeof ac_aggr.ifr_addr)
7520 return 0;
7522 return 0;
7524 _ACEOF
7525 rm -f conftest.$ac_objext
7526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7527 (eval $ac_compile) 2>conftest.er1
7528 ac_status=$?
7529 grep -v '^ *+' conftest.er1 >conftest.err
7530 rm -f conftest.er1
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536 (eval $ac_try) 2>&5
7537 ac_status=$?
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; } &&
7540 { ac_try='test -s conftest.$ac_objext'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 (eval $ac_try) 2>&5
7543 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 ac_cv_member_struct_ifreq_ifr_addr=yes
7547 else
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 ac_cv_member_struct_ifreq_ifr_addr=no
7553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7557 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7558 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7559 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7561 cat >>confdefs.h <<_ACEOF
7562 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7563 _ACEOF
7570 echo "$as_me:$LINENO: checking for function prototypes" >&5
7571 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7572 if test "$ac_cv_prog_cc_stdc" != no; then
7573 echo "$as_me:$LINENO: result: yes" >&5
7574 echo "${ECHO_T}yes" >&6
7576 cat >>confdefs.h <<\_ACEOF
7577 #define PROTOTYPES 1
7578 _ACEOF
7581 cat >>confdefs.h <<\_ACEOF
7582 #define __PROTOTYPES 1
7583 _ACEOF
7585 else
7586 echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6
7590 echo "$as_me:$LINENO: checking for working volatile" >&5
7591 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7592 if test "${ac_cv_c_volatile+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595 cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h. */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7603 main ()
7606 volatile int x;
7607 int * volatile y;
7609 return 0;
7611 _ACEOF
7612 rm -f conftest.$ac_objext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614 (eval $ac_compile) 2>conftest.er1
7615 ac_status=$?
7616 grep -v '^ *+' conftest.er1 >conftest.err
7617 rm -f conftest.er1
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } &&
7621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 (eval $ac_try) 2>&5
7624 ac_status=$?
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; } &&
7627 { ac_try='test -s conftest.$ac_objext'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7633 ac_cv_c_volatile=yes
7634 else
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7638 ac_cv_c_volatile=no
7640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7642 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7643 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7644 if test $ac_cv_c_volatile = no; then
7646 cat >>confdefs.h <<\_ACEOF
7647 #define volatile
7648 _ACEOF
7652 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7653 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7654 if test "${ac_cv_c_const+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657 cat >conftest.$ac_ext <<_ACEOF
7658 /* confdefs.h. */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7665 main ()
7667 /* FIXME: Include the comments suggested by Paul. */
7668 #ifndef __cplusplus
7669 /* Ultrix mips cc rejects this. */
7670 typedef int charset[2];
7671 const charset x;
7672 /* SunOS 4.1.1 cc rejects this. */
7673 char const *const *ccp;
7674 char **p;
7675 /* NEC SVR4.0.2 mips cc rejects this. */
7676 struct point {int x, y;};
7677 static struct point const zero = {0,0};
7678 /* AIX XL C 1.02.0.0 rejects this.
7679 It does not let you subtract one const X* pointer from another in
7680 an arm of an if-expression whose if-part is not a constant
7681 expression */
7682 const char *g = "string";
7683 ccp = &g + (g ? g-g : 0);
7684 /* HPUX 7.0 cc rejects these. */
7685 ++ccp;
7686 p = (char**) ccp;
7687 ccp = (char const *const *) p;
7688 { /* SCO 3.2v4 cc rejects this. */
7689 char *t;
7690 char const *s = 0 ? (char *) 0 : (char const *) 0;
7692 *t++ = 0;
7694 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7695 int x[] = {25, 17};
7696 const int *foo = &x[0];
7697 ++foo;
7699 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7700 typedef const int *iptr;
7701 iptr p = 0;
7702 ++p;
7704 { /* AIX XL C 1.02.0.0 rejects this saying
7705 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7706 struct s { int j; const int *ap[3]; };
7707 struct s *b; b->j = 5;
7709 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7710 const int foo = 10;
7712 #endif
7715 return 0;
7717 _ACEOF
7718 rm -f conftest.$ac_objext
7719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7720 (eval $ac_compile) 2>conftest.er1
7721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 (eval $ac_try) 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; } &&
7733 { ac_try='test -s conftest.$ac_objext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7739 ac_cv_c_const=yes
7740 else
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7744 ac_cv_c_const=no
7746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7748 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7749 echo "${ECHO_T}$ac_cv_c_const" >&6
7750 if test $ac_cv_c_const = no; then
7752 cat >>confdefs.h <<\_ACEOF
7753 #define const
7754 _ACEOF
7758 echo "$as_me:$LINENO: checking for void * support" >&5
7759 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7760 if test "${emacs_cv_void_star+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763 cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h. */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7771 main ()
7773 void * foo;
7775 return 0;
7777 _ACEOF
7778 rm -f conftest.$ac_objext
7779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7780 (eval $ac_compile) 2>conftest.er1
7781 ac_status=$?
7782 grep -v '^ *+' conftest.er1 >conftest.err
7783 rm -f conftest.er1
7784 cat conftest.err >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } &&
7787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 (eval $ac_try) 2>&5
7790 ac_status=$?
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; } &&
7793 { ac_try='test -s conftest.$ac_objext'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7799 emacs_cv_void_star=yes
7800 else
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7804 emacs_cv_void_star=no
7806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7808 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7809 echo "${ECHO_T}$emacs_cv_void_star" >&6
7810 if test $emacs_cv_void_star = yes; then
7811 cat >>confdefs.h <<\_ACEOF
7812 #define POINTER_TYPE void
7813 _ACEOF
7815 else
7816 cat >>confdefs.h <<\_ACEOF
7817 #define POINTER_TYPE char
7818 _ACEOF
7826 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7827 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7828 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7829 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 cat >conftest.make <<\_ACEOF
7833 all:
7834 @echo 'ac_maketemp="$(MAKE)"'
7835 _ACEOF
7836 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7837 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7838 if test -n "$ac_maketemp"; then
7839 eval ac_cv_prog_make_${ac_make}_set=yes
7840 else
7841 eval ac_cv_prog_make_${ac_make}_set=no
7843 rm -f conftest.make
7845 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7846 echo "$as_me:$LINENO: result: yes" >&5
7847 echo "${ECHO_T}yes" >&6
7848 SET_MAKE=
7849 else
7850 echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6
7852 SET_MAKE="MAKE=${MAKE-make}"
7856 echo "$as_me:$LINENO: checking for long file names" >&5
7857 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7858 if test "${ac_cv_sys_long_file_names+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 ac_cv_sys_long_file_names=yes
7862 # Test for long file names in all the places we know might matter:
7863 # . the current directory, where building will happen
7864 # $prefix/lib where we will be installing things
7865 # $exec_prefix/lib likewise
7866 # eval it to expand exec_prefix.
7867 # $TMPDIR if set, where it might want to write temporary files
7868 # if $TMPDIR is not set:
7869 # /tmp where it might want to write temporary files
7870 # /var/tmp likewise
7871 # /usr/tmp likewise
7872 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7873 ac_tmpdirs=$TMPDIR
7874 else
7875 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7877 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7878 test -d $ac_dir || continue
7879 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7880 ac_xdir=$ac_dir/cf$$
7881 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7882 ac_tf1=$ac_xdir/conftest9012345
7883 ac_tf2=$ac_xdir/conftest9012346
7884 (echo 1 >$ac_tf1) 2>/dev/null
7885 (echo 2 >$ac_tf2) 2>/dev/null
7886 ac_val=`cat $ac_tf1 2>/dev/null`
7887 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7888 ac_cv_sys_long_file_names=no
7889 rm -rf $ac_xdir 2>/dev/null
7890 break
7892 rm -rf $ac_xdir 2>/dev/null
7893 done
7895 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7896 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7897 if test $ac_cv_sys_long_file_names = yes; then
7899 cat >>confdefs.h <<\_ACEOF
7900 #define HAVE_LONG_FILE_NAMES 1
7901 _ACEOF
7906 #### Choose a window system.
7908 echo "$as_me:$LINENO: checking for X" >&5
7909 echo $ECHO_N "checking for X... $ECHO_C" >&6
7911 ac_path_x_has_been_run=yes
7913 # Check whether --with-x or --without-x was given.
7914 if test "${with_x+set}" = set; then
7915 withval="$with_x"
7918 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7919 if test "x$with_x" = xno; then
7920 # The user explicitly disabled X.
7921 have_x=disabled
7922 else
7923 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7924 # Both variables are already set.
7925 have_x=yes
7926 else
7927 if test "${ac_cv_have_x+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 else
7930 # One or both of the vars are not set, and there is no cached value.
7931 ac_x_includes=no ac_x_libraries=no
7932 rm -fr conftest.dir
7933 if mkdir conftest.dir; then
7934 cd conftest.dir
7935 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7936 cat >Imakefile <<'_ACEOF'
7937 acfindx:
7938 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7939 _ACEOF
7940 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7942 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7943 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7944 for ac_extension in a so sl; do
7945 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7946 test -f $ac_im_libdir/libX11.$ac_extension; then
7947 ac_im_usrlibdir=$ac_im_libdir; break
7949 done
7950 # Screen out bogus values from the imake configuration. They are
7951 # bogus both because they are the default anyway, and because
7952 # using them would break gcc on systems where it needs fixed includes.
7953 case $ac_im_incroot in
7954 /usr/include) ;;
7955 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7956 esac
7957 case $ac_im_usrlibdir in
7958 /usr/lib | /lib) ;;
7959 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7960 esac
7962 cd ..
7963 rm -fr conftest.dir
7966 # Standard set of common directories for X headers.
7967 # Check X11 before X11Rn because it is often a symlink to the current release.
7968 ac_x_header_dirs='
7969 /usr/X11/include
7970 /usr/X11R6/include
7971 /usr/X11R5/include
7972 /usr/X11R4/include
7974 /usr/include/X11
7975 /usr/include/X11R6
7976 /usr/include/X11R5
7977 /usr/include/X11R4
7979 /usr/local/X11/include
7980 /usr/local/X11R6/include
7981 /usr/local/X11R5/include
7982 /usr/local/X11R4/include
7984 /usr/local/include/X11
7985 /usr/local/include/X11R6
7986 /usr/local/include/X11R5
7987 /usr/local/include/X11R4
7989 /usr/X386/include
7990 /usr/x386/include
7991 /usr/XFree86/include/X11
7993 /usr/include
7994 /usr/local/include
7995 /usr/unsupported/include
7996 /usr/athena/include
7997 /usr/local/x11r5/include
7998 /usr/lpp/Xamples/include
8000 /usr/openwin/include
8001 /usr/openwin/share/include'
8003 if test "$ac_x_includes" = no; then
8004 # Guess where to find include files, by looking for a specified header file.
8005 # First, try using that file with no special directory specified.
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 #include <X11/Xlib.h>
8013 _ACEOF
8014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8016 ac_status=$?
8017 grep -v '^ *+' conftest.er1 >conftest.err
8018 rm -f conftest.er1
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } >/dev/null; then
8022 if test -s conftest.err; then
8023 ac_cpp_err=$ac_c_preproc_warn_flag
8024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8025 else
8026 ac_cpp_err=
8028 else
8029 ac_cpp_err=yes
8031 if test -z "$ac_cpp_err"; then
8032 # We can compile using X headers with no special include directory.
8033 ac_x_includes=
8034 else
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8038 for ac_dir in $ac_x_header_dirs; do
8039 if test -r "$ac_dir/X11/Xlib.h"; then
8040 ac_x_includes=$ac_dir
8041 break
8043 done
8045 rm -f conftest.err conftest.$ac_ext
8046 fi # $ac_x_includes = no
8048 if test "$ac_x_libraries" = no; then
8049 # Check for the libraries.
8050 # See if we find them without any special options.
8051 # Don't add to $LIBS permanently.
8052 ac_save_LIBS=$LIBS
8053 LIBS="-lX11 $LIBS"
8054 cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h. */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8060 #include <X11/Xlib.h>
8062 main ()
8064 XrmInitialize ()
8066 return 0;
8068 _ACEOF
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8071 (eval $ac_link) 2>conftest.er1
8072 ac_status=$?
8073 grep -v '^ *+' conftest.er1 >conftest.err
8074 rm -f conftest.er1
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } &&
8078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 (eval $ac_try) 2>&5
8081 ac_status=$?
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; } &&
8084 { ac_try='test -s conftest$ac_exeext'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 (eval $ac_try) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8090 LIBS=$ac_save_LIBS
8091 # We can link X programs with no special library path.
8092 ac_x_libraries=
8093 else
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8097 LIBS=$ac_save_LIBS
8098 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8100 # Don't even attempt the hair of trying to link an X program!
8101 for ac_extension in a so sl; do
8102 if test -r $ac_dir/libX11.$ac_extension; then
8103 ac_x_libraries=$ac_dir
8104 break 2
8106 done
8107 done
8109 rm -f conftest.err conftest.$ac_objext \
8110 conftest$ac_exeext conftest.$ac_ext
8111 fi # $ac_x_libraries = no
8113 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8114 # Didn't find X anywhere. Cache the known absence of X.
8115 ac_cv_have_x="have_x=no"
8116 else
8117 # Record where we found X for the cache.
8118 ac_cv_have_x="have_x=yes \
8119 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8124 eval "$ac_cv_have_x"
8125 fi # $with_x != no
8127 if test "$have_x" != yes; then
8128 echo "$as_me:$LINENO: result: $have_x" >&5
8129 echo "${ECHO_T}$have_x" >&6
8130 no_x=yes
8131 else
8132 # If each of the values was on the command line, it overrides each guess.
8133 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8134 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8135 # Update the cache value to reflect the command line values.
8136 ac_cv_have_x="have_x=yes \
8137 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8138 # It might be that x_includes is empty (headers are found in the
8139 # standard search path. Then output the corresponding message
8140 ac_out_x_includes=$x_includes
8141 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8142 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8143 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8146 if test "$no_x" = yes; then
8147 window_system=none
8148 else
8149 window_system=x11
8152 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8153 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8154 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8155 x_default_search_path=""
8156 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8157 x_search_path="\
8158 ${x_library}/X11/%L/%T/%N%C%S:\
8159 ${x_library}/X11/%l/%T/%N%C%S:\
8160 ${x_library}/X11/%T/%N%C%S:\
8161 ${x_library}/X11/%L/%T/%N%S:\
8162 ${x_library}/X11/%l/%T/%N%S:\
8163 ${x_library}/X11/%T/%N%S"
8164 if test x"${x_default_search_path}" = x; then
8165 x_default_search_path=${x_search_path}
8166 else
8167 x_default_search_path="${x_search_path}:${x_default_search_path}"
8169 done
8171 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8172 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8175 if test x"${x_includes}" = x; then
8176 bitmapdir=/usr/include/X11/bitmaps
8177 else
8178 # accumulate include directories that have X11 bitmap subdirectories
8179 bmd_acc="dummyval"
8180 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8181 if test -d "${bmd}/X11/bitmaps"; then
8182 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8184 if test -d "${bmd}/bitmaps"; then
8185 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8187 done
8188 if test ${bmd_acc} != "dummyval"; then
8189 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8193 HAVE_CARBON=no
8194 if test "${with_carbon}" != no; then
8195 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8196 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8197 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8198 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8202 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8203 else
8204 # Is the header compilable?
8205 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8206 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8207 cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h. */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213 $ac_includes_default
8214 #include <Carbon/Carbon.h>
8215 _ACEOF
8216 rm -f conftest.$ac_objext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8218 (eval $ac_compile) 2>conftest.er1
8219 ac_status=$?
8220 grep -v '^ *+' conftest.er1 >conftest.err
8221 rm -f conftest.er1
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try='test -s conftest.$ac_objext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 ac_header_compiler=yes
8238 else
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8242 ac_header_compiler=no
8244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8246 echo "${ECHO_T}$ac_header_compiler" >&6
8248 # Is the header present?
8249 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8250 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8251 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h. */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 #include <Carbon/Carbon.h>
8258 _ACEOF
8259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8261 ac_status=$?
8262 grep -v '^ *+' conftest.er1 >conftest.err
8263 rm -f conftest.er1
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } >/dev/null; then
8267 if test -s conftest.err; then
8268 ac_cpp_err=$ac_c_preproc_warn_flag
8269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8270 else
8271 ac_cpp_err=
8273 else
8274 ac_cpp_err=yes
8276 if test -z "$ac_cpp_err"; then
8277 ac_header_preproc=yes
8278 else
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8282 ac_header_preproc=no
8284 rm -f conftest.err conftest.$ac_ext
8285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8286 echo "${ECHO_T}$ac_header_preproc" >&6
8288 # So? What about this header?
8289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8290 yes:no: )
8291 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8292 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8293 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8294 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8295 ac_header_preproc=yes
8297 no:yes:* )
8298 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8299 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8300 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8301 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8302 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8303 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8304 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8305 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8306 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8307 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8308 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8309 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8311 cat <<\_ASBOX
8312 ## ------------------------------------------ ##
8313 ## Report this to the AC_PACKAGE_NAME lists. ##
8314 ## ------------------------------------------ ##
8315 _ASBOX
8317 sed "s/^/$as_me: WARNING: /" >&2
8319 esac
8320 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8321 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8322 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8327 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8328 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8331 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8332 HAVE_CARBON=yes
8337 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8338 if test "${with_carbon+set}" != set \
8339 && test "${carbon_appdir_x+set}" != set; then
8340 HAVE_CARBON=no
8343 if test "${HAVE_CARBON}" = yes; then
8344 window_system=mac
8347 case "${window_system}" in
8348 x11 )
8349 HAVE_X_WINDOWS=yes
8350 HAVE_X11=yes
8351 case "${with_x_toolkit}" in
8352 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8353 motif ) USE_X_TOOLKIT=MOTIF ;;
8354 gtk ) with_gtk=yes
8355 USE_X_TOOLKIT=none ;;
8356 no ) USE_X_TOOLKIT=none ;;
8357 * ) USE_X_TOOLKIT=maybe ;;
8358 esac
8360 mac | none )
8361 HAVE_X_WINDOWS=no
8362 HAVE_X11=no
8363 USE_X_TOOLKIT=none
8365 esac
8367 ### If we're using X11, we should use the X menu package.
8368 HAVE_MENUS=no
8369 case ${HAVE_X11} in
8370 yes ) HAVE_MENUS=yes ;;
8371 esac
8373 if test "${opsys}" = "hpux9"; then
8374 case "${x_libraries}" in
8375 *X11R4* )
8376 opsysfile="s/hpux9-x11r4.h"
8378 esac
8381 if test "${opsys}" = "hpux9shr"; then
8382 case "${x_libraries}" in
8383 *X11R4* )
8384 opsysfile="s/hpux9shxr4.h"
8386 esac
8389 ### Compute the unexec source name from the object name.
8390 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8392 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8393 # Assume not, until told otherwise.
8394 GNU_MALLOC=yes
8395 doug_lea_malloc=yes
8396 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8397 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8398 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401 cat >conftest.$ac_ext <<_ACEOF
8402 /* confdefs.h. */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8409 #define malloc_get_state innocuous_malloc_get_state
8411 /* System header to define __stub macros and hopefully few prototypes,
8412 which can conflict with char malloc_get_state (); below.
8413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8414 <limits.h> exists even on freestanding compilers. */
8416 #ifdef __STDC__
8417 # include <limits.h>
8418 #else
8419 # include <assert.h>
8420 #endif
8422 #undef malloc_get_state
8424 /* Override any gcc2 internal prototype to avoid an error. */
8425 #ifdef __cplusplus
8426 extern "C"
8428 #endif
8429 /* We use char because int might match the return type of a gcc2
8430 builtin and then its argument prototype would still apply. */
8431 char malloc_get_state ();
8432 /* The GNU C library defines this for functions which it implements
8433 to always fail with ENOSYS. Some functions are actually named
8434 something starting with __ and the normal name is an alias. */
8435 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8436 choke me
8437 #else
8438 char (*f) () = malloc_get_state;
8439 #endif
8440 #ifdef __cplusplus
8442 #endif
8445 main ()
8447 return f != malloc_get_state;
8449 return 0;
8451 _ACEOF
8452 rm -f conftest.$ac_objext conftest$ac_exeext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8454 (eval $ac_link) 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 (eval $ac_try) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; } &&
8467 { ac_try='test -s conftest$ac_exeext'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 ac_cv_func_malloc_get_state=yes
8474 else
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8478 ac_cv_func_malloc_get_state=no
8480 rm -f conftest.err conftest.$ac_objext \
8481 conftest$ac_exeext conftest.$ac_ext
8483 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8484 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8485 if test $ac_cv_func_malloc_get_state = yes; then
8487 else
8488 doug_lea_malloc=no
8491 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8492 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8493 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496 cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h. */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8504 #define malloc_set_state innocuous_malloc_set_state
8506 /* System header to define __stub macros and hopefully few prototypes,
8507 which can conflict with char malloc_set_state (); below.
8508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8509 <limits.h> exists even on freestanding compilers. */
8511 #ifdef __STDC__
8512 # include <limits.h>
8513 #else
8514 # include <assert.h>
8515 #endif
8517 #undef malloc_set_state
8519 /* Override any gcc2 internal prototype to avoid an error. */
8520 #ifdef __cplusplus
8521 extern "C"
8523 #endif
8524 /* We use char because int might match the return type of a gcc2
8525 builtin and then its argument prototype would still apply. */
8526 char malloc_set_state ();
8527 /* The GNU C library defines this for functions which it implements
8528 to always fail with ENOSYS. Some functions are actually named
8529 something starting with __ and the normal name is an alias. */
8530 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8531 choke me
8532 #else
8533 char (*f) () = malloc_set_state;
8534 #endif
8535 #ifdef __cplusplus
8537 #endif
8540 main ()
8542 return f != malloc_set_state;
8544 return 0;
8546 _ACEOF
8547 rm -f conftest.$ac_objext conftest$ac_exeext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8549 (eval $ac_link) 2>conftest.er1
8550 ac_status=$?
8551 grep -v '^ *+' conftest.er1 >conftest.err
8552 rm -f conftest.er1
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 (eval $ac_try) 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; } &&
8562 { ac_try='test -s conftest$ac_exeext'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 (eval $ac_try) 2>&5
8565 ac_status=$?
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; }; then
8568 ac_cv_func_malloc_set_state=yes
8569 else
8570 echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8573 ac_cv_func_malloc_set_state=no
8575 rm -f conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
8578 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8579 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8580 if test $ac_cv_func_malloc_set_state = yes; then
8582 else
8583 doug_lea_malloc=no
8586 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8587 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8588 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591 cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h. */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 extern void (* __after_morecore_hook)();
8599 main ()
8601 __after_morecore_hook = 0
8603 return 0;
8605 _ACEOF
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608 (eval $ac_link) 2>conftest.er1
8609 ac_status=$?
8610 grep -v '^ *+' conftest.er1 >conftest.err
8611 rm -f conftest.er1
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8621 { ac_try='test -s conftest$ac_exeext'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 (eval $ac_try) 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 emacs_cv_var___after_morecore_hook=yes
8628 else
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 emacs_cv_var___after_morecore_hook=no
8634 rm -f conftest.err conftest.$ac_objext \
8635 conftest$ac_exeext conftest.$ac_ext
8637 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8638 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8639 if test $emacs_cv_var___after_morecore_hook = no; then
8640 doug_lea_malloc=no
8642 if test "${system_malloc}" = "yes"; then
8643 GNU_MALLOC=no
8644 GNU_MALLOC_reason="
8645 (The GNU allocators don't work with this system configuration.)"
8647 if test "$doug_lea_malloc" = "yes" ; then
8648 if test "$GNU_MALLOC" = yes ; then
8649 GNU_MALLOC_reason="
8650 (Using Doug Lea's new malloc from the GNU C Library.)"
8653 cat >>confdefs.h <<\_ACEOF
8654 #define DOUG_LEA_MALLOC 1
8655 _ACEOF
8659 if test x"${REL_ALLOC}" = x; then
8660 REL_ALLOC=${GNU_MALLOC}
8666 for ac_header in stdlib.h unistd.h
8668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8670 echo "$as_me:$LINENO: checking for $ac_header" >&5
8671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8677 else
8678 # Is the header compilable?
8679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8681 cat >conftest.$ac_ext <<_ACEOF
8682 /* confdefs.h. */
8683 _ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8687 $ac_includes_default
8688 #include <$ac_header>
8689 _ACEOF
8690 rm -f conftest.$ac_objext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8692 (eval $ac_compile) 2>conftest.er1
8693 ac_status=$?
8694 grep -v '^ *+' conftest.er1 >conftest.err
8695 rm -f conftest.er1
8696 cat conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } &&
8699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest.$ac_objext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_header_compiler=yes
8712 else
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 ac_header_compiler=no
8718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8720 echo "${ECHO_T}$ac_header_compiler" >&6
8722 # Is the header present?
8723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8725 cat >conftest.$ac_ext <<_ACEOF
8726 /* confdefs.h. */
8727 _ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 #include <$ac_header>
8732 _ACEOF
8733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8735 ac_status=$?
8736 grep -v '^ *+' conftest.er1 >conftest.err
8737 rm -f conftest.er1
8738 cat conftest.err >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } >/dev/null; then
8741 if test -s conftest.err; then
8742 ac_cpp_err=$ac_c_preproc_warn_flag
8743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8744 else
8745 ac_cpp_err=
8747 else
8748 ac_cpp_err=yes
8750 if test -z "$ac_cpp_err"; then
8751 ac_header_preproc=yes
8752 else
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8756 ac_header_preproc=no
8758 rm -f conftest.err conftest.$ac_ext
8759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8760 echo "${ECHO_T}$ac_header_preproc" >&6
8762 # So? What about this header?
8763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8764 yes:no: )
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8769 ac_header_preproc=yes
8771 no:yes:* )
8772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8785 cat <<\_ASBOX
8786 ## ------------------------------------------ ##
8787 ## Report this to the AC_PACKAGE_NAME lists. ##
8788 ## ------------------------------------------ ##
8789 _ASBOX
8791 sed "s/^/$as_me: WARNING: /" >&2
8793 esac
8794 echo "$as_me:$LINENO: checking for $ac_header" >&5
8795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799 eval "$as_ac_Header=\$ac_header_preproc"
8801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8806 cat >>confdefs.h <<_ACEOF
8807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8808 _ACEOF
8812 done
8815 for ac_func in getpagesize
8817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8818 echo "$as_me:$LINENO: checking for $ac_func" >&5
8819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8820 if eval "test \"\${$as_ac_var+set}\" = set"; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 else
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h. */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8831 #define $ac_func innocuous_$ac_func
8833 /* System header to define __stub macros and hopefully few prototypes,
8834 which can conflict with char $ac_func (); below.
8835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8836 <limits.h> exists even on freestanding compilers. */
8838 #ifdef __STDC__
8839 # include <limits.h>
8840 #else
8841 # include <assert.h>
8842 #endif
8844 #undef $ac_func
8846 /* Override any gcc2 internal prototype to avoid an error. */
8847 #ifdef __cplusplus
8848 extern "C"
8850 #endif
8851 /* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8853 char $ac_func ();
8854 /* The GNU C library defines this for functions which it implements
8855 to always fail with ENOSYS. Some functions are actually named
8856 something starting with __ and the normal name is an alias. */
8857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8858 choke me
8859 #else
8860 char (*f) () = $ac_func;
8861 #endif
8862 #ifdef __cplusplus
8864 #endif
8867 main ()
8869 return f != $ac_func;
8871 return 0;
8873 _ACEOF
8874 rm -f conftest.$ac_objext conftest$ac_exeext
8875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8876 (eval $ac_link) 2>conftest.er1
8877 ac_status=$?
8878 grep -v '^ *+' conftest.er1 >conftest.err
8879 rm -f conftest.er1
8880 cat conftest.err >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } &&
8883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; } &&
8889 { ac_try='test -s conftest$ac_exeext'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 (eval $ac_try) 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; }; then
8895 eval "$as_ac_var=yes"
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8900 eval "$as_ac_var=no"
8902 rm -f conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8907 if test `eval echo '${'$as_ac_var'}'` = yes; then
8908 cat >>confdefs.h <<_ACEOF
8909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8910 _ACEOF
8913 done
8915 echo "$as_me:$LINENO: checking for working mmap" >&5
8916 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8917 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920 if test "$cross_compiling" = yes; then
8921 ac_cv_func_mmap_fixed_mapped=no
8922 else
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h. */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 $ac_includes_default
8930 /* malloc might have been renamed as rpl_malloc. */
8931 #undef malloc
8933 /* Thanks to Mike Haertel and Jim Avera for this test.
8934 Here is a matrix of mmap possibilities:
8935 mmap private not fixed
8936 mmap private fixed at somewhere currently unmapped
8937 mmap private fixed at somewhere already mapped
8938 mmap shared not fixed
8939 mmap shared fixed at somewhere currently unmapped
8940 mmap shared fixed at somewhere already mapped
8941 For private mappings, we should verify that changes cannot be read()
8942 back from the file, nor mmap's back from the file at a different
8943 address. (There have been systems where private was not correctly
8944 implemented like the infamous i386 svr4.0, and systems where the
8945 VM page cache was not coherent with the file system buffer cache
8946 like early versions of FreeBSD and possibly contemporary NetBSD.)
8947 For shared mappings, we should conversely verify that changes get
8948 propagated back to all the places they're supposed to be.
8950 Grep wants private fixed already mapped.
8951 The main things grep needs to know about mmap are:
8952 * does it exist and is it safe to write into the mmap'd area
8953 * how to use it (BSD variants) */
8955 #include <fcntl.h>
8956 #include <sys/mman.h>
8958 #if !STDC_HEADERS && !HAVE_STDLIB_H
8959 char *malloc ();
8960 #endif
8962 /* This mess was copied from the GNU getpagesize.h. */
8963 #if !HAVE_GETPAGESIZE
8964 /* Assume that all systems that can run configure have sys/param.h. */
8965 # if !HAVE_SYS_PARAM_H
8966 # define HAVE_SYS_PARAM_H 1
8967 # endif
8969 # ifdef _SC_PAGESIZE
8970 # define getpagesize() sysconf(_SC_PAGESIZE)
8971 # else /* no _SC_PAGESIZE */
8972 # if HAVE_SYS_PARAM_H
8973 # include <sys/param.h>
8974 # ifdef EXEC_PAGESIZE
8975 # define getpagesize() EXEC_PAGESIZE
8976 # else /* no EXEC_PAGESIZE */
8977 # ifdef NBPG
8978 # define getpagesize() NBPG * CLSIZE
8979 # ifndef CLSIZE
8980 # define CLSIZE 1
8981 # endif /* no CLSIZE */
8982 # else /* no NBPG */
8983 # ifdef NBPC
8984 # define getpagesize() NBPC
8985 # else /* no NBPC */
8986 # ifdef PAGESIZE
8987 # define getpagesize() PAGESIZE
8988 # endif /* PAGESIZE */
8989 # endif /* no NBPC */
8990 # endif /* no NBPG */
8991 # endif /* no EXEC_PAGESIZE */
8992 # else /* no HAVE_SYS_PARAM_H */
8993 # define getpagesize() 8192 /* punt totally */
8994 # endif /* no HAVE_SYS_PARAM_H */
8995 # endif /* no _SC_PAGESIZE */
8997 #endif /* no HAVE_GETPAGESIZE */
9000 main ()
9002 char *data, *data2, *data3;
9003 int i, pagesize;
9004 int fd;
9006 pagesize = getpagesize ();
9008 /* First, make a file with some known garbage in it. */
9009 data = (char *) malloc (pagesize);
9010 if (!data)
9011 exit (1);
9012 for (i = 0; i < pagesize; ++i)
9013 *(data + i) = rand ();
9014 umask (0);
9015 fd = creat ("conftest.mmap", 0600);
9016 if (fd < 0)
9017 exit (1);
9018 if (write (fd, data, pagesize) != pagesize)
9019 exit (1);
9020 close (fd);
9022 /* Next, try to mmap the file at a fixed address which already has
9023 something else allocated at it. If we can, also make sure that
9024 we see the same garbage. */
9025 fd = open ("conftest.mmap", O_RDWR);
9026 if (fd < 0)
9027 exit (1);
9028 data2 = (char *) malloc (2 * pagesize);
9029 if (!data2)
9030 exit (1);
9031 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9032 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9033 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9034 exit (1);
9035 for (i = 0; i < pagesize; ++i)
9036 if (*(data + i) != *(data2 + i))
9037 exit (1);
9039 /* Finally, make sure that changes to the mapped area do not
9040 percolate back to the file as seen by read(). (This is a bug on
9041 some variants of i386 svr4.0.) */
9042 for (i = 0; i < pagesize; ++i)
9043 *(data2 + i) = *(data2 + i) + 1;
9044 data3 = (char *) malloc (pagesize);
9045 if (!data3)
9046 exit (1);
9047 if (read (fd, data3, pagesize) != pagesize)
9048 exit (1);
9049 for (i = 0; i < pagesize; ++i)
9050 if (*(data + i) != *(data3 + i))
9051 exit (1);
9052 close (fd);
9053 exit (0);
9055 _ACEOF
9056 rm -f conftest$ac_exeext
9057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9058 (eval $ac_link) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_cv_func_mmap_fixed_mapped=yes
9068 else
9069 echo "$as_me: program exited with status $ac_status" >&5
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9073 ( exit $ac_status )
9074 ac_cv_func_mmap_fixed_mapped=no
9076 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9079 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9080 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9081 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9083 cat >>confdefs.h <<\_ACEOF
9084 #define HAVE_MMAP 1
9085 _ACEOF
9088 rm -f conftest.mmap
9090 if test $use_mmap_for_buffers = yes; then
9091 REL_ALLOC=no
9094 LIBS="$libsrc_libs $LIBS"
9097 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9098 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9099 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9102 ac_check_lib_save_LIBS=$LIBS
9103 LIBS="-ldnet $LIBS"
9104 cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h. */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9111 /* Override any gcc2 internal prototype to avoid an error. */
9112 #ifdef __cplusplus
9113 extern "C"
9114 #endif
9115 /* We use char because int might match the return type of a gcc2
9116 builtin and then its argument prototype would still apply. */
9117 char dnet_ntoa ();
9119 main ()
9121 dnet_ntoa ();
9123 return 0;
9125 _ACEOF
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128 (eval $ac_link) 2>conftest.er1
9129 ac_status=$?
9130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } &&
9135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 (eval $ac_try) 2>&5
9138 ac_status=$?
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; } &&
9141 { ac_try='test -s conftest$ac_exeext'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 (eval $ac_try) 2>&5
9144 ac_status=$?
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; }; then
9147 ac_cv_lib_dnet_dnet_ntoa=yes
9148 else
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9152 ac_cv_lib_dnet_dnet_ntoa=no
9154 rm -f conftest.err conftest.$ac_objext \
9155 conftest$ac_exeext conftest.$ac_ext
9156 LIBS=$ac_check_lib_save_LIBS
9158 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9159 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9160 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9161 cat >>confdefs.h <<_ACEOF
9162 #define HAVE_LIBDNET 1
9163 _ACEOF
9165 LIBS="-ldnet $LIBS"
9170 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9171 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9172 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 else
9175 ac_check_lib_save_LIBS=$LIBS
9176 LIBS="-lXbsd $LIBS"
9177 cat >conftest.$ac_ext <<_ACEOF
9178 /* confdefs.h. */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9186 main ()
9188 main ();
9190 return 0;
9192 _ACEOF
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195 (eval $ac_link) 2>conftest.er1
9196 ac_status=$?
9197 grep -v '^ *+' conftest.er1 >conftest.err
9198 rm -f conftest.er1
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 (eval $ac_try) 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest$ac_exeext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_cv_lib_Xbsd_main=yes
9215 else
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 ac_cv_lib_Xbsd_main=no
9221 rm -f conftest.err conftest.$ac_objext \
9222 conftest$ac_exeext conftest.$ac_ext
9223 LIBS=$ac_check_lib_save_LIBS
9225 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9226 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9227 if test $ac_cv_lib_Xbsd_main = yes; then
9228 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9233 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9234 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9235 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238 ac_check_lib_save_LIBS=$LIBS
9239 LIBS="-lpthreads $LIBS"
9240 cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h. */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9247 /* Override any gcc2 internal prototype to avoid an error. */
9248 #ifdef __cplusplus
9249 extern "C"
9250 #endif
9251 /* We use char because int might match the return type of a gcc2
9252 builtin and then its argument prototype would still apply. */
9253 char cma_open ();
9255 main ()
9257 cma_open ();
9259 return 0;
9261 _ACEOF
9262 rm -f conftest.$ac_objext conftest$ac_exeext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264 (eval $ac_link) 2>conftest.er1
9265 ac_status=$?
9266 grep -v '^ *+' conftest.er1 >conftest.err
9267 rm -f conftest.er1
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } &&
9277 { ac_try='test -s conftest$ac_exeext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 (eval $ac_try) 2>&5
9280 ac_status=$?
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_cv_lib_pthreads_cma_open=yes
9284 else
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9288 ac_cv_lib_pthreads_cma_open=no
9290 rm -f conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9292 LIBS=$ac_check_lib_save_LIBS
9294 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9295 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9296 if test $ac_cv_lib_pthreads_cma_open = yes; then
9297 cat >>confdefs.h <<_ACEOF
9298 #define HAVE_LIBPTHREADS 1
9299 _ACEOF
9301 LIBS="-lpthreads $LIBS"
9306 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9307 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9308 if test -d /usr/X386/include; then
9309 HAVE_XFREE386=yes
9310 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9311 else
9312 HAVE_XFREE386=no
9314 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9315 echo "${ECHO_T}$HAVE_XFREE386" >&6
9318 case ${host_os} in
9319 aix*)
9320 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9321 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9322 if test "${gdb_cv_bigtoc+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9326 case $GCC in
9327 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9328 *) gdb_cv_bigtoc=-bbigtoc ;;
9329 esac
9331 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h. */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9340 main ()
9342 int i;
9344 return 0;
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349 (eval $ac_link) 2>conftest.er1
9350 ac_status=$?
9351 grep -v '^ *+' conftest.er1 >conftest.err
9352 rm -f conftest.er1
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 (eval $ac_try) 2>&5
9359 ac_status=$?
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; } &&
9362 { ac_try='test -s conftest$ac_exeext'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 (eval $ac_try) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
9369 else
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9373 gdb_cv_bigtoc=
9375 rm -f conftest.err conftest.$ac_objext \
9376 conftest$ac_exeext conftest.$ac_ext
9379 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9380 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9382 esac
9384 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9385 # used for the tests that follow. We set them back to REAL_CFLAGS and
9386 # REAL_CPPFLAGS later on.
9388 REAL_CPPFLAGS="$CPPFLAGS"
9390 if test "${HAVE_X11}" = "yes"; then
9391 DEFS="$C_SWITCH_X_SITE $DEFS"
9392 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9393 LIBS="$LIBX $LIBS"
9394 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9395 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9397 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9398 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9399 # but it's more convenient here to set LD_RUN_PATH
9400 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9401 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9402 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9403 export LD_RUN_PATH
9406 if test "${opsys}" = "gnu-linux"; then
9407 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9408 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h. */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9417 main ()
9419 XOpenDisplay ("foo");
9421 return 0;
9423 _ACEOF
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426 (eval $ac_link) 2>conftest.er1
9427 ac_status=$?
9428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } &&
9433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435 (eval $ac_try) 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; } &&
9439 { ac_try='test -s conftest$ac_exeext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 xlinux_first_failure=no
9446 else
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 xlinux_first_failure=yes
9452 rm -f conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
9454 if test "${xlinux_first_failure}" = "yes"; then
9455 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9456 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9457 OLD_CPPFLAGS="$CPPFLAGS"
9458 OLD_LIBS="$LIBS"
9459 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9460 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9461 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9462 LIBS="$LIBS -b i486-linuxaout"
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h. */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9471 main ()
9473 XOpenDisplay ("foo");
9475 return 0;
9477 _ACEOF
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9480 (eval $ac_link) 2>conftest.er1
9481 ac_status=$?
9482 grep -v '^ *+' conftest.er1 >conftest.err
9483 rm -f conftest.er1
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489 (eval $ac_try) 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest$ac_exeext'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 (eval $ac_try) 2>&5
9496 ac_status=$?
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9499 xlinux_second_failure=no
9500 else
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9504 xlinux_second_failure=yes
9506 rm -f conftest.err conftest.$ac_objext \
9507 conftest$ac_exeext conftest.$ac_ext
9508 if test "${xlinux_second_failure}" = "yes"; then
9509 # If we get the same failure with -b, there is no use adding -b.
9510 # So take it out. This plays safe.
9511 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9512 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9513 CPPFLAGS="$OLD_CPPFLAGS"
9514 LIBS="$OLD_LIBS"
9515 echo "$as_me:$LINENO: result: no" >&5
9516 echo "${ECHO_T}no" >&6
9517 else
9518 echo "$as_me:$LINENO: result: yes" >&5
9519 echo "${ECHO_T}yes" >&6
9521 else
9522 echo "$as_me:$LINENO: result: no" >&5
9523 echo "${ECHO_T}no" >&6
9527 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9528 # header files included from there.
9529 echo "$as_me:$LINENO: checking for Xkb" >&5
9530 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9531 cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h. */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 #include <X11/Xlib.h>
9538 #include <X11/XKBlib.h>
9540 main ()
9542 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9544 return 0;
9546 _ACEOF
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549 (eval $ac_link) 2>conftest.er1
9550 ac_status=$?
9551 grep -v '^ *+' conftest.er1 >conftest.err
9552 rm -f conftest.er1
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try='test -s conftest$ac_exeext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 (eval $ac_try) 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 emacs_xkb=yes
9569 else
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9573 emacs_xkb=no
9575 rm -f conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext conftest.$ac_ext
9577 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9578 echo "${ECHO_T}$emacs_xkb" >&6
9579 if test $emacs_xkb = yes; then
9581 cat >>confdefs.h <<\_ACEOF
9582 #define HAVE_XKBGETKEYBOARD 1
9583 _ACEOF
9591 for ac_func in XrmSetDatabase XScreenResourceString \
9592 XScreenNumberOfScreen XSetWMProtocols
9594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9595 echo "$as_me:$LINENO: checking for $ac_func" >&5
9596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9597 if eval "test \"\${$as_ac_var+set}\" = set"; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9600 cat >conftest.$ac_ext <<_ACEOF
9601 /* confdefs.h. */
9602 _ACEOF
9603 cat confdefs.h >>conftest.$ac_ext
9604 cat >>conftest.$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9608 #define $ac_func innocuous_$ac_func
9610 /* System header to define __stub macros and hopefully few prototypes,
9611 which can conflict with char $ac_func (); below.
9612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9613 <limits.h> exists even on freestanding compilers. */
9615 #ifdef __STDC__
9616 # include <limits.h>
9617 #else
9618 # include <assert.h>
9619 #endif
9621 #undef $ac_func
9623 /* Override any gcc2 internal prototype to avoid an error. */
9624 #ifdef __cplusplus
9625 extern "C"
9627 #endif
9628 /* We use char because int might match the return type of a gcc2
9629 builtin and then its argument prototype would still apply. */
9630 char $ac_func ();
9631 /* The GNU C library defines this for functions which it implements
9632 to always fail with ENOSYS. Some functions are actually named
9633 something starting with __ and the normal name is an alias. */
9634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9635 choke me
9636 #else
9637 char (*f) () = $ac_func;
9638 #endif
9639 #ifdef __cplusplus
9641 #endif
9644 main ()
9646 return f != $ac_func;
9648 return 0;
9650 _ACEOF
9651 rm -f conftest.$ac_objext conftest$ac_exeext
9652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9653 (eval $ac_link) 2>conftest.er1
9654 ac_status=$?
9655 grep -v '^ *+' conftest.er1 >conftest.err
9656 rm -f conftest.er1
9657 cat conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } &&
9660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 (eval $ac_try) 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try='test -s conftest$ac_exeext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 (eval $ac_try) 2>&5
9669 ac_status=$?
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 eval "$as_ac_var=yes"
9673 else
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9677 eval "$as_ac_var=no"
9679 rm -f conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9684 if test `eval echo '${'$as_ac_var'}'` = yes; then
9685 cat >>confdefs.h <<_ACEOF
9686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9687 _ACEOF
9690 done
9694 if test "${window_system}" = "x11"; then
9695 echo "$as_me:$LINENO: checking X11 version 6" >&5
9696 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9697 if test "${emacs_cv_x11_version_6+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700 cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h. */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706 #include <X11/Xlib.h>
9708 main ()
9710 #if XlibSpecificationRelease < 6
9711 fail;
9712 #endif
9715 return 0;
9717 _ACEOF
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 (eval $ac_try) 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; } &&
9733 { ac_try='test -s conftest$ac_exeext'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 (eval $ac_try) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; }; then
9739 emacs_cv_x11_version_6=yes
9740 else
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 emacs_cv_x11_version_6=no
9746 rm -f conftest.err conftest.$ac_objext \
9747 conftest$ac_exeext conftest.$ac_ext
9750 if test $emacs_cv_x11_version_6 = yes; then
9751 echo "$as_me:$LINENO: result: 6 or newer" >&5
9752 echo "${ECHO_T}6 or newer" >&6
9754 cat >>confdefs.h <<\_ACEOF
9755 #define HAVE_X11R6 1
9756 _ACEOF
9758 else
9759 echo "$as_me:$LINENO: result: before 6" >&5
9760 echo "${ECHO_T}before 6" >&6
9764 if test "${window_system}" = "x11"; then
9765 echo "$as_me:$LINENO: checking X11 version 5" >&5
9766 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9767 if test "${emacs_cv_x11_version_5+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770 cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h. */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 #include <X11/Xlib.h>
9778 main ()
9780 #if XlibSpecificationRelease < 5
9781 fail;
9782 #endif
9785 return 0;
9787 _ACEOF
9788 rm -f conftest.$ac_objext conftest$ac_exeext
9789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9790 (eval $ac_link) 2>conftest.er1
9791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 emacs_cv_x11_version_5=yes
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 emacs_cv_x11_version_5=no
9816 rm -f conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9820 if test $emacs_cv_x11_version_5 = yes; then
9821 echo "$as_me:$LINENO: result: 5 or newer" >&5
9822 echo "${ECHO_T}5 or newer" >&6
9823 HAVE_X11R5=yes
9825 cat >>confdefs.h <<\_ACEOF
9826 #define HAVE_X11R5 1
9827 _ACEOF
9829 else
9830 HAVE_X11R5=no
9831 echo "$as_me:$LINENO: result: before 5" >&5
9832 echo "${ECHO_T}before 5" >&6
9838 HAVE_GTK=no
9839 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9840 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9841 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9842 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9843 { (exit 1); exit 1; }; };
9845 GLIB_REQUIRED=2.0.1
9846 GTK_REQUIRED=2.0.1
9847 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9849 if test "X${with_pkg_config_prog}" != X; then
9850 PKG_CONFIG="${with_pkg_config_prog}"
9853 succeeded=no
9855 if test -z "$PKG_CONFIG"; then
9856 # Extract the first word of "pkg-config", so it can be a program name with args.
9857 set dummy pkg-config; ac_word=$2
9858 echo "$as_me:$LINENO: checking for $ac_word" >&5
9859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9860 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863 case $PKG_CONFIG in
9864 [\\/]* | ?:[\\/]*)
9865 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9869 for as_dir in $PATH
9871 IFS=$as_save_IFS
9872 test -z "$as_dir" && as_dir=.
9873 for ac_exec_ext in '' $ac_executable_extensions; do
9874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9875 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9877 break 2
9879 done
9880 done
9882 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9884 esac
9886 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9888 if test -n "$PKG_CONFIG"; then
9889 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9890 echo "${ECHO_T}$PKG_CONFIG" >&6
9891 else
9892 echo "$as_me:$LINENO: result: no" >&5
9893 echo "${ECHO_T}no" >&6
9898 if test "$PKG_CONFIG" = "no" ; then
9899 echo "*** The pkg-config script could not be found. Make sure it is"
9900 echo "*** in your path, or give the full path to pkg-config with"
9901 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9902 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9903 else
9904 PKG_CONFIG_MIN_VERSION=0.9.0
9905 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9906 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9907 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9909 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9910 echo "$as_me:$LINENO: result: yes" >&5
9911 echo "${ECHO_T}yes" >&6
9912 succeeded=yes
9914 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9915 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9916 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9917 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9918 echo "${ECHO_T}$GTK_CFLAGS" >&6
9920 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9921 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9922 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9923 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9924 echo "${ECHO_T}$GTK_LIBS" >&6
9925 else
9926 GTK_CFLAGS=""
9927 GTK_LIBS=""
9928 ## If we have a custom action on failure, don't print errors, but
9929 ## do set a variable so people can do so.
9930 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9931 echo $GTK_PKG_ERRORS
9936 else
9937 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9938 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9942 if test $succeeded = yes; then
9944 else
9945 { { 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
9946 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;}
9947 { (exit 1); exit 1; }; }
9952 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9953 CFLAGS="$CFLAGS $GTK_CFLAGS"
9954 LIBS="$GTK_LIBS $LIBS"
9955 HAVE_GTK=yes
9957 cat >>confdefs.h <<\_ACEOF
9958 #define HAVE_GTK 1
9959 _ACEOF
9961 USE_X_TOOLKIT=none
9963 if test "$with_toolkit_scroll_bars" != no; then
9964 with_toolkit_scroll_bars=yes
9967 HAVE_GTK_MULTIDISPLAY=no
9969 for ac_func in gdk_display_open
9971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9972 echo "$as_me:$LINENO: checking for $ac_func" >&5
9973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9974 if eval "test \"\${$as_ac_var+set}\" = set"; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h. */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9985 #define $ac_func innocuous_$ac_func
9987 /* System header to define __stub macros and hopefully few prototypes,
9988 which can conflict with char $ac_func (); below.
9989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9990 <limits.h> exists even on freestanding compilers. */
9992 #ifdef __STDC__
9993 # include <limits.h>
9994 #else
9995 # include <assert.h>
9996 #endif
9998 #undef $ac_func
10000 /* Override any gcc2 internal prototype to avoid an error. */
10001 #ifdef __cplusplus
10002 extern "C"
10004 #endif
10005 /* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */
10007 char $ac_func ();
10008 /* The GNU C library defines this for functions which it implements
10009 to always fail with ENOSYS. Some functions are actually named
10010 something starting with __ and the normal name is an alias. */
10011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10012 choke me
10013 #else
10014 char (*f) () = $ac_func;
10015 #endif
10016 #ifdef __cplusplus
10018 #endif
10021 main ()
10023 return f != $ac_func;
10025 return 0;
10027 _ACEOF
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030 (eval $ac_link) 2>conftest.er1
10031 ac_status=$?
10032 grep -v '^ *+' conftest.er1 >conftest.err
10033 rm -f conftest.er1
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } &&
10037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; } &&
10043 { ac_try='test -s conftest$ac_exeext'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
10049 eval "$as_ac_var=yes"
10050 else
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10054 eval "$as_ac_var=no"
10056 rm -f conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10061 if test `eval echo '${'$as_ac_var'}'` = yes; then
10062 cat >>confdefs.h <<_ACEOF
10063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10064 _ACEOF
10065 HAVE_GTK_MULTIDISPLAY=yes
10067 done
10069 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10071 cat >>confdefs.h <<\_ACEOF
10072 #define HAVE_GTK_MULTIDISPLAY 1
10073 _ACEOF
10076 HAVE_GTK_FILE_SELECTION=no
10078 for ac_func in gtk_file_selection_new
10080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10081 echo "$as_me:$LINENO: checking for $ac_func" >&5
10082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10083 if eval "test \"\${$as_ac_var+set}\" = set"; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 else
10086 cat >conftest.$ac_ext <<_ACEOF
10087 /* confdefs.h. */
10088 _ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h. */
10092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10094 #define $ac_func innocuous_$ac_func
10096 /* System header to define __stub macros and hopefully few prototypes,
10097 which can conflict with char $ac_func (); below.
10098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10099 <limits.h> exists even on freestanding compilers. */
10101 #ifdef __STDC__
10102 # include <limits.h>
10103 #else
10104 # include <assert.h>
10105 #endif
10107 #undef $ac_func
10109 /* Override any gcc2 internal prototype to avoid an error. */
10110 #ifdef __cplusplus
10111 extern "C"
10113 #endif
10114 /* We use char because int might match the return type of a gcc2
10115 builtin and then its argument prototype would still apply. */
10116 char $ac_func ();
10117 /* The GNU C library defines this for functions which it implements
10118 to always fail with ENOSYS. Some functions are actually named
10119 something starting with __ and the normal name is an alias. */
10120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10121 choke me
10122 #else
10123 char (*f) () = $ac_func;
10124 #endif
10125 #ifdef __cplusplus
10127 #endif
10130 main ()
10132 return f != $ac_func;
10134 return 0;
10136 _ACEOF
10137 rm -f conftest.$ac_objext conftest$ac_exeext
10138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10139 (eval $ac_link) 2>conftest.er1
10140 ac_status=$?
10141 grep -v '^ *+' conftest.er1 >conftest.err
10142 rm -f conftest.er1
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } &&
10146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; } &&
10152 { ac_try='test -s conftest$ac_exeext'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
10158 eval "$as_ac_var=yes"
10159 else
10160 echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10163 eval "$as_ac_var=no"
10165 rm -f conftest.err conftest.$ac_objext \
10166 conftest$ac_exeext conftest.$ac_ext
10168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10170 if test `eval echo '${'$as_ac_var'}'` = yes; then
10171 cat >>confdefs.h <<_ACEOF
10172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10173 _ACEOF
10174 HAVE_GTK_FILE_SELECTION=yes
10176 done
10179 HAVE_GTK_FILE_CHOOSER=no
10181 for ac_func in gtk_file_chooser_dialog_new
10183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10184 echo "$as_me:$LINENO: checking for $ac_func" >&5
10185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10186 if eval "test \"\${$as_ac_var+set}\" = set"; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189 cat >conftest.$ac_ext <<_ACEOF
10190 /* confdefs.h. */
10191 _ACEOF
10192 cat confdefs.h >>conftest.$ac_ext
10193 cat >>conftest.$ac_ext <<_ACEOF
10194 /* end confdefs.h. */
10195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10197 #define $ac_func innocuous_$ac_func
10199 /* System header to define __stub macros and hopefully few prototypes,
10200 which can conflict with char $ac_func (); below.
10201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10202 <limits.h> exists even on freestanding compilers. */
10204 #ifdef __STDC__
10205 # include <limits.h>
10206 #else
10207 # include <assert.h>
10208 #endif
10210 #undef $ac_func
10212 /* Override any gcc2 internal prototype to avoid an error. */
10213 #ifdef __cplusplus
10214 extern "C"
10216 #endif
10217 /* We use char because int might match the return type of a gcc2
10218 builtin and then its argument prototype would still apply. */
10219 char $ac_func ();
10220 /* The GNU C library defines this for functions which it implements
10221 to always fail with ENOSYS. Some functions are actually named
10222 something starting with __ and the normal name is an alias. */
10223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10224 choke me
10225 #else
10226 char (*f) () = $ac_func;
10227 #endif
10228 #ifdef __cplusplus
10230 #endif
10233 main ()
10235 return f != $ac_func;
10237 return 0;
10239 _ACEOF
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242 (eval $ac_link) 2>conftest.er1
10243 ac_status=$?
10244 grep -v '^ *+' conftest.er1 >conftest.err
10245 rm -f conftest.er1
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; } &&
10255 { ac_try='test -s conftest$ac_exeext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 eval "$as_ac_var=yes"
10262 else
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 eval "$as_ac_var=no"
10268 rm -f conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10273 if test `eval echo '${'$as_ac_var'}'` = yes; then
10274 cat >>confdefs.h <<_ACEOF
10275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10276 _ACEOF
10277 HAVE_GTK_FILE_CHOOSER=yes
10279 done
10282 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10283 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10285 cat >>confdefs.h <<\_ACEOF
10286 #define HAVE_GTK_FILE_BOTH 1
10287 _ACEOF
10291 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10292 HAVE_GTK_AND_PTHREAD=no
10294 for ac_header in pthread.h
10296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10298 echo "$as_me:$LINENO: checking for $ac_header" >&5
10299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10305 else
10306 # Is the header compilable?
10307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10309 cat >conftest.$ac_ext <<_ACEOF
10310 /* confdefs.h. */
10311 _ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10315 $ac_includes_default
10316 #include <$ac_header>
10317 _ACEOF
10318 rm -f conftest.$ac_objext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10320 (eval $ac_compile) 2>conftest.er1
10321 ac_status=$?
10322 grep -v '^ *+' conftest.er1 >conftest.err
10323 rm -f conftest.er1
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; } &&
10333 { ac_try='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_header_compiler=yes
10340 else
10341 echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10344 ac_header_compiler=no
10346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10348 echo "${ECHO_T}$ac_header_compiler" >&6
10350 # Is the header present?
10351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h. */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 #include <$ac_header>
10360 _ACEOF
10361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10363 ac_status=$?
10364 grep -v '^ *+' conftest.er1 >conftest.err
10365 rm -f conftest.er1
10366 cat conftest.err >&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } >/dev/null; then
10369 if test -s conftest.err; then
10370 ac_cpp_err=$ac_c_preproc_warn_flag
10371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10372 else
10373 ac_cpp_err=
10375 else
10376 ac_cpp_err=yes
10378 if test -z "$ac_cpp_err"; then
10379 ac_header_preproc=yes
10380 else
10381 echo "$as_me: failed program was:" >&5
10382 sed 's/^/| /' conftest.$ac_ext >&5
10384 ac_header_preproc=no
10386 rm -f conftest.err conftest.$ac_ext
10387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10388 echo "${ECHO_T}$ac_header_preproc" >&6
10390 # So? What about this header?
10391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10392 yes:no: )
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10397 ac_header_preproc=yes
10399 no:yes:* )
10400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10413 cat <<\_ASBOX
10414 ## ------------------------------------------ ##
10415 ## Report this to the AC_PACKAGE_NAME lists. ##
10416 ## ------------------------------------------ ##
10417 _ASBOX
10419 sed "s/^/$as_me: WARNING: /" >&2
10421 esac
10422 echo "$as_me:$LINENO: checking for $ac_header" >&5
10423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427 eval "$as_ac_Header=\$ac_header_preproc"
10429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10434 cat >>confdefs.h <<_ACEOF
10435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10436 _ACEOF
10440 done
10442 if test "$ac_cv_header_pthread_h"; then
10443 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10444 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10445 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448 ac_check_lib_save_LIBS=$LIBS
10449 LIBS="-lpthread $LIBS"
10450 cat >conftest.$ac_ext <<_ACEOF
10451 /* confdefs.h. */
10452 _ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10457 /* Override any gcc2 internal prototype to avoid an error. */
10458 #ifdef __cplusplus
10459 extern "C"
10460 #endif
10461 /* We use char because int might match the return type of a gcc2
10462 builtin and then its argument prototype would still apply. */
10463 char pthread_self ();
10465 main ()
10467 pthread_self ();
10469 return 0;
10471 _ACEOF
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474 (eval $ac_link) 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; } &&
10487 { ac_try='test -s conftest$ac_exeext'
10488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489 (eval $ac_try) 2>&5
10490 ac_status=$?
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; }; then
10493 ac_cv_lib_pthread_pthread_self=yes
10494 else
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 ac_cv_lib_pthread_pthread_self=no
10500 rm -f conftest.err conftest.$ac_objext \
10501 conftest$ac_exeext conftest.$ac_ext
10502 LIBS=$ac_check_lib_save_LIBS
10504 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10505 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10506 if test $ac_cv_lib_pthread_pthread_self = yes; then
10507 HAVE_GTK_AND_PTHREAD=yes
10511 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10512 GTK_LIBS="$GTK_LIBS -lpthread"
10514 cat >>confdefs.h <<\_ACEOF
10515 #define HAVE_GTK_AND_PTHREAD 1
10516 _ACEOF
10522 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10523 if test x"${HAVE_X11R5}" = xyes; then
10524 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10525 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10526 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529 cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h. */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10536 #include <X11/Intrinsic.h>
10537 #include <X11/Xaw/Simple.h>
10539 main ()
10543 return 0;
10545 _ACEOF
10546 rm -f conftest.$ac_objext conftest$ac_exeext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10548 (eval $ac_link) 2>conftest.er1
10549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } &&
10555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; } &&
10561 { ac_try='test -s conftest$ac_exeext'
10562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563 (eval $ac_try) 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 emacs_cv_x11_version_5_with_xaw=yes
10568 else
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 emacs_cv_x11_version_5_with_xaw=no
10574 rm -f conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
10578 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10579 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10580 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10581 USE_X_TOOLKIT=LUCID
10582 else
10583 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10584 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10585 USE_X_TOOLKIT=none
10587 else
10588 USE_X_TOOLKIT=none
10592 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10594 if test "${USE_X_TOOLKIT}" != "none"; then
10595 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10596 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10597 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600 cat >conftest.$ac_ext <<_ACEOF
10601 /* confdefs.h. */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10606 #include <X11/Intrinsic.h>
10608 main ()
10610 #if XtSpecificationRelease < 6
10611 fail;
10612 #endif
10615 return 0;
10617 _ACEOF
10618 rm -f conftest.$ac_objext conftest$ac_exeext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10620 (eval $ac_link) 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; } &&
10633 { ac_try='test -s conftest$ac_exeext'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; }; then
10639 emacs_cv_x11_toolkit_version_6=yes
10640 else
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10644 emacs_cv_x11_toolkit_version_6=no
10646 rm -f conftest.err conftest.$ac_objext \
10647 conftest$ac_exeext conftest.$ac_ext
10650 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10651 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10652 echo "$as_me:$LINENO: result: 6 or newer" >&5
10653 echo "${ECHO_T}6 or newer" >&6
10655 cat >>confdefs.h <<\_ACEOF
10656 #define HAVE_X11XTR6 1
10657 _ACEOF
10659 else
10660 echo "$as_me:$LINENO: result: before 6" >&5
10661 echo "${ECHO_T}before 6" >&6
10664 OLDLIBS="$LIBS"
10665 if test x$HAVE_X11XTR6 = xyes; then
10666 LIBS="-lXt -lSM -lICE $LIBS"
10667 else
10668 LIBS="-lXt $LIBS"
10671 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10672 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10673 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 else
10676 ac_check_lib_save_LIBS=$LIBS
10677 LIBS="-lXmu $LIBS"
10678 cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h. */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10685 /* Override any gcc2 internal prototype to avoid an error. */
10686 #ifdef __cplusplus
10687 extern "C"
10688 #endif
10689 /* We use char because int might match the return type of a gcc2
10690 builtin and then its argument prototype would still apply. */
10691 char XmuConvertStandardSelection ();
10693 main ()
10695 XmuConvertStandardSelection ();
10697 return 0;
10699 _ACEOF
10700 rm -f conftest.$ac_objext conftest$ac_exeext
10701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10702 (eval $ac_link) 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try='test -s conftest$ac_exeext'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10718 ac_status=$?
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10722 else
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10728 rm -f conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LIBS=$ac_check_lib_save_LIBS
10732 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10733 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10734 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10735 cat >>confdefs.h <<_ACEOF
10736 #define HAVE_LIBXMU 1
10737 _ACEOF
10739 LIBS="-lXmu $LIBS"
10743 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10746 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10747 if test "${HAVE_X11}" = "yes"; then
10748 if test "${USE_X_TOOLKIT}" != "none"; then
10750 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10751 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10752 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755 ac_check_lib_save_LIBS=$LIBS
10756 LIBS="-lXext $LIBS"
10757 cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h. */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10764 /* Override any gcc2 internal prototype to avoid an error. */
10765 #ifdef __cplusplus
10766 extern "C"
10767 #endif
10768 /* We use char because int might match the return type of a gcc2
10769 builtin and then its argument prototype would still apply. */
10770 char XShapeQueryExtension ();
10772 main ()
10774 XShapeQueryExtension ();
10776 return 0;
10778 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10781 (eval $ac_link) 2>conftest.er1
10782 ac_status=$?
10783 grep -v '^ *+' conftest.er1 >conftest.err
10784 rm -f conftest.er1
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; } &&
10794 { ac_try='test -s conftest$ac_exeext'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 ac_cv_lib_Xext_XShapeQueryExtension=yes
10801 else
10802 echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10805 ac_cv_lib_Xext_XShapeQueryExtension=no
10807 rm -f conftest.err conftest.$ac_objext \
10808 conftest$ac_exeext conftest.$ac_ext
10809 LIBS=$ac_check_lib_save_LIBS
10811 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10812 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10813 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10814 cat >>confdefs.h <<_ACEOF
10815 #define HAVE_LIBXEXT 1
10816 _ACEOF
10818 LIBS="-lXext $LIBS"
10825 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10826 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10827 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10828 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831 cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h. */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 #include <Xm/Xm.h>
10839 main ()
10841 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10842 int x = 5;
10843 #else
10844 Motif version prior to 2.1.
10845 #endif
10847 return 0;
10849 _ACEOF
10850 rm -f conftest.$ac_objext
10851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10852 (eval $ac_compile) 2>conftest.er1
10853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } &&
10859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10862 ac_status=$?
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest.$ac_objext'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 emacs_cv_motif_version_2_1=yes
10872 else
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10876 emacs_cv_motif_version_2_1=no
10878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10880 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10881 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10882 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10883 if test $emacs_cv_motif_version_2_1 = yes; then
10884 HAVE_LIBXP=no
10886 cat >>confdefs.h <<\_ACEOF
10887 #define HAVE_MOTIF_2_1 1
10888 _ACEOF
10890 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10891 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10892 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 else
10895 ac_check_lib_save_LIBS=$LIBS
10896 LIBS="-lXp $LIBS"
10897 cat >conftest.$ac_ext <<_ACEOF
10898 /* confdefs.h. */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10904 /* Override any gcc2 internal prototype to avoid an error. */
10905 #ifdef __cplusplus
10906 extern "C"
10907 #endif
10908 /* We use char because int might match the return type of a gcc2
10909 builtin and then its argument prototype would still apply. */
10910 char XpCreateContext ();
10912 main ()
10914 XpCreateContext ();
10916 return 0;
10918 _ACEOF
10919 rm -f conftest.$ac_objext conftest$ac_exeext
10920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10921 (eval $ac_link) 2>conftest.er1
10922 ac_status=$?
10923 grep -v '^ *+' conftest.er1 >conftest.err
10924 rm -f conftest.er1
10925 cat conftest.err >&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } &&
10928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; } &&
10934 { ac_try='test -s conftest$ac_exeext'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 ac_cv_lib_Xp_XpCreateContext=yes
10941 else
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10945 ac_cv_lib_Xp_XpCreateContext=no
10947 rm -f conftest.err conftest.$ac_objext \
10948 conftest$ac_exeext conftest.$ac_ext
10949 LIBS=$ac_check_lib_save_LIBS
10951 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10952 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10953 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10954 HAVE_LIBXP=yes
10957 if test ${HAVE_LIBXP} = yes; then
10959 cat >>confdefs.h <<\_ACEOF
10960 #define HAVE_LIBXP 1
10961 _ACEOF
10964 else
10965 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10966 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10967 if test "${emacs_cv_lesstif+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 else
10970 # We put this in CFLAGS temporarily to precede other -I options
10971 # that might be in CFLAGS temporarily.
10972 # We put this in CPPFLAGS where it precedes the other -I options.
10973 OLD_CPPFLAGS=$CPPFLAGS
10974 OLD_CFLAGS=$CFLAGS
10975 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10976 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10977 cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h. */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10985 main ()
10987 int x = 5;
10989 return 0;
10991 _ACEOF
10992 rm -f conftest.$ac_objext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10994 (eval $ac_compile) 2>conftest.er1
10995 ac_status=$?
10996 grep -v '^ *+' conftest.er1 >conftest.err
10997 rm -f conftest.er1
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } &&
11001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003 (eval $ac_try) 2>&5
11004 ac_status=$?
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; } &&
11007 { ac_try='test -s conftest.$ac_objext'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11010 ac_status=$?
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; }; then
11013 emacs_cv_lesstif=yes
11014 else
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11018 emacs_cv_lesstif=no
11020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11022 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11023 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11024 if test $emacs_cv_lesstif = yes; then
11025 # Make sure this -I option remains in CPPFLAGS after it is set
11026 # back to REAL_CPPFLAGS.
11027 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11028 # have those other -I options anyway. Ultimately, having this
11029 # directory ultimately in CPPFLAGS will be enough.
11030 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11031 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11032 else
11033 CFLAGS=$OLD_CFLAGS
11034 CPPFLAGS=$OLD_CPPFLAGS
11039 ### Is -lXaw3d available?
11040 HAVE_XAW3D=no
11041 if test "${HAVE_X11}" = "yes"; then
11042 if test "${USE_X_TOOLKIT}" != "none"; then
11043 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11044 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11045 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h. */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054 #include <X11/Xaw3d/Scrollbar.h>
11055 _ACEOF
11056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } >/dev/null; then
11064 if test -s conftest.err; then
11065 ac_cpp_err=$ac_c_preproc_warn_flag
11066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11067 else
11068 ac_cpp_err=
11070 else
11071 ac_cpp_err=yes
11073 if test -z "$ac_cpp_err"; then
11074 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11075 else
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11079 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11081 rm -f conftest.err conftest.$ac_ext
11083 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11084 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11085 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11086 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11087 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11088 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11089 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 else
11091 ac_check_lib_save_LIBS=$LIBS
11092 LIBS="-lXaw3d $LIBS"
11093 cat >conftest.$ac_ext <<_ACEOF
11094 /* confdefs.h. */
11095 _ACEOF
11096 cat confdefs.h >>conftest.$ac_ext
11097 cat >>conftest.$ac_ext <<_ACEOF
11098 /* end confdefs.h. */
11100 /* Override any gcc2 internal prototype to avoid an error. */
11101 #ifdef __cplusplus
11102 extern "C"
11103 #endif
11104 /* We use char because int might match the return type of a gcc2
11105 builtin and then its argument prototype would still apply. */
11106 char XawScrollbarSetThumb ();
11108 main ()
11110 XawScrollbarSetThumb ();
11112 return 0;
11114 _ACEOF
11115 rm -f conftest.$ac_objext conftest$ac_exeext
11116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11117 (eval $ac_link) 2>conftest.er1
11118 ac_status=$?
11119 grep -v '^ *+' conftest.er1 >conftest.err
11120 rm -f conftest.er1
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126 (eval $ac_try) 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; } &&
11130 { ac_try='test -s conftest$ac_exeext'
11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 (eval $ac_try) 2>&5
11133 ac_status=$?
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; }; then
11136 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11137 else
11138 echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11141 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11143 rm -f conftest.err conftest.$ac_objext \
11144 conftest$ac_exeext conftest.$ac_ext
11145 LIBS=$ac_check_lib_save_LIBS
11147 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11148 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11149 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11150 HAVE_XAW3D=yes
11156 if test "${HAVE_XAW3D}" = "yes"; then
11158 cat >>confdefs.h <<\_ACEOF
11159 #define HAVE_XAW3D 1
11160 _ACEOF
11168 USE_TOOLKIT_SCROLL_BARS=no
11169 if test "${with_toolkit_scroll_bars}" != "no"; then
11170 if test "${USE_X_TOOLKIT}" != "none"; then
11171 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11172 cat >>confdefs.h <<\_ACEOF
11173 #define USE_TOOLKIT_SCROLL_BARS 1
11174 _ACEOF
11176 HAVE_XAW3D=no
11177 USE_TOOLKIT_SCROLL_BARS=yes
11178 elif test "${HAVE_XAW3D}" = "yes"; then
11179 cat >>confdefs.h <<\_ACEOF
11180 #define USE_TOOLKIT_SCROLL_BARS 1
11181 _ACEOF
11183 USE_TOOLKIT_SCROLL_BARS=yes
11185 elif test "${HAVE_GTK}" = "yes"; then
11186 cat >>confdefs.h <<\_ACEOF
11187 #define USE_TOOLKIT_SCROLL_BARS 1
11188 _ACEOF
11190 USE_TOOLKIT_SCROLL_BARS=yes
11191 elif test "${HAVE_CARBON}" = "yes"; then
11192 cat >>confdefs.h <<\_ACEOF
11193 #define USE_TOOLKIT_SCROLL_BARS 1
11194 _ACEOF
11196 USE_TOOLKIT_SCROLL_BARS=yes
11200 cat >conftest.$ac_ext <<_ACEOF
11201 /* confdefs.h. */
11202 _ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11207 #include <X11/Xlib.h>
11208 #include <X11/Xresource.h>
11210 main ()
11212 XIMProc callback;
11214 return 0;
11216 _ACEOF
11217 rm -f conftest.$ac_objext
11218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11219 (eval $ac_compile) 2>conftest.er1
11220 ac_status=$?
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
11226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11229 ac_status=$?
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; } &&
11232 { ac_try='test -s conftest.$ac_objext'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }; then
11238 HAVE_XIM=yes
11240 cat >>confdefs.h <<\_ACEOF
11241 #define HAVE_XIM 1
11242 _ACEOF
11244 else
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 HAVE_XIM=no
11250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11253 if test "${with_xim}" != "no"; then
11255 cat >>confdefs.h <<\_ACEOF
11256 #define USE_XIM 1
11257 _ACEOF
11262 if test "${HAVE_XIM}" != "no"; then
11263 late_CFLAGS=$CFLAGS
11264 if test "$GCC" = yes; then
11265 CFLAGS="$CFLAGS --pedantic-errors"
11267 cat >conftest.$ac_ext <<_ACEOF
11268 /* confdefs.h. */
11269 _ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11274 #include <X11/Xlib.h>
11275 #include <X11/Xresource.h>
11277 main ()
11279 Display *display;
11280 XrmDatabase db;
11281 char *res_name;
11282 char *res_class;
11283 XIMProc callback;
11284 XPointer *client_data;
11285 #ifndef __GNUC__
11286 /* If we're not using GCC, it's probably not XFree86, and this is
11287 probably right, but we can't use something like --pedantic-errors. */
11288 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11289 char*, XIMProc, XPointer*);
11290 #endif
11291 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11292 client_data);
11294 return 0;
11296 _ACEOF
11297 rm -f conftest.$ac_objext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11299 (eval $ac_compile) 2>conftest.er1
11300 ac_status=$?
11301 grep -v '^ *+' conftest.er1 >conftest.err
11302 rm -f conftest.er1
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest.$ac_objext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 emacs_cv_arg6_star=yes
11319 else
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11326 if test "$emacs_cv_arg6_star" = yes; then
11327 cat >>confdefs.h <<\_ACEOF
11328 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11329 _ACEOF
11331 else
11332 cat >>confdefs.h <<\_ACEOF
11333 #define XRegisterIMInstantiateCallback_arg6 XPointer
11334 _ACEOF
11337 CFLAGS=$late_CFLAGS
11340 ### Use -lXpm if available, unless `--with-xpm=no'.
11341 HAVE_XPM=no
11342 if test "${HAVE_X11}" = "yes"; then
11343 if test "${with_xpm}" != "no"; then
11344 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11345 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11346 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11347 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11351 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11352 else
11353 # Is the header compilable?
11354 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11355 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11356 cat >conftest.$ac_ext <<_ACEOF
11357 /* confdefs.h. */
11358 _ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11362 $ac_includes_default
11363 #include <X11/xpm.h>
11364 _ACEOF
11365 rm -f conftest.$ac_objext
11366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11367 (eval $ac_compile) 2>conftest.er1
11368 ac_status=$?
11369 grep -v '^ *+' conftest.er1 >conftest.err
11370 rm -f conftest.er1
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } &&
11374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; } &&
11380 { ac_try='test -s conftest.$ac_objext'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 ac_header_compiler=yes
11387 else
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11391 ac_header_compiler=no
11393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11395 echo "${ECHO_T}$ac_header_compiler" >&6
11397 # Is the header present?
11398 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11399 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11400 cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h. */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406 #include <X11/xpm.h>
11407 _ACEOF
11408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11410 ac_status=$?
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } >/dev/null; then
11416 if test -s conftest.err; then
11417 ac_cpp_err=$ac_c_preproc_warn_flag
11418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11419 else
11420 ac_cpp_err=
11422 else
11423 ac_cpp_err=yes
11425 if test -z "$ac_cpp_err"; then
11426 ac_header_preproc=yes
11427 else
11428 echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.$ac_ext >&5
11431 ac_header_preproc=no
11433 rm -f conftest.err conftest.$ac_ext
11434 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11435 echo "${ECHO_T}$ac_header_preproc" >&6
11437 # So? What about this header?
11438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11439 yes:no: )
11440 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11441 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11443 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11444 ac_header_preproc=yes
11446 no:yes:* )
11447 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11448 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11450 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11452 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11454 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11456 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11458 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11460 cat <<\_ASBOX
11461 ## ------------------------------------------ ##
11462 ## Report this to the AC_PACKAGE_NAME lists. ##
11463 ## ------------------------------------------ ##
11464 _ASBOX
11466 sed "s/^/$as_me: WARNING: /" >&2
11468 esac
11469 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11470 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11471 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 else
11474 ac_cv_header_X11_xpm_h=$ac_header_preproc
11476 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11477 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11480 if test $ac_cv_header_X11_xpm_h = yes; then
11481 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11482 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11483 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11485 else
11486 ac_check_lib_save_LIBS=$LIBS
11487 LIBS="-lXpm -lX11 $LIBS"
11488 cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h. */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11495 /* Override any gcc2 internal prototype to avoid an error. */
11496 #ifdef __cplusplus
11497 extern "C"
11498 #endif
11499 /* We use char because int might match the return type of a gcc2
11500 builtin and then its argument prototype would still apply. */
11501 char XpmReadFileToPixmap ();
11503 main ()
11505 XpmReadFileToPixmap ();
11507 return 0;
11509 _ACEOF
11510 rm -f conftest.$ac_objext conftest$ac_exeext
11511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11512 (eval $ac_link) 2>conftest.er1
11513 ac_status=$?
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest$ac_exeext'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11532 else
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11538 rm -f conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540 LIBS=$ac_check_lib_save_LIBS
11542 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11543 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11544 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11545 HAVE_XPM=yes
11551 if test "${HAVE_XPM}" = "yes"; then
11552 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11553 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11554 cat >conftest.$ac_ext <<_ACEOF
11555 /* confdefs.h. */
11556 _ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h. */
11560 #include "X11/xpm.h"
11561 #ifndef XpmReturnAllocPixels
11562 no_return_alloc_pixels
11563 #endif
11565 _ACEOF
11566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11567 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11568 HAVE_XPM=no
11569 else
11570 HAVE_XPM=yes
11572 rm -f conftest*
11575 if test "${HAVE_XPM}" = "yes"; then
11576 echo "$as_me:$LINENO: result: yes" >&5
11577 echo "${ECHO_T}yes" >&6
11578 else
11579 echo "$as_me:$LINENO: result: no" >&5
11580 echo "${ECHO_T}no" >&6
11585 if test "${HAVE_XPM}" = "yes"; then
11587 cat >>confdefs.h <<\_ACEOF
11588 #define HAVE_XPM 1
11589 _ACEOF
11594 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11595 HAVE_JPEG=no
11596 if test "${HAVE_X11}" = "yes"; then
11597 if test "${with_jpeg}" != "no"; then
11598 if test "${ac_cv_header_jerror_h+set}" = set; then
11599 echo "$as_me:$LINENO: checking for jerror.h" >&5
11600 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11601 if test "${ac_cv_header_jerror_h+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11605 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11606 else
11607 # Is the header compilable?
11608 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11609 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11610 cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h. */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11616 $ac_includes_default
11617 #include <jerror.h>
11618 _ACEOF
11619 rm -f conftest.$ac_objext
11620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11621 (eval $ac_compile) 2>conftest.er1
11622 ac_status=$?
11623 grep -v '^ *+' conftest.er1 >conftest.err
11624 rm -f conftest.er1
11625 cat conftest.err >&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
11628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest.$ac_objext'
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; }; then
11640 ac_header_compiler=yes
11641 else
11642 echo "$as_me: failed program was:" >&5
11643 sed 's/^/| /' conftest.$ac_ext >&5
11645 ac_header_compiler=no
11647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11649 echo "${ECHO_T}$ac_header_compiler" >&6
11651 # Is the header present?
11652 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11653 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11654 cat >conftest.$ac_ext <<_ACEOF
11655 /* confdefs.h. */
11656 _ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660 #include <jerror.h>
11661 _ACEOF
11662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11664 ac_status=$?
11665 grep -v '^ *+' conftest.er1 >conftest.err
11666 rm -f conftest.er1
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } >/dev/null; then
11670 if test -s conftest.err; then
11671 ac_cpp_err=$ac_c_preproc_warn_flag
11672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11673 else
11674 ac_cpp_err=
11676 else
11677 ac_cpp_err=yes
11679 if test -z "$ac_cpp_err"; then
11680 ac_header_preproc=yes
11681 else
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 ac_header_preproc=no
11687 rm -f conftest.err conftest.$ac_ext
11688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11689 echo "${ECHO_T}$ac_header_preproc" >&6
11691 # So? What about this header?
11692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11693 yes:no: )
11694 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11695 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11697 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11698 ac_header_preproc=yes
11700 no:yes:* )
11701 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11702 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11704 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11706 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11708 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11710 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11712 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11714 cat <<\_ASBOX
11715 ## ------------------------------------------ ##
11716 ## Report this to the AC_PACKAGE_NAME lists. ##
11717 ## ------------------------------------------ ##
11718 _ASBOX
11720 sed "s/^/$as_me: WARNING: /" >&2
11722 esac
11723 echo "$as_me:$LINENO: checking for jerror.h" >&5
11724 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11725 if test "${ac_cv_header_jerror_h+set}" = set; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11727 else
11728 ac_cv_header_jerror_h=$ac_header_preproc
11730 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11731 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11734 if test $ac_cv_header_jerror_h = yes; then
11735 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11736 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11737 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740 ac_check_lib_save_LIBS=$LIBS
11741 LIBS="-ljpeg $LIBS"
11742 cat >conftest.$ac_ext <<_ACEOF
11743 /* confdefs.h. */
11744 _ACEOF
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h. */
11749 /* Override any gcc2 internal prototype to avoid an error. */
11750 #ifdef __cplusplus
11751 extern "C"
11752 #endif
11753 /* We use char because int might match the return type of a gcc2
11754 builtin and then its argument prototype would still apply. */
11755 char jpeg_destroy_compress ();
11757 main ()
11759 jpeg_destroy_compress ();
11761 return 0;
11763 _ACEOF
11764 rm -f conftest.$ac_objext conftest$ac_exeext
11765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11766 (eval $ac_link) 2>conftest.er1
11767 ac_status=$?
11768 grep -v '^ *+' conftest.er1 >conftest.err
11769 rm -f conftest.er1
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } &&
11773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11776 ac_status=$?
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; } &&
11779 { ac_try='test -s conftest$ac_exeext'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11786 else
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11792 rm -f conftest.err conftest.$ac_objext \
11793 conftest$ac_exeext conftest.$ac_ext
11794 LIBS=$ac_check_lib_save_LIBS
11796 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11797 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11798 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11799 HAVE_JPEG=yes
11808 if test "${HAVE_JPEG}" = "yes"; then
11809 cat >>confdefs.h <<\_ACEOF
11810 #define HAVE_JPEG 1
11811 _ACEOF
11813 cat >conftest.$ac_ext <<_ACEOF
11814 /* confdefs.h. */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 #include <jpeglib.h>
11820 version=JPEG_LIB_VERSION
11822 _ACEOF
11823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11824 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11825 cat >>confdefs.h <<\_ACEOF
11826 #define HAVE_JPEG 1
11827 _ACEOF
11829 else
11830 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11831 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11832 HAVE_JPEG=no
11834 rm -f conftest*
11839 ### Use -lpng if available, unless `--with-png=no'.
11840 HAVE_PNG=no
11841 if test "${HAVE_X11}" = "yes"; then
11842 if test "${with_png}" != "no"; then
11843 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11844 # in /usr/include/libpng.
11847 for ac_header in png.h libpng/png.h
11849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11851 echo "$as_me:$LINENO: checking for $ac_header" >&5
11852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11858 else
11859 # Is the header compilable?
11860 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11862 cat >conftest.$ac_ext <<_ACEOF
11863 /* confdefs.h. */
11864 _ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11868 $ac_includes_default
11869 #include <$ac_header>
11870 _ACEOF
11871 rm -f conftest.$ac_objext
11872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11873 (eval $ac_compile) 2>conftest.er1
11874 ac_status=$?
11875 grep -v '^ *+' conftest.er1 >conftest.err
11876 rm -f conftest.er1
11877 cat conftest.err >&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } &&
11880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11883 ac_status=$?
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; } &&
11886 { ac_try='test -s conftest.$ac_objext'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; }; then
11892 ac_header_compiler=yes
11893 else
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11897 ac_header_compiler=no
11899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11901 echo "${ECHO_T}$ac_header_compiler" >&6
11903 # Is the header present?
11904 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11906 cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h. */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11912 #include <$ac_header>
11913 _ACEOF
11914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } >/dev/null; then
11922 if test -s conftest.err; then
11923 ac_cpp_err=$ac_c_preproc_warn_flag
11924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11925 else
11926 ac_cpp_err=
11928 else
11929 ac_cpp_err=yes
11931 if test -z "$ac_cpp_err"; then
11932 ac_header_preproc=yes
11933 else
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 ac_header_preproc=no
11939 rm -f conftest.err conftest.$ac_ext
11940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11941 echo "${ECHO_T}$ac_header_preproc" >&6
11943 # So? What about this header?
11944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11945 yes:no: )
11946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11950 ac_header_preproc=yes
11952 no:yes:* )
11953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11966 cat <<\_ASBOX
11967 ## ------------------------------------------ ##
11968 ## Report this to the AC_PACKAGE_NAME lists. ##
11969 ## ------------------------------------------ ##
11970 _ASBOX
11972 sed "s/^/$as_me: WARNING: /" >&2
11974 esac
11975 echo "$as_me:$LINENO: checking for $ac_header" >&5
11976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980 eval "$as_ac_Header=\$ac_header_preproc"
11982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11987 cat >>confdefs.h <<_ACEOF
11988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11989 _ACEOF
11993 done
11995 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11996 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11997 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11998 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001 ac_check_lib_save_LIBS=$LIBS
12002 LIBS="-lpng -lz -lm $LIBS"
12003 cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h. */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12010 /* Override any gcc2 internal prototype to avoid an error. */
12011 #ifdef __cplusplus
12012 extern "C"
12013 #endif
12014 /* We use char because int might match the return type of a gcc2
12015 builtin and then its argument prototype would still apply. */
12016 char png_get_channels ();
12018 main ()
12020 png_get_channels ();
12022 return 0;
12024 _ACEOF
12025 rm -f conftest.$ac_objext conftest$ac_exeext
12026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12027 (eval $ac_link) 2>conftest.er1
12028 ac_status=$?
12029 grep -v '^ *+' conftest.er1 >conftest.err
12030 rm -f conftest.er1
12031 cat conftest.err >&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } &&
12034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12040 { ac_try='test -s conftest$ac_exeext'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12046 ac_cv_lib_png_png_get_channels=yes
12047 else
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 ac_cv_lib_png_png_get_channels=no
12053 rm -f conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12055 LIBS=$ac_check_lib_save_LIBS
12057 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12058 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12059 if test $ac_cv_lib_png_png_get_channels = yes; then
12060 HAVE_PNG=yes
12066 if test "${HAVE_PNG}" = "yes"; then
12068 cat >>confdefs.h <<\_ACEOF
12069 #define HAVE_PNG 1
12070 _ACEOF
12075 ### Use -ltiff if available, unless `--with-tiff=no'.
12076 HAVE_TIFF=no
12077 if test "${HAVE_X11}" = "yes"; then
12078 if test "${with_tiff}" != "no"; then
12079 if test "${ac_cv_header_tiffio_h+set}" = set; then
12080 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12081 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12082 if test "${ac_cv_header_tiffio_h+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12086 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12087 else
12088 # Is the header compilable?
12089 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12090 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12091 cat >conftest.$ac_ext <<_ACEOF
12092 /* confdefs.h. */
12093 _ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 $ac_includes_default
12098 #include <tiffio.h>
12099 _ACEOF
12100 rm -f conftest.$ac_objext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12102 (eval $ac_compile) 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; } &&
12115 { ac_try='test -s conftest.$ac_objext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 ac_header_compiler=yes
12122 else
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12126 ac_header_compiler=no
12128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12130 echo "${ECHO_T}$ac_header_compiler" >&6
12132 # Is the header present?
12133 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12134 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h. */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 #include <tiffio.h>
12142 _ACEOF
12143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12145 ac_status=$?
12146 grep -v '^ *+' conftest.er1 >conftest.err
12147 rm -f conftest.er1
12148 cat conftest.err >&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } >/dev/null; then
12151 if test -s conftest.err; then
12152 ac_cpp_err=$ac_c_preproc_warn_flag
12153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12154 else
12155 ac_cpp_err=
12157 else
12158 ac_cpp_err=yes
12160 if test -z "$ac_cpp_err"; then
12161 ac_header_preproc=yes
12162 else
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12166 ac_header_preproc=no
12168 rm -f conftest.err conftest.$ac_ext
12169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12170 echo "${ECHO_T}$ac_header_preproc" >&6
12172 # So? What about this header?
12173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12174 yes:no: )
12175 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12176 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12178 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12179 ac_header_preproc=yes
12181 no:yes:* )
12182 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12183 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12184 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12185 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12186 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12187 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12188 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12189 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12190 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12191 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12192 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12193 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12195 cat <<\_ASBOX
12196 ## ------------------------------------------ ##
12197 ## Report this to the AC_PACKAGE_NAME lists. ##
12198 ## ------------------------------------------ ##
12199 _ASBOX
12201 sed "s/^/$as_me: WARNING: /" >&2
12203 esac
12204 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12205 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12206 if test "${ac_cv_header_tiffio_h+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12208 else
12209 ac_cv_header_tiffio_h=$ac_header_preproc
12211 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12212 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12215 if test $ac_cv_header_tiffio_h = yes; then
12216 tifflibs="-lz -lm"
12217 # At least one tiff package requires the jpeg library.
12218 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12219 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12220 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12221 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 else
12224 ac_check_lib_save_LIBS=$LIBS
12225 LIBS="-ltiff $tifflibs $LIBS"
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. */
12233 /* Override any gcc2 internal prototype to avoid an error. */
12234 #ifdef __cplusplus
12235 extern "C"
12236 #endif
12237 /* We use char because int might match the return type of a gcc2
12238 builtin and then its argument prototype would still apply. */
12239 char TIFFGetVersion ();
12241 main ()
12243 TIFFGetVersion ();
12245 return 0;
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12263 { ac_try='test -s conftest$ac_exeext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_cv_lib_tiff_TIFFGetVersion=yes
12270 else
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 ac_cv_lib_tiff_TIFFGetVersion=no
12276 rm -f conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278 LIBS=$ac_check_lib_save_LIBS
12280 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12281 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12282 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12283 HAVE_TIFF=yes
12291 if test "${HAVE_TIFF}" = "yes"; then
12293 cat >>confdefs.h <<\_ACEOF
12294 #define HAVE_TIFF 1
12295 _ACEOF
12300 ### Use -lgif if available, unless `--with-gif=no'.
12301 HAVE_GIF=no
12302 if test "${HAVE_X11}" = "yes"; then
12303 if test "${with_gif}" != "no"; then
12304 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12305 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12306 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12307 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12311 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12312 else
12313 # Is the header compilable?
12314 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12315 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12316 cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h. */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 $ac_includes_default
12323 #include <gif_lib.h>
12324 _ACEOF
12325 rm -f conftest.$ac_objext
12326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12327 (eval $ac_compile) 2>conftest.er1
12328 ac_status=$?
12329 grep -v '^ *+' conftest.er1 >conftest.err
12330 rm -f conftest.er1
12331 cat conftest.err >&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } &&
12334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; } &&
12340 { ac_try='test -s conftest.$ac_objext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 ac_header_compiler=yes
12347 else
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 ac_header_compiler=no
12353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12355 echo "${ECHO_T}$ac_header_compiler" >&6
12357 # Is the header present?
12358 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12359 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12360 cat >conftest.$ac_ext <<_ACEOF
12361 /* confdefs.h. */
12362 _ACEOF
12363 cat confdefs.h >>conftest.$ac_ext
12364 cat >>conftest.$ac_ext <<_ACEOF
12365 /* end confdefs.h. */
12366 #include <gif_lib.h>
12367 _ACEOF
12368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12370 ac_status=$?
12371 grep -v '^ *+' conftest.er1 >conftest.err
12372 rm -f conftest.er1
12373 cat conftest.err >&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } >/dev/null; then
12376 if test -s conftest.err; then
12377 ac_cpp_err=$ac_c_preproc_warn_flag
12378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12379 else
12380 ac_cpp_err=
12382 else
12383 ac_cpp_err=yes
12385 if test -z "$ac_cpp_err"; then
12386 ac_header_preproc=yes
12387 else
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12391 ac_header_preproc=no
12393 rm -f conftest.err conftest.$ac_ext
12394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12395 echo "${ECHO_T}$ac_header_preproc" >&6
12397 # So? What about this header?
12398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12399 yes:no: )
12400 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12401 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12402 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12403 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12404 ac_header_preproc=yes
12406 no:yes:* )
12407 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12408 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12409 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12410 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12411 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12412 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12413 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12414 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12415 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12416 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12417 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12418 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12420 cat <<\_ASBOX
12421 ## ------------------------------------------ ##
12422 ## Report this to the AC_PACKAGE_NAME lists. ##
12423 ## ------------------------------------------ ##
12424 _ASBOX
12426 sed "s/^/$as_me: WARNING: /" >&2
12428 esac
12429 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12430 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12431 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12433 else
12434 ac_cv_header_gif_lib_h=$ac_header_preproc
12436 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12437 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12440 if test $ac_cv_header_gif_lib_h = yes; then
12441 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12442 # Earlier versions can crash Emacs.
12443 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12444 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12445 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 else
12448 ac_check_lib_save_LIBS=$LIBS
12449 LIBS="-lungif $LIBS"
12450 cat >conftest.$ac_ext <<_ACEOF
12451 /* confdefs.h. */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12457 /* Override any gcc2 internal prototype to avoid an error. */
12458 #ifdef __cplusplus
12459 extern "C"
12460 #endif
12461 /* We use char because int might match the return type of a gcc2
12462 builtin and then its argument prototype would still apply. */
12463 char EGifPutExtensionLast ();
12465 main ()
12467 EGifPutExtensionLast ();
12469 return 0;
12471 _ACEOF
12472 rm -f conftest.$ac_objext conftest$ac_exeext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12474 (eval $ac_link) 2>conftest.er1
12475 ac_status=$?
12476 grep -v '^ *+' conftest.er1 >conftest.err
12477 rm -f conftest.er1
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } &&
12481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; } &&
12487 { ac_try='test -s conftest$ac_exeext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12494 else
12495 echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12498 ac_cv_lib_ungif_EGifPutExtensionLast=no
12500 rm -f conftest.err conftest.$ac_objext \
12501 conftest$ac_exeext conftest.$ac_ext
12502 LIBS=$ac_check_lib_save_LIBS
12504 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12505 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12506 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12507 HAVE_GIF=yes
12515 if test "${HAVE_GIF}" = "yes"; then
12517 cat >>confdefs.h <<\_ACEOF
12518 #define HAVE_GIF 1
12519 _ACEOF
12524 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12525 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12526 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12527 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12531 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12532 else
12533 # Is the header compilable?
12534 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12535 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12536 cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h. */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12542 $ac_includes_default
12543 #include <malloc/malloc.h>
12544 _ACEOF
12545 rm -f conftest.$ac_objext
12546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12547 (eval $ac_compile) 2>conftest.er1
12548 ac_status=$?
12549 grep -v '^ *+' conftest.er1 >conftest.err
12550 rm -f conftest.er1
12551 cat conftest.err >&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } &&
12554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; } &&
12560 { ac_try='test -s conftest.$ac_objext'
12561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562 (eval $ac_try) 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
12566 ac_header_compiler=yes
12567 else
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 ac_header_compiler=no
12573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12575 echo "${ECHO_T}$ac_header_compiler" >&6
12577 # Is the header present?
12578 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12579 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12580 cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h. */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 #include <malloc/malloc.h>
12587 _ACEOF
12588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } >/dev/null; then
12596 if test -s conftest.err; then
12597 ac_cpp_err=$ac_c_preproc_warn_flag
12598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12599 else
12600 ac_cpp_err=
12602 else
12603 ac_cpp_err=yes
12605 if test -z "$ac_cpp_err"; then
12606 ac_header_preproc=yes
12607 else
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 ac_header_preproc=no
12613 rm -f conftest.err conftest.$ac_ext
12614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12615 echo "${ECHO_T}$ac_header_preproc" >&6
12617 # So? What about this header?
12618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12619 yes:no: )
12620 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12621 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12623 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12624 ac_header_preproc=yes
12626 no:yes:* )
12627 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12628 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12629 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12630 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12631 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12632 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12633 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12634 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12635 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12636 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12637 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12638 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12640 cat <<\_ASBOX
12641 ## ------------------------------------------ ##
12642 ## Report this to the AC_PACKAGE_NAME lists. ##
12643 ## ------------------------------------------ ##
12644 _ASBOX
12646 sed "s/^/$as_me: WARNING: /" >&2
12648 esac
12649 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12650 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12651 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 else
12654 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12656 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12657 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12660 if test $ac_cv_header_malloc_malloc_h = yes; then
12662 cat >>confdefs.h <<\_ACEOF
12663 #define HAVE_MALLOC_MALLOC_H 1
12664 _ACEOF
12670 ### Use Mac OS X Carbon API to implement GUI.
12671 if test "${HAVE_CARBON}" = "yes"; then
12673 cat >>confdefs.h <<\_ACEOF
12674 #define HAVE_CARBON 1
12675 _ACEOF
12677 ## Specify the install directory
12678 carbon_appdir=
12679 if test "${carbon_appdir_x}" != ""; then
12680 case ${carbon_appdir_x} in
12681 y | ye | yes) carbon_appdir=/Applications ;;
12682 * ) carbon_appdir=${carbon_appdir_x} ;;
12683 esac
12685 # We also have mouse menus.
12686 HAVE_MENUS=yes
12688 tmp_CFLAGS="$CFLAGS"
12689 CFLAGS="$CFLAGS -framework Carbon"
12690 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12691 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12692 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 else
12695 cat >conftest.$ac_ext <<_ACEOF
12696 /* confdefs.h. */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h. */
12701 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12703 #define CancelMenuTracking innocuous_CancelMenuTracking
12705 /* System header to define __stub macros and hopefully few prototypes,
12706 which can conflict with char CancelMenuTracking (); below.
12707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12708 <limits.h> exists even on freestanding compilers. */
12710 #ifdef __STDC__
12711 # include <limits.h>
12712 #else
12713 # include <assert.h>
12714 #endif
12716 #undef CancelMenuTracking
12718 /* Override any gcc2 internal prototype to avoid an error. */
12719 #ifdef __cplusplus
12720 extern "C"
12722 #endif
12723 /* We use char because int might match the return type of a gcc2
12724 builtin and then its argument prototype would still apply. */
12725 char CancelMenuTracking ();
12726 /* The GNU C library defines this for functions which it implements
12727 to always fail with ENOSYS. Some functions are actually named
12728 something starting with __ and the normal name is an alias. */
12729 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12730 choke me
12731 #else
12732 char (*f) () = CancelMenuTracking;
12733 #endif
12734 #ifdef __cplusplus
12736 #endif
12739 main ()
12741 return f != CancelMenuTracking;
12743 return 0;
12745 _ACEOF
12746 rm -f conftest.$ac_objext conftest$ac_exeext
12747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748 (eval $ac_link) 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; } &&
12761 { ac_try='test -s conftest$ac_exeext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_cv_func_CancelMenuTracking=yes
12768 else
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12772 ac_cv_func_CancelMenuTracking=no
12774 rm -f conftest.err conftest.$ac_objext \
12775 conftest$ac_exeext conftest.$ac_ext
12777 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12778 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12779 if test $ac_cv_func_CancelMenuTracking = yes; then
12780 have_cmt=yes
12781 else
12782 have_cmt=no
12785 if test "$have_cmt" = yes; then
12787 cat >>confdefs.h <<\_ACEOF
12788 #define HAVE_CANCELMENUTRACKING 1
12789 _ACEOF
12792 CFLAGS="$tmp_CFLAGS"
12795 ### Use session management (-lSM -lICE) if available
12796 HAVE_X_SM=no
12797 if test "${HAVE_X11}" = "yes"; then
12798 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12799 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12800 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12801 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12802 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12805 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12806 else
12807 # Is the header compilable?
12808 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12809 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12810 cat >conftest.$ac_ext <<_ACEOF
12811 /* confdefs.h. */
12812 _ACEOF
12813 cat confdefs.h >>conftest.$ac_ext
12814 cat >>conftest.$ac_ext <<_ACEOF
12815 /* end confdefs.h. */
12816 $ac_includes_default
12817 #include <X11/SM/SMlib.h>
12818 _ACEOF
12819 rm -f conftest.$ac_objext
12820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12821 (eval $ac_compile) 2>conftest.er1
12822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } &&
12828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; } &&
12834 { ac_try='test -s conftest.$ac_objext'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12840 ac_header_compiler=yes
12841 else
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12845 ac_header_compiler=no
12847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12849 echo "${ECHO_T}$ac_header_compiler" >&6
12851 # Is the header present?
12852 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12853 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12854 cat >conftest.$ac_ext <<_ACEOF
12855 /* confdefs.h. */
12856 _ACEOF
12857 cat confdefs.h >>conftest.$ac_ext
12858 cat >>conftest.$ac_ext <<_ACEOF
12859 /* end confdefs.h. */
12860 #include <X11/SM/SMlib.h>
12861 _ACEOF
12862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12864 ac_status=$?
12865 grep -v '^ *+' conftest.er1 >conftest.err
12866 rm -f conftest.er1
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } >/dev/null; then
12870 if test -s conftest.err; then
12871 ac_cpp_err=$ac_c_preproc_warn_flag
12872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12873 else
12874 ac_cpp_err=
12876 else
12877 ac_cpp_err=yes
12879 if test -z "$ac_cpp_err"; then
12880 ac_header_preproc=yes
12881 else
12882 echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12885 ac_header_preproc=no
12887 rm -f conftest.err conftest.$ac_ext
12888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12889 echo "${ECHO_T}$ac_header_preproc" >&6
12891 # So? What about this header?
12892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12893 yes:no: )
12894 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12895 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12896 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12897 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12898 ac_header_preproc=yes
12900 no:yes:* )
12901 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12902 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12903 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12904 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12905 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12906 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12907 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12908 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12909 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12910 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12911 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12912 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12914 cat <<\_ASBOX
12915 ## ------------------------------------------ ##
12916 ## Report this to the AC_PACKAGE_NAME lists. ##
12917 ## ------------------------------------------ ##
12918 _ASBOX
12920 sed "s/^/$as_me: WARNING: /" >&2
12922 esac
12923 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12924 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12925 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12926 echo $ECHO_N "(cached) $ECHO_C" >&6
12927 else
12928 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12930 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12931 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12934 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12935 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12936 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12937 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 else
12940 ac_check_lib_save_LIBS=$LIBS
12941 LIBS="-lSM -lICE $LIBS"
12942 cat >conftest.$ac_ext <<_ACEOF
12943 /* confdefs.h. */
12944 _ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h. */
12949 /* Override any gcc2 internal prototype to avoid an error. */
12950 #ifdef __cplusplus
12951 extern "C"
12952 #endif
12953 /* We use char because int might match the return type of a gcc2
12954 builtin and then its argument prototype would still apply. */
12955 char SmcOpenConnection ();
12957 main ()
12959 SmcOpenConnection ();
12961 return 0;
12963 _ACEOF
12964 rm -f conftest.$ac_objext conftest$ac_exeext
12965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12966 (eval $ac_link) 2>conftest.er1
12967 ac_status=$?
12968 grep -v '^ *+' conftest.er1 >conftest.err
12969 rm -f conftest.er1
12970 cat conftest.err >&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } &&
12973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; } &&
12979 { ac_try='test -s conftest$ac_exeext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_lib_SM_SmcOpenConnection=yes
12986 else
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12990 ac_cv_lib_SM_SmcOpenConnection=no
12992 rm -f conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext conftest.$ac_ext
12994 LIBS=$ac_check_lib_save_LIBS
12996 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12997 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12998 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12999 HAVE_X_SM=yes
13006 if test "${HAVE_X_SM}" = "yes"; then
13008 cat >>confdefs.h <<\_ACEOF
13009 #define HAVE_X_SM 1
13010 _ACEOF
13012 case "$LIBS" in
13013 *-lSM*) ;;
13014 *) LIBS="-lSM -lICE $LIBS" ;;
13015 esac
13019 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13020 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13021 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13022 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 else
13025 cat >conftest.$ac_ext <<_ACEOF
13026 /* confdefs.h. */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13031 #include <netdb.h>
13033 main ()
13035 return h_errno;
13037 return 0;
13039 _ACEOF
13040 rm -f conftest.$ac_objext conftest$ac_exeext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13042 (eval $ac_link) 2>conftest.er1
13043 ac_status=$?
13044 grep -v '^ *+' conftest.er1 >conftest.err
13045 rm -f conftest.er1
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; } &&
13055 { ac_try='test -s conftest$ac_exeext'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; }; then
13061 emacs_cv_netdb_declares_h_errno=yes
13062 else
13063 echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13066 emacs_cv_netdb_declares_h_errno=no
13068 rm -f conftest.err conftest.$ac_objext \
13069 conftest$ac_exeext conftest.$ac_ext
13071 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13072 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13073 if test $emacs_cv_netdb_declares_h_errno = yes; then
13075 cat >>confdefs.h <<\_ACEOF
13076 #define HAVE_H_ERRNO 1
13077 _ACEOF
13081 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13082 # for constant arguments. Useless!
13083 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13084 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13085 if test "${ac_cv_working_alloca_h+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 #include <alloca.h>
13096 main ()
13098 char *p = (char *) alloca (2 * sizeof (int));
13100 return 0;
13102 _ACEOF
13103 rm -f conftest.$ac_objext conftest$ac_exeext
13104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13105 (eval $ac_link) 2>conftest.er1
13106 ac_status=$?
13107 grep -v '^ *+' conftest.er1 >conftest.err
13108 rm -f conftest.er1
13109 cat conftest.err >&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } &&
13112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try='test -s conftest$ac_exeext'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 ac_cv_working_alloca_h=yes
13125 else
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13129 ac_cv_working_alloca_h=no
13131 rm -f conftest.err conftest.$ac_objext \
13132 conftest$ac_exeext conftest.$ac_ext
13134 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13135 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13136 if test $ac_cv_working_alloca_h = yes; then
13138 cat >>confdefs.h <<\_ACEOF
13139 #define HAVE_ALLOCA_H 1
13140 _ACEOF
13144 echo "$as_me:$LINENO: checking for alloca" >&5
13145 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13146 if test "${ac_cv_func_alloca_works+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13148 else
13149 cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h. */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 #ifdef __GNUC__
13156 # define alloca __builtin_alloca
13157 #else
13158 # ifdef _MSC_VER
13159 # include <malloc.h>
13160 # define alloca _alloca
13161 # else
13162 # if HAVE_ALLOCA_H
13163 # include <alloca.h>
13164 # else
13165 # ifdef _AIX
13166 #pragma alloca
13167 # else
13168 # ifndef alloca /* predefined by HP cc +Olibcalls */
13169 char *alloca ();
13170 # endif
13171 # endif
13172 # endif
13173 # endif
13174 #endif
13177 main ()
13179 char *p = (char *) alloca (1);
13181 return 0;
13183 _ACEOF
13184 rm -f conftest.$ac_objext conftest$ac_exeext
13185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13186 (eval $ac_link) 2>conftest.er1
13187 ac_status=$?
13188 grep -v '^ *+' conftest.er1 >conftest.err
13189 rm -f conftest.er1
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } &&
13193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13195 (eval $ac_try) 2>&5
13196 ac_status=$?
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; } &&
13199 { ac_try='test -s conftest$ac_exeext'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; }; then
13205 ac_cv_func_alloca_works=yes
13206 else
13207 echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13210 ac_cv_func_alloca_works=no
13212 rm -f conftest.err conftest.$ac_objext \
13213 conftest$ac_exeext conftest.$ac_ext
13215 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13216 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13218 if test $ac_cv_func_alloca_works = yes; then
13220 cat >>confdefs.h <<\_ACEOF
13221 #define HAVE_ALLOCA 1
13222 _ACEOF
13224 else
13225 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13226 # that cause trouble. Some versions do not even contain alloca or
13227 # contain a buggy version. If you still want to use their alloca,
13228 # use ar to extract alloca.o from them instead of compiling alloca.c.
13230 ALLOCA=alloca.$ac_objext
13232 cat >>confdefs.h <<\_ACEOF
13233 #define C_ALLOCA 1
13234 _ACEOF
13237 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13238 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13239 if test "${ac_cv_os_cray+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 else
13242 cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h. */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 #if defined(CRAY) && ! defined(CRAY2)
13249 webecray
13250 #else
13251 wenotbecray
13252 #endif
13254 _ACEOF
13255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13256 $EGREP "webecray" >/dev/null 2>&1; then
13257 ac_cv_os_cray=yes
13258 else
13259 ac_cv_os_cray=no
13261 rm -f conftest*
13264 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13265 echo "${ECHO_T}$ac_cv_os_cray" >&6
13266 if test $ac_cv_os_cray = yes; then
13267 for ac_func in _getb67 GETB67 getb67; do
13268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13269 echo "$as_me:$LINENO: checking for $ac_func" >&5
13270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13271 if eval "test \"\${$as_ac_var+set}\" = set"; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 else
13274 cat >conftest.$ac_ext <<_ACEOF
13275 /* confdefs.h. */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13282 #define $ac_func innocuous_$ac_func
13284 /* System header to define __stub macros and hopefully few prototypes,
13285 which can conflict with char $ac_func (); below.
13286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13287 <limits.h> exists even on freestanding compilers. */
13289 #ifdef __STDC__
13290 # include <limits.h>
13291 #else
13292 # include <assert.h>
13293 #endif
13295 #undef $ac_func
13297 /* Override any gcc2 internal prototype to avoid an error. */
13298 #ifdef __cplusplus
13299 extern "C"
13301 #endif
13302 /* We use char because int might match the return type of a gcc2
13303 builtin and then its argument prototype would still apply. */
13304 char $ac_func ();
13305 /* The GNU C library defines this for functions which it implements
13306 to always fail with ENOSYS. Some functions are actually named
13307 something starting with __ and the normal name is an alias. */
13308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13309 choke me
13310 #else
13311 char (*f) () = $ac_func;
13312 #endif
13313 #ifdef __cplusplus
13315 #endif
13318 main ()
13320 return f != $ac_func;
13322 return 0;
13324 _ACEOF
13325 rm -f conftest.$ac_objext conftest$ac_exeext
13326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13327 (eval $ac_link) 2>conftest.er1
13328 ac_status=$?
13329 grep -v '^ *+' conftest.er1 >conftest.err
13330 rm -f conftest.er1
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } &&
13334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; } &&
13340 { ac_try='test -s conftest$ac_exeext'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13346 eval "$as_ac_var=yes"
13347 else
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13351 eval "$as_ac_var=no"
13353 rm -f conftest.err conftest.$ac_objext \
13354 conftest$ac_exeext conftest.$ac_ext
13356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13358 if test `eval echo '${'$as_ac_var'}'` = yes; then
13360 cat >>confdefs.h <<_ACEOF
13361 #define CRAY_STACKSEG_END $ac_func
13362 _ACEOF
13364 break
13367 done
13370 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13371 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13372 if test "${ac_cv_c_stack_direction+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13374 else
13375 if test "$cross_compiling" = yes; then
13376 ac_cv_c_stack_direction=0
13377 else
13378 cat >conftest.$ac_ext <<_ACEOF
13379 /* confdefs.h. */
13380 _ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13385 find_stack_direction ()
13387 static char *addr = 0;
13388 auto char dummy;
13389 if (addr == 0)
13391 addr = &dummy;
13392 return find_stack_direction ();
13394 else
13395 return (&dummy > addr) ? 1 : -1;
13399 main ()
13401 exit (find_stack_direction () < 0);
13403 _ACEOF
13404 rm -f conftest$ac_exeext
13405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13406 (eval $ac_link) 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13412 ac_status=$?
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; }; then
13415 ac_cv_c_stack_direction=1
13416 else
13417 echo "$as_me: program exited with status $ac_status" >&5
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13421 ( exit $ac_status )
13422 ac_cv_c_stack_direction=-1
13424 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13427 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13428 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13430 cat >>confdefs.h <<_ACEOF
13431 #define STACK_DIRECTION $ac_cv_c_stack_direction
13432 _ACEOF
13438 # fmod, logb, and frexp are found in -lm on most systems.
13439 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13441 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13442 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13443 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446 ac_check_lib_save_LIBS=$LIBS
13447 LIBS="-lm $LIBS"
13448 cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h. */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13455 /* Override any gcc2 internal prototype to avoid an error. */
13456 #ifdef __cplusplus
13457 extern "C"
13458 #endif
13459 /* We use char because int might match the return type of a gcc2
13460 builtin and then its argument prototype would still apply. */
13461 char sqrt ();
13463 main ()
13465 sqrt ();
13467 return 0;
13469 _ACEOF
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472 (eval $ac_link) 2>conftest.er1
13473 ac_status=$?
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } &&
13479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; } &&
13485 { ac_try='test -s conftest$ac_exeext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 ac_cv_lib_m_sqrt=yes
13492 else
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13496 ac_cv_lib_m_sqrt=no
13498 rm -f conftest.err conftest.$ac_objext \
13499 conftest$ac_exeext conftest.$ac_ext
13500 LIBS=$ac_check_lib_save_LIBS
13502 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13503 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13504 if test $ac_cv_lib_m_sqrt = yes; then
13505 cat >>confdefs.h <<_ACEOF
13506 #define HAVE_LIBM 1
13507 _ACEOF
13509 LIBS="-lm $LIBS"
13514 # Check for mail-locking functions in a "mail" library. Probably this should
13515 # have the same check as for liblockfile below.
13517 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13518 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13519 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13521 else
13522 ac_check_lib_save_LIBS=$LIBS
13523 LIBS="-lmail $LIBS"
13524 cat >conftest.$ac_ext <<_ACEOF
13525 /* confdefs.h. */
13526 _ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h. */
13531 /* Override any gcc2 internal prototype to avoid an error. */
13532 #ifdef __cplusplus
13533 extern "C"
13534 #endif
13535 /* We use char because int might match the return type of a gcc2
13536 builtin and then its argument prototype would still apply. */
13537 char maillock ();
13539 main ()
13541 maillock ();
13543 return 0;
13545 _ACEOF
13546 rm -f conftest.$ac_objext conftest$ac_exeext
13547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13548 (eval $ac_link) 2>conftest.er1
13549 ac_status=$?
13550 grep -v '^ *+' conftest.er1 >conftest.err
13551 rm -f conftest.er1
13552 cat conftest.err >&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; } &&
13561 { ac_try='test -s conftest$ac_exeext'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
13567 ac_cv_lib_mail_maillock=yes
13568 else
13569 echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13572 ac_cv_lib_mail_maillock=no
13574 rm -f conftest.err conftest.$ac_objext \
13575 conftest$ac_exeext conftest.$ac_ext
13576 LIBS=$ac_check_lib_save_LIBS
13578 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13579 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13580 if test $ac_cv_lib_mail_maillock = yes; then
13581 cat >>confdefs.h <<_ACEOF
13582 #define HAVE_LIBMAIL 1
13583 _ACEOF
13585 LIBS="-lmail $LIBS"
13590 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13591 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13592 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 else
13595 ac_check_lib_save_LIBS=$LIBS
13596 LIBS="-llockfile $LIBS"
13597 cat >conftest.$ac_ext <<_ACEOF
13598 /* confdefs.h. */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13604 /* Override any gcc2 internal prototype to avoid an error. */
13605 #ifdef __cplusplus
13606 extern "C"
13607 #endif
13608 /* We use char because int might match the return type of a gcc2
13609 builtin and then its argument prototype would still apply. */
13610 char maillock ();
13612 main ()
13614 maillock ();
13616 return 0;
13618 _ACEOF
13619 rm -f conftest.$ac_objext conftest$ac_exeext
13620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13621 (eval $ac_link) 2>conftest.er1
13622 ac_status=$?
13623 grep -v '^ *+' conftest.er1 >conftest.err
13624 rm -f conftest.er1
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try='test -s conftest$ac_exeext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_cv_lib_lockfile_maillock=yes
13641 else
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13645 ac_cv_lib_lockfile_maillock=no
13647 rm -f conftest.err conftest.$ac_objext \
13648 conftest$ac_exeext conftest.$ac_ext
13649 LIBS=$ac_check_lib_save_LIBS
13651 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13652 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13653 if test $ac_cv_lib_lockfile_maillock = yes; then
13654 cat >>confdefs.h <<_ACEOF
13655 #define HAVE_LIBLOCKFILE 1
13656 _ACEOF
13658 LIBS="-llockfile $LIBS"
13662 # If we have the shared liblockfile, assume we must use it for mail
13663 # locking (e.g. Debian). If we couldn't link against liblockfile
13664 # (no liblockfile.a installed), ensure that we don't need to.
13665 if test "$ac_cv_lib_lockfile_maillock" = no; then
13666 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13667 set dummy liblockfile.so; ac_word=$2
13668 echo "$as_me:$LINENO: checking for $ac_word" >&5
13669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13670 if test "${ac_cv_prog_liblockfile+set}" = set; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 else
13673 if test -n "$liblockfile"; then
13674 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13675 else
13676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13678 for as_dir in $as_dummy
13680 IFS=$as_save_IFS
13681 test -z "$as_dir" && as_dir=.
13682 for ac_exec_ext in '' $ac_executable_extensions; do
13683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13684 ac_cv_prog_liblockfile="yes"
13685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13686 break 2
13688 done
13689 done
13691 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13694 liblockfile=$ac_cv_prog_liblockfile
13695 if test -n "$liblockfile"; then
13696 echo "$as_me:$LINENO: result: $liblockfile" >&5
13697 echo "${ECHO_T}$liblockfile" >&6
13698 else
13699 echo "$as_me:$LINENO: result: no" >&5
13700 echo "${ECHO_T}no" >&6
13703 if test $ac_cv_prog_liblockfile = yes; then
13704 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13705 This probably means that movemail could lose mail.
13706 There may be a \`development' package to install containing liblockfile." >&5
13707 echo "$as_me: error: Shared liblockfile found but can't link against it.
13708 This probably means that movemail could lose mail.
13709 There may be a \`development' package to install containing liblockfile." >&2;}
13710 { (exit 1); exit 1; }; }
13711 else :
13715 for ac_func in touchlock
13717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13718 echo "$as_me:$LINENO: checking for $ac_func" >&5
13719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13720 if eval "test \"\${$as_ac_var+set}\" = set"; then
13721 echo $ECHO_N "(cached) $ECHO_C" >&6
13722 else
13723 cat >conftest.$ac_ext <<_ACEOF
13724 /* confdefs.h. */
13725 _ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h. */
13729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13731 #define $ac_func innocuous_$ac_func
13733 /* System header to define __stub macros and hopefully few prototypes,
13734 which can conflict with char $ac_func (); below.
13735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13736 <limits.h> exists even on freestanding compilers. */
13738 #ifdef __STDC__
13739 # include <limits.h>
13740 #else
13741 # include <assert.h>
13742 #endif
13744 #undef $ac_func
13746 /* Override any gcc2 internal prototype to avoid an error. */
13747 #ifdef __cplusplus
13748 extern "C"
13750 #endif
13751 /* We use char because int might match the return type of a gcc2
13752 builtin and then its argument prototype would still apply. */
13753 char $ac_func ();
13754 /* The GNU C library defines this for functions which it implements
13755 to always fail with ENOSYS. Some functions are actually named
13756 something starting with __ and the normal name is an alias. */
13757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13758 choke me
13759 #else
13760 char (*f) () = $ac_func;
13761 #endif
13762 #ifdef __cplusplus
13764 #endif
13767 main ()
13769 return f != $ac_func;
13771 return 0;
13773 _ACEOF
13774 rm -f conftest.$ac_objext conftest$ac_exeext
13775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13776 (eval $ac_link) 2>conftest.er1
13777 ac_status=$?
13778 grep -v '^ *+' conftest.er1 >conftest.err
13779 rm -f conftest.er1
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest$ac_exeext'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13792 ac_status=$?
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; }; then
13795 eval "$as_ac_var=yes"
13796 else
13797 echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13800 eval "$as_ac_var=no"
13802 rm -f conftest.err conftest.$ac_objext \
13803 conftest$ac_exeext conftest.$ac_ext
13805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13807 if test `eval echo '${'$as_ac_var'}'` = yes; then
13808 cat >>confdefs.h <<_ACEOF
13809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13810 _ACEOF
13813 done
13816 for ac_header in maillock.h
13818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13820 echo "$as_me:$LINENO: checking for $ac_header" >&5
13821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13827 else
13828 # Is the header compilable?
13829 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13831 cat >conftest.$ac_ext <<_ACEOF
13832 /* confdefs.h. */
13833 _ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 $ac_includes_default
13838 #include <$ac_header>
13839 _ACEOF
13840 rm -f conftest.$ac_objext
13841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13842 (eval $ac_compile) 2>conftest.er1
13843 ac_status=$?
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest.$ac_objext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_header_compiler=yes
13862 else
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13866 ac_header_compiler=no
13868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13870 echo "${ECHO_T}$ac_header_compiler" >&6
13872 # Is the header present?
13873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13875 cat >conftest.$ac_ext <<_ACEOF
13876 /* confdefs.h. */
13877 _ACEOF
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h. */
13881 #include <$ac_header>
13882 _ACEOF
13883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13885 ac_status=$?
13886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } >/dev/null; then
13891 if test -s conftest.err; then
13892 ac_cpp_err=$ac_c_preproc_warn_flag
13893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13894 else
13895 ac_cpp_err=
13897 else
13898 ac_cpp_err=yes
13900 if test -z "$ac_cpp_err"; then
13901 ac_header_preproc=yes
13902 else
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13906 ac_header_preproc=no
13908 rm -f conftest.err conftest.$ac_ext
13909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13910 echo "${ECHO_T}$ac_header_preproc" >&6
13912 # So? What about this header?
13913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13914 yes:no: )
13915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13919 ac_header_preproc=yes
13921 no:yes:* )
13922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13935 cat <<\_ASBOX
13936 ## ------------------------------------------ ##
13937 ## Report this to the AC_PACKAGE_NAME lists. ##
13938 ## ------------------------------------------ ##
13939 _ASBOX
13941 sed "s/^/$as_me: WARNING: /" >&2
13943 esac
13944 echo "$as_me:$LINENO: checking for $ac_header" >&5
13945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 else
13949 eval "$as_ac_Header=\$ac_header_preproc"
13951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13956 cat >>confdefs.h <<_ACEOF
13957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13958 _ACEOF
13962 done
14033 for ac_func in gethostname getdomainname dup2 \
14034 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14035 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14036 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14037 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14038 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14039 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14040 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14041 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14044 echo "$as_me:$LINENO: checking for $ac_func" >&5
14045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14046 if eval "test \"\${$as_ac_var+set}\" = set"; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 else
14049 cat >conftest.$ac_ext <<_ACEOF
14050 /* confdefs.h. */
14051 _ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h. */
14055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14057 #define $ac_func innocuous_$ac_func
14059 /* System header to define __stub macros and hopefully few prototypes,
14060 which can conflict with char $ac_func (); below.
14061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14062 <limits.h> exists even on freestanding compilers. */
14064 #ifdef __STDC__
14065 # include <limits.h>
14066 #else
14067 # include <assert.h>
14068 #endif
14070 #undef $ac_func
14072 /* Override any gcc2 internal prototype to avoid an error. */
14073 #ifdef __cplusplus
14074 extern "C"
14076 #endif
14077 /* We use char because int might match the return type of a gcc2
14078 builtin and then its argument prototype would still apply. */
14079 char $ac_func ();
14080 /* The GNU C library defines this for functions which it implements
14081 to always fail with ENOSYS. Some functions are actually named
14082 something starting with __ and the normal name is an alias. */
14083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14084 choke me
14085 #else
14086 char (*f) () = $ac_func;
14087 #endif
14088 #ifdef __cplusplus
14090 #endif
14093 main ()
14095 return f != $ac_func;
14097 return 0;
14099 _ACEOF
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14102 (eval $ac_link) 2>conftest.er1
14103 ac_status=$?
14104 grep -v '^ *+' conftest.er1 >conftest.err
14105 rm -f conftest.er1
14106 cat conftest.err >&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } &&
14109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; } &&
14115 { ac_try='test -s conftest$ac_exeext'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 eval "$as_ac_var=yes"
14122 else
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14126 eval "$as_ac_var=no"
14128 rm -f conftest.err conftest.$ac_objext \
14129 conftest$ac_exeext conftest.$ac_ext
14131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14133 if test `eval echo '${'$as_ac_var'}'` = yes; then
14134 cat >>confdefs.h <<_ACEOF
14135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14136 _ACEOF
14139 done
14143 for ac_header in sys/un.h
14145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14147 echo "$as_me:$LINENO: checking for $ac_header" >&5
14148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14154 else
14155 # Is the header compilable?
14156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14158 cat >conftest.$ac_ext <<_ACEOF
14159 /* confdefs.h. */
14160 _ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14164 $ac_includes_default
14165 #include <$ac_header>
14166 _ACEOF
14167 rm -f conftest.$ac_objext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14169 (eval $ac_compile) 2>conftest.er1
14170 ac_status=$?
14171 grep -v '^ *+' conftest.er1 >conftest.err
14172 rm -f conftest.er1
14173 cat conftest.err >&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try='test -s conftest.$ac_objext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 ac_header_compiler=yes
14189 else
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ac_header_compiler=no
14195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14197 echo "${ECHO_T}$ac_header_compiler" >&6
14199 # Is the header present?
14200 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14202 cat >conftest.$ac_ext <<_ACEOF
14203 /* confdefs.h. */
14204 _ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 #include <$ac_header>
14209 _ACEOF
14210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14212 ac_status=$?
14213 grep -v '^ *+' conftest.er1 >conftest.err
14214 rm -f conftest.er1
14215 cat conftest.err >&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } >/dev/null; then
14218 if test -s conftest.err; then
14219 ac_cpp_err=$ac_c_preproc_warn_flag
14220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14221 else
14222 ac_cpp_err=
14224 else
14225 ac_cpp_err=yes
14227 if test -z "$ac_cpp_err"; then
14228 ac_header_preproc=yes
14229 else
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14233 ac_header_preproc=no
14235 rm -f conftest.err conftest.$ac_ext
14236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14237 echo "${ECHO_T}$ac_header_preproc" >&6
14239 # So? What about this header?
14240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14241 yes:no: )
14242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14246 ac_header_preproc=yes
14248 no:yes:* )
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14262 cat <<\_ASBOX
14263 ## ------------------------------------------ ##
14264 ## Report this to the AC_PACKAGE_NAME lists. ##
14265 ## ------------------------------------------ ##
14266 _ASBOX
14268 sed "s/^/$as_me: WARNING: /" >&2
14270 esac
14271 echo "$as_me:$LINENO: checking for $ac_header" >&5
14272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276 eval "$as_ac_Header=\$ac_header_preproc"
14278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14283 cat >>confdefs.h <<_ACEOF
14284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14285 _ACEOF
14289 done
14295 for ac_header in stdlib.h sys/time.h unistd.h
14297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14299 echo "$as_me:$LINENO: checking for $ac_header" >&5
14300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14306 else
14307 # Is the header compilable?
14308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14310 cat >conftest.$ac_ext <<_ACEOF
14311 /* confdefs.h. */
14312 _ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14316 $ac_includes_default
14317 #include <$ac_header>
14318 _ACEOF
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321 (eval $ac_compile) 2>conftest.er1
14322 ac_status=$?
14323 grep -v '^ *+' conftest.er1 >conftest.err
14324 rm -f conftest.er1
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; } &&
14334 { ac_try='test -s conftest.$ac_objext'
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 ac_header_compiler=yes
14341 else
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14345 ac_header_compiler=no
14347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14349 echo "${ECHO_T}$ac_header_compiler" >&6
14351 # Is the header present?
14352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14354 cat >conftest.$ac_ext <<_ACEOF
14355 /* confdefs.h. */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14360 #include <$ac_header>
14361 _ACEOF
14362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14364 ac_status=$?
14365 grep -v '^ *+' conftest.er1 >conftest.err
14366 rm -f conftest.er1
14367 cat conftest.err >&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } >/dev/null; then
14370 if test -s conftest.err; then
14371 ac_cpp_err=$ac_c_preproc_warn_flag
14372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14373 else
14374 ac_cpp_err=
14376 else
14377 ac_cpp_err=yes
14379 if test -z "$ac_cpp_err"; then
14380 ac_header_preproc=yes
14381 else
14382 echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14385 ac_header_preproc=no
14387 rm -f conftest.err conftest.$ac_ext
14388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14389 echo "${ECHO_T}$ac_header_preproc" >&6
14391 # So? What about this header?
14392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14393 yes:no: )
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14398 ac_header_preproc=yes
14400 no:yes:* )
14401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14414 cat <<\_ASBOX
14415 ## ------------------------------------------ ##
14416 ## Report this to the AC_PACKAGE_NAME lists. ##
14417 ## ------------------------------------------ ##
14418 _ASBOX
14420 sed "s/^/$as_me: WARNING: /" >&2
14422 esac
14423 echo "$as_me:$LINENO: checking for $ac_header" >&5
14424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 else
14428 eval "$as_ac_Header=\$ac_header_preproc"
14430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14435 cat >>confdefs.h <<_ACEOF
14436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14437 _ACEOF
14441 done
14444 for ac_func in alarm
14446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14447 echo "$as_me:$LINENO: checking for $ac_func" >&5
14448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14449 if eval "test \"\${$as_ac_var+set}\" = set"; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452 cat >conftest.$ac_ext <<_ACEOF
14453 /* confdefs.h. */
14454 _ACEOF
14455 cat confdefs.h >>conftest.$ac_ext
14456 cat >>conftest.$ac_ext <<_ACEOF
14457 /* end confdefs.h. */
14458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14460 #define $ac_func innocuous_$ac_func
14462 /* System header to define __stub macros and hopefully few prototypes,
14463 which can conflict with char $ac_func (); below.
14464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14465 <limits.h> exists even on freestanding compilers. */
14467 #ifdef __STDC__
14468 # include <limits.h>
14469 #else
14470 # include <assert.h>
14471 #endif
14473 #undef $ac_func
14475 /* Override any gcc2 internal prototype to avoid an error. */
14476 #ifdef __cplusplus
14477 extern "C"
14479 #endif
14480 /* We use char because int might match the return type of a gcc2
14481 builtin and then its argument prototype would still apply. */
14482 char $ac_func ();
14483 /* The GNU C library defines this for functions which it implements
14484 to always fail with ENOSYS. Some functions are actually named
14485 something starting with __ and the normal name is an alias. */
14486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14487 choke me
14488 #else
14489 char (*f) () = $ac_func;
14490 #endif
14491 #ifdef __cplusplus
14493 #endif
14496 main ()
14498 return f != $ac_func;
14500 return 0;
14502 _ACEOF
14503 rm -f conftest.$ac_objext conftest$ac_exeext
14504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14505 (eval $ac_link) 2>conftest.er1
14506 ac_status=$?
14507 grep -v '^ *+' conftest.er1 >conftest.err
14508 rm -f conftest.er1
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; } &&
14518 { ac_try='test -s conftest$ac_exeext'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; }; then
14524 eval "$as_ac_var=yes"
14525 else
14526 echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14529 eval "$as_ac_var=no"
14531 rm -f conftest.err conftest.$ac_objext \
14532 conftest$ac_exeext conftest.$ac_ext
14534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14536 if test `eval echo '${'$as_ac_var'}'` = yes; then
14537 cat >>confdefs.h <<_ACEOF
14538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14539 _ACEOF
14542 done
14544 echo "$as_me:$LINENO: checking for working mktime" >&5
14545 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14546 if test "${ac_cv_func_working_mktime+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 else
14549 if test "$cross_compiling" = yes; then
14550 ac_cv_func_working_mktime=no
14551 else
14552 cat >conftest.$ac_ext <<_ACEOF
14553 /* confdefs.h. */
14554 _ACEOF
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h. */
14558 /* Test program from Paul Eggert and Tony Leneis. */
14559 #if TIME_WITH_SYS_TIME
14560 # include <sys/time.h>
14561 # include <time.h>
14562 #else
14563 # if HAVE_SYS_TIME_H
14564 # include <sys/time.h>
14565 # else
14566 # include <time.h>
14567 # endif
14568 #endif
14570 #if HAVE_STDLIB_H
14571 # include <stdlib.h>
14572 #endif
14574 #if HAVE_UNISTD_H
14575 # include <unistd.h>
14576 #endif
14578 #if !HAVE_ALARM
14579 # define alarm(X) /* empty */
14580 #endif
14582 /* Work around redefinition to rpl_putenv by other config tests. */
14583 #undef putenv
14585 static time_t time_t_max;
14586 static time_t time_t_min;
14588 /* Values we'll use to set the TZ environment variable. */
14589 static char *tz_strings[] = {
14590 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14591 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14593 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14595 /* Fail if mktime fails to convert a date in the spring-forward gap.
14596 Based on a problem report from Andreas Jaeger. */
14597 static void
14598 spring_forward_gap ()
14600 /* glibc (up to about 1998-10-07) failed this test. */
14601 struct tm tm;
14603 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14604 instead of "TZ=America/Vancouver" in order to detect the bug even
14605 on systems that don't support the Olson extension, or don't have the
14606 full zoneinfo tables installed. */
14607 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14609 tm.tm_year = 98;
14610 tm.tm_mon = 3;
14611 tm.tm_mday = 5;
14612 tm.tm_hour = 2;
14613 tm.tm_min = 0;
14614 tm.tm_sec = 0;
14615 tm.tm_isdst = -1;
14616 if (mktime (&tm) == (time_t)-1)
14617 exit (1);
14620 static void
14621 mktime_test1 (now)
14622 time_t now;
14624 struct tm *lt;
14625 if ((lt = localtime (&now)) && mktime (lt) != now)
14626 exit (1);
14629 static void
14630 mktime_test (now)
14631 time_t now;
14633 mktime_test1 (now);
14634 mktime_test1 ((time_t) (time_t_max - now));
14635 mktime_test1 ((time_t) (time_t_min + now));
14638 static void
14639 irix_6_4_bug ()
14641 /* Based on code from Ariel Faigon. */
14642 struct tm tm;
14643 tm.tm_year = 96;
14644 tm.tm_mon = 3;
14645 tm.tm_mday = 0;
14646 tm.tm_hour = 0;
14647 tm.tm_min = 0;
14648 tm.tm_sec = 0;
14649 tm.tm_isdst = -1;
14650 mktime (&tm);
14651 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14652 exit (1);
14655 static void
14656 bigtime_test (j)
14657 int j;
14659 struct tm tm;
14660 time_t now;
14661 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14662 now = mktime (&tm);
14663 if (now != (time_t) -1)
14665 struct tm *lt = localtime (&now);
14666 if (! (lt
14667 && lt->tm_year == tm.tm_year
14668 && lt->tm_mon == tm.tm_mon
14669 && lt->tm_mday == tm.tm_mday
14670 && lt->tm_hour == tm.tm_hour
14671 && lt->tm_min == tm.tm_min
14672 && lt->tm_sec == tm.tm_sec
14673 && lt->tm_yday == tm.tm_yday
14674 && lt->tm_wday == tm.tm_wday
14675 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14676 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14677 exit (1);
14682 main ()
14684 time_t t, delta;
14685 int i, j;
14687 /* This test makes some buggy mktime implementations loop.
14688 Give up after 60 seconds; a mktime slower than that
14689 isn't worth using anyway. */
14690 alarm (60);
14692 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14693 continue;
14694 time_t_max--;
14695 if ((time_t) -1 < 0)
14696 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14697 continue;
14698 delta = time_t_max / 997; /* a suitable prime number */
14699 for (i = 0; i < N_STRINGS; i++)
14701 if (tz_strings[i])
14702 putenv (tz_strings[i]);
14704 for (t = 0; t <= time_t_max - delta; t += delta)
14705 mktime_test (t);
14706 mktime_test ((time_t) 1);
14707 mktime_test ((time_t) (60 * 60));
14708 mktime_test ((time_t) (60 * 60 * 24));
14710 for (j = 1; 0 < j; j *= 2)
14711 bigtime_test (j);
14712 bigtime_test (j - 1);
14714 irix_6_4_bug ();
14715 spring_forward_gap ();
14716 exit (0);
14718 _ACEOF
14719 rm -f conftest$ac_exeext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14721 (eval $ac_link) 2>&5
14722 ac_status=$?
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14730 ac_cv_func_working_mktime=yes
14731 else
14732 echo "$as_me: program exited with status $ac_status" >&5
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 ( exit $ac_status )
14737 ac_cv_func_working_mktime=no
14739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14742 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14743 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14744 if test $ac_cv_func_working_mktime = no; then
14745 case $LIBOBJS in
14746 "mktime.$ac_objext" | \
14747 *" mktime.$ac_objext" | \
14748 "mktime.$ac_objext "* | \
14749 *" mktime.$ac_objext "* ) ;;
14750 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14751 esac
14755 if test "$ac_cv_func_working_mktime" = no; then
14757 cat >>confdefs.h <<\_ACEOF
14758 #define BROKEN_MKTIME 1
14759 _ACEOF
14763 ac_have_func=no # yes means we've found a way to get the load average.
14765 # Make sure getloadavg.c is where it belongs, at configure-time.
14766 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14767 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14768 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14769 { (exit 1); exit 1; }; }
14771 ac_save_LIBS=$LIBS
14773 # Check for getloadavg, but be sure not to touch the cache variable.
14774 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14775 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14776 if test "${ac_cv_func_getloadavg+set}" = set; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 else
14779 cat >conftest.$ac_ext <<_ACEOF
14780 /* confdefs.h. */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14787 #define getloadavg innocuous_getloadavg
14789 /* System header to define __stub macros and hopefully few prototypes,
14790 which can conflict with char getloadavg (); below.
14791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14792 <limits.h> exists even on freestanding compilers. */
14794 #ifdef __STDC__
14795 # include <limits.h>
14796 #else
14797 # include <assert.h>
14798 #endif
14800 #undef getloadavg
14802 /* Override any gcc2 internal prototype to avoid an error. */
14803 #ifdef __cplusplus
14804 extern "C"
14806 #endif
14807 /* We use char because int might match the return type of a gcc2
14808 builtin and then its argument prototype would still apply. */
14809 char getloadavg ();
14810 /* The GNU C library defines this for functions which it implements
14811 to always fail with ENOSYS. Some functions are actually named
14812 something starting with __ and the normal name is an alias. */
14813 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14814 choke me
14815 #else
14816 char (*f) () = getloadavg;
14817 #endif
14818 #ifdef __cplusplus
14820 #endif
14823 main ()
14825 return f != getloadavg;
14827 return 0;
14829 _ACEOF
14830 rm -f conftest.$ac_objext conftest$ac_exeext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14832 (eval $ac_link) 2>conftest.er1
14833 ac_status=$?
14834 grep -v '^ *+' conftest.er1 >conftest.err
14835 rm -f conftest.er1
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
14839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; } &&
14845 { ac_try='test -s conftest$ac_exeext'
14846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847 (eval $ac_try) 2>&5
14848 ac_status=$?
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; }; then
14851 ac_cv_func_getloadavg=yes
14852 else
14853 echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 ac_cv_func_getloadavg=no
14858 rm -f conftest.err conftest.$ac_objext \
14859 conftest$ac_exeext conftest.$ac_ext
14861 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14862 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14863 if test $ac_cv_func_getloadavg = yes; then
14864 exit 0
14865 else
14866 exit 1
14868 ) && ac_have_func=yes
14870 # On HPUX9, an unprivileged user can get load averages through this function.
14872 for ac_func in pstat_getdynamic
14874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14875 echo "$as_me:$LINENO: checking for $ac_func" >&5
14876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14877 if eval "test \"\${$as_ac_var+set}\" = set"; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 else
14880 cat >conftest.$ac_ext <<_ACEOF
14881 /* confdefs.h. */
14882 _ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14888 #define $ac_func innocuous_$ac_func
14890 /* System header to define __stub macros and hopefully few prototypes,
14891 which can conflict with char $ac_func (); below.
14892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14893 <limits.h> exists even on freestanding compilers. */
14895 #ifdef __STDC__
14896 # include <limits.h>
14897 #else
14898 # include <assert.h>
14899 #endif
14901 #undef $ac_func
14903 /* Override any gcc2 internal prototype to avoid an error. */
14904 #ifdef __cplusplus
14905 extern "C"
14907 #endif
14908 /* We use char because int might match the return type of a gcc2
14909 builtin and then its argument prototype would still apply. */
14910 char $ac_func ();
14911 /* The GNU C library defines this for functions which it implements
14912 to always fail with ENOSYS. Some functions are actually named
14913 something starting with __ and the normal name is an alias. */
14914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14915 choke me
14916 #else
14917 char (*f) () = $ac_func;
14918 #endif
14919 #ifdef __cplusplus
14921 #endif
14924 main ()
14926 return f != $ac_func;
14928 return 0;
14930 _ACEOF
14931 rm -f conftest.$ac_objext conftest$ac_exeext
14932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14933 (eval $ac_link) 2>conftest.er1
14934 ac_status=$?
14935 grep -v '^ *+' conftest.er1 >conftest.err
14936 rm -f conftest.er1
14937 cat conftest.err >&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } &&
14940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; } &&
14946 { ac_try='test -s conftest$ac_exeext'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952 eval "$as_ac_var=yes"
14953 else
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14957 eval "$as_ac_var=no"
14959 rm -f conftest.err conftest.$ac_objext \
14960 conftest$ac_exeext conftest.$ac_ext
14962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14964 if test `eval echo '${'$as_ac_var'}'` = yes; then
14965 cat >>confdefs.h <<_ACEOF
14966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14967 _ACEOF
14970 done
14973 # Solaris has libkstat which does not require root.
14975 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14976 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14977 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14978 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 else
14980 ac_check_lib_save_LIBS=$LIBS
14981 LIBS="-lkstat $LIBS"
14982 cat >conftest.$ac_ext <<_ACEOF
14983 /* confdefs.h. */
14984 _ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14989 /* Override any gcc2 internal prototype to avoid an error. */
14990 #ifdef __cplusplus
14991 extern "C"
14992 #endif
14993 /* We use char because int might match the return type of a gcc2
14994 builtin and then its argument prototype would still apply. */
14995 char kstat_open ();
14997 main ()
14999 kstat_open ();
15001 return 0;
15003 _ACEOF
15004 rm -f conftest.$ac_objext conftest$ac_exeext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15006 (eval $ac_link) 2>conftest.er1
15007 ac_status=$?
15008 grep -v '^ *+' conftest.er1 >conftest.err
15009 rm -f conftest.er1
15010 cat conftest.err >&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
15013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; } &&
15019 { ac_try='test -s conftest$ac_exeext'
15020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021 (eval $ac_try) 2>&5
15022 ac_status=$?
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; }; then
15025 ac_cv_lib_kstat_kstat_open=yes
15026 else
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 ac_cv_lib_kstat_kstat_open=no
15032 rm -f conftest.err conftest.$ac_objext \
15033 conftest$ac_exeext conftest.$ac_ext
15034 LIBS=$ac_check_lib_save_LIBS
15036 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15037 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15038 if test $ac_cv_lib_kstat_kstat_open = yes; then
15039 cat >>confdefs.h <<_ACEOF
15040 #define HAVE_LIBKSTAT 1
15041 _ACEOF
15043 LIBS="-lkstat $LIBS"
15047 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15049 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15050 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15051 # to get the right answer into the cache.
15052 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15053 if test $ac_have_func = no; then
15054 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15055 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15056 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 else
15059 ac_check_lib_save_LIBS=$LIBS
15060 LIBS="-lelf $LIBS"
15061 cat >conftest.$ac_ext <<_ACEOF
15062 /* confdefs.h. */
15063 _ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15068 /* Override any gcc2 internal prototype to avoid an error. */
15069 #ifdef __cplusplus
15070 extern "C"
15071 #endif
15072 /* We use char because int might match the return type of a gcc2
15073 builtin and then its argument prototype would still apply. */
15074 char elf_begin ();
15076 main ()
15078 elf_begin ();
15080 return 0;
15082 _ACEOF
15083 rm -f conftest.$ac_objext conftest$ac_exeext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15085 (eval $ac_link) 2>conftest.er1
15086 ac_status=$?
15087 grep -v '^ *+' conftest.er1 >conftest.err
15088 rm -f conftest.er1
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
15092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15095 ac_status=$?
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; } &&
15098 { ac_try='test -s conftest$ac_exeext'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 ac_cv_lib_elf_elf_begin=yes
15105 else
15106 echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15109 ac_cv_lib_elf_elf_begin=no
15111 rm -f conftest.err conftest.$ac_objext \
15112 conftest$ac_exeext conftest.$ac_ext
15113 LIBS=$ac_check_lib_save_LIBS
15115 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15116 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15117 if test $ac_cv_lib_elf_elf_begin = yes; then
15118 LIBS="-lelf $LIBS"
15122 if test $ac_have_func = no; then
15123 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15124 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15125 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 else
15128 ac_check_lib_save_LIBS=$LIBS
15129 LIBS="-lkvm $LIBS"
15130 cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h. */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15137 /* Override any gcc2 internal prototype to avoid an error. */
15138 #ifdef __cplusplus
15139 extern "C"
15140 #endif
15141 /* We use char because int might match the return type of a gcc2
15142 builtin and then its argument prototype would still apply. */
15143 char kvm_open ();
15145 main ()
15147 kvm_open ();
15149 return 0;
15151 _ACEOF
15152 rm -f conftest.$ac_objext conftest$ac_exeext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15154 (eval $ac_link) 2>conftest.er1
15155 ac_status=$?
15156 grep -v '^ *+' conftest.er1 >conftest.err
15157 rm -f conftest.er1
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } &&
15161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; } &&
15167 { ac_try='test -s conftest$ac_exeext'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; }; then
15173 ac_cv_lib_kvm_kvm_open=yes
15174 else
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15178 ac_cv_lib_kvm_kvm_open=no
15180 rm -f conftest.err conftest.$ac_objext \
15181 conftest$ac_exeext conftest.$ac_ext
15182 LIBS=$ac_check_lib_save_LIBS
15184 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15185 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15186 if test $ac_cv_lib_kvm_kvm_open = yes; then
15187 LIBS="-lkvm $LIBS"
15190 # Check for the 4.4BSD definition of getloadavg.
15191 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15192 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15193 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 else
15196 ac_check_lib_save_LIBS=$LIBS
15197 LIBS="-lutil $LIBS"
15198 cat >conftest.$ac_ext <<_ACEOF
15199 /* confdefs.h. */
15200 _ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h. */
15205 /* Override any gcc2 internal prototype to avoid an error. */
15206 #ifdef __cplusplus
15207 extern "C"
15208 #endif
15209 /* We use char because int might match the return type of a gcc2
15210 builtin and then its argument prototype would still apply. */
15211 char getloadavg ();
15213 main ()
15215 getloadavg ();
15217 return 0;
15219 _ACEOF
15220 rm -f conftest.$ac_objext conftest$ac_exeext
15221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15222 (eval $ac_link) 2>conftest.er1
15223 ac_status=$?
15224 grep -v '^ *+' conftest.er1 >conftest.err
15225 rm -f conftest.er1
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
15229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231 (eval $ac_try) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; } &&
15235 { ac_try='test -s conftest$ac_exeext'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 ac_cv_lib_util_getloadavg=yes
15242 else
15243 echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15246 ac_cv_lib_util_getloadavg=no
15248 rm -f conftest.err conftest.$ac_objext \
15249 conftest$ac_exeext conftest.$ac_ext
15250 LIBS=$ac_check_lib_save_LIBS
15252 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15253 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15254 if test $ac_cv_lib_util_getloadavg = yes; then
15255 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15260 if test $ac_have_func = no; then
15261 # There is a commonly available library for RS/6000 AIX.
15262 # Since it is not a standard part of AIX, it might be installed locally.
15263 ac_getloadavg_LIBS=$LIBS
15264 LIBS="-L/usr/local/lib $LIBS"
15265 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15266 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15267 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270 ac_check_lib_save_LIBS=$LIBS
15271 LIBS="-lgetloadavg $LIBS"
15272 cat >conftest.$ac_ext <<_ACEOF
15273 /* confdefs.h. */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h. */
15279 /* Override any gcc2 internal prototype to avoid an error. */
15280 #ifdef __cplusplus
15281 extern "C"
15282 #endif
15283 /* We use char because int might match the return type of a gcc2
15284 builtin and then its argument prototype would still apply. */
15285 char getloadavg ();
15287 main ()
15289 getloadavg ();
15291 return 0;
15293 _ACEOF
15294 rm -f conftest.$ac_objext conftest$ac_exeext
15295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15296 (eval $ac_link) 2>conftest.er1
15297 ac_status=$?
15298 grep -v '^ *+' conftest.er1 >conftest.err
15299 rm -f conftest.er1
15300 cat conftest.err >&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } &&
15303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5
15306 ac_status=$?
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; } &&
15309 { ac_try='test -s conftest$ac_exeext'
15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15312 ac_status=$?
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; }; then
15315 ac_cv_lib_getloadavg_getloadavg=yes
15316 else
15317 echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15320 ac_cv_lib_getloadavg_getloadavg=no
15322 rm -f conftest.err conftest.$ac_objext \
15323 conftest$ac_exeext conftest.$ac_ext
15324 LIBS=$ac_check_lib_save_LIBS
15326 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15327 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15328 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15329 LIBS="-lgetloadavg $LIBS"
15330 else
15331 LIBS=$ac_getloadavg_LIBS
15336 # Make sure it is really in the library, if we think we found it,
15337 # otherwise set up the replacement function.
15339 for ac_func in getloadavg
15341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15342 echo "$as_me:$LINENO: checking for $ac_func" >&5
15343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15344 if eval "test \"\${$as_ac_var+set}\" = set"; then
15345 echo $ECHO_N "(cached) $ECHO_C" >&6
15346 else
15347 cat >conftest.$ac_ext <<_ACEOF
15348 /* confdefs.h. */
15349 _ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15355 #define $ac_func innocuous_$ac_func
15357 /* System header to define __stub macros and hopefully few prototypes,
15358 which can conflict with char $ac_func (); below.
15359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15360 <limits.h> exists even on freestanding compilers. */
15362 #ifdef __STDC__
15363 # include <limits.h>
15364 #else
15365 # include <assert.h>
15366 #endif
15368 #undef $ac_func
15370 /* Override any gcc2 internal prototype to avoid an error. */
15371 #ifdef __cplusplus
15372 extern "C"
15374 #endif
15375 /* We use char because int might match the return type of a gcc2
15376 builtin and then its argument prototype would still apply. */
15377 char $ac_func ();
15378 /* The GNU C library defines this for functions which it implements
15379 to always fail with ENOSYS. Some functions are actually named
15380 something starting with __ and the normal name is an alias. */
15381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15382 choke me
15383 #else
15384 char (*f) () = $ac_func;
15385 #endif
15386 #ifdef __cplusplus
15388 #endif
15391 main ()
15393 return f != $ac_func;
15395 return 0;
15397 _ACEOF
15398 rm -f conftest.$ac_objext conftest$ac_exeext
15399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15400 (eval $ac_link) 2>conftest.er1
15401 ac_status=$?
15402 grep -v '^ *+' conftest.er1 >conftest.err
15403 rm -f conftest.er1
15404 cat conftest.err >&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } &&
15407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15410 ac_status=$?
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; } &&
15413 { ac_try='test -s conftest$ac_exeext'
15414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415 (eval $ac_try) 2>&5
15416 ac_status=$?
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 eval "$as_ac_var=yes"
15420 else
15421 echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 eval "$as_ac_var=no"
15426 rm -f conftest.err conftest.$ac_objext \
15427 conftest$ac_exeext conftest.$ac_ext
15429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15431 if test `eval echo '${'$as_ac_var'}'` = yes; then
15432 cat >>confdefs.h <<_ACEOF
15433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15434 _ACEOF
15436 else
15437 case $LIBOBJS in
15438 "getloadavg.$ac_objext" | \
15439 *" getloadavg.$ac_objext" | \
15440 "getloadavg.$ac_objext "* | \
15441 *" getloadavg.$ac_objext "* ) ;;
15442 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15443 esac
15446 cat >>confdefs.h <<\_ACEOF
15447 #define C_GETLOADAVG 1
15448 _ACEOF
15450 # Figure out what our getloadavg.c needs.
15451 ac_have_func=no
15452 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15453 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15454 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15455 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15458 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15459 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15460 else
15461 # Is the header compilable?
15462 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15463 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15464 cat >conftest.$ac_ext <<_ACEOF
15465 /* confdefs.h. */
15466 _ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15470 $ac_includes_default
15471 #include <sys/dg_sys_info.h>
15472 _ACEOF
15473 rm -f conftest.$ac_objext
15474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15475 (eval $ac_compile) 2>conftest.er1
15476 ac_status=$?
15477 grep -v '^ *+' conftest.er1 >conftest.err
15478 rm -f conftest.er1
15479 cat conftest.err >&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); } &&
15482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15485 ac_status=$?
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; } &&
15488 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15494 ac_header_compiler=yes
15495 else
15496 echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15499 ac_header_compiler=no
15501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15503 echo "${ECHO_T}$ac_header_compiler" >&6
15505 # Is the header present?
15506 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15507 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15508 cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h. */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15514 #include <sys/dg_sys_info.h>
15515 _ACEOF
15516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15518 ac_status=$?
15519 grep -v '^ *+' conftest.er1 >conftest.err
15520 rm -f conftest.er1
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } >/dev/null; then
15524 if test -s conftest.err; then
15525 ac_cpp_err=$ac_c_preproc_warn_flag
15526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15527 else
15528 ac_cpp_err=
15530 else
15531 ac_cpp_err=yes
15533 if test -z "$ac_cpp_err"; then
15534 ac_header_preproc=yes
15535 else
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 ac_header_preproc=no
15541 rm -f conftest.err conftest.$ac_ext
15542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15543 echo "${ECHO_T}$ac_header_preproc" >&6
15545 # So? What about this header?
15546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15547 yes:no: )
15548 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15549 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15551 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15552 ac_header_preproc=yes
15554 no:yes:* )
15555 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15556 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15557 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15558 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15559 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15560 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15562 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15564 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15566 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15568 cat <<\_ASBOX
15569 ## ------------------------------------------ ##
15570 ## Report this to the AC_PACKAGE_NAME lists. ##
15571 ## ------------------------------------------ ##
15572 _ASBOX
15574 sed "s/^/$as_me: WARNING: /" >&2
15576 esac
15577 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15578 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15579 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15581 else
15582 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15584 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15585 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15588 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15589 ac_have_func=yes
15591 cat >>confdefs.h <<\_ACEOF
15592 #define DGUX 1
15593 _ACEOF
15596 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15597 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15598 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 else
15601 ac_check_lib_save_LIBS=$LIBS
15602 LIBS="-ldgc $LIBS"
15603 cat >conftest.$ac_ext <<_ACEOF
15604 /* confdefs.h. */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15610 /* Override any gcc2 internal prototype to avoid an error. */
15611 #ifdef __cplusplus
15612 extern "C"
15613 #endif
15614 /* We use char because int might match the return type of a gcc2
15615 builtin and then its argument prototype would still apply. */
15616 char dg_sys_info ();
15618 main ()
15620 dg_sys_info ();
15622 return 0;
15624 _ACEOF
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15627 (eval $ac_link) 2>conftest.er1
15628 ac_status=$?
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; } &&
15640 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15646 ac_cv_lib_dgc_dg_sys_info=yes
15647 else
15648 echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15651 ac_cv_lib_dgc_dg_sys_info=no
15653 rm -f conftest.err conftest.$ac_objext \
15654 conftest$ac_exeext conftest.$ac_ext
15655 LIBS=$ac_check_lib_save_LIBS
15657 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15658 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15659 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15660 cat >>confdefs.h <<_ACEOF
15661 #define HAVE_LIBDGC 1
15662 _ACEOF
15664 LIBS="-ldgc $LIBS"
15672 if test "${ac_cv_header_locale_h+set}" = set; then
15673 echo "$as_me:$LINENO: checking for locale.h" >&5
15674 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15675 if test "${ac_cv_header_locale_h+set}" = set; then
15676 echo $ECHO_N "(cached) $ECHO_C" >&6
15678 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15679 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15680 else
15681 # Is the header compilable?
15682 echo "$as_me:$LINENO: checking locale.h usability" >&5
15683 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15684 cat >conftest.$ac_ext <<_ACEOF
15685 /* confdefs.h. */
15686 _ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h. */
15690 $ac_includes_default
15691 #include <locale.h>
15692 _ACEOF
15693 rm -f conftest.$ac_objext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15695 (eval $ac_compile) 2>conftest.er1
15696 ac_status=$?
15697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; } &&
15708 { ac_try='test -s conftest.$ac_objext'
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15714 ac_header_compiler=yes
15715 else
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15719 ac_header_compiler=no
15721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15723 echo "${ECHO_T}$ac_header_compiler" >&6
15725 # Is the header present?
15726 echo "$as_me:$LINENO: checking locale.h presence" >&5
15727 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15728 cat >conftest.$ac_ext <<_ACEOF
15729 /* confdefs.h. */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15734 #include <locale.h>
15735 _ACEOF
15736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15738 ac_status=$?
15739 grep -v '^ *+' conftest.er1 >conftest.err
15740 rm -f conftest.er1
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } >/dev/null; then
15744 if test -s conftest.err; then
15745 ac_cpp_err=$ac_c_preproc_warn_flag
15746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15747 else
15748 ac_cpp_err=
15750 else
15751 ac_cpp_err=yes
15753 if test -z "$ac_cpp_err"; then
15754 ac_header_preproc=yes
15755 else
15756 echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15759 ac_header_preproc=no
15761 rm -f conftest.err conftest.$ac_ext
15762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15763 echo "${ECHO_T}$ac_header_preproc" >&6
15765 # So? What about this header?
15766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15767 yes:no: )
15768 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15769 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15771 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15772 ac_header_preproc=yes
15774 no:yes:* )
15775 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15776 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15778 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15780 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15781 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15782 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15784 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15786 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15788 cat <<\_ASBOX
15789 ## ------------------------------------------ ##
15790 ## Report this to the AC_PACKAGE_NAME lists. ##
15791 ## ------------------------------------------ ##
15792 _ASBOX
15794 sed "s/^/$as_me: WARNING: /" >&2
15796 esac
15797 echo "$as_me:$LINENO: checking for locale.h" >&5
15798 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15799 if test "${ac_cv_header_locale_h+set}" = set; then
15800 echo $ECHO_N "(cached) $ECHO_C" >&6
15801 else
15802 ac_cv_header_locale_h=$ac_header_preproc
15804 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15805 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15811 for ac_func in setlocale
15813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15814 echo "$as_me:$LINENO: checking for $ac_func" >&5
15815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15816 if eval "test \"\${$as_ac_var+set}\" = set"; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 else
15819 cat >conftest.$ac_ext <<_ACEOF
15820 /* confdefs.h. */
15821 _ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h. */
15825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15827 #define $ac_func innocuous_$ac_func
15829 /* System header to define __stub macros and hopefully few prototypes,
15830 which can conflict with char $ac_func (); below.
15831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15832 <limits.h> exists even on freestanding compilers. */
15834 #ifdef __STDC__
15835 # include <limits.h>
15836 #else
15837 # include <assert.h>
15838 #endif
15840 #undef $ac_func
15842 /* Override any gcc2 internal prototype to avoid an error. */
15843 #ifdef __cplusplus
15844 extern "C"
15846 #endif
15847 /* We use char because int might match the return type of a gcc2
15848 builtin and then its argument prototype would still apply. */
15849 char $ac_func ();
15850 /* The GNU C library defines this for functions which it implements
15851 to always fail with ENOSYS. Some functions are actually named
15852 something starting with __ and the normal name is an alias. */
15853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15854 choke me
15855 #else
15856 char (*f) () = $ac_func;
15857 #endif
15858 #ifdef __cplusplus
15860 #endif
15863 main ()
15865 return f != $ac_func;
15867 return 0;
15869 _ACEOF
15870 rm -f conftest.$ac_objext conftest$ac_exeext
15871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15872 (eval $ac_link) 2>conftest.er1
15873 ac_status=$?
15874 grep -v '^ *+' conftest.er1 >conftest.err
15875 rm -f conftest.er1
15876 cat conftest.err >&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } &&
15879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try='test -s conftest$ac_exeext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 eval "$as_ac_var=yes"
15892 else
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15896 eval "$as_ac_var=no"
15898 rm -f conftest.err conftest.$ac_objext \
15899 conftest$ac_exeext conftest.$ac_ext
15901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15903 if test `eval echo '${'$as_ac_var'}'` = yes; then
15904 cat >>confdefs.h <<_ACEOF
15905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15906 _ACEOF
15909 done
15912 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15913 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15914 # Irix 4.0.5F has the header but not the library.
15915 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15916 ac_have_func=yes
15918 cat >>confdefs.h <<\_ACEOF
15919 #define SVR4 1
15920 _ACEOF
15924 if test $ac_have_func = no; then
15925 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15926 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15927 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15928 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15931 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15932 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15933 else
15934 # Is the header compilable?
15935 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15936 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15937 cat >conftest.$ac_ext <<_ACEOF
15938 /* confdefs.h. */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15943 $ac_includes_default
15944 #include <inq_stats/cpustats.h>
15945 _ACEOF
15946 rm -f conftest.$ac_objext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15948 (eval $ac_compile) 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
15955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } &&
15961 { ac_try='test -s conftest.$ac_objext'
15962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963 (eval $ac_try) 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; }; then
15967 ac_header_compiler=yes
15968 else
15969 echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15972 ac_header_compiler=no
15974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15976 echo "${ECHO_T}$ac_header_compiler" >&6
15978 # Is the header present?
15979 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15980 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15981 cat >conftest.$ac_ext <<_ACEOF
15982 /* confdefs.h. */
15983 _ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h. */
15987 #include <inq_stats/cpustats.h>
15988 _ACEOF
15989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15991 ac_status=$?
15992 grep -v '^ *+' conftest.er1 >conftest.err
15993 rm -f conftest.er1
15994 cat conftest.err >&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } >/dev/null; then
15997 if test -s conftest.err; then
15998 ac_cpp_err=$ac_c_preproc_warn_flag
15999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16000 else
16001 ac_cpp_err=
16003 else
16004 ac_cpp_err=yes
16006 if test -z "$ac_cpp_err"; then
16007 ac_header_preproc=yes
16008 else
16009 echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16012 ac_header_preproc=no
16014 rm -f conftest.err conftest.$ac_ext
16015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16016 echo "${ECHO_T}$ac_header_preproc" >&6
16018 # So? What about this header?
16019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16020 yes:no: )
16021 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16022 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16024 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16025 ac_header_preproc=yes
16027 no:yes:* )
16028 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16029 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16030 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16031 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16033 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16035 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16037 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16039 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16041 cat <<\_ASBOX
16042 ## ------------------------------------------ ##
16043 ## Report this to the AC_PACKAGE_NAME lists. ##
16044 ## ------------------------------------------ ##
16045 _ASBOX
16047 sed "s/^/$as_me: WARNING: /" >&2
16049 esac
16050 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16051 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16052 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16054 else
16055 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16057 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16058 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16061 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16062 ac_have_func=yes
16064 cat >>confdefs.h <<\_ACEOF
16065 #define UMAX 1
16066 _ACEOF
16069 cat >>confdefs.h <<\_ACEOF
16070 #define UMAX4_3 1
16071 _ACEOF
16078 if test $ac_have_func = no; then
16079 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16080 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16081 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16082 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16086 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16087 else
16088 # Is the header compilable?
16089 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16090 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16091 cat >conftest.$ac_ext <<_ACEOF
16092 /* confdefs.h. */
16093 _ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16097 $ac_includes_default
16098 #include <sys/cpustats.h>
16099 _ACEOF
16100 rm -f conftest.$ac_objext
16101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16102 (eval $ac_compile) 2>conftest.er1
16103 ac_status=$?
16104 grep -v '^ *+' conftest.er1 >conftest.err
16105 rm -f conftest.er1
16106 cat conftest.err >&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); } &&
16109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; } &&
16115 { ac_try='test -s conftest.$ac_objext'
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; }; then
16121 ac_header_compiler=yes
16122 else
16123 echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16126 ac_header_compiler=no
16128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16130 echo "${ECHO_T}$ac_header_compiler" >&6
16132 # Is the header present?
16133 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16134 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16135 cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h. */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 #include <sys/cpustats.h>
16142 _ACEOF
16143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16145 ac_status=$?
16146 grep -v '^ *+' conftest.er1 >conftest.err
16147 rm -f conftest.er1
16148 cat conftest.err >&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } >/dev/null; then
16151 if test -s conftest.err; then
16152 ac_cpp_err=$ac_c_preproc_warn_flag
16153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16154 else
16155 ac_cpp_err=
16157 else
16158 ac_cpp_err=yes
16160 if test -z "$ac_cpp_err"; then
16161 ac_header_preproc=yes
16162 else
16163 echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16166 ac_header_preproc=no
16168 rm -f conftest.err conftest.$ac_ext
16169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16170 echo "${ECHO_T}$ac_header_preproc" >&6
16172 # So? What about this header?
16173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16174 yes:no: )
16175 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16176 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16177 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16178 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16179 ac_header_preproc=yes
16181 no:yes:* )
16182 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16183 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16184 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16185 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16186 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16187 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16188 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16189 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16190 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16191 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16193 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16195 cat <<\_ASBOX
16196 ## ------------------------------------------ ##
16197 ## Report this to the AC_PACKAGE_NAME lists. ##
16198 ## ------------------------------------------ ##
16199 _ASBOX
16201 sed "s/^/$as_me: WARNING: /" >&2
16203 esac
16204 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16205 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16206 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16207 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 else
16209 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16211 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16212 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16215 if test $ac_cv_header_sys_cpustats_h = yes; then
16216 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16217 #define UMAX 1
16218 _ACEOF
16225 if test $ac_have_func = no; then
16227 for ac_header in mach/mach.h
16229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16231 echo "$as_me:$LINENO: checking for $ac_header" >&5
16232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16238 else
16239 # Is the header compilable?
16240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16242 cat >conftest.$ac_ext <<_ACEOF
16243 /* confdefs.h. */
16244 _ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 $ac_includes_default
16249 #include <$ac_header>
16250 _ACEOF
16251 rm -f conftest.$ac_objext
16252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16253 (eval $ac_compile) 2>conftest.er1
16254 ac_status=$?
16255 grep -v '^ *+' conftest.er1 >conftest.err
16256 rm -f conftest.er1
16257 cat conftest.err >&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); } &&
16260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; } &&
16266 { ac_try='test -s conftest.$ac_objext'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 ac_header_compiler=yes
16273 else
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 ac_header_compiler=no
16279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16281 echo "${ECHO_T}$ac_header_compiler" >&6
16283 # Is the header present?
16284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16286 cat >conftest.$ac_ext <<_ACEOF
16287 /* confdefs.h. */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 #include <$ac_header>
16293 _ACEOF
16294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16296 ac_status=$?
16297 grep -v '^ *+' conftest.er1 >conftest.err
16298 rm -f conftest.er1
16299 cat conftest.err >&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } >/dev/null; then
16302 if test -s conftest.err; then
16303 ac_cpp_err=$ac_c_preproc_warn_flag
16304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16305 else
16306 ac_cpp_err=
16308 else
16309 ac_cpp_err=yes
16311 if test -z "$ac_cpp_err"; then
16312 ac_header_preproc=yes
16313 else
16314 echo "$as_me: failed program was:" >&5
16315 sed 's/^/| /' conftest.$ac_ext >&5
16317 ac_header_preproc=no
16319 rm -f conftest.err conftest.$ac_ext
16320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16321 echo "${ECHO_T}$ac_header_preproc" >&6
16323 # So? What about this header?
16324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16325 yes:no: )
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16330 ac_header_preproc=yes
16332 no:yes:* )
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16346 cat <<\_ASBOX
16347 ## ------------------------------------------ ##
16348 ## Report this to the AC_PACKAGE_NAME lists. ##
16349 ## ------------------------------------------ ##
16350 _ASBOX
16352 sed "s/^/$as_me: WARNING: /" >&2
16354 esac
16355 echo "$as_me:$LINENO: checking for $ac_header" >&5
16356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16359 else
16360 eval "$as_ac_Header=\$ac_header_preproc"
16362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16367 cat >>confdefs.h <<_ACEOF
16368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16369 _ACEOF
16373 done
16378 for ac_header in nlist.h
16380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16382 echo "$as_me:$LINENO: checking for $ac_header" >&5
16383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16385 echo $ECHO_N "(cached) $ECHO_C" >&6
16387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16389 else
16390 # Is the header compilable?
16391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16393 cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h. */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 $ac_includes_default
16400 #include <$ac_header>
16401 _ACEOF
16402 rm -f conftest.$ac_objext
16403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16404 (eval $ac_compile) 2>conftest.er1
16405 ac_status=$?
16406 grep -v '^ *+' conftest.er1 >conftest.err
16407 rm -f conftest.er1
16408 cat conftest.err >&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } &&
16411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; } &&
16417 { ac_try='test -s conftest.$ac_objext'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; }; then
16423 ac_header_compiler=yes
16424 else
16425 echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16428 ac_header_compiler=no
16430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16432 echo "${ECHO_T}$ac_header_compiler" >&6
16434 # Is the header present?
16435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16437 cat >conftest.$ac_ext <<_ACEOF
16438 /* confdefs.h. */
16439 _ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h. */
16443 #include <$ac_header>
16444 _ACEOF
16445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16447 ac_status=$?
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } >/dev/null; then
16453 if test -s conftest.err; then
16454 ac_cpp_err=$ac_c_preproc_warn_flag
16455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16456 else
16457 ac_cpp_err=
16459 else
16460 ac_cpp_err=yes
16462 if test -z "$ac_cpp_err"; then
16463 ac_header_preproc=yes
16464 else
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16468 ac_header_preproc=no
16470 rm -f conftest.err conftest.$ac_ext
16471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16472 echo "${ECHO_T}$ac_header_preproc" >&6
16474 # So? What about this header?
16475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16476 yes:no: )
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16481 ac_header_preproc=yes
16483 no:yes:* )
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16497 cat <<\_ASBOX
16498 ## ------------------------------------------ ##
16499 ## Report this to the AC_PACKAGE_NAME lists. ##
16500 ## ------------------------------------------ ##
16501 _ASBOX
16503 sed "s/^/$as_me: WARNING: /" >&2
16505 esac
16506 echo "$as_me:$LINENO: checking for $ac_header" >&5
16507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 else
16511 eval "$as_ac_Header=\$ac_header_preproc"
16513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16518 cat >>confdefs.h <<_ACEOF
16519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16520 _ACEOF
16521 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16522 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16523 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16525 else
16526 cat >conftest.$ac_ext <<_ACEOF
16527 /* confdefs.h. */
16528 _ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16532 #include <nlist.h>
16535 main ()
16537 static struct nlist ac_aggr;
16538 if (ac_aggr.n_un.n_name)
16539 return 0;
16541 return 0;
16543 _ACEOF
16544 rm -f conftest.$ac_objext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16546 (eval $ac_compile) 2>conftest.er1
16547 ac_status=$?
16548 grep -v '^ *+' conftest.er1 >conftest.err
16549 rm -f conftest.er1
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16556 ac_status=$?
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; } &&
16559 { ac_try='test -s conftest.$ac_objext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ac_cv_member_struct_nlist_n_un_n_name=yes
16566 else
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 cat >conftest.$ac_ext <<_ACEOF
16571 /* confdefs.h. */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16576 #include <nlist.h>
16579 main ()
16581 static struct nlist ac_aggr;
16582 if (sizeof ac_aggr.n_un.n_name)
16583 return 0;
16585 return 0;
16587 _ACEOF
16588 rm -f conftest.$ac_objext
16589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16590 (eval $ac_compile) 2>conftest.er1
16591 ac_status=$?
16592 grep -v '^ *+' conftest.er1 >conftest.err
16593 rm -f conftest.er1
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; } &&
16603 { ac_try='test -s conftest.$ac_objext'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16609 ac_cv_member_struct_nlist_n_un_n_name=yes
16610 else
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16614 ac_cv_member_struct_nlist_n_un_n_name=no
16616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16620 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16621 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16622 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16624 cat >>confdefs.h <<_ACEOF
16625 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16626 _ACEOF
16629 cat >>confdefs.h <<\_ACEOF
16630 #define NLIST_NAME_UNION 1
16631 _ACEOF
16638 done
16641 done
16644 # Some definitions of getloadavg require that the program be installed setgid.
16645 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16646 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16647 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650 cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h. */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16657 #ifdef LDAV_PRIVILEGED
16658 Yowza Am I SETGID yet
16659 #endif
16660 _ACEOF
16661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16662 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16663 ac_cv_func_getloadavg_setgid=yes
16664 else
16665 ac_cv_func_getloadavg_setgid=no
16667 rm -f conftest*
16670 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16671 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16672 if test $ac_cv_func_getloadavg_setgid = yes; then
16673 NEED_SETGID=true
16675 cat >>confdefs.h <<\_ACEOF
16676 #define GETLOADAVG_PRIVILEGED 1
16677 _ACEOF
16679 else
16680 NEED_SETGID=false
16683 if test $ac_cv_func_getloadavg_setgid = yes; then
16684 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16685 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16686 if test "${ac_cv_group_kmem+set}" = set; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 else
16689 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16690 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16691 # If we got an error (system does not support symlinks), try without -L.
16692 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16693 ac_cv_group_kmem=`echo $ac_ls_output \
16694 | sed -ne 's/[ ][ ]*/ /g;
16695 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16696 / /s/.* //;p;'`
16699 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16700 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16701 KMEM_GROUP=$ac_cv_group_kmem
16703 if test "x$ac_save_LIBS" = x; then
16704 GETLOADAVG_LIBS=$LIBS
16705 else
16706 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16708 LIBS=$ac_save_LIBS
16712 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16713 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16714 if test "${ac_cv_sys_largefile_source+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 else
16717 while :; do
16718 ac_cv_sys_largefile_source=no
16719 cat >conftest.$ac_ext <<_ACEOF
16720 /* confdefs.h. */
16721 _ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h. */
16725 #include <stdio.h>
16727 main ()
16729 return !fseeko;
16731 return 0;
16733 _ACEOF
16734 rm -f conftest.$ac_objext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16736 (eval $ac_compile) 2>conftest.er1
16737 ac_status=$?
16738 grep -v '^ *+' conftest.er1 >conftest.err
16739 rm -f conftest.er1
16740 cat conftest.err >&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } &&
16743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; } &&
16749 { ac_try='test -s conftest.$ac_objext'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
16755 break
16756 else
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16762 cat >conftest.$ac_ext <<_ACEOF
16763 /* confdefs.h. */
16764 _ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16768 #define _LARGEFILE_SOURCE 1
16769 #include <stdio.h>
16771 main ()
16773 return !fseeko;
16775 return 0;
16777 _ACEOF
16778 rm -f conftest.$ac_objext
16779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16780 (eval $ac_compile) 2>conftest.er1
16781 ac_status=$?
16782 grep -v '^ *+' conftest.er1 >conftest.err
16783 rm -f conftest.er1
16784 cat conftest.err >&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } &&
16787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789 (eval $ac_try) 2>&5
16790 ac_status=$?
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; } &&
16793 { ac_try='test -s conftest.$ac_objext'
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; }; then
16799 ac_cv_sys_largefile_source=1; break
16800 else
16801 echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16806 break
16807 done
16809 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16810 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16811 if test "$ac_cv_sys_largefile_source" != no; then
16813 cat >>confdefs.h <<_ACEOF
16814 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16815 _ACEOF
16818 rm -f conftest*
16820 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16821 # in glibc 2.1.3, but that breaks too many other things.
16822 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16823 echo "$as_me:$LINENO: checking for fseeko" >&5
16824 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16825 if test "${ac_cv_func_fseeko+set}" = set; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 else
16828 cat >conftest.$ac_ext <<_ACEOF
16829 /* confdefs.h. */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 #include <stdio.h>
16836 main ()
16838 return fseeko && fseeko (stdin, 0, 0);
16840 return 0;
16842 _ACEOF
16843 rm -f conftest.$ac_objext conftest$ac_exeext
16844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16845 (eval $ac_link) 2>conftest.er1
16846 ac_status=$?
16847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } &&
16852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest$ac_exeext'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_cv_func_fseeko=yes
16865 else
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16869 ac_cv_func_fseeko=no
16871 rm -f conftest.err conftest.$ac_objext \
16872 conftest$ac_exeext conftest.$ac_ext
16874 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16875 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16876 if test $ac_cv_func_fseeko = yes; then
16878 cat >>confdefs.h <<\_ACEOF
16879 #define HAVE_FSEEKO 1
16880 _ACEOF
16885 # Configure getopt.
16886 # getopt.m4 serial 10
16888 # The getopt module assume you want GNU getopt, with getopt_long etc,
16889 # rather than vanilla POSIX getopt. This means your your code should
16890 # always include <getopt.h> for the getopt prototypes.
16902 # Prerequisites of lib/getopt*.
16907 GETOPT_H=
16909 for ac_header in getopt.h
16911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16913 echo "$as_me:$LINENO: checking for $ac_header" >&5
16914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16920 else
16921 # Is the header compilable?
16922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16924 cat >conftest.$ac_ext <<_ACEOF
16925 /* confdefs.h. */
16926 _ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16930 $ac_includes_default
16931 #include <$ac_header>
16932 _ACEOF
16933 rm -f conftest.$ac_objext
16934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16935 (eval $ac_compile) 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" || test ! -s conftest.err'
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; } &&
16948 { ac_try='test -s conftest.$ac_objext'
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954 ac_header_compiler=yes
16955 else
16956 echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16959 ac_header_compiler=no
16961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16963 echo "${ECHO_T}$ac_header_compiler" >&6
16965 # Is the header present?
16966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16968 cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h. */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 #include <$ac_header>
16975 _ACEOF
16976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16978 ac_status=$?
16979 grep -v '^ *+' conftest.er1 >conftest.err
16980 rm -f conftest.er1
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } >/dev/null; then
16984 if test -s conftest.err; then
16985 ac_cpp_err=$ac_c_preproc_warn_flag
16986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16987 else
16988 ac_cpp_err=
16990 else
16991 ac_cpp_err=yes
16993 if test -z "$ac_cpp_err"; then
16994 ac_header_preproc=yes
16995 else
16996 echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16999 ac_header_preproc=no
17001 rm -f conftest.err conftest.$ac_ext
17002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17003 echo "${ECHO_T}$ac_header_preproc" >&6
17005 # So? What about this header?
17006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17007 yes:no: )
17008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17012 ac_header_preproc=yes
17014 no:yes:* )
17015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17028 cat <<\_ASBOX
17029 ## ------------------------------------------ ##
17030 ## Report this to the AC_PACKAGE_NAME lists. ##
17031 ## ------------------------------------------ ##
17032 _ASBOX
17034 sed "s/^/$as_me: WARNING: /" >&2
17036 esac
17037 echo "$as_me:$LINENO: checking for $ac_header" >&5
17038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 else
17042 eval "$as_ac_Header=\$ac_header_preproc"
17044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17049 cat >>confdefs.h <<_ACEOF
17050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17051 _ACEOF
17053 else
17054 GETOPT_H=getopt.h
17057 done
17059 if test -z "$GETOPT_H"; then
17061 for ac_func in getopt_long_only
17063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17064 echo "$as_me:$LINENO: checking for $ac_func" >&5
17065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17066 if eval "test \"\${$as_ac_var+set}\" = set"; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17068 else
17069 cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h. */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17077 #define $ac_func innocuous_$ac_func
17079 /* System header to define __stub macros and hopefully few prototypes,
17080 which can conflict with char $ac_func (); below.
17081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17082 <limits.h> exists even on freestanding compilers. */
17084 #ifdef __STDC__
17085 # include <limits.h>
17086 #else
17087 # include <assert.h>
17088 #endif
17090 #undef $ac_func
17092 /* Override any gcc2 internal prototype to avoid an error. */
17093 #ifdef __cplusplus
17094 extern "C"
17096 #endif
17097 /* We use char because int might match the return type of a gcc2
17098 builtin and then its argument prototype would still apply. */
17099 char $ac_func ();
17100 /* The GNU C library defines this for functions which it implements
17101 to always fail with ENOSYS. Some functions are actually named
17102 something starting with __ and the normal name is an alias. */
17103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17104 choke me
17105 #else
17106 char (*f) () = $ac_func;
17107 #endif
17108 #ifdef __cplusplus
17110 #endif
17113 main ()
17115 return f != $ac_func;
17117 return 0;
17119 _ACEOF
17120 rm -f conftest.$ac_objext conftest$ac_exeext
17121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17122 (eval $ac_link) 2>conftest.er1
17123 ac_status=$?
17124 grep -v '^ *+' conftest.er1 >conftest.err
17125 rm -f conftest.er1
17126 cat conftest.err >&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } &&
17129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } &&
17135 { ac_try='test -s conftest$ac_exeext'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; }; then
17141 eval "$as_ac_var=yes"
17142 else
17143 echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17146 eval "$as_ac_var=no"
17148 rm -f conftest.err conftest.$ac_objext \
17149 conftest$ac_exeext conftest.$ac_ext
17151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17153 if test `eval echo '${'$as_ac_var'}'` = yes; then
17154 cat >>confdefs.h <<_ACEOF
17155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17156 _ACEOF
17158 else
17159 GETOPT_H=getopt.h
17161 done
17165 if test -z "$GETOPT_H"; then
17166 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17167 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17168 if test "${ac_cv_have_decl_optreset+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17171 cat >conftest.$ac_ext <<_ACEOF
17172 /* confdefs.h. */
17173 _ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17177 #include <getopt.h>
17180 main ()
17182 #ifndef optreset
17183 char *p = (char *) optreset;
17184 #endif
17187 return 0;
17189 _ACEOF
17190 rm -f conftest.$ac_objext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17192 (eval $ac_compile) 2>conftest.er1
17193 ac_status=$?
17194 grep -v '^ *+' conftest.er1 >conftest.err
17195 rm -f conftest.er1
17196 cat conftest.err >&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); } &&
17199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; } &&
17205 { ac_try='test -s conftest.$ac_objext'
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17208 ac_status=$?
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; }; then
17211 ac_cv_have_decl_optreset=yes
17212 else
17213 echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17216 ac_cv_have_decl_optreset=no
17218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17220 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17221 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17222 if test $ac_cv_have_decl_optreset = yes; then
17223 GETOPT_H=getopt.h
17228 if test -z "$GETOPT_H"; then
17229 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17230 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17231 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234 if test "$cross_compiling" = yes; then
17235 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17236 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17237 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17239 else
17240 cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h. */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17246 #include <getopt.h>
17249 main ()
17251 #ifndef getopt_clip
17252 char *p = (char *) getopt_clip;
17253 #endif
17256 return 0;
17258 _ACEOF
17259 rm -f conftest.$ac_objext
17260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17261 (eval $ac_compile) 2>conftest.er1
17262 ac_status=$?
17263 grep -v '^ *+' conftest.er1 >conftest.err
17264 rm -f conftest.er1
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
17268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270 (eval $ac_try) 2>&5
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; } &&
17274 { ac_try='test -s conftest.$ac_objext'
17275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17276 (eval $ac_try) 2>&5
17277 ac_status=$?
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); }; }; then
17280 ac_cv_have_decl_getopt_clip=yes
17281 else
17282 echo "$as_me: failed program was:" >&5
17283 sed 's/^/| /' conftest.$ac_ext >&5
17285 ac_cv_have_decl_getopt_clip=no
17287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17289 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17290 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17291 if test $ac_cv_have_decl_getopt_clip = yes; then
17292 gl_cv_func_gnu_getopt=no
17293 else
17294 gl_cv_func_gnu_getopt=yes
17297 else
17298 cat >conftest.$ac_ext <<_ACEOF
17299 /* confdefs.h. */
17300 _ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17304 #include <getopt.h>
17306 main ()
17309 char *myargv[3];
17310 myargv[0] = "conftest";
17311 myargv[1] = "-+";
17312 myargv[2] = 0;
17313 return getopt (2, myargv, "+a") != '?';
17316 return 0;
17318 _ACEOF
17319 rm -f conftest$ac_exeext
17320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17321 (eval $ac_link) 2>&5
17322 ac_status=$?
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 gl_cv_func_gnu_getopt=yes
17331 else
17332 echo "$as_me: program exited with status $ac_status" >&5
17333 echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17336 ( exit $ac_status )
17337 gl_cv_func_gnu_getopt=no
17339 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17342 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17343 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17344 if test "$gl_cv_func_gnu_getopt" = "no"; then
17345 GETOPT_H=getopt.h
17351 if test -n "$GETOPT_H"; then
17354 GETOPT_H=getopt.h
17356 cat >>confdefs.h <<\_ACEOF
17357 #define __GETOPT_PREFIX rpl_
17358 _ACEOF
17363 GETOPTOBJS='getopt.o getopt1.o'
17370 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17371 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17372 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17374 else
17375 # Use it with a single arg.
17376 cat >conftest.$ac_ext <<_ACEOF
17377 /* confdefs.h. */
17378 _ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h. */
17382 $ac_includes_default
17384 main ()
17386 getpgrp (0);
17388 return 0;
17390 _ACEOF
17391 rm -f conftest.$ac_objext
17392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17393 (eval $ac_compile) 2>conftest.er1
17394 ac_status=$?
17395 grep -v '^ *+' conftest.er1 >conftest.err
17396 rm -f conftest.er1
17397 cat conftest.err >&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } &&
17400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402 (eval $ac_try) 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; } &&
17406 { ac_try='test -s conftest.$ac_objext'
17407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408 (eval $ac_try) 2>&5
17409 ac_status=$?
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; }; then
17412 ac_cv_func_getpgrp_void=no
17413 else
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 ac_cv_func_getpgrp_void=yes
17419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17422 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17423 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17424 if test $ac_cv_func_getpgrp_void = yes; then
17426 cat >>confdefs.h <<\_ACEOF
17427 #define GETPGRP_VOID 1
17428 _ACEOF
17434 for ac_func in strftime
17436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17437 echo "$as_me:$LINENO: checking for $ac_func" >&5
17438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17439 if eval "test \"\${$as_ac_var+set}\" = set"; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17441 else
17442 cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h. */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17450 #define $ac_func innocuous_$ac_func
17452 /* System header to define __stub macros and hopefully few prototypes,
17453 which can conflict with char $ac_func (); below.
17454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17455 <limits.h> exists even on freestanding compilers. */
17457 #ifdef __STDC__
17458 # include <limits.h>
17459 #else
17460 # include <assert.h>
17461 #endif
17463 #undef $ac_func
17465 /* Override any gcc2 internal prototype to avoid an error. */
17466 #ifdef __cplusplus
17467 extern "C"
17469 #endif
17470 /* We use char because int might match the return type of a gcc2
17471 builtin and then its argument prototype would still apply. */
17472 char $ac_func ();
17473 /* The GNU C library defines this for functions which it implements
17474 to always fail with ENOSYS. Some functions are actually named
17475 something starting with __ and the normal name is an alias. */
17476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17477 choke me
17478 #else
17479 char (*f) () = $ac_func;
17480 #endif
17481 #ifdef __cplusplus
17483 #endif
17486 main ()
17488 return f != $ac_func;
17490 return 0;
17492 _ACEOF
17493 rm -f conftest.$ac_objext conftest$ac_exeext
17494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17495 (eval $ac_link) 2>conftest.er1
17496 ac_status=$?
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } &&
17502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; } &&
17508 { ac_try='test -s conftest$ac_exeext'
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 eval "$as_ac_var=yes"
17515 else
17516 echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17519 eval "$as_ac_var=no"
17521 rm -f conftest.err conftest.$ac_objext \
17522 conftest$ac_exeext conftest.$ac_ext
17524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17526 if test `eval echo '${'$as_ac_var'}'` = yes; then
17527 cat >>confdefs.h <<_ACEOF
17528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17529 _ACEOF
17531 else
17532 # strftime is in -lintl on SCO UNIX.
17533 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17534 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17535 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17537 else
17538 ac_check_lib_save_LIBS=$LIBS
17539 LIBS="-lintl $LIBS"
17540 cat >conftest.$ac_ext <<_ACEOF
17541 /* confdefs.h. */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17547 /* Override any gcc2 internal prototype to avoid an error. */
17548 #ifdef __cplusplus
17549 extern "C"
17550 #endif
17551 /* We use char because int might match the return type of a gcc2
17552 builtin and then its argument prototype would still apply. */
17553 char strftime ();
17555 main ()
17557 strftime ();
17559 return 0;
17561 _ACEOF
17562 rm -f conftest.$ac_objext conftest$ac_exeext
17563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17564 (eval $ac_link) 2>conftest.er1
17565 ac_status=$?
17566 grep -v '^ *+' conftest.er1 >conftest.err
17567 rm -f conftest.er1
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } &&
17571 { ac_try='test -z "$ac_c_werror_flag" || 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_intl_strftime=yes
17584 else
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17588 ac_cv_lib_intl_strftime=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_intl_strftime" >&5
17595 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17596 if test $ac_cv_lib_intl_strftime = yes; then
17597 cat >>confdefs.h <<\_ACEOF
17598 #define HAVE_STRFTIME 1
17599 _ACEOF
17601 LIBS="-lintl $LIBS"
17605 done
17608 # UNIX98 PTYs.
17610 for ac_func in grantpt
17612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17613 echo "$as_me:$LINENO: checking for $ac_func" >&5
17614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17615 if eval "test \"\${$as_ac_var+set}\" = set"; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 else
17618 cat >conftest.$ac_ext <<_ACEOF
17619 /* confdefs.h. */
17620 _ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h. */
17624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17626 #define $ac_func innocuous_$ac_func
17628 /* System header to define __stub macros and hopefully few prototypes,
17629 which can conflict with char $ac_func (); below.
17630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17631 <limits.h> exists even on freestanding compilers. */
17633 #ifdef __STDC__
17634 # include <limits.h>
17635 #else
17636 # include <assert.h>
17637 #endif
17639 #undef $ac_func
17641 /* Override any gcc2 internal prototype to avoid an error. */
17642 #ifdef __cplusplus
17643 extern "C"
17645 #endif
17646 /* We use char because int might match the return type of a gcc2
17647 builtin and then its argument prototype would still apply. */
17648 char $ac_func ();
17649 /* The GNU C library defines this for functions which it implements
17650 to always fail with ENOSYS. Some functions are actually named
17651 something starting with __ and the normal name is an alias. */
17652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17653 choke me
17654 #else
17655 char (*f) () = $ac_func;
17656 #endif
17657 #ifdef __cplusplus
17659 #endif
17662 main ()
17664 return f != $ac_func;
17666 return 0;
17668 _ACEOF
17669 rm -f conftest.$ac_objext conftest$ac_exeext
17670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17671 (eval $ac_link) 2>conftest.er1
17672 ac_status=$?
17673 grep -v '^ *+' conftest.er1 >conftest.err
17674 rm -f conftest.er1
17675 cat conftest.err >&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } &&
17678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest$ac_exeext'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 eval "$as_ac_var=yes"
17691 else
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 eval "$as_ac_var=no"
17697 rm -f conftest.err conftest.$ac_objext \
17698 conftest$ac_exeext conftest.$ac_ext
17700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17702 if test `eval echo '${'$as_ac_var'}'` = yes; then
17703 cat >>confdefs.h <<_ACEOF
17704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17705 _ACEOF
17708 done
17711 # PTY-related GNU extensions.
17713 for ac_func in getpt
17715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17716 echo "$as_me:$LINENO: checking for $ac_func" >&5
17717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17718 if eval "test \"\${$as_ac_var+set}\" = set"; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17720 else
17721 cat >conftest.$ac_ext <<_ACEOF
17722 /* confdefs.h. */
17723 _ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h. */
17727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17729 #define $ac_func innocuous_$ac_func
17731 /* System header to define __stub macros and hopefully few prototypes,
17732 which can conflict with char $ac_func (); below.
17733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17734 <limits.h> exists even on freestanding compilers. */
17736 #ifdef __STDC__
17737 # include <limits.h>
17738 #else
17739 # include <assert.h>
17740 #endif
17742 #undef $ac_func
17744 /* Override any gcc2 internal prototype to avoid an error. */
17745 #ifdef __cplusplus
17746 extern "C"
17748 #endif
17749 /* We use char because int might match the return type of a gcc2
17750 builtin and then its argument prototype would still apply. */
17751 char $ac_func ();
17752 /* The GNU C library defines this for functions which it implements
17753 to always fail with ENOSYS. Some functions are actually named
17754 something starting with __ and the normal name is an alias. */
17755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17756 choke me
17757 #else
17758 char (*f) () = $ac_func;
17759 #endif
17760 #ifdef __cplusplus
17762 #endif
17765 main ()
17767 return f != $ac_func;
17769 return 0;
17771 _ACEOF
17772 rm -f conftest.$ac_objext conftest$ac_exeext
17773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17774 (eval $ac_link) 2>conftest.er1
17775 ac_status=$?
17776 grep -v '^ *+' conftest.er1 >conftest.err
17777 rm -f conftest.er1
17778 cat conftest.err >&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } &&
17781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17784 ac_status=$?
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; } &&
17787 { ac_try='test -s conftest$ac_exeext'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17790 ac_status=$?
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17793 eval "$as_ac_var=yes"
17794 else
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 eval "$as_ac_var=no"
17800 rm -f conftest.err conftest.$ac_objext \
17801 conftest$ac_exeext conftest.$ac_ext
17803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17805 if test `eval echo '${'$as_ac_var'}'` = yes; then
17806 cat >>confdefs.h <<_ACEOF
17807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17808 _ACEOF
17811 done
17814 # Check this now, so that we will NOT find the above functions in ncurses.
17815 # That is because we have not set up to link ncurses in lib-src.
17816 # It's better to believe a function is not available
17817 # than to expect to find it in ncurses.
17819 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17820 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17821 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17822 echo $ECHO_N "(cached) $ECHO_C" >&6
17823 else
17824 ac_check_lib_save_LIBS=$LIBS
17825 LIBS="-lncurses $LIBS"
17826 cat >conftest.$ac_ext <<_ACEOF
17827 /* confdefs.h. */
17828 _ACEOF
17829 cat confdefs.h >>conftest.$ac_ext
17830 cat >>conftest.$ac_ext <<_ACEOF
17831 /* end confdefs.h. */
17833 /* Override any gcc2 internal prototype to avoid an error. */
17834 #ifdef __cplusplus
17835 extern "C"
17836 #endif
17837 /* We use char because int might match the return type of a gcc2
17838 builtin and then its argument prototype would still apply. */
17839 char tparm ();
17841 main ()
17843 tparm ();
17845 return 0;
17847 _ACEOF
17848 rm -f conftest.$ac_objext conftest$ac_exeext
17849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17850 (eval $ac_link) 2>conftest.er1
17851 ac_status=$?
17852 grep -v '^ *+' conftest.er1 >conftest.err
17853 rm -f conftest.er1
17854 cat conftest.err >&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); } &&
17857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859 (eval $ac_try) 2>&5
17860 ac_status=$?
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; } &&
17863 { ac_try='test -s conftest$ac_exeext'
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; }; then
17869 ac_cv_lib_ncurses_tparm=yes
17870 else
17871 echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17874 ac_cv_lib_ncurses_tparm=no
17876 rm -f conftest.err conftest.$ac_objext \
17877 conftest$ac_exeext conftest.$ac_ext
17878 LIBS=$ac_check_lib_save_LIBS
17880 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17881 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17882 if test $ac_cv_lib_ncurses_tparm = yes; then
17883 cat >>confdefs.h <<_ACEOF
17884 #define HAVE_LIBNCURSES 1
17885 _ACEOF
17887 LIBS="-lncurses $LIBS"
17892 # Do we need the Hesiod library to provide the support routines?
17893 if test "$with_hesiod" = yes ; then
17894 # Don't set $LIBS here -- see comments above.
17895 resolv=no
17896 echo "$as_me:$LINENO: checking for res_send" >&5
17897 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17898 if test "${ac_cv_func_res_send+set}" = set; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17900 else
17901 cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h. */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17909 #define res_send innocuous_res_send
17911 /* System header to define __stub macros and hopefully few prototypes,
17912 which can conflict with char res_send (); below.
17913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17914 <limits.h> exists even on freestanding compilers. */
17916 #ifdef __STDC__
17917 # include <limits.h>
17918 #else
17919 # include <assert.h>
17920 #endif
17922 #undef res_send
17924 /* Override any gcc2 internal prototype to avoid an error. */
17925 #ifdef __cplusplus
17926 extern "C"
17928 #endif
17929 /* We use char because int might match the return type of a gcc2
17930 builtin and then its argument prototype would still apply. */
17931 char res_send ();
17932 /* The GNU C library defines this for functions which it implements
17933 to always fail with ENOSYS. Some functions are actually named
17934 something starting with __ and the normal name is an alias. */
17935 #if defined (__stub_res_send) || defined (__stub___res_send)
17936 choke me
17937 #else
17938 char (*f) () = res_send;
17939 #endif
17940 #ifdef __cplusplus
17942 #endif
17945 main ()
17947 return f != res_send;
17949 return 0;
17951 _ACEOF
17952 rm -f conftest.$ac_objext conftest$ac_exeext
17953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17954 (eval $ac_link) 2>conftest.er1
17955 ac_status=$?
17956 grep -v '^ *+' conftest.er1 >conftest.err
17957 rm -f conftest.er1
17958 cat conftest.err >&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); } &&
17961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; } &&
17967 { ac_try='test -s conftest$ac_exeext'
17968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969 (eval $ac_try) 2>&5
17970 ac_status=$?
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; }; then
17973 ac_cv_func_res_send=yes
17974 else
17975 echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17978 ac_cv_func_res_send=no
17980 rm -f conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17983 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17984 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17985 if test $ac_cv_func_res_send = yes; then
17987 else
17988 echo "$as_me:$LINENO: checking for __res_send" >&5
17989 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17990 if test "${ac_cv_func___res_send+set}" = set; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
17992 else
17993 cat >conftest.$ac_ext <<_ACEOF
17994 /* confdefs.h. */
17995 _ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
17999 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18001 #define __res_send innocuous___res_send
18003 /* System header to define __stub macros and hopefully few prototypes,
18004 which can conflict with char __res_send (); below.
18005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18006 <limits.h> exists even on freestanding compilers. */
18008 #ifdef __STDC__
18009 # include <limits.h>
18010 #else
18011 # include <assert.h>
18012 #endif
18014 #undef __res_send
18016 /* Override any gcc2 internal prototype to avoid an error. */
18017 #ifdef __cplusplus
18018 extern "C"
18020 #endif
18021 /* We use char because int might match the return type of a gcc2
18022 builtin and then its argument prototype would still apply. */
18023 char __res_send ();
18024 /* The GNU C library defines this for functions which it implements
18025 to always fail with ENOSYS. Some functions are actually named
18026 something starting with __ and the normal name is an alias. */
18027 #if defined (__stub___res_send) || defined (__stub_____res_send)
18028 choke me
18029 #else
18030 char (*f) () = __res_send;
18031 #endif
18032 #ifdef __cplusplus
18034 #endif
18037 main ()
18039 return f != __res_send;
18041 return 0;
18043 _ACEOF
18044 rm -f conftest.$ac_objext conftest$ac_exeext
18045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18046 (eval $ac_link) 2>conftest.er1
18047 ac_status=$?
18048 grep -v '^ *+' conftest.er1 >conftest.err
18049 rm -f conftest.er1
18050 cat conftest.err >&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } &&
18053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055 (eval $ac_try) 2>&5
18056 ac_status=$?
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; } &&
18059 { ac_try='test -s conftest$ac_exeext'
18060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061 (eval $ac_try) 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; }; then
18065 ac_cv_func___res_send=yes
18066 else
18067 echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18070 ac_cv_func___res_send=no
18072 rm -f conftest.err conftest.$ac_objext \
18073 conftest$ac_exeext conftest.$ac_ext
18075 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18076 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18077 if test $ac_cv_func___res_send = yes; then
18079 else
18080 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18081 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18082 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18083 echo $ECHO_N "(cached) $ECHO_C" >&6
18084 else
18085 ac_check_lib_save_LIBS=$LIBS
18086 LIBS="-lresolv $LIBS"
18087 cat >conftest.$ac_ext <<_ACEOF
18088 /* confdefs.h. */
18089 _ACEOF
18090 cat confdefs.h >>conftest.$ac_ext
18091 cat >>conftest.$ac_ext <<_ACEOF
18092 /* end confdefs.h. */
18094 /* Override any gcc2 internal prototype to avoid an error. */
18095 #ifdef __cplusplus
18096 extern "C"
18097 #endif
18098 /* We use char because int might match the return type of a gcc2
18099 builtin and then its argument prototype would still apply. */
18100 char res_send ();
18102 main ()
18104 res_send ();
18106 return 0;
18108 _ACEOF
18109 rm -f conftest.$ac_objext conftest$ac_exeext
18110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18111 (eval $ac_link) 2>conftest.er1
18112 ac_status=$?
18113 grep -v '^ *+' conftest.er1 >conftest.err
18114 rm -f conftest.er1
18115 cat conftest.err >&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
18118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; } &&
18124 { ac_try='test -s conftest$ac_exeext'
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 ac_cv_lib_resolv_res_send=yes
18131 else
18132 echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18135 ac_cv_lib_resolv_res_send=no
18137 rm -f conftest.err conftest.$ac_objext \
18138 conftest$ac_exeext conftest.$ac_ext
18139 LIBS=$ac_check_lib_save_LIBS
18141 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18142 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18143 if test $ac_cv_lib_resolv_res_send = yes; then
18144 resolv=yes
18145 else
18146 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18147 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18148 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18150 else
18151 ac_check_lib_save_LIBS=$LIBS
18152 LIBS="-lresolv $LIBS"
18153 cat >conftest.$ac_ext <<_ACEOF
18154 /* confdefs.h. */
18155 _ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18160 /* Override any gcc2 internal prototype to avoid an error. */
18161 #ifdef __cplusplus
18162 extern "C"
18163 #endif
18164 /* We use char because int might match the return type of a gcc2
18165 builtin and then its argument prototype would still apply. */
18166 char __res_send ();
18168 main ()
18170 __res_send ();
18172 return 0;
18174 _ACEOF
18175 rm -f conftest.$ac_objext conftest$ac_exeext
18176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18177 (eval $ac_link) 2>conftest.er1
18178 ac_status=$?
18179 grep -v '^ *+' conftest.er1 >conftest.err
18180 rm -f conftest.er1
18181 cat conftest.err >&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
18184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; } &&
18190 { ac_try='test -s conftest$ac_exeext'
18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192 (eval $ac_try) 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196 ac_cv_lib_resolv___res_send=yes
18197 else
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 ac_cv_lib_resolv___res_send=no
18203 rm -f conftest.err conftest.$ac_objext \
18204 conftest$ac_exeext conftest.$ac_ext
18205 LIBS=$ac_check_lib_save_LIBS
18207 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18208 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18209 if test $ac_cv_lib_resolv___res_send = yes; then
18210 resolv=yes
18219 if test "$resolv" = yes ; then
18220 RESOLVLIB=-lresolv
18222 cat >>confdefs.h <<\_ACEOF
18223 #define HAVE_LIBRESOLV 1
18224 _ACEOF
18226 else
18227 RESOLVLIB=
18229 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18230 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18231 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18232 echo $ECHO_N "(cached) $ECHO_C" >&6
18233 else
18234 cat >conftest.$ac_ext <<_ACEOF
18235 /* confdefs.h. */
18236 _ACEOF
18237 cat confdefs.h >>conftest.$ac_ext
18238 cat >>conftest.$ac_ext <<_ACEOF
18239 /* end confdefs.h. */
18240 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18242 #define hes_getmailhost innocuous_hes_getmailhost
18244 /* System header to define __stub macros and hopefully few prototypes,
18245 which can conflict with char hes_getmailhost (); below.
18246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18247 <limits.h> exists even on freestanding compilers. */
18249 #ifdef __STDC__
18250 # include <limits.h>
18251 #else
18252 # include <assert.h>
18253 #endif
18255 #undef hes_getmailhost
18257 /* Override any gcc2 internal prototype to avoid an error. */
18258 #ifdef __cplusplus
18259 extern "C"
18261 #endif
18262 /* We use char because int might match the return type of a gcc2
18263 builtin and then its argument prototype would still apply. */
18264 char hes_getmailhost ();
18265 /* The GNU C library defines this for functions which it implements
18266 to always fail with ENOSYS. Some functions are actually named
18267 something starting with __ and the normal name is an alias. */
18268 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18269 choke me
18270 #else
18271 char (*f) () = hes_getmailhost;
18272 #endif
18273 #ifdef __cplusplus
18275 #endif
18278 main ()
18280 return f != hes_getmailhost;
18282 return 0;
18284 _ACEOF
18285 rm -f conftest.$ac_objext conftest$ac_exeext
18286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18287 (eval $ac_link) 2>conftest.er1
18288 ac_status=$?
18289 grep -v '^ *+' conftest.er1 >conftest.err
18290 rm -f conftest.er1
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } &&
18294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest$ac_exeext'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_cv_func_hes_getmailhost=yes
18307 else
18308 echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18311 ac_cv_func_hes_getmailhost=no
18313 rm -f conftest.err conftest.$ac_objext \
18314 conftest$ac_exeext conftest.$ac_ext
18316 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18317 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18318 if test $ac_cv_func_hes_getmailhost = yes; then
18320 else
18321 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18322 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18323 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18324 echo $ECHO_N "(cached) $ECHO_C" >&6
18325 else
18326 ac_check_lib_save_LIBS=$LIBS
18327 LIBS="-lhesiod $RESOLVLIB $LIBS"
18328 cat >conftest.$ac_ext <<_ACEOF
18329 /* confdefs.h. */
18330 _ACEOF
18331 cat confdefs.h >>conftest.$ac_ext
18332 cat >>conftest.$ac_ext <<_ACEOF
18333 /* end confdefs.h. */
18335 /* Override any gcc2 internal prototype to avoid an error. */
18336 #ifdef __cplusplus
18337 extern "C"
18338 #endif
18339 /* We use char because int might match the return type of a gcc2
18340 builtin and then its argument prototype would still apply. */
18341 char hes_getmailhost ();
18343 main ()
18345 hes_getmailhost ();
18347 return 0;
18349 _ACEOF
18350 rm -f conftest.$ac_objext conftest$ac_exeext
18351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18352 (eval $ac_link) 2>conftest.er1
18353 ac_status=$?
18354 grep -v '^ *+' conftest.er1 >conftest.err
18355 rm -f conftest.er1
18356 cat conftest.err >&5
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); } &&
18359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361 (eval $ac_try) 2>&5
18362 ac_status=$?
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; } &&
18365 { ac_try='test -s conftest$ac_exeext'
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; }; then
18371 ac_cv_lib_hesiod_hes_getmailhost=yes
18372 else
18373 echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18376 ac_cv_lib_hesiod_hes_getmailhost=no
18378 rm -f conftest.err conftest.$ac_objext \
18379 conftest$ac_exeext conftest.$ac_ext
18380 LIBS=$ac_check_lib_save_LIBS
18382 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18383 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18384 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18386 cat >>confdefs.h <<\_ACEOF
18387 #define HAVE_LIBHESIOD 1
18388 _ACEOF
18390 else
18398 # These tell us which Kerberos-related libraries to use.
18399 if test "${with_kerberos+set}" = set; then
18401 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18402 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18403 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18404 echo $ECHO_N "(cached) $ECHO_C" >&6
18405 else
18406 ac_check_lib_save_LIBS=$LIBS
18407 LIBS="-lcom_err $LIBS"
18408 cat >conftest.$ac_ext <<_ACEOF
18409 /* confdefs.h. */
18410 _ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18415 /* Override any gcc2 internal prototype to avoid an error. */
18416 #ifdef __cplusplus
18417 extern "C"
18418 #endif
18419 /* We use char because int might match the return type of a gcc2
18420 builtin and then its argument prototype would still apply. */
18421 char com_err ();
18423 main ()
18425 com_err ();
18427 return 0;
18429 _ACEOF
18430 rm -f conftest.$ac_objext conftest$ac_exeext
18431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18432 (eval $ac_link) 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); } &&
18439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; } &&
18445 { ac_try='test -s conftest$ac_exeext'
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_cv_lib_com_err_com_err=yes
18452 else
18453 echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18456 ac_cv_lib_com_err_com_err=no
18458 rm -f conftest.err conftest.$ac_objext \
18459 conftest$ac_exeext conftest.$ac_ext
18460 LIBS=$ac_check_lib_save_LIBS
18462 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18463 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18464 if test $ac_cv_lib_com_err_com_err = yes; then
18465 cat >>confdefs.h <<_ACEOF
18466 #define HAVE_LIBCOM_ERR 1
18467 _ACEOF
18469 LIBS="-lcom_err $LIBS"
18474 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18475 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18476 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18478 else
18479 ac_check_lib_save_LIBS=$LIBS
18480 LIBS="-lk5crypto $LIBS"
18481 cat >conftest.$ac_ext <<_ACEOF
18482 /* confdefs.h. */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18488 /* Override any gcc2 internal prototype to avoid an error. */
18489 #ifdef __cplusplus
18490 extern "C"
18491 #endif
18492 /* We use char because int might match the return type of a gcc2
18493 builtin and then its argument prototype would still apply. */
18494 char mit_des_cbc_encrypt ();
18496 main ()
18498 mit_des_cbc_encrypt ();
18500 return 0;
18502 _ACEOF
18503 rm -f conftest.$ac_objext conftest$ac_exeext
18504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18505 (eval $ac_link) 2>conftest.er1
18506 ac_status=$?
18507 grep -v '^ *+' conftest.er1 >conftest.err
18508 rm -f conftest.er1
18509 cat conftest.err >&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514 (eval $ac_try) 2>&5
18515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; } &&
18518 { ac_try='test -s conftest$ac_exeext'
18519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520 (eval $ac_try) 2>&5
18521 ac_status=$?
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }; }; then
18524 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18525 else
18526 echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18529 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18531 rm -f conftest.err conftest.$ac_objext \
18532 conftest$ac_exeext conftest.$ac_ext
18533 LIBS=$ac_check_lib_save_LIBS
18535 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18536 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18537 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18538 cat >>confdefs.h <<_ACEOF
18539 #define HAVE_LIBK5CRYPTO 1
18540 _ACEOF
18542 LIBS="-lk5crypto $LIBS"
18547 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18548 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18549 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18551 else
18552 ac_check_lib_save_LIBS=$LIBS
18553 LIBS="-lcrypto $LIBS"
18554 cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h. */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18561 /* Override any gcc2 internal prototype to avoid an error. */
18562 #ifdef __cplusplus
18563 extern "C"
18564 #endif
18565 /* We use char because int might match the return type of a gcc2
18566 builtin and then its argument prototype would still apply. */
18567 char mit_des_cbc_encrypt ();
18569 main ()
18571 mit_des_cbc_encrypt ();
18573 return 0;
18575 _ACEOF
18576 rm -f conftest.$ac_objext conftest$ac_exeext
18577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18578 (eval $ac_link) 2>conftest.er1
18579 ac_status=$?
18580 grep -v '^ *+' conftest.er1 >conftest.err
18581 rm -f conftest.er1
18582 cat conftest.err >&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } &&
18585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587 (eval $ac_try) 2>&5
18588 ac_status=$?
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; } &&
18591 { ac_try='test -s conftest$ac_exeext'
18592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18594 ac_status=$?
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; }; then
18597 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18598 else
18599 echo "$as_me: failed program was:" >&5
18600 sed 's/^/| /' conftest.$ac_ext >&5
18602 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18604 rm -f conftest.err conftest.$ac_objext \
18605 conftest$ac_exeext conftest.$ac_ext
18606 LIBS=$ac_check_lib_save_LIBS
18608 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18609 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18610 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18611 cat >>confdefs.h <<_ACEOF
18612 #define HAVE_LIBCRYPTO 1
18613 _ACEOF
18615 LIBS="-lcrypto $LIBS"
18620 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18621 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18622 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18623 echo $ECHO_N "(cached) $ECHO_C" >&6
18624 else
18625 ac_check_lib_save_LIBS=$LIBS
18626 LIBS="-lkrb5 $LIBS"
18627 cat >conftest.$ac_ext <<_ACEOF
18628 /* confdefs.h. */
18629 _ACEOF
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h. */
18634 /* Override any gcc2 internal prototype to avoid an error. */
18635 #ifdef __cplusplus
18636 extern "C"
18637 #endif
18638 /* We use char because int might match the return type of a gcc2
18639 builtin and then its argument prototype would still apply. */
18640 char krb5_init_context ();
18642 main ()
18644 krb5_init_context ();
18646 return 0;
18648 _ACEOF
18649 rm -f conftest.$ac_objext conftest$ac_exeext
18650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18651 (eval $ac_link) 2>conftest.er1
18652 ac_status=$?
18653 grep -v '^ *+' conftest.er1 >conftest.err
18654 rm -f conftest.er1
18655 cat conftest.err >&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } &&
18658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest$ac_exeext'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
18670 ac_cv_lib_krb5_krb5_init_context=yes
18671 else
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18675 ac_cv_lib_krb5_krb5_init_context=no
18677 rm -f conftest.err conftest.$ac_objext \
18678 conftest$ac_exeext conftest.$ac_ext
18679 LIBS=$ac_check_lib_save_LIBS
18681 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18682 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18683 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18684 cat >>confdefs.h <<_ACEOF
18685 #define HAVE_LIBKRB5 1
18686 _ACEOF
18688 LIBS="-lkrb5 $LIBS"
18692 if test "${with_kerberos5+set}" != set; then
18694 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18695 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18696 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18697 echo $ECHO_N "(cached) $ECHO_C" >&6
18698 else
18699 ac_check_lib_save_LIBS=$LIBS
18700 LIBS="-ldes425 $LIBS"
18701 cat >conftest.$ac_ext <<_ACEOF
18702 /* confdefs.h. */
18703 _ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h. */
18708 /* Override any gcc2 internal prototype to avoid an error. */
18709 #ifdef __cplusplus
18710 extern "C"
18711 #endif
18712 /* We use char because int might match the return type of a gcc2
18713 builtin and then its argument prototype would still apply. */
18714 char des_cbc_encrypt ();
18716 main ()
18718 des_cbc_encrypt ();
18720 return 0;
18722 _ACEOF
18723 rm -f conftest.$ac_objext conftest$ac_exeext
18724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725 (eval $ac_link) 2>conftest.er1
18726 ac_status=$?
18727 grep -v '^ *+' conftest.er1 >conftest.err
18728 rm -f conftest.er1
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } &&
18732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; } &&
18738 { ac_try='test -s conftest$ac_exeext'
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; }; then
18744 ac_cv_lib_des425_des_cbc_encrypt=yes
18745 else
18746 echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18749 ac_cv_lib_des425_des_cbc_encrypt=no
18751 rm -f conftest.err conftest.$ac_objext \
18752 conftest$ac_exeext conftest.$ac_ext
18753 LIBS=$ac_check_lib_save_LIBS
18755 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18756 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18757 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18758 cat >>confdefs.h <<_ACEOF
18759 #define HAVE_LIBDES425 1
18760 _ACEOF
18762 LIBS="-ldes425 $LIBS"
18764 else
18766 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18767 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18768 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18769 echo $ECHO_N "(cached) $ECHO_C" >&6
18770 else
18771 ac_check_lib_save_LIBS=$LIBS
18772 LIBS="-ldes $LIBS"
18773 cat >conftest.$ac_ext <<_ACEOF
18774 /* confdefs.h. */
18775 _ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h. */
18780 /* Override any gcc2 internal prototype to avoid an error. */
18781 #ifdef __cplusplus
18782 extern "C"
18783 #endif
18784 /* We use char because int might match the return type of a gcc2
18785 builtin and then its argument prototype would still apply. */
18786 char des_cbc_encrypt ();
18788 main ()
18790 des_cbc_encrypt ();
18792 return 0;
18794 _ACEOF
18795 rm -f conftest.$ac_objext conftest$ac_exeext
18796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18797 (eval $ac_link) 2>conftest.er1
18798 ac_status=$?
18799 grep -v '^ *+' conftest.er1 >conftest.err
18800 rm -f conftest.er1
18801 cat conftest.err >&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); } &&
18804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; } &&
18810 { ac_try='test -s conftest$ac_exeext'
18811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18812 (eval $ac_try) 2>&5
18813 ac_status=$?
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }; }; then
18816 ac_cv_lib_des_des_cbc_encrypt=yes
18817 else
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18821 ac_cv_lib_des_des_cbc_encrypt=no
18823 rm -f conftest.err conftest.$ac_objext \
18824 conftest$ac_exeext conftest.$ac_ext
18825 LIBS=$ac_check_lib_save_LIBS
18827 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18828 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18829 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18830 cat >>confdefs.h <<_ACEOF
18831 #define HAVE_LIBDES 1
18832 _ACEOF
18834 LIBS="-ldes $LIBS"
18841 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18842 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18843 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 else
18846 ac_check_lib_save_LIBS=$LIBS
18847 LIBS="-lkrb4 $LIBS"
18848 cat >conftest.$ac_ext <<_ACEOF
18849 /* confdefs.h. */
18850 _ACEOF
18851 cat confdefs.h >>conftest.$ac_ext
18852 cat >>conftest.$ac_ext <<_ACEOF
18853 /* end confdefs.h. */
18855 /* Override any gcc2 internal prototype to avoid an error. */
18856 #ifdef __cplusplus
18857 extern "C"
18858 #endif
18859 /* We use char because int might match the return type of a gcc2
18860 builtin and then its argument prototype would still apply. */
18861 char krb_get_cred ();
18863 main ()
18865 krb_get_cred ();
18867 return 0;
18869 _ACEOF
18870 rm -f conftest.$ac_objext conftest$ac_exeext
18871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18872 (eval $ac_link) 2>conftest.er1
18873 ac_status=$?
18874 grep -v '^ *+' conftest.er1 >conftest.err
18875 rm -f conftest.er1
18876 cat conftest.err >&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } &&
18879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; } &&
18885 { ac_try='test -s conftest$ac_exeext'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18891 ac_cv_lib_krb4_krb_get_cred=yes
18892 else
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18896 ac_cv_lib_krb4_krb_get_cred=no
18898 rm -f conftest.err conftest.$ac_objext \
18899 conftest$ac_exeext conftest.$ac_ext
18900 LIBS=$ac_check_lib_save_LIBS
18902 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18903 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18904 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18905 cat >>confdefs.h <<_ACEOF
18906 #define HAVE_LIBKRB4 1
18907 _ACEOF
18909 LIBS="-lkrb4 $LIBS"
18911 else
18913 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18914 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18915 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18916 echo $ECHO_N "(cached) $ECHO_C" >&6
18917 else
18918 ac_check_lib_save_LIBS=$LIBS
18919 LIBS="-lkrb $LIBS"
18920 cat >conftest.$ac_ext <<_ACEOF
18921 /* confdefs.h. */
18922 _ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h. */
18927 /* Override any gcc2 internal prototype to avoid an error. */
18928 #ifdef __cplusplus
18929 extern "C"
18930 #endif
18931 /* We use char because int might match the return type of a gcc2
18932 builtin and then its argument prototype would still apply. */
18933 char krb_get_cred ();
18935 main ()
18937 krb_get_cred ();
18939 return 0;
18941 _ACEOF
18942 rm -f conftest.$ac_objext conftest$ac_exeext
18943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18944 (eval $ac_link) 2>conftest.er1
18945 ac_status=$?
18946 grep -v '^ *+' conftest.er1 >conftest.err
18947 rm -f conftest.er1
18948 cat conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
18951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; } &&
18957 { ac_try='test -s conftest$ac_exeext'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 ac_cv_lib_krb_krb_get_cred=yes
18964 else
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 ac_cv_lib_krb_krb_get_cred=no
18970 rm -f conftest.err conftest.$ac_objext \
18971 conftest$ac_exeext conftest.$ac_ext
18972 LIBS=$ac_check_lib_save_LIBS
18974 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18975 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18976 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18977 cat >>confdefs.h <<_ACEOF
18978 #define HAVE_LIBKRB 1
18979 _ACEOF
18981 LIBS="-lkrb $LIBS"
18989 if test "${with_kerberos5+set}" = set; then
18991 for ac_header in krb5.h
18993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18995 echo "$as_me:$LINENO: checking for $ac_header" >&5
18996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
19000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19002 else
19003 # Is the header compilable?
19004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19006 cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h. */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h. */
19012 $ac_includes_default
19013 #include <$ac_header>
19014 _ACEOF
19015 rm -f conftest.$ac_objext
19016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19017 (eval $ac_compile) 2>conftest.er1
19018 ac_status=$?
19019 grep -v '^ *+' conftest.er1 >conftest.err
19020 rm -f conftest.er1
19021 cat conftest.err >&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } &&
19024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19026 (eval $ac_try) 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; } &&
19030 { ac_try='test -s conftest.$ac_objext'
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19033 ac_status=$?
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; }; then
19036 ac_header_compiler=yes
19037 else
19038 echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19041 ac_header_compiler=no
19043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19045 echo "${ECHO_T}$ac_header_compiler" >&6
19047 # Is the header present?
19048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19050 cat >conftest.$ac_ext <<_ACEOF
19051 /* confdefs.h. */
19052 _ACEOF
19053 cat confdefs.h >>conftest.$ac_ext
19054 cat >>conftest.$ac_ext <<_ACEOF
19055 /* end confdefs.h. */
19056 #include <$ac_header>
19057 _ACEOF
19058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19060 ac_status=$?
19061 grep -v '^ *+' conftest.er1 >conftest.err
19062 rm -f conftest.er1
19063 cat conftest.err >&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } >/dev/null; then
19066 if test -s conftest.err; then
19067 ac_cpp_err=$ac_c_preproc_warn_flag
19068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19069 else
19070 ac_cpp_err=
19072 else
19073 ac_cpp_err=yes
19075 if test -z "$ac_cpp_err"; then
19076 ac_header_preproc=yes
19077 else
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_header_preproc=no
19083 rm -f conftest.err conftest.$ac_ext
19084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19085 echo "${ECHO_T}$ac_header_preproc" >&6
19087 # So? What about this header?
19088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19089 yes:no: )
19090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19094 ac_header_preproc=yes
19096 no:yes:* )
19097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19110 cat <<\_ASBOX
19111 ## ------------------------------------------ ##
19112 ## Report this to the AC_PACKAGE_NAME lists. ##
19113 ## ------------------------------------------ ##
19114 _ASBOX
19116 sed "s/^/$as_me: WARNING: /" >&2
19118 esac
19119 echo "$as_me:$LINENO: checking for $ac_header" >&5
19120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19122 echo $ECHO_N "(cached) $ECHO_C" >&6
19123 else
19124 eval "$as_ac_Header=\$ac_header_preproc"
19126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19131 cat >>confdefs.h <<_ACEOF
19132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19133 _ACEOF
19137 done
19139 else
19141 for ac_header in des.h
19143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19145 echo "$as_me:$LINENO: checking for $ac_header" >&5
19146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19152 else
19153 # Is the header compilable?
19154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19156 cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h. */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19162 $ac_includes_default
19163 #include <$ac_header>
19164 _ACEOF
19165 rm -f conftest.$ac_objext
19166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19167 (eval $ac_compile) 2>conftest.er1
19168 ac_status=$?
19169 grep -v '^ *+' conftest.er1 >conftest.err
19170 rm -f conftest.er1
19171 cat conftest.err >&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } &&
19174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19177 ac_status=$?
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; } &&
19180 { ac_try='test -s conftest.$ac_objext'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; }; then
19186 ac_header_compiler=yes
19187 else
19188 echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 ac_header_compiler=no
19193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19195 echo "${ECHO_T}$ac_header_compiler" >&6
19197 # Is the header present?
19198 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19200 cat >conftest.$ac_ext <<_ACEOF
19201 /* confdefs.h. */
19202 _ACEOF
19203 cat confdefs.h >>conftest.$ac_ext
19204 cat >>conftest.$ac_ext <<_ACEOF
19205 /* end confdefs.h. */
19206 #include <$ac_header>
19207 _ACEOF
19208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19210 ac_status=$?
19211 grep -v '^ *+' conftest.er1 >conftest.err
19212 rm -f conftest.er1
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } >/dev/null; then
19216 if test -s conftest.err; then
19217 ac_cpp_err=$ac_c_preproc_warn_flag
19218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19219 else
19220 ac_cpp_err=
19222 else
19223 ac_cpp_err=yes
19225 if test -z "$ac_cpp_err"; then
19226 ac_header_preproc=yes
19227 else
19228 echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19231 ac_header_preproc=no
19233 rm -f conftest.err conftest.$ac_ext
19234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19235 echo "${ECHO_T}$ac_header_preproc" >&6
19237 # So? What about this header?
19238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19239 yes:no: )
19240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19244 ac_header_preproc=yes
19246 no:yes:* )
19247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19260 cat <<\_ASBOX
19261 ## ------------------------------------------ ##
19262 ## Report this to the AC_PACKAGE_NAME lists. ##
19263 ## ------------------------------------------ ##
19264 _ASBOX
19266 sed "s/^/$as_me: WARNING: /" >&2
19268 esac
19269 echo "$as_me:$LINENO: checking for $ac_header" >&5
19270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
19273 else
19274 eval "$as_ac_Header=\$ac_header_preproc"
19276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19281 cat >>confdefs.h <<_ACEOF
19282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19283 _ACEOF
19285 else
19287 for ac_header in kerberosIV/des.h
19289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19291 echo "$as_me:$LINENO: checking for $ac_header" >&5
19292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
19296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19298 else
19299 # Is the header compilable?
19300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19302 cat >conftest.$ac_ext <<_ACEOF
19303 /* confdefs.h. */
19304 _ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19308 $ac_includes_default
19309 #include <$ac_header>
19310 _ACEOF
19311 rm -f conftest.$ac_objext
19312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19313 (eval $ac_compile) 2>conftest.er1
19314 ac_status=$?
19315 grep -v '^ *+' conftest.er1 >conftest.err
19316 rm -f conftest.er1
19317 cat conftest.err >&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
19320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; } &&
19326 { ac_try='test -s conftest.$ac_objext'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19332 ac_header_compiler=yes
19333 else
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 ac_header_compiler=no
19339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19341 echo "${ECHO_T}$ac_header_compiler" >&6
19343 # Is the header present?
19344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19346 cat >conftest.$ac_ext <<_ACEOF
19347 /* confdefs.h. */
19348 _ACEOF
19349 cat confdefs.h >>conftest.$ac_ext
19350 cat >>conftest.$ac_ext <<_ACEOF
19351 /* end confdefs.h. */
19352 #include <$ac_header>
19353 _ACEOF
19354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19356 ac_status=$?
19357 grep -v '^ *+' conftest.er1 >conftest.err
19358 rm -f conftest.er1
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } >/dev/null; then
19362 if test -s conftest.err; then
19363 ac_cpp_err=$ac_c_preproc_warn_flag
19364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19365 else
19366 ac_cpp_err=
19368 else
19369 ac_cpp_err=yes
19371 if test -z "$ac_cpp_err"; then
19372 ac_header_preproc=yes
19373 else
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 ac_header_preproc=no
19379 rm -f conftest.err conftest.$ac_ext
19380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19381 echo "${ECHO_T}$ac_header_preproc" >&6
19383 # So? What about this header?
19384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19385 yes:no: )
19386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19390 ac_header_preproc=yes
19392 no:yes:* )
19393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19406 cat <<\_ASBOX
19407 ## ------------------------------------------ ##
19408 ## Report this to the AC_PACKAGE_NAME lists. ##
19409 ## ------------------------------------------ ##
19410 _ASBOX
19412 sed "s/^/$as_me: WARNING: /" >&2
19414 esac
19415 echo "$as_me:$LINENO: checking for $ac_header" >&5
19416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420 eval "$as_ac_Header=\$ac_header_preproc"
19422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19427 cat >>confdefs.h <<_ACEOF
19428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19429 _ACEOF
19431 else
19433 for ac_header in kerberos/des.h
19435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19437 echo "$as_me:$LINENO: checking for $ac_header" >&5
19438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19444 else
19445 # Is the header compilable?
19446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19448 cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h. */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19454 $ac_includes_default
19455 #include <$ac_header>
19456 _ACEOF
19457 rm -f conftest.$ac_objext
19458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19459 (eval $ac_compile) 2>conftest.er1
19460 ac_status=$?
19461 grep -v '^ *+' conftest.er1 >conftest.err
19462 rm -f conftest.er1
19463 cat conftest.err >&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } &&
19466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } &&
19472 { ac_try='test -s conftest.$ac_objext'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 ac_header_compiler=yes
19479 else
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 ac_header_compiler=no
19485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19487 echo "${ECHO_T}$ac_header_compiler" >&6
19489 # Is the header present?
19490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19492 cat >conftest.$ac_ext <<_ACEOF
19493 /* confdefs.h. */
19494 _ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19498 #include <$ac_header>
19499 _ACEOF
19500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19502 ac_status=$?
19503 grep -v '^ *+' conftest.er1 >conftest.err
19504 rm -f conftest.er1
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } >/dev/null; then
19508 if test -s conftest.err; then
19509 ac_cpp_err=$ac_c_preproc_warn_flag
19510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19511 else
19512 ac_cpp_err=
19514 else
19515 ac_cpp_err=yes
19517 if test -z "$ac_cpp_err"; then
19518 ac_header_preproc=yes
19519 else
19520 echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19523 ac_header_preproc=no
19525 rm -f conftest.err conftest.$ac_ext
19526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19527 echo "${ECHO_T}$ac_header_preproc" >&6
19529 # So? What about this header?
19530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19531 yes:no: )
19532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19536 ac_header_preproc=yes
19538 no:yes:* )
19539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19552 cat <<\_ASBOX
19553 ## ------------------------------------------ ##
19554 ## Report this to the AC_PACKAGE_NAME lists. ##
19555 ## ------------------------------------------ ##
19556 _ASBOX
19558 sed "s/^/$as_me: WARNING: /" >&2
19560 esac
19561 echo "$as_me:$LINENO: checking for $ac_header" >&5
19562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 else
19566 eval "$as_ac_Header=\$ac_header_preproc"
19568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19573 cat >>confdefs.h <<_ACEOF
19574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19575 _ACEOF
19579 done
19583 done
19587 done
19590 for ac_header in krb.h
19592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19594 echo "$as_me:$LINENO: checking for $ac_header" >&5
19595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19601 else
19602 # Is the header compilable?
19603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19605 cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h. */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19611 $ac_includes_default
19612 #include <$ac_header>
19613 _ACEOF
19614 rm -f conftest.$ac_objext
19615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19616 (eval $ac_compile) 2>conftest.er1
19617 ac_status=$?
19618 grep -v '^ *+' conftest.er1 >conftest.err
19619 rm -f conftest.er1
19620 cat conftest.err >&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } &&
19623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 (eval $ac_try) 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; } &&
19629 { ac_try='test -s conftest.$ac_objext'
19630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 (eval $ac_try) 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; }; then
19635 ac_header_compiler=yes
19636 else
19637 echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19640 ac_header_compiler=no
19642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19644 echo "${ECHO_T}$ac_header_compiler" >&6
19646 # Is the header present?
19647 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19649 cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h. */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 #include <$ac_header>
19656 _ACEOF
19657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19659 ac_status=$?
19660 grep -v '^ *+' conftest.er1 >conftest.err
19661 rm -f conftest.er1
19662 cat conftest.err >&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } >/dev/null; then
19665 if test -s conftest.err; then
19666 ac_cpp_err=$ac_c_preproc_warn_flag
19667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19668 else
19669 ac_cpp_err=
19671 else
19672 ac_cpp_err=yes
19674 if test -z "$ac_cpp_err"; then
19675 ac_header_preproc=yes
19676 else
19677 echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19680 ac_header_preproc=no
19682 rm -f conftest.err conftest.$ac_ext
19683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19684 echo "${ECHO_T}$ac_header_preproc" >&6
19686 # So? What about this header?
19687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19688 yes:no: )
19689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19693 ac_header_preproc=yes
19695 no:yes:* )
19696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19709 cat <<\_ASBOX
19710 ## ------------------------------------------ ##
19711 ## Report this to the AC_PACKAGE_NAME lists. ##
19712 ## ------------------------------------------ ##
19713 _ASBOX
19715 sed "s/^/$as_me: WARNING: /" >&2
19717 esac
19718 echo "$as_me:$LINENO: checking for $ac_header" >&5
19719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19722 else
19723 eval "$as_ac_Header=\$ac_header_preproc"
19725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19730 cat >>confdefs.h <<_ACEOF
19731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19732 _ACEOF
19734 else
19736 for ac_header in kerberosIV/krb.h
19738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19740 echo "$as_me:$LINENO: checking for $ac_header" >&5
19741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
19745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19747 else
19748 # Is the header compilable?
19749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19751 cat >conftest.$ac_ext <<_ACEOF
19752 /* confdefs.h. */
19753 _ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19757 $ac_includes_default
19758 #include <$ac_header>
19759 _ACEOF
19760 rm -f conftest.$ac_objext
19761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19762 (eval $ac_compile) 2>conftest.er1
19763 ac_status=$?
19764 grep -v '^ *+' conftest.er1 >conftest.err
19765 rm -f conftest.er1
19766 cat conftest.err >&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); } &&
19769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try='test -s conftest.$ac_objext'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19781 ac_header_compiler=yes
19782 else
19783 echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19786 ac_header_compiler=no
19788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19790 echo "${ECHO_T}$ac_header_compiler" >&6
19792 # Is the header present?
19793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19795 cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h. */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 #include <$ac_header>
19802 _ACEOF
19803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } >/dev/null; then
19811 if test -s conftest.err; then
19812 ac_cpp_err=$ac_c_preproc_warn_flag
19813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19814 else
19815 ac_cpp_err=
19817 else
19818 ac_cpp_err=yes
19820 if test -z "$ac_cpp_err"; then
19821 ac_header_preproc=yes
19822 else
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19826 ac_header_preproc=no
19828 rm -f conftest.err conftest.$ac_ext
19829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19830 echo "${ECHO_T}$ac_header_preproc" >&6
19832 # So? What about this header?
19833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19834 yes:no: )
19835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19839 ac_header_preproc=yes
19841 no:yes:* )
19842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19855 cat <<\_ASBOX
19856 ## ------------------------------------------ ##
19857 ## Report this to the AC_PACKAGE_NAME lists. ##
19858 ## ------------------------------------------ ##
19859 _ASBOX
19861 sed "s/^/$as_me: WARNING: /" >&2
19863 esac
19864 echo "$as_me:$LINENO: checking for $ac_header" >&5
19865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
19868 else
19869 eval "$as_ac_Header=\$ac_header_preproc"
19871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19876 cat >>confdefs.h <<_ACEOF
19877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19878 _ACEOF
19880 else
19882 for ac_header in kerberos/krb.h
19884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19886 echo "$as_me:$LINENO: checking for $ac_header" >&5
19887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19889 echo $ECHO_N "(cached) $ECHO_C" >&6
19891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19893 else
19894 # Is the header compilable?
19895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19897 cat >conftest.$ac_ext <<_ACEOF
19898 /* confdefs.h. */
19899 _ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h. */
19903 $ac_includes_default
19904 #include <$ac_header>
19905 _ACEOF
19906 rm -f conftest.$ac_objext
19907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19908 (eval $ac_compile) 2>conftest.er1
19909 ac_status=$?
19910 grep -v '^ *+' conftest.er1 >conftest.err
19911 rm -f conftest.er1
19912 cat conftest.err >&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } &&
19915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; } &&
19921 { ac_try='test -s conftest.$ac_objext'
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19927 ac_header_compiler=yes
19928 else
19929 echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19932 ac_header_compiler=no
19934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19936 echo "${ECHO_T}$ac_header_compiler" >&6
19938 # Is the header present?
19939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19941 cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h. */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 #include <$ac_header>
19948 _ACEOF
19949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19951 ac_status=$?
19952 grep -v '^ *+' conftest.er1 >conftest.err
19953 rm -f conftest.er1
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } >/dev/null; then
19957 if test -s conftest.err; then
19958 ac_cpp_err=$ac_c_preproc_warn_flag
19959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19960 else
19961 ac_cpp_err=
19963 else
19964 ac_cpp_err=yes
19966 if test -z "$ac_cpp_err"; then
19967 ac_header_preproc=yes
19968 else
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19972 ac_header_preproc=no
19974 rm -f conftest.err conftest.$ac_ext
19975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19976 echo "${ECHO_T}$ac_header_preproc" >&6
19978 # So? What about this header?
19979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19980 yes:no: )
19981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19985 ac_header_preproc=yes
19987 no:yes:* )
19988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20001 cat <<\_ASBOX
20002 ## ------------------------------------------ ##
20003 ## Report this to the AC_PACKAGE_NAME lists. ##
20004 ## ------------------------------------------ ##
20005 _ASBOX
20007 sed "s/^/$as_me: WARNING: /" >&2
20009 esac
20010 echo "$as_me:$LINENO: checking for $ac_header" >&5
20011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20014 else
20015 eval "$as_ac_Header=\$ac_header_preproc"
20017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20022 cat >>confdefs.h <<_ACEOF
20023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20024 _ACEOF
20028 done
20032 done
20036 done
20040 for ac_header in com_err.h
20042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20044 echo "$as_me:$LINENO: checking for $ac_header" >&5
20045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20051 else
20052 # Is the header compilable?
20053 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20055 cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h. */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 $ac_includes_default
20062 #include <$ac_header>
20063 _ACEOF
20064 rm -f conftest.$ac_objext
20065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20066 (eval $ac_compile) 2>conftest.er1
20067 ac_status=$?
20068 grep -v '^ *+' conftest.er1 >conftest.err
20069 rm -f conftest.er1
20070 cat conftest.err >&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); } &&
20073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075 (eval $ac_try) 2>&5
20076 ac_status=$?
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; } &&
20079 { ac_try='test -s conftest.$ac_objext'
20080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081 (eval $ac_try) 2>&5
20082 ac_status=$?
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; }; then
20085 ac_header_compiler=yes
20086 else
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20090 ac_header_compiler=no
20092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20094 echo "${ECHO_T}$ac_header_compiler" >&6
20096 # Is the header present?
20097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20099 cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h. */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20105 #include <$ac_header>
20106 _ACEOF
20107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20109 ac_status=$?
20110 grep -v '^ *+' conftest.er1 >conftest.err
20111 rm -f conftest.er1
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } >/dev/null; then
20115 if test -s conftest.err; then
20116 ac_cpp_err=$ac_c_preproc_warn_flag
20117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20118 else
20119 ac_cpp_err=
20121 else
20122 ac_cpp_err=yes
20124 if test -z "$ac_cpp_err"; then
20125 ac_header_preproc=yes
20126 else
20127 echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20130 ac_header_preproc=no
20132 rm -f conftest.err conftest.$ac_ext
20133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20134 echo "${ECHO_T}$ac_header_preproc" >&6
20136 # So? What about this header?
20137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20138 yes:no: )
20139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20143 ac_header_preproc=yes
20145 no:yes:* )
20146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20159 cat <<\_ASBOX
20160 ## ------------------------------------------ ##
20161 ## Report this to the AC_PACKAGE_NAME lists. ##
20162 ## ------------------------------------------ ##
20163 _ASBOX
20165 sed "s/^/$as_me: WARNING: /" >&2
20167 esac
20168 echo "$as_me:$LINENO: checking for $ac_header" >&5
20169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20171 echo $ECHO_N "(cached) $ECHO_C" >&6
20172 else
20173 eval "$as_ac_Header=\$ac_header_preproc"
20175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20180 cat >>confdefs.h <<_ACEOF
20181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20182 _ACEOF
20186 done
20190 # Solaris requires -lintl if you want strerror (which calls dgettext)
20191 # to return localized messages.
20193 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20194 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20195 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20197 else
20198 ac_check_lib_save_LIBS=$LIBS
20199 LIBS="-lintl $LIBS"
20200 cat >conftest.$ac_ext <<_ACEOF
20201 /* confdefs.h. */
20202 _ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h. */
20207 /* Override any gcc2 internal prototype to avoid an error. */
20208 #ifdef __cplusplus
20209 extern "C"
20210 #endif
20211 /* We use char because int might match the return type of a gcc2
20212 builtin and then its argument prototype would still apply. */
20213 char dgettext ();
20215 main ()
20217 dgettext ();
20219 return 0;
20221 _ACEOF
20222 rm -f conftest.$ac_objext conftest$ac_exeext
20223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20224 (eval $ac_link) 2>conftest.er1
20225 ac_status=$?
20226 grep -v '^ *+' conftest.er1 >conftest.err
20227 rm -f conftest.er1
20228 cat conftest.err >&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } &&
20231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; } &&
20237 { ac_try='test -s conftest$ac_exeext'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 ac_cv_lib_intl_dgettext=yes
20244 else
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20248 ac_cv_lib_intl_dgettext=no
20250 rm -f conftest.err conftest.$ac_objext \
20251 conftest$ac_exeext conftest.$ac_ext
20252 LIBS=$ac_check_lib_save_LIBS
20254 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20255 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20256 if test $ac_cv_lib_intl_dgettext = yes; then
20257 cat >>confdefs.h <<_ACEOF
20258 #define HAVE_LIBINTL 1
20259 _ACEOF
20261 LIBS="-lintl $LIBS"
20266 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20267 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20268 if test "${emacs_cv_localtime_cache+set}" = set; then
20269 echo $ECHO_N "(cached) $ECHO_C" >&6
20270 else
20271 if test x$ac_cv_func_tzset = xyes; then
20272 if test "$cross_compiling" = yes; then
20273 # If we have tzset, assume the worst when cross-compiling.
20274 emacs_cv_localtime_cache=yes
20275 else
20276 cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h. */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 #include <time.h>
20283 extern char **environ;
20284 unset_TZ ()
20286 char **from, **to;
20287 for (to = from = environ; (*to = *from); from++)
20288 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20289 to++;
20291 char TZ_GMT0[] = "TZ=GMT0";
20292 char TZ_PST8[] = "TZ=PST8";
20293 main()
20295 time_t now = time ((time_t *) 0);
20296 int hour_GMT0, hour_unset;
20297 if (putenv (TZ_GMT0) != 0)
20298 exit (1);
20299 hour_GMT0 = localtime (&now)->tm_hour;
20300 unset_TZ ();
20301 hour_unset = localtime (&now)->tm_hour;
20302 if (putenv (TZ_PST8) != 0)
20303 exit (1);
20304 if (localtime (&now)->tm_hour == hour_GMT0)
20305 exit (1);
20306 unset_TZ ();
20307 if (localtime (&now)->tm_hour != hour_unset)
20308 exit (1);
20309 exit (0);
20311 _ACEOF
20312 rm -f conftest$ac_exeext
20313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20314 (eval $ac_link) 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
20323 emacs_cv_localtime_cache=no
20324 else
20325 echo "$as_me: program exited with status $ac_status" >&5
20326 echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20329 ( exit $ac_status )
20330 emacs_cv_localtime_cache=yes
20332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20334 else
20335 # If we lack tzset, report that localtime does not cache TZ,
20336 # since we can't invalidate the cache if we don't have tzset.
20337 emacs_cv_localtime_cache=no
20340 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20341 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20342 if test $emacs_cv_localtime_cache = yes; then
20344 cat >>confdefs.h <<\_ACEOF
20345 #define LOCALTIME_CACHE 1
20346 _ACEOF
20350 if test "x$HAVE_TIMEVAL" = xyes; then
20352 for ac_func in gettimeofday
20354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20355 echo "$as_me:$LINENO: checking for $ac_func" >&5
20356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20357 if eval "test \"\${$as_ac_var+set}\" = set"; then
20358 echo $ECHO_N "(cached) $ECHO_C" >&6
20359 else
20360 cat >conftest.$ac_ext <<_ACEOF
20361 /* confdefs.h. */
20362 _ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h. */
20366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20368 #define $ac_func innocuous_$ac_func
20370 /* System header to define __stub macros and hopefully few prototypes,
20371 which can conflict with char $ac_func (); below.
20372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20373 <limits.h> exists even on freestanding compilers. */
20375 #ifdef __STDC__
20376 # include <limits.h>
20377 #else
20378 # include <assert.h>
20379 #endif
20381 #undef $ac_func
20383 /* Override any gcc2 internal prototype to avoid an error. */
20384 #ifdef __cplusplus
20385 extern "C"
20387 #endif
20388 /* We use char because int might match the return type of a gcc2
20389 builtin and then its argument prototype would still apply. */
20390 char $ac_func ();
20391 /* The GNU C library defines this for functions which it implements
20392 to always fail with ENOSYS. Some functions are actually named
20393 something starting with __ and the normal name is an alias. */
20394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20395 choke me
20396 #else
20397 char (*f) () = $ac_func;
20398 #endif
20399 #ifdef __cplusplus
20401 #endif
20404 main ()
20406 return f != $ac_func;
20408 return 0;
20410 _ACEOF
20411 rm -f conftest.$ac_objext conftest$ac_exeext
20412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20413 (eval $ac_link) 2>conftest.er1
20414 ac_status=$?
20415 grep -v '^ *+' conftest.er1 >conftest.err
20416 rm -f conftest.er1
20417 cat conftest.err >&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } &&
20420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20422 (eval $ac_try) 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; } &&
20426 { ac_try='test -s conftest$ac_exeext'
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20429 ac_status=$?
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
20432 eval "$as_ac_var=yes"
20433 else
20434 echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20437 eval "$as_ac_var=no"
20439 rm -f conftest.err conftest.$ac_objext \
20440 conftest$ac_exeext conftest.$ac_ext
20442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20444 if test `eval echo '${'$as_ac_var'}'` = yes; then
20445 cat >>confdefs.h <<_ACEOF
20446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20447 _ACEOF
20450 done
20452 if test $ac_cv_func_gettimeofday = yes; then
20453 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20454 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20455 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
20457 else
20458 cat >conftest.$ac_ext <<_ACEOF
20459 /* confdefs.h. */
20460 _ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h. */
20465 #ifdef TIME_WITH_SYS_TIME
20466 #include <sys/time.h>
20467 #include <time.h>
20468 #else
20469 #ifdef HAVE_SYS_TIME_H
20470 #include <sys/time.h>
20471 #else
20472 #include <time.h>
20473 #endif
20474 #endif
20476 main ()
20478 struct timeval time;
20479 gettimeofday (&time, 0);
20481 return 0;
20483 _ACEOF
20484 rm -f conftest.$ac_objext
20485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20486 (eval $ac_compile) 2>conftest.er1
20487 ac_status=$?
20488 grep -v '^ *+' conftest.er1 >conftest.err
20489 rm -f conftest.er1
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
20493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495 (eval $ac_try) 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; } &&
20499 { ac_try='test -s conftest.$ac_objext'
20500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20501 (eval $ac_try) 2>&5
20502 ac_status=$?
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; }; then
20505 emacs_cv_gettimeofday_two_arguments=yes
20506 else
20507 echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20510 emacs_cv_gettimeofday_two_arguments=no
20512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20514 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20515 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20516 if test $emacs_cv_gettimeofday_two_arguments = no; then
20518 cat >>confdefs.h <<\_ACEOF
20519 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20520 _ACEOF
20526 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20527 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20528 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20529 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20530 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 else
20532 cat >conftest.$ac_ext <<_ACEOF
20533 /* confdefs.h. */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20538 #include <sys/types.h>
20539 #include <$ac_cv_struct_tm>
20543 main ()
20545 static struct tm ac_aggr;
20546 if (ac_aggr.tm_zone)
20547 return 0;
20549 return 0;
20551 _ACEOF
20552 rm -f conftest.$ac_objext
20553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20554 (eval $ac_compile) 2>conftest.er1
20555 ac_status=$?
20556 grep -v '^ *+' conftest.er1 >conftest.err
20557 rm -f conftest.er1
20558 cat conftest.err >&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } &&
20561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; } &&
20567 { ac_try='test -s conftest.$ac_objext'
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20570 ac_status=$?
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 ac_cv_member_struct_tm_tm_zone=yes
20574 else
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h. */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20584 #include <sys/types.h>
20585 #include <$ac_cv_struct_tm>
20589 main ()
20591 static struct tm ac_aggr;
20592 if (sizeof ac_aggr.tm_zone)
20593 return 0;
20595 return 0;
20597 _ACEOF
20598 rm -f conftest.$ac_objext
20599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20600 (eval $ac_compile) 2>conftest.er1
20601 ac_status=$?
20602 grep -v '^ *+' conftest.er1 >conftest.err
20603 rm -f conftest.er1
20604 cat conftest.err >&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } &&
20607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609 (eval $ac_try) 2>&5
20610 ac_status=$?
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); }; } &&
20613 { ac_try='test -s conftest.$ac_objext'
20614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615 (eval $ac_try) 2>&5
20616 ac_status=$?
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); }; }; then
20619 ac_cv_member_struct_tm_tm_zone=yes
20620 else
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20624 ac_cv_member_struct_tm_tm_zone=no
20626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20630 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20631 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20632 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20634 cat >>confdefs.h <<_ACEOF
20635 #define HAVE_STRUCT_TM_TM_ZONE 1
20636 _ACEOF
20641 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20643 cat >>confdefs.h <<\_ACEOF
20644 #define HAVE_TM_ZONE 1
20645 _ACEOF
20647 else
20648 echo "$as_me:$LINENO: checking for tzname" >&5
20649 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20650 if test "${ac_cv_var_tzname+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20652 else
20653 cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h. */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20659 #include <time.h>
20660 #ifndef tzname /* For SGI. */
20661 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20662 #endif
20665 main ()
20667 atoi(*tzname);
20669 return 0;
20671 _ACEOF
20672 rm -f conftest.$ac_objext conftest$ac_exeext
20673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20674 (eval $ac_link) 2>conftest.er1
20675 ac_status=$?
20676 grep -v '^ *+' conftest.er1 >conftest.err
20677 rm -f conftest.er1
20678 cat conftest.err >&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); } &&
20681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20683 (eval $ac_try) 2>&5
20684 ac_status=$?
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; } &&
20687 { ac_try='test -s conftest$ac_exeext'
20688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689 (eval $ac_try) 2>&5
20690 ac_status=$?
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); }; }; then
20693 ac_cv_var_tzname=yes
20694 else
20695 echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20698 ac_cv_var_tzname=no
20700 rm -f conftest.err conftest.$ac_objext \
20701 conftest$ac_exeext conftest.$ac_ext
20703 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20704 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20705 if test $ac_cv_var_tzname = yes; then
20707 cat >>confdefs.h <<\_ACEOF
20708 #define HAVE_TZNAME 1
20709 _ACEOF
20715 if test "$ac_cv_func_gettimeofday" = yes; then
20716 echo "$as_me:$LINENO: checking for struct timezone" >&5
20717 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20718 if test "${emacs_cv_struct_timezone+set}" = set; then
20719 echo $ECHO_N "(cached) $ECHO_C" >&6
20720 else
20721 cat >conftest.$ac_ext <<_ACEOF
20722 /* confdefs.h. */
20723 _ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20727 #include <sys/time.h>
20729 main ()
20731 struct timezone tz;
20733 return 0;
20735 _ACEOF
20736 rm -f conftest.$ac_objext
20737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20738 (eval $ac_compile) 2>conftest.er1
20739 ac_status=$?
20740 grep -v '^ *+' conftest.er1 >conftest.err
20741 rm -f conftest.er1
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } &&
20745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; } &&
20751 { ac_try='test -s conftest.$ac_objext'
20752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753 (eval $ac_try) 2>&5
20754 ac_status=$?
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; }; then
20757 if test "$cross_compiling" = yes; then
20758 emacs_cv_struct_timezone=yes
20759 else
20760 cat >conftest.$ac_ext <<_ACEOF
20761 /* confdefs.h. */
20762 _ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20767 #ifdef TIME_WITH_SYS_TIME
20768 #include <sys/time.h>
20769 #include <time.h>
20770 #else
20771 #ifdef HAVE_SYS_TIME_H
20772 #include <sys/time.h>
20773 #else
20774 #include <time.h>
20775 #endif
20776 #endif
20777 main () {
20778 struct timeval time;
20779 struct timezone dummy;
20780 exit (gettimeofday (&time, &dummy));
20782 _ACEOF
20783 rm -f conftest$ac_exeext
20784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20785 (eval $ac_link) 2>&5
20786 ac_status=$?
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 emacs_cv_struct_timezone=yes
20795 else
20796 echo "$as_me: program exited with status $ac_status" >&5
20797 echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20800 ( exit $ac_status )
20801 emacs_cv_struct_timezone=no
20803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20805 else
20806 echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20809 emacs_cv_struct_timezone=no
20811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20813 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20814 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20817 ok_so_far=yes
20818 echo "$as_me:$LINENO: checking for socket" >&5
20819 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20820 if test "${ac_cv_func_socket+set}" = set; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20822 else
20823 cat >conftest.$ac_ext <<_ACEOF
20824 /* confdefs.h. */
20825 _ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h. */
20829 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20831 #define socket innocuous_socket
20833 /* System header to define __stub macros and hopefully few prototypes,
20834 which can conflict with char socket (); below.
20835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20836 <limits.h> exists even on freestanding compilers. */
20838 #ifdef __STDC__
20839 # include <limits.h>
20840 #else
20841 # include <assert.h>
20842 #endif
20844 #undef socket
20846 /* Override any gcc2 internal prototype to avoid an error. */
20847 #ifdef __cplusplus
20848 extern "C"
20850 #endif
20851 /* We use char because int might match the return type of a gcc2
20852 builtin and then its argument prototype would still apply. */
20853 char socket ();
20854 /* The GNU C library defines this for functions which it implements
20855 to always fail with ENOSYS. Some functions are actually named
20856 something starting with __ and the normal name is an alias. */
20857 #if defined (__stub_socket) || defined (__stub___socket)
20858 choke me
20859 #else
20860 char (*f) () = socket;
20861 #endif
20862 #ifdef __cplusplus
20864 #endif
20867 main ()
20869 return f != socket;
20871 return 0;
20873 _ACEOF
20874 rm -f conftest.$ac_objext conftest$ac_exeext
20875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20876 (eval $ac_link) 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" || test ! -s conftest.err'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; } &&
20889 { ac_try='test -s conftest$ac_exeext'
20890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891 (eval $ac_try) 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
20895 ac_cv_func_socket=yes
20896 else
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 ac_cv_func_socket=no
20902 rm -f conftest.err conftest.$ac_objext \
20903 conftest$ac_exeext conftest.$ac_ext
20905 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20906 echo "${ECHO_T}$ac_cv_func_socket" >&6
20907 if test $ac_cv_func_socket = yes; then
20909 else
20910 ok_so_far=no
20913 if test $ok_so_far = yes; then
20914 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20915 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20916 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20917 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20918 echo $ECHO_N "(cached) $ECHO_C" >&6
20920 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20921 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20922 else
20923 # Is the header compilable?
20924 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20925 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
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 $ac_includes_default
20933 #include <netinet/in.h>
20934 _ACEOF
20935 rm -f conftest.$ac_objext
20936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20937 (eval $ac_compile) 2>conftest.er1
20938 ac_status=$?
20939 grep -v '^ *+' conftest.er1 >conftest.err
20940 rm -f conftest.er1
20941 cat conftest.err >&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } &&
20944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 (eval $ac_try) 2>&5
20947 ac_status=$?
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; } &&
20950 { ac_try='test -s conftest.$ac_objext'
20951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 (eval $ac_try) 2>&5
20953 ac_status=$?
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; }; then
20956 ac_header_compiler=yes
20957 else
20958 echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20961 ac_header_compiler=no
20963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20965 echo "${ECHO_T}$ac_header_compiler" >&6
20967 # Is the header present?
20968 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20969 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20970 cat >conftest.$ac_ext <<_ACEOF
20971 /* confdefs.h. */
20972 _ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20976 #include <netinet/in.h>
20977 _ACEOF
20978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20980 ac_status=$?
20981 grep -v '^ *+' conftest.er1 >conftest.err
20982 rm -f conftest.er1
20983 cat conftest.err >&5
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); } >/dev/null; then
20986 if test -s conftest.err; then
20987 ac_cpp_err=$ac_c_preproc_warn_flag
20988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20989 else
20990 ac_cpp_err=
20992 else
20993 ac_cpp_err=yes
20995 if test -z "$ac_cpp_err"; then
20996 ac_header_preproc=yes
20997 else
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21001 ac_header_preproc=no
21003 rm -f conftest.err conftest.$ac_ext
21004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21005 echo "${ECHO_T}$ac_header_preproc" >&6
21007 # So? What about this header?
21008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21009 yes:no: )
21010 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21011 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21012 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21013 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21014 ac_header_preproc=yes
21016 no:yes:* )
21017 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21018 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21019 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21020 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21021 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21022 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21023 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21024 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21025 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21026 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21027 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21028 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21030 cat <<\_ASBOX
21031 ## ------------------------------------------ ##
21032 ## Report this to the AC_PACKAGE_NAME lists. ##
21033 ## ------------------------------------------ ##
21034 _ASBOX
21036 sed "s/^/$as_me: WARNING: /" >&2
21038 esac
21039 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21040 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21041 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21042 echo $ECHO_N "(cached) $ECHO_C" >&6
21043 else
21044 ac_cv_header_netinet_in_h=$ac_header_preproc
21046 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21047 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21050 if test $ac_cv_header_netinet_in_h = yes; then
21052 else
21053 ok_so_far=no
21058 if test $ok_so_far = yes; then
21059 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21060 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21061 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21062 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21063 echo $ECHO_N "(cached) $ECHO_C" >&6
21065 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21066 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21067 else
21068 # Is the header compilable?
21069 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21070 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21071 cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h. */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 $ac_includes_default
21078 #include <arpa/inet.h>
21079 _ACEOF
21080 rm -f conftest.$ac_objext
21081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21082 (eval $ac_compile) 2>conftest.er1
21083 ac_status=$?
21084 grep -v '^ *+' conftest.er1 >conftest.err
21085 rm -f conftest.er1
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } &&
21089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21091 (eval $ac_try) 2>&5
21092 ac_status=$?
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); }; } &&
21095 { ac_try='test -s conftest.$ac_objext'
21096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097 (eval $ac_try) 2>&5
21098 ac_status=$?
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; }; then
21101 ac_header_compiler=yes
21102 else
21103 echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21106 ac_header_compiler=no
21108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21110 echo "${ECHO_T}$ac_header_compiler" >&6
21112 # Is the header present?
21113 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21114 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21115 cat >conftest.$ac_ext <<_ACEOF
21116 /* confdefs.h. */
21117 _ACEOF
21118 cat confdefs.h >>conftest.$ac_ext
21119 cat >>conftest.$ac_ext <<_ACEOF
21120 /* end confdefs.h. */
21121 #include <arpa/inet.h>
21122 _ACEOF
21123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21125 ac_status=$?
21126 grep -v '^ *+' conftest.er1 >conftest.err
21127 rm -f conftest.er1
21128 cat conftest.err >&5
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); } >/dev/null; then
21131 if test -s conftest.err; then
21132 ac_cpp_err=$ac_c_preproc_warn_flag
21133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21134 else
21135 ac_cpp_err=
21137 else
21138 ac_cpp_err=yes
21140 if test -z "$ac_cpp_err"; then
21141 ac_header_preproc=yes
21142 else
21143 echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21146 ac_header_preproc=no
21148 rm -f conftest.err conftest.$ac_ext
21149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21150 echo "${ECHO_T}$ac_header_preproc" >&6
21152 # So? What about this header?
21153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21154 yes:no: )
21155 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21156 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21157 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21158 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21159 ac_header_preproc=yes
21161 no:yes:* )
21162 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21163 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21164 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21165 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21166 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21167 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21168 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21169 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21170 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21171 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21172 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21173 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21175 cat <<\_ASBOX
21176 ## ------------------------------------------ ##
21177 ## Report this to the AC_PACKAGE_NAME lists. ##
21178 ## ------------------------------------------ ##
21179 _ASBOX
21181 sed "s/^/$as_me: WARNING: /" >&2
21183 esac
21184 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21185 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21186 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21187 echo $ECHO_N "(cached) $ECHO_C" >&6
21188 else
21189 ac_cv_header_arpa_inet_h=$ac_header_preproc
21191 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21192 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21195 if test $ac_cv_header_arpa_inet_h = yes; then
21197 else
21198 ok_so_far=no
21203 if test $ok_so_far = yes; then
21205 cat >>confdefs.h <<\_ACEOF
21206 #define HAVE_INET_SOCKETS 1
21207 _ACEOF
21212 for ac_header in sys/ioctl.h
21214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21216 echo "$as_me:$LINENO: checking for $ac_header" >&5
21217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21223 else
21224 # Is the header compilable?
21225 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21227 cat >conftest.$ac_ext <<_ACEOF
21228 /* confdefs.h. */
21229 _ACEOF
21230 cat confdefs.h >>conftest.$ac_ext
21231 cat >>conftest.$ac_ext <<_ACEOF
21232 /* end confdefs.h. */
21233 $ac_includes_default
21234 #include <$ac_header>
21235 _ACEOF
21236 rm -f conftest.$ac_objext
21237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21238 (eval $ac_compile) 2>conftest.er1
21239 ac_status=$?
21240 grep -v '^ *+' conftest.er1 >conftest.err
21241 rm -f conftest.er1
21242 cat conftest.err >&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } &&
21245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; } &&
21251 { ac_try='test -s conftest.$ac_objext'
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21254 ac_status=$?
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; }; then
21257 ac_header_compiler=yes
21258 else
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21262 ac_header_compiler=no
21264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21266 echo "${ECHO_T}$ac_header_compiler" >&6
21268 # Is the header present?
21269 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21271 cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h. */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 #include <$ac_header>
21278 _ACEOF
21279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21281 ac_status=$?
21282 grep -v '^ *+' conftest.er1 >conftest.err
21283 rm -f conftest.er1
21284 cat conftest.err >&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); } >/dev/null; then
21287 if test -s conftest.err; then
21288 ac_cpp_err=$ac_c_preproc_warn_flag
21289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21290 else
21291 ac_cpp_err=
21293 else
21294 ac_cpp_err=yes
21296 if test -z "$ac_cpp_err"; then
21297 ac_header_preproc=yes
21298 else
21299 echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21302 ac_header_preproc=no
21304 rm -f conftest.err conftest.$ac_ext
21305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21306 echo "${ECHO_T}$ac_header_preproc" >&6
21308 # So? What about this header?
21309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21310 yes:no: )
21311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21315 ac_header_preproc=yes
21317 no:yes:* )
21318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21331 cat <<\_ASBOX
21332 ## ------------------------------------------ ##
21333 ## Report this to the AC_PACKAGE_NAME lists. ##
21334 ## ------------------------------------------ ##
21335 _ASBOX
21337 sed "s/^/$as_me: WARNING: /" >&2
21339 esac
21340 echo "$as_me:$LINENO: checking for $ac_header" >&5
21341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21343 echo $ECHO_N "(cached) $ECHO_C" >&6
21344 else
21345 eval "$as_ac_Header=\$ac_header_preproc"
21347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21352 cat >>confdefs.h <<_ACEOF
21353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21354 _ACEOF
21358 done
21361 if test -f /usr/lpp/X11/bin/smt.exp; then
21363 cat >>confdefs.h <<\_ACEOF
21364 #define HAVE_AIX_SMT_EXP 1
21365 _ACEOF
21369 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21370 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21371 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21372 echo "$as_me:$LINENO: result: yes" >&5
21373 echo "${ECHO_T}yes" >&6
21375 cat >>confdefs.h <<\_ACEOF
21376 #define HAVE_DEV_PTMX 1
21377 _ACEOF
21379 else
21380 echo "$as_me:$LINENO: result: no" >&5
21381 echo "${ECHO_T}no" >&6
21384 echo "$as_me:$LINENO: checking for pid_t" >&5
21385 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21386 if test "${ac_cv_type_pid_t+set}" = set; then
21387 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 else
21389 cat >conftest.$ac_ext <<_ACEOF
21390 /* confdefs.h. */
21391 _ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21395 $ac_includes_default
21397 main ()
21399 if ((pid_t *) 0)
21400 return 0;
21401 if (sizeof (pid_t))
21402 return 0;
21404 return 0;
21406 _ACEOF
21407 rm -f conftest.$ac_objext
21408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21409 (eval $ac_compile) 2>conftest.er1
21410 ac_status=$?
21411 grep -v '^ *+' conftest.er1 >conftest.err
21412 rm -f conftest.er1
21413 cat conftest.err >&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); } &&
21416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418 (eval $ac_try) 2>&5
21419 ac_status=$?
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; } &&
21422 { ac_try='test -s conftest.$ac_objext'
21423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21424 (eval $ac_try) 2>&5
21425 ac_status=$?
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); }; }; then
21428 ac_cv_type_pid_t=yes
21429 else
21430 echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21433 ac_cv_type_pid_t=no
21435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21437 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21438 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21439 if test $ac_cv_type_pid_t = yes; then
21441 else
21443 cat >>confdefs.h <<_ACEOF
21444 #define pid_t int
21445 _ACEOF
21451 for ac_header in unistd.h vfork.h
21453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21455 echo "$as_me:$LINENO: checking for $ac_header" >&5
21456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21458 echo $ECHO_N "(cached) $ECHO_C" >&6
21460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21462 else
21463 # Is the header compilable?
21464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21466 cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h. */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21472 $ac_includes_default
21473 #include <$ac_header>
21474 _ACEOF
21475 rm -f conftest.$ac_objext
21476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21477 (eval $ac_compile) 2>conftest.er1
21478 ac_status=$?
21479 grep -v '^ *+' conftest.er1 >conftest.err
21480 rm -f conftest.er1
21481 cat conftest.err >&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } &&
21484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21486 (eval $ac_try) 2>&5
21487 ac_status=$?
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); }; } &&
21490 { ac_try='test -s conftest.$ac_objext'
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21493 ac_status=$?
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; }; then
21496 ac_header_compiler=yes
21497 else
21498 echo "$as_me: failed program was:" >&5
21499 sed 's/^/| /' conftest.$ac_ext >&5
21501 ac_header_compiler=no
21503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21505 echo "${ECHO_T}$ac_header_compiler" >&6
21507 # Is the header present?
21508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21510 cat >conftest.$ac_ext <<_ACEOF
21511 /* confdefs.h. */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21516 #include <$ac_header>
21517 _ACEOF
21518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21520 ac_status=$?
21521 grep -v '^ *+' conftest.er1 >conftest.err
21522 rm -f conftest.er1
21523 cat conftest.err >&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); } >/dev/null; then
21526 if test -s conftest.err; then
21527 ac_cpp_err=$ac_c_preproc_warn_flag
21528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21529 else
21530 ac_cpp_err=
21532 else
21533 ac_cpp_err=yes
21535 if test -z "$ac_cpp_err"; then
21536 ac_header_preproc=yes
21537 else
21538 echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21541 ac_header_preproc=no
21543 rm -f conftest.err conftest.$ac_ext
21544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21545 echo "${ECHO_T}$ac_header_preproc" >&6
21547 # So? What about this header?
21548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21549 yes:no: )
21550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21554 ac_header_preproc=yes
21556 no:yes:* )
21557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21570 cat <<\_ASBOX
21571 ## ------------------------------------------ ##
21572 ## Report this to the AC_PACKAGE_NAME lists. ##
21573 ## ------------------------------------------ ##
21574 _ASBOX
21576 sed "s/^/$as_me: WARNING: /" >&2
21578 esac
21579 echo "$as_me:$LINENO: checking for $ac_header" >&5
21580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21582 echo $ECHO_N "(cached) $ECHO_C" >&6
21583 else
21584 eval "$as_ac_Header=\$ac_header_preproc"
21586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21591 cat >>confdefs.h <<_ACEOF
21592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21593 _ACEOF
21597 done
21601 for ac_func in fork vfork
21603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21604 echo "$as_me:$LINENO: checking for $ac_func" >&5
21605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21606 if eval "test \"\${$as_ac_var+set}\" = set"; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21608 else
21609 cat >conftest.$ac_ext <<_ACEOF
21610 /* confdefs.h. */
21611 _ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21617 #define $ac_func innocuous_$ac_func
21619 /* System header to define __stub macros and hopefully few prototypes,
21620 which can conflict with char $ac_func (); below.
21621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21622 <limits.h> exists even on freestanding compilers. */
21624 #ifdef __STDC__
21625 # include <limits.h>
21626 #else
21627 # include <assert.h>
21628 #endif
21630 #undef $ac_func
21632 /* Override any gcc2 internal prototype to avoid an error. */
21633 #ifdef __cplusplus
21634 extern "C"
21636 #endif
21637 /* We use char because int might match the return type of a gcc2
21638 builtin and then its argument prototype would still apply. */
21639 char $ac_func ();
21640 /* The GNU C library defines this for functions which it implements
21641 to always fail with ENOSYS. Some functions are actually named
21642 something starting with __ and the normal name is an alias. */
21643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21644 choke me
21645 #else
21646 char (*f) () = $ac_func;
21647 #endif
21648 #ifdef __cplusplus
21650 #endif
21653 main ()
21655 return f != $ac_func;
21657 return 0;
21659 _ACEOF
21660 rm -f conftest.$ac_objext conftest$ac_exeext
21661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21662 (eval $ac_link) 2>conftest.er1
21663 ac_status=$?
21664 grep -v '^ *+' conftest.er1 >conftest.err
21665 rm -f conftest.er1
21666 cat conftest.err >&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } &&
21669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671 (eval $ac_try) 2>&5
21672 ac_status=$?
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); }; } &&
21675 { ac_try='test -s conftest$ac_exeext'
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21678 ac_status=$?
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; }; then
21681 eval "$as_ac_var=yes"
21682 else
21683 echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21686 eval "$as_ac_var=no"
21688 rm -f conftest.err conftest.$ac_objext \
21689 conftest$ac_exeext conftest.$ac_ext
21691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21693 if test `eval echo '${'$as_ac_var'}'` = yes; then
21694 cat >>confdefs.h <<_ACEOF
21695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21696 _ACEOF
21699 done
21701 if test "x$ac_cv_func_fork" = xyes; then
21702 echo "$as_me:$LINENO: checking for working fork" >&5
21703 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21704 if test "${ac_cv_func_fork_works+set}" = set; then
21705 echo $ECHO_N "(cached) $ECHO_C" >&6
21706 else
21707 if test "$cross_compiling" = yes; then
21708 ac_cv_func_fork_works=cross
21709 else
21710 cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h. */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21716 $ac_includes_default
21718 main ()
21721 /* By Ruediger Kuhlmann. */
21722 if (fork() < 0)
21723 exit (1);
21724 exit (0);
21727 return 0;
21729 _ACEOF
21730 rm -f conftest$ac_exeext
21731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21732 (eval $ac_link) 2>&5
21733 ac_status=$?
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21737 (eval $ac_try) 2>&5
21738 ac_status=$?
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); }; }; then
21741 ac_cv_func_fork_works=yes
21742 else
21743 echo "$as_me: program exited with status $ac_status" >&5
21744 echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.$ac_ext >&5
21747 ( exit $ac_status )
21748 ac_cv_func_fork_works=no
21750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21753 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21754 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21756 else
21757 ac_cv_func_fork_works=$ac_cv_func_fork
21759 if test "x$ac_cv_func_fork_works" = xcross; then
21760 case $host in
21761 *-*-amigaos* | *-*-msdosdjgpp*)
21762 # Override, as these systems have only a dummy fork() stub
21763 ac_cv_func_fork_works=no
21766 ac_cv_func_fork_works=yes
21768 esac
21769 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21770 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21772 ac_cv_func_vfork_works=$ac_cv_func_vfork
21773 if test "x$ac_cv_func_vfork" = xyes; then
21774 echo "$as_me:$LINENO: checking for working vfork" >&5
21775 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21776 if test "${ac_cv_func_vfork_works+set}" = set; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 else
21779 if test "$cross_compiling" = yes; then
21780 ac_cv_func_vfork_works=cross
21781 else
21782 cat >conftest.$ac_ext <<_ACEOF
21783 /* confdefs.h. */
21784 _ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h. */
21788 /* Thanks to Paul Eggert for this test. */
21789 #include <stdio.h>
21790 #include <stdlib.h>
21791 #include <sys/types.h>
21792 #include <sys/stat.h>
21793 #include <sys/wait.h>
21794 #if HAVE_UNISTD_H
21795 # include <unistd.h>
21796 #endif
21797 #if HAVE_VFORK_H
21798 # include <vfork.h>
21799 #endif
21800 /* On some sparc systems, changes by the child to local and incoming
21801 argument registers are propagated back to the parent. The compiler
21802 is told about this with #include <vfork.h>, but some compilers
21803 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21804 static variable whose address is put into a register that is
21805 clobbered by the vfork. */
21806 static void
21807 #ifdef __cplusplus
21808 sparc_address_test (int arg)
21809 # else
21810 sparc_address_test (arg) int arg;
21811 #endif
21813 static pid_t child;
21814 if (!child) {
21815 child = vfork ();
21816 if (child < 0) {
21817 perror ("vfork");
21818 _exit(2);
21820 if (!child) {
21821 arg = getpid();
21822 write(-1, "", 0);
21823 _exit (arg);
21829 main ()
21831 pid_t parent = getpid ();
21832 pid_t child;
21834 sparc_address_test (0);
21836 child = vfork ();
21838 if (child == 0) {
21839 /* Here is another test for sparc vfork register problems. This
21840 test uses lots of local variables, at least as many local
21841 variables as main has allocated so far including compiler
21842 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21843 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21844 reuse the register of parent for one of the local variables,
21845 since it will think that parent can't possibly be used any more
21846 in this routine. Assigning to the local variable will thus
21847 munge parent in the parent process. */
21848 pid_t
21849 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21850 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21851 /* Convince the compiler that p..p7 are live; otherwise, it might
21852 use the same hardware register for all 8 local variables. */
21853 if (p != p1 || p != p2 || p != p3 || p != p4
21854 || p != p5 || p != p6 || p != p7)
21855 _exit(1);
21857 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21858 from child file descriptors. If the child closes a descriptor
21859 before it execs or exits, this munges the parent's descriptor
21860 as well. Test for this by closing stdout in the child. */
21861 _exit(close(fileno(stdout)) != 0);
21862 } else {
21863 int status;
21864 struct stat st;
21866 while (wait(&status) != child)
21868 exit(
21869 /* Was there some problem with vforking? */
21870 child < 0
21872 /* Did the child fail? (This shouldn't happen.) */
21873 || status
21875 /* Did the vfork/compiler bug occur? */
21876 || parent != getpid()
21878 /* Did the file descriptor bug occur? */
21879 || fstat(fileno(stdout), &st) != 0
21883 _ACEOF
21884 rm -f conftest$ac_exeext
21885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21886 (eval $ac_link) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891 (eval $ac_try) 2>&5
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; }; then
21895 ac_cv_func_vfork_works=yes
21896 else
21897 echo "$as_me: program exited with status $ac_status" >&5
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21901 ( exit $ac_status )
21902 ac_cv_func_vfork_works=no
21904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21907 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21908 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21911 if test "x$ac_cv_func_fork_works" = xcross; then
21912 ac_cv_func_vfork_works=$ac_cv_func_vfork
21913 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21914 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21917 if test "x$ac_cv_func_vfork_works" = xyes; then
21919 cat >>confdefs.h <<\_ACEOF
21920 #define HAVE_WORKING_VFORK 1
21921 _ACEOF
21923 else
21925 cat >>confdefs.h <<\_ACEOF
21926 #define vfork fork
21927 _ACEOF
21930 if test "x$ac_cv_func_fork_works" = xyes; then
21932 cat >>confdefs.h <<\_ACEOF
21933 #define HAVE_WORKING_FORK 1
21934 _ACEOF
21939 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21940 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21941 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21942 echo $ECHO_N "(cached) $ECHO_C" >&6
21943 else
21944 cat >conftest.$ac_ext <<_ACEOF
21945 /* confdefs.h. */
21946 _ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h. */
21950 #include <langinfo.h>
21952 main ()
21954 char* cs = nl_langinfo(CODESET);
21956 return 0;
21958 _ACEOF
21959 rm -f conftest.$ac_objext conftest$ac_exeext
21960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21961 (eval $ac_link) 2>conftest.er1
21962 ac_status=$?
21963 grep -v '^ *+' conftest.er1 >conftest.err
21964 rm -f conftest.er1
21965 cat conftest.err >&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } &&
21968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; } &&
21974 { ac_try='test -s conftest$ac_exeext'
21975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976 (eval $ac_try) 2>&5
21977 ac_status=$?
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; }; then
21980 emacs_cv_langinfo_codeset=yes
21981 else
21982 echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21985 emacs_cv_langinfo_codeset=no
21987 rm -f conftest.err conftest.$ac_objext \
21988 conftest$ac_exeext conftest.$ac_ext
21991 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21992 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21993 if test $emacs_cv_langinfo_codeset = yes; then
21995 cat >>confdefs.h <<\_ACEOF
21996 #define HAVE_LANGINFO_CODESET 1
21997 _ACEOF
22001 echo "$as_me:$LINENO: checking for size_t" >&5
22002 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22003 if test "${ac_cv_type_size_t+set}" = set; then
22004 echo $ECHO_N "(cached) $ECHO_C" >&6
22005 else
22006 cat >conftest.$ac_ext <<_ACEOF
22007 /* confdefs.h. */
22008 _ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h. */
22012 $ac_includes_default
22014 main ()
22016 if ((size_t *) 0)
22017 return 0;
22018 if (sizeof (size_t))
22019 return 0;
22021 return 0;
22023 _ACEOF
22024 rm -f conftest.$ac_objext
22025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22026 (eval $ac_compile) 2>conftest.er1
22027 ac_status=$?
22028 grep -v '^ *+' conftest.er1 >conftest.err
22029 rm -f conftest.er1
22030 cat conftest.err >&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } &&
22033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22035 (eval $ac_try) 2>&5
22036 ac_status=$?
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); }; } &&
22039 { ac_try='test -s conftest.$ac_objext'
22040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22041 (eval $ac_try) 2>&5
22042 ac_status=$?
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); }; }; then
22045 ac_cv_type_size_t=yes
22046 else
22047 echo "$as_me: failed program was:" >&5
22048 sed 's/^/| /' conftest.$ac_ext >&5
22050 ac_cv_type_size_t=no
22052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22054 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22055 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22056 if test $ac_cv_type_size_t = yes; then
22058 cat >>confdefs.h <<_ACEOF
22059 #define HAVE_SIZE_T 1
22060 _ACEOF
22066 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22067 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22068 if test "${ac_cv_type_mbstate_t+set}" = set; then
22069 echo $ECHO_N "(cached) $ECHO_C" >&6
22070 else
22071 cat >conftest.$ac_ext <<_ACEOF
22072 /* confdefs.h. */
22073 _ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h. */
22077 $ac_includes_default
22078 # include <wchar.h>
22080 main ()
22082 mbstate_t x; return sizeof x;
22084 return 0;
22086 _ACEOF
22087 rm -f conftest.$ac_objext
22088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22089 (eval $ac_compile) 2>conftest.er1
22090 ac_status=$?
22091 grep -v '^ *+' conftest.er1 >conftest.err
22092 rm -f conftest.er1
22093 cat conftest.err >&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } &&
22096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22098 (eval $ac_try) 2>&5
22099 ac_status=$?
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); }; } &&
22102 { ac_try='test -s conftest.$ac_objext'
22103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104 (eval $ac_try) 2>&5
22105 ac_status=$?
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; }; then
22108 ac_cv_type_mbstate_t=yes
22109 else
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22113 ac_cv_type_mbstate_t=no
22115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22117 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22118 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22119 if test $ac_cv_type_mbstate_t = yes; then
22121 cat >>confdefs.h <<\_ACEOF
22122 #define HAVE_MBSTATE_T 1
22123 _ACEOF
22125 else
22127 cat >>confdefs.h <<\_ACEOF
22128 #define mbstate_t int
22129 _ACEOF
22133 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22134 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22135 if test "${emacs_cv_c_restrict+set}" = set; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 else
22138 cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h. */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 void fred (int *restrict x);
22146 main ()
22150 return 0;
22152 _ACEOF
22153 rm -f conftest.$ac_objext
22154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22155 (eval $ac_compile) 2>conftest.er1
22156 ac_status=$?
22157 grep -v '^ *+' conftest.er1 >conftest.err
22158 rm -f conftest.er1
22159 cat conftest.err >&5
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); } &&
22162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164 (eval $ac_try) 2>&5
22165 ac_status=$?
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; } &&
22168 { ac_try='test -s conftest.$ac_objext'
22169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; }; then
22174 emacs_cv_c_restrict=yes
22175 else
22176 echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22179 cat >conftest.$ac_ext <<_ACEOF
22180 /* confdefs.h. */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h. */
22185 void fred (int *__restrict x);
22187 main ()
22191 return 0;
22193 _ACEOF
22194 rm -f conftest.$ac_objext
22195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22196 (eval $ac_compile) 2>conftest.er1
22197 ac_status=$?
22198 grep -v '^ *+' conftest.er1 >conftest.err
22199 rm -f conftest.er1
22200 cat conftest.err >&5
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); } &&
22203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22205 (eval $ac_try) 2>&5
22206 ac_status=$?
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); }; } &&
22209 { ac_try='test -s conftest.$ac_objext'
22210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22211 (eval $ac_try) 2>&5
22212 ac_status=$?
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; }; then
22215 emacs_cv_c_restrict=__restrict
22216 else
22217 echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22220 emacs_cv_c_restrict=no
22222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22226 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22227 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22228 case "$emacs_cv_c_restrict" in
22229 yes) emacs_restrict=restrict;;
22230 no) emacs_restrict="";;
22231 *) emacs_restrict="$emacs_cv_c_restrict";;
22232 esac
22233 if test "$emacs_restrict" != __restrict; then
22235 cat >>confdefs.h <<_ACEOF
22236 #define __restrict $emacs_restrict
22237 _ACEOF
22241 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22242 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22243 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22244 echo $ECHO_N "(cached) $ECHO_C" >&6
22245 else
22246 cat >conftest.$ac_ext <<_ACEOF
22247 /* confdefs.h. */
22248 _ACEOF
22249 cat confdefs.h >>conftest.$ac_ext
22250 cat >>conftest.$ac_ext <<_ACEOF
22251 /* end confdefs.h. */
22252 void fred (int x[__restrict]);
22254 main ()
22258 return 0;
22260 _ACEOF
22261 rm -f conftest.$ac_objext
22262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22263 (eval $ac_compile) 2>conftest.er1
22264 ac_status=$?
22265 grep -v '^ *+' conftest.er1 >conftest.err
22266 rm -f conftest.er1
22267 cat conftest.err >&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } &&
22270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272 (eval $ac_try) 2>&5
22273 ac_status=$?
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; } &&
22276 { ac_try='test -s conftest.$ac_objext'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22279 ac_status=$?
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; }; then
22282 emacs_cv_c_restrict_arr=yes
22283 else
22284 echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22287 emacs_cv_c_restrict_arr=no
22289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22291 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22292 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22293 if test "$emacs_cv_c_restrict_arr" = yes; then
22295 cat >>confdefs.h <<\_ACEOF
22296 #define __restrict_arr __restrict
22297 _ACEOF
22303 # Set up the CFLAGS for real compilation, so we can substitute it.
22304 CFLAGS="$REAL_CFLAGS"
22305 CPPFLAGS="$REAL_CPPFLAGS"
22307 #### Find out which version of Emacs this is.
22308 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22309 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22310 if test x"${version}" = x; then
22311 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22312 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22313 { (exit 1); exit 1; }; }
22316 ### Specify what sort of things we'll be editing into Makefile and config.h.
22317 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22353 cat >>confdefs.h <<_ACEOF
22354 #define EMACS_CONFIGURATION "${canonical}"
22355 _ACEOF
22358 cat >>confdefs.h <<_ACEOF
22359 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22360 _ACEOF
22363 cat >>confdefs.h <<_ACEOF
22364 #define config_machfile "${machfile}"
22365 _ACEOF
22368 cat >>confdefs.h <<_ACEOF
22369 #define config_opsysfile "${opsysfile}"
22370 _ACEOF
22373 cat >>confdefs.h <<_ACEOF
22374 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22375 _ACEOF
22378 cat >>confdefs.h <<_ACEOF
22379 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22380 _ACEOF
22383 cat >>confdefs.h <<_ACEOF
22384 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22385 _ACEOF
22388 cat >>confdefs.h <<_ACEOF
22389 #define UNEXEC_SRC ${UNEXEC_SRC}
22390 _ACEOF
22393 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22395 cat >>confdefs.h <<\_ACEOF
22396 #define HAVE_X_WINDOWS 1
22397 _ACEOF
22400 if test "${USE_X_TOOLKIT}" != "none" ; then
22402 cat >>confdefs.h <<\_ACEOF
22403 #define USE_X_TOOLKIT 1
22404 _ACEOF
22407 if test "${HAVE_X11}" = "yes" ; then
22409 cat >>confdefs.h <<\_ACEOF
22410 #define HAVE_X11 1
22411 _ACEOF
22414 if test "${HAVE_XFREE386}" = "yes" ; then
22416 cat >>confdefs.h <<\_ACEOF
22417 #define HAVE_XFREE386 1
22418 _ACEOF
22421 if test "${HAVE_MENUS}" = "yes" ; then
22423 cat >>confdefs.h <<\_ACEOF
22424 #define HAVE_MENUS 1
22425 _ACEOF
22428 if test "${GNU_MALLOC}" = "yes" ; then
22430 cat >>confdefs.h <<\_ACEOF
22431 #define GNU_MALLOC 1
22432 _ACEOF
22435 if test "${REL_ALLOC}" = "yes" ; then
22437 cat >>confdefs.h <<\_ACEOF
22438 #define REL_ALLOC 1
22439 _ACEOF
22447 #### Report on what we decided to do.
22448 #### Report GTK as a toolkit, even if it doesn't use Xt.
22449 #### It makes printing result more understandable as using GTK sets
22450 #### toolkit_scroll_bars to yes by default.
22451 if test "${HAVE_GTK}" = "yes"; then
22452 USE_X_TOOLKIT=GTK
22455 echo "
22456 Configured for \`${canonical}'.
22458 Where should the build process find the source code? ${srcdir}
22459 What operating system and machine description files should Emacs use?
22460 \`${opsysfile}' and \`${machfile}'
22461 What compiler should emacs be built with? ${CC} ${CFLAGS}
22462 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22463 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22464 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22465 What window system should Emacs use? ${window_system}
22466 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22468 if test -n "${x_includes}"; then
22469 echo " Where do we find X Windows header files? ${x_includes}"
22470 else
22471 echo " Where do we find X Windows header files? Standard dirs"
22473 if test -n "${x_libraries}"; then
22474 echo " Where do we find X Windows libraries? ${x_libraries}"
22475 else
22476 echo " Where do we find X Windows libraries? Standard dirs"
22479 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22480 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22481 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22482 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22483 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22484 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22485 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22486 echo
22488 if test $USE_XASSERTS = yes; then
22489 echo " Compiling with asserts turned on."
22490 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22491 echo
22496 # Remove any trailing slashes in these variables.
22497 test "${prefix}" != NONE &&
22498 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22499 test "${exec_prefix}" != NONE &&
22500 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22502 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22503 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22504 ## from Makefile.c can correctly provide the arg `-traditional' to the
22505 ## C preprocessor.
22507 cat >conftest.$ac_ext <<_ACEOF
22508 /* confdefs.h. */
22509 _ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h. */
22513 yes..yes
22514 _ACEOF
22515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22516 $EGREP "yes..yes" >/dev/null 2>&1; then
22517 CPP_NEED_TRADITIONAL=no
22518 else
22519 CPP_NEED_TRADITIONAL=yes
22521 rm -f conftest*
22524 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"
22525 ac_config_commands="$ac_config_commands default"
22526 cat >confcache <<\_ACEOF
22527 # This file is a shell script that caches the results of configure
22528 # tests run on this system so they can be shared between configure
22529 # scripts and configure runs, see configure's option --config-cache.
22530 # It is not useful on other systems. If it contains results you don't
22531 # want to keep, you may remove or edit it.
22533 # config.status only pays attention to the cache file if you give it
22534 # the --recheck option to rerun configure.
22536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22538 # following values.
22540 _ACEOF
22542 # The following way of writing the cache mishandles newlines in values,
22543 # but we know of no workaround that is simple, portable, and efficient.
22544 # So, don't put newlines in cache variables' values.
22545 # Ultrix sh set writes to stderr and can't be redirected directly,
22546 # and sets the high bit in the cache file unless we assign to the vars.
22548 (set) 2>&1 |
22549 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22550 *ac_space=\ *)
22551 # `set' does not quote correctly, so add quotes (double-quote
22552 # substitution turns \\\\ into \\, and sed turns \\ into \).
22553 sed -n \
22554 "s/'/'\\\\''/g;
22555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22558 # `set' quotes correctly as required by POSIX, so do not add quotes.
22559 sed -n \
22560 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22562 esac;
22564 sed '
22565 t clear
22566 : clear
22567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22568 t end
22569 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22570 : end' >>confcache
22571 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22572 if test -w $cache_file; then
22573 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22574 cat confcache >$cache_file
22575 else
22576 echo "not updating unwritable cache $cache_file"
22579 rm -f confcache
22581 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22582 # Let make expand exec_prefix.
22583 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22585 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22586 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22587 # trailing colons and then remove the whole line if VPATH becomes empty
22588 # (actually we leave an empty line to preserve line numbers).
22589 if test "x$srcdir" = x.; then
22590 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22591 s/:*\$(srcdir):*/:/;
22592 s/:*\${srcdir}:*/:/;
22593 s/:*@srcdir@:*/:/;
22594 s/^\([^=]*=[ ]*\):*/\1/;
22595 s/:*$//;
22596 s/^[^=]*=[ ]*$//;
22600 DEFS=-DHAVE_CONFIG_H
22602 ac_libobjs=
22603 ac_ltlibobjs=
22604 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22605 # 1. Remove the extension, and $U if already installed.
22606 ac_i=`echo "$ac_i" |
22607 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22608 # 2. Add them.
22609 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22610 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22611 done
22612 LIBOBJS=$ac_libobjs
22614 LTLIBOBJS=$ac_ltlibobjs
22618 : ${CONFIG_STATUS=./config.status}
22619 ac_clean_files_save=$ac_clean_files
22620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22621 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22622 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22623 cat >$CONFIG_STATUS <<_ACEOF
22624 #! $SHELL
22625 # Generated by $as_me.
22626 # Run this file to recreate the current configuration.
22627 # Compiler output produced by configure, useful for debugging
22628 # configure, is in config.log if it exists.
22630 debug=false
22631 ac_cs_recheck=false
22632 ac_cs_silent=false
22633 SHELL=\${CONFIG_SHELL-$SHELL}
22634 _ACEOF
22636 cat >>$CONFIG_STATUS <<\_ACEOF
22637 ## --------------------- ##
22638 ## M4sh Initialization. ##
22639 ## --------------------- ##
22641 # Be Bourne compatible
22642 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22643 emulate sh
22644 NULLCMD=:
22645 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22646 # is contrary to our usage. Disable this feature.
22647 alias -g '${1+"$@"}'='"$@"'
22648 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22649 set -o posix
22651 DUALCASE=1; export DUALCASE # for MKS sh
22653 # Support unset when possible.
22654 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22655 as_unset=unset
22656 else
22657 as_unset=false
22661 # Work around bugs in pre-3.0 UWIN ksh.
22662 $as_unset ENV MAIL MAILPATH
22663 PS1='$ '
22664 PS2='> '
22665 PS4='+ '
22667 # NLS nuisances.
22668 for as_var in \
22669 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22670 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22671 LC_TELEPHONE LC_TIME
22673 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22674 eval $as_var=C; export $as_var
22675 else
22676 $as_unset $as_var
22678 done
22680 # Required to use basename.
22681 if expr a : '\(a\)' >/dev/null 2>&1; then
22682 as_expr=expr
22683 else
22684 as_expr=false
22687 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22688 as_basename=basename
22689 else
22690 as_basename=false
22694 # Name of the executable.
22695 as_me=`$as_basename "$0" ||
22696 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22697 X"$0" : 'X\(//\)$' \| \
22698 X"$0" : 'X\(/\)$' \| \
22699 . : '\(.\)' 2>/dev/null ||
22700 echo X/"$0" |
22701 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22702 /^X\/\(\/\/\)$/{ s//\1/; q; }
22703 /^X\/\(\/\).*/{ s//\1/; q; }
22704 s/.*/./; q'`
22707 # PATH needs CR, and LINENO needs CR and PATH.
22708 # Avoid depending upon Character Ranges.
22709 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22710 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22711 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22712 as_cr_digits='0123456789'
22713 as_cr_alnum=$as_cr_Letters$as_cr_digits
22715 # The user is always right.
22716 if test "${PATH_SEPARATOR+set}" != set; then
22717 echo "#! /bin/sh" >conf$$.sh
22718 echo "exit 0" >>conf$$.sh
22719 chmod +x conf$$.sh
22720 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22721 PATH_SEPARATOR=';'
22722 else
22723 PATH_SEPARATOR=:
22725 rm -f conf$$.sh
22729 as_lineno_1=$LINENO
22730 as_lineno_2=$LINENO
22731 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22732 test "x$as_lineno_1" != "x$as_lineno_2" &&
22733 test "x$as_lineno_3" = "x$as_lineno_2" || {
22734 # Find who we are. Look in the path if we contain no path at all
22735 # relative or not.
22736 case $0 in
22737 *[\\/]* ) as_myself=$0 ;;
22738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22739 for as_dir in $PATH
22741 IFS=$as_save_IFS
22742 test -z "$as_dir" && as_dir=.
22743 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22744 done
22747 esac
22748 # We did not find ourselves, most probably we were run as `sh COMMAND'
22749 # in which case we are not to be found in the path.
22750 if test "x$as_myself" = x; then
22751 as_myself=$0
22753 if test ! -f "$as_myself"; then
22754 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22755 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22756 { (exit 1); exit 1; }; }
22758 case $CONFIG_SHELL in
22760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22761 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22763 IFS=$as_save_IFS
22764 test -z "$as_dir" && as_dir=.
22765 for as_base in sh bash ksh sh5; do
22766 case $as_dir in
22768 if ("$as_dir/$as_base" -c '
22769 as_lineno_1=$LINENO
22770 as_lineno_2=$LINENO
22771 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22772 test "x$as_lineno_1" != "x$as_lineno_2" &&
22773 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22774 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22775 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22776 CONFIG_SHELL=$as_dir/$as_base
22777 export CONFIG_SHELL
22778 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22779 fi;;
22780 esac
22781 done
22782 done
22784 esac
22786 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22787 # uniformly replaced by the line number. The first 'sed' inserts a
22788 # line-number line before each line; the second 'sed' does the real
22789 # work. The second script uses 'N' to pair each line-number line
22790 # with the numbered line, and appends trailing '-' during
22791 # substitution so that $LINENO is not a special case at line end.
22792 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22793 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22794 sed '=' <$as_myself |
22795 sed '
22797 s,$,-,
22798 : loop
22799 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22800 t loop
22801 s,-$,,
22802 s,^['$as_cr_digits']*\n,,
22803 ' >$as_me.lineno &&
22804 chmod +x $as_me.lineno ||
22805 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22806 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22807 { (exit 1); exit 1; }; }
22809 # Don't try to exec as it changes $[0], causing all sort of problems
22810 # (the dirname of $[0] is not the place where we might find the
22811 # original and so on. Autoconf is especially sensible to this).
22812 . ./$as_me.lineno
22813 # Exit status is that of the last command.
22814 exit
22818 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22819 *c*,-n*) ECHO_N= ECHO_C='
22820 ' ECHO_T=' ' ;;
22821 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22822 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22823 esac
22825 if expr a : '\(a\)' >/dev/null 2>&1; then
22826 as_expr=expr
22827 else
22828 as_expr=false
22831 rm -f conf$$ conf$$.exe conf$$.file
22832 echo >conf$$.file
22833 if ln -s conf$$.file conf$$ 2>/dev/null; then
22834 # We could just check for DJGPP; but this test a) works b) is more generic
22835 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22836 if test -f conf$$.exe; then
22837 # Don't use ln at all; we don't have any links
22838 as_ln_s='cp -p'
22839 else
22840 as_ln_s='ln -s'
22842 elif ln conf$$.file conf$$ 2>/dev/null; then
22843 as_ln_s=ln
22844 else
22845 as_ln_s='cp -p'
22847 rm -f conf$$ conf$$.exe conf$$.file
22849 if mkdir -p . 2>/dev/null; then
22850 as_mkdir_p=:
22851 else
22852 test -d ./-p && rmdir ./-p
22853 as_mkdir_p=false
22856 as_executable_p="test -f"
22858 # Sed expression to map a string onto a valid CPP name.
22859 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22861 # Sed expression to map a string onto a valid variable name.
22862 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22865 # IFS
22866 # We need space, tab and new line, in precisely that order.
22867 as_nl='
22869 IFS=" $as_nl"
22871 # CDPATH.
22872 $as_unset CDPATH
22874 exec 6>&1
22876 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22877 # report actual input values of CONFIG_FILES etc. instead of their
22878 # values after options handling. Logging --version etc. is OK.
22879 exec 5>>config.log
22881 echo
22882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22883 ## Running $as_me. ##
22884 _ASBOX
22885 } >&5
22886 cat >&5 <<_CSEOF
22888 This file was extended by $as_me, which was
22889 generated by GNU Autoconf 2.59. Invocation command line was
22891 CONFIG_FILES = $CONFIG_FILES
22892 CONFIG_HEADERS = $CONFIG_HEADERS
22893 CONFIG_LINKS = $CONFIG_LINKS
22894 CONFIG_COMMANDS = $CONFIG_COMMANDS
22895 $ $0 $@
22897 _CSEOF
22898 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22899 echo >&5
22900 _ACEOF
22902 # Files that config.status was made for.
22903 if test -n "$ac_config_files"; then
22904 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22907 if test -n "$ac_config_headers"; then
22908 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22911 if test -n "$ac_config_links"; then
22912 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22915 if test -n "$ac_config_commands"; then
22916 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22919 cat >>$CONFIG_STATUS <<\_ACEOF
22921 ac_cs_usage="\
22922 \`$as_me' instantiates files from templates according to the
22923 current configuration.
22925 Usage: $0 [OPTIONS] [FILE]...
22927 -h, --help print this help, then exit
22928 -V, --version print version number, then exit
22929 -q, --quiet do not print progress messages
22930 -d, --debug don't remove temporary files
22931 --recheck update $as_me by reconfiguring in the same conditions
22932 --file=FILE[:TEMPLATE]
22933 instantiate the configuration file FILE
22934 --header=FILE[:TEMPLATE]
22935 instantiate the configuration header FILE
22937 Configuration files:
22938 $config_files
22940 Configuration headers:
22941 $config_headers
22943 Configuration commands:
22944 $config_commands
22946 Report bugs to <bug-autoconf@gnu.org>."
22947 _ACEOF
22949 cat >>$CONFIG_STATUS <<_ACEOF
22950 ac_cs_version="\\
22951 config.status
22952 configured by $0, generated by GNU Autoconf 2.59,
22953 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22955 Copyright (C) 2003 Free Software Foundation, Inc.
22956 This config.status script is free software; the Free Software Foundation
22957 gives unlimited permission to copy, distribute and modify it."
22958 srcdir=$srcdir
22959 INSTALL="$INSTALL"
22960 _ACEOF
22962 cat >>$CONFIG_STATUS <<\_ACEOF
22963 # If no file are specified by the user, then we need to provide default
22964 # value. By we need to know if files were specified by the user.
22965 ac_need_defaults=:
22966 while test $# != 0
22968 case $1 in
22969 --*=*)
22970 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22971 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22972 ac_shift=:
22975 ac_option=$1
22976 ac_optarg=$2
22977 ac_shift=shift
22979 *) # This is not an option, so the user has probably given explicit
22980 # arguments.
22981 ac_option=$1
22982 ac_need_defaults=false;;
22983 esac
22985 case $ac_option in
22986 # Handling of the options.
22987 _ACEOF
22988 cat >>$CONFIG_STATUS <<\_ACEOF
22989 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22990 ac_cs_recheck=: ;;
22991 --version | --vers* | -V )
22992 echo "$ac_cs_version"; exit 0 ;;
22993 --he | --h)
22994 # Conflict between --help and --header
22995 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22996 Try \`$0 --help' for more information." >&5
22997 echo "$as_me: error: ambiguous option: $1
22998 Try \`$0 --help' for more information." >&2;}
22999 { (exit 1); exit 1; }; };;
23000 --help | --hel | -h )
23001 echo "$ac_cs_usage"; exit 0 ;;
23002 --debug | --d* | -d )
23003 debug=: ;;
23004 --file | --fil | --fi | --f )
23005 $ac_shift
23006 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23007 ac_need_defaults=false;;
23008 --header | --heade | --head | --hea )
23009 $ac_shift
23010 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23011 ac_need_defaults=false;;
23012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23013 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23014 ac_cs_silent=: ;;
23016 # This is an error.
23017 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23018 Try \`$0 --help' for more information." >&5
23019 echo "$as_me: error: unrecognized option: $1
23020 Try \`$0 --help' for more information." >&2;}
23021 { (exit 1); exit 1; }; } ;;
23023 *) ac_config_targets="$ac_config_targets $1" ;;
23025 esac
23026 shift
23027 done
23029 ac_configure_extra_args=
23031 if $ac_cs_silent; then
23032 exec 6>/dev/null
23033 ac_configure_extra_args="$ac_configure_extra_args --silent"
23036 _ACEOF
23037 cat >>$CONFIG_STATUS <<_ACEOF
23038 if \$ac_cs_recheck; then
23039 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23040 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23043 _ACEOF
23045 cat >>$CONFIG_STATUS <<_ACEOF
23047 # INIT-COMMANDS section.
23050 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23052 _ACEOF
23056 cat >>$CONFIG_STATUS <<\_ACEOF
23057 for ac_config_target in $ac_config_targets
23059 case "$ac_config_target" in
23060 # Handling of arguments.
23061 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23062 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23063 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23064 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23065 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23066 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23067 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23068 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23069 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23070 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23071 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23072 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23073 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23074 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23075 { (exit 1); exit 1; }; };;
23076 esac
23077 done
23079 # If the user did not use the arguments to specify the items to instantiate,
23080 # then the envvar interface is used. Set only those that are not.
23081 # We use the long form for the default assignment because of an extremely
23082 # bizarre bug on SunOS 4.1.3.
23083 if $ac_need_defaults; then
23084 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23085 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23086 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23089 # Have a temporary directory for convenience. Make it in the build tree
23090 # simply because there is no reason to put it here, and in addition,
23091 # creating and moving files from /tmp can sometimes cause problems.
23092 # Create a temporary directory, and hook for its removal unless debugging.
23093 $debug ||
23095 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23096 trap '{ (exit 1); exit 1; }' 1 2 13 15
23099 # Create a (secure) tmp directory for tmp files.
23102 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23103 test -n "$tmp" && test -d "$tmp"
23104 } ||
23106 tmp=./confstat$$-$RANDOM
23107 (umask 077 && mkdir $tmp)
23108 } ||
23110 echo "$me: cannot create a temporary directory in ." >&2
23111 { (exit 1); exit 1; }
23114 _ACEOF
23116 cat >>$CONFIG_STATUS <<_ACEOF
23119 # CONFIG_FILES section.
23122 # No need to generate the scripts if there are no CONFIG_FILES.
23123 # This happens for instance when ./config.status config.h
23124 if test -n "\$CONFIG_FILES"; then
23125 # Protect against being on the right side of a sed subst in config.status.
23126 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23127 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23128 s,@SHELL@,$SHELL,;t t
23129 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23130 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23131 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23132 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23133 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23134 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23135 s,@exec_prefix@,$exec_prefix,;t t
23136 s,@prefix@,$prefix,;t t
23137 s,@program_transform_name@,$program_transform_name,;t t
23138 s,@bindir@,$bindir,;t t
23139 s,@sbindir@,$sbindir,;t t
23140 s,@libexecdir@,$libexecdir,;t t
23141 s,@datadir@,$datadir,;t t
23142 s,@sysconfdir@,$sysconfdir,;t t
23143 s,@sharedstatedir@,$sharedstatedir,;t t
23144 s,@localstatedir@,$localstatedir,;t t
23145 s,@libdir@,$libdir,;t t
23146 s,@includedir@,$includedir,;t t
23147 s,@oldincludedir@,$oldincludedir,;t t
23148 s,@infodir@,$infodir,;t t
23149 s,@mandir@,$mandir,;t t
23150 s,@build_alias@,$build_alias,;t t
23151 s,@host_alias@,$host_alias,;t t
23152 s,@target_alias@,$target_alias,;t t
23153 s,@DEFS@,$DEFS,;t t
23154 s,@ECHO_C@,$ECHO_C,;t t
23155 s,@ECHO_N@,$ECHO_N,;t t
23156 s,@ECHO_T@,$ECHO_T,;t t
23157 s,@LIBS@,$LIBS,;t t
23158 s,@MAINT@,$MAINT,;t t
23159 s,@build@,$build,;t t
23160 s,@build_cpu@,$build_cpu,;t t
23161 s,@build_vendor@,$build_vendor,;t t
23162 s,@build_os@,$build_os,;t t
23163 s,@host@,$host,;t t
23164 s,@host_cpu@,$host_cpu,;t t
23165 s,@host_vendor@,$host_vendor,;t t
23166 s,@host_os@,$host_os,;t t
23167 s,@CC@,$CC,;t t
23168 s,@CFLAGS@,$CFLAGS,;t t
23169 s,@LDFLAGS@,$LDFLAGS,;t t
23170 s,@CPPFLAGS@,$CPPFLAGS,;t t
23171 s,@ac_ct_CC@,$ac_ct_CC,;t t
23172 s,@EXEEXT@,$EXEEXT,;t t
23173 s,@OBJEXT@,$OBJEXT,;t t
23174 s,@LN_S@,$LN_S,;t t
23175 s,@CPP@,$CPP,;t t
23176 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23177 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23178 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23179 s,@RANLIB@,$RANLIB,;t t
23180 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23181 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23182 s,@GZIP_PROG@,$GZIP_PROG,;t t
23183 s,@EGREP@,$EGREP,;t t
23184 s,@LIBSOUND@,$LIBSOUND,;t t
23185 s,@SET_MAKE@,$SET_MAKE,;t t
23186 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23187 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23188 s,@GTK_LIBS@,$GTK_LIBS,;t t
23189 s,@ALLOCA@,$ALLOCA,;t t
23190 s,@liblockfile@,$liblockfile,;t t
23191 s,@LIBOBJS@,$LIBOBJS,;t t
23192 s,@NEED_SETGID@,$NEED_SETGID,;t t
23193 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23194 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23195 s,@GETOPT_H@,$GETOPT_H,;t t
23196 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23197 s,@version@,$version,;t t
23198 s,@configuration@,$configuration,;t t
23199 s,@canonical@,$canonical,;t t
23200 s,@srcdir@,$srcdir,;t t
23201 s,@lispdir@,$lispdir,;t t
23202 s,@locallisppath@,$locallisppath,;t t
23203 s,@lisppath@,$lisppath,;t t
23204 s,@x_default_search_path@,$x_default_search_path,;t t
23205 s,@etcdir@,$etcdir,;t t
23206 s,@archlibdir@,$archlibdir,;t t
23207 s,@docdir@,$docdir,;t t
23208 s,@bitmapdir@,$bitmapdir,;t t
23209 s,@gamedir@,$gamedir,;t t
23210 s,@gameuser@,$gameuser,;t t
23211 s,@c_switch_system@,$c_switch_system,;t t
23212 s,@c_switch_machine@,$c_switch_machine,;t t
23213 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23214 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23215 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23216 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23217 s,@machfile@,$machfile,;t t
23218 s,@opsysfile@,$opsysfile,;t t
23219 s,@carbon_appdir@,$carbon_appdir,;t t
23220 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23221 CEOF
23223 _ACEOF
23225 cat >>$CONFIG_STATUS <<\_ACEOF
23226 # Split the substitutions into bite-sized pieces for seds with
23227 # small command number limits, like on Digital OSF/1 and HP-UX.
23228 ac_max_sed_lines=48
23229 ac_sed_frag=1 # Number of current file.
23230 ac_beg=1 # First line for current file.
23231 ac_end=$ac_max_sed_lines # Line after last line for current file.
23232 ac_more_lines=:
23233 ac_sed_cmds=
23234 while $ac_more_lines; do
23235 if test $ac_beg -gt 1; then
23236 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23237 else
23238 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23240 if test ! -s $tmp/subs.frag; then
23241 ac_more_lines=false
23242 else
23243 # The purpose of the label and of the branching condition is to
23244 # speed up the sed processing (if there are no `@' at all, there
23245 # is no need to browse any of the substitutions).
23246 # These are the two extra sed commands mentioned above.
23247 (echo ':t
23248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23249 if test -z "$ac_sed_cmds"; then
23250 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23251 else
23252 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23254 ac_sed_frag=`expr $ac_sed_frag + 1`
23255 ac_beg=$ac_end
23256 ac_end=`expr $ac_end + $ac_max_sed_lines`
23258 done
23259 if test -z "$ac_sed_cmds"; then
23260 ac_sed_cmds=cat
23262 fi # test -n "$CONFIG_FILES"
23264 _ACEOF
23265 cat >>$CONFIG_STATUS <<\_ACEOF
23266 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23267 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23268 case $ac_file in
23269 - | *:- | *:-:* ) # input from stdin
23270 cat >$tmp/stdin
23271 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23272 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23273 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23274 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23275 * ) ac_file_in=$ac_file.in ;;
23276 esac
23278 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23279 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23280 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23281 X"$ac_file" : 'X\(//\)[^/]' \| \
23282 X"$ac_file" : 'X\(//\)$' \| \
23283 X"$ac_file" : 'X\(/\)' \| \
23284 . : '\(.\)' 2>/dev/null ||
23285 echo X"$ac_file" |
23286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23288 /^X\(\/\/\)$/{ s//\1/; q; }
23289 /^X\(\/\).*/{ s//\1/; q; }
23290 s/.*/./; q'`
23291 { if $as_mkdir_p; then
23292 mkdir -p "$ac_dir"
23293 else
23294 as_dir="$ac_dir"
23295 as_dirs=
23296 while test ! -d "$as_dir"; do
23297 as_dirs="$as_dir $as_dirs"
23298 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23300 X"$as_dir" : 'X\(//\)[^/]' \| \
23301 X"$as_dir" : 'X\(//\)$' \| \
23302 X"$as_dir" : 'X\(/\)' \| \
23303 . : '\(.\)' 2>/dev/null ||
23304 echo X"$as_dir" |
23305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23307 /^X\(\/\/\)$/{ s//\1/; q; }
23308 /^X\(\/\).*/{ s//\1/; q; }
23309 s/.*/./; q'`
23310 done
23311 test ! -n "$as_dirs" || mkdir $as_dirs
23312 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23313 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23314 { (exit 1); exit 1; }; }; }
23316 ac_builddir=.
23318 if test "$ac_dir" != .; then
23319 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23320 # A "../" for each directory in $ac_dir_suffix.
23321 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23322 else
23323 ac_dir_suffix= ac_top_builddir=
23326 case $srcdir in
23327 .) # No --srcdir option. We are building in place.
23328 ac_srcdir=.
23329 if test -z "$ac_top_builddir"; then
23330 ac_top_srcdir=.
23331 else
23332 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23333 fi ;;
23334 [\\/]* | ?:[\\/]* ) # Absolute path.
23335 ac_srcdir=$srcdir$ac_dir_suffix;
23336 ac_top_srcdir=$srcdir ;;
23337 *) # Relative path.
23338 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23339 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23340 esac
23342 # Do not use `cd foo && pwd` to compute absolute paths, because
23343 # the directories may not exist.
23344 case `pwd` in
23345 .) ac_abs_builddir="$ac_dir";;
23347 case "$ac_dir" in
23348 .) ac_abs_builddir=`pwd`;;
23349 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23350 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23351 esac;;
23352 esac
23353 case $ac_abs_builddir in
23354 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23356 case ${ac_top_builddir}. in
23357 .) ac_abs_top_builddir=$ac_abs_builddir;;
23358 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23359 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23360 esac;;
23361 esac
23362 case $ac_abs_builddir in
23363 .) ac_abs_srcdir=$ac_srcdir;;
23365 case $ac_srcdir in
23366 .) ac_abs_srcdir=$ac_abs_builddir;;
23367 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23368 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23369 esac;;
23370 esac
23371 case $ac_abs_builddir in
23372 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23374 case $ac_top_srcdir in
23375 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23376 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23377 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23378 esac;;
23379 esac
23382 case $INSTALL in
23383 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23384 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23385 esac
23387 # Let's still pretend it is `configure' which instantiates (i.e., don't
23388 # use $as_me), people would be surprised to read:
23389 # /* config.h. Generated by config.status. */
23390 if test x"$ac_file" = x-; then
23391 configure_input=
23392 else
23393 configure_input="$ac_file. "
23395 configure_input=$configure_input"Generated from `echo $ac_file_in |
23396 sed 's,.*/,,'` by configure."
23398 # First look for the input files in the build tree, otherwise in the
23399 # src tree.
23400 ac_file_inputs=`IFS=:
23401 for f in $ac_file_in; do
23402 case $f in
23403 -) echo $tmp/stdin ;;
23404 [\\/$]*)
23405 # Absolute (can't be DOS-style, as IFS=:)
23406 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23407 echo "$as_me: error: cannot find input file: $f" >&2;}
23408 { (exit 1); exit 1; }; }
23409 echo "$f";;
23410 *) # Relative
23411 if test -f "$f"; then
23412 # Build tree
23413 echo "$f"
23414 elif test -f "$srcdir/$f"; then
23415 # Source tree
23416 echo "$srcdir/$f"
23417 else
23418 # /dev/null tree
23419 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23420 echo "$as_me: error: cannot find input file: $f" >&2;}
23421 { (exit 1); exit 1; }; }
23422 fi;;
23423 esac
23424 done` || { (exit 1); exit 1; }
23426 if test x"$ac_file" != x-; then
23427 { echo "$as_me:$LINENO: creating $ac_file" >&5
23428 echo "$as_me: creating $ac_file" >&6;}
23429 rm -f "$ac_file"
23431 _ACEOF
23432 cat >>$CONFIG_STATUS <<_ACEOF
23433 sed "$ac_vpsub
23434 $extrasub
23435 _ACEOF
23436 cat >>$CONFIG_STATUS <<\_ACEOF
23438 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23439 s,@configure_input@,$configure_input,;t t
23440 s,@srcdir@,$ac_srcdir,;t t
23441 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23442 s,@top_srcdir@,$ac_top_srcdir,;t t
23443 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23444 s,@builddir@,$ac_builddir,;t t
23445 s,@abs_builddir@,$ac_abs_builddir,;t t
23446 s,@top_builddir@,$ac_top_builddir,;t t
23447 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23448 s,@INSTALL@,$ac_INSTALL,;t t
23449 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23450 rm -f $tmp/stdin
23451 if test x"$ac_file" != x-; then
23452 mv $tmp/out $ac_file
23453 else
23454 cat $tmp/out
23455 rm -f $tmp/out
23458 done
23459 _ACEOF
23460 cat >>$CONFIG_STATUS <<\_ACEOF
23463 # CONFIG_HEADER section.
23466 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23467 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23469 # ac_d sets the value in "#define NAME VALUE" lines.
23470 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23471 ac_dB='[ ].*$,\1#\2'
23472 ac_dC=' '
23473 ac_dD=',;t'
23474 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23475 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23476 ac_uB='$,\1#\2define\3'
23477 ac_uC=' '
23478 ac_uD=',;t'
23480 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23481 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23482 case $ac_file in
23483 - | *:- | *:-:* ) # input from stdin
23484 cat >$tmp/stdin
23485 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23486 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23487 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23488 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23489 * ) ac_file_in=$ac_file.in ;;
23490 esac
23492 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23493 echo "$as_me: creating $ac_file" >&6;}
23495 # First look for the input files in the build tree, otherwise in the
23496 # src tree.
23497 ac_file_inputs=`IFS=:
23498 for f in $ac_file_in; do
23499 case $f in
23500 -) echo $tmp/stdin ;;
23501 [\\/$]*)
23502 # Absolute (can't be DOS-style, as IFS=:)
23503 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23504 echo "$as_me: error: cannot find input file: $f" >&2;}
23505 { (exit 1); exit 1; }; }
23506 # Do quote $f, to prevent DOS paths from being IFS'd.
23507 echo "$f";;
23508 *) # Relative
23509 if test -f "$f"; then
23510 # Build tree
23511 echo "$f"
23512 elif test -f "$srcdir/$f"; then
23513 # Source tree
23514 echo "$srcdir/$f"
23515 else
23516 # /dev/null tree
23517 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23518 echo "$as_me: error: cannot find input file: $f" >&2;}
23519 { (exit 1); exit 1; }; }
23520 fi;;
23521 esac
23522 done` || { (exit 1); exit 1; }
23523 # Remove the trailing spaces.
23524 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23526 _ACEOF
23528 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23529 # `conftest.undefs', that substitutes the proper values into
23530 # config.h.in to produce config.h. The first handles `#define'
23531 # templates, and the second `#undef' templates.
23532 # And first: Protect against being on the right side of a sed subst in
23533 # config.status. Protect against being in an unquoted here document
23534 # in config.status.
23535 rm -f conftest.defines conftest.undefs
23536 # Using a here document instead of a string reduces the quoting nightmare.
23537 # Putting comments in sed scripts is not portable.
23539 # `end' is used to avoid that the second main sed command (meant for
23540 # 0-ary CPP macros) applies to n-ary macro definitions.
23541 # See the Autoconf documentation for `clear'.
23542 cat >confdef2sed.sed <<\_ACEOF
23543 s/[\\&,]/\\&/g
23544 s,[\\$`],\\&,g
23545 t clear
23546 : clear
23547 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23548 t end
23549 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23550 : end
23551 _ACEOF
23552 # If some macros were called several times there might be several times
23553 # the same #defines, which is useless. Nevertheless, we may not want to
23554 # sort them, since we want the *last* AC-DEFINE to be honored.
23555 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23556 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23557 rm -f confdef2sed.sed
23559 # This sed command replaces #undef with comments. This is necessary, for
23560 # example, in the case of _POSIX_SOURCE, which is predefined and required
23561 # on some systems where configure will not decide to define it.
23562 cat >>conftest.undefs <<\_ACEOF
23563 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23564 _ACEOF
23566 # Break up conftest.defines because some shells have a limit on the size
23567 # of here documents, and old seds have small limits too (100 cmds).
23568 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23569 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23570 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23571 echo ' :' >>$CONFIG_STATUS
23572 rm -f conftest.tail
23573 while grep . conftest.defines >/dev/null
23575 # Write a limited-size here document to $tmp/defines.sed.
23576 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23577 # Speed up: don't consider the non `#define' lines.
23578 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23579 # Work around the forget-to-reset-the-flag bug.
23580 echo 't clr' >>$CONFIG_STATUS
23581 echo ': clr' >>$CONFIG_STATUS
23582 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23583 echo 'CEOF
23584 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23585 rm -f $tmp/in
23586 mv $tmp/out $tmp/in
23587 ' >>$CONFIG_STATUS
23588 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23589 rm -f conftest.defines
23590 mv conftest.tail conftest.defines
23591 done
23592 rm -f conftest.defines
23593 echo ' fi # grep' >>$CONFIG_STATUS
23594 echo >>$CONFIG_STATUS
23596 # Break up conftest.undefs because some shells have a limit on the size
23597 # of here documents, and old seds have small limits too (100 cmds).
23598 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23599 rm -f conftest.tail
23600 while grep . conftest.undefs >/dev/null
23602 # Write a limited-size here document to $tmp/undefs.sed.
23603 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23604 # Speed up: don't consider the non `#undef'
23605 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23606 # Work around the forget-to-reset-the-flag bug.
23607 echo 't clr' >>$CONFIG_STATUS
23608 echo ': clr' >>$CONFIG_STATUS
23609 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23610 echo 'CEOF
23611 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23612 rm -f $tmp/in
23613 mv $tmp/out $tmp/in
23614 ' >>$CONFIG_STATUS
23615 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23616 rm -f conftest.undefs
23617 mv conftest.tail conftest.undefs
23618 done
23619 rm -f conftest.undefs
23621 cat >>$CONFIG_STATUS <<\_ACEOF
23622 # Let's still pretend it is `configure' which instantiates (i.e., don't
23623 # use $as_me), people would be surprised to read:
23624 # /* config.h. Generated by config.status. */
23625 if test x"$ac_file" = x-; then
23626 echo "/* Generated by configure. */" >$tmp/config.h
23627 else
23628 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23630 cat $tmp/in >>$tmp/config.h
23631 rm -f $tmp/in
23632 if test x"$ac_file" != x-; then
23633 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23634 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23635 echo "$as_me: $ac_file is unchanged" >&6;}
23636 else
23637 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23638 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23639 X"$ac_file" : 'X\(//\)[^/]' \| \
23640 X"$ac_file" : 'X\(//\)$' \| \
23641 X"$ac_file" : 'X\(/\)' \| \
23642 . : '\(.\)' 2>/dev/null ||
23643 echo X"$ac_file" |
23644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23645 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23646 /^X\(\/\/\)$/{ s//\1/; q; }
23647 /^X\(\/\).*/{ s//\1/; q; }
23648 s/.*/./; q'`
23649 { if $as_mkdir_p; then
23650 mkdir -p "$ac_dir"
23651 else
23652 as_dir="$ac_dir"
23653 as_dirs=
23654 while test ! -d "$as_dir"; do
23655 as_dirs="$as_dir $as_dirs"
23656 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23658 X"$as_dir" : 'X\(//\)[^/]' \| \
23659 X"$as_dir" : 'X\(//\)$' \| \
23660 X"$as_dir" : 'X\(/\)' \| \
23661 . : '\(.\)' 2>/dev/null ||
23662 echo X"$as_dir" |
23663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23665 /^X\(\/\/\)$/{ s//\1/; q; }
23666 /^X\(\/\).*/{ s//\1/; q; }
23667 s/.*/./; q'`
23668 done
23669 test ! -n "$as_dirs" || mkdir $as_dirs
23670 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23671 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23672 { (exit 1); exit 1; }; }; }
23674 rm -f $ac_file
23675 mv $tmp/config.h $ac_file
23677 else
23678 cat $tmp/config.h
23679 rm -f $tmp/config.h
23681 done
23682 _ACEOF
23683 cat >>$CONFIG_STATUS <<\_ACEOF
23686 # CONFIG_COMMANDS section.
23688 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23689 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23690 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23691 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23692 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23693 X"$ac_dest" : 'X\(//\)[^/]' \| \
23694 X"$ac_dest" : 'X\(//\)$' \| \
23695 X"$ac_dest" : 'X\(/\)' \| \
23696 . : '\(.\)' 2>/dev/null ||
23697 echo X"$ac_dest" |
23698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23700 /^X\(\/\/\)$/{ s//\1/; q; }
23701 /^X\(\/\).*/{ s//\1/; q; }
23702 s/.*/./; q'`
23703 { if $as_mkdir_p; then
23704 mkdir -p "$ac_dir"
23705 else
23706 as_dir="$ac_dir"
23707 as_dirs=
23708 while test ! -d "$as_dir"; do
23709 as_dirs="$as_dir $as_dirs"
23710 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23712 X"$as_dir" : 'X\(//\)[^/]' \| \
23713 X"$as_dir" : 'X\(//\)$' \| \
23714 X"$as_dir" : 'X\(/\)' \| \
23715 . : '\(.\)' 2>/dev/null ||
23716 echo X"$as_dir" |
23717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23719 /^X\(\/\/\)$/{ s//\1/; q; }
23720 /^X\(\/\).*/{ s//\1/; q; }
23721 s/.*/./; q'`
23722 done
23723 test ! -n "$as_dirs" || mkdir $as_dirs
23724 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23725 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23726 { (exit 1); exit 1; }; }; }
23728 ac_builddir=.
23730 if test "$ac_dir" != .; then
23731 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23732 # A "../" for each directory in $ac_dir_suffix.
23733 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23734 else
23735 ac_dir_suffix= ac_top_builddir=
23738 case $srcdir in
23739 .) # No --srcdir option. We are building in place.
23740 ac_srcdir=.
23741 if test -z "$ac_top_builddir"; then
23742 ac_top_srcdir=.
23743 else
23744 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23745 fi ;;
23746 [\\/]* | ?:[\\/]* ) # Absolute path.
23747 ac_srcdir=$srcdir$ac_dir_suffix;
23748 ac_top_srcdir=$srcdir ;;
23749 *) # Relative path.
23750 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23751 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23752 esac
23754 # Do not use `cd foo && pwd` to compute absolute paths, because
23755 # the directories may not exist.
23756 case `pwd` in
23757 .) ac_abs_builddir="$ac_dir";;
23759 case "$ac_dir" in
23760 .) ac_abs_builddir=`pwd`;;
23761 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23762 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23763 esac;;
23764 esac
23765 case $ac_abs_builddir in
23766 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23768 case ${ac_top_builddir}. in
23769 .) ac_abs_top_builddir=$ac_abs_builddir;;
23770 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23771 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23772 esac;;
23773 esac
23774 case $ac_abs_builddir in
23775 .) ac_abs_srcdir=$ac_srcdir;;
23777 case $ac_srcdir in
23778 .) ac_abs_srcdir=$ac_abs_builddir;;
23779 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23780 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23781 esac;;
23782 esac
23783 case $ac_abs_builddir in
23784 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23786 case $ac_top_srcdir in
23787 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23788 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23789 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23790 esac;;
23791 esac
23794 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23795 echo "$as_me: executing $ac_dest commands" >&6;}
23796 case $ac_dest in
23797 default )
23799 ### Make the necessary directories, if they don't exist.
23800 for dir in etc lisp ; do
23801 test -d ${dir} || mkdir ${dir}
23802 done
23804 # Build src/Makefile from ${srcdir}/src/Makefile.c
23805 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23806 # This must be done after src/config.h is built, since we rely on that file.
23808 # Now get this: Some word that is part of the ${srcdir} directory name
23809 # or the ${configuration} value might, just might, happen to be an
23810 # identifier like `sun4' or `i386' or something, and be predefined by
23811 # the C preprocessor to some helpful value like 1, or maybe the empty
23812 # string. Needless to say consequent macro substitutions are less
23813 # than conducive to the makefile finding the correct directory.
23814 undefs="`echo $top_srcdir $configuration $canonical |
23815 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23816 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23819 echo creating src/epaths.h
23820 ${MAKE-make} epaths-force
23822 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23823 # `..' to `. .' unless invoked with -traditional
23825 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23826 CPPFLAGS="$CPPFLAGS -traditional"
23829 echo creating lib-src/Makefile
23830 ( cd lib-src
23831 rm -f junk.c junk1.c junk2.c
23832 sed -e '/start of cpp stuff/q' \
23833 < Makefile.c > junk1.c
23834 sed -e '1,/start of cpp stuff/d'\
23835 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23836 < Makefile.c > junk.c
23837 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23838 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23839 cat junk1.c junk2.c > Makefile.new
23840 rm -f junk.c junk1.c junk2.c
23841 chmod 444 Makefile.new
23842 mv -f Makefile.new Makefile
23845 echo creating src/Makefile
23846 ( cd src
23847 rm -f junk.c junk1.c junk2.c
23848 sed -e '/start of cpp stuff/q' \
23849 < Makefile.c > junk1.c
23850 sed -e '1,/start of cpp stuff/d'\
23851 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23852 < Makefile.c > junk.c
23853 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23854 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23855 cat junk1.c junk2.c > Makefile.new
23856 rm -f junk.c junk1.c junk2.c
23857 chmod 444 Makefile.new
23858 mv -f Makefile.new Makefile
23861 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23862 echo creating src/.gdbinit
23863 echo source $srcdir/src/.gdbinit > src/.gdbinit
23866 # This is how we know whether to re-run configure in certain cases.
23867 touch src/config.stamp
23870 esac
23871 done
23872 _ACEOF
23874 cat >>$CONFIG_STATUS <<\_ACEOF
23876 { (exit 0); exit 0; }
23877 _ACEOF
23878 chmod +x $CONFIG_STATUS
23879 ac_clean_files=$ac_clean_files_save
23882 # configure is writing to config.log, and then calls config.status.
23883 # config.status does its own redirection, appending to config.log.
23884 # Unfortunately, on DOS this fails, as config.log is still kept open
23885 # by configure, so config.status won't be able to write to it; its
23886 # output is simply discarded. So we exec the FD to /dev/null,
23887 # effectively closing config.log, so it can be properly (re)opened and
23888 # appended to by config.status. When coming back to configure, we
23889 # need to make the FD available again.
23890 if test "$no_create" != yes; then
23891 ac_cs_success=:
23892 ac_config_status_args=
23893 test "$silent" = yes &&
23894 ac_config_status_args="$ac_config_status_args --quiet"
23895 exec 5>/dev/null
23896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23897 exec 5>>config.log
23898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23899 # would make configure fail if this is the last instruction.
23900 $ac_cs_success || { (exit 1); exit 1; }