*** empty log message ***
[emacs.git] / configure
blobe80559cce4dbb0060c2476e92426045b725497a3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
850 if test -n "$ac_init_help"; then
852 cat <<\_ACEOF
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --disable-largefile omit support for large files
863 Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-gcc don't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version 5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server host
871 --without-sound don't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
887 Some influential environment variables:
888 CC C compiler command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891 nonstandard directory <lib dir>
892 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893 headers in a nonstandard directory <include dir>
894 CPP C preprocessor
896 Use these variables to override the choices made by `configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
899 _ACEOF
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 cd "$ac_popdir"
988 done
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
998 _ACEOF
999 exit 0
1001 exec 5>config.log
1002 cat >&5 <<_ACEOF
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1009 $ $0 $@
1011 _ACEOF
1013 cat <<_ASUNAME
1014 ## --------- ##
1015 ## Platform. ##
1016 ## --------- ##
1018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1027 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1028 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1031 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1032 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1033 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035 _ASUNAME
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 for as_dir in $PATH
1040 IFS=$as_save_IFS
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1043 done
1045 } >&5
1047 cat >&5 <<_ACEOF
1050 ## ----------- ##
1051 ## Core tests. ##
1052 ## ----------- ##
1054 _ACEOF
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_configure_args=
1063 ac_configure_args0=
1064 ac_configure_args1=
1065 ac_sep=
1066 ac_must_keep_next=false
1067 for ac_pass in 1 2
1069 for ac_arg
1071 case $ac_arg in
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 continue ;;
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 esac
1079 case $ac_pass in
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1085 else
1086 case $ac_arg in
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 esac
1095 -* ) ac_must_keep_next=true ;;
1096 esac
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1100 ac_sep=" "
1102 esac
1103 done
1104 done
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close' the trap.
1113 trap 'exit_status=$?
1114 # Save into config.log some information that might help in debugging.
1116 echo
1118 cat <<\_ASBOX
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1122 _ASBOX
1123 echo
1124 # The following way of writing the cache mishandles newlines in values,
1126 (set) 2>&1 |
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 *ac_space=\ *)
1129 sed -n \
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 sed -n \
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 esac;
1139 echo
1141 cat <<\_ASBOX
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1145 _ASBOX
1146 echo
1147 for ac_var in $ac_subst_vars
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1154 if test -n "$ac_subst_files"; then
1155 cat <<\_ASBOX
1156 ## ------------- ##
1157 ## Output files. ##
1158 ## ------------- ##
1159 _ASBOX
1160 echo
1161 for ac_var in $ac_subst_files
1163 eval ac_val=$`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1165 done | sort
1166 echo
1169 if test -s confdefs.h; then
1170 cat <<\_ASBOX
1171 ## ----------- ##
1172 ## confdefs.h. ##
1173 ## ----------- ##
1174 _ASBOX
1175 echo
1176 sed "/^$/d" confdefs.h | sort
1177 echo
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1182 } >&5
1183 rm -f core *.core &&
1184 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 exit $exit_status
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 done
1190 ac_signal=0
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 echo >confdefs.h
1197 # Predefined preprocessor variables.
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 _ACEOF
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 _ACEOF
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 _ACEOF
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 else
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's/^/| /' "$ac_site_file" >&5
1238 . "$ac_site_file"
1240 done
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1248 case $cache_file in
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1251 esac
1253 else
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1256 >$cache_file
1259 # Check that the precious variables saved in the cache have kept the same
1260 # value.
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1269 set,)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,set)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,);;
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1281 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1287 fi;;
1288 esac
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1291 case $ac_new_val in
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1295 esac
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 esac
1301 done
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1306 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1310 ac_ext=c
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it if useless.
1344 cat <<\_ACEOF >conftest.sed
1345 s/[\\$]/&&/g;s/;s,x,x,$//
1346 _ACEOF
1347 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1348 rm conftest.sed
1351 lispdir='${datadir}/emacs/${version}/lisp'
1352 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath='${locallisppath}:${lispdir}'
1355 etcdir='${datadir}/emacs/${version}/etc'
1356 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir='${datadir}/emacs/${version}/etc'
1358 gamedir='${localstatedir}/games/emacs'
1360 gameuser=games
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1365 withval="$with_gcc"
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1371 withval="$with_pop"
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h <<\_ACEOF
1374 #define MAIL_USE_POP 1
1375 _ACEOF
1377 else :
1379 else
1380 cat >>confdefs.h <<\_ACEOF
1381 #define MAIL_USE_POP 1
1382 _ACEOF
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval="$with_kerberos"
1390 cat >>confdefs.h <<\_ACEOF
1391 #define KERBEROS 1
1392 _ACEOF
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1402 with_kerberos=yes
1403 cat >>confdefs.h <<\_ACEOF
1404 #define KERBEROS 1
1405 _ACEOF
1410 cat >>confdefs.h <<\_ACEOF
1411 #define KERBEROS5 1
1412 _ACEOF
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval="$with_hesiod"
1420 cat >>confdefs.h <<\_ACEOF
1421 #define HESIOD 1
1422 _ACEOF
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval="$with_sound"
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye | yes ) val=athena ;;
1439 n | no ) val=no ;;
1440 l | lu | luc | luci | lucid ) val=lucid ;;
1441 a | at | ath | athe | athen | athena ) val=athena ;;
1442 m | mo | mot | moti | motif ) val=motif ;;
1443 g | gt | gtk ) val=gtk ;;
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1453 esac
1454 with_x_toolkit=$val
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1460 withval="$with_xpm"
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval="$with_jpeg"
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval="$with_tiff"
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1478 withval="$with_gif"
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1484 withval="$with_png"
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1490 withval="$with_gtk"
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval="$with_pkg_config_prog"
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval="$with_toolkit_scroll_bars"
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1508 withval="$with_xim"
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval="$with_carbon"
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval="$enable_carbon_app"
1520 carbon_appdir_x=${enableval}
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE=$enableval
1527 else
1528 USE_MAINTAINER_MODE=no
1530 if test $USE_MAINTAINER_MODE = yes; then
1531 MAINT=
1532 else
1533 MAINT=#
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1542 unset CDPATH
1543 case "${srcdir}" in
1544 /* ) ;;
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1552 then
1553 srcdir="$PWD"
1554 else
1555 srcdir="`(cd ${srcdir}; pwd)`"
1558 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1559 esac
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1578 #### Given the configuration name, set machfile and opsysfile to the
1579 #### names of the m/*.h and s/*.h files we should use.
1581 ### Canonicalize the configuration name.
1583 ac_aux_dir=
1584 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1585 if test -f $ac_dir/install-sh; then
1586 ac_aux_dir=$ac_dir
1587 ac_install_sh="$ac_aux_dir/install-sh -c"
1588 break
1589 elif test -f $ac_dir/install.sh; then
1590 ac_aux_dir=$ac_dir
1591 ac_install_sh="$ac_aux_dir/install.sh -c"
1592 break
1593 elif test -f $ac_dir/shtool; then
1594 ac_aux_dir=$ac_dir
1595 ac_install_sh="$ac_aux_dir/shtool install -c"
1596 break
1598 done
1599 if test -z "$ac_aux_dir"; then
1600 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1601 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1602 { (exit 1); exit 1; }; }
1604 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1605 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1606 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619 ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1634 build=$ac_cv_build
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645 ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1656 host=$ac_cv_host
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 canonical=$host
1663 configuration=${host_alias-$host}
1667 ### If you add support for a new configuration, add code to this
1668 ### switch statement to recognize your configuration name and select
1669 ### the appropriate operating system and machine description files.
1671 ### You would hope that you could choose an m/*.h file pretty much
1672 ### based on the machine portion of the configuration name, and an s-
1673 ### file based on the operating system portion. However, it turns out
1674 ### that each m/*.h file is pretty manufacturer-specific - for
1675 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1676 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1677 ### machines. So we basically have to have a special case for each
1678 ### configuration name.
1680 ### As far as handling version numbers on operating systems is
1681 ### concerned, make sure things will fail in a fixable way. If
1682 ### /etc/MACHINES doesn't say anything about version numbers, be
1683 ### prepared to handle anything reasonably. If version numbers
1684 ### matter, be sure /etc/MACHINES says something about it.
1686 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1687 ### "System V Release 4"; he writes, "The old convention encouraged
1688 ### confusion between `system' and `release' levels'."
1690 machine='' opsys='' unported=no
1691 case "${canonical}" in
1693 ## FreeBSD ports
1694 *-*-freebsd* )
1695 opsys=freebsd
1696 case "${canonical}" in
1697 alpha*-*-freebsd*) machine=alpha ;;
1698 i[3456]86-*-freebsd*) machine=intel386 ;;
1699 esac
1702 ## NetBSD ports
1703 *-*-netbsd* )
1704 opsys=netbsd
1705 if test -f /usr/lib/crti.o; then
1707 cat >>confdefs.h <<\_ACEOF
1708 #define HAVE_CRTIN
1709 _ACEOF
1713 case "${canonical}" in
1714 alpha*-*-netbsd*) machine=alpha ;;
1715 i[3456]86-*-netbsd*) machine=intel386 ;;
1716 m68k-*-netbsd*)
1717 # This is somewhat bogus.
1718 machine=hp9000s300 ;;
1719 powerpc-apple-netbsd*) machine=macppc ;;
1720 mips-*-netbsd*) machine=pmax ;;
1721 mipsel-*-netbsd*) machine=pmax ;;
1722 mipseb-*-netbsd*) machine=pmax ;;
1723 ns32k-*-netbsd*) machine=ns32000 ;;
1724 powerpc-*-netbsd*) machine=macppc ;;
1725 sparc*-*-netbsd*) machine=sparc ;;
1726 vax-*-netbsd*) machine=vax ;;
1727 arm-*-netbsd*) machine=arm ;;
1728 esac
1731 ## OpenBSD ports
1732 *-*-openbsd* )
1733 opsys=openbsd
1734 case "${canonical}" in
1735 alpha*-*-openbsd*) machine=alpha ;;
1736 i386-*-openbsd*) machine=intel386 ;;
1737 m68k-*-openbsd*) machine=hp9000s300 ;;
1738 mipsel-*-openbsd*) machine=pmax ;;
1739 ns32k-*-openbsd*) machine=ns32000 ;;
1740 sparc-*-openbsd*) machine=sparc ;;
1741 vax-*-openbsd*) machine=vax ;;
1742 esac
1745 ## Acorn RISCiX:
1746 arm-acorn-riscix1.1* )
1747 machine=acorn opsys=riscix1-1
1749 arm-acorn-riscix1.2* | arm-acorn-riscix )
1750 ## This name is riscix12 instead of riscix1.2
1751 ## to avoid a file name conflict on MSDOS.
1752 machine=acorn opsys=riscix12
1755 ## BSDI ports
1756 *-*-bsdi* )
1757 opsys=bsdi
1758 case "${canonical}" in
1759 i[345]86-*-bsdi*) machine=intel386 ;;
1760 sparc-*-bsdi*) machine=sparc ;;
1761 powerpc-*-bsdi*) machine=macppc ;;
1762 esac
1763 case "${canonical}" in
1764 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1765 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1766 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1767 *-*-bsdi3* ) opsys=bsdos3 ;;
1768 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1769 esac
1772 ## Alliant machines
1773 ## Strictly speaking, we need the version of the alliant operating
1774 ## system to choose the right machine file, but currently the
1775 ## configuration name doesn't tell us enough to choose the right
1776 ## one; we need to give alliants their own operating system name to
1777 ## do this right. When someone cares, they can help us.
1778 fx80-alliant-* )
1779 machine=alliant4 opsys=bsd4-2
1781 i860-alliant-* )
1782 machine=alliant-2800 opsys=bsd4-3
1785 ## Alpha (DEC) machines.
1786 alpha*-dec-osf* )
1787 machine=alpha opsys=osf1
1788 # This is needed to find X11R6.1 libraries for certain tests.
1789 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1790 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1791 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1792 # due to non-traditional preprocessing with the current compiler
1793 # defaults. OSF 4 can also have that compiler version, and there
1794 # seems always to have been a usable /usr/bin/cpp.
1795 NON_GNU_CPP=/usr/bin/cpp
1796 case "${canonical}" in
1797 alpha*-dec-osf[5-9]*)
1798 opsys=osf5-0 ;;
1799 esac
1802 alpha*-*-linux-gnu* )
1803 machine=alpha opsys=gnu-linux
1806 arm*-*-linux-gnu* )
1807 machine=arm opsys=gnu-linux
1810 ppc-*-linux | \
1811 powerpc-*-linux* )
1812 machine=macppc opsys=gnu-linux
1815 ## Altos 3068
1816 m68*-altos-sysv* )
1817 machine=altos opsys=usg5-2
1820 ## Amdahl UTS
1821 580-amdahl-sysv* )
1822 machine=amdahl opsys=usg5-2-2
1825 ## Apollo, Domain/OS
1826 m68*-apollo-* )
1827 machine=apollo opsys=bsd4-3
1830 ## AT&T 3b2, 3b5, 3b15, 3b20
1831 we32k-att-sysv* )
1832 machine=att3b opsys=usg5-2-2
1835 ## AT&T 3b1 - The Mighty Unix PC!
1836 m68*-att-sysv* )
1837 machine=7300 opsys=usg5-2-2
1840 ## Bull dpx20
1841 rs6000-bull-bosx* )
1842 machine=ibmrs6000 opsys=aix3-2
1845 ## Bull dpx2
1846 m68*-bull-sysv3* )
1847 machine=dpx2 opsys=usg5-3
1850 ## Bull sps7
1851 m68*-bull-sysv2* )
1852 machine=sps7 opsys=usg5-2
1855 ## CCI 5/32, 6/32 -- see "Tahoe".
1857 ## Celerity
1858 ## I don't know what configuration name to use for this; config.sub
1859 ## doesn't seem to know anything about it. Hey, Celerity users, get
1860 ## in touch with us!
1861 celerity-celerity-bsd* )
1862 machine=celerity opsys=bsd4-2
1865 ## Clipper
1866 ## What operating systems does this chip run that Emacs has been
1867 ## tested on?
1868 clipper-* )
1869 machine=clipper
1870 ## We'll use the catch-all code at the bottom to guess the
1871 ## operating system.
1874 ## Compaq Nonstop
1875 mips-compaq-nonstopux* )
1876 machine=nonstopux opsys=nonstopux
1879 ## Convex
1880 *-convex-bsd* | *-convex-convexos* )
1881 machine=convex opsys=bsd4-3
1882 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1883 NON_GNU_CPP="cc -E -P"
1886 ## Cubix QBx/386
1887 i[3456]86-cubix-sysv* )
1888 machine=intel386 opsys=usg5-3
1891 ## Cydra 5
1892 cydra*-cydrome-sysv* )
1893 machine=cydra5 opsys=usg5-3
1896 ## Data General AViiON Machines
1897 ## DG changed naming conventions with the release of 5.4.4.10, they
1898 ## dropped the initial 5.4 but left the intervening R. Because of the
1899 ## R this shouldn't conflict with older versions of the OS (which I
1900 ## think were named like dgux4.*). In addition, DG new AViiONs series
1901 ## uses either Motorola M88k or Intel Pentium CPUs.
1902 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1903 machine=aviion opsys=dgux4
1905 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1906 ## This name is dgux5-4-3 instead of dgux5-4r3
1907 ## to avoid a file name conflict on MSDOS.
1908 machine=aviion opsys=dgux5-4-3
1910 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1911 machine=aviion opsys=dgux5-4r2
1913 m88k-dg-dgux* )
1914 machine=aviion opsys=dgux
1917 ## Data General AViiON Intel (x86) Machines
1918 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1919 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1920 i[345]86-dg-dguxR4* )
1921 machine=aviion-intel opsys=dgux4
1924 ## DECstations
1925 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1926 machine=pmax opsys=bsd4-2
1928 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1929 machine=pmax opsys=bsd4-3
1931 mips-dec-ultrix* )
1932 machine=pmax opsys=ultrix4-3
1934 mips-dec-osf* )
1935 machine=pmax opsys=osf1
1937 mips-dec-mach_bsd4.3* )
1938 machine=pmax opsys=mach-bsd4-3
1941 ## Motorola Delta machines
1942 m68k-motorola-sysv* | m68000-motorola-sysv* )
1943 machine=delta opsys=usg5-3
1944 if test -z "`type gnucc | grep 'not found'`"
1945 then
1946 if test -s /etc/167config
1947 then CC="gnucc -m68040"
1948 else CC="gnucc -m68881"
1950 else
1951 if test -z "`type gcc | grep 'not found'`"
1952 then CC=gcc
1953 else CC=cc
1957 m88k-motorola-sysv4* )
1958 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1959 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1960 # I hope there are not other 4.0 versions for this machine
1961 # which really need usg5-4 instead.
1962 machine=delta88k opsys=usg5-4-2
1964 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1965 machine=delta88k opsys=usg5-3
1968 ## Dual machines
1969 m68*-dual-sysv* )
1970 machine=dual opsys=usg5-2
1972 m68*-dual-uniplus* )
1973 machine=dual opsys=unipl5-2
1976 ## Elxsi 6400
1977 elxsi-elxsi-sysv* )
1978 machine=elxsi opsys=usg5-2
1981 ## Encore machines
1982 ns16k-encore-bsd* )
1983 machine=ns16000 opsys=umax
1986 ## The GEC 63 - apparently, this port isn't really finished yet.
1987 # I'm sure we finished off the last of the machines, though. -- fx
1989 ## Gould Power Node and NP1
1990 pn-gould-bsd4.2* )
1991 machine=gould opsys=bsd4-2
1993 pn-gould-bsd4.3* )
1994 machine=gould opsys=bsd4-3
1996 np1-gould-bsd* )
1997 machine=gould-np1 opsys=bsd4-3
2000 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2001 ## as far as Emacs is concerned).
2002 m88k-harris-cxux* )
2003 # Build needs to be different on 7.0 and later releases
2004 case "`uname -r`" in
2005 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2006 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2007 esac
2008 NON_GNU_CPP="/lib/cpp"
2010 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2011 m68k-harris-cxux* )
2012 machine=nh3000 opsys=cxux
2014 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2015 powerpc-harris-powerunix )
2016 machine=nh6000 opsys=powerunix
2017 NON_GNU_CPP="cc -Xo -E -P"
2019 ## SR2001/SR2201 running HI-UX/MPP
2020 hppa1.1-hitachi-hiuxmpp* )
2021 machine=sr2k opsys=hiuxmpp
2023 hppa1.1-hitachi-hiuxwe2* )
2024 machine=sr2k opsys=hiuxwe2
2026 ## Honeywell XPS100
2027 xps*-honeywell-sysv* )
2028 machine=xps100 opsys=usg5-2
2031 ## HP 9000 series 200 or 300
2032 m68*-hp-bsd* )
2033 machine=hp9000s300 opsys=bsd4-3
2035 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2036 m68*-hp-hpux* )
2037 case "`uname -r`" in
2038 ## Someone's system reports A.B8.05 for this.
2039 ## I wonder what other possibilities there are.
2040 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2041 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2042 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2043 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2044 *) machine=hp9000s300 opsys=hpux ;;
2045 esac
2048 ## HP 9000 series 700 and 800, running HP/UX
2049 hppa*-hp-hpux7* )
2050 machine=hp800 opsys=hpux
2052 hppa*-hp-hpux8* )
2053 machine=hp800 opsys=hpux8
2055 hppa*-hp-hpux9shr* )
2056 machine=hp800 opsys=hpux9shr
2058 hppa*-hp-hpux9* )
2059 machine=hp800 opsys=hpux9
2061 hppa*-hp-hpux10.2* )
2062 machine=hp800 opsys=hpux10-20
2064 hppa*-hp-hpux10* )
2065 machine=hp800 opsys=hpux10
2067 hppa*-hp-hpux1[1-9]* )
2068 machine=hp800 opsys=hpux11
2071 hppa*-*-linux-gnu* )
2072 machine=hp800 opsys=gnu-linux
2075 ## HP 9000 series 700 and 800, running HP/UX
2076 hppa*-hp-hpux* )
2077 ## Cross-compilation? Nah!
2078 case "`uname -r`" in
2079 ## Someone's system reports A.B8.05 for this.
2080 ## I wonder what other possibilities there are.
2081 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2082 *.08.* ) machine=hp800 opsys=hpux8 ;;
2083 *.09.* ) machine=hp800 opsys=hpux9 ;;
2084 *) machine=hp800 opsys=hpux10 ;;
2085 esac
2087 hppa*-*-nextstep* )
2088 machine=hp800 opsys=nextstep
2091 ## Orion machines
2092 orion-orion-bsd* )
2093 machine=orion opsys=bsd4-2
2095 clipper-orion-bsd* )
2096 machine=orion105 opsys=bsd4-2
2099 ## IBM machines
2100 i[3456]86-ibm-aix1.1* )
2101 machine=ibmps2-aix opsys=usg5-2-2
2103 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2104 machine=ibmps2-aix opsys=usg5-3
2106 i370-ibm-aix*)
2107 machine=ibm370aix opsys=usg5-3
2109 s390-*-linux-gnu* )
2110 machine=ibms390 opsys=gnu-linux
2112 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2113 machine=ibmrs6000 opsys=aix3-1
2115 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2116 machine=ibmrs6000 opsys=aix3-2-5
2118 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2119 machine=ibmrs6000 opsys=aix4-1
2121 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2122 machine=ibmrs6000 opsys=aix4-2
2124 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2125 machine=ibmrs6000 opsys=aix4-2
2127 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2128 machine=ibmrs6000 opsys=aix4
2130 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2131 machine=ibmrs6000 opsys=aix4-1
2133 rs6000-ibm-aix* | powerpc-ibm-aix* )
2134 machine=ibmrs6000 opsys=aix3-2
2136 romp-ibm-bsd4.3* )
2137 machine=ibmrt opsys=bsd4-3
2139 romp-ibm-bsd4.2* )
2140 machine=ibmrt opsys=bsd4-2
2142 romp-ibm-aos4.3* )
2143 machine=ibmrt opsys=bsd4-3
2145 romp-ibm-aos4.2* )
2146 machine=ibmrt opsys=bsd4-2
2148 romp-ibm-aos* )
2149 machine=ibmrt opsys=bsd4-3
2151 romp-ibm-bsd* )
2152 machine=ibmrt opsys=bsd4-3
2154 romp-ibm-aix* )
2155 machine=ibmrt-aix opsys=usg5-2-2
2158 ## Integrated Solutions `Optimum V'
2159 m68*-isi-bsd4.2* )
2160 machine=isi-ov opsys=bsd4-2
2162 m68*-isi-bsd4.3* )
2163 machine=isi-ov opsys=bsd4-3
2166 ## Intel 386 machines where we do care about the manufacturer
2167 i[3456]86-intsys-sysv* )
2168 machine=is386 opsys=usg5-2-2
2171 ## Prime EXL
2172 i[3456]86-prime-sysv* )
2173 machine=i386 opsys=usg5-3
2176 ## Sequent Symmetry running Dynix
2177 i[3456]86-sequent-bsd* )
2178 machine=symmetry opsys=bsd4-3
2181 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2182 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2183 machine=sequent-ptx opsys=ptx4
2184 NON_GNU_CPP=/lib/cpp
2187 ## Sequent Symmetry running DYNIX/ptx
2188 ## Use the old cpp rather than the newer ANSI one.
2189 i[3456]86-sequent-ptx* )
2190 machine=sequent-ptx opsys=ptx
2191 NON_GNU_CPP="/lib/cpp"
2194 ## ncr machine running svr4.3.
2195 i[3456]86-ncr-sysv4.3 )
2196 machine=ncr386 opsys=usg5-4-3
2199 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2200 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2201 i[3456]86-ncr-sysv* )
2202 machine=ncr386 opsys=usg5-4-2
2205 ## Intel Paragon OSF/1
2206 i860-intel-osf1* )
2207 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2210 ## Intel 860
2211 i860-*-sysv4* )
2212 machine=i860 opsys=usg5-4
2213 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2214 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2217 ## Macintosh PowerPC
2218 powerpc*-*-linux-gnu* )
2219 machine=macppc opsys=gnu-linux
2222 ## Masscomp machines
2223 m68*-masscomp-rtu* )
2224 machine=masscomp opsys=rtu
2227 ## Megatest machines
2228 m68*-megatest-bsd* )
2229 machine=mega68 opsys=bsd4-2
2232 ## Workstations sold by MIPS
2233 ## This is not necessarily all workstations using the MIPS processor -
2234 ## Irises are produced by SGI, and DECstations by DEC.
2236 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2237 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2238 ## it gives for choosing between the alternatives seems to be "Use
2239 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2240 ## the BSD world." I'll assume that these are instructions for
2241 ## handling two odd situations, and that every other situation
2242 ## should use mips.h and usg5-2-2, they being listed first.
2243 mips-mips-usg* )
2244 machine=mips4
2245 ## Fall through to the general code at the bottom to decide on the OS.
2247 mips-mips-riscos4* )
2248 machine=mips4 opsys=bsd4-3
2249 NON_GNU_CC="cc -systype bsd43"
2250 NON_GNU_CPP="cc -systype bsd43 -E"
2252 mips-mips-riscos5* )
2253 machine=mips4 opsys=riscos5
2254 NON_GNU_CC="cc -systype bsd43"
2255 NON_GNU_CPP="cc -systype bsd43 -E"
2257 mips-mips-bsd* )
2258 machine=mips opsys=bsd4-3
2260 mips-mips-* )
2261 machine=mips opsys=usg5-2-2
2264 ## NeXT
2265 m68*-next-* | m68k-*-nextstep* )
2266 machine=m68k opsys=nextstep
2269 ## The complete machine from National Semiconductor
2270 ns32k-ns-genix* )
2271 machine=ns32000 opsys=usg5-2
2274 ## NCR machines
2275 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2276 machine=tower32 opsys=usg5-2-2
2278 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2279 machine=tower32v3 opsys=usg5-3
2282 ## NEC EWS4800
2283 mips-nec-sysv4*)
2284 machine=ews4800 opsys=ux4800
2287 ## Nixdorf Targon 31
2288 m68*-nixdorf-sysv* )
2289 machine=targon31 opsys=usg5-2-2
2292 ## Nu (TI or LMI)
2293 m68*-nu-sysv* )
2294 machine=nu opsys=usg5-2
2297 ## Plexus
2298 m68*-plexus-sysv* )
2299 machine=plexus opsys=usg5-2
2302 ## Pyramid machines
2303 ## I don't really have any idea what sort of processor the Pyramid has,
2304 ## so I'm assuming it is its own architecture.
2305 pyramid-pyramid-bsd* )
2306 machine=pyramid opsys=bsd4-2
2309 ## Sequent Balance
2310 ns32k-sequent-bsd4.2* )
2311 machine=sequent opsys=bsd4-2
2313 ns32k-sequent-bsd4.3* )
2314 machine=sequent opsys=bsd4-3
2317 ## Siemens Nixdorf
2318 mips-siemens-sysv* | mips-sni-sysv*)
2319 machine=mips-siemens opsys=usg5-4
2320 NON_GNU_CC=/usr/ccs/bin/cc
2321 NON_GNU_CPP=/usr/ccs/lib/cpp
2324 ## Silicon Graphics machines
2325 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2326 m68*-sgi-iris3.5* )
2327 machine=irist opsys=iris3-5
2329 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2330 machine=irist opsys=iris3-6
2332 ## Iris 4D
2333 mips-sgi-irix3* )
2334 machine=iris4d opsys=irix3-3
2336 mips-sgi-irix4* )
2337 machine=iris4d opsys=irix4-0
2339 mips-sgi-irix6.5 )
2340 machine=iris4d opsys=irix6-5
2341 # Without defining _LANGUAGE_C, things get masked out in the headers
2342 # so that, for instance, grepping for `free' in stdlib.h fails and
2343 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2344 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2345 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2347 mips-sgi-irix6* )
2348 machine=iris4d opsys=irix6-0
2349 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2350 # but presumably it does no harm.
2351 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2352 # -32 probably isn't necessary in later v.6s -- anyone know which?
2353 NON_GCC_TEST_OPTIONS=-32
2355 mips-sgi-irix5.[01]* )
2356 machine=iris4d opsys=irix5-0
2358 mips-sgi-irix5* | mips-sgi-irix* )
2359 machine=iris4d opsys=irix5-2
2362 ## SONY machines
2363 m68*-sony-bsd4.2* )
2364 machine=news opsys=bsd4-2
2366 m68*-sony-bsd4.3* )
2367 machine=news opsys=bsd4-3
2369 m68*-sony-newsos3* | m68*-sony-news3*)
2370 machine=news opsys=bsd4-3
2372 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2373 machine=news-risc opsys=bsd4-3
2375 mips-sony-newsos6* )
2376 machine=news-r6 opsys=newsos6
2378 mips-sony-news* )
2379 machine=news-risc opsys=newsos5
2382 ## Stride
2383 m68*-stride-sysv* )
2384 machine=stride opsys=usg5-2
2387 ## Suns
2388 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2389 machine=sparc opsys=gnu-linux
2392 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2393 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2394 | rs6000-*-solaris2*)
2395 case "${canonical}" in
2396 m68*-sunos1* ) machine=sun1 ;;
2397 m68*-sunos2* ) machine=sun2 ;;
2398 m68* ) machine=sun3 ;;
2399 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2400 i[3456]86-*-* ) machine=intel386 ;;
2401 powerpcle* ) machine=powerpcle ;;
2402 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2403 sparc* ) machine=sparc ;;
2404 * ) unported=yes ;;
2405 esac
2406 case "${canonical}" in
2407 ## The Sun386 didn't get past 4.0.
2408 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2409 *-sunos4.0* ) opsys=sunos4-0 ;;
2410 *-sunos4.1.[3-9]*noshare )
2411 ## This name is sunos413 instead of sunos4-1-3
2412 ## to avoid a file name conflict on MSDOS.
2413 opsys=sunos413
2414 NON_GNU_CPP=/usr/lib/cpp
2415 NON_GCC_TEST_OPTIONS=-Bstatic
2416 GCC_TEST_OPTIONS=-static
2418 *-sunos4.1.[3-9]* | *-sunos4shr*)
2419 opsys=sunos4shr
2420 NON_GNU_CPP=/usr/lib/cpp
2422 *-sunos4* | *-sunos )
2423 opsys=sunos4-1
2424 NON_GCC_TEST_OPTIONS=-Bstatic
2425 GCC_TEST_OPTIONS=-static
2427 *-sunos5.3* | *-solaris2.3* )
2428 opsys=sol2-3
2429 NON_GNU_CPP=/usr/ccs/lib/cpp
2431 *-sunos5.4* | *-solaris2.4* )
2432 opsys=sol2-4
2433 NON_GNU_CPP=/usr/ccs/lib/cpp
2434 RANLIB="ar -ts"
2436 *-sunos5.5* | *-solaris2.5* )
2437 opsys=sol2-5
2438 NON_GNU_CPP=/usr/ccs/lib/cpp
2439 RANLIB="ar -ts"
2441 *-sunos5.6* | *-solaris2.6* )
2442 opsys=sol2-6
2443 NON_GNU_CPP=/usr/ccs/lib/cpp
2444 RANLIB="ar -ts"
2446 *-sunos5* | *-solaris* )
2447 opsys=sol2-6
2448 NON_GNU_CPP=/usr/ccs/lib/cpp
2450 * ) opsys=bsd4-2 ;;
2451 esac
2452 ## Watch out for a compiler that we know will not work.
2453 case "${canonical}" in
2454 *-solaris* | *-sunos5* )
2455 if [ "x$CC" = x/usr/ucb/cc ]; then
2456 ## /usr/ucb/cc doesn't work;
2457 ## we should find some other compiler that does work.
2458 unset CC
2461 *) ;;
2462 esac
2464 sparc-*-nextstep* )
2465 machine=sparc opsys=nextstep
2468 ## Tadpole 68k
2469 m68*-tadpole-sysv* )
2470 machine=tad68k opsys=usg5-3
2473 ## Tahoe machines
2474 tahoe-tahoe-bsd4.2* )
2475 machine=tahoe opsys=bsd4-2
2477 tahoe-tahoe-bsd4.3* )
2478 machine=tahoe opsys=bsd4-3
2481 ## Tandem Integrity S2
2482 mips-tandem-sysv* )
2483 machine=tandem-s2 opsys=usg5-3
2486 ## Tektronix XD88
2487 m88k-tektronix-sysv3* )
2488 machine=tekxd88 opsys=usg5-3
2491 ## Tektronix 16000 box (6130?)
2492 ns16k-tektronix-bsd* )
2493 machine=ns16000 opsys=bsd4-2
2495 ## Tektronix 4300
2496 ## src/m/tek4300.h hints that this is a m68k machine.
2497 m68*-tektronix-bsd* )
2498 machine=tek4300 opsys=bsd4-3
2501 ## Titan P2 or P3
2502 ## We seem to have lost the machine-description file titan.h!
2503 titan-titan-sysv* )
2504 machine=titan opsys=usg5-3
2507 ## Ustation E30 (SS5E)
2508 m68*-unisys-uniplus* )
2509 machine=ustation opsystem=unipl5-2
2512 ## Vaxen.
2513 vax-dec-* )
2514 machine=vax
2515 case "${canonical}" in
2516 *-bsd4.1* ) opsys=bsd4-1 ;;
2517 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2518 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2519 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2520 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2521 *-vms* ) opsys=vms ;;
2522 * ) unported=yes
2523 esac
2526 ## Whitechapel MG1
2527 ns16k-whitechapel-* )
2528 machine=mg1
2529 ## We don't know what sort of OS runs on these; we'll let the
2530 ## operating system guessing code below try.
2533 ## Wicat
2534 m68*-wicat-sysv* )
2535 machine=wicat opsys=usg5-2
2538 ## IA-64
2539 ia64*-*-linux* )
2540 machine=ia64 opsys=gnu-linux
2543 ## Intel 386 machines where we don't care about the manufacturer
2544 i[3456]86-*-* )
2545 machine=intel386
2546 case "${canonical}" in
2547 *-cygwin ) opsys=cygwin ;;
2548 *-lynxos* ) opsys=lynxos ;;
2549 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2550 *-isc2.2* ) opsys=isc2-2 ;;
2551 *-isc4.0* ) opsys=isc4-0 ;;
2552 *-isc4.* ) opsys=isc4-1
2553 GCC_TEST_OPTIONS=-posix
2554 NON_GCC_TEST_OPTIONS=-Xp
2556 *-isc* ) opsys=isc3-0 ;;
2557 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2558 *-esix* ) opsys=esix ;;
2559 *-xenix* ) opsys=xenix ;;
2560 *-linux-gnu* ) opsys=gnu-linux ;;
2561 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2562 *-sco3.2v5* ) opsys=sco5
2563 NON_GNU_CPP=/lib/cpp
2564 # Prevent -belf from being passed to $CPP.
2565 # /lib/cpp does not accept it.
2566 OVERRIDE_CPPFLAGS=" "
2568 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2569 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2570 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2571 *-386bsd* ) opsys=386bsd ;;
2572 *-nextstep* ) opsys=nextstep ;;
2573 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2574 esac
2577 ## m68k Linux-based GNU system
2578 m68k-*-linux-gnu* )
2579 machine=m68k opsys=gnu-linux
2582 ## Mips Linux-based GNU system
2583 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2584 machine=mips opsys=gnu-linux
2587 ## UXP/DS
2588 sparc-fujitsu-sysv4* )
2589 machine=sparc opsys=uxpds
2590 NON_GNU_CPP=/usr/ccs/lib/cpp
2591 RANLIB="ar -ts"
2594 ## UXP/V
2595 f301-fujitsu-uxpv4.1)
2596 machine=f301 opsys=uxpv
2599 ## Darwin / Mac OS X
2600 powerpc-apple-darwin* )
2601 machine=powermac opsys=darwin
2602 # Define CPP as follows to make autoconf work correctly.
2603 CPP="${CC-cc} -E -no-cpp-precomp"
2604 # Use fink packages if available.
2605 if test -d /sw/include && test -d /sw/lib; then
2606 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2607 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2608 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2612 ## AMD x86-64 Linux-based GNU system
2613 x86_64-*-linux-gnu* )
2614 machine=amdx86-64 opsys=gnu-linux
2618 unported=yes
2620 esac
2622 ### If the code above didn't choose an operating system, just choose
2623 ### an operating system based on the configuration name. You really
2624 ### only want to use this when you have no idea what the right
2625 ### operating system is; if you know what operating systems a machine
2626 ### runs, it's cleaner to make it explicit in the case statement
2627 ### above.
2628 if test x"${opsys}" = x; then
2629 case "${canonical}" in
2630 *-gnu* ) opsys=gnu ;;
2631 *-bsd4.[01] ) opsys=bsd4-1 ;;
2632 *-bsd4.2 ) opsys=bsd4-2 ;;
2633 *-bsd4.3 ) opsys=bsd4-3 ;;
2634 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2635 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2636 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2637 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2638 *-sysv4.2uw* ) opsys=unixware ;;
2639 *-sysv5uw* ) opsys=unixware ;;
2640 *-sysv5OpenUNIX* ) opsys=unixware ;;
2641 *-sysv4.1* | *-sysvr4.1* )
2642 NON_GNU_CPP=/usr/lib/cpp
2643 opsys=usg5-4 ;;
2644 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2645 if [ x$NON_GNU_CPP = x ]; then
2646 if [ -f /usr/ccs/lib/cpp ]; then
2647 NON_GNU_CPP=/usr/ccs/lib/cpp
2648 else
2649 NON_GNU_CPP=/lib/cpp
2652 opsys=usg5-4-2 ;;
2653 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2655 unported=yes
2657 esac
2662 if test $unported = yes; then
2663 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2664 Check \`etc/MACHINES' for recognized configuration names." >&5
2665 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2666 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2667 { (exit 1); exit 1; }; }
2670 machfile="m/${machine}.h"
2671 opsysfile="s/${opsys}.h"
2674 #### Choose a compiler.
2675 test -n "$CC" && cc_specified=yes
2677 # Save the value of CFLAGS that the user specified.
2678 SPECIFIED_CFLAGS="$CFLAGS"
2680 case ${with_gcc} in
2681 "yes" ) CC="gcc" GCC=yes ;;
2682 "no" ) : ${CC=cc} ;;
2684 esac
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2712 done
2713 done
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719 echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2721 else
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2727 if test -z "$ac_cv_prog_CC"; then
2728 ac_ct_CC=$CC
2729 # Extract the first word of "gcc", so it can be a program name with args.
2730 set dummy gcc; ac_word=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC="gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2750 done
2751 done
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6
2759 else
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2764 CC=$ac_ct_CC
2765 else
2766 CC="$ac_cv_prog_CC"
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}cc; ac_word=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_CC="${ac_tool_prefix}cc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2792 done
2793 done
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6
2801 else
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2807 if test -z "$ac_cv_prog_CC"; then
2808 ac_ct_CC=$CC
2809 # Extract the first word of "cc", so it can be a program name with args.
2810 set dummy cc; ac_word=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC="cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2830 done
2831 done
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6
2839 else
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2844 CC=$ac_ct_CC
2845 else
2846 CC="$ac_cv_prog_CC"
2850 if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc; ac_word=$2
2853 echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861 ac_prog_rejected=no
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected=yes
2871 continue
2873 ac_cv_prog_CC="cc"
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2877 done
2878 done
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy $ac_cv_prog_CC
2883 shift
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2888 shift
2889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896 echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6
2898 else
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2906 for ac_prog in cl
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2929 done
2930 done
2934 CC=$ac_cv_prog_CC
2935 if test -n "$CC"; then
2936 echo "$as_me:$LINENO: result: $CC" >&5
2937 echo "${ECHO_T}$CC" >&6
2938 else
2939 echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6
2943 test -n "$CC" && break
2944 done
2946 if test -z "$CC"; then
2947 ac_ct_CC=$CC
2948 for ac_prog in cl
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_ac_ct_CC="$ac_prog"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2971 done
2972 done
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6
2980 else
2981 echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2985 test -n "$ac_ct_CC" && break
2986 done
2988 CC=$ac_ct_CC
2994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: no acceptable C compiler found in \$PATH
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
3000 # Provide some information about the compiler.
3001 echo "$as_me:$LINENO:" \
3002 "checking for C compiler version" >&5
3003 ac_compiler=`set X $ac_compile; echo $2`
3004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3005 (eval $ac_compiler --version </dev/null >&5) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3010 (eval $ac_compiler -v </dev/null >&5) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3015 (eval $ac_compiler -V </dev/null >&5) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3028 main ()
3032 return 0;
3034 _ACEOF
3035 ac_clean_files_save=$ac_clean_files
3036 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3037 # Try to create an executable without -o first, disregard a.out.
3038 # It will help us diagnose broken compilers, and finding out an intuition
3039 # of exeext.
3040 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3041 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3042 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3043 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3044 (eval $ac_link_default) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; then
3048 # Find the output, starting from the most likely. This scheme is
3049 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3050 # resort.
3052 # Be careful to initialize this variable, since it used to be cached.
3053 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3054 ac_cv_exeext=
3055 # b.out is created by i960 compilers.
3056 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3058 test -f "$ac_file" || continue
3059 case $ac_file in
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3062 conftest.$ac_ext )
3063 # This is the source file.
3065 [ab].out )
3066 # We found the default executable, but exeext='' is most
3067 # certainly right.
3068 break;;
3069 *.* )
3070 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # FIXME: I believe we export ac_cv_exeext for Libtool,
3072 # but it would be cool to find out if it's true. Does anybody
3073 # maintain Libtool? --akim.
3074 export ac_cv_exeext
3075 break;;
3077 break;;
3078 esac
3079 done
3080 else
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: C compiler cannot create executables
3087 See \`config.log' for more details." >&2;}
3088 { (exit 77); exit 77; }; }
3091 ac_exeext=$ac_cv_exeext
3092 echo "$as_me:$LINENO: result: $ac_file" >&5
3093 echo "${ECHO_T}$ac_file" >&6
3095 # Check the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3098 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3099 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3100 # If not cross compiling, check that we can run a simple program.
3101 if test "$cross_compiling" != yes; then
3102 if { ac_try='./$ac_file'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 (eval $ac_try) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 cross_compiling=no
3109 else
3110 if test "$cross_compiling" = maybe; then
3111 cross_compiling=yes
3112 else
3113 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3114 If you meant to cross compile, use \`--host'.
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3123 echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6
3126 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3127 ac_clean_files=$ac_clean_files_save
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3131 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3132 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3133 echo "${ECHO_T}$cross_compiling" >&6
3135 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3136 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3144 # work properly (i.e., refer to `conftest.exe'), while it won't with
3145 # `rm'.
3146 for ac_file in conftest.exe conftest conftest.*; do
3147 test -f "$ac_file" || continue
3148 case $ac_file in
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3150 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 export ac_cv_exeext
3152 break;;
3153 * ) break;;
3154 esac
3155 done
3156 else
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3164 rm -f conftest$ac_cv_exeext
3165 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166 echo "${ECHO_T}$ac_cv_exeext" >&6
3168 rm -f conftest.$ac_ext
3169 EXEEXT=$ac_cv_exeext
3170 ac_exeext=$EXEEXT
3171 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3173 if test "${ac_cv_objext+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176 cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h. */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3184 main ()
3188 return 0;
3190 _ACEOF
3191 rm -f conftest.o conftest.obj
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; then
3197 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3198 case $ac_file in
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3201 break;;
3202 esac
3203 done
3204 else
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3208 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }
3215 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3217 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3218 echo "${ECHO_T}$ac_cv_objext" >&6
3219 OBJEXT=$ac_cv_objext
3220 ac_objext=$OBJEXT
3221 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3222 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3223 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3234 main ()
3236 #ifndef __GNUC__
3237 choke me
3238 #endif
3241 return 0;
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; } &&
3259 { ac_try='test -s conftest.$ac_objext'
3260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 (eval $ac_try) 2>&5
3262 ac_status=$?
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; }; then
3265 ac_compiler_gnu=yes
3266 else
3267 echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3270 ac_compiler_gnu=no
3272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3273 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3276 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3277 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3278 GCC=`test $ac_compiler_gnu = yes && echo yes`
3279 ac_test_CFLAGS=${CFLAGS+set}
3280 ac_save_CFLAGS=$CFLAGS
3281 CFLAGS="-g"
3282 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3283 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3284 if test "${ac_cv_prog_cc_g+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3295 main ()
3299 return 0;
3301 _ACEOF
3302 rm -f conftest.$ac_objext
3303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3304 (eval $ac_compile) 2>conftest.er1
3305 ac_status=$?
3306 grep -v '^ *+' conftest.er1 >conftest.err
3307 rm -f conftest.er1
3308 cat conftest.err >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } &&
3311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 (eval $ac_try) 2>&5
3314 ac_status=$?
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; } &&
3317 { ac_try='test -s conftest.$ac_objext'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 (eval $ac_try) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; }; then
3323 ac_cv_prog_cc_g=yes
3324 else
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3328 ac_cv_prog_cc_g=no
3330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3332 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3333 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3334 if test "$ac_test_CFLAGS" = set; then
3335 CFLAGS=$ac_save_CFLAGS
3336 elif test $ac_cv_prog_cc_g = yes; then
3337 if test "$GCC" = yes; then
3338 CFLAGS="-g -O2"
3339 else
3340 CFLAGS="-g"
3342 else
3343 if test "$GCC" = yes; then
3344 CFLAGS="-O2"
3345 else
3346 CFLAGS=
3349 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3350 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3351 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 ac_cv_prog_cc_stdc=no
3355 ac_save_CC=$CC
3356 cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h. */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3362 #include <stdarg.h>
3363 #include <stdio.h>
3364 #include <sys/types.h>
3365 #include <sys/stat.h>
3366 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3367 struct buf { int x; };
3368 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3369 static char *e (p, i)
3370 char **p;
3371 int i;
3373 return p[i];
3375 static char *f (char * (*g) (char **, int), char **p, ...)
3377 char *s;
3378 va_list v;
3379 va_start (v,p);
3380 s = g (p, va_arg (v,int));
3381 va_end (v);
3382 return s;
3385 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3386 function prototypes and stuff, but not '\xHH' hex character constants.
3387 These don't provoke an error unfortunately, instead are silently treated
3388 as 'x'. The following induces an error, until -std1 is added to get
3389 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3390 array size at least. It's necessary to write '\x00'==0 to get something
3391 that's true only with -std1. */
3392 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3394 int test (int i, double x);
3395 struct s1 {int (*f) (int a);};
3396 struct s2 {int (*f) (double a);};
3397 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3398 int argc;
3399 char **argv;
3401 main ()
3403 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3405 return 0;
3407 _ACEOF
3408 # Don't try gcc -ansi; that turns off useful extensions and
3409 # breaks some systems' header files.
3410 # AIX -qlanglvl=ansi
3411 # Ultrix and OSF/1 -std1
3412 # HP-UX 10.20 and later -Ae
3413 # HP-UX older versions -Aa -D_HPUX_SOURCE
3414 # SVR4 -Xc -D__EXTENSIONS__
3415 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3417 CC="$ac_save_CC $ac_arg"
3418 rm -f conftest.$ac_objext
3419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420 (eval $ac_compile) 2>conftest.er1
3421 ac_status=$?
3422 grep -v '^ *+' conftest.er1 >conftest.err
3423 rm -f conftest.er1
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } &&
3427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 (eval $ac_try) 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; } &&
3433 { ac_try='test -s conftest.$ac_objext'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 (eval $ac_try) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; }; then
3439 ac_cv_prog_cc_stdc=$ac_arg
3440 break
3441 else
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3446 rm -f conftest.err conftest.$ac_objext
3447 done
3448 rm -f conftest.$ac_ext conftest.$ac_objext
3449 CC=$ac_save_CC
3453 case "x$ac_cv_prog_cc_stdc" in
3454 x|xno)
3455 echo "$as_me:$LINENO: result: none needed" >&5
3456 echo "${ECHO_T}none needed" >&6 ;;
3458 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3459 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3460 CC="$CC $ac_cv_prog_cc_stdc" ;;
3461 esac
3463 # Some people use a C++ compiler to compile C. Since we use `exit',
3464 # in C++ we need to declare it. In case someone uses the same compiler
3465 # for both compiling C and C++ we need to have the C++ compiler decide
3466 # the declaration of exit, since it's the most demanding environment.
3467 cat >conftest.$ac_ext <<_ACEOF
3468 #ifndef __cplusplus
3469 choke me
3470 #endif
3471 _ACEOF
3472 rm -f conftest.$ac_objext
3473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3474 (eval $ac_compile) 2>conftest.er1
3475 ac_status=$?
3476 grep -v '^ *+' conftest.er1 >conftest.err
3477 rm -f conftest.er1
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } &&
3481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483 (eval $ac_try) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; } &&
3487 { ac_try='test -s conftest.$ac_objext'
3488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489 (eval $ac_try) 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; }; then
3493 for ac_declaration in \
3494 '' \
3495 'extern "C" void std::exit (int) throw (); using std::exit;' \
3496 'extern "C" void std::exit (int); using std::exit;' \
3497 'extern "C" void exit (int) throw ();' \
3498 'extern "C" void exit (int);' \
3499 'void exit (int);'
3501 cat >conftest.$ac_ext <<_ACEOF
3502 /* confdefs.h. */
3503 _ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3507 $ac_declaration
3508 #include <stdlib.h>
3510 main ()
3512 exit (42);
3514 return 0;
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519 (eval $ac_compile) 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 (eval $ac_try) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 (eval $ac_try) 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3539 else
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3543 continue
3545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3546 cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h. */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 $ac_declaration
3554 main ()
3556 exit (42);
3558 return 0;
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 break
3583 else
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589 done
3590 rm -f conftest*
3591 if test -n "$ac_declaration"; then
3592 echo '#ifdef __cplusplus' >>confdefs.h
3593 echo $ac_declaration >>confdefs.h
3594 echo '#endif' >>confdefs.h
3597 else
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3603 ac_ext=c
3604 ac_cpp='$CPP $CPPFLAGS'
3605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610 # On Suns, sometimes $CPP names a directory.
3611 if test -n "$CPP" && test -d "$CPP"; then
3612 CPP=
3615 #### Some systems specify a CPP to use unless we are using GCC.
3616 #### Now that we know whether we are using GCC, we can decide whether
3617 #### to use that one.
3618 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3619 then
3620 CPP="$NON_GNU_CPP"
3623 #### Some systems specify a CC to use unless we are using GCC.
3624 #### Now that we know whether we are using GCC, we can decide whether
3625 #### to use that one.
3626 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3627 test x$cc_specified != xyes
3628 then
3629 CC="$NON_GNU_CC"
3632 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3633 then
3634 CC="$CC $GCC_TEST_OPTIONS"
3637 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3638 then
3639 CC="$CC $NON_GCC_TEST_OPTIONS"
3642 #### Some other nice autoconf tests.
3644 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3645 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3646 LN_S=$as_ln_s
3647 if test "$LN_S" = "ln -s"; then
3648 echo "$as_me:$LINENO: result: yes" >&5
3649 echo "${ECHO_T}yes" >&6
3650 else
3651 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3652 echo "${ECHO_T}no, using $LN_S" >&6
3655 ac_ext=c
3656 ac_cpp='$CPP $CPPFLAGS'
3657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3661 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3662 # On Suns, sometimes $CPP names a directory.
3663 if test -n "$CPP" && test -d "$CPP"; then
3664 CPP=
3666 if test -z "$CPP"; then
3667 if test "${ac_cv_prog_CPP+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 # Double quotes because CPP needs to be expanded
3671 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3673 ac_preproc_ok=false
3674 for ac_c_preproc_warn_flag in '' yes
3676 # Use a header file that comes with gcc, so configuring glibc
3677 # with a fresh cross-compiler works.
3678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3679 # <limits.h> exists even on freestanding compilers.
3680 # On the NeXT, cc -E runs the code through the compiler's parser,
3681 # not just through cpp. "Syntax error" is here to catch this case.
3682 cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3688 #ifdef __STDC__
3689 # include <limits.h>
3690 #else
3691 # include <assert.h>
3692 #endif
3693 Syntax error
3694 _ACEOF
3695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3697 ac_status=$?
3698 grep -v '^ *+' conftest.er1 >conftest.err
3699 rm -f conftest.er1
3700 cat conftest.err >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } >/dev/null; then
3703 if test -s conftest.err; then
3704 ac_cpp_err=$ac_c_preproc_warn_flag
3705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3706 else
3707 ac_cpp_err=
3709 else
3710 ac_cpp_err=yes
3712 if test -z "$ac_cpp_err"; then
3714 else
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 # Broken: fails on valid input.
3719 continue
3721 rm -f conftest.err conftest.$ac_ext
3723 # OK, works on sane cases. Now check whether non-existent headers
3724 # can be detected and how.
3725 cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h. */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3731 #include <ac_nonexistent.h>
3732 _ACEOF
3733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3735 ac_status=$?
3736 grep -v '^ *+' conftest.er1 >conftest.err
3737 rm -f conftest.er1
3738 cat conftest.err >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } >/dev/null; then
3741 if test -s conftest.err; then
3742 ac_cpp_err=$ac_c_preproc_warn_flag
3743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3744 else
3745 ac_cpp_err=
3747 else
3748 ac_cpp_err=yes
3750 if test -z "$ac_cpp_err"; then
3751 # Broken: success on invalid input.
3752 continue
3753 else
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 # Passes both tests.
3758 ac_preproc_ok=:
3759 break
3761 rm -f conftest.err conftest.$ac_ext
3763 done
3764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765 rm -f conftest.err conftest.$ac_ext
3766 if $ac_preproc_ok; then
3767 break
3770 done
3771 ac_cv_prog_CPP=$CPP
3774 CPP=$ac_cv_prog_CPP
3775 else
3776 ac_cv_prog_CPP=$CPP
3778 echo "$as_me:$LINENO: result: $CPP" >&5
3779 echo "${ECHO_T}$CPP" >&6
3780 ac_preproc_ok=false
3781 for ac_c_preproc_warn_flag in '' yes
3783 # Use a header file that comes with gcc, so configuring glibc
3784 # with a fresh cross-compiler works.
3785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 # <limits.h> exists even on freestanding compilers.
3787 # On the NeXT, cc -E runs the code through the compiler's parser,
3788 # not just through cpp. "Syntax error" is here to catch this case.
3789 cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h. */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3795 #ifdef __STDC__
3796 # include <limits.h>
3797 #else
3798 # include <assert.h>
3799 #endif
3800 Syntax error
3801 _ACEOF
3802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } >/dev/null; then
3810 if test -s conftest.err; then
3811 ac_cpp_err=$ac_c_preproc_warn_flag
3812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3813 else
3814 ac_cpp_err=
3816 else
3817 ac_cpp_err=yes
3819 if test -z "$ac_cpp_err"; then
3821 else
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3825 # Broken: fails on valid input.
3826 continue
3828 rm -f conftest.err conftest.$ac_ext
3830 # OK, works on sane cases. Now check whether non-existent headers
3831 # can be detected and how.
3832 cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h. */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 #include <ac_nonexistent.h>
3839 _ACEOF
3840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3842 ac_status=$?
3843 grep -v '^ *+' conftest.er1 >conftest.err
3844 rm -f conftest.er1
3845 cat conftest.err >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } >/dev/null; then
3848 if test -s conftest.err; then
3849 ac_cpp_err=$ac_c_preproc_warn_flag
3850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3851 else
3852 ac_cpp_err=
3854 else
3855 ac_cpp_err=yes
3857 if test -z "$ac_cpp_err"; then
3858 # Broken: success on invalid input.
3859 continue
3860 else
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 # Passes both tests.
3865 ac_preproc_ok=:
3866 break
3868 rm -f conftest.err conftest.$ac_ext
3870 done
3871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3872 rm -f conftest.err conftest.$ac_ext
3873 if $ac_preproc_ok; then
3875 else
3876 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3877 See \`config.log' for more details." >&5
3878 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3879 See \`config.log' for more details." >&2;}
3880 { (exit 1); exit 1; }; }
3883 ac_ext=c
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889 # Find a good install program. We prefer a C program (faster),
3890 # so one script is as good as another. But avoid the broken or
3891 # incompatible versions:
3892 # SysV /etc/install, /usr/sbin/install
3893 # SunOS /usr/etc/install
3894 # IRIX /sbin/install
3895 # AIX /bin/install
3896 # AmigaOS /C/install, which installs bootblocks on floppy discs
3897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3900 # OS/2's system install, which has a completely different semantic
3901 # ./install, which can be erroneously created by make from ./install.sh.
3902 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3903 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3904 if test -z "$INSTALL"; then
3905 if test "${ac_cv_path_install+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 # Account for people who put trailing slashes in PATH elements.
3914 case $as_dir/ in
3915 ./ | .// | /cC/* | \
3916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3917 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3918 /usr/ucb/* ) ;;
3920 # OSF1 and SCO ODT 3.0 have their own names for install.
3921 # Don't use installbsd from OSF since it installs stuff as root
3922 # by default.
3923 for ac_prog in ginstall scoinst install; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3926 if test $ac_prog = install &&
3927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3928 # AIX install. It has an incompatible calling convention.
3930 elif test $ac_prog = install &&
3931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3932 # program-specific install script used by HP pwplus--don't use.
3934 else
3935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3936 break 3
3939 done
3940 done
3942 esac
3943 done
3947 if test "${ac_cv_path_install+set}" = set; then
3948 INSTALL=$ac_cv_path_install
3949 else
3950 # As a last resort, use the slow shell script. We don't cache a
3951 # path for INSTALL within a source directory, because that will
3952 # break other packages using the cache if that directory is
3953 # removed, or if the path is relative.
3954 INSTALL=$ac_install_sh
3957 echo "$as_me:$LINENO: result: $INSTALL" >&5
3958 echo "${ECHO_T}$INSTALL" >&6
3960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3961 # It thinks the first close brace ends the variable substitution.
3962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3966 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3968 if test "x$RANLIB" = x; then
3969 if test -n "$ac_tool_prefix"; then
3970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3972 echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3974 if test "${ac_cv_prog_RANLIB+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977 if test -n "$RANLIB"; then
3978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3979 else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3991 done
3992 done
3996 RANLIB=$ac_cv_prog_RANLIB
3997 if test -n "$RANLIB"; then
3998 echo "$as_me:$LINENO: result: $RANLIB" >&5
3999 echo "${ECHO_T}$RANLIB" >&6
4000 else
4001 echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6
4006 if test -z "$ac_cv_prog_RANLIB"; then
4007 ac_ct_RANLIB=$RANLIB
4008 # Extract the first word of "ranlib", so it can be a program name with args.
4009 set dummy ranlib; ac_word=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015 if test -n "$ac_ct_RANLIB"; then
4016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_ac_ct_RANLIB="ranlib"
4026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4029 done
4030 done
4032 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4036 if test -n "$ac_ct_RANLIB"; then
4037 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4038 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4039 else
4040 echo "$as_me:$LINENO: result: no" >&5
4041 echo "${ECHO_T}no" >&6
4044 RANLIB=$ac_ct_RANLIB
4045 else
4046 RANLIB="$ac_cv_prog_RANLIB"
4050 # Extract the first word of "install-info", so it can be a program name with args.
4051 set dummy install-info; ac_word=$2
4052 echo "$as_me:$LINENO: checking for $ac_word" >&5
4053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4054 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 case $INSTALL_INFO in
4058 [\\/]* | ?:[\\/]*)
4059 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4069 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 break 2
4073 done
4074 done
4077 esac
4079 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4081 if test -n "$INSTALL_INFO"; then
4082 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4083 echo "${ECHO_T}$INSTALL_INFO" >&6
4084 else
4085 echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6
4089 # Extract the first word of "install-info", so it can be a program name with args.
4090 set dummy install-info; ac_word=$2
4091 echo "$as_me:$LINENO: checking for $ac_word" >&5
4092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4093 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096 case $INSTALL_INFO in
4097 [\\/]* | ?:[\\/]*)
4098 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in /usr/sbin
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 break 2
4112 done
4113 done
4116 esac
4118 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4120 if test -n "$INSTALL_INFO"; then
4121 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4122 echo "${ECHO_T}$INSTALL_INFO" >&6
4123 else
4124 echo "$as_me:$LINENO: result: no" >&5
4125 echo "${ECHO_T}no" >&6
4128 # Extract the first word of "install-info", so it can be a program name with args.
4129 set dummy install-info; ac_word=$2
4130 echo "$as_me:$LINENO: checking for $ac_word" >&5
4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4132 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135 case $INSTALL_INFO in
4136 [\\/]* | ?:[\\/]*)
4137 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in /sbin
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 break 2
4151 done
4152 done
4154 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4156 esac
4158 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4160 if test -n "$INSTALL_INFO"; then
4161 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4162 echo "${ECHO_T}$INSTALL_INFO" >&6
4163 else
4164 echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6
4170 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4171 then
4172 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4175 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4176 then
4177 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4181 late_LDFLAGS=$LDFLAGS
4182 if test "$GCC" = yes; then
4183 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4184 else
4185 LDFLAGS="$LDFLAGS -znocombreloc"
4188 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4189 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4191 cat >conftest.$ac_ext <<_ACEOF
4192 main(){return 0;}
4193 _ACEOF
4194 rm -f conftest.$ac_objext conftest$ac_exeext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4196 (eval $ac_link) 2>conftest.er1
4197 ac_status=$?
4198 grep -v '^ *+' conftest.er1 >conftest.err
4199 rm -f conftest.er1
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; } &&
4209 { ac_try='test -s conftest$ac_exeext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 echo "$as_me:$LINENO: result: yes" >&5
4216 echo "${ECHO_T}yes" >&6
4217 else
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 LDFLAGS=$late_LDFLAGS
4222 echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6
4225 rm -f conftest.err conftest.$ac_objext \
4226 conftest$ac_exeext conftest.$ac_ext
4229 echo "$as_me:$LINENO: checking for egrep" >&5
4230 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4231 if test "${ac_cv_prog_egrep+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4235 then ac_cv_prog_egrep='grep -E'
4236 else ac_cv_prog_egrep='egrep'
4239 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4240 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4241 EGREP=$ac_cv_prog_egrep
4245 echo "$as_me:$LINENO: checking for AIX" >&5
4246 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4247 cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h. */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 #ifdef _AIX
4255 #endif
4257 _ACEOF
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259 $EGREP "yes" >/dev/null 2>&1; then
4260 echo "$as_me:$LINENO: result: yes" >&5
4261 echo "${ECHO_T}yes" >&6
4262 cat >>confdefs.h <<\_ACEOF
4263 #define _ALL_SOURCE 1
4264 _ACEOF
4266 else
4267 echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4270 rm -f conftest*
4275 #### Extract some information from the operating system and machine files.
4277 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4278 - which libraries the lib-src programs will want, and
4279 - whether the GNU malloc routines are usable..." >&5
4280 echo "$as_me: checking the machine- and system-dependent files to find out
4281 - which libraries the lib-src programs will want, and
4282 - whether the GNU malloc routines are usable..." >&6;}
4284 ### First figure out CFLAGS (which we use for running the compiler here)
4285 ### and REAL_CFLAGS (which we use for real compilation).
4286 ### The two are the same except on a few systems, where they are made
4287 ### different to work around various lossages. For example,
4288 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4289 ### as implying static linking.
4291 ### If the CFLAGS env var is specified, we use that value
4292 ### instead of the default.
4294 ### It's not important that this name contain the PID; you can't run
4295 ### two configures in the same directory and have anything work
4296 ### anyway.
4297 tempcname="conftest.c"
4299 echo '
4300 #include "'${srcdir}'/src/'${opsysfile}'"
4301 #include "'${srcdir}'/src/'${machfile}'"
4302 #ifndef LIBS_MACHINE
4303 #define LIBS_MACHINE
4304 #endif
4305 #ifndef LIBS_SYSTEM
4306 #define LIBS_SYSTEM
4307 #endif
4308 #ifndef C_SWITCH_SYSTEM
4309 #define C_SWITCH_SYSTEM
4310 #endif
4311 #ifndef C_SWITCH_MACHINE
4312 #define C_SWITCH_MACHINE
4313 #endif
4314 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4315 configure___ c_switch_system=C_SWITCH_SYSTEM
4316 configure___ c_switch_machine=C_SWITCH_MACHINE
4318 #ifndef LIB_X11_LIB
4319 #define LIB_X11_LIB -lX11
4320 #endif
4322 #ifndef LIBX11_MACHINE
4323 #define LIBX11_MACHINE
4324 #endif
4326 #ifndef LIBX11_SYSTEM
4327 #define LIBX11_SYSTEM
4328 #endif
4329 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4331 #ifdef UNEXEC
4332 configure___ unexec=UNEXEC
4333 #else
4334 configure___ unexec=unexec.o
4335 #endif
4337 #ifdef SYSTEM_MALLOC
4338 configure___ system_malloc=yes
4339 #else
4340 configure___ system_malloc=no
4341 #endif
4343 #ifdef USE_MMAP_FOR_BUFFERS
4344 configure___ use_mmap_for_buffers=yes
4345 #else
4346 configure___ use_mmap_for_buffers=no
4347 #endif
4349 #ifndef C_DEBUG_SWITCH
4350 #define C_DEBUG_SWITCH -g
4351 #endif
4353 #ifndef C_OPTIMIZE_SWITCH
4354 #ifdef __GNUC__
4355 #define C_OPTIMIZE_SWITCH -O2
4356 #else
4357 #define C_OPTIMIZE_SWITCH -O
4358 #endif
4359 #endif
4361 #ifndef LD_SWITCH_MACHINE
4362 #define LD_SWITCH_MACHINE
4363 #endif
4365 #ifndef LD_SWITCH_SYSTEM
4366 #define LD_SWITCH_SYSTEM
4367 #endif
4369 #ifndef LD_SWITCH_X_SITE_AUX
4370 #define LD_SWITCH_X_SITE_AUX
4371 #endif
4373 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4374 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4376 #ifdef THIS_IS_CONFIGURE
4378 /* Get the CFLAGS for tests in configure. */
4379 #ifdef __GNUC__
4380 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4381 #else
4382 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4383 #endif
4385 #else /* not THIS_IS_CONFIGURE */
4387 /* Get the CFLAGS for real compilation. */
4388 #ifdef __GNUC__
4389 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4390 #else
4391 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4392 #endif
4394 #endif /* not THIS_IS_CONFIGURE */
4395 ' > ${tempcname}
4397 # The value of CPP is a quoted variable reference, so we need to do this
4398 # to get its actual value...
4399 CPP=`eval "echo $CPP"`
4400 eval `${CPP} -Isrc ${tempcname} \
4401 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4402 if test "x$SPECIFIED_CFLAGS" = x; then
4403 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4404 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4405 else
4406 REAL_CFLAGS="$CFLAGS"
4408 rm ${tempcname}
4410 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4412 ### Make sure subsequent tests use flags consistent with the build flags.
4414 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4415 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4416 else
4417 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4423 cat >>confdefs.h <<\_ACEOF
4424 #define _GNU_SOURCE 1
4425 _ACEOF
4429 # Check whether --enable-largefile or --disable-largefile was given.
4430 if test "${enable_largefile+set}" = set; then
4431 enableval="$enable_largefile"
4434 if test "$enable_largefile" != no; then
4436 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4437 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4438 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 ac_cv_sys_largefile_CC=no
4442 if test "$GCC" != yes; then
4443 ac_save_CC=$CC
4444 while :; do
4445 # IRIX 6.2 and later do not support large files by default,
4446 # so use the C compiler's -n32 option if that helps.
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 #include <sys/types.h>
4454 /* Check that off_t can represent 2**63 - 1 correctly.
4455 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4456 since some C++ compilers masquerading as C compilers
4457 incorrectly reject 9223372036854775807. */
4458 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4459 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4460 && LARGE_OFF_T % 2147483647 == 1)
4461 ? 1 : -1];
4463 main ()
4467 return 0;
4469 _ACEOF
4470 rm -f conftest.$ac_objext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472 (eval $ac_compile) 2>conftest.er1
4473 ac_status=$?
4474 grep -v '^ *+' conftest.er1 >conftest.err
4475 rm -f conftest.er1
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; } &&
4485 { ac_try='test -s conftest.$ac_objext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 break
4492 else
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4497 rm -f conftest.err conftest.$ac_objext
4498 CC="$CC -n32"
4499 rm -f conftest.$ac_objext
4500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501 (eval $ac_compile) 2>conftest.er1
4502 ac_status=$?
4503 grep -v '^ *+' conftest.er1 >conftest.err
4504 rm -f conftest.er1
4505 cat conftest.err >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } &&
4508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 (eval $ac_try) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; } &&
4514 { ac_try='test -s conftest.$ac_objext'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 (eval $ac_try) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 ac_cv_sys_largefile_CC=' -n32'; break
4521 else
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4526 rm -f conftest.err conftest.$ac_objext
4527 break
4528 done
4529 CC=$ac_save_CC
4530 rm -f conftest.$ac_ext
4533 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4534 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4535 if test "$ac_cv_sys_largefile_CC" != no; then
4536 CC=$CC$ac_cv_sys_largefile_CC
4539 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4540 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4541 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 while :; do
4545 ac_cv_sys_file_offset_bits=no
4546 cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h. */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4552 #include <sys/types.h>
4553 /* Check that off_t can represent 2**63 - 1 correctly.
4554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4555 since some C++ compilers masquerading as C compilers
4556 incorrectly reject 9223372036854775807. */
4557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4559 && LARGE_OFF_T % 2147483647 == 1)
4560 ? 1 : -1];
4562 main ()
4566 return 0;
4568 _ACEOF
4569 rm -f conftest.$ac_objext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>conftest.er1
4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; } &&
4584 { ac_try='test -s conftest.$ac_objext'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586 (eval $ac_try) 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4590 break
4591 else
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4597 cat >conftest.$ac_ext <<_ACEOF
4598 /* confdefs.h. */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4603 #define _FILE_OFFSET_BITS 64
4604 #include <sys/types.h>
4605 /* Check that off_t can represent 2**63 - 1 correctly.
4606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4607 since some C++ compilers masquerading as C compilers
4608 incorrectly reject 9223372036854775807. */
4609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4611 && LARGE_OFF_T % 2147483647 == 1)
4612 ? 1 : -1];
4614 main ()
4618 return 0;
4620 _ACEOF
4621 rm -f conftest.$ac_objext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4623 (eval $ac_compile) 2>conftest.er1
4624 ac_status=$?
4625 grep -v '^ *+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; } &&
4636 { ac_try='test -s conftest.$ac_objext'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 (eval $ac_try) 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
4642 ac_cv_sys_file_offset_bits=64; break
4643 else
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4649 break
4650 done
4652 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4653 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4654 if test "$ac_cv_sys_file_offset_bits" != no; then
4656 cat >>confdefs.h <<_ACEOF
4657 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4658 _ACEOF
4661 rm -f conftest*
4662 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4663 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4664 if test "${ac_cv_sys_large_files+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 while :; do
4668 ac_cv_sys_large_files=no
4669 cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h. */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 #include <sys/types.h>
4676 /* Check that off_t can represent 2**63 - 1 correctly.
4677 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4678 since some C++ compilers masquerading as C compilers
4679 incorrectly reject 9223372036854775807. */
4680 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4681 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4682 && LARGE_OFF_T % 2147483647 == 1)
4683 ? 1 : -1];
4685 main ()
4689 return 0;
4691 _ACEOF
4692 rm -f conftest.$ac_objext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694 (eval $ac_compile) 2>conftest.er1
4695 ac_status=$?
4696 grep -v '^ *+' conftest.er1 >conftest.err
4697 rm -f conftest.er1
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 (eval $ac_try) 2>&5
4704 ac_status=$?
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; } &&
4707 { ac_try='test -s conftest.$ac_objext'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 (eval $ac_try) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 break
4714 else
4715 echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4720 cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h. */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 #define _LARGE_FILES 1
4727 #include <sys/types.h>
4728 /* Check that off_t can represent 2**63 - 1 correctly.
4729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4730 since some C++ compilers masquerading as C compilers
4731 incorrectly reject 9223372036854775807. */
4732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4734 && LARGE_OFF_T % 2147483647 == 1)
4735 ? 1 : -1];
4737 main ()
4741 return 0;
4743 _ACEOF
4744 rm -f conftest.$ac_objext
4745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746 (eval $ac_compile) 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; } &&
4759 { ac_try='test -s conftest.$ac_objext'
4760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 (eval $ac_try) 2>&5
4762 ac_status=$?
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 ac_cv_sys_large_files=1; break
4766 else
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4772 break
4773 done
4775 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4776 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4777 if test "$ac_cv_sys_large_files" != no; then
4779 cat >>confdefs.h <<_ACEOF
4780 #define _LARGE_FILES $ac_cv_sys_large_files
4781 _ACEOF
4784 rm -f conftest*
4788 if test "${with_sound}" != "no"; then
4789 # Sound support for GNU/Linux and the free BSDs.
4790 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4791 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4792 if test "${ac_cv_header_stdc+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795 cat >conftest.$ac_ext <<_ACEOF
4796 /* confdefs.h. */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4801 #include <stdlib.h>
4802 #include <stdarg.h>
4803 #include <string.h>
4804 #include <float.h>
4807 main ()
4811 return 0;
4813 _ACEOF
4814 rm -f conftest.$ac_objext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816 (eval $ac_compile) 2>conftest.er1
4817 ac_status=$?
4818 grep -v '^ *+' conftest.er1 >conftest.err
4819 rm -f conftest.er1
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; } &&
4829 { ac_try='test -s conftest.$ac_objext'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 (eval $ac_try) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; }; then
4835 ac_cv_header_stdc=yes
4836 else
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4840 ac_cv_header_stdc=no
4842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844 if test $ac_cv_header_stdc = yes; then
4845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4846 cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h. */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 #include <string.h>
4854 _ACEOF
4855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4856 $EGREP "memchr" >/dev/null 2>&1; then
4858 else
4859 ac_cv_header_stdc=no
4861 rm -f conftest*
4865 if test $ac_cv_header_stdc = yes; then
4866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 #include <stdlib.h>
4875 _ACEOF
4876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4877 $EGREP "free" >/dev/null 2>&1; then
4879 else
4880 ac_cv_header_stdc=no
4882 rm -f conftest*
4886 if test $ac_cv_header_stdc = yes; then
4887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4888 if test "$cross_compiling" = yes; then
4890 else
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #include <ctype.h>
4898 #if ((' ' & 0x0FF) == 0x020)
4899 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4900 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4901 #else
4902 # define ISLOWER(c) \
4903 (('a' <= (c) && (c) <= 'i') \
4904 || ('j' <= (c) && (c) <= 'r') \
4905 || ('s' <= (c) && (c) <= 'z'))
4906 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4907 #endif
4909 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4911 main ()
4913 int i;
4914 for (i = 0; i < 256; i++)
4915 if (XOR (islower (i), ISLOWER (i))
4916 || toupper (i) != TOUPPER (i))
4917 exit(2);
4918 exit (0);
4920 _ACEOF
4921 rm -f conftest$ac_exeext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4923 (eval $ac_link) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 (eval $ac_try) 2>&5
4929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4933 else
4934 echo "$as_me: program exited with status $ac_status" >&5
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4938 ( exit $ac_status )
4939 ac_cv_header_stdc=no
4941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4945 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4946 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4947 if test $ac_cv_header_stdc = yes; then
4949 cat >>confdefs.h <<\_ACEOF
4950 #define STDC_HEADERS 1
4951 _ACEOF
4955 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4965 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4966 inttypes.h stdint.h unistd.h
4968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4969 echo "$as_me:$LINENO: checking for $ac_header" >&5
4970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h. */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 $ac_includes_default
4982 #include <$ac_header>
4983 _ACEOF
4984 rm -f conftest.$ac_objext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986 (eval $ac_compile) 2>conftest.er1
4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } &&
4993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4999 { ac_try='test -s conftest.$ac_objext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 (eval $ac_try) 2>&5
5002 ac_status=$?
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5005 eval "$as_ac_Header=yes"
5006 else
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5010 eval "$as_ac_Header=no"
5012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5017 cat >>confdefs.h <<_ACEOF
5018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5019 _ACEOF
5023 done
5029 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5033 echo "$as_me:$LINENO: checking for $ac_header" >&5
5034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5040 else
5041 # Is the header compilable?
5042 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5044 cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h. */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 $ac_includes_default
5051 #include <$ac_header>
5052 _ACEOF
5053 rm -f conftest.$ac_objext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055 (eval $ac_compile) 2>conftest.er1
5056 ac_status=$?
5057 grep -v '^ *+' conftest.er1 >conftest.err
5058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } &&
5062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 (eval $ac_try) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; } &&
5068 { ac_try='test -s conftest.$ac_objext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 (eval $ac_try) 2>&5
5071 ac_status=$?
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5074 ac_header_compiler=yes
5075 else
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5079 ac_header_compiler=no
5081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5083 echo "${ECHO_T}$ac_header_compiler" >&6
5085 # Is the header present?
5086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5088 cat >conftest.$ac_ext <<_ACEOF
5089 /* confdefs.h. */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5094 #include <$ac_header>
5095 _ACEOF
5096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5098 ac_status=$?
5099 grep -v '^ *+' conftest.er1 >conftest.err
5100 rm -f conftest.er1
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } >/dev/null; then
5104 if test -s conftest.err; then
5105 ac_cpp_err=$ac_c_preproc_warn_flag
5106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5107 else
5108 ac_cpp_err=
5110 else
5111 ac_cpp_err=yes
5113 if test -z "$ac_cpp_err"; then
5114 ac_header_preproc=yes
5115 else
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 ac_header_preproc=no
5121 rm -f conftest.err conftest.$ac_ext
5122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5123 echo "${ECHO_T}$ac_header_preproc" >&6
5125 # So? What about this header?
5126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5127 yes:no: )
5128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5132 ac_header_preproc=yes
5134 no:yes:* )
5135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5148 cat <<\_ASBOX
5149 ## ------------------------------------------ ##
5150 ## Report this to the AC_PACKAGE_NAME lists. ##
5151 ## ------------------------------------------ ##
5152 _ASBOX
5154 sed "s/^/$as_me: WARNING: /" >&2
5156 esac
5157 echo "$as_me:$LINENO: checking for $ac_header" >&5
5158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162 eval "$as_ac_Header=\$ac_header_preproc"
5164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5169 cat >>confdefs.h <<_ACEOF
5170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5171 _ACEOF
5175 done
5177 # Emulation library used on NetBSD.
5178 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5179 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5180 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183 ac_check_lib_save_LIBS=$LIBS
5184 LIBS="-lossaudio $LIBS"
5185 cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h. */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5192 /* Override any gcc2 internal prototype to avoid an error. */
5193 #ifdef __cplusplus
5194 extern "C"
5195 #endif
5196 /* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
5198 char _oss_ioctl ();
5200 main ()
5202 _oss_ioctl ();
5204 return 0;
5206 _ACEOF
5207 rm -f conftest.$ac_objext conftest$ac_exeext
5208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5209 (eval $ac_link) 2>conftest.er1
5210 ac_status=$?
5211 grep -v '^ *+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } &&
5216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 (eval $ac_try) 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; } &&
5222 { ac_try='test -s conftest$ac_exeext'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 (eval $ac_try) 2>&5
5225 ac_status=$?
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; }; then
5228 ac_cv_lib_ossaudio__oss_ioctl=yes
5229 else
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5233 ac_cv_lib_ossaudio__oss_ioctl=no
5235 rm -f conftest.err conftest.$ac_objext \
5236 conftest$ac_exeext conftest.$ac_ext
5237 LIBS=$ac_check_lib_save_LIBS
5239 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5240 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5241 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5242 LIBSOUND=-lossaudio
5243 else
5244 LIBSOUND=
5273 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5274 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5275 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5276 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5280 echo "$as_me:$LINENO: checking for $ac_header" >&5
5281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5287 else
5288 # Is the header compilable?
5289 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5298 #include <$ac_header>
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>conftest.er1
5303 ac_status=$?
5304 grep -v '^ *+' conftest.er1 >conftest.err
5305 rm -f conftest.er1
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 (eval $ac_try) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 (eval $ac_try) 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_header_compiler=yes
5322 else
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 ac_header_compiler=no
5328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5330 echo "${ECHO_T}$ac_header_compiler" >&6
5332 # Is the header present?
5333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5335 cat >conftest.$ac_ext <<_ACEOF
5336 /* confdefs.h. */
5337 _ACEOF
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5341 #include <$ac_header>
5342 _ACEOF
5343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5345 ac_status=$?
5346 grep -v '^ *+' conftest.er1 >conftest.err
5347 rm -f conftest.er1
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } >/dev/null; then
5351 if test -s conftest.err; then
5352 ac_cpp_err=$ac_c_preproc_warn_flag
5353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5354 else
5355 ac_cpp_err=
5357 else
5358 ac_cpp_err=yes
5360 if test -z "$ac_cpp_err"; then
5361 ac_header_preproc=yes
5362 else
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 ac_header_preproc=no
5368 rm -f conftest.err conftest.$ac_ext
5369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5370 echo "${ECHO_T}$ac_header_preproc" >&6
5372 # So? What about this header?
5373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5374 yes:no: )
5375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5379 ac_header_preproc=yes
5381 no:yes:* )
5382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5395 cat <<\_ASBOX
5396 ## ------------------------------------------ ##
5397 ## Report this to the AC_PACKAGE_NAME lists. ##
5398 ## ------------------------------------------ ##
5399 _ASBOX
5401 sed "s/^/$as_me: WARNING: /" >&2
5403 esac
5404 echo "$as_me:$LINENO: checking for $ac_header" >&5
5405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409 eval "$as_ac_Header=\$ac_header_preproc"
5411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5416 cat >>confdefs.h <<_ACEOF
5417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5418 _ACEOF
5422 done
5425 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5426 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 #include <sys/personality.h>
5435 main ()
5437 personality (PER_LINUX32)
5439 return 0;
5441 _ACEOF
5442 rm -f conftest.$ac_objext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444 (eval $ac_compile) 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; } &&
5457 { ac_try='test -s conftest.$ac_objext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 emacs_cv_personality_linux32=yes
5464 else
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 emacs_cv_personality_linux32=no
5470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5471 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5472 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5474 if test $emacs_cv_personality_linux32 = yes; then
5476 cat >>confdefs.h <<\_ACEOF
5477 #define HAVE_PERSONALITY_LINUX32 1
5478 _ACEOF
5483 for ac_header in term.h
5485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5486 echo "$as_me:$LINENO: checking for $ac_header" >&5
5487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491 cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h. */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497 #include <$ac_header>
5498 _ACEOF
5499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5501 ac_status=$?
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } >/dev/null; then
5507 if test -s conftest.err; then
5508 ac_cpp_err=$ac_c_preproc_warn_flag
5509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5510 else
5511 ac_cpp_err=
5513 else
5514 ac_cpp_err=yes
5516 if test -z "$ac_cpp_err"; then
5517 eval "$as_ac_Header=yes"
5518 else
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 eval "$as_ac_Header=no"
5524 rm -f conftest.err conftest.$ac_ext
5526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5529 cat >>confdefs.h <<_ACEOF
5530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5531 _ACEOF
5535 done
5537 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5538 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5539 if test "${ac_cv_header_stdc+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #include <stdlib.h>
5549 #include <stdarg.h>
5550 #include <string.h>
5551 #include <float.h>
5554 main ()
5558 return 0;
5560 _ACEOF
5561 rm -f conftest.$ac_objext
5562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563 (eval $ac_compile) 2>conftest.er1
5564 ac_status=$?
5565 grep -v '^ *+' conftest.er1 >conftest.err
5566 rm -f conftest.er1
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572 (eval $ac_try) 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; } &&
5576 { ac_try='test -s conftest.$ac_objext'
5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578 (eval $ac_try) 2>&5
5579 ac_status=$?
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }; }; then
5582 ac_cv_header_stdc=yes
5583 else
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5587 ac_cv_header_stdc=no
5589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5591 if test $ac_cv_header_stdc = yes; then
5592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5593 cat >conftest.$ac_ext <<_ACEOF
5594 /* confdefs.h. */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 #include <string.h>
5601 _ACEOF
5602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5603 $EGREP "memchr" >/dev/null 2>&1; then
5605 else
5606 ac_cv_header_stdc=no
5608 rm -f conftest*
5612 if test $ac_cv_header_stdc = yes; then
5613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5614 cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h. */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 #include <stdlib.h>
5622 _ACEOF
5623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5624 $EGREP "free" >/dev/null 2>&1; then
5626 else
5627 ac_cv_header_stdc=no
5629 rm -f conftest*
5633 if test $ac_cv_header_stdc = yes; then
5634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5635 if test "$cross_compiling" = yes; then
5637 else
5638 cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h. */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 #include <ctype.h>
5645 #if ((' ' & 0x0FF) == 0x020)
5646 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5647 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5648 #else
5649 # define ISLOWER(c) \
5650 (('a' <= (c) && (c) <= 'i') \
5651 || ('j' <= (c) && (c) <= 'r') \
5652 || ('s' <= (c) && (c) <= 'z'))
5653 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5654 #endif
5656 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5658 main ()
5660 int i;
5661 for (i = 0; i < 256; i++)
5662 if (XOR (islower (i), ISLOWER (i))
5663 || toupper (i) != TOUPPER (i))
5664 exit(2);
5665 exit (0);
5667 _ACEOF
5668 rm -f conftest$ac_exeext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670 (eval $ac_link) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5680 else
5681 echo "$as_me: program exited with status $ac_status" >&5
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 ( exit $ac_status )
5686 ac_cv_header_stdc=no
5688 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5692 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5693 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5694 if test $ac_cv_header_stdc = yes; then
5696 cat >>confdefs.h <<\_ACEOF
5697 #define STDC_HEADERS 1
5698 _ACEOF
5702 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5703 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5704 if test "${ac_cv_header_time+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 #include <sys/types.h>
5714 #include <sys/time.h>
5715 #include <time.h>
5718 main ()
5720 if ((struct tm *) 0)
5721 return 0;
5723 return 0;
5725 _ACEOF
5726 rm -f conftest.$ac_objext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728 (eval $ac_compile) 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 (eval $ac_try) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try='test -s conftest.$ac_objext'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 (eval $ac_try) 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 ac_cv_header_time=yes
5748 else
5749 echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5752 ac_cv_header_time=no
5754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5756 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5757 echo "${ECHO_T}$ac_cv_header_time" >&6
5758 if test $ac_cv_header_time = yes; then
5760 cat >>confdefs.h <<\_ACEOF
5761 #define TIME_WITH_SYS_TIME 1
5762 _ACEOF
5766 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5767 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5768 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h. */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5777 $ac_includes_default
5779 main ()
5781 #ifndef sys_siglist
5782 char *p = (char *) sys_siglist;
5783 #endif
5786 return 0;
5788 _ACEOF
5789 rm -f conftest.$ac_objext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5791 (eval $ac_compile) 2>conftest.er1
5792 ac_status=$?
5793 grep -v '^ *+' conftest.er1 >conftest.err
5794 rm -f conftest.er1
5795 cat conftest.err >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } &&
5798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; } &&
5804 { ac_try='test -s conftest.$ac_objext'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 (eval $ac_try) 2>&5
5807 ac_status=$?
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
5810 ac_cv_have_decl_sys_siglist=yes
5811 else
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5815 ac_cv_have_decl_sys_siglist=no
5817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5819 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5820 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5821 if test $ac_cv_have_decl_sys_siglist = yes; then
5823 cat >>confdefs.h <<_ACEOF
5824 #define HAVE_DECL_SYS_SIGLIST 1
5825 _ACEOF
5828 else
5829 cat >>confdefs.h <<_ACEOF
5830 #define HAVE_DECL_SYS_SIGLIST 0
5831 _ACEOF
5837 if test $ac_cv_have_decl_sys_siglist != yes; then
5838 # For Tru64, at least:
5839 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5840 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5841 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 $ac_includes_default
5852 main ()
5854 #ifndef __sys_siglist
5855 char *p = (char *) __sys_siglist;
5856 #endif
5859 return 0;
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } &&
5871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try='test -s conftest.$ac_objext'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 (eval $ac_try) 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5883 ac_cv_have_decl___sys_siglist=yes
5884 else
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 ac_cv_have_decl___sys_siglist=no
5890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5892 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5893 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5894 if test $ac_cv_have_decl___sys_siglist = yes; then
5896 cat >>confdefs.h <<_ACEOF
5897 #define HAVE_DECL___SYS_SIGLIST 1
5898 _ACEOF
5901 else
5902 cat >>confdefs.h <<_ACEOF
5903 #define HAVE_DECL___SYS_SIGLIST 0
5904 _ACEOF
5910 if test $ac_cv_have_decl___sys_siglist = yes; then
5912 cat >>confdefs.h <<\_ACEOF
5913 #define sys_siglist __sys_siglist
5914 _ACEOF
5918 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5919 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5920 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923 cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h. */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 #include <sys/types.h>
5930 #include <sys/wait.h>
5931 #ifndef WEXITSTATUS
5932 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5933 #endif
5934 #ifndef WIFEXITED
5935 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5936 #endif
5939 main ()
5941 int s;
5942 wait (&s);
5943 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5945 return 0;
5947 _ACEOF
5948 rm -f conftest.$ac_objext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5950 (eval $ac_compile) 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } &&
5957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; } &&
5963 { ac_try='test -s conftest.$ac_objext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 (eval $ac_try) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_cv_header_sys_wait_h=yes
5970 else
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5974 ac_cv_header_sys_wait_h=no
5976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5978 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5979 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5980 if test $ac_cv_header_sys_wait_h = yes; then
5982 cat >>confdefs.h <<\_ACEOF
5983 #define HAVE_SYS_WAIT_H 1
5984 _ACEOF
5989 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5990 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5991 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994 cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h. */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 #ifdef TIME_WITH_SYS_TIME
6001 #include <sys/time.h>
6002 #include <time.h>
6003 #else
6004 #ifdef HAVE_SYS_TIME_H
6005 #include <sys/time.h>
6006 #else
6007 #include <time.h>
6008 #endif
6009 #endif
6010 #ifdef HAVE_UTIME_H
6011 #include <utime.h>
6012 #endif
6014 main ()
6016 static struct utimbuf x; x.actime = x.modtime;
6018 return 0;
6020 _ACEOF
6021 rm -f conftest.$ac_objext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023 (eval $ac_compile) 2>conftest.er1
6024 ac_status=$?
6025 grep -v '^ *+' conftest.er1 >conftest.err
6026 rm -f conftest.er1
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } &&
6030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 (eval $ac_try) 2>&5
6033 ac_status=$?
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; } &&
6036 { ac_try='test -s conftest.$ac_objext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 (eval $ac_try) 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 emacs_cv_struct_utimbuf=yes
6043 else
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6047 emacs_cv_struct_utimbuf=no
6049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6051 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6052 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6053 if test $emacs_cv_struct_utimbuf = yes; then
6055 cat >>confdefs.h <<\_ACEOF
6056 #define HAVE_STRUCT_UTIMBUF 1
6057 _ACEOF
6061 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6062 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6063 if test "${ac_cv_type_signal+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066 cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h. */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072 #include <sys/types.h>
6073 #include <signal.h>
6074 #ifdef signal
6075 # undef signal
6076 #endif
6077 #ifdef __cplusplus
6078 extern "C" void (*signal (int, void (*)(int)))(int);
6079 #else
6080 void (*signal ()) ();
6081 #endif
6084 main ()
6086 int i;
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 ac_cv_type_signal=void
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6117 ac_cv_type_signal=int
6119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6121 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6122 echo "${ECHO_T}$ac_cv_type_signal" >&6
6124 cat >>confdefs.h <<_ACEOF
6125 #define RETSIGTYPE $ac_cv_type_signal
6126 _ACEOF
6130 echo "$as_me:$LINENO: checking for speed_t" >&5
6131 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6132 if test "${emacs_cv_speed_t+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135 cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h. */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 #include <termios.h>
6143 main ()
6145 speed_t x = 1;
6147 return 0;
6149 _ACEOF
6150 rm -f conftest.$ac_objext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6152 (eval $ac_compile) 2>conftest.er1
6153 ac_status=$?
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } &&
6159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 (eval $ac_try) 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; } &&
6165 { ac_try='test -s conftest.$ac_objext'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 (eval $ac_try) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
6171 emacs_cv_speed_t=yes
6172 else
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6176 emacs_cv_speed_t=no
6178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6180 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6181 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6182 if test $emacs_cv_speed_t = yes; then
6184 cat >>confdefs.h <<\_ACEOF
6185 #define HAVE_SPEED_T 1
6186 _ACEOF
6190 echo "$as_me:$LINENO: checking for struct timeval" >&5
6191 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6192 if test "${emacs_cv_struct_timeval+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195 cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h. */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6201 #ifdef TIME_WITH_SYS_TIME
6202 #include <sys/time.h>
6203 #include <time.h>
6204 #else
6205 #ifdef HAVE_SYS_TIME_H
6206 #include <sys/time.h>
6207 #else
6208 #include <time.h>
6209 #endif
6210 #endif
6212 main ()
6214 static struct timeval x; x.tv_sec = x.tv_usec;
6216 return 0;
6218 _ACEOF
6219 rm -f conftest.$ac_objext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221 (eval $ac_compile) 2>conftest.er1
6222 ac_status=$?
6223 grep -v '^ *+' conftest.er1 >conftest.err
6224 rm -f conftest.er1
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 (eval $ac_try) 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; } &&
6234 { ac_try='test -s conftest.$ac_objext'
6235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 (eval $ac_try) 2>&5
6237 ac_status=$?
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; }; then
6240 emacs_cv_struct_timeval=yes
6241 else
6242 echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6245 emacs_cv_struct_timeval=no
6247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6249 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6250 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6251 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6252 if test $emacs_cv_struct_timeval = yes; then
6254 cat >>confdefs.h <<\_ACEOF
6255 #define HAVE_TIMEVAL 1
6256 _ACEOF
6260 echo "$as_me:$LINENO: checking for struct exception" >&5
6261 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6262 if test "${emacs_cv_struct_exception+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 #include <math.h>
6273 main ()
6275 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6277 return 0;
6279 _ACEOF
6280 rm -f conftest.$ac_objext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6282 (eval $ac_compile) 2>conftest.er1
6283 ac_status=$?
6284 grep -v '^ *+' conftest.er1 >conftest.err
6285 rm -f conftest.er1
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; } &&
6295 { ac_try='test -s conftest.$ac_objext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 emacs_cv_struct_exception=yes
6302 else
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6306 emacs_cv_struct_exception=no
6308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6310 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6311 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6312 HAVE_EXCEPTION=$emacs_cv_struct_exception
6313 if test $emacs_cv_struct_exception != yes; then
6315 cat >>confdefs.h <<\_ACEOF
6316 #define NO_MATHERR 1
6317 _ACEOF
6322 for ac_header in sys/socket.h
6324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6326 echo "$as_me:$LINENO: checking for $ac_header" >&5
6327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6333 else
6334 # Is the header compilable?
6335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6337 cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h. */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6343 $ac_includes_default
6344 #include <$ac_header>
6345 _ACEOF
6346 rm -f conftest.$ac_objext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>conftest.er1
6349 ac_status=$?
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; } &&
6361 { ac_try='test -s conftest.$ac_objext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 ac_header_compiler=yes
6368 else
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 ac_header_compiler=no
6374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6376 echo "${ECHO_T}$ac_header_compiler" >&6
6378 # Is the header present?
6379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6381 cat >conftest.$ac_ext <<_ACEOF
6382 /* confdefs.h. */
6383 _ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6387 #include <$ac_header>
6388 _ACEOF
6389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6391 ac_status=$?
6392 grep -v '^ *+' conftest.er1 >conftest.err
6393 rm -f conftest.er1
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } >/dev/null; then
6397 if test -s conftest.err; then
6398 ac_cpp_err=$ac_c_preproc_warn_flag
6399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6400 else
6401 ac_cpp_err=
6403 else
6404 ac_cpp_err=yes
6406 if test -z "$ac_cpp_err"; then
6407 ac_header_preproc=yes
6408 else
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 ac_header_preproc=no
6414 rm -f conftest.err conftest.$ac_ext
6415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6416 echo "${ECHO_T}$ac_header_preproc" >&6
6418 # So? What about this header?
6419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6420 yes:no: )
6421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6425 ac_header_preproc=yes
6427 no:yes:* )
6428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6441 cat <<\_ASBOX
6442 ## ------------------------------------------ ##
6443 ## Report this to the AC_PACKAGE_NAME lists. ##
6444 ## ------------------------------------------ ##
6445 _ASBOX
6447 sed "s/^/$as_me: WARNING: /" >&2
6449 esac
6450 echo "$as_me:$LINENO: checking for $ac_header" >&5
6451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455 eval "$as_ac_Header=\$ac_header_preproc"
6457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6462 cat >>confdefs.h <<_ACEOF
6463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6464 _ACEOF
6468 done
6471 for ac_header in net/if.h
6473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6474 echo "$as_me:$LINENO: checking for $ac_header" >&5
6475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479 cat >conftest.$ac_ext <<_ACEOF
6480 /* confdefs.h. */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 $ac_includes_default
6486 #if HAVE_SYS_SOCKET_H
6487 #include <sys/socket.h>
6488 #endif
6490 #include <$ac_header>
6491 _ACEOF
6492 rm -f conftest.$ac_objext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6494 (eval $ac_compile) 2>conftest.er1
6495 ac_status=$?
6496 grep -v '^ *+' conftest.er1 >conftest.err
6497 rm -f conftest.er1
6498 cat conftest.err >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } &&
6501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 (eval $ac_try) 2>&5
6504 ac_status=$?
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; } &&
6507 { ac_try='test -s conftest.$ac_objext'
6508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509 (eval $ac_try) 2>&5
6510 ac_status=$?
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; }; then
6513 eval "$as_ac_Header=yes"
6514 else
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6518 eval "$as_ac_Header=no"
6520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6525 cat >>confdefs.h <<_ACEOF
6526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6527 _ACEOF
6531 done
6534 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6535 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6536 if test "${ac_cv_struct_tm+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539 cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h. */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6545 #include <sys/types.h>
6546 #include <time.h>
6549 main ()
6551 struct tm *tp; tp->tm_sec;
6553 return 0;
6555 _ACEOF
6556 rm -f conftest.$ac_objext
6557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6558 (eval $ac_compile) 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } &&
6565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 (eval $ac_try) 2>&5
6568 ac_status=$?
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; } &&
6571 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6577 ac_cv_struct_tm=time.h
6578 else
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6582 ac_cv_struct_tm=sys/time.h
6584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6586 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6587 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6588 if test $ac_cv_struct_tm = sys/time.h; then
6590 cat >>confdefs.h <<\_ACEOF
6591 #define TM_IN_SYS_TIME 1
6592 _ACEOF
6596 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6597 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6598 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601 cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h. */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 #include <sys/types.h>
6608 #include <$ac_cv_struct_tm>
6612 main ()
6614 static struct tm ac_aggr;
6615 if (ac_aggr.tm_zone)
6616 return 0;
6618 return 0;
6620 _ACEOF
6621 rm -f conftest.$ac_objext
6622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6623 (eval $ac_compile) 2>conftest.er1
6624 ac_status=$?
6625 grep -v '^ *+' conftest.er1 >conftest.err
6626 rm -f conftest.er1
6627 cat conftest.err >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } &&
6630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 (eval $ac_try) 2>&5
6633 ac_status=$?
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; } &&
6636 { ac_try='test -s conftest.$ac_objext'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 (eval $ac_try) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
6642 ac_cv_member_struct_tm_tm_zone=yes
6643 else
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6647 cat >conftest.$ac_ext <<_ACEOF
6648 /* confdefs.h. */
6649 _ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6653 #include <sys/types.h>
6654 #include <$ac_cv_struct_tm>
6658 main ()
6660 static struct tm ac_aggr;
6661 if (sizeof ac_aggr.tm_zone)
6662 return 0;
6664 return 0;
6666 _ACEOF
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; } &&
6682 { ac_try='test -s conftest.$ac_objext'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; }; then
6688 ac_cv_member_struct_tm_tm_zone=yes
6689 else
6690 echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6693 ac_cv_member_struct_tm_tm_zone=no
6695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6699 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6700 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6701 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6703 cat >>confdefs.h <<_ACEOF
6704 #define HAVE_STRUCT_TM_TM_ZONE 1
6705 _ACEOF
6710 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6712 cat >>confdefs.h <<\_ACEOF
6713 #define HAVE_TM_ZONE 1
6714 _ACEOF
6716 else
6717 echo "$as_me:$LINENO: checking for tzname" >&5
6718 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6719 if test "${ac_cv_var_tzname+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722 cat >conftest.$ac_ext <<_ACEOF
6723 /* confdefs.h. */
6724 _ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6728 #include <time.h>
6729 #ifndef tzname /* For SGI. */
6730 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6731 #endif
6734 main ()
6736 atoi(*tzname);
6738 return 0;
6740 _ACEOF
6741 rm -f conftest.$ac_objext conftest$ac_exeext
6742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743 (eval $ac_link) 2>conftest.er1
6744 ac_status=$?
6745 grep -v '^ *+' conftest.er1 >conftest.err
6746 rm -f conftest.er1
6747 cat conftest.err >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } &&
6750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 (eval $ac_try) 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; } &&
6756 { ac_try='test -s conftest$ac_exeext'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 (eval $ac_try) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
6762 ac_cv_var_tzname=yes
6763 else
6764 echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6767 ac_cv_var_tzname=no
6769 rm -f conftest.err conftest.$ac_objext \
6770 conftest$ac_exeext conftest.$ac_ext
6772 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6773 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6774 if test $ac_cv_var_tzname = yes; then
6776 cat >>confdefs.h <<\_ACEOF
6777 #define HAVE_TZNAME 1
6778 _ACEOF
6783 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6784 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6785 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788 cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h. */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 #include <time.h>
6797 main ()
6799 static struct tm ac_aggr;
6800 if (ac_aggr.tm_gmtoff)
6801 return 0;
6803 return 0;
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808 (eval $ac_compile) 2>conftest.er1
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 (eval $ac_try) 2>&5
6818 ac_status=$?
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; } &&
6821 { ac_try='test -s conftest.$ac_objext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 ac_cv_member_struct_tm_tm_gmtoff=yes
6828 else
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6832 cat >conftest.$ac_ext <<_ACEOF
6833 /* confdefs.h. */
6834 _ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6838 #include <time.h>
6841 main ()
6843 static struct tm ac_aggr;
6844 if (sizeof ac_aggr.tm_gmtoff)
6845 return 0;
6847 return 0;
6849 _ACEOF
6850 rm -f conftest.$ac_objext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852 (eval $ac_compile) 2>conftest.er1
6853 ac_status=$?
6854 grep -v '^ *+' conftest.er1 >conftest.err
6855 rm -f conftest.er1
6856 cat conftest.err >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } &&
6859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 (eval $ac_try) 2>&5
6862 ac_status=$?
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; } &&
6865 { ac_try='test -s conftest.$ac_objext'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 (eval $ac_try) 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; }; then
6871 ac_cv_member_struct_tm_tm_gmtoff=yes
6872 else
6873 echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6876 ac_cv_member_struct_tm_tm_gmtoff=no
6878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6882 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6883 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6884 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6886 cat >>confdefs.h <<\_ACEOF
6887 #define HAVE_TM_GMTOFF 1
6888 _ACEOF
6892 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6893 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6894 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 else
6897 cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h. */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903 $ac_includes_default
6904 #if HAVE_SYS_SOCKET_H
6905 #include <sys/socket.h>
6906 #endif
6907 #if HAVE_NET_IF_H
6908 #include <net/if.h>
6909 #endif
6912 main ()
6914 static struct ifreq ac_aggr;
6915 if (ac_aggr.ifr_flags)
6916 return 0;
6918 return 0;
6920 _ACEOF
6921 rm -f conftest.$ac_objext
6922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6923 (eval $ac_compile) 2>conftest.er1
6924 ac_status=$?
6925 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -f conftest.er1
6927 cat conftest.err >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } &&
6930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 (eval $ac_try) 2>&5
6933 ac_status=$?
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; } &&
6936 { ac_try='test -s conftest.$ac_objext'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6942 ac_cv_member_struct_ifreq_ifr_flags=yes
6943 else
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6947 cat >conftest.$ac_ext <<_ACEOF
6948 /* confdefs.h. */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6953 $ac_includes_default
6954 #if HAVE_SYS_SOCKET_H
6955 #include <sys/socket.h>
6956 #endif
6957 #if HAVE_NET_IF_H
6958 #include <net/if.h>
6959 #endif
6962 main ()
6964 static struct ifreq ac_aggr;
6965 if (sizeof ac_aggr.ifr_flags)
6966 return 0;
6968 return 0;
6970 _ACEOF
6971 rm -f conftest.$ac_objext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973 (eval $ac_compile) 2>conftest.er1
6974 ac_status=$?
6975 grep -v '^ *+' conftest.er1 >conftest.err
6976 rm -f conftest.er1
6977 cat conftest.err >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } &&
6980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 (eval $ac_try) 2>&5
6983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; } &&
6986 { ac_try='test -s conftest.$ac_objext'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 (eval $ac_try) 2>&5
6989 ac_status=$?
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6992 ac_cv_member_struct_ifreq_ifr_flags=yes
6993 else
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6997 ac_cv_member_struct_ifreq_ifr_flags=no
6999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7003 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7004 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7005 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7007 cat >>confdefs.h <<_ACEOF
7008 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7009 _ACEOF
7013 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7014 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7015 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 $ac_includes_default
7025 #if HAVE_SYS_SOCKET_H
7026 #include <sys/socket.h>
7027 #endif
7028 #if HAVE_NET_IF_H
7029 #include <net/if.h>
7030 #endif
7033 main ()
7035 static struct ifreq ac_aggr;
7036 if (ac_aggr.ifr_hwaddr)
7037 return 0;
7039 return 0;
7041 _ACEOF
7042 rm -f conftest.$ac_objext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>conftest.er1
7045 ac_status=$?
7046 grep -v '^ *+' conftest.er1 >conftest.err
7047 rm -f conftest.er1
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; } &&
7057 { ac_try='test -s conftest.$ac_objext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 (eval $ac_try) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7063 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7064 else
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h. */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 $ac_includes_default
7075 #if HAVE_SYS_SOCKET_H
7076 #include <sys/socket.h>
7077 #endif
7078 #if HAVE_NET_IF_H
7079 #include <net/if.h>
7080 #endif
7083 main ()
7085 static struct ifreq ac_aggr;
7086 if (sizeof ac_aggr.ifr_hwaddr)
7087 return 0;
7089 return 0;
7091 _ACEOF
7092 rm -f conftest.$ac_objext
7093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7094 (eval $ac_compile) 2>conftest.er1
7095 ac_status=$?
7096 grep -v '^ *+' conftest.er1 >conftest.err
7097 rm -f conftest.er1
7098 cat conftest.err >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 (eval $ac_try) 2>&5
7104 ac_status=$?
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; } &&
7107 { ac_try='test -s conftest.$ac_objext'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 (eval $ac_try) 2>&5
7110 ac_status=$?
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; }; then
7113 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7114 else
7115 echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7118 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7124 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7125 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7126 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7128 cat >>confdefs.h <<_ACEOF
7129 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7130 _ACEOF
7134 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7135 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7136 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 $ac_includes_default
7146 #if HAVE_SYS_SOCKET_H
7147 #include <sys/socket.h>
7148 #endif
7149 #if HAVE_NET_IF_H
7150 #include <net/if.h>
7151 #endif
7154 main ()
7156 static struct ifreq ac_aggr;
7157 if (ac_aggr.ifr_netmask)
7158 return 0;
7160 return 0;
7162 _ACEOF
7163 rm -f conftest.$ac_objext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7165 (eval $ac_compile) 2>conftest.er1
7166 ac_status=$?
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } &&
7172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; } &&
7178 { ac_try='test -s conftest.$ac_objext'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 (eval $ac_try) 2>&5
7181 ac_status=$?
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; }; then
7184 ac_cv_member_struct_ifreq_ifr_netmask=yes
7185 else
7186 echo "$as_me: failed program was:" >&5
7187 sed 's/^/| /' conftest.$ac_ext >&5
7189 cat >conftest.$ac_ext <<_ACEOF
7190 /* confdefs.h. */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7195 $ac_includes_default
7196 #if HAVE_SYS_SOCKET_H
7197 #include <sys/socket.h>
7198 #endif
7199 #if HAVE_NET_IF_H
7200 #include <net/if.h>
7201 #endif
7204 main ()
7206 static struct ifreq ac_aggr;
7207 if (sizeof ac_aggr.ifr_netmask)
7208 return 0;
7210 return 0;
7212 _ACEOF
7213 rm -f conftest.$ac_objext
7214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215 (eval $ac_compile) 2>conftest.er1
7216 ac_status=$?
7217 grep -v '^ *+' conftest.er1 >conftest.err
7218 rm -f conftest.er1
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 (eval $ac_try) 2>&5
7225 ac_status=$?
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; } &&
7228 { ac_try='test -s conftest.$ac_objext'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 (eval $ac_try) 2>&5
7231 ac_status=$?
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7234 ac_cv_member_struct_ifreq_ifr_netmask=yes
7235 else
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7239 ac_cv_member_struct_ifreq_ifr_netmask=no
7241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7245 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7246 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7247 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7249 cat >>confdefs.h <<_ACEOF
7250 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7251 _ACEOF
7255 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7256 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7257 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260 cat >conftest.$ac_ext <<_ACEOF
7261 /* confdefs.h. */
7262 _ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7266 $ac_includes_default
7267 #if HAVE_SYS_SOCKET_H
7268 #include <sys/socket.h>
7269 #endif
7270 #if HAVE_NET_IF_H
7271 #include <net/if.h>
7272 #endif
7275 main ()
7277 static struct ifreq ac_aggr;
7278 if (ac_aggr.ifr_broadaddr)
7279 return 0;
7281 return 0;
7283 _ACEOF
7284 rm -f conftest.$ac_objext
7285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7286 (eval $ac_compile) 2>conftest.er1
7287 ac_status=$?
7288 grep -v '^ *+' conftest.er1 >conftest.err
7289 rm -f conftest.er1
7290 cat conftest.err >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } &&
7293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try='test -s conftest.$ac_objext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7306 else
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 $ac_includes_default
7317 #if HAVE_SYS_SOCKET_H
7318 #include <sys/socket.h>
7319 #endif
7320 #if HAVE_NET_IF_H
7321 #include <net/if.h>
7322 #endif
7325 main ()
7327 static struct ifreq ac_aggr;
7328 if (sizeof ac_aggr.ifr_broadaddr)
7329 return 0;
7331 return 0;
7333 _ACEOF
7334 rm -f conftest.$ac_objext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336 (eval $ac_compile) 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 (eval $ac_try) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; } &&
7349 { ac_try='test -s conftest.$ac_objext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7356 else
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7360 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7366 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7367 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7368 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7370 cat >>confdefs.h <<_ACEOF
7371 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7372 _ACEOF
7376 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7377 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7378 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 $ac_includes_default
7388 #if HAVE_SYS_SOCKET_H
7389 #include <sys/socket.h>
7390 #endif
7391 #if HAVE_NET_IF_H
7392 #include <net/if.h>
7393 #endif
7396 main ()
7398 static struct ifreq ac_aggr;
7399 if (ac_aggr.ifr_addr)
7400 return 0;
7402 return 0;
7404 _ACEOF
7405 rm -f conftest.$ac_objext
7406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7407 (eval $ac_compile) 2>conftest.er1
7408 ac_status=$?
7409 grep -v '^ *+' conftest.er1 >conftest.err
7410 rm -f conftest.er1
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } &&
7414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; } &&
7420 { ac_try='test -s conftest.$ac_objext'
7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 (eval $ac_try) 2>&5
7423 ac_status=$?
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; }; then
7426 ac_cv_member_struct_ifreq_ifr_addr=yes
7427 else
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7431 cat >conftest.$ac_ext <<_ACEOF
7432 /* confdefs.h. */
7433 _ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 $ac_includes_default
7438 #if HAVE_SYS_SOCKET_H
7439 #include <sys/socket.h>
7440 #endif
7441 #if HAVE_NET_IF_H
7442 #include <net/if.h>
7443 #endif
7446 main ()
7448 static struct ifreq ac_aggr;
7449 if (sizeof ac_aggr.ifr_addr)
7450 return 0;
7452 return 0;
7454 _ACEOF
7455 rm -f conftest.$ac_objext
7456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7457 (eval $ac_compile) 2>conftest.er1
7458 ac_status=$?
7459 grep -v '^ *+' conftest.er1 >conftest.err
7460 rm -f conftest.er1
7461 cat conftest.err >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } &&
7464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_cv_member_struct_ifreq_ifr_addr=yes
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 ac_cv_member_struct_ifreq_ifr_addr=no
7483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7487 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7488 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7489 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7491 cat >>confdefs.h <<_ACEOF
7492 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7493 _ACEOF
7500 echo "$as_me:$LINENO: checking for function prototypes" >&5
7501 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7502 if test "$ac_cv_prog_cc_stdc" != no; then
7503 echo "$as_me:$LINENO: result: yes" >&5
7504 echo "${ECHO_T}yes" >&6
7506 cat >>confdefs.h <<\_ACEOF
7507 #define PROTOTYPES 1
7508 _ACEOF
7511 cat >>confdefs.h <<\_ACEOF
7512 #define __PROTOTYPES 1
7513 _ACEOF
7515 else
7516 echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6
7520 echo "$as_me:$LINENO: checking for working volatile" >&5
7521 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7522 if test "${ac_cv_c_volatile+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525 cat >conftest.$ac_ext <<_ACEOF
7526 /* confdefs.h. */
7527 _ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7533 main ()
7536 volatile int x;
7537 int * volatile y;
7539 return 0;
7541 _ACEOF
7542 rm -f conftest.$ac_objext
7543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7544 (eval $ac_compile) 2>conftest.er1
7545 ac_status=$?
7546 grep -v '^ *+' conftest.er1 >conftest.err
7547 rm -f conftest.er1
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } &&
7551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 (eval $ac_try) 2>&5
7554 ac_status=$?
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; } &&
7557 { ac_try='test -s conftest.$ac_objext'
7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559 (eval $ac_try) 2>&5
7560 ac_status=$?
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; }; then
7563 ac_cv_c_volatile=yes
7564 else
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7568 ac_cv_c_volatile=no
7570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7572 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7573 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7574 if test $ac_cv_c_volatile = no; then
7576 cat >>confdefs.h <<\_ACEOF
7577 #define volatile
7578 _ACEOF
7582 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7583 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7584 if test "${ac_cv_c_const+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 cat >conftest.$ac_ext <<_ACEOF
7588 /* confdefs.h. */
7589 _ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7595 main ()
7597 /* FIXME: Include the comments suggested by Paul. */
7598 #ifndef __cplusplus
7599 /* Ultrix mips cc rejects this. */
7600 typedef int charset[2];
7601 const charset x;
7602 /* SunOS 4.1.1 cc rejects this. */
7603 char const *const *ccp;
7604 char **p;
7605 /* NEC SVR4.0.2 mips cc rejects this. */
7606 struct point {int x, y;};
7607 static struct point const zero = {0,0};
7608 /* AIX XL C 1.02.0.0 rejects this.
7609 It does not let you subtract one const X* pointer from another in
7610 an arm of an if-expression whose if-part is not a constant
7611 expression */
7612 const char *g = "string";
7613 ccp = &g + (g ? g-g : 0);
7614 /* HPUX 7.0 cc rejects these. */
7615 ++ccp;
7616 p = (char**) ccp;
7617 ccp = (char const *const *) p;
7618 { /* SCO 3.2v4 cc rejects this. */
7619 char *t;
7620 char const *s = 0 ? (char *) 0 : (char const *) 0;
7622 *t++ = 0;
7624 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7625 int x[] = {25, 17};
7626 const int *foo = &x[0];
7627 ++foo;
7629 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7630 typedef const int *iptr;
7631 iptr p = 0;
7632 ++p;
7634 { /* AIX XL C 1.02.0.0 rejects this saying
7635 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7636 struct s { int j; const int *ap[3]; };
7637 struct s *b; b->j = 5;
7639 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7640 const int foo = 10;
7642 #endif
7645 return 0;
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659 (eval $ac_try) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; } &&
7663 { ac_try='test -s conftest.$ac_objext'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7669 ac_cv_c_const=yes
7670 else
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7674 ac_cv_c_const=no
7676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7678 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7679 echo "${ECHO_T}$ac_cv_c_const" >&6
7680 if test $ac_cv_c_const = no; then
7682 cat >>confdefs.h <<\_ACEOF
7683 #define const
7684 _ACEOF
7688 echo "$as_me:$LINENO: checking for void * support" >&5
7689 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7690 if test "${emacs_cv_void_star+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693 cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h. */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7701 main ()
7703 void * foo;
7705 return 0;
7707 _ACEOF
7708 rm -f conftest.$ac_objext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7710 (eval $ac_compile) 2>conftest.er1
7711 ac_status=$?
7712 grep -v '^ *+' conftest.er1 >conftest.err
7713 rm -f conftest.er1
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } &&
7717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 emacs_cv_void_star=yes
7730 else
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7734 emacs_cv_void_star=no
7736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7738 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7739 echo "${ECHO_T}$emacs_cv_void_star" >&6
7740 if test $emacs_cv_void_star = yes; then
7741 cat >>confdefs.h <<\_ACEOF
7742 #define POINTER_TYPE void
7743 _ACEOF
7745 else
7746 cat >>confdefs.h <<\_ACEOF
7747 #define POINTER_TYPE char
7748 _ACEOF
7756 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7757 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7758 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7759 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762 cat >conftest.make <<\_ACEOF
7763 all:
7764 @echo 'ac_maketemp="$(MAKE)"'
7765 _ACEOF
7766 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7767 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7768 if test -n "$ac_maketemp"; then
7769 eval ac_cv_prog_make_${ac_make}_set=yes
7770 else
7771 eval ac_cv_prog_make_${ac_make}_set=no
7773 rm -f conftest.make
7775 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7776 echo "$as_me:$LINENO: result: yes" >&5
7777 echo "${ECHO_T}yes" >&6
7778 SET_MAKE=
7779 else
7780 echo "$as_me:$LINENO: result: no" >&5
7781 echo "${ECHO_T}no" >&6
7782 SET_MAKE="MAKE=${MAKE-make}"
7786 echo "$as_me:$LINENO: checking for long file names" >&5
7787 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7788 if test "${ac_cv_sys_long_file_names+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791 ac_cv_sys_long_file_names=yes
7792 # Test for long file names in all the places we know might matter:
7793 # . the current directory, where building will happen
7794 # $prefix/lib where we will be installing things
7795 # $exec_prefix/lib likewise
7796 # eval it to expand exec_prefix.
7797 # $TMPDIR if set, where it might want to write temporary files
7798 # if $TMPDIR is not set:
7799 # /tmp where it might want to write temporary files
7800 # /var/tmp likewise
7801 # /usr/tmp likewise
7802 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7803 ac_tmpdirs=$TMPDIR
7804 else
7805 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7807 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7808 test -d $ac_dir || continue
7809 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7810 ac_xdir=$ac_dir/cf$$
7811 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7812 ac_tf1=$ac_xdir/conftest9012345
7813 ac_tf2=$ac_xdir/conftest9012346
7814 (echo 1 >$ac_tf1) 2>/dev/null
7815 (echo 2 >$ac_tf2) 2>/dev/null
7816 ac_val=`cat $ac_tf1 2>/dev/null`
7817 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7818 ac_cv_sys_long_file_names=no
7819 rm -rf $ac_xdir 2>/dev/null
7820 break
7822 rm -rf $ac_xdir 2>/dev/null
7823 done
7825 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7826 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7827 if test $ac_cv_sys_long_file_names = yes; then
7829 cat >>confdefs.h <<\_ACEOF
7830 #define HAVE_LONG_FILE_NAMES 1
7831 _ACEOF
7836 #### Choose a window system.
7838 echo "$as_me:$LINENO: checking for X" >&5
7839 echo $ECHO_N "checking for X... $ECHO_C" >&6
7841 ac_path_x_has_been_run=yes
7843 # Check whether --with-x or --without-x was given.
7844 if test "${with_x+set}" = set; then
7845 withval="$with_x"
7848 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7849 if test "x$with_x" = xno; then
7850 # The user explicitly disabled X.
7851 have_x=disabled
7852 else
7853 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7854 # Both variables are already set.
7855 have_x=yes
7856 else
7857 if test "${ac_cv_have_x+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 else
7860 # One or both of the vars are not set, and there is no cached value.
7861 ac_x_includes=no ac_x_libraries=no
7862 rm -fr conftest.dir
7863 if mkdir conftest.dir; then
7864 cd conftest.dir
7865 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7866 cat >Imakefile <<'_ACEOF'
7867 acfindx:
7868 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7869 _ACEOF
7870 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7871 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7872 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7873 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7874 for ac_extension in a so sl; do
7875 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7876 test -f $ac_im_libdir/libX11.$ac_extension; then
7877 ac_im_usrlibdir=$ac_im_libdir; break
7879 done
7880 # Screen out bogus values from the imake configuration. They are
7881 # bogus both because they are the default anyway, and because
7882 # using them would break gcc on systems where it needs fixed includes.
7883 case $ac_im_incroot in
7884 /usr/include) ;;
7885 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7886 esac
7887 case $ac_im_usrlibdir in
7888 /usr/lib | /lib) ;;
7889 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7890 esac
7892 cd ..
7893 rm -fr conftest.dir
7896 # Standard set of common directories for X headers.
7897 # Check X11 before X11Rn because it is often a symlink to the current release.
7898 ac_x_header_dirs='
7899 /usr/X11/include
7900 /usr/X11R6/include
7901 /usr/X11R5/include
7902 /usr/X11R4/include
7904 /usr/include/X11
7905 /usr/include/X11R6
7906 /usr/include/X11R5
7907 /usr/include/X11R4
7909 /usr/local/X11/include
7910 /usr/local/X11R6/include
7911 /usr/local/X11R5/include
7912 /usr/local/X11R4/include
7914 /usr/local/include/X11
7915 /usr/local/include/X11R6
7916 /usr/local/include/X11R5
7917 /usr/local/include/X11R4
7919 /usr/X386/include
7920 /usr/x386/include
7921 /usr/XFree86/include/X11
7923 /usr/include
7924 /usr/local/include
7925 /usr/unsupported/include
7926 /usr/athena/include
7927 /usr/local/x11r5/include
7928 /usr/lpp/Xamples/include
7930 /usr/openwin/include
7931 /usr/openwin/share/include'
7933 if test "$ac_x_includes" = no; then
7934 # Guess where to find include files, by looking for a specified header file.
7935 # First, try using that file with no special directory specified.
7936 cat >conftest.$ac_ext <<_ACEOF
7937 /* confdefs.h. */
7938 _ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7942 #include <X11/Intrinsic.h>
7943 _ACEOF
7944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } >/dev/null; then
7952 if test -s conftest.err; then
7953 ac_cpp_err=$ac_c_preproc_warn_flag
7954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7955 else
7956 ac_cpp_err=
7958 else
7959 ac_cpp_err=yes
7961 if test -z "$ac_cpp_err"; then
7962 # We can compile using X headers with no special include directory.
7963 ac_x_includes=
7964 else
7965 echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 for ac_dir in $ac_x_header_dirs; do
7969 if test -r "$ac_dir/X11/Intrinsic.h"; then
7970 ac_x_includes=$ac_dir
7971 break
7973 done
7975 rm -f conftest.err conftest.$ac_ext
7976 fi # $ac_x_includes = no
7978 if test "$ac_x_libraries" = no; then
7979 # Check for the libraries.
7980 # See if we find them without any special options.
7981 # Don't add to $LIBS permanently.
7982 ac_save_LIBS=$LIBS
7983 LIBS="-lXt $LIBS"
7984 cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h. */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7990 #include <X11/Intrinsic.h>
7992 main ()
7994 XtMalloc (0)
7996 return 0;
7998 _ACEOF
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001 (eval $ac_link) 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try='test -s conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 LIBS=$ac_save_LIBS
8021 # We can link X programs with no special library path.
8022 ac_x_libraries=
8023 else
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8027 LIBS=$ac_save_LIBS
8028 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8030 # Don't even attempt the hair of trying to link an X program!
8031 for ac_extension in a so sl; do
8032 if test -r $ac_dir/libXt.$ac_extension; then
8033 ac_x_libraries=$ac_dir
8034 break 2
8036 done
8037 done
8039 rm -f conftest.err conftest.$ac_objext \
8040 conftest$ac_exeext conftest.$ac_ext
8041 fi # $ac_x_libraries = no
8043 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8044 # Didn't find X anywhere. Cache the known absence of X.
8045 ac_cv_have_x="have_x=no"
8046 else
8047 # Record where we found X for the cache.
8048 ac_cv_have_x="have_x=yes \
8049 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8054 eval "$ac_cv_have_x"
8055 fi # $with_x != no
8057 if test "$have_x" != yes; then
8058 echo "$as_me:$LINENO: result: $have_x" >&5
8059 echo "${ECHO_T}$have_x" >&6
8060 no_x=yes
8061 else
8062 # If each of the values was on the command line, it overrides each guess.
8063 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8064 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8065 # Update the cache value to reflect the command line values.
8066 ac_cv_have_x="have_x=yes \
8067 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8068 # It might be that x_includes is empty (headers are found in the
8069 # standard search path. Then output the corresponding message
8070 ac_out_x_includes=$x_includes
8071 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8072 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8073 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8076 if test "$no_x" = yes; then
8077 window_system=none
8078 else
8079 window_system=x11
8082 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8083 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8084 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8085 x_default_search_path=""
8086 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8087 x_search_path="\
8088 ${x_library}/X11/%L/%T/%N%C%S:\
8089 ${x_library}/X11/%l/%T/%N%C%S:\
8090 ${x_library}/X11/%T/%N%C%S:\
8091 ${x_library}/X11/%L/%T/%N%S:\
8092 ${x_library}/X11/%l/%T/%N%S:\
8093 ${x_library}/X11/%T/%N%S"
8094 if test x"${x_default_search_path}" = x; then
8095 x_default_search_path=${x_search_path}
8096 else
8097 x_default_search_path="${x_search_path}:${x_default_search_path}"
8099 done
8101 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8102 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8105 if test x"${x_includes}" = x; then
8106 bitmapdir=/usr/include/X11/bitmaps
8107 else
8108 # accumulate include directories that have X11 bitmap subdirectories
8109 bmd_acc="dummyval"
8110 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8111 if test -d "${bmd}/X11/bitmaps"; then
8112 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8114 if test -d "${bmd}/bitmaps"; then
8115 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8117 done
8118 if test ${bmd_acc} != "dummyval"; then
8119 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8123 case "${window_system}" in
8124 x11 )
8125 HAVE_X_WINDOWS=yes
8126 HAVE_X11=yes
8127 case "${with_x_toolkit}" in
8128 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8129 motif ) USE_X_TOOLKIT=MOTIF ;;
8130 gtk ) with_gtk=yes
8131 USE_X_TOOLKIT=none ;;
8132 no ) USE_X_TOOLKIT=none ;;
8133 * ) USE_X_TOOLKIT=maybe ;;
8134 esac
8136 none )
8137 HAVE_X_WINDOWS=no
8138 HAVE_X11=no
8139 USE_X_TOOLKIT=none
8141 esac
8143 ### If we're using X11, we should use the X menu package.
8144 HAVE_MENUS=no
8145 case ${HAVE_X11} in
8146 yes ) HAVE_MENUS=yes ;;
8147 esac
8149 if test "${opsys}" = "hpux9"; then
8150 case "${x_libraries}" in
8151 *X11R4* )
8152 opsysfile="s/hpux9-x11r4.h"
8154 esac
8157 if test "${opsys}" = "hpux9shr"; then
8158 case "${x_libraries}" in
8159 *X11R4* )
8160 opsysfile="s/hpux9shxr4.h"
8162 esac
8165 ### Compute the unexec source name from the object name.
8166 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8168 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8169 # Assume not, until told otherwise.
8170 GNU_MALLOC=yes
8171 doug_lea_malloc=yes
8172 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8173 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8174 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h. */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8185 #define malloc_get_state innocuous_malloc_get_state
8187 /* System header to define __stub macros and hopefully few prototypes,
8188 which can conflict with char malloc_get_state (); below.
8189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8190 <limits.h> exists even on freestanding compilers. */
8192 #ifdef __STDC__
8193 # include <limits.h>
8194 #else
8195 # include <assert.h>
8196 #endif
8198 #undef malloc_get_state
8200 /* Override any gcc2 internal prototype to avoid an error. */
8201 #ifdef __cplusplus
8202 extern "C"
8204 #endif
8205 /* We use char because int might match the return type of a gcc2
8206 builtin and then its argument prototype would still apply. */
8207 char malloc_get_state ();
8208 /* The GNU C library defines this for functions which it implements
8209 to always fail with ENOSYS. Some functions are actually named
8210 something starting with __ and the normal name is an alias. */
8211 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8212 choke me
8213 #else
8214 char (*f) () = malloc_get_state;
8215 #endif
8216 #ifdef __cplusplus
8218 #endif
8221 main ()
8223 return f != malloc_get_state;
8225 return 0;
8227 _ACEOF
8228 rm -f conftest.$ac_objext conftest$ac_exeext
8229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8230 (eval $ac_link) 2>conftest.er1
8231 ac_status=$?
8232 grep -v '^ *+' conftest.er1 >conftest.err
8233 rm -f conftest.er1
8234 cat conftest.err >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } &&
8237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; } &&
8243 { ac_try='test -s conftest$ac_exeext'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 (eval $ac_try) 2>&5
8246 ac_status=$?
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; }; then
8249 ac_cv_func_malloc_get_state=yes
8250 else
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8254 ac_cv_func_malloc_get_state=no
8256 rm -f conftest.err conftest.$ac_objext \
8257 conftest$ac_exeext conftest.$ac_ext
8259 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8260 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8261 if test $ac_cv_func_malloc_get_state = yes; then
8263 else
8264 doug_lea_malloc=no
8267 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8268 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8269 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272 cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h. */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8280 #define malloc_set_state innocuous_malloc_set_state
8282 /* System header to define __stub macros and hopefully few prototypes,
8283 which can conflict with char malloc_set_state (); below.
8284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8285 <limits.h> exists even on freestanding compilers. */
8287 #ifdef __STDC__
8288 # include <limits.h>
8289 #else
8290 # include <assert.h>
8291 #endif
8293 #undef malloc_set_state
8295 /* Override any gcc2 internal prototype to avoid an error. */
8296 #ifdef __cplusplus
8297 extern "C"
8299 #endif
8300 /* We use char because int might match the return type of a gcc2
8301 builtin and then its argument prototype would still apply. */
8302 char malloc_set_state ();
8303 /* The GNU C library defines this for functions which it implements
8304 to always fail with ENOSYS. Some functions are actually named
8305 something starting with __ and the normal name is an alias. */
8306 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8307 choke me
8308 #else
8309 char (*f) () = malloc_set_state;
8310 #endif
8311 #ifdef __cplusplus
8313 #endif
8316 main ()
8318 return f != malloc_set_state;
8320 return 0;
8322 _ACEOF
8323 rm -f conftest.$ac_objext conftest$ac_exeext
8324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8325 (eval $ac_link) 2>conftest.er1
8326 ac_status=$?
8327 grep -v '^ *+' conftest.er1 >conftest.err
8328 rm -f conftest.er1
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } &&
8332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest$ac_exeext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 ac_cv_func_malloc_set_state=yes
8345 else
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8349 ac_cv_func_malloc_set_state=no
8351 rm -f conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8354 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8355 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8356 if test $ac_cv_func_malloc_set_state = yes; then
8358 else
8359 doug_lea_malloc=no
8362 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8363 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8364 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h. */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 extern void (* __after_morecore_hook)();
8375 main ()
8377 __after_morecore_hook = 0
8379 return 0;
8381 _ACEOF
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384 (eval $ac_link) 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest$ac_exeext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 emacs_cv_var___after_morecore_hook=yes
8404 else
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8408 emacs_cv_var___after_morecore_hook=no
8410 rm -f conftest.err conftest.$ac_objext \
8411 conftest$ac_exeext conftest.$ac_ext
8413 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8414 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8415 if test $emacs_cv_var___after_morecore_hook = no; then
8416 doug_lea_malloc=no
8418 if test "${system_malloc}" = "yes"; then
8419 GNU_MALLOC=no
8420 GNU_MALLOC_reason="
8421 (The GNU allocators don't work with this system configuration.)"
8423 if test "$doug_lea_malloc" = "yes" ; then
8424 if test "$GNU_MALLOC" = yes ; then
8425 GNU_MALLOC_reason="
8426 (Using Doug Lea's new malloc from the GNU C Library.)"
8429 cat >>confdefs.h <<\_ACEOF
8430 #define DOUG_LEA_MALLOC 1
8431 _ACEOF
8435 if test x"${REL_ALLOC}" = x; then
8436 REL_ALLOC=${GNU_MALLOC}
8442 for ac_header in stdlib.h unistd.h
8444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8446 echo "$as_me:$LINENO: checking for $ac_header" >&5
8447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8453 else
8454 # Is the header compilable?
8455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h. */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8463 $ac_includes_default
8464 #include <$ac_header>
8465 _ACEOF
8466 rm -f conftest.$ac_objext
8467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8468 (eval $ac_compile) 2>conftest.er1
8469 ac_status=$?
8470 grep -v '^ *+' conftest.er1 >conftest.err
8471 rm -f conftest.er1
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 (eval $ac_try) 2>&5
8478 ac_status=$?
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; } &&
8481 { ac_try='test -s conftest.$ac_objext'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 (eval $ac_try) 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; }; then
8487 ac_header_compiler=yes
8488 else
8489 echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8492 ac_header_compiler=no
8494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8496 echo "${ECHO_T}$ac_header_compiler" >&6
8498 # Is the header present?
8499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8501 cat >conftest.$ac_ext <<_ACEOF
8502 /* confdefs.h. */
8503 _ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8507 #include <$ac_header>
8508 _ACEOF
8509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8511 ac_status=$?
8512 grep -v '^ *+' conftest.er1 >conftest.err
8513 rm -f conftest.er1
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } >/dev/null; then
8517 if test -s conftest.err; then
8518 ac_cpp_err=$ac_c_preproc_warn_flag
8519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8520 else
8521 ac_cpp_err=
8523 else
8524 ac_cpp_err=yes
8526 if test -z "$ac_cpp_err"; then
8527 ac_header_preproc=yes
8528 else
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8532 ac_header_preproc=no
8534 rm -f conftest.err conftest.$ac_ext
8535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8536 echo "${ECHO_T}$ac_header_preproc" >&6
8538 # So? What about this header?
8539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8540 yes:no: )
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8545 ac_header_preproc=yes
8547 no:yes:* )
8548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8561 cat <<\_ASBOX
8562 ## ------------------------------------------ ##
8563 ## Report this to the AC_PACKAGE_NAME lists. ##
8564 ## ------------------------------------------ ##
8565 _ASBOX
8567 sed "s/^/$as_me: WARNING: /" >&2
8569 esac
8570 echo "$as_me:$LINENO: checking for $ac_header" >&5
8571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 eval "$as_ac_Header=\$ac_header_preproc"
8577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8582 cat >>confdefs.h <<_ACEOF
8583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8584 _ACEOF
8588 done
8591 for ac_func in getpagesize
8593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8594 echo "$as_me:$LINENO: checking for $ac_func" >&5
8595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8596 if eval "test \"\${$as_ac_var+set}\" = set"; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599 cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h. */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8607 #define $ac_func innocuous_$ac_func
8609 /* System header to define __stub macros and hopefully few prototypes,
8610 which can conflict with char $ac_func (); below.
8611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8612 <limits.h> exists even on freestanding compilers. */
8614 #ifdef __STDC__
8615 # include <limits.h>
8616 #else
8617 # include <assert.h>
8618 #endif
8620 #undef $ac_func
8622 /* Override any gcc2 internal prototype to avoid an error. */
8623 #ifdef __cplusplus
8624 extern "C"
8626 #endif
8627 /* We use char because int might match the return type of a gcc2
8628 builtin and then its argument prototype would still apply. */
8629 char $ac_func ();
8630 /* The GNU C library defines this for functions which it implements
8631 to always fail with ENOSYS. Some functions are actually named
8632 something starting with __ and the normal name is an alias. */
8633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8634 choke me
8635 #else
8636 char (*f) () = $ac_func;
8637 #endif
8638 #ifdef __cplusplus
8640 #endif
8643 main ()
8645 return f != $ac_func;
8647 return 0;
8649 _ACEOF
8650 rm -f conftest.$ac_objext conftest$ac_exeext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8652 (eval $ac_link) 2>conftest.er1
8653 ac_status=$?
8654 grep -v '^ *+' conftest.er1 >conftest.err
8655 rm -f conftest.er1
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; } &&
8665 { ac_try='test -s conftest$ac_exeext'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 (eval $ac_try) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671 eval "$as_ac_var=yes"
8672 else
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8676 eval "$as_ac_var=no"
8678 rm -f conftest.err conftest.$ac_objext \
8679 conftest$ac_exeext conftest.$ac_ext
8681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8683 if test `eval echo '${'$as_ac_var'}'` = yes; then
8684 cat >>confdefs.h <<_ACEOF
8685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8686 _ACEOF
8689 done
8691 echo "$as_me:$LINENO: checking for working mmap" >&5
8692 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8693 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696 if test "$cross_compiling" = yes; then
8697 ac_cv_func_mmap_fixed_mapped=no
8698 else
8699 cat >conftest.$ac_ext <<_ACEOF
8700 /* confdefs.h. */
8701 _ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8705 $ac_includes_default
8706 /* malloc might have been renamed as rpl_malloc. */
8707 #undef malloc
8709 /* Thanks to Mike Haertel and Jim Avera for this test.
8710 Here is a matrix of mmap possibilities:
8711 mmap private not fixed
8712 mmap private fixed at somewhere currently unmapped
8713 mmap private fixed at somewhere already mapped
8714 mmap shared not fixed
8715 mmap shared fixed at somewhere currently unmapped
8716 mmap shared fixed at somewhere already mapped
8717 For private mappings, we should verify that changes cannot be read()
8718 back from the file, nor mmap's back from the file at a different
8719 address. (There have been systems where private was not correctly
8720 implemented like the infamous i386 svr4.0, and systems where the
8721 VM page cache was not coherent with the file system buffer cache
8722 like early versions of FreeBSD and possibly contemporary NetBSD.)
8723 For shared mappings, we should conversely verify that changes get
8724 propagated back to all the places they're supposed to be.
8726 Grep wants private fixed already mapped.
8727 The main things grep needs to know about mmap are:
8728 * does it exist and is it safe to write into the mmap'd area
8729 * how to use it (BSD variants) */
8731 #include <fcntl.h>
8732 #include <sys/mman.h>
8734 #if !STDC_HEADERS && !HAVE_STDLIB_H
8735 char *malloc ();
8736 #endif
8738 /* This mess was copied from the GNU getpagesize.h. */
8739 #if !HAVE_GETPAGESIZE
8740 /* Assume that all systems that can run configure have sys/param.h. */
8741 # if !HAVE_SYS_PARAM_H
8742 # define HAVE_SYS_PARAM_H 1
8743 # endif
8745 # ifdef _SC_PAGESIZE
8746 # define getpagesize() sysconf(_SC_PAGESIZE)
8747 # else /* no _SC_PAGESIZE */
8748 # if HAVE_SYS_PARAM_H
8749 # include <sys/param.h>
8750 # ifdef EXEC_PAGESIZE
8751 # define getpagesize() EXEC_PAGESIZE
8752 # else /* no EXEC_PAGESIZE */
8753 # ifdef NBPG
8754 # define getpagesize() NBPG * CLSIZE
8755 # ifndef CLSIZE
8756 # define CLSIZE 1
8757 # endif /* no CLSIZE */
8758 # else /* no NBPG */
8759 # ifdef NBPC
8760 # define getpagesize() NBPC
8761 # else /* no NBPC */
8762 # ifdef PAGESIZE
8763 # define getpagesize() PAGESIZE
8764 # endif /* PAGESIZE */
8765 # endif /* no NBPC */
8766 # endif /* no NBPG */
8767 # endif /* no EXEC_PAGESIZE */
8768 # else /* no HAVE_SYS_PARAM_H */
8769 # define getpagesize() 8192 /* punt totally */
8770 # endif /* no HAVE_SYS_PARAM_H */
8771 # endif /* no _SC_PAGESIZE */
8773 #endif /* no HAVE_GETPAGESIZE */
8776 main ()
8778 char *data, *data2, *data3;
8779 int i, pagesize;
8780 int fd;
8782 pagesize = getpagesize ();
8784 /* First, make a file with some known garbage in it. */
8785 data = (char *) malloc (pagesize);
8786 if (!data)
8787 exit (1);
8788 for (i = 0; i < pagesize; ++i)
8789 *(data + i) = rand ();
8790 umask (0);
8791 fd = creat ("conftest.mmap", 0600);
8792 if (fd < 0)
8793 exit (1);
8794 if (write (fd, data, pagesize) != pagesize)
8795 exit (1);
8796 close (fd);
8798 /* Next, try to mmap the file at a fixed address which already has
8799 something else allocated at it. If we can, also make sure that
8800 we see the same garbage. */
8801 fd = open ("conftest.mmap", O_RDWR);
8802 if (fd < 0)
8803 exit (1);
8804 data2 = (char *) malloc (2 * pagesize);
8805 if (!data2)
8806 exit (1);
8807 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8808 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8809 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8810 exit (1);
8811 for (i = 0; i < pagesize; ++i)
8812 if (*(data + i) != *(data2 + i))
8813 exit (1);
8815 /* Finally, make sure that changes to the mapped area do not
8816 percolate back to the file as seen by read(). (This is a bug on
8817 some variants of i386 svr4.0.) */
8818 for (i = 0; i < pagesize; ++i)
8819 *(data2 + i) = *(data2 + i) + 1;
8820 data3 = (char *) malloc (pagesize);
8821 if (!data3)
8822 exit (1);
8823 if (read (fd, data3, pagesize) != pagesize)
8824 exit (1);
8825 for (i = 0; i < pagesize; ++i)
8826 if (*(data + i) != *(data3 + i))
8827 exit (1);
8828 close (fd);
8829 exit (0);
8831 _ACEOF
8832 rm -f conftest$ac_exeext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834 (eval $ac_link) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 (eval $ac_try) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8843 ac_cv_func_mmap_fixed_mapped=yes
8844 else
8845 echo "$as_me: program exited with status $ac_status" >&5
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8849 ( exit $ac_status )
8850 ac_cv_func_mmap_fixed_mapped=no
8852 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8855 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8856 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8857 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8859 cat >>confdefs.h <<\_ACEOF
8860 #define HAVE_MMAP 1
8861 _ACEOF
8864 rm -f conftest.mmap
8866 if test $use_mmap_for_buffers = yes; then
8867 REL_ALLOC=no
8870 LIBS="$libsrc_libs $LIBS"
8873 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8874 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8875 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 else
8878 ac_check_lib_save_LIBS=$LIBS
8879 LIBS="-ldnet $LIBS"
8880 cat >conftest.$ac_ext <<_ACEOF
8881 /* confdefs.h. */
8882 _ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8887 /* Override any gcc2 internal prototype to avoid an error. */
8888 #ifdef __cplusplus
8889 extern "C"
8890 #endif
8891 /* We use char because int might match the return type of a gcc2
8892 builtin and then its argument prototype would still apply. */
8893 char dnet_ntoa ();
8895 main ()
8897 dnet_ntoa ();
8899 return 0;
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904 (eval $ac_link) 2>conftest.er1
8905 ac_status=$?
8906 grep -v '^ *+' conftest.er1 >conftest.err
8907 rm -f conftest.er1
8908 cat conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 (eval $ac_try) 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; } &&
8917 { ac_try='test -s conftest$ac_exeext'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 (eval $ac_try) 2>&5
8920 ac_status=$?
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; }; then
8923 ac_cv_lib_dnet_dnet_ntoa=yes
8924 else
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 ac_cv_lib_dnet_dnet_ntoa=no
8930 rm -f conftest.err conftest.$ac_objext \
8931 conftest$ac_exeext conftest.$ac_ext
8932 LIBS=$ac_check_lib_save_LIBS
8934 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8935 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8936 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8937 cat >>confdefs.h <<_ACEOF
8938 #define HAVE_LIBDNET 1
8939 _ACEOF
8941 LIBS="-ldnet $LIBS"
8946 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8947 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8948 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
8951 ac_check_lib_save_LIBS=$LIBS
8952 LIBS="-lXbsd $LIBS"
8953 cat >conftest.$ac_ext <<_ACEOF
8954 /* confdefs.h. */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8962 main ()
8964 main ();
8966 return 0;
8968 _ACEOF
8969 rm -f conftest.$ac_objext conftest$ac_exeext
8970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8971 (eval $ac_link) 2>conftest.er1
8972 ac_status=$?
8973 grep -v '^ *+' conftest.er1 >conftest.err
8974 rm -f conftest.er1
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 (eval $ac_try) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } &&
8984 { ac_try='test -s conftest$ac_exeext'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; }; then
8990 ac_cv_lib_Xbsd_main=yes
8991 else
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8995 ac_cv_lib_Xbsd_main=no
8997 rm -f conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
8999 LIBS=$ac_check_lib_save_LIBS
9001 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9002 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9003 if test $ac_cv_lib_Xbsd_main = yes; then
9004 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9009 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9010 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9011 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014 ac_check_lib_save_LIBS=$LIBS
9015 LIBS="-lpthreads $LIBS"
9016 cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h. */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9023 /* Override any gcc2 internal prototype to avoid an error. */
9024 #ifdef __cplusplus
9025 extern "C"
9026 #endif
9027 /* We use char because int might match the return type of a gcc2
9028 builtin and then its argument prototype would still apply. */
9029 char cma_open ();
9031 main ()
9033 cma_open ();
9035 return 0;
9037 _ACEOF
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9040 (eval $ac_link) 2>conftest.er1
9041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } &&
9047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 (eval $ac_try) 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; } &&
9053 { ac_try='test -s conftest$ac_exeext'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 (eval $ac_try) 2>&5
9056 ac_status=$?
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; }; then
9059 ac_cv_lib_pthreads_cma_open=yes
9060 else
9061 echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9064 ac_cv_lib_pthreads_cma_open=no
9066 rm -f conftest.err conftest.$ac_objext \
9067 conftest$ac_exeext conftest.$ac_ext
9068 LIBS=$ac_check_lib_save_LIBS
9070 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9071 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9072 if test $ac_cv_lib_pthreads_cma_open = yes; then
9073 cat >>confdefs.h <<_ACEOF
9074 #define HAVE_LIBPTHREADS 1
9075 _ACEOF
9077 LIBS="-lpthreads $LIBS"
9082 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9083 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9084 if test -d /usr/X386/include; then
9085 HAVE_XFREE386=yes
9086 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9087 else
9088 HAVE_XFREE386=no
9090 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9091 echo "${ECHO_T}$HAVE_XFREE386" >&6
9094 case ${host_os} in
9095 aix*)
9096 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9097 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9098 if test "${gdb_cv_bigtoc+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9102 case $GCC in
9103 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9104 *) gdb_cv_bigtoc=-bbigtoc ;;
9105 esac
9107 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h. */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9116 main ()
9118 int i;
9120 return 0;
9122 _ACEOF
9123 rm -f conftest.$ac_objext conftest$ac_exeext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9125 (eval $ac_link) 2>conftest.er1
9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; } &&
9138 { ac_try='test -s conftest$ac_exeext'
9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 (eval $ac_try) 2>&5
9141 ac_status=$?
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; }; then
9145 else
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9149 gdb_cv_bigtoc=
9151 rm -f conftest.err conftest.$ac_objext \
9152 conftest$ac_exeext conftest.$ac_ext
9155 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9156 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9158 esac
9160 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9161 # used for the tests that follow. We set them back to REAL_CFLAGS and
9162 # REAL_CPPFLAGS later on.
9164 REAL_CPPFLAGS="$CPPFLAGS"
9166 if test "${HAVE_X11}" = "yes"; then
9167 DEFS="$C_SWITCH_X_SITE $DEFS"
9168 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9169 LIBS="$LIBX $LIBS"
9170 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9171 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9173 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9174 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9175 # but it's more convenient here to set LD_RUN_PATH
9176 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9177 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9178 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9179 export LD_RUN_PATH
9182 if test "${opsys}" = "gnu-linux"; then
9183 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9184 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h. */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9193 main ()
9195 XOpenDisplay ("foo");
9197 return 0;
9199 _ACEOF
9200 rm -f conftest.$ac_objext conftest$ac_exeext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9202 (eval $ac_link) 2>conftest.er1
9203 ac_status=$?
9204 grep -v '^ *+' conftest.er1 >conftest.err
9205 rm -f conftest.er1
9206 cat conftest.err >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } &&
9209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; } &&
9215 { ac_try='test -s conftest$ac_exeext'
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217 (eval $ac_try) 2>&5
9218 ac_status=$?
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; }; then
9221 xlinux_first_failure=no
9222 else
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 xlinux_first_failure=yes
9228 rm -f conftest.err conftest.$ac_objext \
9229 conftest$ac_exeext conftest.$ac_ext
9230 if test "${xlinux_first_failure}" = "yes"; then
9231 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9232 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9233 OLD_CPPFLAGS="$CPPFLAGS"
9234 OLD_LIBS="$LIBS"
9235 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9236 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9237 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9238 LIBS="$LIBS -b i486-linuxaout"
9239 cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h. */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9247 main ()
9249 XOpenDisplay ("foo");
9251 return 0;
9253 _ACEOF
9254 rm -f conftest.$ac_objext conftest$ac_exeext
9255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9256 (eval $ac_link) 2>conftest.er1
9257 ac_status=$?
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } &&
9263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 (eval $ac_try) 2>&5
9266 ac_status=$?
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; } &&
9269 { ac_try='test -s conftest$ac_exeext'
9270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 (eval $ac_try) 2>&5
9272 ac_status=$?
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; }; then
9275 xlinux_second_failure=no
9276 else
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9280 xlinux_second_failure=yes
9282 rm -f conftest.err conftest.$ac_objext \
9283 conftest$ac_exeext conftest.$ac_ext
9284 if test "${xlinux_second_failure}" = "yes"; then
9285 # If we get the same failure with -b, there is no use adding -b.
9286 # So take it out. This plays safe.
9287 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9288 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9289 CPPFLAGS="$OLD_CPPFLAGS"
9290 LIBS="$OLD_LIBS"
9291 echo "$as_me:$LINENO: result: no" >&5
9292 echo "${ECHO_T}no" >&6
9293 else
9294 echo "$as_me:$LINENO: result: yes" >&5
9295 echo "${ECHO_T}yes" >&6
9297 else
9298 echo "$as_me:$LINENO: result: no" >&5
9299 echo "${ECHO_T}no" >&6
9303 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9304 # header files included from there.
9305 echo "$as_me:$LINENO: checking for Xkb" >&5
9306 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9307 cat >conftest.$ac_ext <<_ACEOF
9308 /* confdefs.h. */
9309 _ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9313 #include <X11/Xlib.h>
9314 #include <X11/XKBlib.h>
9316 main ()
9318 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9320 return 0;
9322 _ACEOF
9323 rm -f conftest.$ac_objext conftest$ac_exeext
9324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9325 (eval $ac_link) 2>conftest.er1
9326 ac_status=$?
9327 grep -v '^ *+' conftest.er1 >conftest.err
9328 rm -f conftest.er1
9329 cat conftest.err >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } &&
9332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 (eval $ac_try) 2>&5
9335 ac_status=$?
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; } &&
9338 { ac_try='test -s conftest$ac_exeext'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 (eval $ac_try) 2>&5
9341 ac_status=$?
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 emacs_xkb=yes
9345 else
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9349 emacs_xkb=no
9351 rm -f conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9354 echo "${ECHO_T}$emacs_xkb" >&6
9355 if test $emacs_xkb = yes; then
9357 cat >>confdefs.h <<\_ACEOF
9358 #define HAVE_XKBGETKEYBOARD 1
9359 _ACEOF
9367 for ac_func in XrmSetDatabase XScreenResourceString \
9368 XScreenNumberOfScreen XSetWMProtocols
9370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9371 echo "$as_me:$LINENO: checking for $ac_func" >&5
9372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9373 if eval "test \"\${$as_ac_var+set}\" = set"; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 else
9376 cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h. */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9384 #define $ac_func innocuous_$ac_func
9386 /* System header to define __stub macros and hopefully few prototypes,
9387 which can conflict with char $ac_func (); below.
9388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9389 <limits.h> exists even on freestanding compilers. */
9391 #ifdef __STDC__
9392 # include <limits.h>
9393 #else
9394 # include <assert.h>
9395 #endif
9397 #undef $ac_func
9399 /* Override any gcc2 internal prototype to avoid an error. */
9400 #ifdef __cplusplus
9401 extern "C"
9403 #endif
9404 /* We use char because int might match the return type of a gcc2
9405 builtin and then its argument prototype would still apply. */
9406 char $ac_func ();
9407 /* The GNU C library defines this for functions which it implements
9408 to always fail with ENOSYS. Some functions are actually named
9409 something starting with __ and the normal name is an alias. */
9410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9411 choke me
9412 #else
9413 char (*f) () = $ac_func;
9414 #endif
9415 #ifdef __cplusplus
9417 #endif
9420 main ()
9422 return f != $ac_func;
9424 return 0;
9426 _ACEOF
9427 rm -f conftest.$ac_objext conftest$ac_exeext
9428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9429 (eval $ac_link) 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } &&
9436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 (eval $ac_try) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; } &&
9442 { ac_try='test -s conftest$ac_exeext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9448 eval "$as_ac_var=yes"
9449 else
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9453 eval "$as_ac_var=no"
9455 rm -f conftest.err conftest.$ac_objext \
9456 conftest$ac_exeext conftest.$ac_ext
9458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9460 if test `eval echo '${'$as_ac_var'}'` = yes; then
9461 cat >>confdefs.h <<_ACEOF
9462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9463 _ACEOF
9466 done
9470 if test "${window_system}" = "x11"; then
9471 echo "$as_me:$LINENO: checking X11 version 6" >&5
9472 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9473 if test "${emacs_cv_x11_version_6+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476 cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h. */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 #include <X11/Xlib.h>
9484 main ()
9486 #if XlibSpecificationRelease < 6
9487 fail;
9488 #endif
9491 return 0;
9493 _ACEOF
9494 rm -f conftest.$ac_objext conftest$ac_exeext
9495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9496 (eval $ac_link) 2>conftest.er1
9497 ac_status=$?
9498 grep -v '^ *+' conftest.er1 >conftest.err
9499 rm -f conftest.er1
9500 cat conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } &&
9503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 (eval $ac_try) 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; } &&
9509 { ac_try='test -s conftest$ac_exeext'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 (eval $ac_try) 2>&5
9512 ac_status=$?
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; }; then
9515 emacs_cv_x11_version_6=yes
9516 else
9517 echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9520 emacs_cv_x11_version_6=no
9522 rm -f conftest.err conftest.$ac_objext \
9523 conftest$ac_exeext conftest.$ac_ext
9526 if test $emacs_cv_x11_version_6 = yes; then
9527 echo "$as_me:$LINENO: result: 6 or newer" >&5
9528 echo "${ECHO_T}6 or newer" >&6
9530 cat >>confdefs.h <<\_ACEOF
9531 #define HAVE_X11R6 1
9532 _ACEOF
9534 else
9535 echo "$as_me:$LINENO: result: before 6" >&5
9536 echo "${ECHO_T}before 6" >&6
9540 if test "${window_system}" = "x11"; then
9541 echo "$as_me:$LINENO: checking X11 version 5" >&5
9542 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9543 if test "${emacs_cv_x11_version_5+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546 cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h. */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 #include <X11/Xlib.h>
9554 main ()
9556 #if XlibSpecificationRelease < 5
9557 fail;
9558 #endif
9561 return 0;
9563 _ACEOF
9564 rm -f conftest.$ac_objext conftest$ac_exeext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9566 (eval $ac_link) 2>conftest.er1
9567 ac_status=$?
9568 grep -v '^ *+' conftest.er1 >conftest.err
9569 rm -f conftest.er1
9570 cat conftest.err >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } &&
9573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 (eval $ac_try) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; } &&
9579 { ac_try='test -s conftest$ac_exeext'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 (eval $ac_try) 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; }; then
9585 emacs_cv_x11_version_5=yes
9586 else
9587 echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9590 emacs_cv_x11_version_5=no
9592 rm -f conftest.err conftest.$ac_objext \
9593 conftest$ac_exeext conftest.$ac_ext
9596 if test $emacs_cv_x11_version_5 = yes; then
9597 echo "$as_me:$LINENO: result: 5 or newer" >&5
9598 echo "${ECHO_T}5 or newer" >&6
9599 HAVE_X11R5=yes
9601 cat >>confdefs.h <<\_ACEOF
9602 #define HAVE_X11R5 1
9603 _ACEOF
9605 else
9606 HAVE_X11R5=no
9607 echo "$as_me:$LINENO: result: before 5" >&5
9608 echo "${ECHO_T}before 5" >&6
9614 HAVE_GTK=no
9615 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9616 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9617 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9618 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9619 { (exit 1); exit 1; }; };
9621 GLIB_REQUIRED=2.0.1
9622 GTK_REQUIRED=2.0.1
9623 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9625 if test "X${with_pkg_config_prog}" != X; then
9626 PKG_CONFIG="${with_pkg_config_prog}"
9629 succeeded=no
9631 if test -z "$PKG_CONFIG"; then
9632 # Extract the first word of "pkg-config", so it can be a program name with args.
9633 set dummy pkg-config; ac_word=$2
9634 echo "$as_me:$LINENO: checking for $ac_word" >&5
9635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9636 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 else
9639 case $PKG_CONFIG in
9640 [\\/]* | ?:[\\/]*)
9641 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645 for as_dir in $PATH
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9651 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 break 2
9655 done
9656 done
9658 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9660 esac
9662 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9664 if test -n "$PKG_CONFIG"; then
9665 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9666 echo "${ECHO_T}$PKG_CONFIG" >&6
9667 else
9668 echo "$as_me:$LINENO: result: no" >&5
9669 echo "${ECHO_T}no" >&6
9674 if test "$PKG_CONFIG" = "no" ; then
9675 echo "*** The pkg-config script could not be found. Make sure it is"
9676 echo "*** in your path, or give the full path to pkg-config with"
9677 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9678 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9679 else
9680 PKG_CONFIG_MIN_VERSION=0.9.0
9681 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9682 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9683 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9685 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9686 echo "$as_me:$LINENO: result: yes" >&5
9687 echo "${ECHO_T}yes" >&6
9688 succeeded=yes
9690 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9691 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9692 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9693 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9694 echo "${ECHO_T}$GTK_CFLAGS" >&6
9696 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9697 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9698 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9699 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9700 echo "${ECHO_T}$GTK_LIBS" >&6
9701 else
9702 GTK_CFLAGS=""
9703 GTK_LIBS=""
9704 ## If we have a custom action on failure, don't print errors, but
9705 ## do set a variable so people can do so.
9706 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9707 echo $GTK_PKG_ERRORS
9712 else
9713 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9714 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9718 if test $succeeded = yes; then
9720 else
9721 { { 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
9722 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;}
9723 { (exit 1); exit 1; }; }
9728 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9729 CFLAGS="$CFLAGS $GTK_CFLAGS"
9730 LIBS="$GTK_LIBS $LIBS"
9731 HAVE_GTK=yes
9733 cat >>confdefs.h <<\_ACEOF
9734 #define HAVE_GTK 1
9735 _ACEOF
9737 USE_X_TOOLKIT=none
9739 if test "$with_toolkit_scroll_bars" != no; then
9740 with_toolkit_scroll_bars=yes
9743 HAVE_GTK_MULTIDISPLAY=no
9745 for ac_func in gdk_display_open
9747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9748 echo "$as_me:$LINENO: checking for $ac_func" >&5
9749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9750 if eval "test \"\${$as_ac_var+set}\" = set"; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753 cat >conftest.$ac_ext <<_ACEOF
9754 /* confdefs.h. */
9755 _ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9761 #define $ac_func innocuous_$ac_func
9763 /* System header to define __stub macros and hopefully few prototypes,
9764 which can conflict with char $ac_func (); below.
9765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9766 <limits.h> exists even on freestanding compilers. */
9768 #ifdef __STDC__
9769 # include <limits.h>
9770 #else
9771 # include <assert.h>
9772 #endif
9774 #undef $ac_func
9776 /* Override any gcc2 internal prototype to avoid an error. */
9777 #ifdef __cplusplus
9778 extern "C"
9780 #endif
9781 /* We use char because int might match the return type of a gcc2
9782 builtin and then its argument prototype would still apply. */
9783 char $ac_func ();
9784 /* The GNU C library defines this for functions which it implements
9785 to always fail with ENOSYS. Some functions are actually named
9786 something starting with __ and the normal name is an alias. */
9787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9788 choke me
9789 #else
9790 char (*f) () = $ac_func;
9791 #endif
9792 #ifdef __cplusplus
9794 #endif
9797 main ()
9799 return f != $ac_func;
9801 return 0;
9803 _ACEOF
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9806 (eval $ac_link) 2>conftest.er1
9807 ac_status=$?
9808 grep -v '^ *+' conftest.er1 >conftest.err
9809 rm -f conftest.er1
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } &&
9813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 (eval $ac_try) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; } &&
9819 { ac_try='test -s conftest$ac_exeext'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 (eval $ac_try) 2>&5
9822 ac_status=$?
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9825 eval "$as_ac_var=yes"
9826 else
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 eval "$as_ac_var=no"
9832 rm -f conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
9835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9837 if test `eval echo '${'$as_ac_var'}'` = yes; then
9838 cat >>confdefs.h <<_ACEOF
9839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9840 _ACEOF
9841 HAVE_GTK_MULTIDISPLAY=yes
9843 done
9845 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9847 cat >>confdefs.h <<\_ACEOF
9848 #define HAVE_GTK_MULTIDISPLAY 1
9849 _ACEOF
9852 HAVE_GTK_FILE_SELECTION=no
9854 for ac_func in gtk_file_selection_new
9856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9857 echo "$as_me:$LINENO: checking for $ac_func" >&5
9858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9859 if eval "test \"\${$as_ac_var+set}\" = set"; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 else
9862 cat >conftest.$ac_ext <<_ACEOF
9863 /* confdefs.h. */
9864 _ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9870 #define $ac_func innocuous_$ac_func
9872 /* System header to define __stub macros and hopefully few prototypes,
9873 which can conflict with char $ac_func (); below.
9874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9875 <limits.h> exists even on freestanding compilers. */
9877 #ifdef __STDC__
9878 # include <limits.h>
9879 #else
9880 # include <assert.h>
9881 #endif
9883 #undef $ac_func
9885 /* Override any gcc2 internal prototype to avoid an error. */
9886 #ifdef __cplusplus
9887 extern "C"
9889 #endif
9890 /* We use char because int might match the return type of a gcc2
9891 builtin and then its argument prototype would still apply. */
9892 char $ac_func ();
9893 /* The GNU C library defines this for functions which it implements
9894 to always fail with ENOSYS. Some functions are actually named
9895 something starting with __ and the normal name is an alias. */
9896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9897 choke me
9898 #else
9899 char (*f) () = $ac_func;
9900 #endif
9901 #ifdef __cplusplus
9903 #endif
9906 main ()
9908 return f != $ac_func;
9910 return 0;
9912 _ACEOF
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915 (eval $ac_link) 2>conftest.er1
9916 ac_status=$?
9917 grep -v '^ *+' conftest.er1 >conftest.err
9918 rm -f conftest.er1
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } &&
9922 { ac_try='test -z "$ac_c_werror_flag"
9923 || test ! -s conftest.err'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 (eval $ac_try) 2>&5
9926 ac_status=$?
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; } &&
9929 { ac_try='test -s conftest$ac_exeext'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 eval "$as_ac_var=yes"
9936 else
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 eval "$as_ac_var=no"
9942 rm -f conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext conftest.$ac_ext
9945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9947 if test `eval echo '${'$as_ac_var'}'` = yes; then
9948 cat >>confdefs.h <<_ACEOF
9949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9950 _ACEOF
9951 HAVE_GTK_FILE_SELECTION=yes
9953 done
9956 HAVE_GTK_FILE_CHOOSER=no
9958 for ac_func in gtk_file_chooser_dialog_new
9960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9961 echo "$as_me:$LINENO: checking for $ac_func" >&5
9962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9963 if eval "test \"\${$as_ac_var+set}\" = set"; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 else
9966 cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h. */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9974 #define $ac_func innocuous_$ac_func
9976 /* System header to define __stub macros and hopefully few prototypes,
9977 which can conflict with char $ac_func (); below.
9978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9979 <limits.h> exists even on freestanding compilers. */
9981 #ifdef __STDC__
9982 # include <limits.h>
9983 #else
9984 # include <assert.h>
9985 #endif
9987 #undef $ac_func
9989 /* Override any gcc2 internal prototype to avoid an error. */
9990 #ifdef __cplusplus
9991 extern "C"
9993 #endif
9994 /* We use char because int might match the return type of a gcc2
9995 builtin and then its argument prototype would still apply. */
9996 char $ac_func ();
9997 /* The GNU C library defines this for functions which it implements
9998 to always fail with ENOSYS. Some functions are actually named
9999 something starting with __ and the normal name is an alias. */
10000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10001 choke me
10002 #else
10003 char (*f) () = $ac_func;
10004 #endif
10005 #ifdef __cplusplus
10007 #endif
10010 main ()
10012 return f != $ac_func;
10014 return 0;
10016 _ACEOF
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019 (eval $ac_link) 2>conftest.er1
10020 ac_status=$?
10021 grep -v '^ *+' conftest.er1 >conftest.err
10022 rm -f conftest.er1
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag"
10027 || test ! -s conftest.err'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; }; then
10039 eval "$as_ac_var=yes"
10040 else
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10044 eval "$as_ac_var=no"
10046 rm -f conftest.err conftest.$ac_objext \
10047 conftest$ac_exeext conftest.$ac_ext
10049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10051 if test `eval echo '${'$as_ac_var'}'` = yes; then
10052 cat >>confdefs.h <<_ACEOF
10053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10054 _ACEOF
10055 HAVE_GTK_FILE_CHOOSER=yes
10057 done
10060 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10061 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10063 cat >>confdefs.h <<\_ACEOF
10064 #define HAVE_GTK_FILE_BOTH 1
10065 _ACEOF
10069 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10070 HAVE_GTK_AND_PTHREAD=no
10072 for ac_header in pthread.h
10074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10076 echo "$as_me:$LINENO: checking for $ac_header" >&5
10077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10083 else
10084 # Is the header compilable?
10085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10087 cat >conftest.$ac_ext <<_ACEOF
10088 /* confdefs.h. */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093 $ac_includes_default
10094 #include <$ac_header>
10095 _ACEOF
10096 rm -f conftest.$ac_objext
10097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10098 (eval $ac_compile) 2>conftest.er1
10099 ac_status=$?
10100 grep -v '^ *+' conftest.er1 >conftest.err
10101 rm -f conftest.er1
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } &&
10105 { ac_try='test -z "$ac_c_werror_flag"
10106 || test ! -s conftest.err'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; } &&
10112 { ac_try='test -s conftest.$ac_objext'
10113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10114 (eval $ac_try) 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; }; then
10118 ac_header_compiler=yes
10119 else
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ac_header_compiler=no
10125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10127 echo "${ECHO_T}$ac_header_compiler" >&6
10129 # Is the header present?
10130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10132 cat >conftest.$ac_ext <<_ACEOF
10133 /* confdefs.h. */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 #include <$ac_header>
10139 _ACEOF
10140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } >/dev/null; then
10148 if test -s conftest.err; then
10149 ac_cpp_err=$ac_c_preproc_warn_flag
10150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10151 else
10152 ac_cpp_err=
10154 else
10155 ac_cpp_err=yes
10157 if test -z "$ac_cpp_err"; then
10158 ac_header_preproc=yes
10159 else
10160 echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10163 ac_header_preproc=no
10165 rm -f conftest.err conftest.$ac_ext
10166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10167 echo "${ECHO_T}$ac_header_preproc" >&6
10169 # So? What about this header?
10170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10171 yes:no: )
10172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10176 ac_header_preproc=yes
10178 no:yes:* )
10179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10192 cat <<\_ASBOX
10193 ## ------------------------------------------ ##
10194 ## Report this to the AC_PACKAGE_NAME lists. ##
10195 ## ------------------------------------------ ##
10196 _ASBOX
10198 sed "s/^/$as_me: WARNING: /" >&2
10200 esac
10201 echo "$as_me:$LINENO: checking for $ac_header" >&5
10202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206 eval "$as_ac_Header=\$ac_header_preproc"
10208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10213 cat >>confdefs.h <<_ACEOF
10214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10215 _ACEOF
10219 done
10221 if test "$ac_cv_header_pthread_h"; then
10222 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10223 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10224 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 else
10227 ac_check_lib_save_LIBS=$LIBS
10228 LIBS="-lpthread $LIBS"
10229 cat >conftest.$ac_ext <<_ACEOF
10230 /* confdefs.h. */
10231 _ACEOF
10232 cat confdefs.h >>conftest.$ac_ext
10233 cat >>conftest.$ac_ext <<_ACEOF
10234 /* end confdefs.h. */
10236 /* Override any gcc2 internal prototype to avoid an error. */
10237 #ifdef __cplusplus
10238 extern "C"
10239 #endif
10240 /* We use char because int might match the return type of a gcc2
10241 builtin and then its argument prototype would still apply. */
10242 char pthread_self ();
10244 main ()
10246 pthread_self ();
10248 return 0;
10250 _ACEOF
10251 rm -f conftest.$ac_objext conftest$ac_exeext
10252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10253 (eval $ac_link) 2>conftest.er1
10254 ac_status=$?
10255 grep -v '^ *+' conftest.er1 >conftest.err
10256 rm -f conftest.er1
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } &&
10260 { ac_try='test -z "$ac_c_werror_flag"
10261 || test ! -s conftest.err'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest$ac_exeext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_cv_lib_pthread_pthread_self=yes
10274 else
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10278 ac_cv_lib_pthread_pthread_self=no
10280 rm -f conftest.err conftest.$ac_objext \
10281 conftest$ac_exeext conftest.$ac_ext
10282 LIBS=$ac_check_lib_save_LIBS
10284 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10285 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10286 if test $ac_cv_lib_pthread_pthread_self = yes; then
10287 HAVE_GTK_AND_PTHREAD=yes
10291 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10292 GTK_LIBS="$GTK_LIBS -lpthread"
10294 cat >>confdefs.h <<\_ACEOF
10295 #define HAVE_GTK_AND_PTHREAD 1
10296 _ACEOF
10302 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10303 if test x"${HAVE_X11R5}" = xyes; then
10304 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10305 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10306 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 else
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. */
10316 #include <X11/Intrinsic.h>
10317 #include <X11/Xaw/Simple.h>
10319 main ()
10323 return 0;
10325 _ACEOF
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10328 (eval $ac_link) 2>conftest.er1
10329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } &&
10335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; } &&
10341 { ac_try='test -s conftest$ac_exeext'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 emacs_cv_x11_version_5_with_xaw=yes
10348 else
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 emacs_cv_x11_version_5_with_xaw=no
10354 rm -f conftest.err conftest.$ac_objext \
10355 conftest$ac_exeext conftest.$ac_ext
10358 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10359 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10360 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10361 USE_X_TOOLKIT=LUCID
10362 else
10363 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10364 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10365 USE_X_TOOLKIT=none
10367 else
10368 USE_X_TOOLKIT=none
10372 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10374 if test "${USE_X_TOOLKIT}" != "none"; then
10375 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10376 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10377 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380 cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h. */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 #include <X11/Intrinsic.h>
10388 main ()
10390 #if XtSpecificationRelease < 6
10391 fail;
10392 #endif
10395 return 0;
10397 _ACEOF
10398 rm -f conftest.$ac_objext conftest$ac_exeext
10399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10400 (eval $ac_link) 2>conftest.er1
10401 ac_status=$?
10402 grep -v '^ *+' conftest.er1 >conftest.err
10403 rm -f conftest.er1
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } &&
10407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; } &&
10413 { ac_try='test -s conftest$ac_exeext'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 emacs_cv_x11_toolkit_version_6=yes
10420 else
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10424 emacs_cv_x11_toolkit_version_6=no
10426 rm -f conftest.err conftest.$ac_objext \
10427 conftest$ac_exeext conftest.$ac_ext
10430 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10431 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10432 echo "$as_me:$LINENO: result: 6 or newer" >&5
10433 echo "${ECHO_T}6 or newer" >&6
10435 cat >>confdefs.h <<\_ACEOF
10436 #define HAVE_X11XTR6 1
10437 _ACEOF
10439 else
10440 echo "$as_me:$LINENO: result: before 6" >&5
10441 echo "${ECHO_T}before 6" >&6
10444 OLDLIBS="$LIBS"
10445 if test x$HAVE_X11XTR6 = xyes; then
10446 LIBS="-lXt -lSM -lICE $LIBS"
10447 else
10448 LIBS="-lXt $LIBS"
10451 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10452 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10453 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456 ac_check_lib_save_LIBS=$LIBS
10457 LIBS="-lXmu $LIBS"
10458 cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h. */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10465 /* Override any gcc2 internal prototype to avoid an error. */
10466 #ifdef __cplusplus
10467 extern "C"
10468 #endif
10469 /* We use char because int might match the return type of a gcc2
10470 builtin and then its argument prototype would still apply. */
10471 char XmuConvertStandardSelection ();
10473 main ()
10475 XmuConvertStandardSelection ();
10477 return 0;
10479 _ACEOF
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482 (eval $ac_link) 2>conftest.er1
10483 ac_status=$?
10484 grep -v '^ *+' conftest.er1 >conftest.err
10485 rm -f conftest.er1
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } &&
10489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10492 ac_status=$?
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; } &&
10495 { ac_try='test -s conftest$ac_exeext'
10496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10498 ac_status=$?
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }; }; then
10501 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10502 else
10503 echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10506 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10508 rm -f conftest.err conftest.$ac_objext \
10509 conftest$ac_exeext conftest.$ac_ext
10510 LIBS=$ac_check_lib_save_LIBS
10512 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10513 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10514 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10515 cat >>confdefs.h <<_ACEOF
10516 #define HAVE_LIBXMU 1
10517 _ACEOF
10519 LIBS="-lXmu $LIBS"
10523 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10526 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10527 if test "${HAVE_X11}" = "yes"; then
10528 if test "${USE_X_TOOLKIT}" != "none"; then
10530 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10531 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10532 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10534 else
10535 ac_check_lib_save_LIBS=$LIBS
10536 LIBS="-lXext $LIBS"
10537 cat >conftest.$ac_ext <<_ACEOF
10538 /* confdefs.h. */
10539 _ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10544 /* Override any gcc2 internal prototype to avoid an error. */
10545 #ifdef __cplusplus
10546 extern "C"
10547 #endif
10548 /* We use char because int might match the return type of a gcc2
10549 builtin and then its argument prototype would still apply. */
10550 char XShapeQueryExtension ();
10552 main ()
10554 XShapeQueryExtension ();
10556 return 0;
10558 _ACEOF
10559 rm -f conftest.$ac_objext conftest$ac_exeext
10560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10561 (eval $ac_link) 2>conftest.er1
10562 ac_status=$?
10563 grep -v '^ *+' conftest.er1 >conftest.err
10564 rm -f conftest.er1
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10570 (eval $ac_try) 2>&5
10571 ac_status=$?
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }; } &&
10574 { ac_try='test -s conftest$ac_exeext'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; }; then
10580 ac_cv_lib_Xext_XShapeQueryExtension=yes
10581 else
10582 echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10585 ac_cv_lib_Xext_XShapeQueryExtension=no
10587 rm -f conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10589 LIBS=$ac_check_lib_save_LIBS
10591 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10592 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10593 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10594 cat >>confdefs.h <<_ACEOF
10595 #define HAVE_LIBXEXT 1
10596 _ACEOF
10598 LIBS="-lXext $LIBS"
10605 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10606 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10607 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10608 if test "${emacs_cv_lesstif+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611 # We put this in CFLAGS temporarily to precede other -I options
10612 # that might be in CFLAGS temporarily.
10613 # We put this in CPPFLAGS where it precedes the other -I options.
10614 OLD_CPPFLAGS=$CPPFLAGS
10615 OLD_CFLAGS=$CFLAGS
10616 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10617 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10618 cat >conftest.$ac_ext <<_ACEOF
10619 /* confdefs.h. */
10620 _ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10624 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10626 main ()
10628 int x = 5;
10630 return 0;
10632 _ACEOF
10633 rm -f conftest.$ac_objext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10635 (eval $ac_compile) 2>conftest.er1
10636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try='test -s conftest.$ac_objext'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10651 ac_status=$?
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; }; then
10654 emacs_cv_lesstif=yes
10655 else
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10659 emacs_cv_lesstif=no
10661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10663 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10664 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10665 if test $emacs_cv_lesstif = yes; then
10666 # Make sure this -I option remains in CPPFLAGS after it is set
10667 # back to REAL_CPPFLAGS.
10668 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10669 # have those other -I options anyway. Ultimately, having this
10670 # directory ultimately in CPPFLAGS will be enough.
10671 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10672 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10673 else
10674 CFLAGS=$OLD_CFLAGS
10675 CPPFLAGS=$OLD_CPPFLAGS
10677 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10678 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10679 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682 cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h. */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 #include <Xm/Xm.h>
10690 main ()
10692 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10693 int x = 5;
10694 #else
10695 Motif version prior to 2.1.
10696 #endif
10698 return 0;
10700 _ACEOF
10701 rm -f conftest.$ac_objext
10702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10703 (eval $ac_compile) 2>conftest.er1
10704 ac_status=$?
10705 grep -v '^ *+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } &&
10710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; } &&
10716 { ac_try='test -s conftest.$ac_objext'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 emacs_cv_motif_version_2_1=yes
10723 else
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10727 emacs_cv_motif_version_2_1=no
10729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10731 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10732 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10733 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10734 if test $emacs_cv_motif_version_2_1 = yes; then
10735 HAVE_LIBXP=no
10737 cat >>confdefs.h <<\_ACEOF
10738 #define HAVE_MOTIF_2_1 1
10739 _ACEOF
10741 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10742 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10743 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746 ac_check_lib_save_LIBS=$LIBS
10747 LIBS="-lXp $LIBS"
10748 cat >conftest.$ac_ext <<_ACEOF
10749 /* confdefs.h. */
10750 _ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h. */
10755 /* Override any gcc2 internal prototype to avoid an error. */
10756 #ifdef __cplusplus
10757 extern "C"
10758 #endif
10759 /* We use char because int might match the return type of a gcc2
10760 builtin and then its argument prototype would still apply. */
10761 char XpCreateContext ();
10763 main ()
10765 XpCreateContext ();
10767 return 0;
10769 _ACEOF
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10772 (eval $ac_link) 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
10779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; } &&
10785 { ac_try='test -s conftest$ac_exeext'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10788 ac_status=$?
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
10791 ac_cv_lib_Xp_XpCreateContext=yes
10792 else
10793 echo "$as_me: failed program was:" >&5
10794 sed 's/^/| /' conftest.$ac_ext >&5
10796 ac_cv_lib_Xp_XpCreateContext=no
10798 rm -f conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800 LIBS=$ac_check_lib_save_LIBS
10802 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10803 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10804 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10805 HAVE_LIBXP=yes
10808 if test ${HAVE_LIBXP} = yes; then
10810 cat >>confdefs.h <<\_ACEOF
10811 #define HAVE_LIBXP 1
10812 _ACEOF
10818 ### Is -lXaw3d available?
10819 HAVE_XAW3D=no
10820 if test "${HAVE_X11}" = "yes"; then
10821 if test "${USE_X_TOOLKIT}" != "none"; then
10822 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10823 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10824 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 else
10827 cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h. */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10833 #include <X11/Xaw3d/Scrollbar.h>
10834 _ACEOF
10835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } >/dev/null; then
10843 if test -s conftest.err; then
10844 ac_cpp_err=$ac_c_preproc_warn_flag
10845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10846 else
10847 ac_cpp_err=
10849 else
10850 ac_cpp_err=yes
10852 if test -z "$ac_cpp_err"; then
10853 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10854 else
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10858 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10860 rm -f conftest.err conftest.$ac_ext
10862 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10863 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10864 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10865 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10866 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10867 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870 ac_check_lib_save_LIBS=$LIBS
10871 LIBS="-lXaw3d $LIBS"
10872 cat >conftest.$ac_ext <<_ACEOF
10873 /* confdefs.h. */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10879 /* Override any gcc2 internal prototype to avoid an error. */
10880 #ifdef __cplusplus
10881 extern "C"
10882 #endif
10883 /* We use char because int might match the return type of a gcc2
10884 builtin and then its argument prototype would still apply. */
10885 char XawScrollbarSetThumb ();
10887 main ()
10889 XawScrollbarSetThumb ();
10891 return 0;
10893 _ACEOF
10894 rm -f conftest.$ac_objext conftest$ac_exeext
10895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10896 (eval $ac_link) 2>conftest.er1
10897 ac_status=$?
10898 grep -v '^ *+' conftest.er1 >conftest.err
10899 rm -f conftest.er1
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; } &&
10909 { ac_try='test -s conftest$ac_exeext'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10916 else
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10922 rm -f conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10924 LIBS=$ac_check_lib_save_LIBS
10926 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10927 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10928 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10929 HAVE_XAW3D=yes
10935 if test "${HAVE_XAW3D}" = "yes"; then
10937 cat >>confdefs.h <<\_ACEOF
10938 #define HAVE_XAW3D 1
10939 _ACEOF
10947 USE_TOOLKIT_SCROLL_BARS=no
10948 if test "${with_toolkit_scroll_bars}" != "no"; then
10949 if test "${USE_X_TOOLKIT}" != "none"; then
10950 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10951 cat >>confdefs.h <<\_ACEOF
10952 #define USE_TOOLKIT_SCROLL_BARS 1
10953 _ACEOF
10955 HAVE_XAW3D=no
10956 USE_TOOLKIT_SCROLL_BARS=yes
10957 elif test "${HAVE_XAW3D}" = "yes"; then
10958 cat >>confdefs.h <<\_ACEOF
10959 #define USE_TOOLKIT_SCROLL_BARS 1
10960 _ACEOF
10962 USE_TOOLKIT_SCROLL_BARS=yes
10964 elif test "${HAVE_GTK}" = "yes"; then
10965 cat >>confdefs.h <<\_ACEOF
10966 #define USE_TOOLKIT_SCROLL_BARS 1
10967 _ACEOF
10969 USE_TOOLKIT_SCROLL_BARS=yes
10973 cat >conftest.$ac_ext <<_ACEOF
10974 /* confdefs.h. */
10975 _ACEOF
10976 cat confdefs.h >>conftest.$ac_ext
10977 cat >>conftest.$ac_ext <<_ACEOF
10978 /* end confdefs.h. */
10980 #include <X11/Xlib.h>
10981 #include <X11/Xresource.h>
10983 main ()
10985 XIMProc callback;
10987 return 0;
10989 _ACEOF
10990 rm -f conftest.$ac_objext
10991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10992 (eval $ac_compile) 2>conftest.er1
10993 ac_status=$?
10994 grep -v '^ *+' conftest.er1 >conftest.err
10995 rm -f conftest.er1
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; } &&
11005 { ac_try='test -s conftest.$ac_objext'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
11011 HAVE_XIM=yes
11013 cat >>confdefs.h <<\_ACEOF
11014 #define HAVE_XIM 1
11015 _ACEOF
11017 else
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11021 HAVE_XIM=no
11023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11026 if test "${with_xim}" != "no"; then
11028 cat >>confdefs.h <<\_ACEOF
11029 #define USE_XIM 1
11030 _ACEOF
11035 if test "${HAVE_XIM}" != "no"; then
11036 late_CFLAGS=$CFLAGS
11037 if test "$GCC" = yes; then
11038 CFLAGS="$CFLAGS --pedantic-errors"
11040 cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h. */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11047 #include <X11/Xlib.h>
11048 #include <X11/Xresource.h>
11050 main ()
11052 Display *display;
11053 XrmDatabase db;
11054 char *res_name;
11055 char *res_class;
11056 XIMProc callback;
11057 XPointer *client_data;
11058 #ifndef __GNUC__
11059 /* If we're not using GCC, it's probably not XFree86, and this is
11060 probably right, but we can't use something like --pedantic-errors. */
11061 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11062 char*, XIMProc, XPointer*);
11063 #endif
11064 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11065 client_data);
11067 return 0;
11069 _ACEOF
11070 rm -f conftest.$ac_objext
11071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072 (eval $ac_compile) 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } &&
11079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try='test -s conftest.$ac_objext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 emacs_cv_arg6_star=yes
11092 else
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11099 if test "$emacs_cv_arg6_star" = yes; then
11100 cat >>confdefs.h <<\_ACEOF
11101 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11102 _ACEOF
11104 else
11105 cat >>confdefs.h <<\_ACEOF
11106 #define XRegisterIMInstantiateCallback_arg6 XPointer
11107 _ACEOF
11110 CFLAGS=$late_CFLAGS
11113 ### Use -lXpm if available, unless `--with-xpm=no'.
11114 HAVE_XPM=no
11115 if test "${HAVE_X11}" = "yes"; then
11116 if test "${with_xpm}" != "no"; then
11117 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11118 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11119 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11120 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11123 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11124 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11125 else
11126 # Is the header compilable?
11127 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11128 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11129 cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h. */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11135 $ac_includes_default
11136 #include <X11/xpm.h>
11137 _ACEOF
11138 rm -f conftest.$ac_objext
11139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11140 (eval $ac_compile) 2>conftest.er1
11141 ac_status=$?
11142 grep -v '^ *+' conftest.er1 >conftest.err
11143 rm -f conftest.er1
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } &&
11147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; } &&
11153 { ac_try='test -s conftest.$ac_objext'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 ac_header_compiler=yes
11160 else
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11164 ac_header_compiler=no
11166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11168 echo "${ECHO_T}$ac_header_compiler" >&6
11170 # Is the header present?
11171 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11172 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11173 cat >conftest.$ac_ext <<_ACEOF
11174 /* confdefs.h. */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11179 #include <X11/xpm.h>
11180 _ACEOF
11181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11183 ac_status=$?
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } >/dev/null; then
11189 if test -s conftest.err; then
11190 ac_cpp_err=$ac_c_preproc_warn_flag
11191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11192 else
11193 ac_cpp_err=
11195 else
11196 ac_cpp_err=yes
11198 if test -z "$ac_cpp_err"; then
11199 ac_header_preproc=yes
11200 else
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11204 ac_header_preproc=no
11206 rm -f conftest.err conftest.$ac_ext
11207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208 echo "${ECHO_T}$ac_header_preproc" >&6
11210 # So? What about this header?
11211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11212 yes:no: )
11213 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11214 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11216 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11217 ac_header_preproc=yes
11219 no:yes:* )
11220 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11221 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11223 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11225 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11227 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11229 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11231 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11233 cat <<\_ASBOX
11234 ## ------------------------------------------ ##
11235 ## Report this to the AC_PACKAGE_NAME lists. ##
11236 ## ------------------------------------------ ##
11237 _ASBOX
11239 sed "s/^/$as_me: WARNING: /" >&2
11241 esac
11242 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11243 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11244 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 else
11247 ac_cv_header_X11_xpm_h=$ac_header_preproc
11249 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11250 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11253 if test $ac_cv_header_X11_xpm_h = yes; then
11254 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11255 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11256 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 else
11259 ac_check_lib_save_LIBS=$LIBS
11260 LIBS="-lXpm -lX11 $LIBS"
11261 cat >conftest.$ac_ext <<_ACEOF
11262 /* confdefs.h. */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11268 /* Override any gcc2 internal prototype to avoid an error. */
11269 #ifdef __cplusplus
11270 extern "C"
11271 #endif
11272 /* We use char because int might match the return type of a gcc2
11273 builtin and then its argument prototype would still apply. */
11274 char XpmReadFileToPixmap ();
11276 main ()
11278 XpmReadFileToPixmap ();
11280 return 0;
11282 _ACEOF
11283 rm -f conftest.$ac_objext conftest$ac_exeext
11284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11285 (eval $ac_link) 2>conftest.er1
11286 ac_status=$?
11287 grep -v '^ *+' conftest.er1 >conftest.err
11288 rm -f conftest.er1
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; } &&
11298 { ac_try='test -s conftest$ac_exeext'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; }; then
11304 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11305 else
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11309 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11311 rm -f conftest.err conftest.$ac_objext \
11312 conftest$ac_exeext conftest.$ac_ext
11313 LIBS=$ac_check_lib_save_LIBS
11315 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11316 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11317 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11318 HAVE_XPM=yes
11324 if test "${HAVE_XPM}" = "yes"; then
11325 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11326 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11327 cat >conftest.$ac_ext <<_ACEOF
11328 /* confdefs.h. */
11329 _ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333 #include "X11/xpm.h"
11334 #ifndef XpmReturnAllocPixels
11335 no_return_alloc_pixels
11336 #endif
11338 _ACEOF
11339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11340 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11341 HAVE_XPM=no
11342 else
11343 HAVE_XPM=yes
11345 rm -f conftest*
11348 if test "${HAVE_XPM}" = "yes"; then
11349 echo "$as_me:$LINENO: result: yes" >&5
11350 echo "${ECHO_T}yes" >&6
11351 else
11352 echo "$as_me:$LINENO: result: no" >&5
11353 echo "${ECHO_T}no" >&6
11358 if test "${HAVE_XPM}" = "yes"; then
11360 cat >>confdefs.h <<\_ACEOF
11361 #define HAVE_XPM 1
11362 _ACEOF
11367 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11368 HAVE_JPEG=no
11369 if test "${HAVE_X11}" = "yes"; then
11370 if test "${with_jpeg}" != "no"; then
11371 if test "${ac_cv_header_jerror_h+set}" = set; then
11372 echo "$as_me:$LINENO: checking for jerror.h" >&5
11373 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11374 if test "${ac_cv_header_jerror_h+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11378 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11379 else
11380 # Is the header compilable?
11381 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11382 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h. */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 $ac_includes_default
11390 #include <jerror.h>
11391 _ACEOF
11392 rm -f conftest.$ac_objext
11393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11394 (eval $ac_compile) 2>conftest.er1
11395 ac_status=$?
11396 grep -v '^ *+' conftest.er1 >conftest.err
11397 rm -f conftest.er1
11398 cat conftest.err >&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
11401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest.$ac_objext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 ac_header_compiler=yes
11414 else
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 ac_header_compiler=no
11420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11422 echo "${ECHO_T}$ac_header_compiler" >&6
11424 # Is the header present?
11425 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11426 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11427 cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h. */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433 #include <jerror.h>
11434 _ACEOF
11435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11437 ac_status=$?
11438 grep -v '^ *+' conftest.er1 >conftest.err
11439 rm -f conftest.er1
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } >/dev/null; then
11443 if test -s conftest.err; then
11444 ac_cpp_err=$ac_c_preproc_warn_flag
11445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11446 else
11447 ac_cpp_err=
11449 else
11450 ac_cpp_err=yes
11452 if test -z "$ac_cpp_err"; then
11453 ac_header_preproc=yes
11454 else
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 ac_header_preproc=no
11460 rm -f conftest.err conftest.$ac_ext
11461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11462 echo "${ECHO_T}$ac_header_preproc" >&6
11464 # So? What about this header?
11465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11466 yes:no: )
11467 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11468 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11469 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11470 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11471 ac_header_preproc=yes
11473 no:yes:* )
11474 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11475 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11477 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11479 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11481 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11483 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11484 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11485 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11487 cat <<\_ASBOX
11488 ## ------------------------------------------ ##
11489 ## Report this to the AC_PACKAGE_NAME lists. ##
11490 ## ------------------------------------------ ##
11491 _ASBOX
11493 sed "s/^/$as_me: WARNING: /" >&2
11495 esac
11496 echo "$as_me:$LINENO: checking for jerror.h" >&5
11497 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11498 if test "${ac_cv_header_jerror_h+set}" = set; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501 ac_cv_header_jerror_h=$ac_header_preproc
11503 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11504 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11507 if test $ac_cv_header_jerror_h = yes; then
11508 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11509 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11510 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 else
11513 ac_check_lib_save_LIBS=$LIBS
11514 LIBS="-ljpeg $LIBS"
11515 cat >conftest.$ac_ext <<_ACEOF
11516 /* confdefs.h. */
11517 _ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11522 /* Override any gcc2 internal prototype to avoid an error. */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 /* We use char because int might match the return type of a gcc2
11527 builtin and then its argument prototype would still apply. */
11528 char jpeg_destroy_compress ();
11530 main ()
11532 jpeg_destroy_compress ();
11534 return 0;
11536 _ACEOF
11537 rm -f conftest.$ac_objext conftest$ac_exeext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11539 (eval $ac_link) 2>conftest.er1
11540 ac_status=$?
11541 grep -v '^ *+' conftest.er1 >conftest.err
11542 rm -f conftest.er1
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; } &&
11552 { ac_try='test -s conftest$ac_exeext'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11559 else
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11563 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11565 rm -f conftest.err conftest.$ac_objext \
11566 conftest$ac_exeext conftest.$ac_ext
11567 LIBS=$ac_check_lib_save_LIBS
11569 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11570 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11571 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11572 HAVE_JPEG=yes
11581 if test "${HAVE_JPEG}" = "yes"; then
11582 cat >>confdefs.h <<\_ACEOF
11583 #define HAVE_JPEG 1
11584 _ACEOF
11586 cat >conftest.$ac_ext <<_ACEOF
11587 /* confdefs.h. */
11588 _ACEOF
11589 cat confdefs.h >>conftest.$ac_ext
11590 cat >>conftest.$ac_ext <<_ACEOF
11591 /* end confdefs.h. */
11592 #include <jpeglib.h>
11593 version=JPEG_LIB_VERSION
11595 _ACEOF
11596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11597 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11598 cat >>confdefs.h <<\_ACEOF
11599 #define HAVE_JPEG 1
11600 _ACEOF
11602 else
11603 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11604 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11605 HAVE_JPEG=no
11607 rm -f conftest*
11612 ### Use -lpng if available, unless `--with-png=no'.
11613 HAVE_PNG=no
11614 if test "${HAVE_X11}" = "yes"; then
11615 if test "${with_png}" != "no"; then
11616 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11617 # in /usr/include/libpng.
11620 for ac_header in png.h libpng/png.h
11622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11624 echo "$as_me:$LINENO: checking for $ac_header" >&5
11625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11631 else
11632 # Is the header compilable?
11633 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11635 cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h. */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 $ac_includes_default
11642 #include <$ac_header>
11643 _ACEOF
11644 rm -f conftest.$ac_objext
11645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11646 (eval $ac_compile) 2>conftest.er1
11647 ac_status=$?
11648 grep -v '^ *+' conftest.er1 >conftest.err
11649 rm -f conftest.er1
11650 cat conftest.err >&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
11653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; } &&
11659 { ac_try='test -s conftest.$ac_objext'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 ac_header_compiler=yes
11666 else
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11670 ac_header_compiler=no
11672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11674 echo "${ECHO_T}$ac_header_compiler" >&6
11676 # Is the header present?
11677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11679 cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h. */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 #include <$ac_header>
11686 _ACEOF
11687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } >/dev/null; then
11695 if test -s conftest.err; then
11696 ac_cpp_err=$ac_c_preproc_warn_flag
11697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11698 else
11699 ac_cpp_err=
11701 else
11702 ac_cpp_err=yes
11704 if test -z "$ac_cpp_err"; then
11705 ac_header_preproc=yes
11706 else
11707 echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11710 ac_header_preproc=no
11712 rm -f conftest.err conftest.$ac_ext
11713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11714 echo "${ECHO_T}$ac_header_preproc" >&6
11716 # So? What about this header?
11717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11718 yes:no: )
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11723 ac_header_preproc=yes
11725 no:yes:* )
11726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11739 cat <<\_ASBOX
11740 ## ------------------------------------------ ##
11741 ## Report this to the AC_PACKAGE_NAME lists. ##
11742 ## ------------------------------------------ ##
11743 _ASBOX
11745 sed "s/^/$as_me: WARNING: /" >&2
11747 esac
11748 echo "$as_me:$LINENO: checking for $ac_header" >&5
11749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 else
11753 eval "$as_ac_Header=\$ac_header_preproc"
11755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11760 cat >>confdefs.h <<_ACEOF
11761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11762 _ACEOF
11766 done
11768 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11769 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11770 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11771 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774 ac_check_lib_save_LIBS=$LIBS
11775 LIBS="-lpng -lz -lm $LIBS"
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h. */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11783 /* Override any gcc2 internal prototype to avoid an error. */
11784 #ifdef __cplusplus
11785 extern "C"
11786 #endif
11787 /* We use char because int might match the return type of a gcc2
11788 builtin and then its argument prototype would still apply. */
11789 char png_get_channels ();
11791 main ()
11793 png_get_channels ();
11795 return 0;
11797 _ACEOF
11798 rm -f conftest.$ac_objext conftest$ac_exeext
11799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11800 (eval $ac_link) 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; } &&
11813 { ac_try='test -s conftest$ac_exeext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 ac_cv_lib_png_png_get_channels=yes
11820 else
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11824 ac_cv_lib_png_png_get_channels=no
11826 rm -f conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11828 LIBS=$ac_check_lib_save_LIBS
11830 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11831 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11832 if test $ac_cv_lib_png_png_get_channels = yes; then
11833 HAVE_PNG=yes
11839 if test "${HAVE_PNG}" = "yes"; then
11841 cat >>confdefs.h <<\_ACEOF
11842 #define HAVE_PNG 1
11843 _ACEOF
11848 ### Use -ltiff if available, unless `--with-tiff=no'.
11849 HAVE_TIFF=no
11850 if test "${HAVE_X11}" = "yes"; then
11851 if test "${with_tiff}" != "no"; then
11852 if test "${ac_cv_header_tiffio_h+set}" = set; then
11853 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11854 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11855 if test "${ac_cv_header_tiffio_h+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11859 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11860 else
11861 # Is the header compilable?
11862 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11863 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11864 cat >conftest.$ac_ext <<_ACEOF
11865 /* confdefs.h. */
11866 _ACEOF
11867 cat confdefs.h >>conftest.$ac_ext
11868 cat >>conftest.$ac_ext <<_ACEOF
11869 /* end confdefs.h. */
11870 $ac_includes_default
11871 #include <tiffio.h>
11872 _ACEOF
11873 rm -f conftest.$ac_objext
11874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11875 (eval $ac_compile) 2>conftest.er1
11876 ac_status=$?
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } &&
11882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; } &&
11888 { ac_try='test -s conftest.$ac_objext'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11894 ac_header_compiler=yes
11895 else
11896 echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11899 ac_header_compiler=no
11901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11903 echo "${ECHO_T}$ac_header_compiler" >&6
11905 # Is the header present?
11906 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11907 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11908 cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h. */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11914 #include <tiffio.h>
11915 _ACEOF
11916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11918 ac_status=$?
11919 grep -v '^ *+' conftest.er1 >conftest.err
11920 rm -f conftest.er1
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } >/dev/null; then
11924 if test -s conftest.err; then
11925 ac_cpp_err=$ac_c_preproc_warn_flag
11926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11927 else
11928 ac_cpp_err=
11930 else
11931 ac_cpp_err=yes
11933 if test -z "$ac_cpp_err"; then
11934 ac_header_preproc=yes
11935 else
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 ac_header_preproc=no
11941 rm -f conftest.err conftest.$ac_ext
11942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11943 echo "${ECHO_T}$ac_header_preproc" >&6
11945 # So? What about this header?
11946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11947 yes:no: )
11948 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11949 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11950 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11951 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11952 ac_header_preproc=yes
11954 no:yes:* )
11955 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11956 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11957 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11958 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11959 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11960 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11961 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11962 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11963 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11964 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11965 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11966 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11968 cat <<\_ASBOX
11969 ## ------------------------------------------ ##
11970 ## Report this to the AC_PACKAGE_NAME lists. ##
11971 ## ------------------------------------------ ##
11972 _ASBOX
11974 sed "s/^/$as_me: WARNING: /" >&2
11976 esac
11977 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11978 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11979 if test "${ac_cv_header_tiffio_h+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982 ac_cv_header_tiffio_h=$ac_header_preproc
11984 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11985 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11988 if test $ac_cv_header_tiffio_h = yes; then
11989 tifflibs="-lz -lm"
11990 # At least one tiff package requires the jpeg library.
11991 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11992 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11993 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11994 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 else
11997 ac_check_lib_save_LIBS=$LIBS
11998 LIBS="-ltiff $tifflibs $LIBS"
11999 cat >conftest.$ac_ext <<_ACEOF
12000 /* confdefs.h. */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12006 /* Override any gcc2 internal prototype to avoid an error. */
12007 #ifdef __cplusplus
12008 extern "C"
12009 #endif
12010 /* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
12012 char TIFFGetVersion ();
12014 main ()
12016 TIFFGetVersion ();
12018 return 0;
12020 _ACEOF
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>conftest.er1
12024 ac_status=$?
12025 grep -v '^ *+' conftest.er1 >conftest.err
12026 rm -f conftest.er1
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest$ac_exeext'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 ac_cv_lib_tiff_TIFFGetVersion=yes
12043 else
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 ac_cv_lib_tiff_TIFFGetVersion=no
12049 rm -f conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12051 LIBS=$ac_check_lib_save_LIBS
12053 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12054 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12055 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12056 HAVE_TIFF=yes
12064 if test "${HAVE_TIFF}" = "yes"; then
12066 cat >>confdefs.h <<\_ACEOF
12067 #define HAVE_TIFF 1
12068 _ACEOF
12073 ### Use -lgif if available, unless `--with-gif=no'.
12074 HAVE_GIF=no
12075 if test "${HAVE_X11}" = "yes"; then
12076 if test "${with_gif}" != "no"; then
12077 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12078 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12079 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12080 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12084 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12085 else
12086 # Is the header compilable?
12087 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12088 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12089 cat >conftest.$ac_ext <<_ACEOF
12090 /* confdefs.h. */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12095 $ac_includes_default
12096 #include <gif_lib.h>
12097 _ACEOF
12098 rm -f conftest.$ac_objext
12099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12100 (eval $ac_compile) 2>conftest.er1
12101 ac_status=$?
12102 grep -v '^ *+' conftest.er1 >conftest.err
12103 rm -f conftest.er1
12104 cat conftest.err >&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
12107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12110 ac_status=$?
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; } &&
12113 { ac_try='test -s conftest.$ac_objext'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; }; then
12119 ac_header_compiler=yes
12120 else
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124 ac_header_compiler=no
12126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12128 echo "${ECHO_T}$ac_header_compiler" >&6
12130 # Is the header present?
12131 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12132 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12133 cat >conftest.$ac_ext <<_ACEOF
12134 /* confdefs.h. */
12135 _ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h. */
12139 #include <gif_lib.h>
12140 _ACEOF
12141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12143 ac_status=$?
12144 grep -v '^ *+' conftest.er1 >conftest.err
12145 rm -f conftest.er1
12146 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } >/dev/null; then
12149 if test -s conftest.err; then
12150 ac_cpp_err=$ac_c_preproc_warn_flag
12151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12152 else
12153 ac_cpp_err=
12155 else
12156 ac_cpp_err=yes
12158 if test -z "$ac_cpp_err"; then
12159 ac_header_preproc=yes
12160 else
12161 echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12164 ac_header_preproc=no
12166 rm -f conftest.err conftest.$ac_ext
12167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12168 echo "${ECHO_T}$ac_header_preproc" >&6
12170 # So? What about this header?
12171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12172 yes:no: )
12173 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12174 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12175 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12176 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12177 ac_header_preproc=yes
12179 no:yes:* )
12180 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12181 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12182 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12183 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12184 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12185 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12186 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12187 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12188 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12189 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12190 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12191 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12193 cat <<\_ASBOX
12194 ## ------------------------------------------ ##
12195 ## Report this to the AC_PACKAGE_NAME lists. ##
12196 ## ------------------------------------------ ##
12197 _ASBOX
12199 sed "s/^/$as_me: WARNING: /" >&2
12201 esac
12202 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12203 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12204 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207 ac_cv_header_gif_lib_h=$ac_header_preproc
12209 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12210 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12213 if test $ac_cv_header_gif_lib_h = yes; then
12214 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12215 # Earlier versions can crash Emacs.
12216 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12217 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12218 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 else
12221 ac_check_lib_save_LIBS=$LIBS
12222 LIBS="-lungif $LIBS"
12223 cat >conftest.$ac_ext <<_ACEOF
12224 /* confdefs.h. */
12225 _ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h. */
12230 /* Override any gcc2 internal prototype to avoid an error. */
12231 #ifdef __cplusplus
12232 extern "C"
12233 #endif
12234 /* We use char because int might match the return type of a gcc2
12235 builtin and then its argument prototype would still apply. */
12236 char EGifPutExtensionLast ();
12238 main ()
12240 EGifPutExtensionLast ();
12242 return 0;
12244 _ACEOF
12245 rm -f conftest.$ac_objext conftest$ac_exeext
12246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12247 (eval $ac_link) 2>conftest.er1
12248 ac_status=$?
12249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } &&
12254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; } &&
12260 { ac_try='test -s conftest$ac_exeext'
12261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12262 (eval $ac_try) 2>&5
12263 ac_status=$?
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; }; then
12266 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12267 else
12268 echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12271 ac_cv_lib_ungif_EGifPutExtensionLast=no
12273 rm -f conftest.err conftest.$ac_objext \
12274 conftest$ac_exeext conftest.$ac_ext
12275 LIBS=$ac_check_lib_save_LIBS
12277 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12278 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12279 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12280 HAVE_GIF=yes
12288 if test "${HAVE_GIF}" = "yes"; then
12290 cat >>confdefs.h <<\_ACEOF
12291 #define HAVE_GIF 1
12292 _ACEOF
12297 ### Use Mac OS X Carbon API to implement GUI.
12298 HAVE_CARBON=no
12299 if test "${with_carbon}" != "no"; then
12300 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12301 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12302 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12303 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12307 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12308 else
12309 # Is the header compilable?
12310 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
12311 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
12312 cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h. */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 $ac_includes_default
12319 #include <Carbon/Carbon.h>
12320 _ACEOF
12321 rm -f conftest.$ac_objext
12322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12323 (eval $ac_compile) 2>conftest.er1
12324 ac_status=$?
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
12330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; } &&
12336 { ac_try='test -s conftest.$ac_objext'
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342 ac_header_compiler=yes
12343 else
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12347 ac_header_compiler=no
12349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12351 echo "${ECHO_T}$ac_header_compiler" >&6
12353 # Is the header present?
12354 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12355 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12356 cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h. */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12362 #include <Carbon/Carbon.h>
12363 _ACEOF
12364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } >/dev/null; then
12372 if test -s conftest.err; then
12373 ac_cpp_err=$ac_c_preproc_warn_flag
12374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12375 else
12376 ac_cpp_err=
12378 else
12379 ac_cpp_err=yes
12381 if test -z "$ac_cpp_err"; then
12382 ac_header_preproc=yes
12383 else
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12387 ac_header_preproc=no
12389 rm -f conftest.err conftest.$ac_ext
12390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12391 echo "${ECHO_T}$ac_header_preproc" >&6
12393 # So? What about this header?
12394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12395 yes:no: )
12396 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12397 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12398 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12399 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12400 ac_header_preproc=yes
12402 no:yes:* )
12403 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12404 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12405 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12406 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12407 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12408 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12409 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12410 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12411 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12412 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12413 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12414 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12416 cat <<\_ASBOX
12417 ## ------------------------------------------ ##
12418 ## Report this to the AC_PACKAGE_NAME lists. ##
12419 ## ------------------------------------------ ##
12420 _ASBOX
12422 sed "s/^/$as_me: WARNING: /" >&2
12424 esac
12425 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12426 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12427 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12429 else
12430 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
12432 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12433 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12436 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12437 HAVE_CARBON=yes
12443 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12444 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12445 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12446 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12449 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12450 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12451 else
12452 # Is the header compilable?
12453 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12454 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12455 cat >conftest.$ac_ext <<_ACEOF
12456 /* confdefs.h. */
12457 _ACEOF
12458 cat confdefs.h >>conftest.$ac_ext
12459 cat >>conftest.$ac_ext <<_ACEOF
12460 /* end confdefs.h. */
12461 $ac_includes_default
12462 #include <malloc/malloc.h>
12463 _ACEOF
12464 rm -f conftest.$ac_objext
12465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12466 (eval $ac_compile) 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try='test -s conftest.$ac_objext'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12485 ac_header_compiler=yes
12486 else
12487 echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12490 ac_header_compiler=no
12492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12494 echo "${ECHO_T}$ac_header_compiler" >&6
12496 # Is the header present?
12497 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12498 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12499 cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h. */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 #include <malloc/malloc.h>
12506 _ACEOF
12507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12509 ac_status=$?
12510 grep -v '^ *+' conftest.er1 >conftest.err
12511 rm -f conftest.er1
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } >/dev/null; then
12515 if test -s conftest.err; then
12516 ac_cpp_err=$ac_c_preproc_warn_flag
12517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12518 else
12519 ac_cpp_err=
12521 else
12522 ac_cpp_err=yes
12524 if test -z "$ac_cpp_err"; then
12525 ac_header_preproc=yes
12526 else
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 ac_header_preproc=no
12532 rm -f conftest.err conftest.$ac_ext
12533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12534 echo "${ECHO_T}$ac_header_preproc" >&6
12536 # So? What about this header?
12537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12538 yes:no: )
12539 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12540 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12541 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12542 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12543 ac_header_preproc=yes
12545 no:yes:* )
12546 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12547 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12548 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12549 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12550 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12551 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12552 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12553 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12554 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12555 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12557 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12559 cat <<\_ASBOX
12560 ## ------------------------------------------ ##
12561 ## Report this to the AC_PACKAGE_NAME lists. ##
12562 ## ------------------------------------------ ##
12563 _ASBOX
12565 sed "s/^/$as_me: WARNING: /" >&2
12567 esac
12568 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12569 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12570 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 else
12573 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12575 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12576 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12579 if test $ac_cv_header_malloc_malloc_h = yes; then
12581 cat >>confdefs.h <<\_ACEOF
12582 #define HAVE_MALLOC_MALLOC_H 1
12583 _ACEOF
12589 if test "${HAVE_CARBON}" = "yes"; then
12591 cat >>confdefs.h <<\_ACEOF
12592 #define HAVE_CARBON 1
12593 _ACEOF
12595 window_system=mac
12596 ## Specify the install directory
12597 carbon_appdir=
12598 if test "${carbon_appdir_x}" != ""; then
12599 case ${carbon_appdir_x} in
12600 y | ye | yes) carbon_appdir=/Applications ;;
12601 * ) carbon_appdir=${carbon_appdir_x} ;;
12602 esac
12604 # We also have mouse menus.
12605 HAVE_MENUS=yes
12608 ### Use session management (-lSM -lICE) if available
12609 HAVE_X_SM=no
12610 if test "${HAVE_X11}" = "yes"; then
12611 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12612 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12613 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12614 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12618 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12619 else
12620 # Is the header compilable?
12621 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12622 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12623 cat >conftest.$ac_ext <<_ACEOF
12624 /* confdefs.h. */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12629 $ac_includes_default
12630 #include <X11/SM/SMlib.h>
12631 _ACEOF
12632 rm -f conftest.$ac_objext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12634 (eval $ac_compile) 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; } &&
12647 { ac_try='test -s conftest.$ac_objext'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 ac_header_compiler=yes
12654 else
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 ac_header_compiler=no
12660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12662 echo "${ECHO_T}$ac_header_compiler" >&6
12664 # Is the header present?
12665 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12666 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12667 cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h. */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12673 #include <X11/SM/SMlib.h>
12674 _ACEOF
12675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12677 ac_status=$?
12678 grep -v '^ *+' conftest.er1 >conftest.err
12679 rm -f conftest.er1
12680 cat conftest.err >&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } >/dev/null; then
12683 if test -s conftest.err; then
12684 ac_cpp_err=$ac_c_preproc_warn_flag
12685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12686 else
12687 ac_cpp_err=
12689 else
12690 ac_cpp_err=yes
12692 if test -z "$ac_cpp_err"; then
12693 ac_header_preproc=yes
12694 else
12695 echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12698 ac_header_preproc=no
12700 rm -f conftest.err conftest.$ac_ext
12701 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12702 echo "${ECHO_T}$ac_header_preproc" >&6
12704 # So? What about this header?
12705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12706 yes:no: )
12707 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12708 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12710 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12711 ac_header_preproc=yes
12713 no:yes:* )
12714 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12715 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12716 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12717 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12718 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12719 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12720 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12721 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12722 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12723 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12724 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12725 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12727 cat <<\_ASBOX
12728 ## ------------------------------------------ ##
12729 ## Report this to the AC_PACKAGE_NAME lists. ##
12730 ## ------------------------------------------ ##
12731 _ASBOX
12733 sed "s/^/$as_me: WARNING: /" >&2
12735 esac
12736 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12737 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12738 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 else
12741 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12743 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12744 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12747 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12748 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12749 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12750 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 else
12753 ac_check_lib_save_LIBS=$LIBS
12754 LIBS="-lSM -lICE $LIBS"
12755 cat >conftest.$ac_ext <<_ACEOF
12756 /* confdefs.h. */
12757 _ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12762 /* Override any gcc2 internal prototype to avoid an error. */
12763 #ifdef __cplusplus
12764 extern "C"
12765 #endif
12766 /* We use char because int might match the return type of a gcc2
12767 builtin and then its argument prototype would still apply. */
12768 char SmcOpenConnection ();
12770 main ()
12772 SmcOpenConnection ();
12774 return 0;
12776 _ACEOF
12777 rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12779 (eval $ac_link) 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest$ac_exeext'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12798 ac_cv_lib_SM_SmcOpenConnection=yes
12799 else
12800 echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12803 ac_cv_lib_SM_SmcOpenConnection=no
12805 rm -f conftest.err conftest.$ac_objext \
12806 conftest$ac_exeext conftest.$ac_ext
12807 LIBS=$ac_check_lib_save_LIBS
12809 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12810 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12811 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12812 HAVE_X_SM=yes
12819 if test "${HAVE_X_SM}" = "yes"; then
12821 cat >>confdefs.h <<\_ACEOF
12822 #define HAVE_X_SM 1
12823 _ACEOF
12825 case "$LIBS" in
12826 *-lSM*) ;;
12827 *) LIBS="-lSM -lICE $LIBS" ;;
12828 esac
12832 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12833 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12834 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12835 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 else
12838 cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h. */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844 #include <netdb.h>
12846 main ()
12848 return h_errno;
12850 return 0;
12852 _ACEOF
12853 rm -f conftest.$ac_objext conftest$ac_exeext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12855 (eval $ac_link) 2>conftest.er1
12856 ac_status=$?
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
12862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864 (eval $ac_try) 2>&5
12865 ac_status=$?
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; } &&
12868 { ac_try='test -s conftest$ac_exeext'
12869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870 (eval $ac_try) 2>&5
12871 ac_status=$?
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; }; then
12874 emacs_cv_netdb_declares_h_errno=yes
12875 else
12876 echo "$as_me: failed program was:" >&5
12877 sed 's/^/| /' conftest.$ac_ext >&5
12879 emacs_cv_netdb_declares_h_errno=no
12881 rm -f conftest.err conftest.$ac_objext \
12882 conftest$ac_exeext conftest.$ac_ext
12884 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12885 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12886 if test $emacs_cv_netdb_declares_h_errno = yes; then
12888 cat >>confdefs.h <<\_ACEOF
12889 #define HAVE_H_ERRNO 1
12890 _ACEOF
12894 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12895 # for constant arguments. Useless!
12896 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12897 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12898 if test "${ac_cv_working_alloca_h+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901 cat >conftest.$ac_ext <<_ACEOF
12902 /* confdefs.h. */
12903 _ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12907 #include <alloca.h>
12909 main ()
12911 char *p = (char *) alloca (2 * sizeof (int));
12913 return 0;
12915 _ACEOF
12916 rm -f conftest.$ac_objext conftest$ac_exeext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12918 (eval $ac_link) 2>conftest.er1
12919 ac_status=$?
12920 grep -v '^ *+' conftest.er1 >conftest.err
12921 rm -f conftest.er1
12922 cat conftest.err >&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } &&
12925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12928 ac_status=$?
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; } &&
12931 { ac_try='test -s conftest$ac_exeext'
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; }; then
12937 ac_cv_working_alloca_h=yes
12938 else
12939 echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12942 ac_cv_working_alloca_h=no
12944 rm -f conftest.err conftest.$ac_objext \
12945 conftest$ac_exeext conftest.$ac_ext
12947 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12948 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12949 if test $ac_cv_working_alloca_h = yes; then
12951 cat >>confdefs.h <<\_ACEOF
12952 #define HAVE_ALLOCA_H 1
12953 _ACEOF
12957 echo "$as_me:$LINENO: checking for alloca" >&5
12958 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12959 if test "${ac_cv_func_alloca_works+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 else
12962 cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h. */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12968 #ifdef __GNUC__
12969 # define alloca __builtin_alloca
12970 #else
12971 # ifdef _MSC_VER
12972 # include <malloc.h>
12973 # define alloca _alloca
12974 # else
12975 # if HAVE_ALLOCA_H
12976 # include <alloca.h>
12977 # else
12978 # ifdef _AIX
12979 #pragma alloca
12980 # else
12981 # ifndef alloca /* predefined by HP cc +Olibcalls */
12982 char *alloca ();
12983 # endif
12984 # endif
12985 # endif
12986 # endif
12987 #endif
12990 main ()
12992 char *p = (char *) alloca (1);
12994 return 0;
12996 _ACEOF
12997 rm -f conftest.$ac_objext conftest$ac_exeext
12998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12999 (eval $ac_link) 2>conftest.er1
13000 ac_status=$?
13001 grep -v '^ *+' conftest.er1 >conftest.err
13002 rm -f conftest.er1
13003 cat conftest.err >&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } &&
13006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; } &&
13012 { ac_try='test -s conftest$ac_exeext'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }; then
13018 ac_cv_func_alloca_works=yes
13019 else
13020 echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13023 ac_cv_func_alloca_works=no
13025 rm -f conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext conftest.$ac_ext
13028 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13029 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13031 if test $ac_cv_func_alloca_works = yes; then
13033 cat >>confdefs.h <<\_ACEOF
13034 #define HAVE_ALLOCA 1
13035 _ACEOF
13037 else
13038 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13039 # that cause trouble. Some versions do not even contain alloca or
13040 # contain a buggy version. If you still want to use their alloca,
13041 # use ar to extract alloca.o from them instead of compiling alloca.c.
13043 ALLOCA=alloca.$ac_objext
13045 cat >>confdefs.h <<\_ACEOF
13046 #define C_ALLOCA 1
13047 _ACEOF
13050 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13051 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13052 if test "${ac_cv_os_cray+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13054 else
13055 cat >conftest.$ac_ext <<_ACEOF
13056 /* confdefs.h. */
13057 _ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h. */
13061 #if defined(CRAY) && ! defined(CRAY2)
13062 webecray
13063 #else
13064 wenotbecray
13065 #endif
13067 _ACEOF
13068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13069 $EGREP "webecray" >/dev/null 2>&1; then
13070 ac_cv_os_cray=yes
13071 else
13072 ac_cv_os_cray=no
13074 rm -f conftest*
13077 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13078 echo "${ECHO_T}$ac_cv_os_cray" >&6
13079 if test $ac_cv_os_cray = yes; then
13080 for ac_func in _getb67 GETB67 getb67; do
13081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13082 echo "$as_me:$LINENO: checking for $ac_func" >&5
13083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13084 if eval "test \"\${$as_ac_var+set}\" = set"; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087 cat >conftest.$ac_ext <<_ACEOF
13088 /* confdefs.h. */
13089 _ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13095 #define $ac_func innocuous_$ac_func
13097 /* System header to define __stub macros and hopefully few prototypes,
13098 which can conflict with char $ac_func (); below.
13099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13100 <limits.h> exists even on freestanding compilers. */
13102 #ifdef __STDC__
13103 # include <limits.h>
13104 #else
13105 # include <assert.h>
13106 #endif
13108 #undef $ac_func
13110 /* Override any gcc2 internal prototype to avoid an error. */
13111 #ifdef __cplusplus
13112 extern "C"
13114 #endif
13115 /* We use char because int might match the return type of a gcc2
13116 builtin and then its argument prototype would still apply. */
13117 char $ac_func ();
13118 /* The GNU C library defines this for functions which it implements
13119 to always fail with ENOSYS. Some functions are actually named
13120 something starting with __ and the normal name is an alias. */
13121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13122 choke me
13123 #else
13124 char (*f) () = $ac_func;
13125 #endif
13126 #ifdef __cplusplus
13128 #endif
13131 main ()
13133 return f != $ac_func;
13135 return 0;
13137 _ACEOF
13138 rm -f conftest.$ac_objext conftest$ac_exeext
13139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13140 (eval $ac_link) 2>conftest.er1
13141 ac_status=$?
13142 grep -v '^ *+' conftest.er1 >conftest.err
13143 rm -f conftest.er1
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
13147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; } &&
13153 { ac_try='test -s conftest$ac_exeext'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; }; then
13159 eval "$as_ac_var=yes"
13160 else
13161 echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13164 eval "$as_ac_var=no"
13166 rm -f conftest.err conftest.$ac_objext \
13167 conftest$ac_exeext conftest.$ac_ext
13169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13171 if test `eval echo '${'$as_ac_var'}'` = yes; then
13173 cat >>confdefs.h <<_ACEOF
13174 #define CRAY_STACKSEG_END $ac_func
13175 _ACEOF
13177 break
13180 done
13183 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13184 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13185 if test "${ac_cv_c_stack_direction+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 else
13188 if test "$cross_compiling" = yes; then
13189 ac_cv_c_stack_direction=0
13190 else
13191 cat >conftest.$ac_ext <<_ACEOF
13192 /* confdefs.h. */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13198 find_stack_direction ()
13200 static char *addr = 0;
13201 auto char dummy;
13202 if (addr == 0)
13204 addr = &dummy;
13205 return find_stack_direction ();
13207 else
13208 return (&dummy > addr) ? 1 : -1;
13212 main ()
13214 exit (find_stack_direction () < 0);
13216 _ACEOF
13217 rm -f conftest$ac_exeext
13218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13219 (eval $ac_link) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13225 ac_status=$?
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
13228 ac_cv_c_stack_direction=1
13229 else
13230 echo "$as_me: program exited with status $ac_status" >&5
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13234 ( exit $ac_status )
13235 ac_cv_c_stack_direction=-1
13237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13240 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13241 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13243 cat >>confdefs.h <<_ACEOF
13244 #define STACK_DIRECTION $ac_cv_c_stack_direction
13245 _ACEOF
13251 # fmod, logb, and frexp are found in -lm on most systems.
13252 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13254 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13255 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13256 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 else
13259 ac_check_lib_save_LIBS=$LIBS
13260 LIBS="-lm $LIBS"
13261 cat >conftest.$ac_ext <<_ACEOF
13262 /* confdefs.h. */
13263 _ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13268 /* Override any gcc2 internal prototype to avoid an error. */
13269 #ifdef __cplusplus
13270 extern "C"
13271 #endif
13272 /* We use char because int might match the return type of a gcc2
13273 builtin and then its argument prototype would still apply. */
13274 char sqrt ();
13276 main ()
13278 sqrt ();
13280 return 0;
13282 _ACEOF
13283 rm -f conftest.$ac_objext conftest$ac_exeext
13284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13285 (eval $ac_link) 2>conftest.er1
13286 ac_status=$?
13287 grep -v '^ *+' conftest.er1 >conftest.err
13288 rm -f conftest.er1
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294 (eval $ac_try) 2>&5
13295 ac_status=$?
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; } &&
13298 { ac_try='test -s conftest$ac_exeext'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }; then
13304 ac_cv_lib_m_sqrt=yes
13305 else
13306 echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13309 ac_cv_lib_m_sqrt=no
13311 rm -f conftest.err conftest.$ac_objext \
13312 conftest$ac_exeext conftest.$ac_ext
13313 LIBS=$ac_check_lib_save_LIBS
13315 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13316 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13317 if test $ac_cv_lib_m_sqrt = yes; then
13318 cat >>confdefs.h <<_ACEOF
13319 #define HAVE_LIBM 1
13320 _ACEOF
13322 LIBS="-lm $LIBS"
13327 # Check for mail-locking functions in a "mail" library. Probably this should
13328 # have the same check as for liblockfile below.
13330 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13331 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13332 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13334 else
13335 ac_check_lib_save_LIBS=$LIBS
13336 LIBS="-lmail $LIBS"
13337 cat >conftest.$ac_ext <<_ACEOF
13338 /* confdefs.h. */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13344 /* Override any gcc2 internal prototype to avoid an error. */
13345 #ifdef __cplusplus
13346 extern "C"
13347 #endif
13348 /* We use char because int might match the return type of a gcc2
13349 builtin and then its argument prototype would still apply. */
13350 char maillock ();
13352 main ()
13354 maillock ();
13356 return 0;
13358 _ACEOF
13359 rm -f conftest.$ac_objext conftest$ac_exeext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13361 (eval $ac_link) 2>conftest.er1
13362 ac_status=$?
13363 grep -v '^ *+' conftest.er1 >conftest.err
13364 rm -f conftest.er1
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
13368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; } &&
13374 { ac_try='test -s conftest$ac_exeext'
13375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13377 ac_status=$?
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; }; then
13380 ac_cv_lib_mail_maillock=yes
13381 else
13382 echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13385 ac_cv_lib_mail_maillock=no
13387 rm -f conftest.err conftest.$ac_objext \
13388 conftest$ac_exeext conftest.$ac_ext
13389 LIBS=$ac_check_lib_save_LIBS
13391 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13392 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13393 if test $ac_cv_lib_mail_maillock = yes; then
13394 cat >>confdefs.h <<_ACEOF
13395 #define HAVE_LIBMAIL 1
13396 _ACEOF
13398 LIBS="-lmail $LIBS"
13403 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13404 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13405 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13407 else
13408 ac_check_lib_save_LIBS=$LIBS
13409 LIBS="-llockfile $LIBS"
13410 cat >conftest.$ac_ext <<_ACEOF
13411 /* confdefs.h. */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13417 /* Override any gcc2 internal prototype to avoid an error. */
13418 #ifdef __cplusplus
13419 extern "C"
13420 #endif
13421 /* We use char because int might match the return type of a gcc2
13422 builtin and then its argument prototype would still apply. */
13423 char maillock ();
13425 main ()
13427 maillock ();
13429 return 0;
13431 _ACEOF
13432 rm -f conftest.$ac_objext conftest$ac_exeext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13434 (eval $ac_link) 2>conftest.er1
13435 ac_status=$?
13436 grep -v '^ *+' conftest.er1 >conftest.err
13437 rm -f conftest.er1
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
13441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } &&
13447 { ac_try='test -s conftest$ac_exeext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 ac_cv_lib_lockfile_maillock=yes
13454 else
13455 echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13458 ac_cv_lib_lockfile_maillock=no
13460 rm -f conftest.err conftest.$ac_objext \
13461 conftest$ac_exeext conftest.$ac_ext
13462 LIBS=$ac_check_lib_save_LIBS
13464 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13465 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13466 if test $ac_cv_lib_lockfile_maillock = yes; then
13467 cat >>confdefs.h <<_ACEOF
13468 #define HAVE_LIBLOCKFILE 1
13469 _ACEOF
13471 LIBS="-llockfile $LIBS"
13475 # If we have the shared liblockfile, assume we must use it for mail
13476 # locking (e.g. Debian). If we couldn't link against liblockfile
13477 # (no liblockfile.a installed), ensure that we don't need to.
13478 if test "$ac_cv_lib_lockfile_maillock" = no; then
13479 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13480 set dummy liblockfile.so; ac_word=$2
13481 echo "$as_me:$LINENO: checking for $ac_word" >&5
13482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13483 if test "${ac_cv_prog_liblockfile+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486 if test -n "$liblockfile"; then
13487 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13488 else
13489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13490 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13491 for as_dir in $as_dummy
13493 IFS=$as_save_IFS
13494 test -z "$as_dir" && as_dir=.
13495 for ac_exec_ext in '' $ac_executable_extensions; do
13496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13497 ac_cv_prog_liblockfile="yes"
13498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13499 break 2
13501 done
13502 done
13504 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13507 liblockfile=$ac_cv_prog_liblockfile
13508 if test -n "$liblockfile"; then
13509 echo "$as_me:$LINENO: result: $liblockfile" >&5
13510 echo "${ECHO_T}$liblockfile" >&6
13511 else
13512 echo "$as_me:$LINENO: result: no" >&5
13513 echo "${ECHO_T}no" >&6
13516 if test $ac_cv_prog_liblockfile = yes; then
13517 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13518 This probably means that movemail could lose mail.
13519 There may be a \`development' package to install containing liblockfile." >&5
13520 echo "$as_me: error: Shared liblockfile found but can't link against it.
13521 This probably means that movemail could lose mail.
13522 There may be a \`development' package to install containing liblockfile." >&2;}
13523 { (exit 1); exit 1; }; }
13524 else :
13528 for ac_func in touchlock
13530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13531 echo "$as_me:$LINENO: checking for $ac_func" >&5
13532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13533 if eval "test \"\${$as_ac_var+set}\" = set"; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536 cat >conftest.$ac_ext <<_ACEOF
13537 /* confdefs.h. */
13538 _ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13544 #define $ac_func innocuous_$ac_func
13546 /* System header to define __stub macros and hopefully few prototypes,
13547 which can conflict with char $ac_func (); below.
13548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13549 <limits.h> exists even on freestanding compilers. */
13551 #ifdef __STDC__
13552 # include <limits.h>
13553 #else
13554 # include <assert.h>
13555 #endif
13557 #undef $ac_func
13559 /* Override any gcc2 internal prototype to avoid an error. */
13560 #ifdef __cplusplus
13561 extern "C"
13563 #endif
13564 /* We use char because int might match the return type of a gcc2
13565 builtin and then its argument prototype would still apply. */
13566 char $ac_func ();
13567 /* The GNU C library defines this for functions which it implements
13568 to always fail with ENOSYS. Some functions are actually named
13569 something starting with __ and the normal name is an alias. */
13570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13571 choke me
13572 #else
13573 char (*f) () = $ac_func;
13574 #endif
13575 #ifdef __cplusplus
13577 #endif
13580 main ()
13582 return f != $ac_func;
13584 return 0;
13586 _ACEOF
13587 rm -f conftest.$ac_objext conftest$ac_exeext
13588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13589 (eval $ac_link) 2>conftest.er1
13590 ac_status=$?
13591 grep -v '^ *+' conftest.er1 >conftest.err
13592 rm -f conftest.er1
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
13596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598 (eval $ac_try) 2>&5
13599 ac_status=$?
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); }; } &&
13602 { ac_try='test -s conftest$ac_exeext'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }; then
13608 eval "$as_ac_var=yes"
13609 else
13610 echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13613 eval "$as_ac_var=no"
13615 rm -f conftest.err conftest.$ac_objext \
13616 conftest$ac_exeext conftest.$ac_ext
13618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13620 if test `eval echo '${'$as_ac_var'}'` = yes; then
13621 cat >>confdefs.h <<_ACEOF
13622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13623 _ACEOF
13626 done
13629 for ac_header in maillock.h
13631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13633 echo "$as_me:$LINENO: checking for $ac_header" >&5
13634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13640 else
13641 # Is the header compilable?
13642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13644 cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h. */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650 $ac_includes_default
13651 #include <$ac_header>
13652 _ACEOF
13653 rm -f conftest.$ac_objext
13654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655 (eval $ac_compile) 2>conftest.er1
13656 ac_status=$?
13657 grep -v '^ *+' conftest.er1 >conftest.err
13658 rm -f conftest.er1
13659 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } &&
13662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; } &&
13668 { ac_try='test -s conftest.$ac_objext'
13669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
13674 ac_header_compiler=yes
13675 else
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13679 ac_header_compiler=no
13681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13683 echo "${ECHO_T}$ac_header_compiler" >&6
13685 # Is the header present?
13686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13688 cat >conftest.$ac_ext <<_ACEOF
13689 /* confdefs.h. */
13690 _ACEOF
13691 cat confdefs.h >>conftest.$ac_ext
13692 cat >>conftest.$ac_ext <<_ACEOF
13693 /* end confdefs.h. */
13694 #include <$ac_header>
13695 _ACEOF
13696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13698 ac_status=$?
13699 grep -v '^ *+' conftest.er1 >conftest.err
13700 rm -f conftest.er1
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } >/dev/null; then
13704 if test -s conftest.err; then
13705 ac_cpp_err=$ac_c_preproc_warn_flag
13706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13707 else
13708 ac_cpp_err=
13710 else
13711 ac_cpp_err=yes
13713 if test -z "$ac_cpp_err"; then
13714 ac_header_preproc=yes
13715 else
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13719 ac_header_preproc=no
13721 rm -f conftest.err conftest.$ac_ext
13722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13723 echo "${ECHO_T}$ac_header_preproc" >&6
13725 # So? What about this header?
13726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13727 yes:no: )
13728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13732 ac_header_preproc=yes
13734 no:yes:* )
13735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13748 cat <<\_ASBOX
13749 ## ------------------------------------------ ##
13750 ## Report this to the AC_PACKAGE_NAME lists. ##
13751 ## ------------------------------------------ ##
13752 _ASBOX
13754 sed "s/^/$as_me: WARNING: /" >&2
13756 esac
13757 echo "$as_me:$LINENO: checking for $ac_header" >&5
13758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 else
13762 eval "$as_ac_Header=\$ac_header_preproc"
13764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13769 cat >>confdefs.h <<_ACEOF
13770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13771 _ACEOF
13775 done
13845 for ac_func in gethostname getdomainname dup2 \
13846 rename closedir mkdir rmdir sysinfo getrusage \
13847 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13848 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13849 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13850 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13851 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13852 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13853 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13856 echo "$as_me:$LINENO: checking for $ac_func" >&5
13857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13858 if eval "test \"\${$as_ac_var+set}\" = set"; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861 cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h. */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13869 #define $ac_func innocuous_$ac_func
13871 /* System header to define __stub macros and hopefully few prototypes,
13872 which can conflict with char $ac_func (); below.
13873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13874 <limits.h> exists even on freestanding compilers. */
13876 #ifdef __STDC__
13877 # include <limits.h>
13878 #else
13879 # include <assert.h>
13880 #endif
13882 #undef $ac_func
13884 /* Override any gcc2 internal prototype to avoid an error. */
13885 #ifdef __cplusplus
13886 extern "C"
13888 #endif
13889 /* We use char because int might match the return type of a gcc2
13890 builtin and then its argument prototype would still apply. */
13891 char $ac_func ();
13892 /* The GNU C library defines this for functions which it implements
13893 to always fail with ENOSYS. Some functions are actually named
13894 something starting with __ and the normal name is an alias. */
13895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13896 choke me
13897 #else
13898 char (*f) () = $ac_func;
13899 #endif
13900 #ifdef __cplusplus
13902 #endif
13905 main ()
13907 return f != $ac_func;
13909 return 0;
13911 _ACEOF
13912 rm -f conftest.$ac_objext conftest$ac_exeext
13913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13914 (eval $ac_link) 2>conftest.er1
13915 ac_status=$?
13916 grep -v '^ *+' conftest.er1 >conftest.err
13917 rm -f conftest.er1
13918 cat conftest.err >&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } &&
13921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; } &&
13927 { ac_try='test -s conftest$ac_exeext'
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 eval "$as_ac_var=yes"
13934 else
13935 echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13938 eval "$as_ac_var=no"
13940 rm -f conftest.err conftest.$ac_objext \
13941 conftest$ac_exeext conftest.$ac_ext
13943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13945 if test `eval echo '${'$as_ac_var'}'` = yes; then
13946 cat >>confdefs.h <<_ACEOF
13947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13948 _ACEOF
13951 done
13955 for ac_header in sys/un.h
13957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13959 echo "$as_me:$LINENO: checking for $ac_header" >&5
13960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13966 else
13967 # Is the header compilable?
13968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13970 cat >conftest.$ac_ext <<_ACEOF
13971 /* confdefs.h. */
13972 _ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13976 $ac_includes_default
13977 #include <$ac_header>
13978 _ACEOF
13979 rm -f conftest.$ac_objext
13980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13981 (eval $ac_compile) 2>conftest.er1
13982 ac_status=$?
13983 grep -v '^ *+' conftest.er1 >conftest.err
13984 rm -f conftest.er1
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } &&
13988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13991 ac_status=$?
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; } &&
13994 { ac_try='test -s conftest.$ac_objext'
13995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996 (eval $ac_try) 2>&5
13997 ac_status=$?
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14000 ac_header_compiler=yes
14001 else
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_header_compiler=no
14007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14009 echo "${ECHO_T}$ac_header_compiler" >&6
14011 # Is the header present?
14012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14014 cat >conftest.$ac_ext <<_ACEOF
14015 /* confdefs.h. */
14016 _ACEOF
14017 cat confdefs.h >>conftest.$ac_ext
14018 cat >>conftest.$ac_ext <<_ACEOF
14019 /* end confdefs.h. */
14020 #include <$ac_header>
14021 _ACEOF
14022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14024 ac_status=$?
14025 grep -v '^ *+' conftest.er1 >conftest.err
14026 rm -f conftest.er1
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } >/dev/null; then
14030 if test -s conftest.err; then
14031 ac_cpp_err=$ac_c_preproc_warn_flag
14032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14033 else
14034 ac_cpp_err=
14036 else
14037 ac_cpp_err=yes
14039 if test -z "$ac_cpp_err"; then
14040 ac_header_preproc=yes
14041 else
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_header_preproc=no
14047 rm -f conftest.err conftest.$ac_ext
14048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14049 echo "${ECHO_T}$ac_header_preproc" >&6
14051 # So? What about this header?
14052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14053 yes:no: )
14054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14058 ac_header_preproc=yes
14060 no:yes:* )
14061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14074 cat <<\_ASBOX
14075 ## ------------------------------------------ ##
14076 ## Report this to the AC_PACKAGE_NAME lists. ##
14077 ## ------------------------------------------ ##
14078 _ASBOX
14080 sed "s/^/$as_me: WARNING: /" >&2
14082 esac
14083 echo "$as_me:$LINENO: checking for $ac_header" >&5
14084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 else
14088 eval "$as_ac_Header=\$ac_header_preproc"
14090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14095 cat >>confdefs.h <<_ACEOF
14096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14097 _ACEOF
14101 done
14107 for ac_header in stdlib.h sys/time.h unistd.h
14109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14111 echo "$as_me:$LINENO: checking for $ac_header" >&5
14112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14118 else
14119 # Is the header compilable?
14120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14122 cat >conftest.$ac_ext <<_ACEOF
14123 /* confdefs.h. */
14124 _ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h. */
14128 $ac_includes_default
14129 #include <$ac_header>
14130 _ACEOF
14131 rm -f conftest.$ac_objext
14132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14133 (eval $ac_compile) 2>conftest.er1
14134 ac_status=$?
14135 grep -v '^ *+' conftest.er1 >conftest.err
14136 rm -f conftest.er1
14137 cat conftest.err >&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } &&
14140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14143 ac_status=$?
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; } &&
14146 { ac_try='test -s conftest.$ac_objext'
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14149 ac_status=$?
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; }; then
14152 ac_header_compiler=yes
14153 else
14154 echo "$as_me: failed program was:" >&5
14155 sed 's/^/| /' conftest.$ac_ext >&5
14157 ac_header_compiler=no
14159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14161 echo "${ECHO_T}$ac_header_compiler" >&6
14163 # Is the header present?
14164 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14166 cat >conftest.$ac_ext <<_ACEOF
14167 /* confdefs.h. */
14168 _ACEOF
14169 cat confdefs.h >>conftest.$ac_ext
14170 cat >>conftest.$ac_ext <<_ACEOF
14171 /* end confdefs.h. */
14172 #include <$ac_header>
14173 _ACEOF
14174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14176 ac_status=$?
14177 grep -v '^ *+' conftest.er1 >conftest.err
14178 rm -f conftest.er1
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } >/dev/null; then
14182 if test -s conftest.err; then
14183 ac_cpp_err=$ac_c_preproc_warn_flag
14184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14185 else
14186 ac_cpp_err=
14188 else
14189 ac_cpp_err=yes
14191 if test -z "$ac_cpp_err"; then
14192 ac_header_preproc=yes
14193 else
14194 echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.$ac_ext >&5
14197 ac_header_preproc=no
14199 rm -f conftest.err conftest.$ac_ext
14200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14201 echo "${ECHO_T}$ac_header_preproc" >&6
14203 # So? What about this header?
14204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14205 yes:no: )
14206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14210 ac_header_preproc=yes
14212 no:yes:* )
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14226 cat <<\_ASBOX
14227 ## ------------------------------------------ ##
14228 ## Report this to the AC_PACKAGE_NAME lists. ##
14229 ## ------------------------------------------ ##
14230 _ASBOX
14232 sed "s/^/$as_me: WARNING: /" >&2
14234 esac
14235 echo "$as_me:$LINENO: checking for $ac_header" >&5
14236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14239 else
14240 eval "$as_ac_Header=\$ac_header_preproc"
14242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14247 cat >>confdefs.h <<_ACEOF
14248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14249 _ACEOF
14253 done
14256 for ac_func in alarm
14258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14259 echo "$as_me:$LINENO: checking for $ac_func" >&5
14260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14261 if eval "test \"\${$as_ac_var+set}\" = set"; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 else
14264 cat >conftest.$ac_ext <<_ACEOF
14265 /* confdefs.h. */
14266 _ACEOF
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h. */
14270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14272 #define $ac_func innocuous_$ac_func
14274 /* System header to define __stub macros and hopefully few prototypes,
14275 which can conflict with char $ac_func (); below.
14276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14277 <limits.h> exists even on freestanding compilers. */
14279 #ifdef __STDC__
14280 # include <limits.h>
14281 #else
14282 # include <assert.h>
14283 #endif
14285 #undef $ac_func
14287 /* Override any gcc2 internal prototype to avoid an error. */
14288 #ifdef __cplusplus
14289 extern "C"
14291 #endif
14292 /* We use char because int might match the return type of a gcc2
14293 builtin and then its argument prototype would still apply. */
14294 char $ac_func ();
14295 /* The GNU C library defines this for functions which it implements
14296 to always fail with ENOSYS. Some functions are actually named
14297 something starting with __ and the normal name is an alias. */
14298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14299 choke me
14300 #else
14301 char (*f) () = $ac_func;
14302 #endif
14303 #ifdef __cplusplus
14305 #endif
14308 main ()
14310 return f != $ac_func;
14312 return 0;
14314 _ACEOF
14315 rm -f conftest.$ac_objext conftest$ac_exeext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14317 (eval $ac_link) 2>conftest.er1
14318 ac_status=$?
14319 grep -v '^ *+' conftest.er1 >conftest.err
14320 rm -f conftest.er1
14321 cat conftest.err >&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); } &&
14324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; } &&
14330 { ac_try='test -s conftest$ac_exeext'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 eval "$as_ac_var=yes"
14337 else
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 eval "$as_ac_var=no"
14343 rm -f conftest.err conftest.$ac_objext \
14344 conftest$ac_exeext conftest.$ac_ext
14346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14348 if test `eval echo '${'$as_ac_var'}'` = yes; then
14349 cat >>confdefs.h <<_ACEOF
14350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14351 _ACEOF
14354 done
14356 echo "$as_me:$LINENO: checking for working mktime" >&5
14357 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14358 if test "${ac_cv_func_working_mktime+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361 if test "$cross_compiling" = yes; then
14362 ac_cv_func_working_mktime=no
14363 else
14364 cat >conftest.$ac_ext <<_ACEOF
14365 /* confdefs.h. */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 /* Test program from Paul Eggert and Tony Leneis. */
14371 #if TIME_WITH_SYS_TIME
14372 # include <sys/time.h>
14373 # include <time.h>
14374 #else
14375 # if HAVE_SYS_TIME_H
14376 # include <sys/time.h>
14377 # else
14378 # include <time.h>
14379 # endif
14380 #endif
14382 #if HAVE_STDLIB_H
14383 # include <stdlib.h>
14384 #endif
14386 #if HAVE_UNISTD_H
14387 # include <unistd.h>
14388 #endif
14390 #if !HAVE_ALARM
14391 # define alarm(X) /* empty */
14392 #endif
14394 /* Work around redefinition to rpl_putenv by other config tests. */
14395 #undef putenv
14397 static time_t time_t_max;
14398 static time_t time_t_min;
14400 /* Values we'll use to set the TZ environment variable. */
14401 static char *tz_strings[] = {
14402 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14403 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14405 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14407 /* Fail if mktime fails to convert a date in the spring-forward gap.
14408 Based on a problem report from Andreas Jaeger. */
14409 static void
14410 spring_forward_gap ()
14412 /* glibc (up to about 1998-10-07) failed this test. */
14413 struct tm tm;
14415 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14416 instead of "TZ=America/Vancouver" in order to detect the bug even
14417 on systems that don't support the Olson extension, or don't have the
14418 full zoneinfo tables installed. */
14419 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14421 tm.tm_year = 98;
14422 tm.tm_mon = 3;
14423 tm.tm_mday = 5;
14424 tm.tm_hour = 2;
14425 tm.tm_min = 0;
14426 tm.tm_sec = 0;
14427 tm.tm_isdst = -1;
14428 if (mktime (&tm) == (time_t)-1)
14429 exit (1);
14432 static void
14433 mktime_test1 (now)
14434 time_t now;
14436 struct tm *lt;
14437 if ((lt = localtime (&now)) && mktime (lt) != now)
14438 exit (1);
14441 static void
14442 mktime_test (now)
14443 time_t now;
14445 mktime_test1 (now);
14446 mktime_test1 ((time_t) (time_t_max - now));
14447 mktime_test1 ((time_t) (time_t_min + now));
14450 static void
14451 irix_6_4_bug ()
14453 /* Based on code from Ariel Faigon. */
14454 struct tm tm;
14455 tm.tm_year = 96;
14456 tm.tm_mon = 3;
14457 tm.tm_mday = 0;
14458 tm.tm_hour = 0;
14459 tm.tm_min = 0;
14460 tm.tm_sec = 0;
14461 tm.tm_isdst = -1;
14462 mktime (&tm);
14463 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14464 exit (1);
14467 static void
14468 bigtime_test (j)
14469 int j;
14471 struct tm tm;
14472 time_t now;
14473 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14474 now = mktime (&tm);
14475 if (now != (time_t) -1)
14477 struct tm *lt = localtime (&now);
14478 if (! (lt
14479 && lt->tm_year == tm.tm_year
14480 && lt->tm_mon == tm.tm_mon
14481 && lt->tm_mday == tm.tm_mday
14482 && lt->tm_hour == tm.tm_hour
14483 && lt->tm_min == tm.tm_min
14484 && lt->tm_sec == tm.tm_sec
14485 && lt->tm_yday == tm.tm_yday
14486 && lt->tm_wday == tm.tm_wday
14487 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14488 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14489 exit (1);
14494 main ()
14496 time_t t, delta;
14497 int i, j;
14499 /* This test makes some buggy mktime implementations loop.
14500 Give up after 60 seconds; a mktime slower than that
14501 isn't worth using anyway. */
14502 alarm (60);
14504 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14505 continue;
14506 time_t_max--;
14507 if ((time_t) -1 < 0)
14508 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14509 continue;
14510 delta = time_t_max / 997; /* a suitable prime number */
14511 for (i = 0; i < N_STRINGS; i++)
14513 if (tz_strings[i])
14514 putenv (tz_strings[i]);
14516 for (t = 0; t <= time_t_max - delta; t += delta)
14517 mktime_test (t);
14518 mktime_test ((time_t) 1);
14519 mktime_test ((time_t) (60 * 60));
14520 mktime_test ((time_t) (60 * 60 * 24));
14522 for (j = 1; 0 < j; j *= 2)
14523 bigtime_test (j);
14524 bigtime_test (j - 1);
14526 irix_6_4_bug ();
14527 spring_forward_gap ();
14528 exit (0);
14530 _ACEOF
14531 rm -f conftest$ac_exeext
14532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14533 (eval $ac_link) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14542 ac_cv_func_working_mktime=yes
14543 else
14544 echo "$as_me: program exited with status $ac_status" >&5
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14548 ( exit $ac_status )
14549 ac_cv_func_working_mktime=no
14551 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14554 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14555 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14556 if test $ac_cv_func_working_mktime = no; then
14557 case $LIBOBJS in
14558 "mktime.$ac_objext" | \
14559 *" mktime.$ac_objext" | \
14560 "mktime.$ac_objext "* | \
14561 *" mktime.$ac_objext "* ) ;;
14562 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14563 esac
14567 if test "$ac_cv_func_working_mktime" = no; then
14569 cat >>confdefs.h <<\_ACEOF
14570 #define BROKEN_MKTIME 1
14571 _ACEOF
14575 ac_have_func=no # yes means we've found a way to get the load average.
14577 # Make sure getloadavg.c is where it belongs, at configure-time.
14578 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14579 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14580 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14581 { (exit 1); exit 1; }; }
14583 ac_save_LIBS=$LIBS
14585 # Check for getloadavg, but be sure not to touch the cache variable.
14586 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14587 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14588 if test "${ac_cv_func_getloadavg+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590 else
14591 cat >conftest.$ac_ext <<_ACEOF
14592 /* confdefs.h. */
14593 _ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14597 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14599 #define getloadavg innocuous_getloadavg
14601 /* System header to define __stub macros and hopefully few prototypes,
14602 which can conflict with char getloadavg (); below.
14603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14604 <limits.h> exists even on freestanding compilers. */
14606 #ifdef __STDC__
14607 # include <limits.h>
14608 #else
14609 # include <assert.h>
14610 #endif
14612 #undef getloadavg
14614 /* Override any gcc2 internal prototype to avoid an error. */
14615 #ifdef __cplusplus
14616 extern "C"
14618 #endif
14619 /* We use char because int might match the return type of a gcc2
14620 builtin and then its argument prototype would still apply. */
14621 char getloadavg ();
14622 /* The GNU C library defines this for functions which it implements
14623 to always fail with ENOSYS. Some functions are actually named
14624 something starting with __ and the normal name is an alias. */
14625 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14626 choke me
14627 #else
14628 char (*f) () = getloadavg;
14629 #endif
14630 #ifdef __cplusplus
14632 #endif
14635 main ()
14637 return f != getloadavg;
14639 return 0;
14641 _ACEOF
14642 rm -f conftest.$ac_objext conftest$ac_exeext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14644 (eval $ac_link) 2>conftest.er1
14645 ac_status=$?
14646 grep -v '^ *+' conftest.er1 >conftest.err
14647 rm -f conftest.er1
14648 cat conftest.err >&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
14651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; } &&
14657 { ac_try='test -s conftest$ac_exeext'
14658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14660 ac_status=$?
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; }; then
14663 ac_cv_func_getloadavg=yes
14664 else
14665 echo "$as_me: failed program was:" >&5
14666 sed 's/^/| /' conftest.$ac_ext >&5
14668 ac_cv_func_getloadavg=no
14670 rm -f conftest.err conftest.$ac_objext \
14671 conftest$ac_exeext conftest.$ac_ext
14673 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14674 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14675 if test $ac_cv_func_getloadavg = yes; then
14676 exit 0
14677 else
14678 exit 1
14680 ) && ac_have_func=yes
14682 # On HPUX9, an unprivileged user can get load averages through this function.
14684 for ac_func in pstat_getdynamic
14686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14687 echo "$as_me:$LINENO: checking for $ac_func" >&5
14688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14689 if eval "test \"\${$as_ac_var+set}\" = set"; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 else
14692 cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h. */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14700 #define $ac_func innocuous_$ac_func
14702 /* System header to define __stub macros and hopefully few prototypes,
14703 which can conflict with char $ac_func (); below.
14704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14705 <limits.h> exists even on freestanding compilers. */
14707 #ifdef __STDC__
14708 # include <limits.h>
14709 #else
14710 # include <assert.h>
14711 #endif
14713 #undef $ac_func
14715 /* Override any gcc2 internal prototype to avoid an error. */
14716 #ifdef __cplusplus
14717 extern "C"
14719 #endif
14720 /* We use char because int might match the return type of a gcc2
14721 builtin and then its argument prototype would still apply. */
14722 char $ac_func ();
14723 /* The GNU C library defines this for functions which it implements
14724 to always fail with ENOSYS. Some functions are actually named
14725 something starting with __ and the normal name is an alias. */
14726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14727 choke me
14728 #else
14729 char (*f) () = $ac_func;
14730 #endif
14731 #ifdef __cplusplus
14733 #endif
14736 main ()
14738 return f != $ac_func;
14740 return 0;
14742 _ACEOF
14743 rm -f conftest.$ac_objext conftest$ac_exeext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14745 (eval $ac_link) 2>conftest.er1
14746 ac_status=$?
14747 grep -v '^ *+' conftest.er1 >conftest.err
14748 rm -f conftest.er1
14749 cat conftest.err >&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
14752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest$ac_exeext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 eval "$as_ac_var=yes"
14765 else
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 eval "$as_ac_var=no"
14771 rm -f conftest.err conftest.$ac_objext \
14772 conftest$ac_exeext conftest.$ac_ext
14774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14776 if test `eval echo '${'$as_ac_var'}'` = yes; then
14777 cat >>confdefs.h <<_ACEOF
14778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14779 _ACEOF
14782 done
14785 # Solaris has libkstat which does not require root.
14787 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14788 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14789 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 else
14792 ac_check_lib_save_LIBS=$LIBS
14793 LIBS="-lkstat $LIBS"
14794 cat >conftest.$ac_ext <<_ACEOF
14795 /* confdefs.h. */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14801 /* Override any gcc2 internal prototype to avoid an error. */
14802 #ifdef __cplusplus
14803 extern "C"
14804 #endif
14805 /* We use char because int might match the return type of a gcc2
14806 builtin and then its argument prototype would still apply. */
14807 char kstat_open ();
14809 main ()
14811 kstat_open ();
14813 return 0;
14815 _ACEOF
14816 rm -f conftest.$ac_objext conftest$ac_exeext
14817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14818 (eval $ac_link) 2>conftest.er1
14819 ac_status=$?
14820 grep -v '^ *+' conftest.er1 >conftest.err
14821 rm -f conftest.er1
14822 cat conftest.err >&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } &&
14825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; } &&
14831 { ac_try='test -s conftest$ac_exeext'
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; }; then
14837 ac_cv_lib_kstat_kstat_open=yes
14838 else
14839 echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.$ac_ext >&5
14842 ac_cv_lib_kstat_kstat_open=no
14844 rm -f conftest.err conftest.$ac_objext \
14845 conftest$ac_exeext conftest.$ac_ext
14846 LIBS=$ac_check_lib_save_LIBS
14848 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14849 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14850 if test $ac_cv_lib_kstat_kstat_open = yes; then
14851 cat >>confdefs.h <<_ACEOF
14852 #define HAVE_LIBKSTAT 1
14853 _ACEOF
14855 LIBS="-lkstat $LIBS"
14859 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14861 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14862 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14863 # to get the right answer into the cache.
14864 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14865 if test $ac_have_func = no; then
14866 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14867 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14868 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871 ac_check_lib_save_LIBS=$LIBS
14872 LIBS="-lelf $LIBS"
14873 cat >conftest.$ac_ext <<_ACEOF
14874 /* confdefs.h. */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14880 /* Override any gcc2 internal prototype to avoid an error. */
14881 #ifdef __cplusplus
14882 extern "C"
14883 #endif
14884 /* We use char because int might match the return type of a gcc2
14885 builtin and then its argument prototype would still apply. */
14886 char elf_begin ();
14888 main ()
14890 elf_begin ();
14892 return 0;
14894 _ACEOF
14895 rm -f conftest.$ac_objext conftest$ac_exeext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14897 (eval $ac_link) 2>conftest.er1
14898 ac_status=$?
14899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
14904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14907 ac_status=$?
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; } &&
14910 { ac_try='test -s conftest$ac_exeext'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; }; then
14916 ac_cv_lib_elf_elf_begin=yes
14917 else
14918 echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 ac_cv_lib_elf_elf_begin=no
14923 rm -f conftest.err conftest.$ac_objext \
14924 conftest$ac_exeext conftest.$ac_ext
14925 LIBS=$ac_check_lib_save_LIBS
14927 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14928 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14929 if test $ac_cv_lib_elf_elf_begin = yes; then
14930 LIBS="-lelf $LIBS"
14934 if test $ac_have_func = no; then
14935 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14936 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14937 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 else
14940 ac_check_lib_save_LIBS=$LIBS
14941 LIBS="-lkvm $LIBS"
14942 cat >conftest.$ac_ext <<_ACEOF
14943 /* confdefs.h. */
14944 _ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14949 /* Override any gcc2 internal prototype to avoid an error. */
14950 #ifdef __cplusplus
14951 extern "C"
14952 #endif
14953 /* We use char because int might match the return type of a gcc2
14954 builtin and then its argument prototype would still apply. */
14955 char kvm_open ();
14957 main ()
14959 kvm_open ();
14961 return 0;
14963 _ACEOF
14964 rm -f conftest.$ac_objext conftest$ac_exeext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14966 (eval $ac_link) 2>conftest.er1
14967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } &&
14973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14976 ac_status=$?
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; } &&
14979 { ac_try='test -s conftest$ac_exeext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14982 ac_status=$?
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_cv_lib_kvm_kvm_open=yes
14986 else
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_cv_lib_kvm_kvm_open=no
14992 rm -f conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14996 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14997 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14998 if test $ac_cv_lib_kvm_kvm_open = yes; then
14999 LIBS="-lkvm $LIBS"
15002 # Check for the 4.4BSD definition of getloadavg.
15003 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15004 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15005 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 else
15008 ac_check_lib_save_LIBS=$LIBS
15009 LIBS="-lutil $LIBS"
15010 cat >conftest.$ac_ext <<_ACEOF
15011 /* confdefs.h. */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15017 /* Override any gcc2 internal prototype to avoid an error. */
15018 #ifdef __cplusplus
15019 extern "C"
15020 #endif
15021 /* We use char because int might match the return type of a gcc2
15022 builtin and then its argument prototype would still apply. */
15023 char getloadavg ();
15025 main ()
15027 getloadavg ();
15029 return 0;
15031 _ACEOF
15032 rm -f conftest.$ac_objext conftest$ac_exeext
15033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15034 (eval $ac_link) 2>conftest.er1
15035 ac_status=$?
15036 grep -v '^ *+' conftest.er1 >conftest.err
15037 rm -f conftest.er1
15038 cat conftest.err >&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); } &&
15041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15044 ac_status=$?
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; } &&
15047 { ac_try='test -s conftest$ac_exeext'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 ac_cv_lib_util_getloadavg=yes
15054 else
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15058 ac_cv_lib_util_getloadavg=no
15060 rm -f conftest.err conftest.$ac_objext \
15061 conftest$ac_exeext conftest.$ac_ext
15062 LIBS=$ac_check_lib_save_LIBS
15064 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15065 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15066 if test $ac_cv_lib_util_getloadavg = yes; then
15067 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15072 if test $ac_have_func = no; then
15073 # There is a commonly available library for RS/6000 AIX.
15074 # Since it is not a standard part of AIX, it might be installed locally.
15075 ac_getloadavg_LIBS=$LIBS
15076 LIBS="-L/usr/local/lib $LIBS"
15077 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15078 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15079 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 else
15082 ac_check_lib_save_LIBS=$LIBS
15083 LIBS="-lgetloadavg $LIBS"
15084 cat >conftest.$ac_ext <<_ACEOF
15085 /* confdefs.h. */
15086 _ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h. */
15091 /* Override any gcc2 internal prototype to avoid an error. */
15092 #ifdef __cplusplus
15093 extern "C"
15094 #endif
15095 /* We use char because int might match the return type of a gcc2
15096 builtin and then its argument prototype would still apply. */
15097 char getloadavg ();
15099 main ()
15101 getloadavg ();
15103 return 0;
15105 _ACEOF
15106 rm -f conftest.$ac_objext conftest$ac_exeext
15107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15108 (eval $ac_link) 2>conftest.er1
15109 ac_status=$?
15110 grep -v '^ *+' conftest.er1 >conftest.err
15111 rm -f conftest.er1
15112 cat conftest.err >&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
15115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; } &&
15121 { ac_try='test -s conftest$ac_exeext'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_cv_lib_getloadavg_getloadavg=yes
15128 else
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ac_cv_lib_getloadavg_getloadavg=no
15134 rm -f conftest.err conftest.$ac_objext \
15135 conftest$ac_exeext conftest.$ac_ext
15136 LIBS=$ac_check_lib_save_LIBS
15138 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15139 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15140 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15141 LIBS="-lgetloadavg $LIBS"
15142 else
15143 LIBS=$ac_getloadavg_LIBS
15148 # Make sure it is really in the library, if we think we found it,
15149 # otherwise set up the replacement function.
15151 for ac_func in getloadavg
15153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15154 echo "$as_me:$LINENO: checking for $ac_func" >&5
15155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15156 if eval "test \"\${$as_ac_var+set}\" = set"; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15158 else
15159 cat >conftest.$ac_ext <<_ACEOF
15160 /* confdefs.h. */
15161 _ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15167 #define $ac_func innocuous_$ac_func
15169 /* System header to define __stub macros and hopefully few prototypes,
15170 which can conflict with char $ac_func (); below.
15171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15172 <limits.h> exists even on freestanding compilers. */
15174 #ifdef __STDC__
15175 # include <limits.h>
15176 #else
15177 # include <assert.h>
15178 #endif
15180 #undef $ac_func
15182 /* Override any gcc2 internal prototype to avoid an error. */
15183 #ifdef __cplusplus
15184 extern "C"
15186 #endif
15187 /* We use char because int might match the return type of a gcc2
15188 builtin and then its argument prototype would still apply. */
15189 char $ac_func ();
15190 /* The GNU C library defines this for functions which it implements
15191 to always fail with ENOSYS. Some functions are actually named
15192 something starting with __ and the normal name is an alias. */
15193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15194 choke me
15195 #else
15196 char (*f) () = $ac_func;
15197 #endif
15198 #ifdef __cplusplus
15200 #endif
15203 main ()
15205 return f != $ac_func;
15207 return 0;
15209 _ACEOF
15210 rm -f conftest.$ac_objext conftest$ac_exeext
15211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15212 (eval $ac_link) 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15222 ac_status=$?
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; } &&
15225 { ac_try='test -s conftest$ac_exeext'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15228 ac_status=$?
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; }; then
15231 eval "$as_ac_var=yes"
15232 else
15233 echo "$as_me: failed program was:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15236 eval "$as_ac_var=no"
15238 rm -f conftest.err conftest.$ac_objext \
15239 conftest$ac_exeext conftest.$ac_ext
15241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15243 if test `eval echo '${'$as_ac_var'}'` = yes; then
15244 cat >>confdefs.h <<_ACEOF
15245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15246 _ACEOF
15248 else
15249 case $LIBOBJS in
15250 "getloadavg.$ac_objext" | \
15251 *" getloadavg.$ac_objext" | \
15252 "getloadavg.$ac_objext "* | \
15253 *" getloadavg.$ac_objext "* ) ;;
15254 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15255 esac
15258 cat >>confdefs.h <<\_ACEOF
15259 #define C_GETLOADAVG 1
15260 _ACEOF
15262 # Figure out what our getloadavg.c needs.
15263 ac_have_func=no
15264 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15265 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15266 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15267 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15271 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15272 else
15273 # Is the header compilable?
15274 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15275 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15276 cat >conftest.$ac_ext <<_ACEOF
15277 /* confdefs.h. */
15278 _ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 $ac_includes_default
15283 #include <sys/dg_sys_info.h>
15284 _ACEOF
15285 rm -f conftest.$ac_objext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15287 (eval $ac_compile) 2>conftest.er1
15288 ac_status=$?
15289 grep -v '^ *+' conftest.er1 >conftest.err
15290 rm -f conftest.er1
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } &&
15294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15297 ac_status=$?
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; } &&
15300 { ac_try='test -s conftest.$ac_objext'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; }; then
15306 ac_header_compiler=yes
15307 else
15308 echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15311 ac_header_compiler=no
15313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15315 echo "${ECHO_T}$ac_header_compiler" >&6
15317 # Is the header present?
15318 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15319 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15320 cat >conftest.$ac_ext <<_ACEOF
15321 /* confdefs.h. */
15322 _ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15326 #include <sys/dg_sys_info.h>
15327 _ACEOF
15328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15330 ac_status=$?
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } >/dev/null; then
15336 if test -s conftest.err; then
15337 ac_cpp_err=$ac_c_preproc_warn_flag
15338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15339 else
15340 ac_cpp_err=
15342 else
15343 ac_cpp_err=yes
15345 if test -z "$ac_cpp_err"; then
15346 ac_header_preproc=yes
15347 else
15348 echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15351 ac_header_preproc=no
15353 rm -f conftest.err conftest.$ac_ext
15354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15355 echo "${ECHO_T}$ac_header_preproc" >&6
15357 # So? What about this header?
15358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15359 yes:no: )
15360 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15361 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15362 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15363 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15364 ac_header_preproc=yes
15366 no:yes:* )
15367 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15368 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15369 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15370 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15371 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15372 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15373 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15374 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15375 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15376 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15377 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15378 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15380 cat <<\_ASBOX
15381 ## ------------------------------------------ ##
15382 ## Report this to the AC_PACKAGE_NAME lists. ##
15383 ## ------------------------------------------ ##
15384 _ASBOX
15386 sed "s/^/$as_me: WARNING: /" >&2
15388 esac
15389 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15390 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15391 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 else
15394 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15396 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15397 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15400 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15401 ac_have_func=yes
15403 cat >>confdefs.h <<\_ACEOF
15404 #define DGUX 1
15405 _ACEOF
15408 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15409 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15410 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 else
15413 ac_check_lib_save_LIBS=$LIBS
15414 LIBS="-ldgc $LIBS"
15415 cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h. */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15422 /* Override any gcc2 internal prototype to avoid an error. */
15423 #ifdef __cplusplus
15424 extern "C"
15425 #endif
15426 /* We use char because int might match the return type of a gcc2
15427 builtin and then its argument prototype would still apply. */
15428 char dg_sys_info ();
15430 main ()
15432 dg_sys_info ();
15434 return 0;
15436 _ACEOF
15437 rm -f conftest.$ac_objext conftest$ac_exeext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15439 (eval $ac_link) 2>conftest.er1
15440 ac_status=$?
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
15446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest$ac_exeext'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_cv_lib_dgc_dg_sys_info=yes
15459 else
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15463 ac_cv_lib_dgc_dg_sys_info=no
15465 rm -f conftest.err conftest.$ac_objext \
15466 conftest$ac_exeext conftest.$ac_ext
15467 LIBS=$ac_check_lib_save_LIBS
15469 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15470 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15471 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15472 cat >>confdefs.h <<_ACEOF
15473 #define HAVE_LIBDGC 1
15474 _ACEOF
15476 LIBS="-ldgc $LIBS"
15484 if test "${ac_cv_header_locale_h+set}" = set; then
15485 echo "$as_me:$LINENO: checking for locale.h" >&5
15486 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15487 if test "${ac_cv_header_locale_h+set}" = set; then
15488 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15491 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15492 else
15493 # Is the header compilable?
15494 echo "$as_me:$LINENO: checking locale.h usability" >&5
15495 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15496 cat >conftest.$ac_ext <<_ACEOF
15497 /* confdefs.h. */
15498 _ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15502 $ac_includes_default
15503 #include <locale.h>
15504 _ACEOF
15505 rm -f conftest.$ac_objext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15507 (eval $ac_compile) 2>conftest.er1
15508 ac_status=$?
15509 grep -v '^ *+' conftest.er1 >conftest.err
15510 rm -f conftest.er1
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
15514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15517 ac_status=$?
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; } &&
15520 { ac_try='test -s conftest.$ac_objext'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; }; then
15526 ac_header_compiler=yes
15527 else
15528 echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15531 ac_header_compiler=no
15533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15535 echo "${ECHO_T}$ac_header_compiler" >&6
15537 # Is the header present?
15538 echo "$as_me:$LINENO: checking locale.h presence" >&5
15539 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15540 cat >conftest.$ac_ext <<_ACEOF
15541 /* confdefs.h. */
15542 _ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15546 #include <locale.h>
15547 _ACEOF
15548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15550 ac_status=$?
15551 grep -v '^ *+' conftest.er1 >conftest.err
15552 rm -f conftest.er1
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } >/dev/null; then
15556 if test -s conftest.err; then
15557 ac_cpp_err=$ac_c_preproc_warn_flag
15558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15559 else
15560 ac_cpp_err=
15562 else
15563 ac_cpp_err=yes
15565 if test -z "$ac_cpp_err"; then
15566 ac_header_preproc=yes
15567 else
15568 echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15571 ac_header_preproc=no
15573 rm -f conftest.err conftest.$ac_ext
15574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15575 echo "${ECHO_T}$ac_header_preproc" >&6
15577 # So? What about this header?
15578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15579 yes:no: )
15580 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15581 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15582 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15583 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15584 ac_header_preproc=yes
15586 no:yes:* )
15587 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15588 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15590 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15592 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15594 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15596 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15597 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15598 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15600 cat <<\_ASBOX
15601 ## ------------------------------------------ ##
15602 ## Report this to the AC_PACKAGE_NAME lists. ##
15603 ## ------------------------------------------ ##
15604 _ASBOX
15606 sed "s/^/$as_me: WARNING: /" >&2
15608 esac
15609 echo "$as_me:$LINENO: checking for locale.h" >&5
15610 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15611 if test "${ac_cv_header_locale_h+set}" = set; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 else
15614 ac_cv_header_locale_h=$ac_header_preproc
15616 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15617 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15623 for ac_func in setlocale
15625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15626 echo "$as_me:$LINENO: checking for $ac_func" >&5
15627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15628 if eval "test \"\${$as_ac_var+set}\" = set"; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631 cat >conftest.$ac_ext <<_ACEOF
15632 /* confdefs.h. */
15633 _ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h. */
15637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15639 #define $ac_func innocuous_$ac_func
15641 /* System header to define __stub macros and hopefully few prototypes,
15642 which can conflict with char $ac_func (); below.
15643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15644 <limits.h> exists even on freestanding compilers. */
15646 #ifdef __STDC__
15647 # include <limits.h>
15648 #else
15649 # include <assert.h>
15650 #endif
15652 #undef $ac_func
15654 /* Override any gcc2 internal prototype to avoid an error. */
15655 #ifdef __cplusplus
15656 extern "C"
15658 #endif
15659 /* We use char because int might match the return type of a gcc2
15660 builtin and then its argument prototype would still apply. */
15661 char $ac_func ();
15662 /* The GNU C library defines this for functions which it implements
15663 to always fail with ENOSYS. Some functions are actually named
15664 something starting with __ and the normal name is an alias. */
15665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15666 choke me
15667 #else
15668 char (*f) () = $ac_func;
15669 #endif
15670 #ifdef __cplusplus
15672 #endif
15675 main ()
15677 return f != $ac_func;
15679 return 0;
15681 _ACEOF
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15684 (eval $ac_link) 2>conftest.er1
15685 ac_status=$?
15686 grep -v '^ *+' conftest.er1 >conftest.err
15687 rm -f conftest.er1
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } &&
15691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; } &&
15697 { ac_try='test -s conftest$ac_exeext'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703 eval "$as_ac_var=yes"
15704 else
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 eval "$as_ac_var=no"
15710 rm -f conftest.err conftest.$ac_objext \
15711 conftest$ac_exeext conftest.$ac_ext
15713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15715 if test `eval echo '${'$as_ac_var'}'` = yes; then
15716 cat >>confdefs.h <<_ACEOF
15717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15718 _ACEOF
15721 done
15724 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15725 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15726 # Irix 4.0.5F has the header but not the library.
15727 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15728 ac_have_func=yes
15730 cat >>confdefs.h <<\_ACEOF
15731 #define SVR4 1
15732 _ACEOF
15736 if test $ac_have_func = no; then
15737 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15738 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15739 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15740 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15744 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15745 else
15746 # Is the header compilable?
15747 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15748 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15749 cat >conftest.$ac_ext <<_ACEOF
15750 /* confdefs.h. */
15751 _ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15755 $ac_includes_default
15756 #include <inq_stats/cpustats.h>
15757 _ACEOF
15758 rm -f conftest.$ac_objext
15759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15760 (eval $ac_compile) 2>conftest.er1
15761 ac_status=$?
15762 grep -v '^ *+' conftest.er1 >conftest.err
15763 rm -f conftest.er1
15764 cat conftest.err >&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } &&
15767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; } &&
15773 { ac_try='test -s conftest.$ac_objext'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15779 ac_header_compiler=yes
15780 else
15781 echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 ac_header_compiler=no
15786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15788 echo "${ECHO_T}$ac_header_compiler" >&6
15790 # Is the header present?
15791 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15792 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15793 cat >conftest.$ac_ext <<_ACEOF
15794 /* confdefs.h. */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15799 #include <inq_stats/cpustats.h>
15800 _ACEOF
15801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } >/dev/null; then
15809 if test -s conftest.err; then
15810 ac_cpp_err=$ac_c_preproc_warn_flag
15811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15812 else
15813 ac_cpp_err=
15815 else
15816 ac_cpp_err=yes
15818 if test -z "$ac_cpp_err"; then
15819 ac_header_preproc=yes
15820 else
15821 echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15824 ac_header_preproc=no
15826 rm -f conftest.err conftest.$ac_ext
15827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15828 echo "${ECHO_T}$ac_header_preproc" >&6
15830 # So? What about this header?
15831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15832 yes:no: )
15833 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15834 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15836 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15837 ac_header_preproc=yes
15839 no:yes:* )
15840 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15841 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15843 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15845 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15847 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15849 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15850 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15851 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15853 cat <<\_ASBOX
15854 ## ------------------------------------------ ##
15855 ## Report this to the AC_PACKAGE_NAME lists. ##
15856 ## ------------------------------------------ ##
15857 _ASBOX
15859 sed "s/^/$as_me: WARNING: /" >&2
15861 esac
15862 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15863 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15864 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15866 else
15867 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15869 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15870 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15873 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15874 ac_have_func=yes
15876 cat >>confdefs.h <<\_ACEOF
15877 #define UMAX 1
15878 _ACEOF
15881 cat >>confdefs.h <<\_ACEOF
15882 #define UMAX4_3 1
15883 _ACEOF
15890 if test $ac_have_func = no; then
15891 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15892 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15893 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15894 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15897 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15898 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15899 else
15900 # Is the header compilable?
15901 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15902 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15903 cat >conftest.$ac_ext <<_ACEOF
15904 /* confdefs.h. */
15905 _ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15909 $ac_includes_default
15910 #include <sys/cpustats.h>
15911 _ACEOF
15912 rm -f conftest.$ac_objext
15913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15914 (eval $ac_compile) 2>conftest.er1
15915 ac_status=$?
15916 grep -v '^ *+' conftest.er1 >conftest.err
15917 rm -f conftest.er1
15918 cat conftest.err >&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
15921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; } &&
15927 { ac_try='test -s conftest.$ac_objext'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
15933 ac_header_compiler=yes
15934 else
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15938 ac_header_compiler=no
15940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15942 echo "${ECHO_T}$ac_header_compiler" >&6
15944 # Is the header present?
15945 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15946 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15947 cat >conftest.$ac_ext <<_ACEOF
15948 /* confdefs.h. */
15949 _ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15953 #include <sys/cpustats.h>
15954 _ACEOF
15955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15957 ac_status=$?
15958 grep -v '^ *+' conftest.er1 >conftest.err
15959 rm -f conftest.er1
15960 cat conftest.err >&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } >/dev/null; then
15963 if test -s conftest.err; then
15964 ac_cpp_err=$ac_c_preproc_warn_flag
15965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15966 else
15967 ac_cpp_err=
15969 else
15970 ac_cpp_err=yes
15972 if test -z "$ac_cpp_err"; then
15973 ac_header_preproc=yes
15974 else
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15978 ac_header_preproc=no
15980 rm -f conftest.err conftest.$ac_ext
15981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15982 echo "${ECHO_T}$ac_header_preproc" >&6
15984 # So? What about this header?
15985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15986 yes:no: )
15987 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15988 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15990 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15991 ac_header_preproc=yes
15993 no:yes:* )
15994 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15995 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15997 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15999 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16001 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16003 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16005 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16007 cat <<\_ASBOX
16008 ## ------------------------------------------ ##
16009 ## Report this to the AC_PACKAGE_NAME lists. ##
16010 ## ------------------------------------------ ##
16011 _ASBOX
16013 sed "s/^/$as_me: WARNING: /" >&2
16015 esac
16016 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16017 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16018 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16023 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16024 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16027 if test $ac_cv_header_sys_cpustats_h = yes; then
16028 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16029 #define UMAX 1
16030 _ACEOF
16037 if test $ac_have_func = no; then
16039 for ac_header in mach/mach.h
16041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16043 echo "$as_me:$LINENO: checking for $ac_header" >&5
16044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16050 else
16051 # Is the header compilable?
16052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16054 cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h. */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060 $ac_includes_default
16061 #include <$ac_header>
16062 _ACEOF
16063 rm -f conftest.$ac_objext
16064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16065 (eval $ac_compile) 2>conftest.er1
16066 ac_status=$?
16067 grep -v '^ *+' conftest.er1 >conftest.err
16068 rm -f conftest.er1
16069 cat conftest.err >&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
16072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16075 ac_status=$?
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; } &&
16078 { ac_try='test -s conftest.$ac_objext'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
16084 ac_header_compiler=yes
16085 else
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16089 ac_header_compiler=no
16091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16093 echo "${ECHO_T}$ac_header_compiler" >&6
16095 # Is the header present?
16096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16098 cat >conftest.$ac_ext <<_ACEOF
16099 /* confdefs.h. */
16100 _ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h. */
16104 #include <$ac_header>
16105 _ACEOF
16106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16108 ac_status=$?
16109 grep -v '^ *+' conftest.er1 >conftest.err
16110 rm -f conftest.er1
16111 cat conftest.err >&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } >/dev/null; then
16114 if test -s conftest.err; then
16115 ac_cpp_err=$ac_c_preproc_warn_flag
16116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16117 else
16118 ac_cpp_err=
16120 else
16121 ac_cpp_err=yes
16123 if test -z "$ac_cpp_err"; then
16124 ac_header_preproc=yes
16125 else
16126 echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16129 ac_header_preproc=no
16131 rm -f conftest.err conftest.$ac_ext
16132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16133 echo "${ECHO_T}$ac_header_preproc" >&6
16135 # So? What about this header?
16136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16137 yes:no: )
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16142 ac_header_preproc=yes
16144 no:yes:* )
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16158 cat <<\_ASBOX
16159 ## ------------------------------------------ ##
16160 ## Report this to the AC_PACKAGE_NAME lists. ##
16161 ## ------------------------------------------ ##
16162 _ASBOX
16164 sed "s/^/$as_me: WARNING: /" >&2
16166 esac
16167 echo "$as_me:$LINENO: checking for $ac_header" >&5
16168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16171 else
16172 eval "$as_ac_Header=\$ac_header_preproc"
16174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16179 cat >>confdefs.h <<_ACEOF
16180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16181 _ACEOF
16185 done
16190 for ac_header in nlist.h
16192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16194 echo "$as_me:$LINENO: checking for $ac_header" >&5
16195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16197 echo $ECHO_N "(cached) $ECHO_C" >&6
16199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16201 else
16202 # Is the header compilable?
16203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16205 cat >conftest.$ac_ext <<_ACEOF
16206 /* confdefs.h. */
16207 _ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h. */
16211 $ac_includes_default
16212 #include <$ac_header>
16213 _ACEOF
16214 rm -f conftest.$ac_objext
16215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16216 (eval $ac_compile) 2>conftest.er1
16217 ac_status=$?
16218 grep -v '^ *+' conftest.er1 >conftest.err
16219 rm -f conftest.er1
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } &&
16223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225 (eval $ac_try) 2>&5
16226 ac_status=$?
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); }; } &&
16229 { ac_try='test -s conftest.$ac_objext'
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; }; then
16235 ac_header_compiler=yes
16236 else
16237 echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.$ac_ext >&5
16240 ac_header_compiler=no
16242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16244 echo "${ECHO_T}$ac_header_compiler" >&6
16246 # Is the header present?
16247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16249 cat >conftest.$ac_ext <<_ACEOF
16250 /* confdefs.h. */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 #include <$ac_header>
16256 _ACEOF
16257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16259 ac_status=$?
16260 grep -v '^ *+' conftest.er1 >conftest.err
16261 rm -f conftest.er1
16262 cat conftest.err >&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } >/dev/null; then
16265 if test -s conftest.err; then
16266 ac_cpp_err=$ac_c_preproc_warn_flag
16267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16268 else
16269 ac_cpp_err=
16271 else
16272 ac_cpp_err=yes
16274 if test -z "$ac_cpp_err"; then
16275 ac_header_preproc=yes
16276 else
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16280 ac_header_preproc=no
16282 rm -f conftest.err conftest.$ac_ext
16283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16284 echo "${ECHO_T}$ac_header_preproc" >&6
16286 # So? What about this header?
16287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16288 yes:no: )
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16293 ac_header_preproc=yes
16295 no:yes:* )
16296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16309 cat <<\_ASBOX
16310 ## ------------------------------------------ ##
16311 ## Report this to the AC_PACKAGE_NAME lists. ##
16312 ## ------------------------------------------ ##
16313 _ASBOX
16315 sed "s/^/$as_me: WARNING: /" >&2
16317 esac
16318 echo "$as_me:$LINENO: checking for $ac_header" >&5
16319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16321 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 else
16323 eval "$as_ac_Header=\$ac_header_preproc"
16325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16330 cat >>confdefs.h <<_ACEOF
16331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16332 _ACEOF
16333 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16334 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16335 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16336 echo $ECHO_N "(cached) $ECHO_C" >&6
16337 else
16338 cat >conftest.$ac_ext <<_ACEOF
16339 /* confdefs.h. */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16344 #include <nlist.h>
16347 main ()
16349 static struct nlist ac_aggr;
16350 if (ac_aggr.n_un.n_name)
16351 return 0;
16353 return 0;
16355 _ACEOF
16356 rm -f conftest.$ac_objext
16357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16358 (eval $ac_compile) 2>conftest.er1
16359 ac_status=$?
16360 grep -v '^ *+' conftest.er1 >conftest.err
16361 rm -f conftest.er1
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } &&
16365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16367 (eval $ac_try) 2>&5
16368 ac_status=$?
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; } &&
16371 { ac_try='test -s conftest.$ac_objext'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16374 ac_status=$?
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; }; then
16377 ac_cv_member_struct_nlist_n_un_n_name=yes
16378 else
16379 echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16382 cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h. */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16388 #include <nlist.h>
16391 main ()
16393 static struct nlist ac_aggr;
16394 if (sizeof ac_aggr.n_un.n_name)
16395 return 0;
16397 return 0;
16399 _ACEOF
16400 rm -f conftest.$ac_objext
16401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16402 (eval $ac_compile) 2>conftest.er1
16403 ac_status=$?
16404 grep -v '^ *+' conftest.er1 >conftest.err
16405 rm -f conftest.er1
16406 cat conftest.err >&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } &&
16409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411 (eval $ac_try) 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 ac_cv_member_struct_nlist_n_un_n_name=yes
16422 else
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16426 ac_cv_member_struct_nlist_n_un_n_name=no
16428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16432 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16433 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16434 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16436 cat >>confdefs.h <<_ACEOF
16437 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16438 _ACEOF
16441 cat >>confdefs.h <<\_ACEOF
16442 #define NLIST_NAME_UNION 1
16443 _ACEOF
16450 done
16453 done
16456 # Some definitions of getloadavg require that the program be installed setgid.
16457 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16458 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16459 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16460 echo $ECHO_N "(cached) $ECHO_C" >&6
16461 else
16462 cat >conftest.$ac_ext <<_ACEOF
16463 /* confdefs.h. */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16469 #ifdef LDAV_PRIVILEGED
16470 Yowza Am I SETGID yet
16471 #endif
16472 _ACEOF
16473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16474 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16475 ac_cv_func_getloadavg_setgid=yes
16476 else
16477 ac_cv_func_getloadavg_setgid=no
16479 rm -f conftest*
16482 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16483 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16484 if test $ac_cv_func_getloadavg_setgid = yes; then
16485 NEED_SETGID=true
16487 cat >>confdefs.h <<\_ACEOF
16488 #define GETLOADAVG_PRIVILEGED 1
16489 _ACEOF
16491 else
16492 NEED_SETGID=false
16495 if test $ac_cv_func_getloadavg_setgid = yes; then
16496 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16497 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16498 if test "${ac_cv_group_kmem+set}" = set; then
16499 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 else
16501 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16502 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16503 # If we got an error (system does not support symlinks), try without -L.
16504 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16505 ac_cv_group_kmem=`echo $ac_ls_output \
16506 | sed -ne 's/[ ][ ]*/ /g;
16507 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16508 / /s/.* //;p;'`
16511 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16512 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16513 KMEM_GROUP=$ac_cv_group_kmem
16515 if test "x$ac_save_LIBS" = x; then
16516 GETLOADAVG_LIBS=$LIBS
16517 else
16518 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16520 LIBS=$ac_save_LIBS
16524 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16525 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16526 if test "${ac_cv_sys_largefile_source+set}" = set; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16528 else
16529 while :; do
16530 ac_cv_sys_largefile_source=no
16531 cat >conftest.$ac_ext <<_ACEOF
16532 /* confdefs.h. */
16533 _ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h. */
16537 #include <stdio.h>
16539 main ()
16541 return !fseeko;
16543 return 0;
16545 _ACEOF
16546 rm -f conftest.$ac_objext
16547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16548 (eval $ac_compile) 2>conftest.er1
16549 ac_status=$?
16550 grep -v '^ *+' conftest.er1 >conftest.err
16551 rm -f conftest.er1
16552 cat conftest.err >&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); } &&
16555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } &&
16561 { ac_try='test -s conftest.$ac_objext'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567 break
16568 else
16569 echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16574 cat >conftest.$ac_ext <<_ACEOF
16575 /* confdefs.h. */
16576 _ACEOF
16577 cat confdefs.h >>conftest.$ac_ext
16578 cat >>conftest.$ac_ext <<_ACEOF
16579 /* end confdefs.h. */
16580 #define _LARGEFILE_SOURCE 1
16581 #include <stdio.h>
16583 main ()
16585 return !fseeko;
16587 return 0;
16589 _ACEOF
16590 rm -f conftest.$ac_objext
16591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16592 (eval $ac_compile) 2>conftest.er1
16593 ac_status=$?
16594 grep -v '^ *+' conftest.er1 >conftest.err
16595 rm -f conftest.er1
16596 cat conftest.err >&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
16599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; } &&
16605 { ac_try='test -s conftest.$ac_objext'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; }; then
16611 ac_cv_sys_largefile_source=1; break
16612 else
16613 echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16618 break
16619 done
16621 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16622 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16623 if test "$ac_cv_sys_largefile_source" != no; then
16625 cat >>confdefs.h <<_ACEOF
16626 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16627 _ACEOF
16630 rm -f conftest*
16632 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16633 # in glibc 2.1.3, but that breaks too many other things.
16634 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16635 echo "$as_me:$LINENO: checking for fseeko" >&5
16636 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16637 if test "${ac_cv_func_fseeko+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16640 cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h. */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 #include <stdio.h>
16648 main ()
16650 return fseeko && fseeko (stdin, 0, 0);
16652 return 0;
16654 _ACEOF
16655 rm -f conftest.$ac_objext conftest$ac_exeext
16656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16657 (eval $ac_link) 2>conftest.er1
16658 ac_status=$?
16659 grep -v '^ *+' conftest.er1 >conftest.err
16660 rm -f conftest.er1
16661 cat conftest.err >&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest$ac_exeext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_cv_func_fseeko=yes
16677 else
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16681 ac_cv_func_fseeko=no
16683 rm -f conftest.err conftest.$ac_objext \
16684 conftest$ac_exeext conftest.$ac_ext
16686 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16687 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16688 if test $ac_cv_func_fseeko = yes; then
16690 cat >>confdefs.h <<\_ACEOF
16691 #define HAVE_FSEEKO 1
16692 _ACEOF
16697 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16698 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16699 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702 # Use it with a single arg.
16703 cat >conftest.$ac_ext <<_ACEOF
16704 /* confdefs.h. */
16705 _ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 $ac_includes_default
16711 main ()
16713 getpgrp (0);
16715 return 0;
16717 _ACEOF
16718 rm -f conftest.$ac_objext
16719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16720 (eval $ac_compile) 2>conftest.er1
16721 ac_status=$?
16722 grep -v '^ *+' conftest.er1 >conftest.err
16723 rm -f conftest.er1
16724 cat conftest.err >&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
16727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; } &&
16733 { ac_try='test -s conftest.$ac_objext'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 ac_cv_func_getpgrp_void=no
16740 else
16741 echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16744 ac_cv_func_getpgrp_void=yes
16746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16749 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16750 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16751 if test $ac_cv_func_getpgrp_void = yes; then
16753 cat >>confdefs.h <<\_ACEOF
16754 #define GETPGRP_VOID 1
16755 _ACEOF
16761 for ac_func in strftime
16763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16764 echo "$as_me:$LINENO: checking for $ac_func" >&5
16765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16766 if eval "test \"\${$as_ac_var+set}\" = set"; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 else
16769 cat >conftest.$ac_ext <<_ACEOF
16770 /* confdefs.h. */
16771 _ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h. */
16775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16777 #define $ac_func innocuous_$ac_func
16779 /* System header to define __stub macros and hopefully few prototypes,
16780 which can conflict with char $ac_func (); below.
16781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16782 <limits.h> exists even on freestanding compilers. */
16784 #ifdef __STDC__
16785 # include <limits.h>
16786 #else
16787 # include <assert.h>
16788 #endif
16790 #undef $ac_func
16792 /* Override any gcc2 internal prototype to avoid an error. */
16793 #ifdef __cplusplus
16794 extern "C"
16796 #endif
16797 /* We use char because int might match the return type of a gcc2
16798 builtin and then its argument prototype would still apply. */
16799 char $ac_func ();
16800 /* The GNU C library defines this for functions which it implements
16801 to always fail with ENOSYS. Some functions are actually named
16802 something starting with __ and the normal name is an alias. */
16803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16804 choke me
16805 #else
16806 char (*f) () = $ac_func;
16807 #endif
16808 #ifdef __cplusplus
16810 #endif
16813 main ()
16815 return f != $ac_func;
16817 return 0;
16819 _ACEOF
16820 rm -f conftest.$ac_objext conftest$ac_exeext
16821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16822 (eval $ac_link) 2>conftest.er1
16823 ac_status=$?
16824 grep -v '^ *+' conftest.er1 >conftest.err
16825 rm -f conftest.er1
16826 cat conftest.err >&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } &&
16829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try='test -s conftest$ac_exeext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16838 ac_status=$?
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 eval "$as_ac_var=yes"
16842 else
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16846 eval "$as_ac_var=no"
16848 rm -f conftest.err conftest.$ac_objext \
16849 conftest$ac_exeext conftest.$ac_ext
16851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16853 if test `eval echo '${'$as_ac_var'}'` = yes; then
16854 cat >>confdefs.h <<_ACEOF
16855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16856 _ACEOF
16858 else
16859 # strftime is in -lintl on SCO UNIX.
16860 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16861 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16862 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16863 echo $ECHO_N "(cached) $ECHO_C" >&6
16864 else
16865 ac_check_lib_save_LIBS=$LIBS
16866 LIBS="-lintl $LIBS"
16867 cat >conftest.$ac_ext <<_ACEOF
16868 /* confdefs.h. */
16869 _ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h. */
16874 /* Override any gcc2 internal prototype to avoid an error. */
16875 #ifdef __cplusplus
16876 extern "C"
16877 #endif
16878 /* We use char because int might match the return type of a gcc2
16879 builtin and then its argument prototype would still apply. */
16880 char strftime ();
16882 main ()
16884 strftime ();
16886 return 0;
16888 _ACEOF
16889 rm -f conftest.$ac_objext conftest$ac_exeext
16890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16891 (eval $ac_link) 2>conftest.er1
16892 ac_status=$?
16893 grep -v '^ *+' conftest.er1 >conftest.err
16894 rm -f conftest.er1
16895 cat conftest.err >&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } &&
16898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900 (eval $ac_try) 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; } &&
16904 { ac_try='test -s conftest$ac_exeext'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16907 ac_status=$?
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; }; then
16910 ac_cv_lib_intl_strftime=yes
16911 else
16912 echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16915 ac_cv_lib_intl_strftime=no
16917 rm -f conftest.err conftest.$ac_objext \
16918 conftest$ac_exeext conftest.$ac_ext
16919 LIBS=$ac_check_lib_save_LIBS
16921 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16922 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16923 if test $ac_cv_lib_intl_strftime = yes; then
16924 cat >>confdefs.h <<\_ACEOF
16925 #define HAVE_STRFTIME 1
16926 _ACEOF
16928 LIBS="-lintl $LIBS"
16932 done
16935 # UNIX98 PTYs.
16937 for ac_func in grantpt
16939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16940 echo "$as_me:$LINENO: checking for $ac_func" >&5
16941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16942 if eval "test \"\${$as_ac_var+set}\" = set"; then
16943 echo $ECHO_N "(cached) $ECHO_C" >&6
16944 else
16945 cat >conftest.$ac_ext <<_ACEOF
16946 /* confdefs.h. */
16947 _ACEOF
16948 cat confdefs.h >>conftest.$ac_ext
16949 cat >>conftest.$ac_ext <<_ACEOF
16950 /* end confdefs.h. */
16951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16953 #define $ac_func innocuous_$ac_func
16955 /* System header to define __stub macros and hopefully few prototypes,
16956 which can conflict with char $ac_func (); below.
16957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16958 <limits.h> exists even on freestanding compilers. */
16960 #ifdef __STDC__
16961 # include <limits.h>
16962 #else
16963 # include <assert.h>
16964 #endif
16966 #undef $ac_func
16968 /* Override any gcc2 internal prototype to avoid an error. */
16969 #ifdef __cplusplus
16970 extern "C"
16972 #endif
16973 /* We use char because int might match the return type of a gcc2
16974 builtin and then its argument prototype would still apply. */
16975 char $ac_func ();
16976 /* The GNU C library defines this for functions which it implements
16977 to always fail with ENOSYS. Some functions are actually named
16978 something starting with __ and the normal name is an alias. */
16979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16980 choke me
16981 #else
16982 char (*f) () = $ac_func;
16983 #endif
16984 #ifdef __cplusplus
16986 #endif
16989 main ()
16991 return f != $ac_func;
16993 return 0;
16995 _ACEOF
16996 rm -f conftest.$ac_objext conftest$ac_exeext
16997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16998 (eval $ac_link) 2>conftest.er1
16999 ac_status=$?
17000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
17005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17008 ac_status=$?
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; } &&
17011 { ac_try='test -s conftest$ac_exeext'
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17014 ac_status=$?
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 eval "$as_ac_var=yes"
17018 else
17019 echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17022 eval "$as_ac_var=no"
17024 rm -f conftest.err conftest.$ac_objext \
17025 conftest$ac_exeext conftest.$ac_ext
17027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17029 if test `eval echo '${'$as_ac_var'}'` = yes; then
17030 cat >>confdefs.h <<_ACEOF
17031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17032 _ACEOF
17035 done
17038 # PTY-related GNU extensions.
17040 for ac_func in getpt
17042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17043 echo "$as_me:$LINENO: checking for $ac_func" >&5
17044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17045 if eval "test \"\${$as_ac_var+set}\" = set"; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
17048 cat >conftest.$ac_ext <<_ACEOF
17049 /* confdefs.h. */
17050 _ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h. */
17054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17056 #define $ac_func innocuous_$ac_func
17058 /* System header to define __stub macros and hopefully few prototypes,
17059 which can conflict with char $ac_func (); below.
17060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17061 <limits.h> exists even on freestanding compilers. */
17063 #ifdef __STDC__
17064 # include <limits.h>
17065 #else
17066 # include <assert.h>
17067 #endif
17069 #undef $ac_func
17071 /* Override any gcc2 internal prototype to avoid an error. */
17072 #ifdef __cplusplus
17073 extern "C"
17075 #endif
17076 /* We use char because int might match the return type of a gcc2
17077 builtin and then its argument prototype would still apply. */
17078 char $ac_func ();
17079 /* The GNU C library defines this for functions which it implements
17080 to always fail with ENOSYS. Some functions are actually named
17081 something starting with __ and the normal name is an alias. */
17082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17083 choke me
17084 #else
17085 char (*f) () = $ac_func;
17086 #endif
17087 #ifdef __cplusplus
17089 #endif
17092 main ()
17094 return f != $ac_func;
17096 return 0;
17098 _ACEOF
17099 rm -f conftest.$ac_objext conftest$ac_exeext
17100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17101 (eval $ac_link) 2>conftest.er1
17102 ac_status=$?
17103 grep -v '^ *+' conftest.er1 >conftest.err
17104 rm -f conftest.er1
17105 cat conftest.err >&5
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } &&
17108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; } &&
17114 { ac_try='test -s conftest$ac_exeext'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; }; then
17120 eval "$as_ac_var=yes"
17121 else
17122 echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17125 eval "$as_ac_var=no"
17127 rm -f conftest.err conftest.$ac_objext \
17128 conftest$ac_exeext conftest.$ac_ext
17130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17132 if test `eval echo '${'$as_ac_var'}'` = yes; then
17133 cat >>confdefs.h <<_ACEOF
17134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17135 _ACEOF
17138 done
17141 # Check this now, so that we will NOT find the above functions in ncurses.
17142 # That is because we have not set up to link ncurses in lib-src.
17143 # It's better to believe a function is not available
17144 # than to expect to find it in ncurses.
17146 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17147 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17148 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151 ac_check_lib_save_LIBS=$LIBS
17152 LIBS="-lncurses $LIBS"
17153 cat >conftest.$ac_ext <<_ACEOF
17154 /* confdefs.h. */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17160 /* Override any gcc2 internal prototype to avoid an error. */
17161 #ifdef __cplusplus
17162 extern "C"
17163 #endif
17164 /* We use char because int might match the return type of a gcc2
17165 builtin and then its argument prototype would still apply. */
17166 char tparm ();
17168 main ()
17170 tparm ();
17172 return 0;
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177 (eval $ac_link) 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
17184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest$ac_exeext'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
17196 ac_cv_lib_ncurses_tparm=yes
17197 else
17198 echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17201 ac_cv_lib_ncurses_tparm=no
17203 rm -f conftest.err conftest.$ac_objext \
17204 conftest$ac_exeext conftest.$ac_ext
17205 LIBS=$ac_check_lib_save_LIBS
17207 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17208 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17209 if test $ac_cv_lib_ncurses_tparm = yes; then
17210 cat >>confdefs.h <<_ACEOF
17211 #define HAVE_LIBNCURSES 1
17212 _ACEOF
17214 LIBS="-lncurses $LIBS"
17219 # Do we need the Hesiod library to provide the support routines?
17220 if test "$with_hesiod" = yes ; then
17221 # Don't set $LIBS here -- see comments above.
17222 resolv=no
17223 echo "$as_me:$LINENO: checking for res_send" >&5
17224 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17225 if test "${ac_cv_func_res_send+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17227 else
17228 cat >conftest.$ac_ext <<_ACEOF
17229 /* confdefs.h. */
17230 _ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17236 #define res_send innocuous_res_send
17238 /* System header to define __stub macros and hopefully few prototypes,
17239 which can conflict with char res_send (); below.
17240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17241 <limits.h> exists even on freestanding compilers. */
17243 #ifdef __STDC__
17244 # include <limits.h>
17245 #else
17246 # include <assert.h>
17247 #endif
17249 #undef res_send
17251 /* Override any gcc2 internal prototype to avoid an error. */
17252 #ifdef __cplusplus
17253 extern "C"
17255 #endif
17256 /* We use char because int might match the return type of a gcc2
17257 builtin and then its argument prototype would still apply. */
17258 char res_send ();
17259 /* The GNU C library defines this for functions which it implements
17260 to always fail with ENOSYS. Some functions are actually named
17261 something starting with __ and the normal name is an alias. */
17262 #if defined (__stub_res_send) || defined (__stub___res_send)
17263 choke me
17264 #else
17265 char (*f) () = res_send;
17266 #endif
17267 #ifdef __cplusplus
17269 #endif
17272 main ()
17274 return f != res_send;
17276 return 0;
17278 _ACEOF
17279 rm -f conftest.$ac_objext conftest$ac_exeext
17280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17281 (eval $ac_link) 2>conftest.er1
17282 ac_status=$?
17283 grep -v '^ *+' conftest.er1 >conftest.err
17284 rm -f conftest.er1
17285 cat conftest.err >&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } &&
17288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290 (eval $ac_try) 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; } &&
17294 { ac_try='test -s conftest$ac_exeext'
17295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296 (eval $ac_try) 2>&5
17297 ac_status=$?
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; }; then
17300 ac_cv_func_res_send=yes
17301 else
17302 echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17305 ac_cv_func_res_send=no
17307 rm -f conftest.err conftest.$ac_objext \
17308 conftest$ac_exeext conftest.$ac_ext
17310 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17311 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17312 if test $ac_cv_func_res_send = yes; then
17314 else
17315 echo "$as_me:$LINENO: checking for __res_send" >&5
17316 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17317 if test "${ac_cv_func___res_send+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17319 else
17320 cat >conftest.$ac_ext <<_ACEOF
17321 /* confdefs.h. */
17322 _ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17326 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17328 #define __res_send innocuous___res_send
17330 /* System header to define __stub macros and hopefully few prototypes,
17331 which can conflict with char __res_send (); below.
17332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17333 <limits.h> exists even on freestanding compilers. */
17335 #ifdef __STDC__
17336 # include <limits.h>
17337 #else
17338 # include <assert.h>
17339 #endif
17341 #undef __res_send
17343 /* Override any gcc2 internal prototype to avoid an error. */
17344 #ifdef __cplusplus
17345 extern "C"
17347 #endif
17348 /* We use char because int might match the return type of a gcc2
17349 builtin and then its argument prototype would still apply. */
17350 char __res_send ();
17351 /* The GNU C library defines this for functions which it implements
17352 to always fail with ENOSYS. Some functions are actually named
17353 something starting with __ and the normal name is an alias. */
17354 #if defined (__stub___res_send) || defined (__stub_____res_send)
17355 choke me
17356 #else
17357 char (*f) () = __res_send;
17358 #endif
17359 #ifdef __cplusplus
17361 #endif
17364 main ()
17366 return f != __res_send;
17368 return 0;
17370 _ACEOF
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17373 (eval $ac_link) 2>conftest.er1
17374 ac_status=$?
17375 grep -v '^ *+' conftest.er1 >conftest.err
17376 rm -f conftest.er1
17377 cat conftest.err >&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } &&
17380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17382 (eval $ac_try) 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; } &&
17386 { ac_try='test -s conftest$ac_exeext'
17387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17388 (eval $ac_try) 2>&5
17389 ac_status=$?
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; }; then
17392 ac_cv_func___res_send=yes
17393 else
17394 echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17397 ac_cv_func___res_send=no
17399 rm -f conftest.err conftest.$ac_objext \
17400 conftest$ac_exeext conftest.$ac_ext
17402 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17403 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17404 if test $ac_cv_func___res_send = yes; then
17406 else
17407 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17408 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17409 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 else
17412 ac_check_lib_save_LIBS=$LIBS
17413 LIBS="-lresolv $LIBS"
17414 cat >conftest.$ac_ext <<_ACEOF
17415 /* confdefs.h. */
17416 _ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h. */
17421 /* Override any gcc2 internal prototype to avoid an error. */
17422 #ifdef __cplusplus
17423 extern "C"
17424 #endif
17425 /* We use char because int might match the return type of a gcc2
17426 builtin and then its argument prototype would still apply. */
17427 char res_send ();
17429 main ()
17431 res_send ();
17433 return 0;
17435 _ACEOF
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17438 (eval $ac_link) 2>conftest.er1
17439 ac_status=$?
17440 grep -v '^ *+' conftest.er1 >conftest.err
17441 rm -f conftest.er1
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } &&
17445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; } &&
17451 { ac_try='test -s conftest$ac_exeext'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 ac_cv_lib_resolv_res_send=yes
17458 else
17459 echo "$as_me: failed program was:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17462 ac_cv_lib_resolv_res_send=no
17464 rm -f conftest.err conftest.$ac_objext \
17465 conftest$ac_exeext conftest.$ac_ext
17466 LIBS=$ac_check_lib_save_LIBS
17468 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17469 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17470 if test $ac_cv_lib_resolv_res_send = yes; then
17471 resolv=yes
17472 else
17473 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17474 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17475 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 else
17478 ac_check_lib_save_LIBS=$LIBS
17479 LIBS="-lresolv $LIBS"
17480 cat >conftest.$ac_ext <<_ACEOF
17481 /* confdefs.h. */
17482 _ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h. */
17487 /* Override any gcc2 internal prototype to avoid an error. */
17488 #ifdef __cplusplus
17489 extern "C"
17490 #endif
17491 /* We use char because int might match the return type of a gcc2
17492 builtin and then its argument prototype would still apply. */
17493 char __res_send ();
17495 main ()
17497 __res_send ();
17499 return 0;
17501 _ACEOF
17502 rm -f conftest.$ac_objext conftest$ac_exeext
17503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17504 (eval $ac_link) 2>conftest.er1
17505 ac_status=$?
17506 grep -v '^ *+' conftest.er1 >conftest.err
17507 rm -f conftest.er1
17508 cat conftest.err >&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } &&
17511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513 (eval $ac_try) 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; } &&
17517 { ac_try='test -s conftest$ac_exeext'
17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17520 ac_status=$?
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; }; then
17523 ac_cv_lib_resolv___res_send=yes
17524 else
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17528 ac_cv_lib_resolv___res_send=no
17530 rm -f conftest.err conftest.$ac_objext \
17531 conftest$ac_exeext conftest.$ac_ext
17532 LIBS=$ac_check_lib_save_LIBS
17534 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17535 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17536 if test $ac_cv_lib_resolv___res_send = yes; then
17537 resolv=yes
17546 if test "$resolv" = yes ; then
17547 RESOLVLIB=-lresolv
17549 cat >>confdefs.h <<\_ACEOF
17550 #define HAVE_LIBRESOLV 1
17551 _ACEOF
17553 else
17554 RESOLVLIB=
17556 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17557 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17558 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 else
17561 cat >conftest.$ac_ext <<_ACEOF
17562 /* confdefs.h. */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17567 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17569 #define hes_getmailhost innocuous_hes_getmailhost
17571 /* System header to define __stub macros and hopefully few prototypes,
17572 which can conflict with char hes_getmailhost (); below.
17573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17574 <limits.h> exists even on freestanding compilers. */
17576 #ifdef __STDC__
17577 # include <limits.h>
17578 #else
17579 # include <assert.h>
17580 #endif
17582 #undef hes_getmailhost
17584 /* Override any gcc2 internal prototype to avoid an error. */
17585 #ifdef __cplusplus
17586 extern "C"
17588 #endif
17589 /* We use char because int might match the return type of a gcc2
17590 builtin and then its argument prototype would still apply. */
17591 char hes_getmailhost ();
17592 /* The GNU C library defines this for functions which it implements
17593 to always fail with ENOSYS. Some functions are actually named
17594 something starting with __ and the normal name is an alias. */
17595 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17596 choke me
17597 #else
17598 char (*f) () = hes_getmailhost;
17599 #endif
17600 #ifdef __cplusplus
17602 #endif
17605 main ()
17607 return f != hes_getmailhost;
17609 return 0;
17611 _ACEOF
17612 rm -f conftest.$ac_objext conftest$ac_exeext
17613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17614 (eval $ac_link) 2>conftest.er1
17615 ac_status=$?
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; } &&
17627 { ac_try='test -s conftest$ac_exeext'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; }; then
17633 ac_cv_func_hes_getmailhost=yes
17634 else
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17638 ac_cv_func_hes_getmailhost=no
17640 rm -f conftest.err conftest.$ac_objext \
17641 conftest$ac_exeext conftest.$ac_ext
17643 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17644 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17645 if test $ac_cv_func_hes_getmailhost = yes; then
17647 else
17648 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17649 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17650 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17652 else
17653 ac_check_lib_save_LIBS=$LIBS
17654 LIBS="-lhesiod $RESOLVLIB $LIBS"
17655 cat >conftest.$ac_ext <<_ACEOF
17656 /* confdefs.h. */
17657 _ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17662 /* Override any gcc2 internal prototype to avoid an error. */
17663 #ifdef __cplusplus
17664 extern "C"
17665 #endif
17666 /* We use char because int might match the return type of a gcc2
17667 builtin and then its argument prototype would still apply. */
17668 char hes_getmailhost ();
17670 main ()
17672 hes_getmailhost ();
17674 return 0;
17676 _ACEOF
17677 rm -f conftest.$ac_objext conftest$ac_exeext
17678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17679 (eval $ac_link) 2>conftest.er1
17680 ac_status=$?
17681 grep -v '^ *+' conftest.er1 >conftest.err
17682 rm -f conftest.er1
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } &&
17686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17689 ac_status=$?
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; } &&
17692 { ac_try='test -s conftest$ac_exeext'
17693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694 (eval $ac_try) 2>&5
17695 ac_status=$?
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; }; then
17698 ac_cv_lib_hesiod_hes_getmailhost=yes
17699 else
17700 echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17703 ac_cv_lib_hesiod_hes_getmailhost=no
17705 rm -f conftest.err conftest.$ac_objext \
17706 conftest$ac_exeext conftest.$ac_ext
17707 LIBS=$ac_check_lib_save_LIBS
17709 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17710 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17711 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17713 cat >>confdefs.h <<\_ACEOF
17714 #define HAVE_LIBHESIOD 1
17715 _ACEOF
17717 else
17725 # These tell us which Kerberos-related libraries to use.
17726 if test "${with_kerberos+set}" = set; then
17728 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17729 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17730 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17731 echo $ECHO_N "(cached) $ECHO_C" >&6
17732 else
17733 ac_check_lib_save_LIBS=$LIBS
17734 LIBS="-lcom_err $LIBS"
17735 cat >conftest.$ac_ext <<_ACEOF
17736 /* confdefs.h. */
17737 _ACEOF
17738 cat confdefs.h >>conftest.$ac_ext
17739 cat >>conftest.$ac_ext <<_ACEOF
17740 /* end confdefs.h. */
17742 /* Override any gcc2 internal prototype to avoid an error. */
17743 #ifdef __cplusplus
17744 extern "C"
17745 #endif
17746 /* We use char because int might match the return type of a gcc2
17747 builtin and then its argument prototype would still apply. */
17748 char com_err ();
17750 main ()
17752 com_err ();
17754 return 0;
17756 _ACEOF
17757 rm -f conftest.$ac_objext conftest$ac_exeext
17758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17759 (eval $ac_link) 2>conftest.er1
17760 ac_status=$?
17761 grep -v '^ *+' conftest.er1 >conftest.err
17762 rm -f conftest.er1
17763 cat conftest.err >&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } &&
17766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest$ac_exeext'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 ac_cv_lib_com_err_com_err=yes
17779 else
17780 echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17783 ac_cv_lib_com_err_com_err=no
17785 rm -f conftest.err conftest.$ac_objext \
17786 conftest$ac_exeext conftest.$ac_ext
17787 LIBS=$ac_check_lib_save_LIBS
17789 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17790 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17791 if test $ac_cv_lib_com_err_com_err = yes; then
17792 cat >>confdefs.h <<_ACEOF
17793 #define HAVE_LIBCOM_ERR 1
17794 _ACEOF
17796 LIBS="-lcom_err $LIBS"
17801 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17802 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17803 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17804 echo $ECHO_N "(cached) $ECHO_C" >&6
17805 else
17806 ac_check_lib_save_LIBS=$LIBS
17807 LIBS="-lk5crypto $LIBS"
17808 cat >conftest.$ac_ext <<_ACEOF
17809 /* confdefs.h. */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h. */
17815 /* Override any gcc2 internal prototype to avoid an error. */
17816 #ifdef __cplusplus
17817 extern "C"
17818 #endif
17819 /* We use char because int might match the return type of a gcc2
17820 builtin and then its argument prototype would still apply. */
17821 char mit_des_cbc_encrypt ();
17823 main ()
17825 mit_des_cbc_encrypt ();
17827 return 0;
17829 _ACEOF
17830 rm -f conftest.$ac_objext conftest$ac_exeext
17831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17832 (eval $ac_link) 2>conftest.er1
17833 ac_status=$?
17834 grep -v '^ *+' conftest.er1 >conftest.err
17835 rm -f conftest.er1
17836 cat conftest.err >&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } &&
17839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; } &&
17845 { ac_try='test -s conftest$ac_exeext'
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17851 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17852 else
17853 echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17856 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17858 rm -f conftest.err conftest.$ac_objext \
17859 conftest$ac_exeext conftest.$ac_ext
17860 LIBS=$ac_check_lib_save_LIBS
17862 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17863 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17864 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17865 cat >>confdefs.h <<_ACEOF
17866 #define HAVE_LIBK5CRYPTO 1
17867 _ACEOF
17869 LIBS="-lk5crypto $LIBS"
17874 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17875 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17876 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17877 echo $ECHO_N "(cached) $ECHO_C" >&6
17878 else
17879 ac_check_lib_save_LIBS=$LIBS
17880 LIBS="-lcrypto $LIBS"
17881 cat >conftest.$ac_ext <<_ACEOF
17882 /* confdefs.h. */
17883 _ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17888 /* Override any gcc2 internal prototype to avoid an error. */
17889 #ifdef __cplusplus
17890 extern "C"
17891 #endif
17892 /* We use char because int might match the return type of a gcc2
17893 builtin and then its argument prototype would still apply. */
17894 char mit_des_cbc_encrypt ();
17896 main ()
17898 mit_des_cbc_encrypt ();
17900 return 0;
17902 _ACEOF
17903 rm -f conftest.$ac_objext conftest$ac_exeext
17904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17905 (eval $ac_link) 2>conftest.er1
17906 ac_status=$?
17907 grep -v '^ *+' conftest.er1 >conftest.err
17908 rm -f conftest.er1
17909 cat conftest.err >&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } &&
17912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; } &&
17918 { ac_try='test -s conftest$ac_exeext'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17925 else
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17931 rm -f conftest.err conftest.$ac_objext \
17932 conftest$ac_exeext conftest.$ac_ext
17933 LIBS=$ac_check_lib_save_LIBS
17935 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17936 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17937 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17938 cat >>confdefs.h <<_ACEOF
17939 #define HAVE_LIBCRYPTO 1
17940 _ACEOF
17942 LIBS="-lcrypto $LIBS"
17947 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17948 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17949 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17950 echo $ECHO_N "(cached) $ECHO_C" >&6
17951 else
17952 ac_check_lib_save_LIBS=$LIBS
17953 LIBS="-lkrb5 $LIBS"
17954 cat >conftest.$ac_ext <<_ACEOF
17955 /* confdefs.h. */
17956 _ACEOF
17957 cat confdefs.h >>conftest.$ac_ext
17958 cat >>conftest.$ac_ext <<_ACEOF
17959 /* end confdefs.h. */
17961 /* Override any gcc2 internal prototype to avoid an error. */
17962 #ifdef __cplusplus
17963 extern "C"
17964 #endif
17965 /* We use char because int might match the return type of a gcc2
17966 builtin and then its argument prototype would still apply. */
17967 char krb5_init_context ();
17969 main ()
17971 krb5_init_context ();
17973 return 0;
17975 _ACEOF
17976 rm -f conftest.$ac_objext conftest$ac_exeext
17977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17978 (eval $ac_link) 2>conftest.er1
17979 ac_status=$?
17980 grep -v '^ *+' conftest.er1 >conftest.err
17981 rm -f conftest.er1
17982 cat conftest.err >&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
17985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; } &&
17991 { ac_try='test -s conftest$ac_exeext'
17992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993 (eval $ac_try) 2>&5
17994 ac_status=$?
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; }; then
17997 ac_cv_lib_krb5_krb5_init_context=yes
17998 else
17999 echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18002 ac_cv_lib_krb5_krb5_init_context=no
18004 rm -f conftest.err conftest.$ac_objext \
18005 conftest$ac_exeext conftest.$ac_ext
18006 LIBS=$ac_check_lib_save_LIBS
18008 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18009 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18010 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18011 cat >>confdefs.h <<_ACEOF
18012 #define HAVE_LIBKRB5 1
18013 _ACEOF
18015 LIBS="-lkrb5 $LIBS"
18019 if test "${with_kerberos5+set}" != set; then
18021 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18022 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18023 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18025 else
18026 ac_check_lib_save_LIBS=$LIBS
18027 LIBS="-ldes425 $LIBS"
18028 cat >conftest.$ac_ext <<_ACEOF
18029 /* confdefs.h. */
18030 _ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18035 /* Override any gcc2 internal prototype to avoid an error. */
18036 #ifdef __cplusplus
18037 extern "C"
18038 #endif
18039 /* We use char because int might match the return type of a gcc2
18040 builtin and then its argument prototype would still apply. */
18041 char des_cbc_encrypt ();
18043 main ()
18045 des_cbc_encrypt ();
18047 return 0;
18049 _ACEOF
18050 rm -f conftest.$ac_objext conftest$ac_exeext
18051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18052 (eval $ac_link) 2>conftest.er1
18053 ac_status=$?
18054 grep -v '^ *+' conftest.er1 >conftest.err
18055 rm -f conftest.er1
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
18059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18065 { ac_try='test -s conftest$ac_exeext'
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; }; then
18071 ac_cv_lib_des425_des_cbc_encrypt=yes
18072 else
18073 echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18076 ac_cv_lib_des425_des_cbc_encrypt=no
18078 rm -f conftest.err conftest.$ac_objext \
18079 conftest$ac_exeext conftest.$ac_ext
18080 LIBS=$ac_check_lib_save_LIBS
18082 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18083 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18084 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18085 cat >>confdefs.h <<_ACEOF
18086 #define HAVE_LIBDES425 1
18087 _ACEOF
18089 LIBS="-ldes425 $LIBS"
18091 else
18093 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18094 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18095 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18097 else
18098 ac_check_lib_save_LIBS=$LIBS
18099 LIBS="-ldes $LIBS"
18100 cat >conftest.$ac_ext <<_ACEOF
18101 /* confdefs.h. */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18107 /* Override any gcc2 internal prototype to avoid an error. */
18108 #ifdef __cplusplus
18109 extern "C"
18110 #endif
18111 /* We use char because int might match the return type of a gcc2
18112 builtin and then its argument prototype would still apply. */
18113 char des_cbc_encrypt ();
18115 main ()
18117 des_cbc_encrypt ();
18119 return 0;
18121 _ACEOF
18122 rm -f conftest.$ac_objext conftest$ac_exeext
18123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18124 (eval $ac_link) 2>conftest.er1
18125 ac_status=$?
18126 grep -v '^ *+' conftest.er1 >conftest.err
18127 rm -f conftest.er1
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } &&
18131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133 (eval $ac_try) 2>&5
18134 ac_status=$?
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; } &&
18137 { ac_try='test -s conftest$ac_exeext'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18140 ac_status=$?
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 ac_cv_lib_des_des_cbc_encrypt=yes
18144 else
18145 echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18148 ac_cv_lib_des_des_cbc_encrypt=no
18150 rm -f conftest.err conftest.$ac_objext \
18151 conftest$ac_exeext conftest.$ac_ext
18152 LIBS=$ac_check_lib_save_LIBS
18154 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18155 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18156 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18157 cat >>confdefs.h <<_ACEOF
18158 #define HAVE_LIBDES 1
18159 _ACEOF
18161 LIBS="-ldes $LIBS"
18168 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18169 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18170 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18172 else
18173 ac_check_lib_save_LIBS=$LIBS
18174 LIBS="-lkrb4 $LIBS"
18175 cat >conftest.$ac_ext <<_ACEOF
18176 /* confdefs.h. */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18182 /* Override any gcc2 internal prototype to avoid an error. */
18183 #ifdef __cplusplus
18184 extern "C"
18185 #endif
18186 /* We use char because int might match the return type of a gcc2
18187 builtin and then its argument prototype would still apply. */
18188 char krb_get_cred ();
18190 main ()
18192 krb_get_cred ();
18194 return 0;
18196 _ACEOF
18197 rm -f conftest.$ac_objext conftest$ac_exeext
18198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18199 (eval $ac_link) 2>conftest.er1
18200 ac_status=$?
18201 grep -v '^ *+' conftest.er1 >conftest.err
18202 rm -f conftest.er1
18203 cat conftest.err >&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } &&
18206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208 (eval $ac_try) 2>&5
18209 ac_status=$?
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; } &&
18212 { ac_try='test -s conftest$ac_exeext'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 ac_cv_lib_krb4_krb_get_cred=yes
18219 else
18220 echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18223 ac_cv_lib_krb4_krb_get_cred=no
18225 rm -f conftest.err conftest.$ac_objext \
18226 conftest$ac_exeext conftest.$ac_ext
18227 LIBS=$ac_check_lib_save_LIBS
18229 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18230 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18231 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18232 cat >>confdefs.h <<_ACEOF
18233 #define HAVE_LIBKRB4 1
18234 _ACEOF
18236 LIBS="-lkrb4 $LIBS"
18238 else
18240 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18241 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18242 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18243 echo $ECHO_N "(cached) $ECHO_C" >&6
18244 else
18245 ac_check_lib_save_LIBS=$LIBS
18246 LIBS="-lkrb $LIBS"
18247 cat >conftest.$ac_ext <<_ACEOF
18248 /* confdefs.h. */
18249 _ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h. */
18254 /* Override any gcc2 internal prototype to avoid an error. */
18255 #ifdef __cplusplus
18256 extern "C"
18257 #endif
18258 /* We use char because int might match the return type of a gcc2
18259 builtin and then its argument prototype would still apply. */
18260 char krb_get_cred ();
18262 main ()
18264 krb_get_cred ();
18266 return 0;
18268 _ACEOF
18269 rm -f conftest.$ac_objext conftest$ac_exeext
18270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18271 (eval $ac_link) 2>conftest.er1
18272 ac_status=$?
18273 grep -v '^ *+' conftest.er1 >conftest.err
18274 rm -f conftest.er1
18275 cat conftest.err >&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } &&
18278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest$ac_exeext'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18290 ac_cv_lib_krb_krb_get_cred=yes
18291 else
18292 echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18295 ac_cv_lib_krb_krb_get_cred=no
18297 rm -f conftest.err conftest.$ac_objext \
18298 conftest$ac_exeext conftest.$ac_ext
18299 LIBS=$ac_check_lib_save_LIBS
18301 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18302 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18303 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18304 cat >>confdefs.h <<_ACEOF
18305 #define HAVE_LIBKRB 1
18306 _ACEOF
18308 LIBS="-lkrb $LIBS"
18316 if test "${with_kerberos5+set}" = set; then
18318 for ac_header in krb5.h
18320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18322 echo "$as_me:$LINENO: checking for $ac_header" >&5
18323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18325 echo $ECHO_N "(cached) $ECHO_C" >&6
18327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18329 else
18330 # Is the header compilable?
18331 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18333 cat >conftest.$ac_ext <<_ACEOF
18334 /* confdefs.h. */
18335 _ACEOF
18336 cat confdefs.h >>conftest.$ac_ext
18337 cat >>conftest.$ac_ext <<_ACEOF
18338 /* end confdefs.h. */
18339 $ac_includes_default
18340 #include <$ac_header>
18341 _ACEOF
18342 rm -f conftest.$ac_objext
18343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18344 (eval $ac_compile) 2>conftest.er1
18345 ac_status=$?
18346 grep -v '^ *+' conftest.er1 >conftest.err
18347 rm -f conftest.er1
18348 cat conftest.err >&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); } &&
18351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest.$ac_objext'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 ac_header_compiler=yes
18364 else
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 ac_header_compiler=no
18370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18372 echo "${ECHO_T}$ac_header_compiler" >&6
18374 # Is the header present?
18375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18377 cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h. */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 #include <$ac_header>
18384 _ACEOF
18385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18387 ac_status=$?
18388 grep -v '^ *+' conftest.er1 >conftest.err
18389 rm -f conftest.er1
18390 cat conftest.err >&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } >/dev/null; then
18393 if test -s conftest.err; then
18394 ac_cpp_err=$ac_c_preproc_warn_flag
18395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18396 else
18397 ac_cpp_err=
18399 else
18400 ac_cpp_err=yes
18402 if test -z "$ac_cpp_err"; then
18403 ac_header_preproc=yes
18404 else
18405 echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18408 ac_header_preproc=no
18410 rm -f conftest.err conftest.$ac_ext
18411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18412 echo "${ECHO_T}$ac_header_preproc" >&6
18414 # So? What about this header?
18415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18416 yes:no: )
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18421 ac_header_preproc=yes
18423 no:yes:* )
18424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18437 cat <<\_ASBOX
18438 ## ------------------------------------------ ##
18439 ## Report this to the AC_PACKAGE_NAME lists. ##
18440 ## ------------------------------------------ ##
18441 _ASBOX
18443 sed "s/^/$as_me: WARNING: /" >&2
18445 esac
18446 echo "$as_me:$LINENO: checking for $ac_header" >&5
18447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 else
18451 eval "$as_ac_Header=\$ac_header_preproc"
18453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18458 cat >>confdefs.h <<_ACEOF
18459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18460 _ACEOF
18464 done
18466 else
18468 for ac_header in des.h
18470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18472 echo "$as_me:$LINENO: checking for $ac_header" >&5
18473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18479 else
18480 # Is the header compilable?
18481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18483 cat >conftest.$ac_ext <<_ACEOF
18484 /* confdefs.h. */
18485 _ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18489 $ac_includes_default
18490 #include <$ac_header>
18491 _ACEOF
18492 rm -f conftest.$ac_objext
18493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18494 (eval $ac_compile) 2>conftest.er1
18495 ac_status=$?
18496 grep -v '^ *+' conftest.er1 >conftest.err
18497 rm -f conftest.er1
18498 cat conftest.err >&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); } &&
18501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503 (eval $ac_try) 2>&5
18504 ac_status=$?
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; } &&
18507 { ac_try='test -s conftest.$ac_objext'
18508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18509 (eval $ac_try) 2>&5
18510 ac_status=$?
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); }; }; then
18513 ac_header_compiler=yes
18514 else
18515 echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18518 ac_header_compiler=no
18520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18522 echo "${ECHO_T}$ac_header_compiler" >&6
18524 # Is the header present?
18525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18527 cat >conftest.$ac_ext <<_ACEOF
18528 /* confdefs.h. */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18533 #include <$ac_header>
18534 _ACEOF
18535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18537 ac_status=$?
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } >/dev/null; then
18543 if test -s conftest.err; then
18544 ac_cpp_err=$ac_c_preproc_warn_flag
18545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18546 else
18547 ac_cpp_err=
18549 else
18550 ac_cpp_err=yes
18552 if test -z "$ac_cpp_err"; then
18553 ac_header_preproc=yes
18554 else
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 ac_header_preproc=no
18560 rm -f conftest.err conftest.$ac_ext
18561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18562 echo "${ECHO_T}$ac_header_preproc" >&6
18564 # So? What about this header?
18565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18566 yes:no: )
18567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18571 ac_header_preproc=yes
18573 no:yes:* )
18574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18587 cat <<\_ASBOX
18588 ## ------------------------------------------ ##
18589 ## Report this to the AC_PACKAGE_NAME lists. ##
18590 ## ------------------------------------------ ##
18591 _ASBOX
18593 sed "s/^/$as_me: WARNING: /" >&2
18595 esac
18596 echo "$as_me:$LINENO: checking for $ac_header" >&5
18597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18600 else
18601 eval "$as_ac_Header=\$ac_header_preproc"
18603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18608 cat >>confdefs.h <<_ACEOF
18609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18610 _ACEOF
18612 else
18614 for ac_header in kerberosIV/des.h
18616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18618 echo "$as_me:$LINENO: checking for $ac_header" >&5
18619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18621 echo $ECHO_N "(cached) $ECHO_C" >&6
18623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18625 else
18626 # Is the header compilable?
18627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18629 cat >conftest.$ac_ext <<_ACEOF
18630 /* confdefs.h. */
18631 _ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18635 $ac_includes_default
18636 #include <$ac_header>
18637 _ACEOF
18638 rm -f conftest.$ac_objext
18639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18640 (eval $ac_compile) 2>conftest.er1
18641 ac_status=$?
18642 grep -v '^ *+' conftest.er1 >conftest.err
18643 rm -f conftest.er1
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } &&
18647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18649 (eval $ac_try) 2>&5
18650 ac_status=$?
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; } &&
18653 { ac_try='test -s conftest.$ac_objext'
18654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655 (eval $ac_try) 2>&5
18656 ac_status=$?
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; }; then
18659 ac_header_compiler=yes
18660 else
18661 echo "$as_me: failed program was:" >&5
18662 sed 's/^/| /' conftest.$ac_ext >&5
18664 ac_header_compiler=no
18666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18668 echo "${ECHO_T}$ac_header_compiler" >&6
18670 # Is the header present?
18671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18673 cat >conftest.$ac_ext <<_ACEOF
18674 /* confdefs.h. */
18675 _ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18679 #include <$ac_header>
18680 _ACEOF
18681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18683 ac_status=$?
18684 grep -v '^ *+' conftest.er1 >conftest.err
18685 rm -f conftest.er1
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } >/dev/null; then
18689 if test -s conftest.err; then
18690 ac_cpp_err=$ac_c_preproc_warn_flag
18691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18692 else
18693 ac_cpp_err=
18695 else
18696 ac_cpp_err=yes
18698 if test -z "$ac_cpp_err"; then
18699 ac_header_preproc=yes
18700 else
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18704 ac_header_preproc=no
18706 rm -f conftest.err conftest.$ac_ext
18707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18708 echo "${ECHO_T}$ac_header_preproc" >&6
18710 # So? What about this header?
18711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18712 yes:no: )
18713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18717 ac_header_preproc=yes
18719 no:yes:* )
18720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18733 cat <<\_ASBOX
18734 ## ------------------------------------------ ##
18735 ## Report this to the AC_PACKAGE_NAME lists. ##
18736 ## ------------------------------------------ ##
18737 _ASBOX
18739 sed "s/^/$as_me: WARNING: /" >&2
18741 esac
18742 echo "$as_me:$LINENO: checking for $ac_header" >&5
18743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18746 else
18747 eval "$as_ac_Header=\$ac_header_preproc"
18749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18754 cat >>confdefs.h <<_ACEOF
18755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18756 _ACEOF
18758 else
18760 for ac_header in kerberos/des.h
18762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18764 echo "$as_me:$LINENO: checking for $ac_header" >&5
18765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18771 else
18772 # Is the header compilable?
18773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18775 cat >conftest.$ac_ext <<_ACEOF
18776 /* confdefs.h. */
18777 _ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18781 $ac_includes_default
18782 #include <$ac_header>
18783 _ACEOF
18784 rm -f conftest.$ac_objext
18785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18786 (eval $ac_compile) 2>conftest.er1
18787 ac_status=$?
18788 grep -v '^ *+' conftest.er1 >conftest.err
18789 rm -f conftest.er1
18790 cat conftest.err >&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } &&
18793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795 (eval $ac_try) 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; } &&
18799 { ac_try='test -s conftest.$ac_objext'
18800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18801 (eval $ac_try) 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
18805 ac_header_compiler=yes
18806 else
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18810 ac_header_compiler=no
18812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18814 echo "${ECHO_T}$ac_header_compiler" >&6
18816 # Is the header present?
18817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18819 cat >conftest.$ac_ext <<_ACEOF
18820 /* confdefs.h. */
18821 _ACEOF
18822 cat confdefs.h >>conftest.$ac_ext
18823 cat >>conftest.$ac_ext <<_ACEOF
18824 /* end confdefs.h. */
18825 #include <$ac_header>
18826 _ACEOF
18827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18829 ac_status=$?
18830 grep -v '^ *+' conftest.er1 >conftest.err
18831 rm -f conftest.er1
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } >/dev/null; then
18835 if test -s conftest.err; then
18836 ac_cpp_err=$ac_c_preproc_warn_flag
18837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18838 else
18839 ac_cpp_err=
18841 else
18842 ac_cpp_err=yes
18844 if test -z "$ac_cpp_err"; then
18845 ac_header_preproc=yes
18846 else
18847 echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18850 ac_header_preproc=no
18852 rm -f conftest.err conftest.$ac_ext
18853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18854 echo "${ECHO_T}$ac_header_preproc" >&6
18856 # So? What about this header?
18857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18858 yes:no: )
18859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18863 ac_header_preproc=yes
18865 no:yes:* )
18866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18879 cat <<\_ASBOX
18880 ## ------------------------------------------ ##
18881 ## Report this to the AC_PACKAGE_NAME lists. ##
18882 ## ------------------------------------------ ##
18883 _ASBOX
18885 sed "s/^/$as_me: WARNING: /" >&2
18887 esac
18888 echo "$as_me:$LINENO: checking for $ac_header" >&5
18889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18892 else
18893 eval "$as_ac_Header=\$ac_header_preproc"
18895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18900 cat >>confdefs.h <<_ACEOF
18901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18902 _ACEOF
18906 done
18910 done
18914 done
18917 for ac_header in krb.h
18919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18921 echo "$as_me:$LINENO: checking for $ac_header" >&5
18922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18928 else
18929 # Is the header compilable?
18930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18932 cat >conftest.$ac_ext <<_ACEOF
18933 /* confdefs.h. */
18934 _ACEOF
18935 cat confdefs.h >>conftest.$ac_ext
18936 cat >>conftest.$ac_ext <<_ACEOF
18937 /* end confdefs.h. */
18938 $ac_includes_default
18939 #include <$ac_header>
18940 _ACEOF
18941 rm -f conftest.$ac_objext
18942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18943 (eval $ac_compile) 2>conftest.er1
18944 ac_status=$?
18945 grep -v '^ *+' conftest.er1 >conftest.err
18946 rm -f conftest.er1
18947 cat conftest.err >&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } &&
18950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; } &&
18956 { ac_try='test -s conftest.$ac_objext'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_header_compiler=yes
18963 else
18964 echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18967 ac_header_compiler=no
18969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18971 echo "${ECHO_T}$ac_header_compiler" >&6
18973 # Is the header present?
18974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18976 cat >conftest.$ac_ext <<_ACEOF
18977 /* confdefs.h. */
18978 _ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18982 #include <$ac_header>
18983 _ACEOF
18984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18986 ac_status=$?
18987 grep -v '^ *+' conftest.er1 >conftest.err
18988 rm -f conftest.er1
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } >/dev/null; then
18992 if test -s conftest.err; then
18993 ac_cpp_err=$ac_c_preproc_warn_flag
18994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18995 else
18996 ac_cpp_err=
18998 else
18999 ac_cpp_err=yes
19001 if test -z "$ac_cpp_err"; then
19002 ac_header_preproc=yes
19003 else
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19007 ac_header_preproc=no
19009 rm -f conftest.err conftest.$ac_ext
19010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19011 echo "${ECHO_T}$ac_header_preproc" >&6
19013 # So? What about this header?
19014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19015 yes:no: )
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19020 ac_header_preproc=yes
19022 no:yes:* )
19023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19036 cat <<\_ASBOX
19037 ## ------------------------------------------ ##
19038 ## Report this to the AC_PACKAGE_NAME lists. ##
19039 ## ------------------------------------------ ##
19040 _ASBOX
19042 sed "s/^/$as_me: WARNING: /" >&2
19044 esac
19045 echo "$as_me:$LINENO: checking for $ac_header" >&5
19046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19048 echo $ECHO_N "(cached) $ECHO_C" >&6
19049 else
19050 eval "$as_ac_Header=\$ac_header_preproc"
19052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19057 cat >>confdefs.h <<_ACEOF
19058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19059 _ACEOF
19061 else
19063 for ac_header in kerberosIV/krb.h
19065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19067 echo "$as_me:$LINENO: checking for $ac_header" >&5
19068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19074 else
19075 # Is the header compilable?
19076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19078 cat >conftest.$ac_ext <<_ACEOF
19079 /* confdefs.h. */
19080 _ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h. */
19084 $ac_includes_default
19085 #include <$ac_header>
19086 _ACEOF
19087 rm -f conftest.$ac_objext
19088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19089 (eval $ac_compile) 2>conftest.er1
19090 ac_status=$?
19091 grep -v '^ *+' conftest.er1 >conftest.err
19092 rm -f conftest.er1
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
19096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19098 (eval $ac_try) 2>&5
19099 ac_status=$?
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; } &&
19102 { ac_try='test -s conftest.$ac_objext'
19103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104 (eval $ac_try) 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; }; then
19108 ac_header_compiler=yes
19109 else
19110 echo "$as_me: failed program was:" >&5
19111 sed 's/^/| /' conftest.$ac_ext >&5
19113 ac_header_compiler=no
19115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19117 echo "${ECHO_T}$ac_header_compiler" >&6
19119 # Is the header present?
19120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19122 cat >conftest.$ac_ext <<_ACEOF
19123 /* confdefs.h. */
19124 _ACEOF
19125 cat confdefs.h >>conftest.$ac_ext
19126 cat >>conftest.$ac_ext <<_ACEOF
19127 /* end confdefs.h. */
19128 #include <$ac_header>
19129 _ACEOF
19130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19132 ac_status=$?
19133 grep -v '^ *+' conftest.er1 >conftest.err
19134 rm -f conftest.er1
19135 cat conftest.err >&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); } >/dev/null; then
19138 if test -s conftest.err; then
19139 ac_cpp_err=$ac_c_preproc_warn_flag
19140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19141 else
19142 ac_cpp_err=
19144 else
19145 ac_cpp_err=yes
19147 if test -z "$ac_cpp_err"; then
19148 ac_header_preproc=yes
19149 else
19150 echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19153 ac_header_preproc=no
19155 rm -f conftest.err conftest.$ac_ext
19156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19157 echo "${ECHO_T}$ac_header_preproc" >&6
19159 # So? What about this header?
19160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19161 yes:no: )
19162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19166 ac_header_preproc=yes
19168 no:yes:* )
19169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19182 cat <<\_ASBOX
19183 ## ------------------------------------------ ##
19184 ## Report this to the AC_PACKAGE_NAME lists. ##
19185 ## ------------------------------------------ ##
19186 _ASBOX
19188 sed "s/^/$as_me: WARNING: /" >&2
19190 esac
19191 echo "$as_me:$LINENO: checking for $ac_header" >&5
19192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19194 echo $ECHO_N "(cached) $ECHO_C" >&6
19195 else
19196 eval "$as_ac_Header=\$ac_header_preproc"
19198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19203 cat >>confdefs.h <<_ACEOF
19204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19205 _ACEOF
19207 else
19209 for ac_header in kerberos/krb.h
19211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19213 echo "$as_me:$LINENO: checking for $ac_header" >&5
19214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19220 else
19221 # Is the header compilable?
19222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19224 cat >conftest.$ac_ext <<_ACEOF
19225 /* confdefs.h. */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19230 $ac_includes_default
19231 #include <$ac_header>
19232 _ACEOF
19233 rm -f conftest.$ac_objext
19234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19235 (eval $ac_compile) 2>conftest.er1
19236 ac_status=$?
19237 grep -v '^ *+' conftest.er1 >conftest.err
19238 rm -f conftest.er1
19239 cat conftest.err >&5
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); } &&
19242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; } &&
19248 { ac_try='test -s conftest.$ac_objext'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 ac_header_compiler=yes
19255 else
19256 echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19259 ac_header_compiler=no
19261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19263 echo "${ECHO_T}$ac_header_compiler" >&6
19265 # Is the header present?
19266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19268 cat >conftest.$ac_ext <<_ACEOF
19269 /* confdefs.h. */
19270 _ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19274 #include <$ac_header>
19275 _ACEOF
19276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19278 ac_status=$?
19279 grep -v '^ *+' conftest.er1 >conftest.err
19280 rm -f conftest.er1
19281 cat conftest.err >&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } >/dev/null; then
19284 if test -s conftest.err; then
19285 ac_cpp_err=$ac_c_preproc_warn_flag
19286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19287 else
19288 ac_cpp_err=
19290 else
19291 ac_cpp_err=yes
19293 if test -z "$ac_cpp_err"; then
19294 ac_header_preproc=yes
19295 else
19296 echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19299 ac_header_preproc=no
19301 rm -f conftest.err conftest.$ac_ext
19302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19303 echo "${ECHO_T}$ac_header_preproc" >&6
19305 # So? What about this header?
19306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19307 yes:no: )
19308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19312 ac_header_preproc=yes
19314 no:yes:* )
19315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19328 cat <<\_ASBOX
19329 ## ------------------------------------------ ##
19330 ## Report this to the AC_PACKAGE_NAME lists. ##
19331 ## ------------------------------------------ ##
19332 _ASBOX
19334 sed "s/^/$as_me: WARNING: /" >&2
19336 esac
19337 echo "$as_me:$LINENO: checking for $ac_header" >&5
19338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
19341 else
19342 eval "$as_ac_Header=\$ac_header_preproc"
19344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19349 cat >>confdefs.h <<_ACEOF
19350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19351 _ACEOF
19355 done
19359 done
19363 done
19367 for ac_header in com_err.h
19369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19371 echo "$as_me:$LINENO: checking for $ac_header" >&5
19372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19378 else
19379 # Is the header compilable?
19380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19382 cat >conftest.$ac_ext <<_ACEOF
19383 /* confdefs.h. */
19384 _ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h. */
19388 $ac_includes_default
19389 #include <$ac_header>
19390 _ACEOF
19391 rm -f conftest.$ac_objext
19392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19393 (eval $ac_compile) 2>conftest.er1
19394 ac_status=$?
19395 grep -v '^ *+' conftest.er1 >conftest.err
19396 rm -f conftest.er1
19397 cat conftest.err >&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } &&
19400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest.$ac_objext'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; }; then
19412 ac_header_compiler=yes
19413 else
19414 echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19417 ac_header_compiler=no
19419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19421 echo "${ECHO_T}$ac_header_compiler" >&6
19423 # Is the header present?
19424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19426 cat >conftest.$ac_ext <<_ACEOF
19427 /* confdefs.h. */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19432 #include <$ac_header>
19433 _ACEOF
19434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19436 ac_status=$?
19437 grep -v '^ *+' conftest.er1 >conftest.err
19438 rm -f conftest.er1
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } >/dev/null; then
19442 if test -s conftest.err; then
19443 ac_cpp_err=$ac_c_preproc_warn_flag
19444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19445 else
19446 ac_cpp_err=
19448 else
19449 ac_cpp_err=yes
19451 if test -z "$ac_cpp_err"; then
19452 ac_header_preproc=yes
19453 else
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 ac_header_preproc=no
19459 rm -f conftest.err conftest.$ac_ext
19460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19461 echo "${ECHO_T}$ac_header_preproc" >&6
19463 # So? What about this header?
19464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19465 yes:no: )
19466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19470 ac_header_preproc=yes
19472 no:yes:* )
19473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19486 cat <<\_ASBOX
19487 ## ------------------------------------------ ##
19488 ## Report this to the AC_PACKAGE_NAME lists. ##
19489 ## ------------------------------------------ ##
19490 _ASBOX
19492 sed "s/^/$as_me: WARNING: /" >&2
19494 esac
19495 echo "$as_me:$LINENO: checking for $ac_header" >&5
19496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
19499 else
19500 eval "$as_ac_Header=\$ac_header_preproc"
19502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19507 cat >>confdefs.h <<_ACEOF
19508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19509 _ACEOF
19513 done
19517 # Solaris requires -lintl if you want strerror (which calls dgettext)
19518 # to return localized messages.
19520 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19521 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19522 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19524 else
19525 ac_check_lib_save_LIBS=$LIBS
19526 LIBS="-lintl $LIBS"
19527 cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h. */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19534 /* Override any gcc2 internal prototype to avoid an error. */
19535 #ifdef __cplusplus
19536 extern "C"
19537 #endif
19538 /* We use char because int might match the return type of a gcc2
19539 builtin and then its argument prototype would still apply. */
19540 char dgettext ();
19542 main ()
19544 dgettext ();
19546 return 0;
19548 _ACEOF
19549 rm -f conftest.$ac_objext conftest$ac_exeext
19550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19551 (eval $ac_link) 2>conftest.er1
19552 ac_status=$?
19553 grep -v '^ *+' conftest.er1 >conftest.err
19554 rm -f conftest.er1
19555 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } &&
19558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest$ac_exeext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19570 ac_cv_lib_intl_dgettext=yes
19571 else
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19575 ac_cv_lib_intl_dgettext=no
19577 rm -f conftest.err conftest.$ac_objext \
19578 conftest$ac_exeext conftest.$ac_ext
19579 LIBS=$ac_check_lib_save_LIBS
19581 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19582 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19583 if test $ac_cv_lib_intl_dgettext = yes; then
19584 cat >>confdefs.h <<_ACEOF
19585 #define HAVE_LIBINTL 1
19586 _ACEOF
19588 LIBS="-lintl $LIBS"
19593 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19594 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19595 if test "${emacs_cv_localtime_cache+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 else
19598 if test x$ac_cv_func_tzset = xyes; then
19599 if test "$cross_compiling" = yes; then
19600 # If we have tzset, assume the worst when cross-compiling.
19601 emacs_cv_localtime_cache=yes
19602 else
19603 cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h. */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19609 #include <time.h>
19610 extern char **environ;
19611 unset_TZ ()
19613 char **from, **to;
19614 for (to = from = environ; (*to = *from); from++)
19615 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19616 to++;
19618 char TZ_GMT0[] = "TZ=GMT0";
19619 char TZ_PST8[] = "TZ=PST8";
19620 main()
19622 time_t now = time ((time_t *) 0);
19623 int hour_GMT0, hour_unset;
19624 if (putenv (TZ_GMT0) != 0)
19625 exit (1);
19626 hour_GMT0 = localtime (&now)->tm_hour;
19627 unset_TZ ();
19628 hour_unset = localtime (&now)->tm_hour;
19629 if (putenv (TZ_PST8) != 0)
19630 exit (1);
19631 if (localtime (&now)->tm_hour == hour_GMT0)
19632 exit (1);
19633 unset_TZ ();
19634 if (localtime (&now)->tm_hour != hour_unset)
19635 exit (1);
19636 exit (0);
19638 _ACEOF
19639 rm -f conftest$ac_exeext
19640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19641 (eval $ac_link) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646 (eval $ac_try) 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
19650 emacs_cv_localtime_cache=no
19651 else
19652 echo "$as_me: program exited with status $ac_status" >&5
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19656 ( exit $ac_status )
19657 emacs_cv_localtime_cache=yes
19659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19661 else
19662 # If we lack tzset, report that localtime does not cache TZ,
19663 # since we can't invalidate the cache if we don't have tzset.
19664 emacs_cv_localtime_cache=no
19667 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19668 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19669 if test $emacs_cv_localtime_cache = yes; then
19671 cat >>confdefs.h <<\_ACEOF
19672 #define LOCALTIME_CACHE 1
19673 _ACEOF
19677 if test "x$HAVE_TIMEVAL" = xyes; then
19679 for ac_func in gettimeofday
19681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19682 echo "$as_me:$LINENO: checking for $ac_func" >&5
19683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19684 if eval "test \"\${$as_ac_var+set}\" = set"; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687 cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h. */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19695 #define $ac_func innocuous_$ac_func
19697 /* System header to define __stub macros and hopefully few prototypes,
19698 which can conflict with char $ac_func (); below.
19699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19700 <limits.h> exists even on freestanding compilers. */
19702 #ifdef __STDC__
19703 # include <limits.h>
19704 #else
19705 # include <assert.h>
19706 #endif
19708 #undef $ac_func
19710 /* Override any gcc2 internal prototype to avoid an error. */
19711 #ifdef __cplusplus
19712 extern "C"
19714 #endif
19715 /* We use char because int might match the return type of a gcc2
19716 builtin and then its argument prototype would still apply. */
19717 char $ac_func ();
19718 /* The GNU C library defines this for functions which it implements
19719 to always fail with ENOSYS. Some functions are actually named
19720 something starting with __ and the normal name is an alias. */
19721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19722 choke me
19723 #else
19724 char (*f) () = $ac_func;
19725 #endif
19726 #ifdef __cplusplus
19728 #endif
19731 main ()
19733 return f != $ac_func;
19735 return 0;
19737 _ACEOF
19738 rm -f conftest.$ac_objext conftest$ac_exeext
19739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19740 (eval $ac_link) 2>conftest.er1
19741 ac_status=$?
19742 grep -v '^ *+' conftest.er1 >conftest.err
19743 rm -f conftest.er1
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
19747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; } &&
19753 { ac_try='test -s conftest$ac_exeext'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19756 ac_status=$?
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19759 eval "$as_ac_var=yes"
19760 else
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 eval "$as_ac_var=no"
19766 rm -f conftest.err conftest.$ac_objext \
19767 conftest$ac_exeext conftest.$ac_ext
19769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19771 if test `eval echo '${'$as_ac_var'}'` = yes; then
19772 cat >>confdefs.h <<_ACEOF
19773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19774 _ACEOF
19777 done
19779 if test $ac_cv_func_gettimeofday = yes; then
19780 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19781 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19782 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 else
19785 cat >conftest.$ac_ext <<_ACEOF
19786 /* confdefs.h. */
19787 _ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h. */
19792 #ifdef TIME_WITH_SYS_TIME
19793 #include <sys/time.h>
19794 #include <time.h>
19795 #else
19796 #ifdef HAVE_SYS_TIME_H
19797 #include <sys/time.h>
19798 #else
19799 #include <time.h>
19800 #endif
19801 #endif
19803 main ()
19805 struct timeval time;
19806 gettimeofday (&time, 0);
19808 return 0;
19810 _ACEOF
19811 rm -f conftest.$ac_objext
19812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19813 (eval $ac_compile) 2>conftest.er1
19814 ac_status=$?
19815 grep -v '^ *+' conftest.er1 >conftest.err
19816 rm -f conftest.er1
19817 cat conftest.err >&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } &&
19820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; } &&
19826 { ac_try='test -s conftest.$ac_objext'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 emacs_cv_gettimeofday_two_arguments=yes
19833 else
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19837 emacs_cv_gettimeofday_two_arguments=no
19839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19841 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19842 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19843 if test $emacs_cv_gettimeofday_two_arguments = no; then
19845 cat >>confdefs.h <<\_ACEOF
19846 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19847 _ACEOF
19853 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19854 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19855 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19856 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 else
19859 cat >conftest.$ac_ext <<_ACEOF
19860 /* confdefs.h. */
19861 _ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19865 #include <sys/types.h>
19866 #include <$ac_cv_struct_tm>
19870 main ()
19872 static struct tm ac_aggr;
19873 if (ac_aggr.tm_zone)
19874 return 0;
19876 return 0;
19878 _ACEOF
19879 rm -f conftest.$ac_objext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19881 (eval $ac_compile) 2>conftest.er1
19882 ac_status=$?
19883 grep -v '^ *+' conftest.er1 >conftest.err
19884 rm -f conftest.er1
19885 cat conftest.err >&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } &&
19888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest.$ac_objext'
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19900 ac_cv_member_struct_tm_tm_zone=yes
19901 else
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 cat >conftest.$ac_ext <<_ACEOF
19906 /* confdefs.h. */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19911 #include <sys/types.h>
19912 #include <$ac_cv_struct_tm>
19916 main ()
19918 static struct tm ac_aggr;
19919 if (sizeof ac_aggr.tm_zone)
19920 return 0;
19922 return 0;
19924 _ACEOF
19925 rm -f conftest.$ac_objext
19926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19927 (eval $ac_compile) 2>conftest.er1
19928 ac_status=$?
19929 grep -v '^ *+' conftest.er1 >conftest.err
19930 rm -f conftest.er1
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } &&
19934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; } &&
19940 { ac_try='test -s conftest.$ac_objext'
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; }; then
19946 ac_cv_member_struct_tm_tm_zone=yes
19947 else
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19951 ac_cv_member_struct_tm_tm_zone=no
19953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19957 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19958 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19959 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19961 cat >>confdefs.h <<_ACEOF
19962 #define HAVE_STRUCT_TM_TM_ZONE 1
19963 _ACEOF
19968 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19970 cat >>confdefs.h <<\_ACEOF
19971 #define HAVE_TM_ZONE 1
19972 _ACEOF
19974 else
19975 echo "$as_me:$LINENO: checking for tzname" >&5
19976 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19977 if test "${ac_cv_var_tzname+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19979 else
19980 cat >conftest.$ac_ext <<_ACEOF
19981 /* confdefs.h. */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19986 #include <time.h>
19987 #ifndef tzname /* For SGI. */
19988 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19989 #endif
19992 main ()
19994 atoi(*tzname);
19996 return 0;
19998 _ACEOF
19999 rm -f conftest.$ac_objext conftest$ac_exeext
20000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20001 (eval $ac_link) 2>conftest.er1
20002 ac_status=$?
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } &&
20008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20011 ac_status=$?
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; } &&
20014 { ac_try='test -s conftest$ac_exeext'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_cv_var_tzname=yes
20021 else
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20025 ac_cv_var_tzname=no
20027 rm -f conftest.err conftest.$ac_objext \
20028 conftest$ac_exeext conftest.$ac_ext
20030 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20031 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20032 if test $ac_cv_var_tzname = yes; then
20034 cat >>confdefs.h <<\_ACEOF
20035 #define HAVE_TZNAME 1
20036 _ACEOF
20042 if test "$ac_cv_func_gettimeofday" = yes; then
20043 echo "$as_me:$LINENO: checking for struct timezone" >&5
20044 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20045 if test "${emacs_cv_struct_timezone+set}" = set; then
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
20047 else
20048 cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h. */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 #include <sys/time.h>
20056 main ()
20058 struct timezone tz;
20060 return 0;
20062 _ACEOF
20063 rm -f conftest.$ac_objext
20064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20065 (eval $ac_compile) 2>conftest.er1
20066 ac_status=$?
20067 grep -v '^ *+' conftest.er1 >conftest.err
20068 rm -f conftest.er1
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
20072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20075 ac_status=$?
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; } &&
20078 { ac_try='test -s conftest.$ac_objext'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 if test "$cross_compiling" = yes; then
20085 emacs_cv_struct_timezone=yes
20086 else
20087 cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h. */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20094 #ifdef TIME_WITH_SYS_TIME
20095 #include <sys/time.h>
20096 #include <time.h>
20097 #else
20098 #ifdef HAVE_SYS_TIME_H
20099 #include <sys/time.h>
20100 #else
20101 #include <time.h>
20102 #endif
20103 #endif
20104 main () {
20105 struct timeval time;
20106 struct timezone dummy;
20107 exit (gettimeofday (&time, &dummy));
20109 _ACEOF
20110 rm -f conftest$ac_exeext
20111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20112 (eval $ac_link) 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117 (eval $ac_try) 2>&5
20118 ac_status=$?
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; }; then
20121 emacs_cv_struct_timezone=yes
20122 else
20123 echo "$as_me: program exited with status $ac_status" >&5
20124 echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20127 ( exit $ac_status )
20128 emacs_cv_struct_timezone=no
20130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20132 else
20133 echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20136 emacs_cv_struct_timezone=no
20138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20140 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20141 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20144 ok_so_far=yes
20145 echo "$as_me:$LINENO: checking for socket" >&5
20146 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20147 if test "${ac_cv_func_socket+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 else
20150 cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h. */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20156 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20158 #define socket innocuous_socket
20160 /* System header to define __stub macros and hopefully few prototypes,
20161 which can conflict with char socket (); below.
20162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20163 <limits.h> exists even on freestanding compilers. */
20165 #ifdef __STDC__
20166 # include <limits.h>
20167 #else
20168 # include <assert.h>
20169 #endif
20171 #undef socket
20173 /* Override any gcc2 internal prototype to avoid an error. */
20174 #ifdef __cplusplus
20175 extern "C"
20177 #endif
20178 /* We use char because int might match the return type of a gcc2
20179 builtin and then its argument prototype would still apply. */
20180 char socket ();
20181 /* The GNU C library defines this for functions which it implements
20182 to always fail with ENOSYS. Some functions are actually named
20183 something starting with __ and the normal name is an alias. */
20184 #if defined (__stub_socket) || defined (__stub___socket)
20185 choke me
20186 #else
20187 char (*f) () = socket;
20188 #endif
20189 #ifdef __cplusplus
20191 #endif
20194 main ()
20196 return f != socket;
20198 return 0;
20200 _ACEOF
20201 rm -f conftest.$ac_objext conftest$ac_exeext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20203 (eval $ac_link) 2>conftest.er1
20204 ac_status=$?
20205 grep -v '^ *+' conftest.er1 >conftest.err
20206 rm -f conftest.er1
20207 cat conftest.err >&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } &&
20210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20213 ac_status=$?
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; } &&
20216 { ac_try='test -s conftest$ac_exeext'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; }; then
20222 ac_cv_func_socket=yes
20223 else
20224 echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20227 ac_cv_func_socket=no
20229 rm -f conftest.err conftest.$ac_objext \
20230 conftest$ac_exeext conftest.$ac_ext
20232 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20233 echo "${ECHO_T}$ac_cv_func_socket" >&6
20234 if test $ac_cv_func_socket = yes; then
20236 else
20237 ok_so_far=no
20240 if test $ok_so_far = yes; then
20241 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20242 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20243 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20244 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20245 echo $ECHO_N "(cached) $ECHO_C" >&6
20247 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20248 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20249 else
20250 # Is the header compilable?
20251 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20252 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20253 cat >conftest.$ac_ext <<_ACEOF
20254 /* confdefs.h. */
20255 _ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20259 $ac_includes_default
20260 #include <netinet/in.h>
20261 _ACEOF
20262 rm -f conftest.$ac_objext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20264 (eval $ac_compile) 2>conftest.er1
20265 ac_status=$?
20266 grep -v '^ *+' conftest.er1 >conftest.err
20267 rm -f conftest.er1
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } &&
20271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; } &&
20277 { ac_try='test -s conftest.$ac_objext'
20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20280 ac_status=$?
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20283 ac_header_compiler=yes
20284 else
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20288 ac_header_compiler=no
20290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20292 echo "${ECHO_T}$ac_header_compiler" >&6
20294 # Is the header present?
20295 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20296 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20297 cat >conftest.$ac_ext <<_ACEOF
20298 /* confdefs.h. */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20303 #include <netinet/in.h>
20304 _ACEOF
20305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20307 ac_status=$?
20308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } >/dev/null; then
20313 if test -s conftest.err; then
20314 ac_cpp_err=$ac_c_preproc_warn_flag
20315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20316 else
20317 ac_cpp_err=
20319 else
20320 ac_cpp_err=yes
20322 if test -z "$ac_cpp_err"; then
20323 ac_header_preproc=yes
20324 else
20325 echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20328 ac_header_preproc=no
20330 rm -f conftest.err conftest.$ac_ext
20331 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20332 echo "${ECHO_T}$ac_header_preproc" >&6
20334 # So? What about this header?
20335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20336 yes:no: )
20337 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20338 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20339 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20340 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20341 ac_header_preproc=yes
20343 no:yes:* )
20344 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20345 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20346 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20347 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20348 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20349 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20350 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20351 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20352 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20353 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20354 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20355 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20357 cat <<\_ASBOX
20358 ## ------------------------------------------ ##
20359 ## Report this to the AC_PACKAGE_NAME lists. ##
20360 ## ------------------------------------------ ##
20361 _ASBOX
20363 sed "s/^/$as_me: WARNING: /" >&2
20365 esac
20366 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20367 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20368 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20370 else
20371 ac_cv_header_netinet_in_h=$ac_header_preproc
20373 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20374 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20377 if test $ac_cv_header_netinet_in_h = yes; then
20379 else
20380 ok_so_far=no
20385 if test $ok_so_far = yes; then
20386 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20387 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20388 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20389 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20393 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20394 else
20395 # Is the header compilable?
20396 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20397 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20398 cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h. */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 $ac_includes_default
20405 #include <arpa/inet.h>
20406 _ACEOF
20407 rm -f conftest.$ac_objext
20408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20409 (eval $ac_compile) 2>conftest.er1
20410 ac_status=$?
20411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20419 ac_status=$?
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; } &&
20422 { ac_try='test -s conftest.$ac_objext'
20423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20425 ac_status=$?
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; }; then
20428 ac_header_compiler=yes
20429 else
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20433 ac_header_compiler=no
20435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20437 echo "${ECHO_T}$ac_header_compiler" >&6
20439 # Is the header present?
20440 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20441 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20442 cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h. */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20448 #include <arpa/inet.h>
20449 _ACEOF
20450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20452 ac_status=$?
20453 grep -v '^ *+' conftest.er1 >conftest.err
20454 rm -f conftest.er1
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } >/dev/null; then
20458 if test -s conftest.err; then
20459 ac_cpp_err=$ac_c_preproc_warn_flag
20460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20461 else
20462 ac_cpp_err=
20464 else
20465 ac_cpp_err=yes
20467 if test -z "$ac_cpp_err"; then
20468 ac_header_preproc=yes
20469 else
20470 echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20473 ac_header_preproc=no
20475 rm -f conftest.err conftest.$ac_ext
20476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20477 echo "${ECHO_T}$ac_header_preproc" >&6
20479 # So? What about this header?
20480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20481 yes:no: )
20482 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20483 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20484 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20485 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20486 ac_header_preproc=yes
20488 no:yes:* )
20489 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20490 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20491 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20492 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20493 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20494 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20495 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20496 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20498 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20499 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20500 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20502 cat <<\_ASBOX
20503 ## ------------------------------------------ ##
20504 ## Report this to the AC_PACKAGE_NAME lists. ##
20505 ## ------------------------------------------ ##
20506 _ASBOX
20508 sed "s/^/$as_me: WARNING: /" >&2
20510 esac
20511 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20512 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20513 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
20515 else
20516 ac_cv_header_arpa_inet_h=$ac_header_preproc
20518 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20519 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20522 if test $ac_cv_header_arpa_inet_h = yes; then
20524 else
20525 ok_so_far=no
20530 if test $ok_so_far = yes; then
20532 cat >>confdefs.h <<\_ACEOF
20533 #define HAVE_INET_SOCKETS 1
20534 _ACEOF
20539 for ac_header in sys/ioctl.h
20541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20543 echo "$as_me:$LINENO: checking for $ac_header" >&5
20544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20550 else
20551 # Is the header compilable?
20552 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20554 cat >conftest.$ac_ext <<_ACEOF
20555 /* confdefs.h. */
20556 _ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20560 $ac_includes_default
20561 #include <$ac_header>
20562 _ACEOF
20563 rm -f conftest.$ac_objext
20564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20565 (eval $ac_compile) 2>conftest.er1
20566 ac_status=$?
20567 grep -v '^ *+' conftest.er1 >conftest.err
20568 rm -f conftest.er1
20569 cat conftest.err >&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } &&
20572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try='test -s conftest.$ac_objext'
20579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20581 ac_status=$?
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
20584 ac_header_compiler=yes
20585 else
20586 echo "$as_me: failed program was:" >&5
20587 sed 's/^/| /' conftest.$ac_ext >&5
20589 ac_header_compiler=no
20591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20593 echo "${ECHO_T}$ac_header_compiler" >&6
20595 # Is the header present?
20596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20598 cat >conftest.$ac_ext <<_ACEOF
20599 /* confdefs.h. */
20600 _ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20604 #include <$ac_header>
20605 _ACEOF
20606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20608 ac_status=$?
20609 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } >/dev/null; then
20614 if test -s conftest.err; then
20615 ac_cpp_err=$ac_c_preproc_warn_flag
20616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20617 else
20618 ac_cpp_err=
20620 else
20621 ac_cpp_err=yes
20623 if test -z "$ac_cpp_err"; then
20624 ac_header_preproc=yes
20625 else
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20629 ac_header_preproc=no
20631 rm -f conftest.err conftest.$ac_ext
20632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20633 echo "${ECHO_T}$ac_header_preproc" >&6
20635 # So? What about this header?
20636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20637 yes:no: )
20638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20642 ac_header_preproc=yes
20644 no:yes:* )
20645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20658 cat <<\_ASBOX
20659 ## ------------------------------------------ ##
20660 ## Report this to the AC_PACKAGE_NAME lists. ##
20661 ## ------------------------------------------ ##
20662 _ASBOX
20664 sed "s/^/$as_me: WARNING: /" >&2
20666 esac
20667 echo "$as_me:$LINENO: checking for $ac_header" >&5
20668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 else
20672 eval "$as_ac_Header=\$ac_header_preproc"
20674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20679 cat >>confdefs.h <<_ACEOF
20680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20681 _ACEOF
20685 done
20688 if test -f /usr/lpp/X11/bin/smt.exp; then
20690 cat >>confdefs.h <<\_ACEOF
20691 #define HAVE_AIX_SMT_EXP 1
20692 _ACEOF
20696 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20697 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20698 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20699 echo "$as_me:$LINENO: result: yes" >&5
20700 echo "${ECHO_T}yes" >&6
20702 cat >>confdefs.h <<\_ACEOF
20703 #define HAVE_DEV_PTMX 1
20704 _ACEOF
20706 else
20707 echo "$as_me:$LINENO: result: no" >&5
20708 echo "${ECHO_T}no" >&6
20711 echo "$as_me:$LINENO: checking for pid_t" >&5
20712 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20713 if test "${ac_cv_type_pid_t+set}" = set; then
20714 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 else
20716 cat >conftest.$ac_ext <<_ACEOF
20717 /* confdefs.h. */
20718 _ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20722 $ac_includes_default
20724 main ()
20726 if ((pid_t *) 0)
20727 return 0;
20728 if (sizeof (pid_t))
20729 return 0;
20731 return 0;
20733 _ACEOF
20734 rm -f conftest.$ac_objext
20735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20736 (eval $ac_compile) 2>conftest.er1
20737 ac_status=$?
20738 grep -v '^ *+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } &&
20743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745 (eval $ac_try) 2>&5
20746 ac_status=$?
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); }; } &&
20749 { ac_try='test -s conftest.$ac_objext'
20750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20752 ac_status=$?
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; }; then
20755 ac_cv_type_pid_t=yes
20756 else
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20760 ac_cv_type_pid_t=no
20762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20764 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20765 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20766 if test $ac_cv_type_pid_t = yes; then
20768 else
20770 cat >>confdefs.h <<_ACEOF
20771 #define pid_t int
20772 _ACEOF
20778 for ac_header in unistd.h vfork.h
20780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20782 echo "$as_me:$LINENO: checking for $ac_header" >&5
20783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20789 else
20790 # Is the header compilable?
20791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20793 cat >conftest.$ac_ext <<_ACEOF
20794 /* confdefs.h. */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20799 $ac_includes_default
20800 #include <$ac_header>
20801 _ACEOF
20802 rm -f conftest.$ac_objext
20803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20804 (eval $ac_compile) 2>conftest.er1
20805 ac_status=$?
20806 grep -v '^ *+' conftest.er1 >conftest.err
20807 rm -f conftest.er1
20808 cat conftest.err >&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); } &&
20811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813 (eval $ac_try) 2>&5
20814 ac_status=$?
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); }; } &&
20817 { ac_try='test -s conftest.$ac_objext'
20818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819 (eval $ac_try) 2>&5
20820 ac_status=$?
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); }; }; then
20823 ac_header_compiler=yes
20824 else
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20828 ac_header_compiler=no
20830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20832 echo "${ECHO_T}$ac_header_compiler" >&6
20834 # Is the header present?
20835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20837 cat >conftest.$ac_ext <<_ACEOF
20838 /* confdefs.h. */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20843 #include <$ac_header>
20844 _ACEOF
20845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20847 ac_status=$?
20848 grep -v '^ *+' conftest.er1 >conftest.err
20849 rm -f conftest.er1
20850 cat conftest.err >&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } >/dev/null; then
20853 if test -s conftest.err; then
20854 ac_cpp_err=$ac_c_preproc_warn_flag
20855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20856 else
20857 ac_cpp_err=
20859 else
20860 ac_cpp_err=yes
20862 if test -z "$ac_cpp_err"; then
20863 ac_header_preproc=yes
20864 else
20865 echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20868 ac_header_preproc=no
20870 rm -f conftest.err conftest.$ac_ext
20871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20872 echo "${ECHO_T}$ac_header_preproc" >&6
20874 # So? What about this header?
20875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20876 yes:no: )
20877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20881 ac_header_preproc=yes
20883 no:yes:* )
20884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20897 cat <<\_ASBOX
20898 ## ------------------------------------------ ##
20899 ## Report this to the AC_PACKAGE_NAME lists. ##
20900 ## ------------------------------------------ ##
20901 _ASBOX
20903 sed "s/^/$as_me: WARNING: /" >&2
20905 esac
20906 echo "$as_me:$LINENO: checking for $ac_header" >&5
20907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
20910 else
20911 eval "$as_ac_Header=\$ac_header_preproc"
20913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20918 cat >>confdefs.h <<_ACEOF
20919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20920 _ACEOF
20924 done
20928 for ac_func in fork vfork
20930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20931 echo "$as_me:$LINENO: checking for $ac_func" >&5
20932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20933 if eval "test \"\${$as_ac_var+set}\" = set"; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936 cat >conftest.$ac_ext <<_ACEOF
20937 /* confdefs.h. */
20938 _ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h. */
20942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20944 #define $ac_func innocuous_$ac_func
20946 /* System header to define __stub macros and hopefully few prototypes,
20947 which can conflict with char $ac_func (); below.
20948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20949 <limits.h> exists even on freestanding compilers. */
20951 #ifdef __STDC__
20952 # include <limits.h>
20953 #else
20954 # include <assert.h>
20955 #endif
20957 #undef $ac_func
20959 /* Override any gcc2 internal prototype to avoid an error. */
20960 #ifdef __cplusplus
20961 extern "C"
20963 #endif
20964 /* We use char because int might match the return type of a gcc2
20965 builtin and then its argument prototype would still apply. */
20966 char $ac_func ();
20967 /* The GNU C library defines this for functions which it implements
20968 to always fail with ENOSYS. Some functions are actually named
20969 something starting with __ and the normal name is an alias. */
20970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20971 choke me
20972 #else
20973 char (*f) () = $ac_func;
20974 #endif
20975 #ifdef __cplusplus
20977 #endif
20980 main ()
20982 return f != $ac_func;
20984 return 0;
20986 _ACEOF
20987 rm -f conftest.$ac_objext conftest$ac_exeext
20988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20989 (eval $ac_link) 2>conftest.er1
20990 ac_status=$?
20991 grep -v '^ *+' conftest.er1 >conftest.err
20992 rm -f conftest.er1
20993 cat conftest.err >&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } &&
20996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20998 (eval $ac_try) 2>&5
20999 ac_status=$?
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); }; } &&
21002 { ac_try='test -s conftest$ac_exeext'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; }; then
21008 eval "$as_ac_var=yes"
21009 else
21010 echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21013 eval "$as_ac_var=no"
21015 rm -f conftest.err conftest.$ac_objext \
21016 conftest$ac_exeext conftest.$ac_ext
21018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21020 if test `eval echo '${'$as_ac_var'}'` = yes; then
21021 cat >>confdefs.h <<_ACEOF
21022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21023 _ACEOF
21026 done
21028 if test "x$ac_cv_func_fork" = xyes; then
21029 echo "$as_me:$LINENO: checking for working fork" >&5
21030 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21031 if test "${ac_cv_func_fork_works+set}" = set; then
21032 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 else
21034 if test "$cross_compiling" = yes; then
21035 ac_cv_func_fork_works=cross
21036 else
21037 cat >conftest.$ac_ext <<_ACEOF
21038 /* By Ruediger Kuhlmann. */
21039 #include <sys/types.h>
21040 #if HAVE_UNISTD_H
21041 # include <unistd.h>
21042 #endif
21043 /* Some systems only have a dummy stub for fork() */
21044 int main ()
21046 if (fork() < 0)
21047 exit (1);
21048 exit (0);
21050 _ACEOF
21051 rm -f conftest$ac_exeext
21052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21053 (eval $ac_link) 2>&5
21054 ac_status=$?
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21058 (eval $ac_try) 2>&5
21059 ac_status=$?
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; }; then
21062 ac_cv_func_fork_works=yes
21063 else
21064 echo "$as_me: program exited with status $ac_status" >&5
21065 echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21068 ( exit $ac_status )
21069 ac_cv_func_fork_works=no
21071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21074 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21075 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21077 else
21078 ac_cv_func_fork_works=$ac_cv_func_fork
21080 if test "x$ac_cv_func_fork_works" = xcross; then
21081 case $host in
21082 *-*-amigaos* | *-*-msdosdjgpp*)
21083 # Override, as these systems have only a dummy fork() stub
21084 ac_cv_func_fork_works=no
21087 ac_cv_func_fork_works=yes
21089 esac
21090 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21091 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21093 ac_cv_func_vfork_works=$ac_cv_func_vfork
21094 if test "x$ac_cv_func_vfork" = xyes; then
21095 echo "$as_me:$LINENO: checking for working vfork" >&5
21096 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21097 if test "${ac_cv_func_vfork_works+set}" = set; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21099 else
21100 if test "$cross_compiling" = yes; then
21101 ac_cv_func_vfork_works=cross
21102 else
21103 cat >conftest.$ac_ext <<_ACEOF
21104 /* confdefs.h. */
21105 _ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h. */
21109 /* Thanks to Paul Eggert for this test. */
21110 #include <stdio.h>
21111 #include <stdlib.h>
21112 #include <sys/types.h>
21113 #include <sys/stat.h>
21114 #include <sys/wait.h>
21115 #if HAVE_UNISTD_H
21116 # include <unistd.h>
21117 #endif
21118 #if HAVE_VFORK_H
21119 # include <vfork.h>
21120 #endif
21121 /* On some sparc systems, changes by the child to local and incoming
21122 argument registers are propagated back to the parent. The compiler
21123 is told about this with #include <vfork.h>, but some compilers
21124 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21125 static variable whose address is put into a register that is
21126 clobbered by the vfork. */
21127 static void
21128 #ifdef __cplusplus
21129 sparc_address_test (int arg)
21130 # else
21131 sparc_address_test (arg) int arg;
21132 #endif
21134 static pid_t child;
21135 if (!child) {
21136 child = vfork ();
21137 if (child < 0) {
21138 perror ("vfork");
21139 _exit(2);
21141 if (!child) {
21142 arg = getpid();
21143 write(-1, "", 0);
21144 _exit (arg);
21150 main ()
21152 pid_t parent = getpid ();
21153 pid_t child;
21155 sparc_address_test (0);
21157 child = vfork ();
21159 if (child == 0) {
21160 /* Here is another test for sparc vfork register problems. This
21161 test uses lots of local variables, at least as many local
21162 variables as main has allocated so far including compiler
21163 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21164 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21165 reuse the register of parent for one of the local variables,
21166 since it will think that parent can't possibly be used any more
21167 in this routine. Assigning to the local variable will thus
21168 munge parent in the parent process. */
21169 pid_t
21170 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21171 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21172 /* Convince the compiler that p..p7 are live; otherwise, it might
21173 use the same hardware register for all 8 local variables. */
21174 if (p != p1 || p != p2 || p != p3 || p != p4
21175 || p != p5 || p != p6 || p != p7)
21176 _exit(1);
21178 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21179 from child file descriptors. If the child closes a descriptor
21180 before it execs or exits, this munges the parent's descriptor
21181 as well. Test for this by closing stdout in the child. */
21182 _exit(close(fileno(stdout)) != 0);
21183 } else {
21184 int status;
21185 struct stat st;
21187 while (wait(&status) != child)
21189 exit(
21190 /* Was there some problem with vforking? */
21191 child < 0
21193 /* Did the child fail? (This shouldn't happen.) */
21194 || status
21196 /* Did the vfork/compiler bug occur? */
21197 || parent != getpid()
21199 /* Did the file descriptor bug occur? */
21200 || fstat(fileno(stdout), &st) != 0
21204 _ACEOF
21205 rm -f conftest$ac_exeext
21206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21207 (eval $ac_link) 2>&5
21208 ac_status=$?
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21212 (eval $ac_try) 2>&5
21213 ac_status=$?
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); }; }; then
21216 ac_cv_func_vfork_works=yes
21217 else
21218 echo "$as_me: program exited with status $ac_status" >&5
21219 echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21222 ( exit $ac_status )
21223 ac_cv_func_vfork_works=no
21225 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21228 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21229 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21232 if test "x$ac_cv_func_fork_works" = xcross; then
21233 ac_cv_func_vfork_works=$ac_cv_func_vfork
21234 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21235 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21238 if test "x$ac_cv_func_vfork_works" = xyes; then
21240 cat >>confdefs.h <<\_ACEOF
21241 #define HAVE_WORKING_VFORK 1
21242 _ACEOF
21244 else
21246 cat >>confdefs.h <<\_ACEOF
21247 #define vfork fork
21248 _ACEOF
21251 if test "x$ac_cv_func_fork_works" = xyes; then
21253 cat >>confdefs.h <<\_ACEOF
21254 #define HAVE_WORKING_FORK 1
21255 _ACEOF
21260 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21261 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21262 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21263 echo $ECHO_N "(cached) $ECHO_C" >&6
21264 else
21265 cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h. */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 #include <langinfo.h>
21273 main ()
21275 char* cs = nl_langinfo(CODESET);
21277 return 0;
21279 _ACEOF
21280 rm -f conftest.$ac_objext conftest$ac_exeext
21281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21282 (eval $ac_link) 2>conftest.er1
21283 ac_status=$?
21284 grep -v '^ *+' conftest.er1 >conftest.err
21285 rm -f conftest.er1
21286 cat conftest.err >&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); } &&
21289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21292 ac_status=$?
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; } &&
21295 { ac_try='test -s conftest$ac_exeext'
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21298 ac_status=$?
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; }; then
21301 emacs_cv_langinfo_codeset=yes
21302 else
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21306 emacs_cv_langinfo_codeset=no
21308 rm -f conftest.err conftest.$ac_objext \
21309 conftest$ac_exeext conftest.$ac_ext
21312 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21313 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21314 if test $emacs_cv_langinfo_codeset = yes; then
21316 cat >>confdefs.h <<\_ACEOF
21317 #define HAVE_LANGINFO_CODESET 1
21318 _ACEOF
21322 echo "$as_me:$LINENO: checking for size_t" >&5
21323 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21324 if test "${ac_cv_type_size_t+set}" = set; then
21325 echo $ECHO_N "(cached) $ECHO_C" >&6
21326 else
21327 cat >conftest.$ac_ext <<_ACEOF
21328 /* confdefs.h. */
21329 _ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21333 $ac_includes_default
21335 main ()
21337 if ((size_t *) 0)
21338 return 0;
21339 if (sizeof (size_t))
21340 return 0;
21342 return 0;
21344 _ACEOF
21345 rm -f conftest.$ac_objext
21346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21347 (eval $ac_compile) 2>conftest.er1
21348 ac_status=$?
21349 grep -v '^ *+' conftest.er1 >conftest.err
21350 rm -f conftest.er1
21351 cat conftest.err >&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } &&
21354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21357 ac_status=$?
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); }; } &&
21360 { ac_try='test -s conftest.$ac_objext'
21361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362 (eval $ac_try) 2>&5
21363 ac_status=$?
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 ac_cv_type_size_t=yes
21367 else
21368 echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21371 ac_cv_type_size_t=no
21373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21375 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21376 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21377 if test $ac_cv_type_size_t = yes; then
21379 cat >>confdefs.h <<_ACEOF
21380 #define HAVE_SIZE_T 1
21381 _ACEOF
21387 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21388 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21389 if test "${ac_cv_type_mbstate_t+set}" = set; then
21390 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 else
21392 cat >conftest.$ac_ext <<_ACEOF
21393 /* confdefs.h. */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21398 $ac_includes_default
21399 # include <wchar.h>
21401 main ()
21403 mbstate_t x; return sizeof x;
21405 return 0;
21407 _ACEOF
21408 rm -f conftest.$ac_objext
21409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21410 (eval $ac_compile) 2>conftest.er1
21411 ac_status=$?
21412 grep -v '^ *+' conftest.er1 >conftest.err
21413 rm -f conftest.er1
21414 cat conftest.err >&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } &&
21417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; } &&
21423 { ac_try='test -s conftest.$ac_objext'
21424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21425 (eval $ac_try) 2>&5
21426 ac_status=$?
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); }; }; then
21429 ac_cv_type_mbstate_t=yes
21430 else
21431 echo "$as_me: failed program was:" >&5
21432 sed 's/^/| /' conftest.$ac_ext >&5
21434 ac_cv_type_mbstate_t=no
21436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21438 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21439 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21440 if test $ac_cv_type_mbstate_t = yes; then
21442 cat >>confdefs.h <<\_ACEOF
21443 #define HAVE_MBSTATE_T 1
21444 _ACEOF
21446 else
21448 cat >>confdefs.h <<\_ACEOF
21449 #define mbstate_t int
21450 _ACEOF
21454 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21455 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21456 if test "${emacs_cv_c_restrict+set}" = set; then
21457 echo $ECHO_N "(cached) $ECHO_C" >&6
21458 else
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h. */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465 void fred (int *restrict x);
21467 main ()
21471 return 0;
21473 _ACEOF
21474 rm -f conftest.$ac_objext
21475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21476 (eval $ac_compile) 2>conftest.er1
21477 ac_status=$?
21478 grep -v '^ *+' conftest.er1 >conftest.err
21479 rm -f conftest.er1
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } &&
21483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21485 (eval $ac_try) 2>&5
21486 ac_status=$?
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); }; } &&
21489 { ac_try='test -s conftest.$ac_objext'
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491 (eval $ac_try) 2>&5
21492 ac_status=$?
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; }; then
21495 emacs_cv_c_restrict=yes
21496 else
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21500 cat >conftest.$ac_ext <<_ACEOF
21501 /* confdefs.h. */
21502 _ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21506 void fred (int *__restrict x);
21508 main ()
21512 return 0;
21514 _ACEOF
21515 rm -f conftest.$ac_objext
21516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21517 (eval $ac_compile) 2>conftest.er1
21518 ac_status=$?
21519 grep -v '^ *+' conftest.er1 >conftest.err
21520 rm -f conftest.er1
21521 cat conftest.err >&5
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); } &&
21524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526 (eval $ac_try) 2>&5
21527 ac_status=$?
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; } &&
21530 { ac_try='test -s conftest.$ac_objext'
21531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532 (eval $ac_try) 2>&5
21533 ac_status=$?
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; }; then
21536 emacs_cv_c_restrict=__restrict
21537 else
21538 echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21541 emacs_cv_c_restrict=no
21543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21547 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21548 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21549 case "$emacs_cv_c_restrict" in
21550 yes) emacs_restrict=restrict;;
21551 no) emacs_restrict="";;
21552 *) emacs_restrict="$emacs_cv_c_restrict";;
21553 esac
21554 if test "$emacs_restrict" != __restrict; then
21556 cat >>confdefs.h <<_ACEOF
21557 #define __restrict $emacs_restrict
21558 _ACEOF
21562 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21563 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21564 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21565 echo $ECHO_N "(cached) $ECHO_C" >&6
21566 else
21567 cat >conftest.$ac_ext <<_ACEOF
21568 /* confdefs.h. */
21569 _ACEOF
21570 cat confdefs.h >>conftest.$ac_ext
21571 cat >>conftest.$ac_ext <<_ACEOF
21572 /* end confdefs.h. */
21573 void fred (int x[__restrict]);
21575 main ()
21579 return 0;
21581 _ACEOF
21582 rm -f conftest.$ac_objext
21583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21584 (eval $ac_compile) 2>conftest.er1
21585 ac_status=$?
21586 grep -v '^ *+' conftest.er1 >conftest.err
21587 rm -f conftest.er1
21588 cat conftest.err >&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } &&
21591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21593 (eval $ac_try) 2>&5
21594 ac_status=$?
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); }; } &&
21597 { ac_try='test -s conftest.$ac_objext'
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21600 ac_status=$?
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; }; then
21603 emacs_cv_c_restrict_arr=yes
21604 else
21605 echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21608 emacs_cv_c_restrict_arr=no
21610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21612 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21613 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21614 if test "$emacs_cv_c_restrict_arr" = yes; then
21616 cat >>confdefs.h <<\_ACEOF
21617 #define __restrict_arr __restrict
21618 _ACEOF
21624 # Set up the CFLAGS for real compilation, so we can substitute it.
21625 CFLAGS="$REAL_CFLAGS"
21626 CPPFLAGS="$REAL_CPPFLAGS"
21628 #### Find out which version of Emacs this is.
21629 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21630 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21631 if test x"${version}" = x; then
21632 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21633 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21634 { (exit 1); exit 1; }; }
21637 ### Specify what sort of things we'll be editing into Makefile and config.h.
21638 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21674 cat >>confdefs.h <<_ACEOF
21675 #define EMACS_CONFIGURATION "${canonical}"
21676 _ACEOF
21679 cat >>confdefs.h <<_ACEOF
21680 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21681 _ACEOF
21684 cat >>confdefs.h <<_ACEOF
21685 #define config_machfile "${machfile}"
21686 _ACEOF
21689 cat >>confdefs.h <<_ACEOF
21690 #define config_opsysfile "${opsysfile}"
21691 _ACEOF
21694 cat >>confdefs.h <<_ACEOF
21695 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21696 _ACEOF
21699 cat >>confdefs.h <<_ACEOF
21700 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21701 _ACEOF
21704 cat >>confdefs.h <<_ACEOF
21705 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21706 _ACEOF
21709 cat >>confdefs.h <<_ACEOF
21710 #define UNEXEC_SRC ${UNEXEC_SRC}
21711 _ACEOF
21714 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21716 cat >>confdefs.h <<\_ACEOF
21717 #define HAVE_X_WINDOWS 1
21718 _ACEOF
21721 if test "${USE_X_TOOLKIT}" != "none" ; then
21723 cat >>confdefs.h <<\_ACEOF
21724 #define USE_X_TOOLKIT 1
21725 _ACEOF
21728 if test "${HAVE_X11}" = "yes" ; then
21730 cat >>confdefs.h <<\_ACEOF
21731 #define HAVE_X11 1
21732 _ACEOF
21735 if test "${HAVE_XFREE386}" = "yes" ; then
21737 cat >>confdefs.h <<\_ACEOF
21738 #define HAVE_XFREE386 1
21739 _ACEOF
21742 if test "${HAVE_MENUS}" = "yes" ; then
21744 cat >>confdefs.h <<\_ACEOF
21745 #define HAVE_MENUS 1
21746 _ACEOF
21749 if test "${GNU_MALLOC}" = "yes" ; then
21751 cat >>confdefs.h <<\_ACEOF
21752 #define GNU_MALLOC 1
21753 _ACEOF
21756 if test "${REL_ALLOC}" = "yes" ; then
21758 cat >>confdefs.h <<\_ACEOF
21759 #define REL_ALLOC 1
21760 _ACEOF
21768 #### Report on what we decided to do.
21769 #### Report GTK as a toolkit, even if it doesn't use Xt.
21770 #### It makes printing result more understandable as using GTK sets
21771 #### toolkit_scroll_bars to yes by default.
21772 if test "${HAVE_GTK}" = "yes"; then
21773 USE_X_TOOLKIT=GTK
21776 echo "
21777 Configured for \`${canonical}'.
21779 Where should the build process find the source code? ${srcdir}
21780 What operating system and machine description files should Emacs use?
21781 \`${opsysfile}' and \`${machfile}'
21782 What compiler should emacs be built with? ${CC} ${CFLAGS}
21783 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21784 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21785 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21786 What window system should Emacs use? ${window_system}
21787 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21789 if test -n "${x_includes}"; then
21790 echo " Where do we find X Windows header files? ${x_includes}"
21791 else
21792 echo " Where do we find X Windows header files? Standard dirs"
21794 if test -n "${x_libraries}"; then
21795 echo " Where do we find X Windows libraries? ${x_libraries}"
21796 else
21797 echo " Where do we find X Windows libraries? Standard dirs"
21800 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21801 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21802 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21803 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21804 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21805 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21806 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21807 echo
21809 if test "$emacs_cv_randomheap" = warn; then
21810 { echo "$as_me:$LINENO: WARNING:
21811 **********************************************************************
21813 Heap start address is randomized and no workaround is known.
21814 Emacs will probably dump core when temacs is run in the build phase.
21815 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21816 for further information.
21818 **********************************************************************
21819 " >&5
21820 echo "$as_me: WARNING:
21821 **********************************************************************
21823 Heap start address is randomized and no workaround is known.
21824 Emacs will probably dump core when temacs is run in the build phase.
21825 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21826 for further information.
21828 **********************************************************************
21829 " >&2;}
21832 # Remove any trailing slashes in these variables.
21833 test "${prefix}" != NONE &&
21834 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21835 test "${exec_prefix}" != NONE &&
21836 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21838 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21839 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21840 ## from Makefile.c can correctly provide the arg `-traditional' to the
21841 ## C preprocessor.
21843 cat >conftest.$ac_ext <<_ACEOF
21844 /* confdefs.h. */
21845 _ACEOF
21846 cat confdefs.h >>conftest.$ac_ext
21847 cat >>conftest.$ac_ext <<_ACEOF
21848 /* end confdefs.h. */
21849 yes..yes
21850 _ACEOF
21851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21852 $EGREP "yes..yes" >/dev/null 2>&1; then
21853 CPP_NEED_TRADITIONAL=no
21854 else
21855 CPP_NEED_TRADITIONAL=yes
21857 rm -f conftest*
21860 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"
21861 ac_config_commands="$ac_config_commands default"
21862 cat >confcache <<\_ACEOF
21863 # This file is a shell script that caches the results of configure
21864 # tests run on this system so they can be shared between configure
21865 # scripts and configure runs, see configure's option --config-cache.
21866 # It is not useful on other systems. If it contains results you don't
21867 # want to keep, you may remove or edit it.
21869 # config.status only pays attention to the cache file if you give it
21870 # the --recheck option to rerun configure.
21872 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21873 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21874 # following values.
21876 _ACEOF
21878 # The following way of writing the cache mishandles newlines in values,
21879 # but we know of no workaround that is simple, portable, and efficient.
21880 # So, don't put newlines in cache variables' values.
21881 # Ultrix sh set writes to stderr and can't be redirected directly,
21882 # and sets the high bit in the cache file unless we assign to the vars.
21884 (set) 2>&1 |
21885 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21886 *ac_space=\ *)
21887 # `set' does not quote correctly, so add quotes (double-quote
21888 # substitution turns \\\\ into \\, and sed turns \\ into \).
21889 sed -n \
21890 "s/'/'\\\\''/g;
21891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21894 # `set' quotes correctly as required by POSIX, so do not add quotes.
21895 sed -n \
21896 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21898 esac;
21900 sed '
21901 t clear
21902 : clear
21903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21904 t end
21905 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21906 : end' >>confcache
21907 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21908 if test -w $cache_file; then
21909 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21910 cat confcache >$cache_file
21911 else
21912 echo "not updating unwritable cache $cache_file"
21915 rm -f confcache
21917 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21918 # Let make expand exec_prefix.
21919 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21921 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21922 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21923 # trailing colons and then remove the whole line if VPATH becomes empty
21924 # (actually we leave an empty line to preserve line numbers).
21925 if test "x$srcdir" = x.; then
21926 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21927 s/:*\$(srcdir):*/:/;
21928 s/:*\${srcdir}:*/:/;
21929 s/:*@srcdir@:*/:/;
21930 s/^\([^=]*=[ ]*\):*/\1/;
21931 s/:*$//;
21932 s/^[^=]*=[ ]*$//;
21936 DEFS=-DHAVE_CONFIG_H
21938 ac_libobjs=
21939 ac_ltlibobjs=
21940 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21941 # 1. Remove the extension, and $U if already installed.
21942 ac_i=`echo "$ac_i" |
21943 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21944 # 2. Add them.
21945 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21946 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21947 done
21948 LIBOBJS=$ac_libobjs
21950 LTLIBOBJS=$ac_ltlibobjs
21954 : ${CONFIG_STATUS=./config.status}
21955 ac_clean_files_save=$ac_clean_files
21956 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21957 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21958 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21959 cat >$CONFIG_STATUS <<_ACEOF
21960 #! $SHELL
21961 # Generated by $as_me.
21962 # Run this file to recreate the current configuration.
21963 # Compiler output produced by configure, useful for debugging
21964 # configure, is in config.log if it exists.
21966 debug=false
21967 ac_cs_recheck=false
21968 ac_cs_silent=false
21969 SHELL=\${CONFIG_SHELL-$SHELL}
21970 _ACEOF
21972 cat >>$CONFIG_STATUS <<\_ACEOF
21973 ## --------------------- ##
21974 ## M4sh Initialization. ##
21975 ## --------------------- ##
21977 # Be Bourne compatible
21978 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21979 emulate sh
21980 NULLCMD=:
21981 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21982 # is contrary to our usage. Disable this feature.
21983 alias -g '${1+"$@"}'='"$@"'
21984 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21985 set -o posix
21987 DUALCASE=1; export DUALCASE # for MKS sh
21989 # Support unset when possible.
21990 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21991 as_unset=unset
21992 else
21993 as_unset=false
21997 # Work around bugs in pre-3.0 UWIN ksh.
21998 $as_unset ENV MAIL MAILPATH
21999 PS1='$ '
22000 PS2='> '
22001 PS4='+ '
22003 # NLS nuisances.
22004 for as_var in \
22005 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22006 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22007 LC_TELEPHONE LC_TIME
22009 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22010 eval $as_var=C; export $as_var
22011 else
22012 $as_unset $as_var
22014 done
22016 # Required to use basename.
22017 if expr a : '\(a\)' >/dev/null 2>&1; then
22018 as_expr=expr
22019 else
22020 as_expr=false
22023 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22024 as_basename=basename
22025 else
22026 as_basename=false
22030 # Name of the executable.
22031 as_me=`$as_basename "$0" ||
22032 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22033 X"$0" : 'X\(//\)$' \| \
22034 X"$0" : 'X\(/\)$' \| \
22035 . : '\(.\)' 2>/dev/null ||
22036 echo X/"$0" |
22037 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22038 /^X\/\(\/\/\)$/{ s//\1/; q; }
22039 /^X\/\(\/\).*/{ s//\1/; q; }
22040 s/.*/./; q'`
22043 # PATH needs CR, and LINENO needs CR and PATH.
22044 # Avoid depending upon Character Ranges.
22045 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22046 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22047 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22048 as_cr_digits='0123456789'
22049 as_cr_alnum=$as_cr_Letters$as_cr_digits
22051 # The user is always right.
22052 if test "${PATH_SEPARATOR+set}" != set; then
22053 echo "#! /bin/sh" >conf$$.sh
22054 echo "exit 0" >>conf$$.sh
22055 chmod +x conf$$.sh
22056 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22057 PATH_SEPARATOR=';'
22058 else
22059 PATH_SEPARATOR=:
22061 rm -f conf$$.sh
22065 as_lineno_1=$LINENO
22066 as_lineno_2=$LINENO
22067 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22068 test "x$as_lineno_1" != "x$as_lineno_2" &&
22069 test "x$as_lineno_3" = "x$as_lineno_2" || {
22070 # Find who we are. Look in the path if we contain no path at all
22071 # relative or not.
22072 case $0 in
22073 *[\\/]* ) as_myself=$0 ;;
22074 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22075 for as_dir in $PATH
22077 IFS=$as_save_IFS
22078 test -z "$as_dir" && as_dir=.
22079 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22080 done
22083 esac
22084 # We did not find ourselves, most probably we were run as `sh COMMAND'
22085 # in which case we are not to be found in the path.
22086 if test "x$as_myself" = x; then
22087 as_myself=$0
22089 if test ! -f "$as_myself"; then
22090 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22091 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22092 { (exit 1); exit 1; }; }
22094 case $CONFIG_SHELL in
22096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22097 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22099 IFS=$as_save_IFS
22100 test -z "$as_dir" && as_dir=.
22101 for as_base in sh bash ksh sh5; do
22102 case $as_dir in
22104 if ("$as_dir/$as_base" -c '
22105 as_lineno_1=$LINENO
22106 as_lineno_2=$LINENO
22107 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22108 test "x$as_lineno_1" != "x$as_lineno_2" &&
22109 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22110 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22111 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22112 CONFIG_SHELL=$as_dir/$as_base
22113 export CONFIG_SHELL
22114 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22115 fi;;
22116 esac
22117 done
22118 done
22120 esac
22122 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22123 # uniformly replaced by the line number. The first 'sed' inserts a
22124 # line-number line before each line; the second 'sed' does the real
22125 # work. The second script uses 'N' to pair each line-number line
22126 # with the numbered line, and appends trailing '-' during
22127 # substitution so that $LINENO is not a special case at line end.
22128 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22129 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22130 sed '=' <$as_myself |
22131 sed '
22133 s,$,-,
22134 : loop
22135 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22136 t loop
22137 s,-$,,
22138 s,^['$as_cr_digits']*\n,,
22139 ' >$as_me.lineno &&
22140 chmod +x $as_me.lineno ||
22141 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22142 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22143 { (exit 1); exit 1; }; }
22145 # Don't try to exec as it changes $[0], causing all sort of problems
22146 # (the dirname of $[0] is not the place where we might find the
22147 # original and so on. Autoconf is especially sensible to this).
22148 . ./$as_me.lineno
22149 # Exit status is that of the last command.
22150 exit
22154 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22155 *c*,-n*) ECHO_N= ECHO_C='
22156 ' ECHO_T=' ' ;;
22157 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22158 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22159 esac
22161 if expr a : '\(a\)' >/dev/null 2>&1; then
22162 as_expr=expr
22163 else
22164 as_expr=false
22167 rm -f conf$$ conf$$.exe conf$$.file
22168 echo >conf$$.file
22169 if ln -s conf$$.file conf$$ 2>/dev/null; then
22170 # We could just check for DJGPP; but this test a) works b) is more generic
22171 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22172 if test -f conf$$.exe; then
22173 # Don't use ln at all; we don't have any links
22174 as_ln_s='cp -p'
22175 else
22176 as_ln_s='ln -s'
22178 elif ln conf$$.file conf$$ 2>/dev/null; then
22179 as_ln_s=ln
22180 else
22181 as_ln_s='cp -p'
22183 rm -f conf$$ conf$$.exe conf$$.file
22185 if mkdir -p . 2>/dev/null; then
22186 as_mkdir_p=:
22187 else
22188 test -d ./-p && rmdir ./-p
22189 as_mkdir_p=false
22192 as_executable_p="test -f"
22194 # Sed expression to map a string onto a valid CPP name.
22195 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22197 # Sed expression to map a string onto a valid variable name.
22198 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22201 # IFS
22202 # We need space, tab and new line, in precisely that order.
22203 as_nl='
22205 IFS=" $as_nl"
22207 # CDPATH.
22208 $as_unset CDPATH
22210 exec 6>&1
22212 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22213 # report actual input values of CONFIG_FILES etc. instead of their
22214 # values after options handling. Logging --version etc. is OK.
22215 exec 5>>config.log
22217 echo
22218 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22219 ## Running $as_me. ##
22220 _ASBOX
22221 } >&5
22222 cat >&5 <<_CSEOF
22224 This file was extended by $as_me, which was
22225 generated by GNU Autoconf 2.59. Invocation command line was
22227 CONFIG_FILES = $CONFIG_FILES
22228 CONFIG_HEADERS = $CONFIG_HEADERS
22229 CONFIG_LINKS = $CONFIG_LINKS
22230 CONFIG_COMMANDS = $CONFIG_COMMANDS
22231 $ $0 $@
22233 _CSEOF
22234 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22235 echo >&5
22236 _ACEOF
22238 # Files that config.status was made for.
22239 if test -n "$ac_config_files"; then
22240 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22243 if test -n "$ac_config_headers"; then
22244 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22247 if test -n "$ac_config_links"; then
22248 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22251 if test -n "$ac_config_commands"; then
22252 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22255 cat >>$CONFIG_STATUS <<\_ACEOF
22257 ac_cs_usage="\
22258 \`$as_me' instantiates files from templates according to the
22259 current configuration.
22261 Usage: $0 [OPTIONS] [FILE]...
22263 -h, --help print this help, then exit
22264 -V, --version print version number, then exit
22265 -q, --quiet do not print progress messages
22266 -d, --debug don't remove temporary files
22267 --recheck update $as_me by reconfiguring in the same conditions
22268 --file=FILE[:TEMPLATE]
22269 instantiate the configuration file FILE
22270 --header=FILE[:TEMPLATE]
22271 instantiate the configuration header FILE
22273 Configuration files:
22274 $config_files
22276 Configuration headers:
22277 $config_headers
22279 Configuration commands:
22280 $config_commands
22282 Report bugs to <bug-autoconf@gnu.org>."
22283 _ACEOF
22285 cat >>$CONFIG_STATUS <<_ACEOF
22286 ac_cs_version="\\
22287 config.status
22288 configured by $0, generated by GNU Autoconf 2.59,
22289 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22291 Copyright (C) 2003 Free Software Foundation, Inc.
22292 This config.status script is free software; the Free Software Foundation
22293 gives unlimited permission to copy, distribute and modify it."
22294 srcdir=$srcdir
22295 INSTALL="$INSTALL"
22296 _ACEOF
22298 cat >>$CONFIG_STATUS <<\_ACEOF
22299 # If no file are specified by the user, then we need to provide default
22300 # value. By we need to know if files were specified by the user.
22301 ac_need_defaults=:
22302 while test $# != 0
22304 case $1 in
22305 --*=*)
22306 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22307 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22308 ac_shift=:
22311 ac_option=$1
22312 ac_optarg=$2
22313 ac_shift=shift
22315 *) # This is not an option, so the user has probably given explicit
22316 # arguments.
22317 ac_option=$1
22318 ac_need_defaults=false;;
22319 esac
22321 case $ac_option in
22322 # Handling of the options.
22323 _ACEOF
22324 cat >>$CONFIG_STATUS <<\_ACEOF
22325 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22326 ac_cs_recheck=: ;;
22327 --version | --vers* | -V )
22328 echo "$ac_cs_version"; exit 0 ;;
22329 --he | --h)
22330 # Conflict between --help and --header
22331 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22332 Try \`$0 --help' for more information." >&5
22333 echo "$as_me: error: ambiguous option: $1
22334 Try \`$0 --help' for more information." >&2;}
22335 { (exit 1); exit 1; }; };;
22336 --help | --hel | -h )
22337 echo "$ac_cs_usage"; exit 0 ;;
22338 --debug | --d* | -d )
22339 debug=: ;;
22340 --file | --fil | --fi | --f )
22341 $ac_shift
22342 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22343 ac_need_defaults=false;;
22344 --header | --heade | --head | --hea )
22345 $ac_shift
22346 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22347 ac_need_defaults=false;;
22348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22349 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22350 ac_cs_silent=: ;;
22352 # This is an error.
22353 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22354 Try \`$0 --help' for more information." >&5
22355 echo "$as_me: error: unrecognized option: $1
22356 Try \`$0 --help' for more information." >&2;}
22357 { (exit 1); exit 1; }; } ;;
22359 *) ac_config_targets="$ac_config_targets $1" ;;
22361 esac
22362 shift
22363 done
22365 ac_configure_extra_args=
22367 if $ac_cs_silent; then
22368 exec 6>/dev/null
22369 ac_configure_extra_args="$ac_configure_extra_args --silent"
22372 _ACEOF
22373 cat >>$CONFIG_STATUS <<_ACEOF
22374 if \$ac_cs_recheck; then
22375 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22376 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22379 _ACEOF
22381 cat >>$CONFIG_STATUS <<_ACEOF
22383 # INIT-COMMANDS section.
22386 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22388 _ACEOF
22392 cat >>$CONFIG_STATUS <<\_ACEOF
22393 for ac_config_target in $ac_config_targets
22395 case "$ac_config_target" in
22396 # Handling of arguments.
22397 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22398 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22399 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22400 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22401 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22402 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22403 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22404 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
22405 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
22406 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22407 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22408 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22409 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22410 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22411 { (exit 1); exit 1; }; };;
22412 esac
22413 done
22415 # If the user did not use the arguments to specify the items to instantiate,
22416 # then the envvar interface is used. Set only those that are not.
22417 # We use the long form for the default assignment because of an extremely
22418 # bizarre bug on SunOS 4.1.3.
22419 if $ac_need_defaults; then
22420 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22421 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22422 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22425 # Have a temporary directory for convenience. Make it in the build tree
22426 # simply because there is no reason to put it here, and in addition,
22427 # creating and moving files from /tmp can sometimes cause problems.
22428 # Create a temporary directory, and hook for its removal unless debugging.
22429 $debug ||
22431 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22432 trap '{ (exit 1); exit 1; }' 1 2 13 15
22435 # Create a (secure) tmp directory for tmp files.
22438 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22439 test -n "$tmp" && test -d "$tmp"
22440 } ||
22442 tmp=./confstat$$-$RANDOM
22443 (umask 077 && mkdir $tmp)
22444 } ||
22446 echo "$me: cannot create a temporary directory in ." >&2
22447 { (exit 1); exit 1; }
22450 _ACEOF
22452 cat >>$CONFIG_STATUS <<_ACEOF
22455 # CONFIG_FILES section.
22458 # No need to generate the scripts if there are no CONFIG_FILES.
22459 # This happens for instance when ./config.status config.h
22460 if test -n "\$CONFIG_FILES"; then
22461 # Protect against being on the right side of a sed subst in config.status.
22462 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22463 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22464 s,@SHELL@,$SHELL,;t t
22465 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22466 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22467 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22468 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22469 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22470 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22471 s,@exec_prefix@,$exec_prefix,;t t
22472 s,@prefix@,$prefix,;t t
22473 s,@program_transform_name@,$program_transform_name,;t t
22474 s,@bindir@,$bindir,;t t
22475 s,@sbindir@,$sbindir,;t t
22476 s,@libexecdir@,$libexecdir,;t t
22477 s,@datadir@,$datadir,;t t
22478 s,@sysconfdir@,$sysconfdir,;t t
22479 s,@sharedstatedir@,$sharedstatedir,;t t
22480 s,@localstatedir@,$localstatedir,;t t
22481 s,@libdir@,$libdir,;t t
22482 s,@includedir@,$includedir,;t t
22483 s,@oldincludedir@,$oldincludedir,;t t
22484 s,@infodir@,$infodir,;t t
22485 s,@mandir@,$mandir,;t t
22486 s,@build_alias@,$build_alias,;t t
22487 s,@host_alias@,$host_alias,;t t
22488 s,@target_alias@,$target_alias,;t t
22489 s,@DEFS@,$DEFS,;t t
22490 s,@ECHO_C@,$ECHO_C,;t t
22491 s,@ECHO_N@,$ECHO_N,;t t
22492 s,@ECHO_T@,$ECHO_T,;t t
22493 s,@LIBS@,$LIBS,;t t
22494 s,@MAINT@,$MAINT,;t t
22495 s,@build@,$build,;t t
22496 s,@build_cpu@,$build_cpu,;t t
22497 s,@build_vendor@,$build_vendor,;t t
22498 s,@build_os@,$build_os,;t t
22499 s,@host@,$host,;t t
22500 s,@host_cpu@,$host_cpu,;t t
22501 s,@host_vendor@,$host_vendor,;t t
22502 s,@host_os@,$host_os,;t t
22503 s,@CC@,$CC,;t t
22504 s,@CFLAGS@,$CFLAGS,;t t
22505 s,@LDFLAGS@,$LDFLAGS,;t t
22506 s,@CPPFLAGS@,$CPPFLAGS,;t t
22507 s,@ac_ct_CC@,$ac_ct_CC,;t t
22508 s,@EXEEXT@,$EXEEXT,;t t
22509 s,@OBJEXT@,$OBJEXT,;t t
22510 s,@LN_S@,$LN_S,;t t
22511 s,@CPP@,$CPP,;t t
22512 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22513 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22514 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22515 s,@RANLIB@,$RANLIB,;t t
22516 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22517 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22518 s,@EGREP@,$EGREP,;t t
22519 s,@LIBSOUND@,$LIBSOUND,;t t
22520 s,@SET_MAKE@,$SET_MAKE,;t t
22521 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22522 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22523 s,@GTK_LIBS@,$GTK_LIBS,;t t
22524 s,@ALLOCA@,$ALLOCA,;t t
22525 s,@liblockfile@,$liblockfile,;t t
22526 s,@LIBOBJS@,$LIBOBJS,;t t
22527 s,@NEED_SETGID@,$NEED_SETGID,;t t
22528 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22529 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22530 s,@version@,$version,;t t
22531 s,@configuration@,$configuration,;t t
22532 s,@canonical@,$canonical,;t t
22533 s,@srcdir@,$srcdir,;t t
22534 s,@lispdir@,$lispdir,;t t
22535 s,@locallisppath@,$locallisppath,;t t
22536 s,@lisppath@,$lisppath,;t t
22537 s,@x_default_search_path@,$x_default_search_path,;t t
22538 s,@etcdir@,$etcdir,;t t
22539 s,@archlibdir@,$archlibdir,;t t
22540 s,@docdir@,$docdir,;t t
22541 s,@bitmapdir@,$bitmapdir,;t t
22542 s,@gamedir@,$gamedir,;t t
22543 s,@gameuser@,$gameuser,;t t
22544 s,@c_switch_system@,$c_switch_system,;t t
22545 s,@c_switch_machine@,$c_switch_machine,;t t
22546 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22547 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22548 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22549 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22550 s,@machfile@,$machfile,;t t
22551 s,@opsysfile@,$opsysfile,;t t
22552 s,@carbon_appdir@,$carbon_appdir,;t t
22553 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22554 CEOF
22556 _ACEOF
22558 cat >>$CONFIG_STATUS <<\_ACEOF
22559 # Split the substitutions into bite-sized pieces for seds with
22560 # small command number limits, like on Digital OSF/1 and HP-UX.
22561 ac_max_sed_lines=48
22562 ac_sed_frag=1 # Number of current file.
22563 ac_beg=1 # First line for current file.
22564 ac_end=$ac_max_sed_lines # Line after last line for current file.
22565 ac_more_lines=:
22566 ac_sed_cmds=
22567 while $ac_more_lines; do
22568 if test $ac_beg -gt 1; then
22569 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22570 else
22571 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22573 if test ! -s $tmp/subs.frag; then
22574 ac_more_lines=false
22575 else
22576 # The purpose of the label and of the branching condition is to
22577 # speed up the sed processing (if there are no `@' at all, there
22578 # is no need to browse any of the substitutions).
22579 # These are the two extra sed commands mentioned above.
22580 (echo ':t
22581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22582 if test -z "$ac_sed_cmds"; then
22583 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22584 else
22585 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22587 ac_sed_frag=`expr $ac_sed_frag + 1`
22588 ac_beg=$ac_end
22589 ac_end=`expr $ac_end + $ac_max_sed_lines`
22591 done
22592 if test -z "$ac_sed_cmds"; then
22593 ac_sed_cmds=cat
22595 fi # test -n "$CONFIG_FILES"
22597 _ACEOF
22598 cat >>$CONFIG_STATUS <<\_ACEOF
22599 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22600 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22601 case $ac_file in
22602 - | *:- | *:-:* ) # input from stdin
22603 cat >$tmp/stdin
22604 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22605 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22606 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22607 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22608 * ) ac_file_in=$ac_file.in ;;
22609 esac
22611 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22612 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22613 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22614 X"$ac_file" : 'X\(//\)[^/]' \| \
22615 X"$ac_file" : 'X\(//\)$' \| \
22616 X"$ac_file" : 'X\(/\)' \| \
22617 . : '\(.\)' 2>/dev/null ||
22618 echo X"$ac_file" |
22619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22621 /^X\(\/\/\)$/{ s//\1/; q; }
22622 /^X\(\/\).*/{ s//\1/; q; }
22623 s/.*/./; q'`
22624 { if $as_mkdir_p; then
22625 mkdir -p "$ac_dir"
22626 else
22627 as_dir="$ac_dir"
22628 as_dirs=
22629 while test ! -d "$as_dir"; do
22630 as_dirs="$as_dir $as_dirs"
22631 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22633 X"$as_dir" : 'X\(//\)[^/]' \| \
22634 X"$as_dir" : 'X\(//\)$' \| \
22635 X"$as_dir" : 'X\(/\)' \| \
22636 . : '\(.\)' 2>/dev/null ||
22637 echo X"$as_dir" |
22638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22639 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22640 /^X\(\/\/\)$/{ s//\1/; q; }
22641 /^X\(\/\).*/{ s//\1/; q; }
22642 s/.*/./; q'`
22643 done
22644 test ! -n "$as_dirs" || mkdir $as_dirs
22645 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22646 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22647 { (exit 1); exit 1; }; }; }
22649 ac_builddir=.
22651 if test "$ac_dir" != .; then
22652 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22653 # A "../" for each directory in $ac_dir_suffix.
22654 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22655 else
22656 ac_dir_suffix= ac_top_builddir=
22659 case $srcdir in
22660 .) # No --srcdir option. We are building in place.
22661 ac_srcdir=.
22662 if test -z "$ac_top_builddir"; then
22663 ac_top_srcdir=.
22664 else
22665 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22666 fi ;;
22667 [\\/]* | ?:[\\/]* ) # Absolute path.
22668 ac_srcdir=$srcdir$ac_dir_suffix;
22669 ac_top_srcdir=$srcdir ;;
22670 *) # Relative path.
22671 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22672 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22673 esac
22675 # Do not use `cd foo && pwd` to compute absolute paths, because
22676 # the directories may not exist.
22677 case `pwd` in
22678 .) ac_abs_builddir="$ac_dir";;
22680 case "$ac_dir" in
22681 .) ac_abs_builddir=`pwd`;;
22682 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22683 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22684 esac;;
22685 esac
22686 case $ac_abs_builddir in
22687 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22689 case ${ac_top_builddir}. in
22690 .) ac_abs_top_builddir=$ac_abs_builddir;;
22691 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22692 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22693 esac;;
22694 esac
22695 case $ac_abs_builddir in
22696 .) ac_abs_srcdir=$ac_srcdir;;
22698 case $ac_srcdir in
22699 .) ac_abs_srcdir=$ac_abs_builddir;;
22700 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22701 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22702 esac;;
22703 esac
22704 case $ac_abs_builddir in
22705 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22707 case $ac_top_srcdir in
22708 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22709 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22710 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22711 esac;;
22712 esac
22715 case $INSTALL in
22716 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22717 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22718 esac
22720 # Let's still pretend it is `configure' which instantiates (i.e., don't
22721 # use $as_me), people would be surprised to read:
22722 # /* config.h. Generated by config.status. */
22723 if test x"$ac_file" = x-; then
22724 configure_input=
22725 else
22726 configure_input="$ac_file. "
22728 configure_input=$configure_input"Generated from `echo $ac_file_in |
22729 sed 's,.*/,,'` by configure."
22731 # First look for the input files in the build tree, otherwise in the
22732 # src tree.
22733 ac_file_inputs=`IFS=:
22734 for f in $ac_file_in; do
22735 case $f in
22736 -) echo $tmp/stdin ;;
22737 [\\/$]*)
22738 # Absolute (can't be DOS-style, as IFS=:)
22739 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22740 echo "$as_me: error: cannot find input file: $f" >&2;}
22741 { (exit 1); exit 1; }; }
22742 echo "$f";;
22743 *) # Relative
22744 if test -f "$f"; then
22745 # Build tree
22746 echo "$f"
22747 elif test -f "$srcdir/$f"; then
22748 # Source tree
22749 echo "$srcdir/$f"
22750 else
22751 # /dev/null tree
22752 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22753 echo "$as_me: error: cannot find input file: $f" >&2;}
22754 { (exit 1); exit 1; }; }
22755 fi;;
22756 esac
22757 done` || { (exit 1); exit 1; }
22759 if test x"$ac_file" != x-; then
22760 { echo "$as_me:$LINENO: creating $ac_file" >&5
22761 echo "$as_me: creating $ac_file" >&6;}
22762 rm -f "$ac_file"
22764 _ACEOF
22765 cat >>$CONFIG_STATUS <<_ACEOF
22766 sed "$ac_vpsub
22767 $extrasub
22768 _ACEOF
22769 cat >>$CONFIG_STATUS <<\_ACEOF
22771 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22772 s,@configure_input@,$configure_input,;t t
22773 s,@srcdir@,$ac_srcdir,;t t
22774 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22775 s,@top_srcdir@,$ac_top_srcdir,;t t
22776 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22777 s,@builddir@,$ac_builddir,;t t
22778 s,@abs_builddir@,$ac_abs_builddir,;t t
22779 s,@top_builddir@,$ac_top_builddir,;t t
22780 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22781 s,@INSTALL@,$ac_INSTALL,;t t
22782 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22783 rm -f $tmp/stdin
22784 if test x"$ac_file" != x-; then
22785 mv $tmp/out $ac_file
22786 else
22787 cat $tmp/out
22788 rm -f $tmp/out
22791 done
22792 _ACEOF
22793 cat >>$CONFIG_STATUS <<\_ACEOF
22796 # CONFIG_HEADER section.
22799 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22800 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22802 # ac_d sets the value in "#define NAME VALUE" lines.
22803 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22804 ac_dB='[ ].*$,\1#\2'
22805 ac_dC=' '
22806 ac_dD=',;t'
22807 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22808 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22809 ac_uB='$,\1#\2define\3'
22810 ac_uC=' '
22811 ac_uD=',;t'
22813 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22814 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22815 case $ac_file in
22816 - | *:- | *:-:* ) # input from stdin
22817 cat >$tmp/stdin
22818 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22819 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22820 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22821 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22822 * ) ac_file_in=$ac_file.in ;;
22823 esac
22825 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22826 echo "$as_me: creating $ac_file" >&6;}
22828 # First look for the input files in the build tree, otherwise in the
22829 # src tree.
22830 ac_file_inputs=`IFS=:
22831 for f in $ac_file_in; do
22832 case $f in
22833 -) echo $tmp/stdin ;;
22834 [\\/$]*)
22835 # Absolute (can't be DOS-style, as IFS=:)
22836 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22837 echo "$as_me: error: cannot find input file: $f" >&2;}
22838 { (exit 1); exit 1; }; }
22839 # Do quote $f, to prevent DOS paths from being IFS'd.
22840 echo "$f";;
22841 *) # Relative
22842 if test -f "$f"; then
22843 # Build tree
22844 echo "$f"
22845 elif test -f "$srcdir/$f"; then
22846 # Source tree
22847 echo "$srcdir/$f"
22848 else
22849 # /dev/null tree
22850 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22851 echo "$as_me: error: cannot find input file: $f" >&2;}
22852 { (exit 1); exit 1; }; }
22853 fi;;
22854 esac
22855 done` || { (exit 1); exit 1; }
22856 # Remove the trailing spaces.
22857 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22859 _ACEOF
22861 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22862 # `conftest.undefs', that substitutes the proper values into
22863 # config.h.in to produce config.h. The first handles `#define'
22864 # templates, and the second `#undef' templates.
22865 # And first: Protect against being on the right side of a sed subst in
22866 # config.status. Protect against being in an unquoted here document
22867 # in config.status.
22868 rm -f conftest.defines conftest.undefs
22869 # Using a here document instead of a string reduces the quoting nightmare.
22870 # Putting comments in sed scripts is not portable.
22872 # `end' is used to avoid that the second main sed command (meant for
22873 # 0-ary CPP macros) applies to n-ary macro definitions.
22874 # See the Autoconf documentation for `clear'.
22875 cat >confdef2sed.sed <<\_ACEOF
22876 s/[\\&,]/\\&/g
22877 s,[\\$`],\\&,g
22878 t clear
22879 : clear
22880 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22881 t end
22882 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22883 : end
22884 _ACEOF
22885 # If some macros were called several times there might be several times
22886 # the same #defines, which is useless. Nevertheless, we may not want to
22887 # sort them, since we want the *last* AC-DEFINE to be honored.
22888 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22889 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22890 rm -f confdef2sed.sed
22892 # This sed command replaces #undef with comments. This is necessary, for
22893 # example, in the case of _POSIX_SOURCE, which is predefined and required
22894 # on some systems where configure will not decide to define it.
22895 cat >>conftest.undefs <<\_ACEOF
22896 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22897 _ACEOF
22899 # Break up conftest.defines because some shells have a limit on the size
22900 # of here documents, and old seds have small limits too (100 cmds).
22901 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22902 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22903 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22904 echo ' :' >>$CONFIG_STATUS
22905 rm -f conftest.tail
22906 while grep . conftest.defines >/dev/null
22908 # Write a limited-size here document to $tmp/defines.sed.
22909 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22910 # Speed up: don't consider the non `#define' lines.
22911 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22912 # Work around the forget-to-reset-the-flag bug.
22913 echo 't clr' >>$CONFIG_STATUS
22914 echo ': clr' >>$CONFIG_STATUS
22915 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22916 echo 'CEOF
22917 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22918 rm -f $tmp/in
22919 mv $tmp/out $tmp/in
22920 ' >>$CONFIG_STATUS
22921 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22922 rm -f conftest.defines
22923 mv conftest.tail conftest.defines
22924 done
22925 rm -f conftest.defines
22926 echo ' fi # grep' >>$CONFIG_STATUS
22927 echo >>$CONFIG_STATUS
22929 # Break up conftest.undefs because some shells have a limit on the size
22930 # of here documents, and old seds have small limits too (100 cmds).
22931 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22932 rm -f conftest.tail
22933 while grep . conftest.undefs >/dev/null
22935 # Write a limited-size here document to $tmp/undefs.sed.
22936 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22937 # Speed up: don't consider the non `#undef'
22938 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22939 # Work around the forget-to-reset-the-flag bug.
22940 echo 't clr' >>$CONFIG_STATUS
22941 echo ': clr' >>$CONFIG_STATUS
22942 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22943 echo 'CEOF
22944 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22945 rm -f $tmp/in
22946 mv $tmp/out $tmp/in
22947 ' >>$CONFIG_STATUS
22948 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22949 rm -f conftest.undefs
22950 mv conftest.tail conftest.undefs
22951 done
22952 rm -f conftest.undefs
22954 cat >>$CONFIG_STATUS <<\_ACEOF
22955 # Let's still pretend it is `configure' which instantiates (i.e., don't
22956 # use $as_me), people would be surprised to read:
22957 # /* config.h. Generated by config.status. */
22958 if test x"$ac_file" = x-; then
22959 echo "/* Generated by configure. */" >$tmp/config.h
22960 else
22961 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22963 cat $tmp/in >>$tmp/config.h
22964 rm -f $tmp/in
22965 if test x"$ac_file" != x-; then
22966 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22967 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22968 echo "$as_me: $ac_file is unchanged" >&6;}
22969 else
22970 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22971 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22972 X"$ac_file" : 'X\(//\)[^/]' \| \
22973 X"$ac_file" : 'X\(//\)$' \| \
22974 X"$ac_file" : 'X\(/\)' \| \
22975 . : '\(.\)' 2>/dev/null ||
22976 echo X"$ac_file" |
22977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22979 /^X\(\/\/\)$/{ s//\1/; q; }
22980 /^X\(\/\).*/{ s//\1/; q; }
22981 s/.*/./; q'`
22982 { if $as_mkdir_p; then
22983 mkdir -p "$ac_dir"
22984 else
22985 as_dir="$ac_dir"
22986 as_dirs=
22987 while test ! -d "$as_dir"; do
22988 as_dirs="$as_dir $as_dirs"
22989 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22991 X"$as_dir" : 'X\(//\)[^/]' \| \
22992 X"$as_dir" : 'X\(//\)$' \| \
22993 X"$as_dir" : 'X\(/\)' \| \
22994 . : '\(.\)' 2>/dev/null ||
22995 echo X"$as_dir" |
22996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22997 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22998 /^X\(\/\/\)$/{ s//\1/; q; }
22999 /^X\(\/\).*/{ s//\1/; q; }
23000 s/.*/./; q'`
23001 done
23002 test ! -n "$as_dirs" || mkdir $as_dirs
23003 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23004 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23005 { (exit 1); exit 1; }; }; }
23007 rm -f $ac_file
23008 mv $tmp/config.h $ac_file
23010 else
23011 cat $tmp/config.h
23012 rm -f $tmp/config.h
23014 done
23015 _ACEOF
23016 cat >>$CONFIG_STATUS <<\_ACEOF
23019 # CONFIG_COMMANDS section.
23021 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23022 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23023 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23024 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23025 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23026 X"$ac_dest" : 'X\(//\)[^/]' \| \
23027 X"$ac_dest" : 'X\(//\)$' \| \
23028 X"$ac_dest" : 'X\(/\)' \| \
23029 . : '\(.\)' 2>/dev/null ||
23030 echo X"$ac_dest" |
23031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23033 /^X\(\/\/\)$/{ s//\1/; q; }
23034 /^X\(\/\).*/{ s//\1/; q; }
23035 s/.*/./; q'`
23036 { if $as_mkdir_p; then
23037 mkdir -p "$ac_dir"
23038 else
23039 as_dir="$ac_dir"
23040 as_dirs=
23041 while test ! -d "$as_dir"; do
23042 as_dirs="$as_dir $as_dirs"
23043 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23045 X"$as_dir" : 'X\(//\)[^/]' \| \
23046 X"$as_dir" : 'X\(//\)$' \| \
23047 X"$as_dir" : 'X\(/\)' \| \
23048 . : '\(.\)' 2>/dev/null ||
23049 echo X"$as_dir" |
23050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23052 /^X\(\/\/\)$/{ s//\1/; q; }
23053 /^X\(\/\).*/{ s//\1/; q; }
23054 s/.*/./; q'`
23055 done
23056 test ! -n "$as_dirs" || mkdir $as_dirs
23057 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23058 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23059 { (exit 1); exit 1; }; }; }
23061 ac_builddir=.
23063 if test "$ac_dir" != .; then
23064 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23065 # A "../" for each directory in $ac_dir_suffix.
23066 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23067 else
23068 ac_dir_suffix= ac_top_builddir=
23071 case $srcdir in
23072 .) # No --srcdir option. We are building in place.
23073 ac_srcdir=.
23074 if test -z "$ac_top_builddir"; then
23075 ac_top_srcdir=.
23076 else
23077 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23078 fi ;;
23079 [\\/]* | ?:[\\/]* ) # Absolute path.
23080 ac_srcdir=$srcdir$ac_dir_suffix;
23081 ac_top_srcdir=$srcdir ;;
23082 *) # Relative path.
23083 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23084 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23085 esac
23087 # Do not use `cd foo && pwd` to compute absolute paths, because
23088 # the directories may not exist.
23089 case `pwd` in
23090 .) ac_abs_builddir="$ac_dir";;
23092 case "$ac_dir" in
23093 .) ac_abs_builddir=`pwd`;;
23094 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23095 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23096 esac;;
23097 esac
23098 case $ac_abs_builddir in
23099 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23101 case ${ac_top_builddir}. in
23102 .) ac_abs_top_builddir=$ac_abs_builddir;;
23103 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23104 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23105 esac;;
23106 esac
23107 case $ac_abs_builddir in
23108 .) ac_abs_srcdir=$ac_srcdir;;
23110 case $ac_srcdir in
23111 .) ac_abs_srcdir=$ac_abs_builddir;;
23112 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23113 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23114 esac;;
23115 esac
23116 case $ac_abs_builddir in
23117 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23119 case $ac_top_srcdir in
23120 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23121 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23122 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23123 esac;;
23124 esac
23127 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23128 echo "$as_me: executing $ac_dest commands" >&6;}
23129 case $ac_dest in
23130 default )
23132 ### Make the necessary directories, if they don't exist.
23133 for dir in etc lisp ; do
23134 test -d ${dir} || mkdir ${dir}
23135 done
23137 # Build src/Makefile from ${srcdir}/src/Makefile.c
23138 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23139 # This must be done after src/config.h is built, since we rely on that file.
23141 # Now get this: Some word that is part of the ${srcdir} directory name
23142 # or the ${configuration} value might, just might, happen to be an
23143 # identifier like `sun4' or `i386' or something, and be predefined by
23144 # the C preprocessor to some helpful value like 1, or maybe the empty
23145 # string. Needless to say consequent macro substitutions are less
23146 # than conducive to the makefile finding the correct directory.
23147 undefs="`echo $top_srcdir $configuration $canonical |
23148 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23149 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23152 echo creating src/epaths.h
23153 ${MAKE-make} epaths-force
23155 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23156 # `..' to `. .' unless invoked with -traditional
23158 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23159 CPPFLAGS="$CPPFLAGS -traditional"
23162 echo creating lib-src/Makefile
23163 ( cd lib-src
23164 rm -f junk.c junk1.c junk2.c
23165 sed -e '/start of cpp stuff/q' \
23166 < Makefile.c > junk1.c
23167 sed -e '1,/start of cpp stuff/d'\
23168 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23169 < Makefile.c > junk.c
23170 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23171 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23172 cat junk1.c junk2.c > Makefile.new
23173 rm -f junk.c junk1.c junk2.c
23174 chmod 444 Makefile.new
23175 mv -f Makefile.new Makefile
23178 echo creating src/Makefile
23179 ( cd src
23180 rm -f junk.c junk1.c junk2.c
23181 sed -e '/start of cpp stuff/q' \
23182 < Makefile.c > junk1.c
23183 sed -e '1,/start of cpp stuff/d'\
23184 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23185 < Makefile.c > junk.c
23186 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23187 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23188 cat junk1.c junk2.c > Makefile.new
23189 rm -f junk.c junk1.c junk2.c
23190 chmod 444 Makefile.new
23191 mv -f Makefile.new Makefile
23194 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23195 echo creating src/.gdbinit
23196 echo source $srcdir/src/.gdbinit > src/.gdbinit
23199 # This is how we know whether to re-run configure in certain cases.
23200 touch src/config.stamp
23203 esac
23204 done
23205 _ACEOF
23207 cat >>$CONFIG_STATUS <<\_ACEOF
23209 { (exit 0); exit 0; }
23210 _ACEOF
23211 chmod +x $CONFIG_STATUS
23212 ac_clean_files=$ac_clean_files_save
23215 # configure is writing to config.log, and then calls config.status.
23216 # config.status does its own redirection, appending to config.log.
23217 # Unfortunately, on DOS this fails, as config.log is still kept open
23218 # by configure, so config.status won't be able to write to it; its
23219 # output is simply discarded. So we exec the FD to /dev/null,
23220 # effectively closing config.log, so it can be properly (re)opened and
23221 # appended to by config.status. When coming back to configure, we
23222 # need to make the FD available again.
23223 if test "$no_create" != yes; then
23224 ac_cs_success=:
23225 ac_config_status_args=
23226 test "$silent" = yes &&
23227 ac_config_status_args="$ac_config_status_args --quiet"
23228 exec 5>/dev/null
23229 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23230 exec 5>>config.log
23231 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23232 # would make configure fail if this is the last instruction.
23233 $ac_cs_success || { (exit 1); exit 1; }