VirtualBox

source: kBuild/vendor/gnumake/3.81-beta1/configure@ 3138

Last change on this file since 3138 was 152, checked in by (none), 20 years ago

This commit was manufactured by cvs2svn to create branch 'GNU'.

  • Property svn:eol-style set to native
File size: 441.5 KB
Line 
1#! /bin/sh
2# From configure.in Id: configure.in,v 1.125 2004/03/06 08:05:19 psmith Exp .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for GNU make 3.81beta1.
5#
6# Report bugs to <[email protected]>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
271PACKAGE_NAME='GNU make'
272PACKAGE_TARNAME='make'
273PACKAGE_VERSION='3.81beta1'
274PACKAGE_STRING='GNU make 3.81beta1'
275PACKAGE_BUGREPORT='[email protected]'
276
277ac_unique_file="vpath.c"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP AR PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP U ANSI2KNR MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB ALLOCA LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS REMOTE USE_CUSTOMS_TRUE USE_CUSTOMS_FALSE GLOBINC GLOBLIB USE_LOCAL_GLOB_TRUE USE_LOCAL_GLOB_FALSE MAKE_HOST LTLIBOBJS'
316ac_subst_files='MAINT_MAKEFILE'
317
318# Initialize some variables set by options.
319ac_init_help=
320ac_init_version=false
321# The variables have the same names as the options, with
322# dashes changed to underlines.
323cache_file=/dev/null
324exec_prefix=NONE
325no_create=
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
334verbose=
335x_includes=NONE
336x_libraries=NONE
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
356ac_prev=
357for ac_option
358do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659fi
660
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
671
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682done
683
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
701
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
706
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739fi
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776
777#
778# Report the --help message.
779#
780if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784\`configure' configures GNU make 3.81beta1 to adapt to many kinds of systems.
785
786Usage: $0 [OPTION]... [VAR=VALUE]...
787
788To assign environment variables (e.g., CC, CFLAGS...), specify them as
789VAR=VALUE. See below for descriptions of some of the useful variables.
790
791Defaults for the options are specified in brackets.
792
793Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803
804_ACEOF
805
806 cat <<_ACEOF
807Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
812
813By default, \`make install' will install all the files in
814\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816for instance \`--prefix=\$HOME'.
817
818For better control, use the options below.
819
820Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833_ACEOF
834
835 cat <<\_ACEOF
836
837Program names:
838 --program-prefix=PREFIX prepend PREFIX to installed program names
839 --program-suffix=SUFFIX append SUFFIX to installed program names
840 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841
842System types:
843 --build=BUILD configure for building on BUILD [guessed]
844 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845_ACEOF
846fi
847
848if test -n "$ac_init_help"; then
849 case $ac_init_help in
850 short | recursive ) echo "Configuration of GNU make 3.81beta1:";;
851 esac
852 cat <<\_ACEOF
853
854Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-dependency-tracking speeds up one-time build
858 --enable-dependency-tracking do not reject slow dependency extractors
859 --disable-nls do not use Native Language Support
860 --disable-rpath do not hardcode runtime library paths
861 --disable-largefile omit support for large files
862 --disable-job-server disallow recursive make communication during -jN
863
864Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-gnu-ld assume the C compiler uses GNU ld default=no
868 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
869 --without-libiconv-prefix don't search for libiconv in includedir and libdir
870 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
871 --without-libintl-prefix don't search for libintl in includedir and libdir
872 --with-customs=DIR enable remote jobs via Customs--see README.customs
873 --with-dmalloc use dmalloc, as in
874 http://www.dmalloc.com/dmalloc.tar.gz
875
876Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
884
885Use these variables to override the choices made by `configure' or to help
886it to find libraries and programs with nonstandard names/locations.
887
888Report bugs to <[email protected]>.
889_ACEOF
890fi
891
892if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
894 ac_popdir=`pwd`
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
897 ac_builddir=.
898
899if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903else
904 ac_dir_suffix= ac_top_builddir=
905fi
906
907case $srcdir in
908 .) # No --srcdir option. We are building in place.
909 ac_srcdir=.
910 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=.
912 else
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 fi ;;
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
918 *) # Relative path.
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921esac
922
923# Do not use `cd foo && pwd` to compute absolute paths, because
924# the directories may not exist.
925case `pwd` in
926.) ac_abs_builddir="$ac_dir";;
927*)
928 case "$ac_dir" in
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 esac;;
933esac
934case $ac_abs_builddir in
935.) ac_abs_top_builddir=${ac_top_builddir}.;;
936*)
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_srcdir=$ac_srcdir;;
945*)
946 case $ac_srcdir in
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_top_srcdir=$ac_top_srcdir;;
954*)
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 esac;;
960esac
961
962 cd $ac_dir
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
965 echo
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
968 echo
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
972 echo
973 $ac_configure --help
974 else
975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976 fi
977 cd $ac_popdir
978 done
979fi
980
981test -n "$ac_init_help" && exit 0
982if $ac_init_version; then
983 cat <<\_ACEOF
984GNU make configure 3.81beta1
985generated by GNU Autoconf 2.59
986
987Copyright (C) 2003 Free Software Foundation, Inc.
988This configure script is free software; the Free Software Foundation
989gives unlimited permission to copy, distribute and modify it.
990_ACEOF
991 exit 0
992fi
993exec 5>config.log
994cat >&5 <<_ACEOF
995This file contains any messages produced by compilers while
996running configure, to aid debugging if configure makes a mistake.
997
998It was created by GNU make $as_me 3.81beta1, which was
999generated by GNU Autoconf 2.59. Invocation command line was
1000
1001 $ $0 $@
1002
1003_ACEOF
1004{
1005cat <<_ASUNAME
1006## --------- ##
1007## Platform. ##
1008## --------- ##
1009
1010hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015
1016/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1018
1019/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1020/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1021/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1022hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1023/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1024/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1025/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026
1027_ASUNAME
1028
1029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030for as_dir in $PATH
1031do
1032 IFS=$as_save_IFS
1033 test -z "$as_dir" && as_dir=.
1034 echo "PATH: $as_dir"
1035done
1036
1037} >&5
1038
1039cat >&5 <<_ACEOF
1040
1041
1042## ----------- ##
1043## Core tests. ##
1044## ----------- ##
1045
1046_ACEOF
1047
1048
1049# Keep a trace of the command line.
1050# Strip out --no-create and --no-recursion so they do not pile up.
1051# Strip out --silent because we don't want to record it for future runs.
1052# Also quote any args containing shell meta-characters.
1053# Make two passes to allow for proper duplicate-argument suppression.
1054ac_configure_args=
1055ac_configure_args0=
1056ac_configure_args1=
1057ac_sep=
1058ac_must_keep_next=false
1059for ac_pass in 1 2
1060do
1061 for ac_arg
1062 do
1063 case $ac_arg in
1064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 continue ;;
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 esac
1071 case $ac_pass in
1072 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1073 2)
1074 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1075 if test $ac_must_keep_next = true; then
1076 ac_must_keep_next=false # Got value, back to normal.
1077 else
1078 case $ac_arg in
1079 *=* | --config-cache | -C | -disable-* | --disable-* \
1080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1082 | -with-* | --with-* | -without-* | --without-* | --x)
1083 case "$ac_configure_args0 " in
1084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 esac
1086 ;;
1087 -* ) ac_must_keep_next=true ;;
1088 esac
1089 fi
1090 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1091 # Get rid of the leading space.
1092 ac_sep=" "
1093 ;;
1094 esac
1095 done
1096done
1097$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1098$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1099
1100# When interrupted or exit'd, cleanup temporary files, and complete
1101# config.log. We remove comments because anyway the quotes in there
1102# would cause problems or look ugly.
1103# WARNING: Be sure not to use single quotes in there, as some shells,
1104# such as our DU 5.0 friend, will then `close' the trap.
1105trap 'exit_status=$?
1106 # Save into config.log some information that might help in debugging.
1107 {
1108 echo
1109
1110 cat <<\_ASBOX
1111## ---------------- ##
1112## Cache variables. ##
1113## ---------------- ##
1114_ASBOX
1115 echo
1116 # The following way of writing the cache mishandles newlines in values,
1117{
1118 (set) 2>&1 |
1119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 *ac_space=\ *)
1121 sed -n \
1122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 ;;
1125 *)
1126 sed -n \
1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128 ;;
1129 esac;
1130}
1131 echo
1132
1133 cat <<\_ASBOX
1134## ----------------- ##
1135## Output variables. ##
1136## ----------------- ##
1137_ASBOX
1138 echo
1139 for ac_var in $ac_subst_vars
1140 do
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1145
1146 if test -n "$ac_subst_files"; then
1147 cat <<\_ASBOX
1148## ------------- ##
1149## Output files. ##
1150## ------------- ##
1151_ASBOX
1152 echo
1153 for ac_var in $ac_subst_files
1154 do
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1157 done | sort
1158 echo
1159 fi
1160
1161 if test -s confdefs.h; then
1162 cat <<\_ASBOX
1163## ----------- ##
1164## confdefs.h. ##
1165## ----------- ##
1166_ASBOX
1167 echo
1168 sed "/^$/d" confdefs.h | sort
1169 echo
1170 fi
1171 test "$ac_signal" != 0 &&
1172 echo "$as_me: caught signal $ac_signal"
1173 echo "$as_me: exit $exit_status"
1174 } >&5
1175 rm -f core *.core &&
1176 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177 exit $exit_status
1178 ' 0
1179for ac_signal in 1 2 13 15; do
1180 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181done
1182ac_signal=0
1183
1184# confdefs.h avoids OS command line length limits that DEFS can exceed.
1185rm -rf conftest* confdefs.h
1186# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187echo >confdefs.h
1188
1189# Predefined preprocessor variables.
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_NAME "$PACKAGE_NAME"
1193_ACEOF
1194
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_VERSION "$PACKAGE_VERSION"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_STRING "$PACKAGE_STRING"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213_ACEOF
1214
1215
1216# Let the site file select an alternate cache file if it wants to.
1217# Prefer explicitly selected file to automatically selected ones.
1218if test -z "$CONFIG_SITE"; then
1219 if test "x$prefix" != xNONE; then
1220 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1221 else
1222 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 fi
1224fi
1225for ac_site_file in $CONFIG_SITE; do
1226 if test -r "$ac_site_file"; then
1227 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1228echo "$as_me: loading site script $ac_site_file" >&6;}
1229 sed 's/^/| /' "$ac_site_file" >&5
1230 . "$ac_site_file"
1231 fi
1232done
1233
1234if test -r "$cache_file"; then
1235 # Some versions of bash will fail to source /dev/null (special
1236 # files actually), so we avoid doing that.
1237 if test -f "$cache_file"; then
1238 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1239echo "$as_me: loading cache $cache_file" >&6;}
1240 case $cache_file in
1241 [\\/]* | ?:[\\/]* ) . $cache_file;;
1242 *) . ./$cache_file;;
1243 esac
1244 fi
1245else
1246 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1247echo "$as_me: creating cache $cache_file" >&6;}
1248 >$cache_file
1249fi
1250
1251# Check that the precious variables saved in the cache have kept the same
1252# value.
1253ac_cache_corrupted=false
1254for ac_var in `(set) 2>&1 |
1255 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1257 eval ac_new_set=\$ac_env_${ac_var}_set
1258 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1259 eval ac_new_val="\$ac_env_${ac_var}_value"
1260 case $ac_old_set,$ac_new_set in
1261 set,)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1263echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,set)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1267echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,);;
1270 *)
1271 if test "x$ac_old_val" != "x$ac_new_val"; then
1272 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1273echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1274 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1275echo "$as_me: former value: $ac_old_val" >&2;}
1276 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1277echo "$as_me: current value: $ac_new_val" >&2;}
1278 ac_cache_corrupted=:
1279 fi;;
1280 esac
1281 # Pass precious variables to config.status.
1282 if test "$ac_new_set" = set; then
1283 case $ac_new_val in
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 *) ac_arg=$ac_var=$ac_new_val ;;
1287 esac
1288 case " $ac_configure_args " in
1289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1290 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291 esac
1292 fi
1293done
1294if $ac_cache_corrupted; then
1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299 { (exit 1); exit 1; }; }
1300fi
1301
1302ac_ext=c
1303ac_cpp='$CPP $CPPFLAGS'
1304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306ac_compiler_gnu=$ac_cv_c_compiler_gnu
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338# Autoconf setup
1339ac_aux_dir=
1340for ac_dir in config $srcdir/config; do
1341 if test -f $ac_dir/install-sh; then
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/install-sh -c"
1344 break
1345 elif test -f $ac_dir/install.sh; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/install.sh -c"
1348 break
1349 elif test -f $ac_dir/shtool; then
1350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/shtool install -c"
1352 break
1353 fi
1354done
1355if test -z "$ac_aux_dir"; then
1356 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1357echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1358 { (exit 1); exit 1; }; }
1359fi
1360ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1361ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1362ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363
1364
1365 ac_config_headers="$ac_config_headers config.h"
1366
1367
1368# Automake setup
1369am__api_version="1.8"
1370# Find a good install program. We prefer a C program (faster),
1371# so one script is as good as another. But avoid the broken or
1372# incompatible versions:
1373# SysV /etc/install, /usr/sbin/install
1374# SunOS /usr/etc/install
1375# IRIX /sbin/install
1376# AIX /bin/install
1377# AmigaOS /C/install, which installs bootblocks on floppy discs
1378# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1379# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1380# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1381# OS/2's system install, which has a completely different semantic
1382# ./install, which can be erroneously created by make from ./install.sh.
1383echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1384echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1385if test -z "$INSTALL"; then
1386if test "${ac_cv_path_install+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388else
1389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1390for as_dir in $PATH
1391do
1392 IFS=$as_save_IFS
1393 test -z "$as_dir" && as_dir=.
1394 # Account for people who put trailing slashes in PATH elements.
1395case $as_dir/ in
1396 ./ | .// | /cC/* | \
1397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1398 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1399 /usr/ucb/* ) ;;
1400 *)
1401 # OSF1 and SCO ODT 3.0 have their own names for install.
1402 # Don't use installbsd from OSF since it installs stuff as root
1403 # by default.
1404 for ac_prog in ginstall scoinst install; do
1405 for ac_exec_ext in '' $ac_executable_extensions; do
1406 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1407 if test $ac_prog = install &&
1408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1409 # AIX install. It has an incompatible calling convention.
1410 :
1411 elif test $ac_prog = install &&
1412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1413 # program-specific install script used by HP pwplus--don't use.
1414 :
1415 else
1416 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1417 break 3
1418 fi
1419 fi
1420 done
1421 done
1422 ;;
1423esac
1424done
1425
1426
1427fi
1428 if test "${ac_cv_path_install+set}" = set; then
1429 INSTALL=$ac_cv_path_install
1430 else
1431 # As a last resort, use the slow shell script. We don't cache a
1432 # path for INSTALL within a source directory, because that will
1433 # break other packages using the cache if that directory is
1434 # removed, or if the path is relative.
1435 INSTALL=$ac_install_sh
1436 fi
1437fi
1438echo "$as_me:$LINENO: result: $INSTALL" >&5
1439echo "${ECHO_T}$INSTALL" >&6
1440
1441# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1442# It thinks the first close brace ends the variable substitution.
1443test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1444
1445test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1446
1447test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1448
1449echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1450echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1451# Just in case
1452sleep 1
1453echo timestamp > conftest.file
1454# Do `set' in a subshell so we don't clobber the current shell's
1455# arguments. Must try -L first in case configure is actually a
1456# symlink; some systems play weird games with the mod time of symlinks
1457# (eg FreeBSD returns the mod time of the symlink's containing
1458# directory).
1459if (
1460 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1461 if test "$*" = "X"; then
1462 # -L didn't work.
1463 set X `ls -t $srcdir/configure conftest.file`
1464 fi
1465 rm -f conftest.file
1466 if test "$*" != "X $srcdir/configure conftest.file" \
1467 && test "$*" != "X conftest.file $srcdir/configure"; then
1468
1469 # If neither matched, then we have a broken ls. This can happen
1470 # if, for instance, CONFIG_SHELL is bash and it inherits a
1471 # broken ls alias from the environment. This has actually
1472 # happened. Such a system could not be considered "sane".
1473 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1474alias in your environment" >&5
1475echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1476alias in your environment" >&2;}
1477 { (exit 1); exit 1; }; }
1478 fi
1479
1480 test "$2" = conftest.file
1481 )
1482then
1483 # Ok.
1484 :
1485else
1486 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1487Check your system clock" >&5
1488echo "$as_me: error: newly created file is older than distributed files!
1489Check your system clock" >&2;}
1490 { (exit 1); exit 1; }; }
1491fi
1492echo "$as_me:$LINENO: result: yes" >&5
1493echo "${ECHO_T}yes" >&6
1494test "$program_prefix" != NONE &&
1495 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1496# Use a double $ so make ignores it.
1497test "$program_suffix" != NONE &&
1498 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1499# Double any \ or $. echo might interpret backslashes.
1500# By default was `s,x,x', remove it if useless.
1501cat <<\_ACEOF >conftest.sed
1502s/[\\$]/&&/g;s/;s,x,x,$//
1503_ACEOF
1504program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1505rm conftest.sed
1506
1507# expand $ac_aux_dir to an absolute path
1508am_aux_dir=`cd $ac_aux_dir && pwd`
1509
1510test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1511# Use eval to expand $SHELL
1512if eval "$MISSING --run true"; then
1513 am_missing_run="$MISSING --run "
1514else
1515 am_missing_run=
1516 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1517echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1518fi
1519
1520if mkdir -p -- . 2>/dev/null; then
1521 # Keeping the `.' argument allows $(mkdir_p) to be used without
1522 # argument. Indeed, we sometimes output rules like
1523 # $(mkdir_p) $(somedir)
1524 # where $(somedir) is conditionally defined.
1525 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1526 # expensive solution, as it forces Make to start a sub-shell.)
1527 mkdir_p='mkdir -p -- .'
1528else
1529 # On NextStep and OpenStep, the `mkdir' command does not
1530 # recognize any option. It will interpret all options as
1531 # directories to create, and then abort because `.' already
1532 # exists.
1533 for d in ./-p ./--;
1534 do
1535 test -d $d && rmdir $d
1536 done
1537 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1538 if test -f "$ac_aux_dir/mkinstalldirs"; then
1539 mkdir_p='$(mkinstalldirs)'
1540 else
1541 mkdir_p='$(install_sh) -d'
1542 fi
1543fi
1544
1545for ac_prog in gawk mawk nawk awk
1546do
1547 # Extract the first word of "$ac_prog", so it can be a program name with args.
1548set dummy $ac_prog; ac_word=$2
1549echo "$as_me:$LINENO: checking for $ac_word" >&5
1550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551if test "${ac_cv_prog_AWK+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554 if test -n "$AWK"; then
1555 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1556else
1557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558for as_dir in $PATH
1559do
1560 IFS=$as_save_IFS
1561 test -z "$as_dir" && as_dir=.
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564 ac_cv_prog_AWK="$ac_prog"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 break 2
1567 fi
1568done
1569done
1570
1571fi
1572fi
1573AWK=$ac_cv_prog_AWK
1574if test -n "$AWK"; then
1575 echo "$as_me:$LINENO: result: $AWK" >&5
1576echo "${ECHO_T}$AWK" >&6
1577else
1578 echo "$as_me:$LINENO: result: no" >&5
1579echo "${ECHO_T}no" >&6
1580fi
1581
1582 test -n "$AWK" && break
1583done
1584
1585echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1586echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1587set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1588if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590else
1591 cat >conftest.make <<\_ACEOF
1592all:
1593 @echo 'ac_maketemp="$(MAKE)"'
1594_ACEOF
1595# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1596eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1597if test -n "$ac_maketemp"; then
1598 eval ac_cv_prog_make_${ac_make}_set=yes
1599else
1600 eval ac_cv_prog_make_${ac_make}_set=no
1601fi
1602rm -f conftest.make
1603fi
1604if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1605 echo "$as_me:$LINENO: result: yes" >&5
1606echo "${ECHO_T}yes" >&6
1607 SET_MAKE=
1608else
1609 echo "$as_me:$LINENO: result: no" >&5
1610echo "${ECHO_T}no" >&6
1611 SET_MAKE="MAKE=${MAKE-make}"
1612fi
1613
1614rm -rf .tst 2>/dev/null
1615mkdir .tst 2>/dev/null
1616if test -d .tst; then
1617 am__leading_dot=.
1618else
1619 am__leading_dot=_
1620fi
1621rmdir .tst 2>/dev/null
1622
1623# test to see if srcdir already configured
1624if test "`cd $srcdir && pwd`" != "`pwd`" &&
1625 test -f $srcdir/config.status; then
1626 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1627echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1628 { (exit 1); exit 1; }; }
1629fi
1630
1631# test whether we have cygpath
1632if test -z "$CYGPATH_W"; then
1633 if (cygpath --version) >/dev/null 2>/dev/null; then
1634 CYGPATH_W='cygpath -w'
1635 else
1636 CYGPATH_W=echo
1637 fi
1638fi
1639
1640
1641# Define the identity of the package.
1642 PACKAGE='make'
1643 VERSION='3.81beta1'
1644
1645
1646cat >>confdefs.h <<_ACEOF
1647#define PACKAGE "$PACKAGE"
1648_ACEOF
1649
1650
1651cat >>confdefs.h <<_ACEOF
1652#define VERSION "$VERSION"
1653_ACEOF
1654
1655# Some tools Automake needs.
1656
1657ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1658
1659
1660AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1661
1662
1663AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1664
1665
1666AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1667
1668
1669MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1670
1671
1672AMTAR=${AMTAR-"${am_missing_run}tar"}
1673
1674install_sh=${install_sh-"$am_aux_dir/install-sh"}
1675
1676# Installed binaries are usually stripped using `strip' when the user
1677# run `make install-strip'. However `strip' might not be the right
1678# tool to use in cross-compilation environments, therefore Automake
1679# will honor the `STRIP' environment variable to overrule this program.
1680if test "$cross_compiling" != no; then
1681 if test -n "$ac_tool_prefix"; then
1682 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1683set dummy ${ac_tool_prefix}strip; ac_word=$2
1684echo "$as_me:$LINENO: checking for $ac_word" >&5
1685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1686if test "${ac_cv_prog_STRIP+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1688else
1689 if test -n "$STRIP"; then
1690 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1691else
1692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693for as_dir in $PATH
1694do
1695 IFS=$as_save_IFS
1696 test -z "$as_dir" && as_dir=.
1697 for ac_exec_ext in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701 break 2
1702 fi
1703done
1704done
1705
1706fi
1707fi
1708STRIP=$ac_cv_prog_STRIP
1709if test -n "$STRIP"; then
1710 echo "$as_me:$LINENO: result: $STRIP" >&5
1711echo "${ECHO_T}$STRIP" >&6
1712else
1713 echo "$as_me:$LINENO: result: no" >&5
1714echo "${ECHO_T}no" >&6
1715fi
1716
1717fi
1718if test -z "$ac_cv_prog_STRIP"; then
1719 ac_ct_STRIP=$STRIP
1720 # Extract the first word of "strip", so it can be a program name with args.
1721set dummy strip; ac_word=$2
1722echo "$as_me:$LINENO: checking for $ac_word" >&5
1723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726else
1727 if test -n "$ac_ct_STRIP"; then
1728 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1729else
1730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731for as_dir in $PATH
1732do
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_ac_ct_STRIP="strip"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1740 fi
1741done
1742done
1743
1744 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1745fi
1746fi
1747ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1748if test -n "$ac_ct_STRIP"; then
1749 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1750echo "${ECHO_T}$ac_ct_STRIP" >&6
1751else
1752 echo "$as_me:$LINENO: result: no" >&5
1753echo "${ECHO_T}no" >&6
1754fi
1755
1756 STRIP=$ac_ct_STRIP
1757else
1758 STRIP="$ac_cv_prog_STRIP"
1759fi
1760
1761fi
1762INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1763
1764# We need awk for the "check" target. The system "awk" is bad on
1765# some platforms.
1766
1767
1768
1769
1770# Checks for programs.
1771ac_ext=c
1772ac_cpp='$CPP $CPPFLAGS'
1773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775ac_compiler_gnu=$ac_cv_c_compiler_gnu
1776if test -n "$ac_tool_prefix"; then
1777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1778set dummy ${ac_tool_prefix}gcc; ac_word=$2
1779echo "$as_me:$LINENO: checking for $ac_word" >&5
1780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781if test "${ac_cv_prog_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1783else
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC="$CC" # Let the user override the test.
1786else
1787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788for as_dir in $PATH
1789do
1790 IFS=$as_save_IFS
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 break 2
1797 fi
1798done
1799done
1800
1801fi
1802fi
1803CC=$ac_cv_prog_CC
1804if test -n "$CC"; then
1805 echo "$as_me:$LINENO: result: $CC" >&5
1806echo "${ECHO_T}$CC" >&6
1807else
1808 echo "$as_me:$LINENO: result: no" >&5
1809echo "${ECHO_T}no" >&6
1810fi
1811
1812fi
1813if test -z "$ac_cv_prog_CC"; then
1814 ac_ct_CC=$CC
1815 # Extract the first word of "gcc", so it can be a program name with args.
1816set dummy gcc; ac_word=$2
1817echo "$as_me:$LINENO: checking for $ac_word" >&5
1818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822 if test -n "$ac_ct_CC"; then
1823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1824else
1825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826for as_dir in $PATH
1827do
1828 IFS=$as_save_IFS
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_ac_ct_CC="gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1835 fi
1836done
1837done
1838
1839fi
1840fi
1841ac_ct_CC=$ac_cv_prog_ac_ct_CC
1842if test -n "$ac_ct_CC"; then
1843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844echo "${ECHO_T}$ac_ct_CC" >&6
1845else
1846 echo "$as_me:$LINENO: result: no" >&5
1847echo "${ECHO_T}no" >&6
1848fi
1849
1850 CC=$ac_ct_CC
1851else
1852 CC="$ac_cv_prog_CC"
1853fi
1854
1855if test -z "$CC"; then
1856 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1858set dummy ${ac_tool_prefix}cc; ac_word=$2
1859echo "$as_me:$LINENO: checking for $ac_word" >&5
1860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861if test "${ac_cv_prog_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863else
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC="$CC" # Let the user override the test.
1866else
1867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868for as_dir in $PATH
1869do
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_CC="${ac_tool_prefix}cc"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1877 fi
1878done
1879done
1880
1881fi
1882fi
1883CC=$ac_cv_prog_CC
1884if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886echo "${ECHO_T}$CC" >&6
1887else
1888 echo "$as_me:$LINENO: result: no" >&5
1889echo "${ECHO_T}no" >&6
1890fi
1891
1892fi
1893if test -z "$ac_cv_prog_CC"; then
1894 ac_ct_CC=$CC
1895 # Extract the first word of "cc", so it can be a program name with args.
1896set dummy cc; ac_word=$2
1897echo "$as_me:$LINENO: checking for $ac_word" >&5
1898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901else
1902 if test -n "$ac_ct_CC"; then
1903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904else
1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906for as_dir in $PATH
1907do
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_CC="cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 break 2
1915 fi
1916done
1917done
1918
1919fi
1920fi
1921ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922if test -n "$ac_ct_CC"; then
1923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924echo "${ECHO_T}$ac_ct_CC" >&6
1925else
1926 echo "$as_me:$LINENO: result: no" >&5
1927echo "${ECHO_T}no" >&6
1928fi
1929
1930 CC=$ac_ct_CC
1931else
1932 CC="$ac_cv_prog_CC"
1933fi
1934
1935fi
1936if test -z "$CC"; then
1937 # Extract the first word of "cc", so it can be a program name with args.
1938set dummy cc; ac_word=$2
1939echo "$as_me:$LINENO: checking for $ac_word" >&5
1940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941if test "${ac_cv_prog_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1943else
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC="$CC" # Let the user override the test.
1946else
1947 ac_prog_rejected=no
1948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949for as_dir in $PATH
1950do
1951 IFS=$as_save_IFS
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1956 ac_prog_rejected=yes
1957 continue
1958 fi
1959 ac_cv_prog_CC="cc"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1962 fi
1963done
1964done
1965
1966if test $ac_prog_rejected = yes; then
1967 # We found a bogon in the path, so make sure we never use it.
1968 set dummy $ac_cv_prog_CC
1969 shift
1970 if test $# != 0; then
1971 # We chose a different compiler from the bogus one.
1972 # However, it has the same basename, so the bogon will be chosen
1973 # first if we set CC to just the basename; use the full file name.
1974 shift
1975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1976 fi
1977fi
1978fi
1979fi
1980CC=$ac_cv_prog_CC
1981if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983echo "${ECHO_T}$CC" >&6
1984else
1985 echo "$as_me:$LINENO: result: no" >&5
1986echo "${ECHO_T}no" >&6
1987fi
1988
1989fi
1990if test -z "$CC"; then
1991 if test -n "$ac_tool_prefix"; then
1992 for ac_prog in cl
1993 do
1994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1996echo "$as_me:$LINENO: checking for $ac_word" >&5
1997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000else
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2003else
2004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005for as_dir in $PATH
2006do
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2014 fi
2015done
2016done
2017
2018fi
2019fi
2020CC=$ac_cv_prog_CC
2021if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023echo "${ECHO_T}$CC" >&6
2024else
2025 echo "$as_me:$LINENO: result: no" >&5
2026echo "${ECHO_T}no" >&6
2027fi
2028
2029 test -n "$CC" && break
2030 done
2031fi
2032if test -z "$CC"; then
2033 ac_ct_CC=$CC
2034 for ac_prog in cl
2035do
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037set dummy $ac_prog; ac_word=$2
2038echo "$as_me:$LINENO: checking for $ac_word" >&5
2039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045else
2046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC="$ac_prog"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2056 fi
2057done
2058done
2059
2060fi
2061fi
2062ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065echo "${ECHO_T}$ac_ct_CC" >&6
2066else
2067 echo "$as_me:$LINENO: result: no" >&5
2068echo "${ECHO_T}no" >&6
2069fi
2070
2071 test -n "$ac_ct_CC" && break
2072done
2073
2074 CC=$ac_ct_CC
2075fi
2076
2077fi
2078
2079
2080test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081See \`config.log' for more details." >&5
2082echo "$as_me: error: no acceptable C compiler found in \$PATH
2083See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2085
2086# Provide some information about the compiler.
2087echo "$as_me:$LINENO:" \
2088 "checking for C compiler version" >&5
2089ac_compiler=`set X $ac_compile; echo $2`
2090{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2091 (eval $ac_compiler --version </dev/null >&5) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2096 (eval $ac_compiler -v </dev/null >&5) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2101 (eval $ac_compiler -V </dev/null >&5) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105
2106cat >conftest.$ac_ext <<_ACEOF
2107/* confdefs.h. */
2108_ACEOF
2109cat confdefs.h >>conftest.$ac_ext
2110cat >>conftest.$ac_ext <<_ACEOF
2111/* end confdefs.h. */
2112
2113int
2114main ()
2115{
2116
2117 ;
2118 return 0;
2119}
2120_ACEOF
2121ac_clean_files_save=$ac_clean_files
2122ac_clean_files="$ac_clean_files a.out a.exe b.out"
2123# Try to create an executable without -o first, disregard a.out.
2124# It will help us diagnose broken compilers, and finding out an intuition
2125# of exeext.
2126echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2127echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2128ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2129if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2130 (eval $ac_link_default) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; then
2134 # Find the output, starting from the most likely. This scheme is
2135# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2136# resort.
2137
2138# Be careful to initialize this variable, since it used to be cached.
2139# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2140ac_cv_exeext=
2141# b.out is created by i960 compilers.
2142for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2143do
2144 test -f "$ac_file" || continue
2145 case $ac_file in
2146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2147 ;;
2148 conftest.$ac_ext )
2149 # This is the source file.
2150 ;;
2151 [ab].out )
2152 # We found the default executable, but exeext='' is most
2153 # certainly right.
2154 break;;
2155 *.* )
2156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157 # FIXME: I believe we export ac_cv_exeext for Libtool,
2158 # but it would be cool to find out if it's true. Does anybody
2159 # maintain Libtool? --akim.
2160 export ac_cv_exeext
2161 break;;
2162 * )
2163 break;;
2164 esac
2165done
2166else
2167 echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
2169
2170{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2171See \`config.log' for more details." >&5
2172echo "$as_me: error: C compiler cannot create executables
2173See \`config.log' for more details." >&2;}
2174 { (exit 77); exit 77; }; }
2175fi
2176
2177ac_exeext=$ac_cv_exeext
2178echo "$as_me:$LINENO: result: $ac_file" >&5
2179echo "${ECHO_T}$ac_file" >&6
2180
2181# Check the compiler produces executables we can run. If not, either
2182# the compiler is broken, or we cross compile.
2183echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2184echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2185# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2186# If not cross compiling, check that we can run a simple program.
2187if test "$cross_compiling" != yes; then
2188 if { ac_try='./$ac_file'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2194 cross_compiling=no
2195 else
2196 if test "$cross_compiling" = maybe; then
2197 cross_compiling=yes
2198 else
2199 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2200If you meant to cross compile, use \`--host'.
2201See \`config.log' for more details." >&5
2202echo "$as_me: error: cannot run C compiled programs.
2203If you meant to cross compile, use \`--host'.
2204See \`config.log' for more details." >&2;}
2205 { (exit 1); exit 1; }; }
2206 fi
2207 fi
2208fi
2209echo "$as_me:$LINENO: result: yes" >&5
2210echo "${ECHO_T}yes" >&6
2211
2212rm -f a.out a.exe conftest$ac_cv_exeext b.out
2213ac_clean_files=$ac_clean_files_save
2214# Check the compiler produces executables we can run. If not, either
2215# the compiler is broken, or we cross compile.
2216echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2217echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2218echo "$as_me:$LINENO: result: $cross_compiling" >&5
2219echo "${ECHO_T}$cross_compiling" >&6
2220
2221echo "$as_me:$LINENO: checking for suffix of executables" >&5
2222echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2224 (eval $ac_link) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; then
2228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2229# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2230# work properly (i.e., refer to `conftest.exe'), while it won't with
2231# `rm'.
2232for ac_file in conftest.exe conftest conftest.*; do
2233 test -f "$ac_file" || continue
2234 case $ac_file in
2235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2237 export ac_cv_exeext
2238 break;;
2239 * ) break;;
2240 esac
2241done
2242else
2243 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2244See \`config.log' for more details." >&5
2245echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2246See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2248fi
2249
2250rm -f conftest$ac_cv_exeext
2251echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2252echo "${ECHO_T}$ac_cv_exeext" >&6
2253
2254rm -f conftest.$ac_ext
2255EXEEXT=$ac_cv_exeext
2256ac_exeext=$EXEEXT
2257echo "$as_me:$LINENO: checking for suffix of object files" >&5
2258echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2259if test "${ac_cv_objext+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261else
2262 cat >conftest.$ac_ext <<_ACEOF
2263/* confdefs.h. */
2264_ACEOF
2265cat confdefs.h >>conftest.$ac_ext
2266cat >>conftest.$ac_ext <<_ACEOF
2267/* end confdefs.h. */
2268
2269int
2270main ()
2271{
2272
2273 ;
2274 return 0;
2275}
2276_ACEOF
2277rm -f conftest.o conftest.obj
2278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; then
2283 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2284 case $ac_file in
2285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2287 break;;
2288 esac
2289done
2290else
2291 echo "$as_me: failed program was:" >&5
2292sed 's/^/| /' conftest.$ac_ext >&5
2293
2294{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2295See \`config.log' for more details." >&5
2296echo "$as_me: error: cannot compute suffix of object files: cannot compile
2297See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2299fi
2300
2301rm -f conftest.$ac_cv_objext conftest.$ac_ext
2302fi
2303echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2304echo "${ECHO_T}$ac_cv_objext" >&6
2305OBJEXT=$ac_cv_objext
2306ac_objext=$OBJEXT
2307echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2308echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2309if test "${ac_cv_c_compiler_gnu+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312 cat >conftest.$ac_ext <<_ACEOF
2313/* confdefs.h. */
2314_ACEOF
2315cat confdefs.h >>conftest.$ac_ext
2316cat >>conftest.$ac_ext <<_ACEOF
2317/* end confdefs.h. */
2318
2319int
2320main ()
2321{
2322#ifndef __GNUC__
2323 choke me
2324#endif
2325
2326 ;
2327 return 0;
2328}
2329_ACEOF
2330rm -f conftest.$ac_objext
2331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
2333 ac_status=$?
2334 grep -v '^ *+' conftest.er1 >conftest.err
2335 rm -f conftest.er1
2336 cat conftest.err >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 (eval $ac_try) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2352 ac_compiler_gnu=yes
2353else
2354 echo "$as_me: failed program was:" >&5
2355sed 's/^/| /' conftest.$ac_ext >&5
2356
2357ac_compiler_gnu=no
2358fi
2359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360ac_cv_c_compiler_gnu=$ac_compiler_gnu
2361
2362fi
2363echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2364echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2365GCC=`test $ac_compiler_gnu = yes && echo yes`
2366ac_test_CFLAGS=${CFLAGS+set}
2367ac_save_CFLAGS=$CFLAGS
2368CFLAGS="-g"
2369echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2370echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2371if test "${ac_cv_prog_cc_g+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373else
2374 cat >conftest.$ac_ext <<_ACEOF
2375/* confdefs.h. */
2376_ACEOF
2377cat confdefs.h >>conftest.$ac_ext
2378cat >>conftest.$ac_ext <<_ACEOF
2379/* end confdefs.h. */
2380
2381int
2382main ()
2383{
2384
2385 ;
2386 return 0;
2387}
2388_ACEOF
2389rm -f conftest.$ac_objext
2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_cv_prog_cc_g=yes
2412else
2413 echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416ac_cv_prog_cc_g=no
2417fi
2418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419fi
2420echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2421echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2422if test "$ac_test_CFLAGS" = set; then
2423 CFLAGS=$ac_save_CFLAGS
2424elif test $ac_cv_prog_cc_g = yes; then
2425 if test "$GCC" = yes; then
2426 CFLAGS="-g -O2"
2427 else
2428 CFLAGS="-g"
2429 fi
2430else
2431 if test "$GCC" = yes; then
2432 CFLAGS="-O2"
2433 else
2434 CFLAGS=
2435 fi
2436fi
2437echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2438echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2439if test "${ac_cv_prog_cc_stdc+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442 ac_cv_prog_cc_stdc=no
2443ac_save_CC=$CC
2444cat >conftest.$ac_ext <<_ACEOF
2445/* confdefs.h. */
2446_ACEOF
2447cat confdefs.h >>conftest.$ac_ext
2448cat >>conftest.$ac_ext <<_ACEOF
2449/* end confdefs.h. */
2450#include <stdarg.h>
2451#include <stdio.h>
2452#include <sys/types.h>
2453#include <sys/stat.h>
2454/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2455struct buf { int x; };
2456FILE * (*rcsopen) (struct buf *, struct stat *, int);
2457static char *e (p, i)
2458 char **p;
2459 int i;
2460{
2461 return p[i];
2462}
2463static char *f (char * (*g) (char **, int), char **p, ...)
2464{
2465 char *s;
2466 va_list v;
2467 va_start (v,p);
2468 s = g (p, va_arg (v,int));
2469 va_end (v);
2470 return s;
2471}
2472
2473/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2474 function prototypes and stuff, but not '\xHH' hex character constants.
2475 These don't provoke an error unfortunately, instead are silently treated
2476 as 'x'. The following induces an error, until -std1 is added to get
2477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2478 array size at least. It's necessary to write '\x00'==0 to get something
2479 that's true only with -std1. */
2480int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2481
2482int test (int i, double x);
2483struct s1 {int (*f) (int a);};
2484struct s2 {int (*f) (double a);};
2485int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2486int argc;
2487char **argv;
2488int
2489main ()
2490{
2491return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2492 ;
2493 return 0;
2494}
2495_ACEOF
2496# Don't try gcc -ansi; that turns off useful extensions and
2497# breaks some systems' header files.
2498# AIX -qlanglvl=ansi
2499# Ultrix and OSF/1 -std1
2500# HP-UX 10.20 and later -Ae
2501# HP-UX older versions -Aa -D_HPUX_SOURCE
2502# SVR4 -Xc -D__EXTENSIONS__
2503for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2504do
2505 CC="$ac_save_CC $ac_arg"
2506 rm -f conftest.$ac_objext
2507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -z "$ac_c_werror_flag"
2516 || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_cv_prog_cc_stdc=$ac_arg
2529break
2530else
2531 echo "$as_me: failed program was:" >&5
2532sed 's/^/| /' conftest.$ac_ext >&5
2533
2534fi
2535rm -f conftest.err conftest.$ac_objext
2536done
2537rm -f conftest.$ac_ext conftest.$ac_objext
2538CC=$ac_save_CC
2539
2540fi
2541
2542case "x$ac_cv_prog_cc_stdc" in
2543 x|xno)
2544 echo "$as_me:$LINENO: result: none needed" >&5
2545echo "${ECHO_T}none needed" >&6 ;;
2546 *)
2547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2548echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2549 CC="$CC $ac_cv_prog_cc_stdc" ;;
2550esac
2551
2552# Some people use a C++ compiler to compile C. Since we use `exit',
2553# in C++ we need to declare it. In case someone uses the same compiler
2554# for both compiling C and C++ we need to have the C++ compiler decide
2555# the declaration of exit, since it's the most demanding environment.
2556cat >conftest.$ac_ext <<_ACEOF
2557#ifndef __cplusplus
2558 choke me
2559#endif
2560_ACEOF
2561rm -f conftest.$ac_objext
2562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2564 ac_status=$?
2565 grep -v '^ *+' conftest.er1 >conftest.err
2566 rm -f conftest.er1
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 for ac_declaration in \
2584 '' \
2585 'extern "C" void std::exit (int) throw (); using std::exit;' \
2586 'extern "C" void std::exit (int); using std::exit;' \
2587 'extern "C" void exit (int) throw ();' \
2588 'extern "C" void exit (int);' \
2589 'void exit (int);'
2590do
2591 cat >conftest.$ac_ext <<_ACEOF
2592/* confdefs.h. */
2593_ACEOF
2594cat confdefs.h >>conftest.$ac_ext
2595cat >>conftest.$ac_ext <<_ACEOF
2596/* end confdefs.h. */
2597$ac_declaration
2598#include <stdlib.h>
2599int
2600main ()
2601{
2602exit (42);
2603 ;
2604 return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext
2608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2610 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 :
2630else
2631 echo "$as_me: failed program was:" >&5
2632sed 's/^/| /' conftest.$ac_ext >&5
2633
2634continue
2635fi
2636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 cat >conftest.$ac_ext <<_ACEOF
2638/* confdefs.h. */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h. */
2643$ac_declaration
2644int
2645main ()
2646{
2647exit (42);
2648 ;
2649 return 0;
2650}
2651_ACEOF
2652rm -f conftest.$ac_objext
2653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 break
2675else
2676 echo "$as_me: failed program was:" >&5
2677sed 's/^/| /' conftest.$ac_ext >&5
2678
2679fi
2680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2681done
2682rm -f conftest*
2683if test -n "$ac_declaration"; then
2684 echo '#ifdef __cplusplus' >>confdefs.h
2685 echo $ac_declaration >>confdefs.h
2686 echo '#endif' >>confdefs.h
2687fi
2688
2689else
2690 echo "$as_me: failed program was:" >&5
2691sed 's/^/| /' conftest.$ac_ext >&5
2692
2693fi
2694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695ac_ext=c
2696ac_cpp='$CPP $CPPFLAGS'
2697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700DEPDIR="${am__leading_dot}deps"
2701
2702 ac_config_commands="$ac_config_commands depfiles"
2703
2704
2705am_make=${MAKE-make}
2706cat > confinc << 'END'
2707am__doit:
2708 @echo done
2709.PHONY: am__doit
2710END
2711# If we don't find an include directive, just comment out the code.
2712echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2713echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2714am__include="#"
2715am__quote=
2716_am_result=none
2717# First try GNU make style include.
2718echo "include confinc" > confmf
2719# We grep out `Entering directory' and `Leaving directory'
2720# messages which can occur if `w' ends up in MAKEFLAGS.
2721# In particular we don't look at `^make:' because GNU make might
2722# be invoked under some other name (usually "gmake"), in which
2723# case it prints its new name instead of `make'.
2724if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2725 am__include=include
2726 am__quote=
2727 _am_result=GNU
2728fi
2729# Now try BSD make style include.
2730if test "$am__include" = "#"; then
2731 echo '.include "confinc"' > confmf
2732 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2733 am__include=.include
2734 am__quote="\""
2735 _am_result=BSD
2736 fi
2737fi
2738
2739
2740echo "$as_me:$LINENO: result: $_am_result" >&5
2741echo "${ECHO_T}$_am_result" >&6
2742rm -f confinc confmf
2743
2744# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2745if test "${enable_dependency_tracking+set}" = set; then
2746 enableval="$enable_dependency_tracking"
2747
2748fi;
2749if test "x$enable_dependency_tracking" != xno; then
2750 am_depcomp="$ac_aux_dir/depcomp"
2751 AMDEPBACKSLASH='\'
2752fi
2753
2754
2755if test "x$enable_dependency_tracking" != xno; then
2756 AMDEP_TRUE=
2757 AMDEP_FALSE='#'
2758else
2759 AMDEP_TRUE='#'
2760 AMDEP_FALSE=
2761fi
2762
2763
2764
2765
2766depcc="$CC" am_compiler_list=
2767
2768echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2769echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2770if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772else
2773 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2774 # We make a subdir and do the tests there. Otherwise we can end up
2775 # making bogus files that we don't know about and never remove. For
2776 # instance it was reported that on HP-UX the gcc test will end up
2777 # making a dummy file named `D' -- because `-MD' means `put the output
2778 # in D'.
2779 mkdir conftest.dir
2780 # Copy depcomp to subdir because otherwise we won't find it if we're
2781 # using a relative directory.
2782 cp "$am_depcomp" conftest.dir
2783 cd conftest.dir
2784 # We will build objects and dependencies in a subdirectory because
2785 # it helps to detect inapplicable dependency modes. For instance
2786 # both Tru64's cc and ICC support -MD to output dependencies as a
2787 # side effect of compilation, but ICC will put the dependencies in
2788 # the current directory while Tru64 will put them in the object
2789 # directory.
2790 mkdir sub
2791
2792 am_cv_CC_dependencies_compiler_type=none
2793 if test "$am_compiler_list" = ""; then
2794 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2795 fi
2796 for depmode in $am_compiler_list; do
2797 # Setup a source with many dependencies, because some compilers
2798 # like to wrap large dependency lists on column 80 (with \), and
2799 # we should not choose a depcomp mode which is confused by this.
2800 #
2801 # We need to recreate these files for each test, as the compiler may
2802 # overwrite some of them when testing with obscure command lines.
2803 # This happens at least with the AIX C compiler.
2804 : > sub/conftest.c
2805 for i in 1 2 3 4 5 6; do
2806 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2807 : > sub/conftst$i.h
2808 done
2809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2810
2811 case $depmode in
2812 nosideeffect)
2813 # after this tag, mechanisms are not by side-effect, so they'll
2814 # only be used when explicitly requested
2815 if test "x$enable_dependency_tracking" = xyes; then
2816 continue
2817 else
2818 break
2819 fi
2820 ;;
2821 none) break ;;
2822 esac
2823 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2824 # mode. It turns out that the SunPro C++ compiler does not properly
2825 # handle `-M -o', and we need to detect this.
2826 if depmode=$depmode \
2827 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2828 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2829 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2830 >/dev/null 2>conftest.err &&
2831 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2832 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2833 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2834 # icc doesn't choke on unknown options, it will just issue warnings
2835 # (even with -Werror). So we grep stderr for any message
2836 # that says an option was ignored.
2837 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2838 am_cv_CC_dependencies_compiler_type=$depmode
2839 break
2840 fi
2841 fi
2842 done
2843
2844 cd ..
2845 rm -rf conftest.dir
2846else
2847 am_cv_CC_dependencies_compiler_type=none
2848fi
2849
2850fi
2851echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2852echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2853CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2854
2855
2856
2857if
2858 test "x$enable_dependency_tracking" != xno \
2859 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2860 am__fastdepCC_TRUE=
2861 am__fastdepCC_FALSE='#'
2862else
2863 am__fastdepCC_TRUE='#'
2864 am__fastdepCC_FALSE=
2865fi
2866
2867
2868# Find a good install program. We prefer a C program (faster),
2869# so one script is as good as another. But avoid the broken or
2870# incompatible versions:
2871# SysV /etc/install, /usr/sbin/install
2872# SunOS /usr/etc/install
2873# IRIX /sbin/install
2874# AIX /bin/install
2875# AmigaOS /C/install, which installs bootblocks on floppy discs
2876# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2877# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2878# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2879# OS/2's system install, which has a completely different semantic
2880# ./install, which can be erroneously created by make from ./install.sh.
2881echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2882echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2883if test -z "$INSTALL"; then
2884if test "${ac_cv_path_install+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 # Account for people who put trailing slashes in PATH elements.
2893case $as_dir/ in
2894 ./ | .// | /cC/* | \
2895 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2896 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2897 /usr/ucb/* ) ;;
2898 *)
2899 # OSF1 and SCO ODT 3.0 have their own names for install.
2900 # Don't use installbsd from OSF since it installs stuff as root
2901 # by default.
2902 for ac_prog in ginstall scoinst install; do
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2905 if test $ac_prog = install &&
2906 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2907 # AIX install. It has an incompatible calling convention.
2908 :
2909 elif test $ac_prog = install &&
2910 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2911 # program-specific install script used by HP pwplus--don't use.
2912 :
2913 else
2914 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2915 break 3
2916 fi
2917 fi
2918 done
2919 done
2920 ;;
2921esac
2922done
2923
2924
2925fi
2926 if test "${ac_cv_path_install+set}" = set; then
2927 INSTALL=$ac_cv_path_install
2928 else
2929 # As a last resort, use the slow shell script. We don't cache a
2930 # path for INSTALL within a source directory, because that will
2931 # break other packages using the cache if that directory is
2932 # removed, or if the path is relative.
2933 INSTALL=$ac_install_sh
2934 fi
2935fi
2936echo "$as_me:$LINENO: result: $INSTALL" >&5
2937echo "${ECHO_T}$INSTALL" >&6
2938
2939# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2940# It thinks the first close brace ends the variable substitution.
2941test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2942
2943test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2944
2945test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2946
2947if test -n "$ac_tool_prefix"; then
2948 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2949set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2950echo "$as_me:$LINENO: checking for $ac_word" >&5
2951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2952if test "${ac_cv_prog_RANLIB+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2954else
2955 if test -n "$RANLIB"; then
2956 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2957else
2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH
2960do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969done
2970done
2971
2972fi
2973fi
2974RANLIB=$ac_cv_prog_RANLIB
2975if test -n "$RANLIB"; then
2976 echo "$as_me:$LINENO: result: $RANLIB" >&5
2977echo "${ECHO_T}$RANLIB" >&6
2978else
2979 echo "$as_me:$LINENO: result: no" >&5
2980echo "${ECHO_T}no" >&6
2981fi
2982
2983fi
2984if test -z "$ac_cv_prog_RANLIB"; then
2985 ac_ct_RANLIB=$RANLIB
2986 # Extract the first word of "ranlib", so it can be a program name with args.
2987set dummy ranlib; ac_word=$2
2988echo "$as_me:$LINENO: checking for $ac_word" >&5
2989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2990if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993 if test -n "$ac_ct_RANLIB"; then
2994 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2995else
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_ac_ct_RANLIB="ranlib"
3004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007done
3008done
3009
3010 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3011fi
3012fi
3013ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3014if test -n "$ac_ct_RANLIB"; then
3015 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3016echo "${ECHO_T}$ac_ct_RANLIB" >&6
3017else
3018 echo "$as_me:$LINENO: result: no" >&5
3019echo "${ECHO_T}no" >&6
3020fi
3021
3022 RANLIB=$ac_ct_RANLIB
3023else
3024 RANLIB="$ac_cv_prog_RANLIB"
3025fi
3026
3027ac_ext=c
3028ac_cpp='$CPP $CPPFLAGS'
3029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3033echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3034# On Suns, sometimes $CPP names a directory.
3035if test -n "$CPP" && test -d "$CPP"; then
3036 CPP=
3037fi
3038if test -z "$CPP"; then
3039 if test "${ac_cv_prog_CPP+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041else
3042 # Double quotes because CPP needs to be expanded
3043 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3044 do
3045 ac_preproc_ok=false
3046for ac_c_preproc_warn_flag in '' yes
3047do
3048 # Use a header file that comes with gcc, so configuring glibc
3049 # with a fresh cross-compiler works.
3050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3051 # <limits.h> exists even on freestanding compilers.
3052 # On the NeXT, cc -E runs the code through the compiler's parser,
3053 # not just through cpp. "Syntax error" is here to catch this case.
3054 cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h. */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h. */
3060#ifdef __STDC__
3061# include <limits.h>
3062#else
3063# include <assert.h>
3064#endif
3065 Syntax error
3066_ACEOF
3067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3069 ac_status=$?
3070 grep -v '^ *+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } >/dev/null; then
3075 if test -s conftest.err; then
3076 ac_cpp_err=$ac_c_preproc_warn_flag
3077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3078 else
3079 ac_cpp_err=
3080 fi
3081else
3082 ac_cpp_err=yes
3083fi
3084if test -z "$ac_cpp_err"; then
3085 :
3086else
3087 echo "$as_me: failed program was:" >&5
3088sed 's/^/| /' conftest.$ac_ext >&5
3089
3090 # Broken: fails on valid input.
3091continue
3092fi
3093rm -f conftest.err conftest.$ac_ext
3094
3095 # OK, works on sane cases. Now check whether non-existent headers
3096 # can be detected and how.
3097 cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h. */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h. */
3103#include <ac_nonexistent.h>
3104_ACEOF
3105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } >/dev/null; then
3113 if test -s conftest.err; then
3114 ac_cpp_err=$ac_c_preproc_warn_flag
3115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3116 else
3117 ac_cpp_err=
3118 fi
3119else
3120 ac_cpp_err=yes
3121fi
3122if test -z "$ac_cpp_err"; then
3123 # Broken: success on invalid input.
3124continue
3125else
3126 echo "$as_me: failed program was:" >&5
3127sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 # Passes both tests.
3130ac_preproc_ok=:
3131break
3132fi
3133rm -f conftest.err conftest.$ac_ext
3134
3135done
3136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3137rm -f conftest.err conftest.$ac_ext
3138if $ac_preproc_ok; then
3139 break
3140fi
3141
3142 done
3143 ac_cv_prog_CPP=$CPP
3144
3145fi
3146 CPP=$ac_cv_prog_CPP
3147else
3148 ac_cv_prog_CPP=$CPP
3149fi
3150echo "$as_me:$LINENO: result: $CPP" >&5
3151echo "${ECHO_T}$CPP" >&6
3152ac_preproc_ok=false
3153for ac_c_preproc_warn_flag in '' yes
3154do
3155 # Use a header file that comes with gcc, so configuring glibc
3156 # with a fresh cross-compiler works.
3157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3158 # <limits.h> exists even on freestanding compilers.
3159 # On the NeXT, cc -E runs the code through the compiler's parser,
3160 # not just through cpp. "Syntax error" is here to catch this case.
3161 cat >conftest.$ac_ext <<_ACEOF
3162/* confdefs.h. */
3163_ACEOF
3164cat confdefs.h >>conftest.$ac_ext
3165cat >>conftest.$ac_ext <<_ACEOF
3166/* end confdefs.h. */
3167#ifdef __STDC__
3168# include <limits.h>
3169#else
3170# include <assert.h>
3171#endif
3172 Syntax error
3173_ACEOF
3174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } >/dev/null; then
3182 if test -s conftest.err; then
3183 ac_cpp_err=$ac_c_preproc_warn_flag
3184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3185 else
3186 ac_cpp_err=
3187 fi
3188else
3189 ac_cpp_err=yes
3190fi
3191if test -z "$ac_cpp_err"; then
3192 :
3193else
3194 echo "$as_me: failed program was:" >&5
3195sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 # Broken: fails on valid input.
3198continue
3199fi
3200rm -f conftest.err conftest.$ac_ext
3201
3202 # OK, works on sane cases. Now check whether non-existent headers
3203 # can be detected and how.
3204 cat >conftest.$ac_ext <<_ACEOF
3205/* confdefs.h. */
3206_ACEOF
3207cat confdefs.h >>conftest.$ac_ext
3208cat >>conftest.$ac_ext <<_ACEOF
3209/* end confdefs.h. */
3210#include <ac_nonexistent.h>
3211_ACEOF
3212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3214 ac_status=$?
3215 grep -v '^ *+' conftest.er1 >conftest.err
3216 rm -f conftest.er1
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } >/dev/null; then
3220 if test -s conftest.err; then
3221 ac_cpp_err=$ac_c_preproc_warn_flag
3222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3223 else
3224 ac_cpp_err=
3225 fi
3226else
3227 ac_cpp_err=yes
3228fi
3229if test -z "$ac_cpp_err"; then
3230 # Broken: success on invalid input.
3231continue
3232else
3233 echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236 # Passes both tests.
3237ac_preproc_ok=:
3238break
3239fi
3240rm -f conftest.err conftest.$ac_ext
3241
3242done
3243# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3244rm -f conftest.err conftest.$ac_ext
3245if $ac_preproc_ok; then
3246 :
3247else
3248 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3249See \`config.log' for more details." >&5
3250echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3251See \`config.log' for more details." >&2;}
3252 { (exit 1); exit 1; }; }
3253fi
3254
3255ac_ext=c
3256ac_cpp='$CPP $CPPFLAGS'
3257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260
3261# Extract the first word of "ar", so it can be a program name with args.
3262set dummy ar; ac_word=$2
3263echo "$as_me:$LINENO: checking for $ac_word" >&5
3264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3265if test "${ac_cv_prog_AR+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267else
3268 if test -n "$AR"; then
3269 ac_cv_prog_AR="$AR" # Let the user override the test.
3270else
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278 ac_cv_prog_AR="ar"
3279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282done
3283done
3284
3285 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3286fi
3287fi
3288AR=$ac_cv_prog_AR
3289if test -n "$AR"; then
3290 echo "$as_me:$LINENO: result: $AR" >&5
3291echo "${ECHO_T}$AR" >&6
3292else
3293 echo "$as_me:$LINENO: result: no" >&5
3294echo "${ECHO_T}no" >&6
3295fi
3296
3297# Perl is needed for the test suite (only)
3298# Extract the first word of "perl", so it can be a program name with args.
3299set dummy perl; ac_word=$2
3300echo "$as_me:$LINENO: checking for $ac_word" >&5
3301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302if test "${ac_cv_prog_PERL+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305 if test -n "$PERL"; then
3306 ac_cv_prog_PERL="$PERL" # Let the user override the test.
3307else
3308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309for as_dir in $PATH
3310do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_PERL="perl"
3316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319done
3320done
3321
3322 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
3323fi
3324fi
3325PERL=$ac_cv_prog_PERL
3326if test -n "$PERL"; then
3327 echo "$as_me:$LINENO: result: $PERL" >&5
3328echo "${ECHO_T}$PERL" >&6
3329else
3330 echo "$as_me:$LINENO: result: no" >&5
3331echo "${ECHO_T}no" >&6
3332fi
3333
3334
3335# Specialized system macros
3336# Make sure we can run config.sub.
3337$ac_config_sub sun4 >/dev/null 2>&1 ||
3338 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3339echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3340 { (exit 1); exit 1; }; }
3341
3342echo "$as_me:$LINENO: checking build system type" >&5
3343echo $ECHO_N "checking build system type... $ECHO_C" >&6
3344if test "${ac_cv_build+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346else
3347 ac_cv_build_alias=$build_alias
3348test -z "$ac_cv_build_alias" &&
3349 ac_cv_build_alias=`$ac_config_guess`
3350test -z "$ac_cv_build_alias" &&
3351 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3352echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3353 { (exit 1); exit 1; }; }
3354ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3355 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3356echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3357 { (exit 1); exit 1; }; }
3358
3359fi
3360echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3361echo "${ECHO_T}$ac_cv_build" >&6
3362build=$ac_cv_build
3363build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3364build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3365build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3366
3367
3368echo "$as_me:$LINENO: checking host system type" >&5
3369echo $ECHO_N "checking host system type... $ECHO_C" >&6
3370if test "${ac_cv_host+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3372else
3373 ac_cv_host_alias=$host_alias
3374test -z "$ac_cv_host_alias" &&
3375 ac_cv_host_alias=$ac_cv_build_alias
3376ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3377 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3378echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3379 { (exit 1); exit 1; }; }
3380
3381fi
3382echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3383echo "${ECHO_T}$ac_cv_host" >&6
3384host=$ac_cv_host
3385host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3386host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3387host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3388
3389
3390
3391
3392echo "$as_me:$LINENO: checking for egrep" >&5
3393echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3394if test "${ac_cv_prog_egrep+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396else
3397 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3398 then ac_cv_prog_egrep='grep -E'
3399 else ac_cv_prog_egrep='egrep'
3400 fi
3401fi
3402echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3403echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3404 EGREP=$ac_cv_prog_egrep
3405
3406
3407
3408echo "$as_me:$LINENO: checking for AIX" >&5
3409echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3410cat >conftest.$ac_ext <<_ACEOF
3411/* confdefs.h. */
3412_ACEOF
3413cat confdefs.h >>conftest.$ac_ext
3414cat >>conftest.$ac_ext <<_ACEOF
3415/* end confdefs.h. */
3416#ifdef _AIX
3417 yes
3418#endif
3419
3420_ACEOF
3421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422 $EGREP "yes" >/dev/null 2>&1; then
3423 echo "$as_me:$LINENO: result: yes" >&5
3424echo "${ECHO_T}yes" >&6
3425cat >>confdefs.h <<\_ACEOF
3426#define _ALL_SOURCE 1
3427_ACEOF
3428
3429else
3430 echo "$as_me:$LINENO: result: no" >&5
3431echo "${ECHO_T}no" >&6
3432fi
3433rm -f conftest*
3434
3435
3436echo "$as_me:$LINENO: checking for library containing strerror" >&5
3437echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3438if test "${ac_cv_search_strerror+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440else
3441 ac_func_search_save_LIBS=$LIBS
3442ac_cv_search_strerror=no
3443cat >conftest.$ac_ext <<_ACEOF
3444/* confdefs.h. */
3445_ACEOF
3446cat confdefs.h >>conftest.$ac_ext
3447cat >>conftest.$ac_ext <<_ACEOF
3448/* end confdefs.h. */
3449
3450/* Override any gcc2 internal prototype to avoid an error. */
3451#ifdef __cplusplus
3452extern "C"
3453#endif
3454/* We use char because int might match the return type of a gcc2
3455 builtin and then its argument prototype would still apply. */
3456char strerror ();
3457int
3458main ()
3459{
3460strerror ();
3461 ;
3462 return 0;
3463}
3464_ACEOF
3465rm -f conftest.$ac_objext conftest$ac_exeext
3466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3467 (eval $ac_link) 2>conftest.er1
3468 ac_status=$?
3469 grep -v '^ *+' conftest.er1 >conftest.err
3470 rm -f conftest.er1
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } &&
3474 { ac_try='test -z "$ac_c_werror_flag"
3475 || test ! -s conftest.err'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 (eval $ac_try) 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; } &&
3481 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3487 ac_cv_search_strerror="none required"
3488else
3489 echo "$as_me: failed program was:" >&5
3490sed 's/^/| /' conftest.$ac_ext >&5
3491
3492fi
3493rm -f conftest.err conftest.$ac_objext \
3494 conftest$ac_exeext conftest.$ac_ext
3495if test "$ac_cv_search_strerror" = no; then
3496 for ac_lib in cposix; do
3497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3498 cat >conftest.$ac_ext <<_ACEOF
3499/* confdefs.h. */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h. */
3504
3505/* Override any gcc2 internal prototype to avoid an error. */
3506#ifdef __cplusplus
3507extern "C"
3508#endif
3509/* We use char because int might match the return type of a gcc2
3510 builtin and then its argument prototype would still apply. */
3511char strerror ();
3512int
3513main ()
3514{
3515strerror ();
3516 ;
3517 return 0;
3518}
3519_ACEOF
3520rm -f conftest.$ac_objext conftest$ac_exeext
3521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3522 (eval $ac_link) 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } &&
3529 { ac_try='test -z "$ac_c_werror_flag"
3530 || test ! -s conftest.err'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try='test -s conftest$ac_exeext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 (eval $ac_try) 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542 ac_cv_search_strerror="-l$ac_lib"
3543break
3544else
3545 echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
3548fi
3549rm -f conftest.err conftest.$ac_objext \
3550 conftest$ac_exeext conftest.$ac_ext
3551 done
3552fi
3553LIBS=$ac_func_search_save_LIBS
3554fi
3555echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3556echo "${ECHO_T}$ac_cv_search_strerror" >&6
3557if test "$ac_cv_search_strerror" != no; then
3558 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3559
3560fi
3561
3562echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3563echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3564if test "${ac_cv_header_stdc+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3566else
3567 cat >conftest.$ac_ext <<_ACEOF
3568/* confdefs.h. */
3569_ACEOF
3570cat confdefs.h >>conftest.$ac_ext
3571cat >>conftest.$ac_ext <<_ACEOF
3572/* end confdefs.h. */
3573#include <stdlib.h>
3574#include <stdarg.h>
3575#include <string.h>
3576#include <float.h>
3577
3578int
3579main ()
3580{
3581
3582 ;
3583 return 0;
3584}
3585_ACEOF
3586rm -f conftest.$ac_objext
3587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>conftest.er1
3589 ac_status=$?
3590 grep -v '^ *+' conftest.er1 >conftest.err
3591 rm -f conftest.er1
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } &&
3595 { ac_try='test -z "$ac_c_werror_flag"
3596 || test ! -s conftest.err'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 (eval $ac_try) 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; } &&
3602 { ac_try='test -s conftest.$ac_objext'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 (eval $ac_try) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; }; then
3608 ac_cv_header_stdc=yes
3609else
3610 echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
3613ac_cv_header_stdc=no
3614fi
3615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3616
3617if test $ac_cv_header_stdc = yes; then
3618 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3619 cat >conftest.$ac_ext <<_ACEOF
3620/* confdefs.h. */
3621_ACEOF
3622cat confdefs.h >>conftest.$ac_ext
3623cat >>conftest.$ac_ext <<_ACEOF
3624/* end confdefs.h. */
3625#include <string.h>
3626
3627_ACEOF
3628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3629 $EGREP "memchr" >/dev/null 2>&1; then
3630 :
3631else
3632 ac_cv_header_stdc=no
3633fi
3634rm -f conftest*
3635
3636fi
3637
3638if test $ac_cv_header_stdc = yes; then
3639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3640 cat >conftest.$ac_ext <<_ACEOF
3641/* confdefs.h. */
3642_ACEOF
3643cat confdefs.h >>conftest.$ac_ext
3644cat >>conftest.$ac_ext <<_ACEOF
3645/* end confdefs.h. */
3646#include <stdlib.h>
3647
3648_ACEOF
3649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650 $EGREP "free" >/dev/null 2>&1; then
3651 :
3652else
3653 ac_cv_header_stdc=no
3654fi
3655rm -f conftest*
3656
3657fi
3658
3659if test $ac_cv_header_stdc = yes; then
3660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3661 if test "$cross_compiling" = yes; then
3662 :
3663else
3664 cat >conftest.$ac_ext <<_ACEOF
3665/* confdefs.h. */
3666_ACEOF
3667cat confdefs.h >>conftest.$ac_ext
3668cat >>conftest.$ac_ext <<_ACEOF
3669/* end confdefs.h. */
3670#include <ctype.h>
3671#if ((' ' & 0x0FF) == 0x020)
3672# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3673# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3674#else
3675# define ISLOWER(c) \
3676 (('a' <= (c) && (c) <= 'i') \
3677 || ('j' <= (c) && (c) <= 'r') \
3678 || ('s' <= (c) && (c) <= 'z'))
3679# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3680#endif
3681
3682#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3683int
3684main ()
3685{
3686 int i;
3687 for (i = 0; i < 256; i++)
3688 if (XOR (islower (i), ISLOWER (i))
3689 || toupper (i) != TOUPPER (i))
3690 exit(2);
3691 exit (0);
3692}
3693_ACEOF
3694rm -f conftest$ac_exeext
3695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3696 (eval $ac_link) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then
3705 :
3706else
3707 echo "$as_me: program exited with status $ac_status" >&5
3708echo "$as_me: failed program was:" >&5
3709sed 's/^/| /' conftest.$ac_ext >&5
3710
3711( exit $ac_status )
3712ac_cv_header_stdc=no
3713fi
3714rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3715fi
3716fi
3717fi
3718echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3719echo "${ECHO_T}$ac_cv_header_stdc" >&6
3720if test $ac_cv_header_stdc = yes; then
3721
3722cat >>confdefs.h <<\_ACEOF
3723#define STDC_HEADERS 1
3724_ACEOF
3725
3726fi
3727
3728# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3739 inttypes.h stdint.h unistd.h
3740do
3741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3742echo "$as_me:$LINENO: checking for $ac_header" >&5
3743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3744if eval "test \"\${$as_ac_Header+set}\" = set"; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
3747 cat >conftest.$ac_ext <<_ACEOF
3748/* confdefs.h. */
3749_ACEOF
3750cat confdefs.h >>conftest.$ac_ext
3751cat >>conftest.$ac_ext <<_ACEOF
3752/* end confdefs.h. */
3753$ac_includes_default
3754
3755#include <$ac_header>
3756_ACEOF
3757rm -f conftest.$ac_objext
3758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3759 (eval $ac_compile) 2>conftest.er1
3760 ac_status=$?
3761 grep -v '^ *+' conftest.er1 >conftest.err
3762 rm -f conftest.er1
3763 cat conftest.err >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } &&
3766 { ac_try='test -z "$ac_c_werror_flag"
3767 || test ! -s conftest.err'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 (eval $ac_try) 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; } &&
3773 { ac_try='test -s conftest.$ac_objext'
3774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 (eval $ac_try) 2>&5
3776 ac_status=$?
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3779 eval "$as_ac_Header=yes"
3780else
3781 echo "$as_me: failed program was:" >&5
3782sed 's/^/| /' conftest.$ac_ext >&5
3783
3784eval "$as_ac_Header=no"
3785fi
3786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3787fi
3788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3790if test `eval echo '${'$as_ac_Header'}'` = yes; then
3791 cat >>confdefs.h <<_ACEOF
3792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3793_ACEOF
3794
3795fi
3796
3797done
3798
3799
3800if test "${ac_cv_header_minix_config_h+set}" = set; then
3801 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3802echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3803if test "${ac_cv_header_minix_config_h+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805fi
3806echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3807echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3808else
3809 # Is the header compilable?
3810echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3811echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3812cat >conftest.$ac_ext <<_ACEOF
3813/* confdefs.h. */
3814_ACEOF
3815cat confdefs.h >>conftest.$ac_ext
3816cat >>conftest.$ac_ext <<_ACEOF
3817/* end confdefs.h. */
3818$ac_includes_default
3819#include <minix/config.h>
3820_ACEOF
3821rm -f conftest.$ac_objext
3822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823 (eval $ac_compile) 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -z "$ac_c_werror_flag"
3831 || test ! -s conftest.err'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 (eval $ac_try) 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; } &&
3837 { ac_try='test -s conftest.$ac_objext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 ac_header_compiler=yes
3844else
3845 echo "$as_me: failed program was:" >&5
3846sed 's/^/| /' conftest.$ac_ext >&5
3847
3848ac_header_compiler=no
3849fi
3850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3851echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3852echo "${ECHO_T}$ac_header_compiler" >&6
3853
3854# Is the header present?
3855echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3856echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3857cat >conftest.$ac_ext <<_ACEOF
3858/* confdefs.h. */
3859_ACEOF
3860cat confdefs.h >>conftest.$ac_ext
3861cat >>conftest.$ac_ext <<_ACEOF
3862/* end confdefs.h. */
3863#include <minix/config.h>
3864_ACEOF
3865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3867 ac_status=$?
3868 grep -v '^ *+' conftest.er1 >conftest.err
3869 rm -f conftest.er1
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } >/dev/null; then
3873 if test -s conftest.err; then
3874 ac_cpp_err=$ac_c_preproc_warn_flag
3875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3876 else
3877 ac_cpp_err=
3878 fi
3879else
3880 ac_cpp_err=yes
3881fi
3882if test -z "$ac_cpp_err"; then
3883 ac_header_preproc=yes
3884else
3885 echo "$as_me: failed program was:" >&5
3886sed 's/^/| /' conftest.$ac_ext >&5
3887
3888 ac_header_preproc=no
3889fi
3890rm -f conftest.err conftest.$ac_ext
3891echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3892echo "${ECHO_T}$ac_header_preproc" >&6
3893
3894# So? What about this header?
3895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3896 yes:no: )
3897 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3898echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3900echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3901 ac_header_preproc=yes
3902 ;;
3903 no:yes:* )
3904 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3905echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3906 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3907echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3908 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3909echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3910 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3911echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3912 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3913echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3914 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3915echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3916 (
3917 cat <<\_ASBOX
3918## ------------------------------- ##
3919## Report this to [email protected] ##
3920## ------------------------------- ##
3921_ASBOX
3922 ) |
3923 sed "s/^/$as_me: WARNING: /" >&2
3924 ;;
3925esac
3926echo "$as_me:$LINENO: checking for minix/config.h" >&5
3927echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3928if test "${ac_cv_header_minix_config_h+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930else
3931 ac_cv_header_minix_config_h=$ac_header_preproc
3932fi
3933echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3934echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3935
3936fi
3937if test $ac_cv_header_minix_config_h = yes; then
3938 MINIX=yes
3939else
3940 MINIX=
3941fi
3942
3943
3944if test "$MINIX" = yes; then
3945
3946cat >>confdefs.h <<\_ACEOF
3947#define _POSIX_SOURCE 1
3948_ACEOF
3949
3950
3951cat >>confdefs.h <<\_ACEOF
3952#define _POSIX_1_SOURCE 2
3953_ACEOF
3954
3955
3956cat >>confdefs.h <<\_ACEOF
3957#define _MINIX 1
3958_ACEOF
3959
3960fi
3961
3962
3963# Needed for ansi2knr
3964echo "$as_me:$LINENO: checking for function prototypes" >&5
3965echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3966if test "$ac_cv_prog_cc_stdc" != no; then
3967 echo "$as_me:$LINENO: result: yes" >&5
3968echo "${ECHO_T}yes" >&6
3969
3970cat >>confdefs.h <<\_ACEOF
3971#define PROTOTYPES 1
3972_ACEOF
3973
3974
3975cat >>confdefs.h <<\_ACEOF
3976#define __PROTOTYPES 1
3977_ACEOF
3978
3979else
3980 echo "$as_me:$LINENO: result: no" >&5
3981echo "${ECHO_T}no" >&6
3982fi
3983
3984
3985if test "$ac_cv_prog_cc_stdc" != no; then
3986 U= ANSI2KNR=
3987else
3988 U=_ ANSI2KNR=./ansi2knr
3989fi
3990# Ensure some checks needed by ansi2knr itself.
3991
3992
3993for ac_header in string.h
3994do
3995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3996if eval "test \"\${$as_ac_Header+set}\" = set"; then
3997 echo "$as_me:$LINENO: checking for $ac_header" >&5
3998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3999if eval "test \"\${$as_ac_Header+set}\" = set"; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001fi
4002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4003echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4004else
4005 # Is the header compilable?
4006echo "$as_me:$LINENO: checking $ac_header usability" >&5
4007echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4008cat >conftest.$ac_ext <<_ACEOF
4009/* confdefs.h. */
4010_ACEOF
4011cat confdefs.h >>conftest.$ac_ext
4012cat >>conftest.$ac_ext <<_ACEOF
4013/* end confdefs.h. */
4014$ac_includes_default
4015#include <$ac_header>
4016_ACEOF
4017rm -f conftest.$ac_objext
4018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4039 ac_header_compiler=yes
4040else
4041 echo "$as_me: failed program was:" >&5
4042sed 's/^/| /' conftest.$ac_ext >&5
4043
4044ac_header_compiler=no
4045fi
4046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4047echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4048echo "${ECHO_T}$ac_header_compiler" >&6
4049
4050# Is the header present?
4051echo "$as_me:$LINENO: checking $ac_header presence" >&5
4052echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4053cat >conftest.$ac_ext <<_ACEOF
4054/* confdefs.h. */
4055_ACEOF
4056cat confdefs.h >>conftest.$ac_ext
4057cat >>conftest.$ac_ext <<_ACEOF
4058/* end confdefs.h. */
4059#include <$ac_header>
4060_ACEOF
4061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } >/dev/null; then
4069 if test -s conftest.err; then
4070 ac_cpp_err=$ac_c_preproc_warn_flag
4071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4072 else
4073 ac_cpp_err=
4074 fi
4075else
4076 ac_cpp_err=yes
4077fi
4078if test -z "$ac_cpp_err"; then
4079 ac_header_preproc=yes
4080else
4081 echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 ac_header_preproc=no
4085fi
4086rm -f conftest.err conftest.$ac_ext
4087echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4088echo "${ECHO_T}$ac_header_preproc" >&6
4089
4090# So? What about this header?
4091case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4092 yes:no: )
4093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4094echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4096echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4097 ac_header_preproc=yes
4098 ;;
4099 no:yes:* )
4100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4101echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4103echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4105echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4107echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4109echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4111echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4112 (
4113 cat <<\_ASBOX
4114## ------------------------------- ##
4115## Report this to [email protected] ##
4116## ------------------------------- ##
4117_ASBOX
4118 ) |
4119 sed "s/^/$as_me: WARNING: /" >&2
4120 ;;
4121esac
4122echo "$as_me:$LINENO: checking for $ac_header" >&5
4123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4124if eval "test \"\${$as_ac_Header+set}\" = set"; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126else
4127 eval "$as_ac_Header=\$ac_header_preproc"
4128fi
4129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4131
4132fi
4133if test `eval echo '${'$as_ac_Header'}'` = yes; then
4134 cat >>confdefs.h <<_ACEOF
4135#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4136_ACEOF
4137
4138fi
4139
4140done
4141
4142
4143
4144# Enable gettext, in "external" mode.
4145
4146
4147
4148 MKINSTALLDIRS=
4149 if test -n "$ac_aux_dir"; then
4150 case "$ac_aux_dir" in
4151 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4152 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4153 esac
4154 fi
4155 if test -z "$MKINSTALLDIRS"; then
4156 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4157 fi
4158
4159
4160
4161 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4162echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4163 # Check whether --enable-nls or --disable-nls was given.
4164if test "${enable_nls+set}" = set; then
4165 enableval="$enable_nls"
4166 USE_NLS=$enableval
4167else
4168 USE_NLS=yes
4169fi;
4170 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4171echo "${ECHO_T}$USE_NLS" >&6
4172
4173
4174
4175
4176
4177
4178# Prepare PATH_SEPARATOR.
4179# The user is always right.
4180if test "${PATH_SEPARATOR+set}" != set; then
4181 echo "#! /bin/sh" >conf$$.sh
4182 echo "exit 0" >>conf$$.sh
4183 chmod +x conf$$.sh
4184 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4185 PATH_SEPARATOR=';'
4186 else
4187 PATH_SEPARATOR=:
4188 fi
4189 rm -f conf$$.sh
4190fi
4191
4192# Find out how to test for executable files. Don't use a zero-byte file,
4193# as systems may use methods other than mode bits to determine executability.
4194cat >conf$$.file <<_ASEOF
4195#! /bin/sh
4196exit 0
4197_ASEOF
4198chmod +x conf$$.file
4199if test -x conf$$.file >/dev/null 2>&1; then
4200 ac_executable_p="test -x"
4201else
4202 ac_executable_p="test -f"
4203fi
4204rm -f conf$$.file
4205
4206# Extract the first word of "msgfmt", so it can be a program name with args.
4207set dummy msgfmt; ac_word=$2
4208echo "$as_me:$LINENO: checking for $ac_word" >&5
4209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4210if test "${ac_cv_path_MSGFMT+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4212else
4213 case "$MSGFMT" in
4214 [\\/]* | ?:[\\/]*)
4215 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4216 ;;
4217 *)
4218 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4219 for ac_dir in $PATH; do
4220 IFS="$ac_save_IFS"
4221 test -z "$ac_dir" && ac_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4224 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4225 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4226 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4227 break 2
4228 fi
4229 fi
4230 done
4231 done
4232 IFS="$ac_save_IFS"
4233 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4234 ;;
4235esac
4236fi
4237MSGFMT="$ac_cv_path_MSGFMT"
4238if test "$MSGFMT" != ":"; then
4239 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4240echo "${ECHO_T}$MSGFMT" >&6
4241else
4242 echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244fi
4245
4246 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4247set dummy gmsgfmt; ac_word=$2
4248echo "$as_me:$LINENO: checking for $ac_word" >&5
4249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4250if test "${ac_cv_path_GMSGFMT+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4252else
4253 case $GMSGFMT in
4254 [\\/]* | ?:[\\/]*)
4255 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4256 ;;
4257 *)
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH
4260do
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4265 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 break 2
4268 fi
4269done
4270done
4271
4272 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4273 ;;
4274esac
4275fi
4276GMSGFMT=$ac_cv_path_GMSGFMT
4277
4278if test -n "$GMSGFMT"; then
4279 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4280echo "${ECHO_T}$GMSGFMT" >&6
4281else
4282 echo "$as_me:$LINENO: result: no" >&5
4283echo "${ECHO_T}no" >&6
4284fi
4285
4286
4287
4288# Prepare PATH_SEPARATOR.
4289# The user is always right.
4290if test "${PATH_SEPARATOR+set}" != set; then
4291 echo "#! /bin/sh" >conf$$.sh
4292 echo "exit 0" >>conf$$.sh
4293 chmod +x conf$$.sh
4294 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4295 PATH_SEPARATOR=';'
4296 else
4297 PATH_SEPARATOR=:
4298 fi
4299 rm -f conf$$.sh
4300fi
4301
4302# Find out how to test for executable files. Don't use a zero-byte file,
4303# as systems may use methods other than mode bits to determine executability.
4304cat >conf$$.file <<_ASEOF
4305#! /bin/sh
4306exit 0
4307_ASEOF
4308chmod +x conf$$.file
4309if test -x conf$$.file >/dev/null 2>&1; then
4310 ac_executable_p="test -x"
4311else
4312 ac_executable_p="test -f"
4313fi
4314rm -f conf$$.file
4315
4316# Extract the first word of "xgettext", so it can be a program name with args.
4317set dummy xgettext; ac_word=$2
4318echo "$as_me:$LINENO: checking for $ac_word" >&5
4319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320if test "${ac_cv_path_XGETTEXT+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322else
4323 case "$XGETTEXT" in
4324 [\\/]* | ?:[\\/]*)
4325 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4326 ;;
4327 *)
4328 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4329 for ac_dir in $PATH; do
4330 IFS="$ac_save_IFS"
4331 test -z "$ac_dir" && ac_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4334 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4335 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4336 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4337 break 2
4338 fi
4339 fi
4340 done
4341 done
4342 IFS="$ac_save_IFS"
4343 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4344 ;;
4345esac
4346fi
4347XGETTEXT="$ac_cv_path_XGETTEXT"
4348if test "$XGETTEXT" != ":"; then
4349 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4350echo "${ECHO_T}$XGETTEXT" >&6
4351else
4352 echo "$as_me:$LINENO: result: no" >&5
4353echo "${ECHO_T}no" >&6
4354fi
4355
4356 rm -f messages.po
4357
4358
4359# Prepare PATH_SEPARATOR.
4360# The user is always right.
4361if test "${PATH_SEPARATOR+set}" != set; then
4362 echo "#! /bin/sh" >conf$$.sh
4363 echo "exit 0" >>conf$$.sh
4364 chmod +x conf$$.sh
4365 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4366 PATH_SEPARATOR=';'
4367 else
4368 PATH_SEPARATOR=:
4369 fi
4370 rm -f conf$$.sh
4371fi
4372
4373# Find out how to test for executable files. Don't use a zero-byte file,
4374# as systems may use methods other than mode bits to determine executability.
4375cat >conf$$.file <<_ASEOF
4376#! /bin/sh
4377exit 0
4378_ASEOF
4379chmod +x conf$$.file
4380if test -x conf$$.file >/dev/null 2>&1; then
4381 ac_executable_p="test -x"
4382else
4383 ac_executable_p="test -f"
4384fi
4385rm -f conf$$.file
4386
4387# Extract the first word of "msgmerge", so it can be a program name with args.
4388set dummy msgmerge; ac_word=$2
4389echo "$as_me:$LINENO: checking for $ac_word" >&5
4390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4391if test "${ac_cv_path_MSGMERGE+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393else
4394 case "$MSGMERGE" in
4395 [\\/]* | ?:[\\/]*)
4396 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4397 ;;
4398 *)
4399 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4400 for ac_dir in $PATH; do
4401 IFS="$ac_save_IFS"
4402 test -z "$ac_dir" && ac_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4405 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4406 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4407 break 2
4408 fi
4409 fi
4410 done
4411 done
4412 IFS="$ac_save_IFS"
4413 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4414 ;;
4415esac
4416fi
4417MSGMERGE="$ac_cv_path_MSGMERGE"
4418if test "$MSGMERGE" != ":"; then
4419 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4420echo "${ECHO_T}$MSGMERGE" >&6
4421else
4422 echo "$as_me:$LINENO: result: no" >&5
4423echo "${ECHO_T}no" >&6
4424fi
4425
4426
4427 if test "$GMSGFMT" != ":"; then
4428 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4429 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4430 : ;
4431 else
4432 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4433 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4434echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4435 GMSGFMT=":"
4436 fi
4437 fi
4438
4439 if test "$XGETTEXT" != ":"; then
4440 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4441 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4442 : ;
4443 else
4444 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4445echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4446 XGETTEXT=":"
4447 fi
4448 rm -f messages.po
4449 fi
4450
4451 ac_config_commands="$ac_config_commands default-1"
4452
4453
4454
4455 if test "X$prefix" = "XNONE"; then
4456 acl_final_prefix="$ac_default_prefix"
4457 else
4458 acl_final_prefix="$prefix"
4459 fi
4460 if test "X$exec_prefix" = "XNONE"; then
4461 acl_final_exec_prefix='${prefix}'
4462 else
4463 acl_final_exec_prefix="$exec_prefix"
4464 fi
4465 acl_save_prefix="$prefix"
4466 prefix="$acl_final_prefix"
4467 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4468 prefix="$acl_save_prefix"
4469
4470
4471# Check whether --with-gnu-ld or --without-gnu-ld was given.
4472if test "${with_gnu_ld+set}" = set; then
4473 withval="$with_gnu_ld"
4474 test "$withval" = no || with_gnu_ld=yes
4475else
4476 with_gnu_ld=no
4477fi;
4478# Prepare PATH_SEPARATOR.
4479# The user is always right.
4480if test "${PATH_SEPARATOR+set}" != set; then
4481 echo "#! /bin/sh" >conf$$.sh
4482 echo "exit 0" >>conf$$.sh
4483 chmod +x conf$$.sh
4484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4485 PATH_SEPARATOR=';'
4486 else
4487 PATH_SEPARATOR=:
4488 fi
4489 rm -f conf$$.sh
4490fi
4491ac_prog=ld
4492if test "$GCC" = yes; then
4493 # Check if gcc -print-prog-name=ld gives a path.
4494 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4495echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4496 case $host in
4497 *-*-mingw*)
4498 # gcc leaves a trailing carriage return which upsets mingw
4499 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4500 *)
4501 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4502 esac
4503 case $ac_prog in
4504 # Accept absolute paths.
4505 [\\/]* | [A-Za-z]:[\\/]*)
4506 re_direlt='/[^/][^/]*/\.\./'
4507 # Canonicalize the path of ld
4508 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4509 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4510 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4511 done
4512 test -z "$LD" && LD="$ac_prog"
4513 ;;
4514 "")
4515 # If it fails, then pretend we aren't using GCC.
4516 ac_prog=ld
4517 ;;
4518 *)
4519 # If it is relative, then search for the first ld in PATH.
4520 with_gnu_ld=unknown
4521 ;;
4522 esac
4523elif test "$with_gnu_ld" = yes; then
4524 echo "$as_me:$LINENO: checking for GNU ld" >&5
4525echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4526else
4527 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4528echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4529fi
4530if test "${acl_cv_path_LD+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533 if test -z "$LD"; then
4534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4535 for ac_dir in $PATH; do
4536 test -z "$ac_dir" && ac_dir=.
4537 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4538 acl_cv_path_LD="$ac_dir/$ac_prog"
4539 # Check to see if the program is GNU ld. I'd rather use --version,
4540 # but apparently some GNU ld's only accept -v.
4541 # Break only if it was the GNU/non-GNU ld that we prefer.
4542 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4543 *GNU* | *'with BFD'*)
4544 test "$with_gnu_ld" != no && break ;;
4545 *)
4546 test "$with_gnu_ld" != yes && break ;;
4547 esac
4548 fi
4549 done
4550 IFS="$ac_save_ifs"
4551else
4552 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4553fi
4554fi
4555
4556LD="$acl_cv_path_LD"
4557if test -n "$LD"; then
4558 echo "$as_me:$LINENO: result: $LD" >&5
4559echo "${ECHO_T}$LD" >&6
4560else
4561 echo "$as_me:$LINENO: result: no" >&5
4562echo "${ECHO_T}no" >&6
4563fi
4564test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4565echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4566 { (exit 1); exit 1; }; }
4567echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4568echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4569if test "${acl_cv_prog_gnu_ld+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571else
4572 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4573case `$LD -v 2>&1 </dev/null` in
4574*GNU* | *'with BFD'*)
4575 acl_cv_prog_gnu_ld=yes ;;
4576*)
4577 acl_cv_prog_gnu_ld=no ;;
4578esac
4579fi
4580echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4581echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4582with_gnu_ld=$acl_cv_prog_gnu_ld
4583
4584
4585
4586 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4587echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
4588if test "${acl_cv_rpath+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591
4592 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4593 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4594 . ./conftest.sh
4595 rm -f ./conftest.sh
4596 acl_cv_rpath=done
4597
4598fi
4599echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4600echo "${ECHO_T}$acl_cv_rpath" >&6
4601 wl="$acl_cv_wl"
4602 libext="$acl_cv_libext"
4603 shlibext="$acl_cv_shlibext"
4604 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4605 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4606 hardcode_direct="$acl_cv_hardcode_direct"
4607 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4608 # Check whether --enable-rpath or --disable-rpath was given.
4609if test "${enable_rpath+set}" = set; then
4610 enableval="$enable_rpath"
4611 :
4612else
4613 enable_rpath=yes
4614fi;
4615
4616
4617
4618
4619
4620
4621
4622 use_additional=yes
4623
4624 acl_save_prefix="$prefix"
4625 prefix="$acl_final_prefix"
4626 acl_save_exec_prefix="$exec_prefix"
4627 exec_prefix="$acl_final_exec_prefix"
4628
4629 eval additional_includedir=\"$includedir\"
4630 eval additional_libdir=\"$libdir\"
4631
4632 exec_prefix="$acl_save_exec_prefix"
4633 prefix="$acl_save_prefix"
4634
4635
4636# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4637if test "${with_libiconv_prefix+set}" = set; then
4638 withval="$with_libiconv_prefix"
4639
4640 if test "X$withval" = "Xno"; then
4641 use_additional=no
4642 else
4643 if test "X$withval" = "X"; then
4644
4645 acl_save_prefix="$prefix"
4646 prefix="$acl_final_prefix"
4647 acl_save_exec_prefix="$exec_prefix"
4648 exec_prefix="$acl_final_exec_prefix"
4649
4650 eval additional_includedir=\"$includedir\"
4651 eval additional_libdir=\"$libdir\"
4652
4653 exec_prefix="$acl_save_exec_prefix"
4654 prefix="$acl_save_prefix"
4655
4656 else
4657 additional_includedir="$withval/include"
4658 additional_libdir="$withval/lib"
4659 fi
4660 fi
4661
4662fi;
4663 LIBICONV=
4664 LTLIBICONV=
4665 INCICONV=
4666 rpathdirs=
4667 ltrpathdirs=
4668 names_already_handled=
4669 names_next_round='iconv '
4670 while test -n "$names_next_round"; do
4671 names_this_round="$names_next_round"
4672 names_next_round=
4673 for name in $names_this_round; do
4674 already_handled=
4675 for n in $names_already_handled; do
4676 if test "$n" = "$name"; then
4677 already_handled=yes
4678 break
4679 fi
4680 done
4681 if test -z "$already_handled"; then
4682 names_already_handled="$names_already_handled $name"
4683 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4684 eval value=\"\$HAVE_LIB$uppername\"
4685 if test -n "$value"; then
4686 if test "$value" = yes; then
4687 eval value=\"\$LIB$uppername\"
4688 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4689 eval value=\"\$LTLIB$uppername\"
4690 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4691 else
4692 :
4693 fi
4694 else
4695 found_dir=
4696 found_la=
4697 found_so=
4698 found_a=
4699 if test $use_additional = yes; then
4700 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4701 found_dir="$additional_libdir"
4702 found_so="$additional_libdir/lib$name.$shlibext"
4703 if test -f "$additional_libdir/lib$name.la"; then
4704 found_la="$additional_libdir/lib$name.la"
4705 fi
4706 else
4707 if test -f "$additional_libdir/lib$name.$libext"; then
4708 found_dir="$additional_libdir"
4709 found_a="$additional_libdir/lib$name.$libext"
4710 if test -f "$additional_libdir/lib$name.la"; then
4711 found_la="$additional_libdir/lib$name.la"
4712 fi
4713 fi
4714 fi
4715 fi
4716 if test "X$found_dir" = "X"; then
4717 for x in $LDFLAGS $LTLIBICONV; do
4718
4719 acl_save_prefix="$prefix"
4720 prefix="$acl_final_prefix"
4721 acl_save_exec_prefix="$exec_prefix"
4722 exec_prefix="$acl_final_exec_prefix"
4723 eval x=\"$x\"
4724 exec_prefix="$acl_save_exec_prefix"
4725 prefix="$acl_save_prefix"
4726
4727 case "$x" in
4728 -L*)
4729 dir=`echo "X$x" | sed -e 's/^X-L//'`
4730 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4731 found_dir="$dir"
4732 found_so="$dir/lib$name.$shlibext"
4733 if test -f "$dir/lib$name.la"; then
4734 found_la="$dir/lib$name.la"
4735 fi
4736 else
4737 if test -f "$dir/lib$name.$libext"; then
4738 found_dir="$dir"
4739 found_a="$dir/lib$name.$libext"
4740 if test -f "$dir/lib$name.la"; then
4741 found_la="$dir/lib$name.la"
4742 fi
4743 fi
4744 fi
4745 ;;
4746 esac
4747 if test "X$found_dir" != "X"; then
4748 break
4749 fi
4750 done
4751 fi
4752 if test "X$found_dir" != "X"; then
4753 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4754 if test "X$found_so" != "X"; then
4755 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4756 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4757 else
4758 haveit=
4759 for x in $ltrpathdirs; do
4760 if test "X$x" = "X$found_dir"; then
4761 haveit=yes
4762 break
4763 fi
4764 done
4765 if test -z "$haveit"; then
4766 ltrpathdirs="$ltrpathdirs $found_dir"
4767 fi
4768 if test "$hardcode_direct" = yes; then
4769 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4770 else
4771 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4772 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4773 haveit=
4774 for x in $rpathdirs; do
4775 if test "X$x" = "X$found_dir"; then
4776 haveit=yes
4777 break
4778 fi
4779 done
4780 if test -z "$haveit"; then
4781 rpathdirs="$rpathdirs $found_dir"
4782 fi
4783 else
4784 haveit=
4785 for x in $LDFLAGS $LIBICONV; do
4786
4787 acl_save_prefix="$prefix"
4788 prefix="$acl_final_prefix"
4789 acl_save_exec_prefix="$exec_prefix"
4790 exec_prefix="$acl_final_exec_prefix"
4791 eval x=\"$x\"
4792 exec_prefix="$acl_save_exec_prefix"
4793 prefix="$acl_save_prefix"
4794
4795 if test "X$x" = "X-L$found_dir"; then
4796 haveit=yes
4797 break
4798 fi
4799 done
4800 if test -z "$haveit"; then
4801 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4802 fi
4803 if test "$hardcode_minus_L" != no; then
4804 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4805 else
4806 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4807 fi
4808 fi
4809 fi
4810 fi
4811 else
4812 if test "X$found_a" != "X"; then
4813 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4814 else
4815 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4816 fi
4817 fi
4818 additional_includedir=
4819 case "$found_dir" in
4820 */lib | */lib/)
4821 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4822 additional_includedir="$basedir/include"
4823 ;;
4824 esac
4825 if test "X$additional_includedir" != "X"; then
4826 if test "X$additional_includedir" != "X/usr/include"; then
4827 haveit=
4828 if test "X$additional_includedir" = "X/usr/local/include"; then
4829 if test -n "$GCC"; then
4830 case $host_os in
4831 linux*) haveit=yes;;
4832 esac
4833 fi
4834 fi
4835 if test -z "$haveit"; then
4836 for x in $CPPFLAGS $INCICONV; do
4837
4838 acl_save_prefix="$prefix"
4839 prefix="$acl_final_prefix"
4840 acl_save_exec_prefix="$exec_prefix"
4841 exec_prefix="$acl_final_exec_prefix"
4842 eval x=\"$x\"
4843 exec_prefix="$acl_save_exec_prefix"
4844 prefix="$acl_save_prefix"
4845
4846 if test "X$x" = "X-I$additional_includedir"; then
4847 haveit=yes
4848 break
4849 fi
4850 done
4851 if test -z "$haveit"; then
4852 if test -d "$additional_includedir"; then
4853 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4854 fi
4855 fi
4856 fi
4857 fi
4858 fi
4859 if test -n "$found_la"; then
4860 save_libdir="$libdir"
4861 case "$found_la" in
4862 */* | *\\*) . "$found_la" ;;
4863 *) . "./$found_la" ;;
4864 esac
4865 libdir="$save_libdir"
4866 for dep in $dependency_libs; do
4867 case "$dep" in
4868 -L*)
4869 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4870 if test "X$additional_libdir" != "X/usr/lib"; then
4871 haveit=
4872 if test "X$additional_libdir" = "X/usr/local/lib"; then
4873 if test -n "$GCC"; then
4874 case $host_os in
4875 linux*) haveit=yes;;
4876 esac
4877 fi
4878 fi
4879 if test -z "$haveit"; then
4880 haveit=
4881 for x in $LDFLAGS $LIBICONV; do
4882
4883 acl_save_prefix="$prefix"
4884 prefix="$acl_final_prefix"
4885 acl_save_exec_prefix="$exec_prefix"
4886 exec_prefix="$acl_final_exec_prefix"
4887 eval x=\"$x\"
4888 exec_prefix="$acl_save_exec_prefix"
4889 prefix="$acl_save_prefix"
4890
4891 if test "X$x" = "X-L$additional_libdir"; then
4892 haveit=yes
4893 break
4894 fi
4895 done
4896 if test -z "$haveit"; then
4897 if test -d "$additional_libdir"; then
4898 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4899 fi
4900 fi
4901 haveit=
4902 for x in $LDFLAGS $LTLIBICONV; do
4903
4904 acl_save_prefix="$prefix"
4905 prefix="$acl_final_prefix"
4906 acl_save_exec_prefix="$exec_prefix"
4907 exec_prefix="$acl_final_exec_prefix"
4908 eval x=\"$x\"
4909 exec_prefix="$acl_save_exec_prefix"
4910 prefix="$acl_save_prefix"
4911
4912 if test "X$x" = "X-L$additional_libdir"; then
4913 haveit=yes
4914 break
4915 fi
4916 done
4917 if test -z "$haveit"; then
4918 if test -d "$additional_libdir"; then
4919 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4920 fi
4921 fi
4922 fi
4923 fi
4924 ;;
4925 -R*)
4926 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4927 if test "$enable_rpath" != no; then
4928 haveit=
4929 for x in $rpathdirs; do
4930 if test "X$x" = "X$dir"; then
4931 haveit=yes
4932 break
4933 fi
4934 done
4935 if test -z "$haveit"; then
4936 rpathdirs="$rpathdirs $dir"
4937 fi
4938 haveit=
4939 for x in $ltrpathdirs; do
4940 if test "X$x" = "X$dir"; then
4941 haveit=yes
4942 break
4943 fi
4944 done
4945 if test -z "$haveit"; then
4946 ltrpathdirs="$ltrpathdirs $dir"
4947 fi
4948 fi
4949 ;;
4950 -l*)
4951 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4952 ;;
4953 *.la)
4954 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4955 ;;
4956 *)
4957 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4958 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4959 ;;
4960 esac
4961 done
4962 fi
4963 else
4964 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4965 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4966 fi
4967 fi
4968 fi
4969 done
4970 done
4971 if test "X$rpathdirs" != "X"; then
4972 if test -n "$hardcode_libdir_separator"; then
4973 alldirs=
4974 for found_dir in $rpathdirs; do
4975 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4976 done
4977 acl_save_libdir="$libdir"
4978 libdir="$alldirs"
4979 eval flag=\"$hardcode_libdir_flag_spec\"
4980 libdir="$acl_save_libdir"
4981 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4982 else
4983 for found_dir in $rpathdirs; do
4984 acl_save_libdir="$libdir"
4985 libdir="$found_dir"
4986 eval flag=\"$hardcode_libdir_flag_spec\"
4987 libdir="$acl_save_libdir"
4988 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4989 done
4990 fi
4991 fi
4992 if test "X$ltrpathdirs" != "X"; then
4993 for found_dir in $ltrpathdirs; do
4994 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4995 done
4996 fi
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5016echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5017 # Check whether --enable-nls or --disable-nls was given.
5018if test "${enable_nls+set}" = set; then
5019 enableval="$enable_nls"
5020 USE_NLS=$enableval
5021else
5022 USE_NLS=yes
5023fi;
5024 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5025echo "${ECHO_T}$USE_NLS" >&6
5026
5027
5028
5029
5030 LIBINTL=
5031 LTLIBINTL=
5032 POSUB=
5033
5034 if test "$USE_NLS" = "yes"; then
5035 gt_use_preinstalled_gnugettext=no
5036
5037
5038
5039
5040
5041
5042 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5043echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5044if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047 cat >conftest.$ac_ext <<_ACEOF
5048/* confdefs.h. */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h. */
5053#include <libintl.h>
5054extern int _nl_msg_cat_cntr;
5055extern int *_nl_domain_bindings;
5056int
5057main ()
5058{
5059bindtextdomain ("", "");
5060return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5061 ;
5062 return 0;
5063}
5064_ACEOF
5065rm -f conftest.$ac_objext conftest$ac_exeext
5066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5067 (eval $ac_link) 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest$ac_exeext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 gt_cv_func_gnugettext1_libc=yes
5088else
5089 echo "$as_me: failed program was:" >&5
5090sed 's/^/| /' conftest.$ac_ext >&5
5091
5092gt_cv_func_gnugettext1_libc=no
5093fi
5094rm -f conftest.err conftest.$ac_objext \
5095 conftest$ac_exeext conftest.$ac_ext
5096fi
5097echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5098echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5099
5100 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5101
5102
5103
5104
5105
5106 am_save_CPPFLAGS="$CPPFLAGS"
5107
5108 for element in $INCICONV; do
5109 haveit=
5110 for x in $CPPFLAGS; do
5111
5112 acl_save_prefix="$prefix"
5113 prefix="$acl_final_prefix"
5114 acl_save_exec_prefix="$exec_prefix"
5115 exec_prefix="$acl_final_exec_prefix"
5116 eval x=\"$x\"
5117 exec_prefix="$acl_save_exec_prefix"
5118 prefix="$acl_save_prefix"
5119
5120 if test "X$x" = "X$element"; then
5121 haveit=yes
5122 break
5123 fi
5124 done
5125 if test -z "$haveit"; then
5126 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5127 fi
5128 done
5129
5130
5131 echo "$as_me:$LINENO: checking for iconv" >&5
5132echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5133if test "${am_cv_func_iconv+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136
5137 am_cv_func_iconv="no, consider installing GNU libiconv"
5138 am_cv_lib_iconv=no
5139 cat >conftest.$ac_ext <<_ACEOF
5140/* confdefs.h. */
5141_ACEOF
5142cat confdefs.h >>conftest.$ac_ext
5143cat >>conftest.$ac_ext <<_ACEOF
5144/* end confdefs.h. */
5145#include <stdlib.h>
5146#include <iconv.h>
5147int
5148main ()
5149{
5150iconv_t cd = iconv_open("","");
5151 iconv(cd,NULL,NULL,NULL,NULL);
5152 iconv_close(cd);
5153 ;
5154 return 0;
5155}
5156_ACEOF
5157rm -f conftest.$ac_objext conftest$ac_exeext
5158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159 (eval $ac_link) 2>conftest.er1
5160 ac_status=$?
5161 grep -v '^ *+' conftest.er1 >conftest.err
5162 rm -f conftest.er1
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -z "$ac_c_werror_flag"
5167 || test ! -s conftest.err'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 (eval $ac_try) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; } &&
5173 { ac_try='test -s conftest$ac_exeext'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 (eval $ac_try) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5179 am_cv_func_iconv=yes
5180else
5181 echo "$as_me: failed program was:" >&5
5182sed 's/^/| /' conftest.$ac_ext >&5
5183
5184fi
5185rm -f conftest.err conftest.$ac_objext \
5186 conftest$ac_exeext conftest.$ac_ext
5187 if test "$am_cv_func_iconv" != yes; then
5188 am_save_LIBS="$LIBS"
5189 LIBS="$LIBS $LIBICONV"
5190 cat >conftest.$ac_ext <<_ACEOF
5191/* confdefs.h. */
5192_ACEOF
5193cat confdefs.h >>conftest.$ac_ext
5194cat >>conftest.$ac_ext <<_ACEOF
5195/* end confdefs.h. */
5196#include <stdlib.h>
5197#include <iconv.h>
5198int
5199main ()
5200{
5201iconv_t cd = iconv_open("","");
5202 iconv(cd,NULL,NULL,NULL,NULL);
5203 iconv_close(cd);
5204 ;
5205 return 0;
5206}
5207_ACEOF
5208rm -f conftest.$ac_objext conftest$ac_exeext
5209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5210 (eval $ac_link) 2>conftest.er1
5211 ac_status=$?
5212 grep -v '^ *+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -z "$ac_c_werror_flag"
5218 || test ! -s conftest.err'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 (eval $ac_try) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; } &&
5224 { ac_try='test -s conftest$ac_exeext'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 (eval $ac_try) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 am_cv_lib_iconv=yes
5231 am_cv_func_iconv=yes
5232else
5233 echo "$as_me: failed program was:" >&5
5234sed 's/^/| /' conftest.$ac_ext >&5
5235
5236fi
5237rm -f conftest.err conftest.$ac_objext \
5238 conftest$ac_exeext conftest.$ac_ext
5239 LIBS="$am_save_LIBS"
5240 fi
5241
5242fi
5243echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5244echo "${ECHO_T}$am_cv_func_iconv" >&6
5245 if test "$am_cv_func_iconv" = yes; then
5246
5247cat >>confdefs.h <<\_ACEOF
5248#define HAVE_ICONV 1
5249_ACEOF
5250
5251 fi
5252 if test "$am_cv_lib_iconv" = yes; then
5253 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
5254echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
5255 echo "$as_me:$LINENO: result: $LIBICONV" >&5
5256echo "${ECHO_T}$LIBICONV" >&6
5257 else
5258 CPPFLAGS="$am_save_CPPFLAGS"
5259 LIBICONV=
5260 LTLIBICONV=
5261 fi
5262
5263
5264
5265
5266
5267
5268 use_additional=yes
5269
5270 acl_save_prefix="$prefix"
5271 prefix="$acl_final_prefix"
5272 acl_save_exec_prefix="$exec_prefix"
5273 exec_prefix="$acl_final_exec_prefix"
5274
5275 eval additional_includedir=\"$includedir\"
5276 eval additional_libdir=\"$libdir\"
5277
5278 exec_prefix="$acl_save_exec_prefix"
5279 prefix="$acl_save_prefix"
5280
5281
5282# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
5283if test "${with_libintl_prefix+set}" = set; then
5284 withval="$with_libintl_prefix"
5285
5286 if test "X$withval" = "Xno"; then
5287 use_additional=no
5288 else
5289 if test "X$withval" = "X"; then
5290
5291 acl_save_prefix="$prefix"
5292 prefix="$acl_final_prefix"
5293 acl_save_exec_prefix="$exec_prefix"
5294 exec_prefix="$acl_final_exec_prefix"
5295
5296 eval additional_includedir=\"$includedir\"
5297 eval additional_libdir=\"$libdir\"
5298
5299 exec_prefix="$acl_save_exec_prefix"
5300 prefix="$acl_save_prefix"
5301
5302 else
5303 additional_includedir="$withval/include"
5304 additional_libdir="$withval/lib"
5305 fi
5306 fi
5307
5308fi;
5309 LIBINTL=
5310 LTLIBINTL=
5311 INCINTL=
5312 rpathdirs=
5313 ltrpathdirs=
5314 names_already_handled=
5315 names_next_round='intl '
5316 while test -n "$names_next_round"; do
5317 names_this_round="$names_next_round"
5318 names_next_round=
5319 for name in $names_this_round; do
5320 already_handled=
5321 for n in $names_already_handled; do
5322 if test "$n" = "$name"; then
5323 already_handled=yes
5324 break
5325 fi
5326 done
5327 if test -z "$already_handled"; then
5328 names_already_handled="$names_already_handled $name"
5329 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5330 eval value=\"\$HAVE_LIB$uppername\"
5331 if test -n "$value"; then
5332 if test "$value" = yes; then
5333 eval value=\"\$LIB$uppername\"
5334 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5335 eval value=\"\$LTLIB$uppername\"
5336 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5337 else
5338 :
5339 fi
5340 else
5341 found_dir=
5342 found_la=
5343 found_so=
5344 found_a=
5345 if test $use_additional = yes; then
5346 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5347 found_dir="$additional_libdir"
5348 found_so="$additional_libdir/lib$name.$shlibext"
5349 if test -f "$additional_libdir/lib$name.la"; then
5350 found_la="$additional_libdir/lib$name.la"
5351 fi
5352 else
5353 if test -f "$additional_libdir/lib$name.$libext"; then
5354 found_dir="$additional_libdir"
5355 found_a="$additional_libdir/lib$name.$libext"
5356 if test -f "$additional_libdir/lib$name.la"; then
5357 found_la="$additional_libdir/lib$name.la"
5358 fi
5359 fi
5360 fi
5361 fi
5362 if test "X$found_dir" = "X"; then
5363 for x in $LDFLAGS $LTLIBINTL; do
5364
5365 acl_save_prefix="$prefix"
5366 prefix="$acl_final_prefix"
5367 acl_save_exec_prefix="$exec_prefix"
5368 exec_prefix="$acl_final_exec_prefix"
5369 eval x=\"$x\"
5370 exec_prefix="$acl_save_exec_prefix"
5371 prefix="$acl_save_prefix"
5372
5373 case "$x" in
5374 -L*)
5375 dir=`echo "X$x" | sed -e 's/^X-L//'`
5376 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5377 found_dir="$dir"
5378 found_so="$dir/lib$name.$shlibext"
5379 if test -f "$dir/lib$name.la"; then
5380 found_la="$dir/lib$name.la"
5381 fi
5382 else
5383 if test -f "$dir/lib$name.$libext"; then
5384 found_dir="$dir"
5385 found_a="$dir/lib$name.$libext"
5386 if test -f "$dir/lib$name.la"; then
5387 found_la="$dir/lib$name.la"
5388 fi
5389 fi
5390 fi
5391 ;;
5392 esac
5393 if test "X$found_dir" != "X"; then
5394 break
5395 fi
5396 done
5397 fi
5398 if test "X$found_dir" != "X"; then
5399 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5400 if test "X$found_so" != "X"; then
5401 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5402 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5403 else
5404 haveit=
5405 for x in $ltrpathdirs; do
5406 if test "X$x" = "X$found_dir"; then
5407 haveit=yes
5408 break
5409 fi
5410 done
5411 if test -z "$haveit"; then
5412 ltrpathdirs="$ltrpathdirs $found_dir"
5413 fi
5414 if test "$hardcode_direct" = yes; then
5415 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5416 else
5417 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5418 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5419 haveit=
5420 for x in $rpathdirs; do
5421 if test "X$x" = "X$found_dir"; then
5422 haveit=yes
5423 break
5424 fi
5425 done
5426 if test -z "$haveit"; then
5427 rpathdirs="$rpathdirs $found_dir"
5428 fi
5429 else
5430 haveit=
5431 for x in $LDFLAGS $LIBINTL; do
5432
5433 acl_save_prefix="$prefix"
5434 prefix="$acl_final_prefix"
5435 acl_save_exec_prefix="$exec_prefix"
5436 exec_prefix="$acl_final_exec_prefix"
5437 eval x=\"$x\"
5438 exec_prefix="$acl_save_exec_prefix"
5439 prefix="$acl_save_prefix"
5440
5441 if test "X$x" = "X-L$found_dir"; then
5442 haveit=yes
5443 break
5444 fi
5445 done
5446 if test -z "$haveit"; then
5447 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5448 fi
5449 if test "$hardcode_minus_L" != no; then
5450 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5451 else
5452 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5453 fi
5454 fi
5455 fi
5456 fi
5457 else
5458 if test "X$found_a" != "X"; then
5459 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5460 else
5461 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5462 fi
5463 fi
5464 additional_includedir=
5465 case "$found_dir" in
5466 */lib | */lib/)
5467 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5468 additional_includedir="$basedir/include"
5469 ;;
5470 esac
5471 if test "X$additional_includedir" != "X"; then
5472 if test "X$additional_includedir" != "X/usr/include"; then
5473 haveit=
5474 if test "X$additional_includedir" = "X/usr/local/include"; then
5475 if test -n "$GCC"; then
5476 case $host_os in
5477 linux*) haveit=yes;;
5478 esac
5479 fi
5480 fi
5481 if test -z "$haveit"; then
5482 for x in $CPPFLAGS $INCINTL; do
5483
5484 acl_save_prefix="$prefix"
5485 prefix="$acl_final_prefix"
5486 acl_save_exec_prefix="$exec_prefix"
5487 exec_prefix="$acl_final_exec_prefix"
5488 eval x=\"$x\"
5489 exec_prefix="$acl_save_exec_prefix"
5490 prefix="$acl_save_prefix"
5491
5492 if test "X$x" = "X-I$additional_includedir"; then
5493 haveit=yes
5494 break
5495 fi
5496 done
5497 if test -z "$haveit"; then
5498 if test -d "$additional_includedir"; then
5499 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5500 fi
5501 fi
5502 fi
5503 fi
5504 fi
5505 if test -n "$found_la"; then
5506 save_libdir="$libdir"
5507 case "$found_la" in
5508 */* | *\\*) . "$found_la" ;;
5509 *) . "./$found_la" ;;
5510 esac
5511 libdir="$save_libdir"
5512 for dep in $dependency_libs; do
5513 case "$dep" in
5514 -L*)
5515 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5516 if test "X$additional_libdir" != "X/usr/lib"; then
5517 haveit=
5518 if test "X$additional_libdir" = "X/usr/local/lib"; then
5519 if test -n "$GCC"; then
5520 case $host_os in
5521 linux*) haveit=yes;;
5522 esac
5523 fi
5524 fi
5525 if test -z "$haveit"; then
5526 haveit=
5527 for x in $LDFLAGS $LIBINTL; do
5528
5529 acl_save_prefix="$prefix"
5530 prefix="$acl_final_prefix"
5531 acl_save_exec_prefix="$exec_prefix"
5532 exec_prefix="$acl_final_exec_prefix"
5533 eval x=\"$x\"
5534 exec_prefix="$acl_save_exec_prefix"
5535 prefix="$acl_save_prefix"
5536
5537 if test "X$x" = "X-L$additional_libdir"; then
5538 haveit=yes
5539 break
5540 fi
5541 done
5542 if test -z "$haveit"; then
5543 if test -d "$additional_libdir"; then
5544 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5545 fi
5546 fi
5547 haveit=
5548 for x in $LDFLAGS $LTLIBINTL; do
5549
5550 acl_save_prefix="$prefix"
5551 prefix="$acl_final_prefix"
5552 acl_save_exec_prefix="$exec_prefix"
5553 exec_prefix="$acl_final_exec_prefix"
5554 eval x=\"$x\"
5555 exec_prefix="$acl_save_exec_prefix"
5556 prefix="$acl_save_prefix"
5557
5558 if test "X$x" = "X-L$additional_libdir"; then
5559 haveit=yes
5560 break
5561 fi
5562 done
5563 if test -z "$haveit"; then
5564 if test -d "$additional_libdir"; then
5565 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5566 fi
5567 fi
5568 fi
5569 fi
5570 ;;
5571 -R*)
5572 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5573 if test "$enable_rpath" != no; then
5574 haveit=
5575 for x in $rpathdirs; do
5576 if test "X$x" = "X$dir"; then
5577 haveit=yes
5578 break
5579 fi
5580 done
5581 if test -z "$haveit"; then
5582 rpathdirs="$rpathdirs $dir"
5583 fi
5584 haveit=
5585 for x in $ltrpathdirs; do
5586 if test "X$x" = "X$dir"; then
5587 haveit=yes
5588 break
5589 fi
5590 done
5591 if test -z "$haveit"; then
5592 ltrpathdirs="$ltrpathdirs $dir"
5593 fi
5594 fi
5595 ;;
5596 -l*)
5597 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5598 ;;
5599 *.la)
5600 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5601 ;;
5602 *)
5603 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5604 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5605 ;;
5606 esac
5607 done
5608 fi
5609 else
5610 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5611 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5612 fi
5613 fi
5614 fi
5615 done
5616 done
5617 if test "X$rpathdirs" != "X"; then
5618 if test -n "$hardcode_libdir_separator"; then
5619 alldirs=
5620 for found_dir in $rpathdirs; do
5621 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5622 done
5623 acl_save_libdir="$libdir"
5624 libdir="$alldirs"
5625 eval flag=\"$hardcode_libdir_flag_spec\"
5626 libdir="$acl_save_libdir"
5627 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5628 else
5629 for found_dir in $rpathdirs; do
5630 acl_save_libdir="$libdir"
5631 libdir="$found_dir"
5632 eval flag=\"$hardcode_libdir_flag_spec\"
5633 libdir="$acl_save_libdir"
5634 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5635 done
5636 fi
5637 fi
5638 if test "X$ltrpathdirs" != "X"; then
5639 for found_dir in $ltrpathdirs; do
5640 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5641 done
5642 fi
5643
5644 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
5645echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
5646if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648else
5649 gt_save_CPPFLAGS="$CPPFLAGS"
5650 CPPFLAGS="$CPPFLAGS $INCINTL"
5651 gt_save_LIBS="$LIBS"
5652 LIBS="$LIBS $LIBINTL"
5653 cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h. */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h. */
5659#include <libintl.h>
5660extern int _nl_msg_cat_cntr;
5661extern
5662#ifdef __cplusplus
5663"C"
5664#endif
5665const char *_nl_expand_alias ();
5666int
5667main ()
5668{
5669bindtextdomain ("", "");
5670return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5671 ;
5672 return 0;
5673}
5674_ACEOF
5675rm -f conftest.$ac_objext conftest$ac_exeext
5676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5677 (eval $ac_link) 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -z "$ac_c_werror_flag"
5685 || test ! -s conftest.err'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 (eval $ac_try) 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try='test -s conftest$ac_exeext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 gt_cv_func_gnugettext1_libintl=yes
5698else
5699 echo "$as_me: failed program was:" >&5
5700sed 's/^/| /' conftest.$ac_ext >&5
5701
5702gt_cv_func_gnugettext1_libintl=no
5703fi
5704rm -f conftest.err conftest.$ac_objext \
5705 conftest$ac_exeext conftest.$ac_ext
5706 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5707 LIBS="$LIBS $LIBICONV"
5708 cat >conftest.$ac_ext <<_ACEOF
5709/* confdefs.h. */
5710_ACEOF
5711cat confdefs.h >>conftest.$ac_ext
5712cat >>conftest.$ac_ext <<_ACEOF
5713/* end confdefs.h. */
5714#include <libintl.h>
5715extern int _nl_msg_cat_cntr;
5716extern
5717#ifdef __cplusplus
5718"C"
5719#endif
5720const char *_nl_expand_alias ();
5721int
5722main ()
5723{
5724bindtextdomain ("", "");
5725return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5726 ;
5727 return 0;
5728}
5729_ACEOF
5730rm -f conftest.$ac_objext conftest$ac_exeext
5731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5732 (eval $ac_link) 2>conftest.er1
5733 ac_status=$?
5734 grep -v '^ *+' conftest.er1 >conftest.err
5735 rm -f conftest.er1
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_c_werror_flag"
5740 || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest$ac_exeext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 LIBINTL="$LIBINTL $LIBICONV"
5753 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5754 gt_cv_func_gnugettext1_libintl=yes
5755
5756else
5757 echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760fi
5761rm -f conftest.err conftest.$ac_objext \
5762 conftest$ac_exeext conftest.$ac_ext
5763 fi
5764 CPPFLAGS="$gt_save_CPPFLAGS"
5765 LIBS="$gt_save_LIBS"
5766fi
5767echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
5768echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
5769 fi
5770
5771 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5772 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5773 && test "$PACKAGE" != gettext-runtime \
5774 && test "$PACKAGE" != gettext-tools; }; then
5775 gt_use_preinstalled_gnugettext=yes
5776 else
5777 LIBINTL=
5778 LTLIBINTL=
5779 INCINTL=
5780 fi
5781
5782
5783
5784 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5785 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5786
5787cat >>confdefs.h <<\_ACEOF
5788#define ENABLE_NLS 1
5789_ACEOF
5790
5791 else
5792 USE_NLS=no
5793 fi
5794 fi
5795
5796 echo "$as_me:$LINENO: checking whether to use NLS" >&5
5797echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
5798 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5799echo "${ECHO_T}$USE_NLS" >&6
5800 if test "$USE_NLS" = "yes"; then
5801 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
5802echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
5803 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5804 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5805 gt_source="external libintl"
5806 else
5807 gt_source="libc"
5808 fi
5809 else
5810 gt_source="included intl directory"
5811 fi
5812 echo "$as_me:$LINENO: result: $gt_source" >&5
5813echo "${ECHO_T}$gt_source" >&6
5814 fi
5815
5816 if test "$USE_NLS" = "yes"; then
5817
5818 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5819 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5820 echo "$as_me:$LINENO: checking how to link with libintl" >&5
5821echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
5822 echo "$as_me:$LINENO: result: $LIBINTL" >&5
5823echo "${ECHO_T}$LIBINTL" >&6
5824
5825 for element in $INCINTL; do
5826 haveit=
5827 for x in $CPPFLAGS; do
5828
5829 acl_save_prefix="$prefix"
5830 prefix="$acl_final_prefix"
5831 acl_save_exec_prefix="$exec_prefix"
5832 exec_prefix="$acl_final_exec_prefix"
5833 eval x=\"$x\"
5834 exec_prefix="$acl_save_exec_prefix"
5835 prefix="$acl_save_prefix"
5836
5837 if test "X$x" = "X$element"; then
5838 haveit=yes
5839 break
5840 fi
5841 done
5842 if test -z "$haveit"; then
5843 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5844 fi
5845 done
5846
5847 fi
5848
5849
5850cat >>confdefs.h <<\_ACEOF
5851#define HAVE_GETTEXT 1
5852_ACEOF
5853
5854
5855cat >>confdefs.h <<\_ACEOF
5856#define HAVE_DCGETTEXT 1
5857_ACEOF
5858
5859 fi
5860
5861 POSUB=po
5862 fi
5863
5864
5865
5866 INTLLIBS="$LIBINTL"
5867
5868
5869
5870
5871
5872
5873
5874# This test must come as early as possible after the compiler configuration
5875# tests, because the choice of the file model can (in principle) affect
5876# whether functions and headers are available, whether they work, etc.
5877# Check whether --enable-largefile or --disable-largefile was given.
5878if test "${enable_largefile+set}" = set; then
5879 enableval="$enable_largefile"
5880
5881fi;
5882if test "$enable_largefile" != no; then
5883
5884 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5885echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
5886if test "${ac_cv_sys_largefile_CC+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889 ac_cv_sys_largefile_CC=no
5890 if test "$GCC" != yes; then
5891 ac_save_CC=$CC
5892 while :; do
5893 # IRIX 6.2 and later do not support large files by default,
5894 # so use the C compiler's -n32 option if that helps.
5895 cat >conftest.$ac_ext <<_ACEOF
5896/* confdefs.h. */
5897_ACEOF
5898cat confdefs.h >>conftest.$ac_ext
5899cat >>conftest.$ac_ext <<_ACEOF
5900/* end confdefs.h. */
5901#include <sys/types.h>
5902 /* Check that off_t can represent 2**63 - 1 correctly.
5903 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5904 since some C++ compilers masquerading as C compilers
5905 incorrectly reject 9223372036854775807. */
5906#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5907 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5908 && LARGE_OFF_T % 2147483647 == 1)
5909 ? 1 : -1];
5910int
5911main ()
5912{
5913
5914 ;
5915 return 0;
5916}
5917_ACEOF
5918 rm -f conftest.$ac_objext
5919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_c_werror_flag"
5928 || test ! -s conftest.err'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 break
5941else
5942 echo "$as_me: failed program was:" >&5
5943sed 's/^/| /' conftest.$ac_ext >&5
5944
5945fi
5946rm -f conftest.err conftest.$ac_objext
5947 CC="$CC -n32"
5948 rm -f conftest.$ac_objext
5949if { (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"
5958 || test ! -s conftest.err'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 (eval $ac_try) 2>&5
5961 ac_status=$?
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; } &&
5964 { ac_try='test -s conftest.$ac_objext'
5965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 (eval $ac_try) 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
5970 ac_cv_sys_largefile_CC=' -n32'; break
5971else
5972 echo "$as_me: failed program was:" >&5
5973sed 's/^/| /' conftest.$ac_ext >&5
5974
5975fi
5976rm -f conftest.err conftest.$ac_objext
5977 break
5978 done
5979 CC=$ac_save_CC
5980 rm -f conftest.$ac_ext
5981 fi
5982fi
5983echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5984echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5985 if test "$ac_cv_sys_largefile_CC" != no; then
5986 CC=$CC$ac_cv_sys_largefile_CC
5987 fi
5988
5989 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5990echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5991if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994 while :; do
5995 ac_cv_sys_file_offset_bits=no
5996 cat >conftest.$ac_ext <<_ACEOF
5997/* confdefs.h. */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h. */
6002#include <sys/types.h>
6003 /* Check that off_t can represent 2**63 - 1 correctly.
6004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6005 since some C++ compilers masquerading as C compilers
6006 incorrectly reject 9223372036854775807. */
6007#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6009 && LARGE_OFF_T % 2147483647 == 1)
6010 ? 1 : -1];
6011int
6012main ()
6013{
6014
6015 ;
6016 return 0;
6017}
6018_ACEOF
6019rm -f conftest.$ac_objext
6020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021 (eval $ac_compile) 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
6028 { ac_try='test -z "$ac_c_werror_flag"
6029 || test ! -s conftest.err'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; } &&
6035 { ac_try='test -s conftest.$ac_objext'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
6041 break
6042else
6043 echo "$as_me: failed program was:" >&5
6044sed 's/^/| /' conftest.$ac_ext >&5
6045
6046fi
6047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6048 cat >conftest.$ac_ext <<_ACEOF
6049/* confdefs.h. */
6050_ACEOF
6051cat confdefs.h >>conftest.$ac_ext
6052cat >>conftest.$ac_ext <<_ACEOF
6053/* end confdefs.h. */
6054#define _FILE_OFFSET_BITS 64
6055#include <sys/types.h>
6056 /* Check that off_t can represent 2**63 - 1 correctly.
6057 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6058 since some C++ compilers masquerading as C compilers
6059 incorrectly reject 9223372036854775807. */
6060#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6061 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6062 && LARGE_OFF_T % 2147483647 == 1)
6063 ? 1 : -1];
6064int
6065main ()
6066{
6067
6068 ;
6069 return 0;
6070}
6071_ACEOF
6072rm -f conftest.$ac_objext
6073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6074 (eval $ac_compile) 2>conftest.er1
6075 ac_status=$?
6076 grep -v '^ *+' conftest.er1 >conftest.err
6077 rm -f conftest.er1
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -z "$ac_c_werror_flag"
6082 || test ! -s conftest.err'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; } &&
6088 { ac_try='test -s conftest.$ac_objext'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 (eval $ac_try) 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_cv_sys_file_offset_bits=64; break
6095else
6096 echo "$as_me: failed program was:" >&5
6097sed 's/^/| /' conftest.$ac_ext >&5
6098
6099fi
6100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6101 break
6102done
6103fi
6104echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6105echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
6106if test "$ac_cv_sys_file_offset_bits" != no; then
6107
6108cat >>confdefs.h <<_ACEOF
6109#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6110_ACEOF
6111
6112fi
6113rm -f conftest*
6114 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6115echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
6116if test "${ac_cv_sys_large_files+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118else
6119 while :; do
6120 ac_cv_sys_large_files=no
6121 cat >conftest.$ac_ext <<_ACEOF
6122/* confdefs.h. */
6123_ACEOF
6124cat confdefs.h >>conftest.$ac_ext
6125cat >>conftest.$ac_ext <<_ACEOF
6126/* end confdefs.h. */
6127#include <sys/types.h>
6128 /* Check that off_t can represent 2**63 - 1 correctly.
6129 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6130 since some C++ compilers masquerading as C compilers
6131 incorrectly reject 9223372036854775807. */
6132#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6134 && LARGE_OFF_T % 2147483647 == 1)
6135 ? 1 : -1];
6136int
6137main ()
6138{
6139
6140 ;
6141 return 0;
6142}
6143_ACEOF
6144rm -f conftest.$ac_objext
6145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6146 (eval $ac_compile) 2>conftest.er1
6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } &&
6153 { ac_try='test -z "$ac_c_werror_flag"
6154 || test ! -s conftest.err'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest.$ac_objext'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 (eval $ac_try) 2>&5
6163 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 break
6167else
6168 echo "$as_me: failed program was:" >&5
6169sed 's/^/| /' conftest.$ac_ext >&5
6170
6171fi
6172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6173 cat >conftest.$ac_ext <<_ACEOF
6174/* confdefs.h. */
6175_ACEOF
6176cat confdefs.h >>conftest.$ac_ext
6177cat >>conftest.$ac_ext <<_ACEOF
6178/* end confdefs.h. */
6179#define _LARGE_FILES 1
6180#include <sys/types.h>
6181 /* Check that off_t can represent 2**63 - 1 correctly.
6182 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6183 since some C++ compilers masquerading as C compilers
6184 incorrectly reject 9223372036854775807. */
6185#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6187 && LARGE_OFF_T % 2147483647 == 1)
6188 ? 1 : -1];
6189int
6190main ()
6191{
6192
6193 ;
6194 return 0;
6195}
6196_ACEOF
6197rm -f conftest.$ac_objext
6198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6199 (eval $ac_compile) 2>conftest.er1
6200 ac_status=$?
6201 grep -v '^ *+' conftest.er1 >conftest.err
6202 rm -f conftest.er1
6203 cat conftest.err >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } &&
6206 { ac_try='test -z "$ac_c_werror_flag"
6207 || test ! -s conftest.err'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 (eval $ac_try) 2>&5
6210 ac_status=$?
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; } &&
6213 { ac_try='test -s conftest.$ac_objext'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
6219 ac_cv_sys_large_files=1; break
6220else
6221 echo "$as_me: failed program was:" >&5
6222sed 's/^/| /' conftest.$ac_ext >&5
6223
6224fi
6225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6226 break
6227done
6228fi
6229echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6230echo "${ECHO_T}$ac_cv_sys_large_files" >&6
6231if test "$ac_cv_sys_large_files" != no; then
6232
6233cat >>confdefs.h <<_ACEOF
6234#define _LARGE_FILES $ac_cv_sys_large_files
6235_ACEOF
6236
6237fi
6238rm -f conftest*
6239fi
6240
6241
6242# Checks for libraries.
6243echo "$as_me:$LINENO: checking for library containing getpwnam" >&5
6244echo $ECHO_N "checking for library containing getpwnam... $ECHO_C" >&6
6245if test "${ac_cv_search_getpwnam+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247else
6248 ac_func_search_save_LIBS=$LIBS
6249ac_cv_search_getpwnam=no
6250cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h. */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h. */
6256
6257/* Override any gcc2 internal prototype to avoid an error. */
6258#ifdef __cplusplus
6259extern "C"
6260#endif
6261/* We use char because int might match the return type of a gcc2
6262 builtin and then its argument prototype would still apply. */
6263char getpwnam ();
6264int
6265main ()
6266{
6267getpwnam ();
6268 ;
6269 return 0;
6270}
6271_ACEOF
6272rm -f conftest.$ac_objext conftest$ac_exeext
6273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6274 (eval $ac_link) 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -z "$ac_c_werror_flag"
6282 || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest$ac_exeext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_cv_search_getpwnam="none required"
6295else
6296 echo "$as_me: failed program was:" >&5
6297sed 's/^/| /' conftest.$ac_ext >&5
6298
6299fi
6300rm -f conftest.err conftest.$ac_objext \
6301 conftest$ac_exeext conftest.$ac_ext
6302if test "$ac_cv_search_getpwnam" = no; then
6303 for ac_lib in sun; do
6304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6305 cat >conftest.$ac_ext <<_ACEOF
6306/* confdefs.h. */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h. */
6311
6312/* Override any gcc2 internal prototype to avoid an error. */
6313#ifdef __cplusplus
6314extern "C"
6315#endif
6316/* We use char because int might match the return type of a gcc2
6317 builtin and then its argument prototype would still apply. */
6318char getpwnam ();
6319int
6320main ()
6321{
6322getpwnam ();
6323 ;
6324 return 0;
6325}
6326_ACEOF
6327rm -f conftest.$ac_objext conftest$ac_exeext
6328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6329 (eval $ac_link) 2>conftest.er1
6330 ac_status=$?
6331 grep -v '^ *+' conftest.er1 >conftest.err
6332 rm -f conftest.er1
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try='test -z "$ac_c_werror_flag"
6337 || test ! -s conftest.err'
6338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 (eval $ac_try) 2>&5
6340 ac_status=$?
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; } &&
6343 { ac_try='test -s conftest$ac_exeext'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 (eval $ac_try) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
6349 ac_cv_search_getpwnam="-l$ac_lib"
6350break
6351else
6352 echo "$as_me: failed program was:" >&5
6353sed 's/^/| /' conftest.$ac_ext >&5
6354
6355fi
6356rm -f conftest.err conftest.$ac_objext \
6357 conftest$ac_exeext conftest.$ac_ext
6358 done
6359fi
6360LIBS=$ac_func_search_save_LIBS
6361fi
6362echo "$as_me:$LINENO: result: $ac_cv_search_getpwnam" >&5
6363echo "${ECHO_T}$ac_cv_search_getpwnam" >&6
6364if test "$ac_cv_search_getpwnam" != no; then
6365 test "$ac_cv_search_getpwnam" = "none required" || LIBS="$ac_cv_search_getpwnam $LIBS"
6366
6367fi
6368
6369
6370# Checks for header files.
6371echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6372echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6373if test "${ac_cv_header_stdc+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376 cat >conftest.$ac_ext <<_ACEOF
6377/* confdefs.h. */
6378_ACEOF
6379cat confdefs.h >>conftest.$ac_ext
6380cat >>conftest.$ac_ext <<_ACEOF
6381/* end confdefs.h. */
6382#include <stdlib.h>
6383#include <stdarg.h>
6384#include <string.h>
6385#include <float.h>
6386
6387int
6388main ()
6389{
6390
6391 ;
6392 return 0;
6393}
6394_ACEOF
6395rm -f conftest.$ac_objext
6396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397 (eval $ac_compile) 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -z "$ac_c_werror_flag"
6405 || test ! -s conftest.err'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 (eval $ac_try) 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; } &&
6411 { ac_try='test -s conftest.$ac_objext'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 (eval $ac_try) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; }; then
6417 ac_cv_header_stdc=yes
6418else
6419 echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
6422ac_cv_header_stdc=no
6423fi
6424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6425
6426if test $ac_cv_header_stdc = yes; then
6427 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6428 cat >conftest.$ac_ext <<_ACEOF
6429/* confdefs.h. */
6430_ACEOF
6431cat confdefs.h >>conftest.$ac_ext
6432cat >>conftest.$ac_ext <<_ACEOF
6433/* end confdefs.h. */
6434#include <string.h>
6435
6436_ACEOF
6437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6438 $EGREP "memchr" >/dev/null 2>&1; then
6439 :
6440else
6441 ac_cv_header_stdc=no
6442fi
6443rm -f conftest*
6444
6445fi
6446
6447if test $ac_cv_header_stdc = yes; then
6448 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6449 cat >conftest.$ac_ext <<_ACEOF
6450/* confdefs.h. */
6451_ACEOF
6452cat confdefs.h >>conftest.$ac_ext
6453cat >>conftest.$ac_ext <<_ACEOF
6454/* end confdefs.h. */
6455#include <stdlib.h>
6456
6457_ACEOF
6458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6459 $EGREP "free" >/dev/null 2>&1; then
6460 :
6461else
6462 ac_cv_header_stdc=no
6463fi
6464rm -f conftest*
6465
6466fi
6467
6468if test $ac_cv_header_stdc = yes; then
6469 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6470 if test "$cross_compiling" = yes; then
6471 :
6472else
6473 cat >conftest.$ac_ext <<_ACEOF
6474/* confdefs.h. */
6475_ACEOF
6476cat confdefs.h >>conftest.$ac_ext
6477cat >>conftest.$ac_ext <<_ACEOF
6478/* end confdefs.h. */
6479#include <ctype.h>
6480#if ((' ' & 0x0FF) == 0x020)
6481# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6482# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6483#else
6484# define ISLOWER(c) \
6485 (('a' <= (c) && (c) <= 'i') \
6486 || ('j' <= (c) && (c) <= 'r') \
6487 || ('s' <= (c) && (c) <= 'z'))
6488# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6489#endif
6490
6491#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6492int
6493main ()
6494{
6495 int i;
6496 for (i = 0; i < 256; i++)
6497 if (XOR (islower (i), ISLOWER (i))
6498 || toupper (i) != TOUPPER (i))
6499 exit(2);
6500 exit (0);
6501}
6502_ACEOF
6503rm -f conftest$ac_exeext
6504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505 (eval $ac_link) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6514 :
6515else
6516 echo "$as_me: program exited with status $ac_status" >&5
6517echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
6519
6520( exit $ac_status )
6521ac_cv_header_stdc=no
6522fi
6523rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6524fi
6525fi
6526fi
6527echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6528echo "${ECHO_T}$ac_cv_header_stdc" >&6
6529if test $ac_cv_header_stdc = yes; then
6530
6531cat >>confdefs.h <<\_ACEOF
6532#define STDC_HEADERS 1
6533_ACEOF
6534
6535fi
6536
6537
6538
6539
6540
6541
6542ac_header_dirent=no
6543for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6544 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6545echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6546echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6547if eval "test \"\${$as_ac_Header+set}\" = set"; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549else
6550 cat >conftest.$ac_ext <<_ACEOF
6551/* confdefs.h. */
6552_ACEOF
6553cat confdefs.h >>conftest.$ac_ext
6554cat >>conftest.$ac_ext <<_ACEOF
6555/* end confdefs.h. */
6556#include <sys/types.h>
6557#include <$ac_hdr>
6558
6559int
6560main ()
6561{
6562if ((DIR *) 0)
6563return 0;
6564 ;
6565 return 0;
6566}
6567_ACEOF
6568rm -f conftest.$ac_objext
6569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6570 (eval $ac_compile) 2>conftest.er1
6571 ac_status=$?
6572 grep -v '^ *+' conftest.er1 >conftest.err
6573 rm -f conftest.er1
6574 cat conftest.err >&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } &&
6577 { ac_try='test -z "$ac_c_werror_flag"
6578 || test ! -s conftest.err'
6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 (eval $ac_try) 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; } &&
6584 { ac_try='test -s conftest.$ac_objext'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 (eval $ac_try) 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; }; then
6590 eval "$as_ac_Header=yes"
6591else
6592 echo "$as_me: failed program was:" >&5
6593sed 's/^/| /' conftest.$ac_ext >&5
6594
6595eval "$as_ac_Header=no"
6596fi
6597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6598fi
6599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6600echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6601if test `eval echo '${'$as_ac_Header'}'` = yes; then
6602 cat >>confdefs.h <<_ACEOF
6603#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6604_ACEOF
6605
6606ac_header_dirent=$ac_hdr; break
6607fi
6608
6609done
6610# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6611if test $ac_header_dirent = dirent.h; then
6612 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6613echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6614if test "${ac_cv_search_opendir+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6616else
6617 ac_func_search_save_LIBS=$LIBS
6618ac_cv_search_opendir=no
6619cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h. */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h. */
6625
6626/* Override any gcc2 internal prototype to avoid an error. */
6627#ifdef __cplusplus
6628extern "C"
6629#endif
6630/* We use char because int might match the return type of a gcc2
6631 builtin and then its argument prototype would still apply. */
6632char opendir ();
6633int
6634main ()
6635{
6636opendir ();
6637 ;
6638 return 0;
6639}
6640_ACEOF
6641rm -f conftest.$ac_objext conftest$ac_exeext
6642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643 (eval $ac_link) 2>conftest.er1
6644 ac_status=$?
6645 grep -v '^ *+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try='test -z "$ac_c_werror_flag"
6651 || test ! -s conftest.err'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 (eval $ac_try) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; } &&
6657 { ac_try='test -s conftest$ac_exeext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_search_opendir="none required"
6664else
6665 echo "$as_me: failed program was:" >&5
6666sed 's/^/| /' conftest.$ac_ext >&5
6667
6668fi
6669rm -f conftest.err conftest.$ac_objext \
6670 conftest$ac_exeext conftest.$ac_ext
6671if test "$ac_cv_search_opendir" = no; then
6672 for ac_lib in dir; do
6673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6674 cat >conftest.$ac_ext <<_ACEOF
6675/* confdefs.h. */
6676_ACEOF
6677cat confdefs.h >>conftest.$ac_ext
6678cat >>conftest.$ac_ext <<_ACEOF
6679/* end confdefs.h. */
6680
6681/* Override any gcc2 internal prototype to avoid an error. */
6682#ifdef __cplusplus
6683extern "C"
6684#endif
6685/* We use char because int might match the return type of a gcc2
6686 builtin and then its argument prototype would still apply. */
6687char opendir ();
6688int
6689main ()
6690{
6691opendir ();
6692 ;
6693 return 0;
6694}
6695_ACEOF
6696rm -f conftest.$ac_objext conftest$ac_exeext
6697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6698 (eval $ac_link) 2>conftest.er1
6699 ac_status=$?
6700 grep -v '^ *+' conftest.er1 >conftest.err
6701 rm -f conftest.er1
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -z "$ac_c_werror_flag"
6706 || test ! -s conftest.err'
6707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 (eval $ac_try) 2>&5
6709 ac_status=$?
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); }; } &&
6712 { ac_try='test -s conftest$ac_exeext'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 (eval $ac_try) 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6718 ac_cv_search_opendir="-l$ac_lib"
6719break
6720else
6721 echo "$as_me: failed program was:" >&5
6722sed 's/^/| /' conftest.$ac_ext >&5
6723
6724fi
6725rm -f conftest.err conftest.$ac_objext \
6726 conftest$ac_exeext conftest.$ac_ext
6727 done
6728fi
6729LIBS=$ac_func_search_save_LIBS
6730fi
6731echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6732echo "${ECHO_T}$ac_cv_search_opendir" >&6
6733if test "$ac_cv_search_opendir" != no; then
6734 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6735
6736fi
6737
6738else
6739 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6740echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6741if test "${ac_cv_search_opendir+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743else
6744 ac_func_search_save_LIBS=$LIBS
6745ac_cv_search_opendir=no
6746cat >conftest.$ac_ext <<_ACEOF
6747/* confdefs.h. */
6748_ACEOF
6749cat confdefs.h >>conftest.$ac_ext
6750cat >>conftest.$ac_ext <<_ACEOF
6751/* end confdefs.h. */
6752
6753/* Override any gcc2 internal prototype to avoid an error. */
6754#ifdef __cplusplus
6755extern "C"
6756#endif
6757/* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6759char opendir ();
6760int
6761main ()
6762{
6763opendir ();
6764 ;
6765 return 0;
6766}
6767_ACEOF
6768rm -f conftest.$ac_objext conftest$ac_exeext
6769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try='test -z "$ac_c_werror_flag"
6778 || test ! -s conftest.err'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 (eval $ac_try) 2>&5
6781 ac_status=$?
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; } &&
6784 { ac_try='test -s conftest$ac_exeext'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786 (eval $ac_try) 2>&5
6787 ac_status=$?
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; }; then
6790 ac_cv_search_opendir="none required"
6791else
6792 echo "$as_me: failed program was:" >&5
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
6795fi
6796rm -f conftest.err conftest.$ac_objext \
6797 conftest$ac_exeext conftest.$ac_ext
6798if test "$ac_cv_search_opendir" = no; then
6799 for ac_lib in x; do
6800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6801 cat >conftest.$ac_ext <<_ACEOF
6802/* confdefs.h. */
6803_ACEOF
6804cat confdefs.h >>conftest.$ac_ext
6805cat >>conftest.$ac_ext <<_ACEOF
6806/* end confdefs.h. */
6807
6808/* Override any gcc2 internal prototype to avoid an error. */
6809#ifdef __cplusplus
6810extern "C"
6811#endif
6812/* We use char because int might match the return type of a gcc2
6813 builtin and then its argument prototype would still apply. */
6814char opendir ();
6815int
6816main ()
6817{
6818opendir ();
6819 ;
6820 return 0;
6821}
6822_ACEOF
6823rm -f conftest.$ac_objext conftest$ac_exeext
6824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6825 (eval $ac_link) 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } &&
6832 { ac_try='test -z "$ac_c_werror_flag"
6833 || test ! -s conftest.err'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 (eval $ac_try) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; } &&
6839 { ac_try='test -s conftest$ac_exeext'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; }; then
6845 ac_cv_search_opendir="-l$ac_lib"
6846break
6847else
6848 echo "$as_me: failed program was:" >&5
6849sed 's/^/| /' conftest.$ac_ext >&5
6850
6851fi
6852rm -f conftest.err conftest.$ac_objext \
6853 conftest$ac_exeext conftest.$ac_ext
6854 done
6855fi
6856LIBS=$ac_func_search_save_LIBS
6857fi
6858echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6859echo "${ECHO_T}$ac_cv_search_opendir" >&6
6860if test "$ac_cv_search_opendir" != no; then
6861 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6862
6863fi
6864
6865fi
6866
6867echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6868echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6869if test "${ac_cv_header_stat_broken+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871else
6872 cat >conftest.$ac_ext <<_ACEOF
6873/* confdefs.h. */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h. */
6878#include <sys/types.h>
6879#include <sys/stat.h>
6880
6881#if defined(S_ISBLK) && defined(S_IFDIR)
6882# if S_ISBLK (S_IFDIR)
6883You lose.
6884# endif
6885#endif
6886
6887#if defined(S_ISBLK) && defined(S_IFCHR)
6888# if S_ISBLK (S_IFCHR)
6889You lose.
6890# endif
6891#endif
6892
6893#if defined(S_ISLNK) && defined(S_IFREG)
6894# if S_ISLNK (S_IFREG)
6895You lose.
6896# endif
6897#endif
6898
6899#if defined(S_ISSOCK) && defined(S_IFREG)
6900# if S_ISSOCK (S_IFREG)
6901You lose.
6902# endif
6903#endif
6904
6905_ACEOF
6906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6907 $EGREP "You lose" >/dev/null 2>&1; then
6908 ac_cv_header_stat_broken=yes
6909else
6910 ac_cv_header_stat_broken=no
6911fi
6912rm -f conftest*
6913
6914fi
6915echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6916echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6917if test $ac_cv_header_stat_broken = yes; then
6918
6919cat >>confdefs.h <<\_ACEOF
6920#define STAT_MACROS_BROKEN 1
6921_ACEOF
6922
6923fi
6924
6925echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6926echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6927if test "${ac_cv_header_time+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929else
6930 cat >conftest.$ac_ext <<_ACEOF
6931/* confdefs.h. */
6932_ACEOF
6933cat confdefs.h >>conftest.$ac_ext
6934cat >>conftest.$ac_ext <<_ACEOF
6935/* end confdefs.h. */
6936#include <sys/types.h>
6937#include <sys/time.h>
6938#include <time.h>
6939
6940int
6941main ()
6942{
6943if ((struct tm *) 0)
6944return 0;
6945 ;
6946 return 0;
6947}
6948_ACEOF
6949rm -f conftest.$ac_objext
6950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951 (eval $ac_compile) 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } &&
6958 { ac_try='test -z "$ac_c_werror_flag"
6959 || test ! -s conftest.err'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 (eval $ac_try) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; } &&
6965 { ac_try='test -s conftest.$ac_objext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 (eval $ac_try) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 ac_cv_header_time=yes
6972else
6973 echo "$as_me: failed program was:" >&5
6974sed 's/^/| /' conftest.$ac_ext >&5
6975
6976ac_cv_header_time=no
6977fi
6978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6979fi
6980echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6981echo "${ECHO_T}$ac_cv_header_time" >&6
6982if test $ac_cv_header_time = yes; then
6983
6984cat >>confdefs.h <<\_ACEOF
6985#define TIME_WITH_SYS_TIME 1
6986_ACEOF
6987
6988fi
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
7001 memory.h sys/param.h sys/time.h sys/timeb.h
7002do
7003as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7004if eval "test \"\${$as_ac_Header+set}\" = set"; then
7005 echo "$as_me:$LINENO: checking for $ac_header" >&5
7006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7007if eval "test \"\${$as_ac_Header+set}\" = set"; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009fi
7010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7012else
7013 # Is the header compilable?
7014echo "$as_me:$LINENO: checking $ac_header usability" >&5
7015echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7016cat >conftest.$ac_ext <<_ACEOF
7017/* confdefs.h. */
7018_ACEOF
7019cat confdefs.h >>conftest.$ac_ext
7020cat >>conftest.$ac_ext <<_ACEOF
7021/* end confdefs.h. */
7022$ac_includes_default
7023#include <$ac_header>
7024_ACEOF
7025rm -f conftest.$ac_objext
7026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027 (eval $ac_compile) 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try='test -s conftest.$ac_objext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 ac_header_compiler=yes
7048else
7049 echo "$as_me: failed program was:" >&5
7050sed 's/^/| /' conftest.$ac_ext >&5
7051
7052ac_header_compiler=no
7053fi
7054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7055echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7056echo "${ECHO_T}$ac_header_compiler" >&6
7057
7058# Is the header present?
7059echo "$as_me:$LINENO: checking $ac_header presence" >&5
7060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7061cat >conftest.$ac_ext <<_ACEOF
7062/* confdefs.h. */
7063_ACEOF
7064cat confdefs.h >>conftest.$ac_ext
7065cat >>conftest.$ac_ext <<_ACEOF
7066/* end confdefs.h. */
7067#include <$ac_header>
7068_ACEOF
7069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7071 ac_status=$?
7072 grep -v '^ *+' conftest.er1 >conftest.err
7073 rm -f conftest.er1
7074 cat conftest.err >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } >/dev/null; then
7077 if test -s conftest.err; then
7078 ac_cpp_err=$ac_c_preproc_warn_flag
7079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7080 else
7081 ac_cpp_err=
7082 fi
7083else
7084 ac_cpp_err=yes
7085fi
7086if test -z "$ac_cpp_err"; then
7087 ac_header_preproc=yes
7088else
7089 echo "$as_me: failed program was:" >&5
7090sed 's/^/| /' conftest.$ac_ext >&5
7091
7092 ac_header_preproc=no
7093fi
7094rm -f conftest.err conftest.$ac_ext
7095echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7096echo "${ECHO_T}$ac_header_preproc" >&6
7097
7098# So? What about this header?
7099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7100 yes:no: )
7101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7104echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7105 ac_header_preproc=yes
7106 ;;
7107 no:yes:* )
7108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7113echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7115echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7119echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7120 (
7121 cat <<\_ASBOX
7122## ------------------------------- ##
7123## Report this to [email protected] ##
7124## ------------------------------- ##
7125_ASBOX
7126 ) |
7127 sed "s/^/$as_me: WARNING: /" >&2
7128 ;;
7129esac
7130echo "$as_me:$LINENO: checking for $ac_header" >&5
7131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7132if eval "test \"\${$as_ac_Header+set}\" = set"; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134else
7135 eval "$as_ac_Header=\$ac_header_preproc"
7136fi
7137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7139
7140fi
7141if test `eval echo '${'$as_ac_Header'}'` = yes; then
7142 cat >>confdefs.h <<_ACEOF
7143#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7144_ACEOF
7145
7146fi
7147
7148done
7149
7150
7151# Set a flag if we have an ANSI C compiler
7152if test "$ac_cv_prog_cc_stdc" != no; then
7153
7154cat >>confdefs.h <<\_ACEOF
7155#define HAVE_ANSI_COMPILER 1
7156_ACEOF
7157
7158fi
7159
7160
7161# Determine what kind of variadic function calls we support
7162
7163
7164for ac_header in stdarg.h varargs.h
7165do
7166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7167if eval "test \"\${$as_ac_Header+set}\" = set"; then
7168 echo "$as_me:$LINENO: checking for $ac_header" >&5
7169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7170if eval "test \"\${$as_ac_Header+set}\" = set"; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7172fi
7173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7175else
7176 # Is the header compilable?
7177echo "$as_me:$LINENO: checking $ac_header usability" >&5
7178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7179cat >conftest.$ac_ext <<_ACEOF
7180/* confdefs.h. */
7181_ACEOF
7182cat confdefs.h >>conftest.$ac_ext
7183cat >>conftest.$ac_ext <<_ACEOF
7184/* end confdefs.h. */
7185$ac_includes_default
7186#include <$ac_header>
7187_ACEOF
7188rm -f conftest.$ac_objext
7189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190 (eval $ac_compile) 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -z "$ac_c_werror_flag"
7198 || test ! -s conftest.err'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; } &&
7204 { ac_try='test -s conftest.$ac_objext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7210 ac_header_compiler=yes
7211else
7212 echo "$as_me: failed program was:" >&5
7213sed 's/^/| /' conftest.$ac_ext >&5
7214
7215ac_header_compiler=no
7216fi
7217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7219echo "${ECHO_T}$ac_header_compiler" >&6
7220
7221# Is the header present?
7222echo "$as_me:$LINENO: checking $ac_header presence" >&5
7223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7224cat >conftest.$ac_ext <<_ACEOF
7225/* confdefs.h. */
7226_ACEOF
7227cat confdefs.h >>conftest.$ac_ext
7228cat >>conftest.$ac_ext <<_ACEOF
7229/* end confdefs.h. */
7230#include <$ac_header>
7231_ACEOF
7232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } >/dev/null; then
7240 if test -s conftest.err; then
7241 ac_cpp_err=$ac_c_preproc_warn_flag
7242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7243 else
7244 ac_cpp_err=
7245 fi
7246else
7247 ac_cpp_err=yes
7248fi
7249if test -z "$ac_cpp_err"; then
7250 ac_header_preproc=yes
7251else
7252 echo "$as_me: failed program was:" >&5
7253sed 's/^/| /' conftest.$ac_ext >&5
7254
7255 ac_header_preproc=no
7256fi
7257rm -f conftest.err conftest.$ac_ext
7258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7259echo "${ECHO_T}$ac_header_preproc" >&6
7260
7261# So? What about this header?
7262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7263 yes:no: )
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7268 ac_header_preproc=yes
7269 ;;
7270 no:yes:* )
7271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7278echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7283 (
7284 cat <<\_ASBOX
7285## ------------------------------- ##
7286## Report this to [email protected] ##
7287## ------------------------------- ##
7288_ASBOX
7289 ) |
7290 sed "s/^/$as_me: WARNING: /" >&2
7291 ;;
7292esac
7293echo "$as_me:$LINENO: checking for $ac_header" >&5
7294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7295if eval "test \"\${$as_ac_Header+set}\" = set"; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297else
7298 eval "$as_ac_Header=\$ac_header_preproc"
7299fi
7300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7302
7303fi
7304if test `eval echo '${'$as_ac_Header'}'` = yes; then
7305 cat >>confdefs.h <<_ACEOF
7306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7307_ACEOF
7308 break
7309fi
7310
7311done
7312
7313
7314if test "x$CC" != xcc; then
7315 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
7316echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
7317else
7318 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
7319echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
7320fi
7321set dummy $CC; ac_cc=`echo $2 |
7322 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7323if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326 cat >conftest.$ac_ext <<_ACEOF
7327/* confdefs.h. */
7328_ACEOF
7329cat confdefs.h >>conftest.$ac_ext
7330cat >>conftest.$ac_ext <<_ACEOF
7331/* end confdefs.h. */
7332
7333int
7334main ()
7335{
7336
7337 ;
7338 return 0;
7339}
7340_ACEOF
7341# Make sure it works both with $CC and with simple cc.
7342# We do the test twice because some compilers refuse to overwrite an
7343# existing .o file with -o, though they will create one.
7344ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
7345if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 test -f conftest.$ac_objext && { (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); };
7355then
7356 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7357 if test "x$CC" != xcc; then
7358 # Test first that cc exists at all.
7359 if { ac_try='cc -c conftest.$ac_ext >&5'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
7366 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } &&
7371 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372 (eval $ac_try) 2>&5
7373 ac_status=$?
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); };
7376 then
7377 # cc works too.
7378 :
7379 else
7380 # cc exists but doesn't like -o.
7381 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7382 fi
7383 fi
7384 fi
7385else
7386 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7387fi
7388rm -f conftest*
7389
7390fi
7391if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
7392 echo "$as_me:$LINENO: result: yes" >&5
7393echo "${ECHO_T}yes" >&6
7394else
7395 echo "$as_me:$LINENO: result: no" >&5
7396echo "${ECHO_T}no" >&6
7397
7398cat >>confdefs.h <<\_ACEOF
7399#define NO_MINUS_C_MINUS_O 1
7400_ACEOF
7401
7402fi
7403
7404# FIXME: we rely on the cache variable name because
7405# there is no other way.
7406set dummy $CC
7407ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7408if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
7409 # Losing compiler, so override with the script.
7410 # FIXME: It is wrong to rewrite CC.
7411 # But if we don't then we get into trouble of one sort or another.
7412 # A longer-term fix would be to have automake use am__CC in this case,
7413 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7414 CC="$am_aux_dir/compile $CC"
7415fi
7416
7417echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7418echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7419if test "${ac_cv_c_const+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421else
7422 cat >conftest.$ac_ext <<_ACEOF
7423/* confdefs.h. */
7424_ACEOF
7425cat confdefs.h >>conftest.$ac_ext
7426cat >>conftest.$ac_ext <<_ACEOF
7427/* end confdefs.h. */
7428
7429int
7430main ()
7431{
7432/* FIXME: Include the comments suggested by Paul. */
7433#ifndef __cplusplus
7434 /* Ultrix mips cc rejects this. */
7435 typedef int charset[2];
7436 const charset x;
7437 /* SunOS 4.1.1 cc rejects this. */
7438 char const *const *ccp;
7439 char **p;
7440 /* NEC SVR4.0.2 mips cc rejects this. */
7441 struct point {int x, y;};
7442 static struct point const zero = {0,0};
7443 /* AIX XL C 1.02.0.0 rejects this.
7444 It does not let you subtract one const X* pointer from another in
7445 an arm of an if-expression whose if-part is not a constant
7446 expression */
7447 const char *g = "string";
7448 ccp = &g + (g ? g-g : 0);
7449 /* HPUX 7.0 cc rejects these. */
7450 ++ccp;
7451 p = (char**) ccp;
7452 ccp = (char const *const *) p;
7453 { /* SCO 3.2v4 cc rejects this. */
7454 char *t;
7455 char const *s = 0 ? (char *) 0 : (char const *) 0;
7456
7457 *t++ = 0;
7458 }
7459 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7460 int x[] = {25, 17};
7461 const int *foo = &x[0];
7462 ++foo;
7463 }
7464 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7465 typedef const int *iptr;
7466 iptr p = 0;
7467 ++p;
7468 }
7469 { /* AIX XL C 1.02.0.0 rejects this saying
7470 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7471 struct s { int j; const int *ap[3]; };
7472 struct s *b; b->j = 5;
7473 }
7474 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7475 const int foo = 10;
7476 }
7477#endif
7478
7479 ;
7480 return 0;
7481}
7482_ACEOF
7483rm -f conftest.$ac_objext
7484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7485 (eval $ac_compile) 2>conftest.er1
7486 ac_status=$?
7487 grep -v '^ *+' conftest.er1 >conftest.err
7488 rm -f conftest.er1
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } &&
7492 { ac_try='test -z "$ac_c_werror_flag"
7493 || test ! -s conftest.err'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 (eval $ac_try) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; } &&
7499 { ac_try='test -s conftest.$ac_objext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 (eval $ac_try) 2>&5
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 ac_cv_c_const=yes
7506else
7507 echo "$as_me: failed program was:" >&5
7508sed 's/^/| /' conftest.$ac_ext >&5
7509
7510ac_cv_c_const=no
7511fi
7512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7513fi
7514echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7515echo "${ECHO_T}$ac_cv_c_const" >&6
7516if test $ac_cv_c_const = no; then
7517
7518cat >>confdefs.h <<\_ACEOF
7519#define const
7520_ACEOF
7521
7522fi
7523
7524echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7525echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7526if test "${ac_cv_type_signal+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529 cat >conftest.$ac_ext <<_ACEOF
7530/* confdefs.h. */
7531_ACEOF
7532cat confdefs.h >>conftest.$ac_ext
7533cat >>conftest.$ac_ext <<_ACEOF
7534/* end confdefs.h. */
7535#include <sys/types.h>
7536#include <signal.h>
7537#ifdef signal
7538# undef signal
7539#endif
7540#ifdef __cplusplus
7541extern "C" void (*signal (int, void (*)(int)))(int);
7542#else
7543void (*signal ()) ();
7544#endif
7545
7546int
7547main ()
7548{
7549int i;
7550 ;
7551 return 0;
7552}
7553_ACEOF
7554rm -f conftest.$ac_objext
7555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556 (eval $ac_compile) 2>conftest.er1
7557 ac_status=$?
7558 grep -v '^ *+' conftest.er1 >conftest.err
7559 rm -f conftest.er1
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try='test -z "$ac_c_werror_flag"
7564 || test ! -s conftest.err'
7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566 (eval $ac_try) 2>&5
7567 ac_status=$?
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); }; } &&
7570 { ac_try='test -s conftest.$ac_objext'
7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572 (eval $ac_try) 2>&5
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; }; then
7576 ac_cv_type_signal=void
7577else
7578 echo "$as_me: failed program was:" >&5
7579sed 's/^/| /' conftest.$ac_ext >&5
7580
7581ac_cv_type_signal=int
7582fi
7583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7584fi
7585echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7586echo "${ECHO_T}$ac_cv_type_signal" >&6
7587
7588cat >>confdefs.h <<_ACEOF
7589#define RETSIGTYPE $ac_cv_type_signal
7590_ACEOF
7591
7592
7593echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7594echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7595if test "${ac_cv_type_uid_t+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597else
7598 cat >conftest.$ac_ext <<_ACEOF
7599/* confdefs.h. */
7600_ACEOF
7601cat confdefs.h >>conftest.$ac_ext
7602cat >>conftest.$ac_ext <<_ACEOF
7603/* end confdefs.h. */
7604#include <sys/types.h>
7605
7606_ACEOF
7607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7608 $EGREP "uid_t" >/dev/null 2>&1; then
7609 ac_cv_type_uid_t=yes
7610else
7611 ac_cv_type_uid_t=no
7612fi
7613rm -f conftest*
7614
7615fi
7616echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7617echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7618if test $ac_cv_type_uid_t = no; then
7619
7620cat >>confdefs.h <<\_ACEOF
7621#define uid_t int
7622_ACEOF
7623
7624
7625cat >>confdefs.h <<\_ACEOF
7626#define gid_t int
7627_ACEOF
7628
7629fi
7630
7631echo "$as_me:$LINENO: checking for pid_t" >&5
7632echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7633if test "${ac_cv_type_pid_t+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636 cat >conftest.$ac_ext <<_ACEOF
7637/* confdefs.h. */
7638_ACEOF
7639cat confdefs.h >>conftest.$ac_ext
7640cat >>conftest.$ac_ext <<_ACEOF
7641/* end confdefs.h. */
7642$ac_includes_default
7643int
7644main ()
7645{
7646if ((pid_t *) 0)
7647 return 0;
7648if (sizeof (pid_t))
7649 return 0;
7650 ;
7651 return 0;
7652}
7653_ACEOF
7654rm -f conftest.$ac_objext
7655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7656 (eval $ac_compile) 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -z "$ac_c_werror_flag"
7664 || test ! -s conftest.err'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; } &&
7670 { ac_try='test -s conftest.$ac_objext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672 (eval $ac_try) 2>&5
7673 ac_status=$?
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 ac_cv_type_pid_t=yes
7677else
7678 echo "$as_me: failed program was:" >&5
7679sed 's/^/| /' conftest.$ac_ext >&5
7680
7681ac_cv_type_pid_t=no
7682fi
7683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7684fi
7685echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7686echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7687if test $ac_cv_type_pid_t = yes; then
7688 :
7689else
7690
7691cat >>confdefs.h <<_ACEOF
7692#define pid_t int
7693_ACEOF
7694
7695fi
7696
7697
7698# Find some definition for uintmax_t
7699
7700echo "$as_me:$LINENO: checking for uintmax_t" >&5
7701echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
7702if test "${ac_cv_type_uintmax_t+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704else
7705 cat >conftest.$ac_ext <<_ACEOF
7706/* confdefs.h. */
7707_ACEOF
7708cat confdefs.h >>conftest.$ac_ext
7709cat >>conftest.$ac_ext <<_ACEOF
7710/* end confdefs.h. */
7711$ac_includes_default
7712int
7713main ()
7714{
7715if ((uintmax_t *) 0)
7716 return 0;
7717if (sizeof (uintmax_t))
7718 return 0;
7719 ;
7720 return 0;
7721}
7722_ACEOF
7723rm -f conftest.$ac_objext
7724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725 (eval $ac_compile) 2>conftest.er1
7726 ac_status=$?
7727 grep -v '^ *+' conftest.er1 >conftest.err
7728 rm -f conftest.er1
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try='test -z "$ac_c_werror_flag"
7733 || test ! -s conftest.err'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; } &&
7739 { ac_try='test -s conftest.$ac_objext'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 (eval $ac_try) 2>&5
7742 ac_status=$?
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 ac_cv_type_uintmax_t=yes
7746else
7747 echo "$as_me: failed program was:" >&5
7748sed 's/^/| /' conftest.$ac_ext >&5
7749
7750ac_cv_type_uintmax_t=no
7751fi
7752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7753fi
7754echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
7755echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
7756if test $ac_cv_type_uintmax_t = yes; then
7757 :
7758else
7759
7760 uintmax_t="unsigned long"
7761 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7762echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7763if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7765else
7766 cat >conftest.$ac_ext <<_ACEOF
7767/* confdefs.h. */
7768_ACEOF
7769cat confdefs.h >>conftest.$ac_ext
7770cat >>conftest.$ac_ext <<_ACEOF
7771/* end confdefs.h. */
7772$ac_includes_default
7773int
7774main ()
7775{
7776if ((unsigned long long *) 0)
7777 return 0;
7778if (sizeof (unsigned long long))
7779 return 0;
7780 ;
7781 return 0;
7782}
7783_ACEOF
7784rm -f conftest.$ac_objext
7785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7786 (eval $ac_compile) 2>conftest.er1
7787 ac_status=$?
7788 grep -v '^ *+' conftest.er1 >conftest.err
7789 rm -f conftest.er1
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); } &&
7793 { ac_try='test -z "$ac_c_werror_flag"
7794 || test ! -s conftest.err'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 (eval $ac_try) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; } &&
7800 { ac_try='test -s conftest.$ac_objext'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 (eval $ac_try) 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; }; then
7806 ac_cv_type_unsigned_long_long=yes
7807else
7808 echo "$as_me: failed program was:" >&5
7809sed 's/^/| /' conftest.$ac_ext >&5
7810
7811ac_cv_type_unsigned_long_long=no
7812fi
7813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7814fi
7815echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7816echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7817if test $ac_cv_type_unsigned_long_long = yes; then
7818 uintmax_t="unsigned long long"
7819fi
7820
7821
7822cat >>confdefs.h <<_ACEOF
7823#define uintmax_t $uintmax_t
7824_ACEOF
7825
7826fi
7827
7828
7829# Find out whether our struct stat returns nanosecond resolution timestamps.
7830
7831echo "$as_me:$LINENO: checking for nanoseconds field of struct stat.st_mtim" >&5
7832echo $ECHO_N "checking for nanoseconds field of struct stat.st_mtim... $ECHO_C" >&6
7833if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835else
7836 ac_save_CPPFLAGS="$CPPFLAGS"
7837 ac_cv_struct_st_mtim_nsec=no
7838 # tv_nsec -- the usual case
7839 # _tv_nsec -- Solaris 2.6, if
7840 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
7841 # && !defined __EXTENSIONS__)
7842 # st__tim.tv_nsec -- UnixWare 2.1.2
7843 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
7844 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
7845 cat >conftest.$ac_ext <<_ACEOF
7846/* confdefs.h. */
7847_ACEOF
7848cat confdefs.h >>conftest.$ac_ext
7849cat >>conftest.$ac_ext <<_ACEOF
7850/* end confdefs.h. */
7851#include <sys/types.h>
7852#include <sys/stat.h>
7853
7854int
7855main ()
7856{
7857struct stat s; s.st_mtim.ST_MTIM_NSEC;
7858 ;
7859 return 0;
7860}
7861_ACEOF
7862rm -f conftest.$ac_objext
7863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7864 (eval $ac_compile) 2>conftest.er1
7865 ac_status=$?
7866 grep -v '^ *+' conftest.er1 >conftest.err
7867 rm -f conftest.er1
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } &&
7871 { ac_try='test -z "$ac_c_werror_flag"
7872 || test ! -s conftest.err'
7873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874 (eval $ac_try) 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; } &&
7878 { ac_try='test -s conftest.$ac_objext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 (eval $ac_try) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 ac_cv_struct_st_mtim_nsec=$ac_val; break
7885else
7886 echo "$as_me: failed program was:" >&5
7887sed 's/^/| /' conftest.$ac_ext >&5
7888
7889fi
7890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7891 done
7892 CPPFLAGS="$ac_save_CPPFLAGS"
7893
7894fi
7895echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
7896echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
7897
7898 if test $ac_cv_struct_st_mtim_nsec != no; then
7899
7900cat >>confdefs.h <<_ACEOF
7901#define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
7902_ACEOF
7903
7904 fi
7905
7906
7907echo "$as_me:$LINENO: checking whether to use high resolution file timestamps" >&5
7908echo $ECHO_N "checking whether to use high resolution file timestamps... $ECHO_C" >&6
7909if test "${make_cv_file_timestamp_hi_res+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912
7913 make_cv_file_timestamp_hi_res=no
7914 if test "$ac_cv_struct_st_mtim_nsec" != no; then
7915 cat >conftest.$ac_ext <<_ACEOF
7916/* confdefs.h. */
7917_ACEOF
7918cat confdefs.h >>conftest.$ac_ext
7919cat >>conftest.$ac_ext <<_ACEOF
7920/* end confdefs.h. */
7921
7922# if HAVE_INTTYPES_H
7923# include <inttypes.h>
7924# endif
7925int
7926main ()
7927{
7928char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
7929 ;
7930 return 0;
7931}
7932_ACEOF
7933rm -f conftest.$ac_objext
7934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7935 (eval $ac_compile) 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try='test -z "$ac_c_werror_flag"
7943 || test ! -s conftest.err'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; } &&
7949 { ac_try='test -s conftest.$ac_objext'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 make_cv_file_timestamp_hi_res=yes
7956else
7957 echo "$as_me: failed program was:" >&5
7958sed 's/^/| /' conftest.$ac_ext >&5
7959
7960fi
7961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7962 fi
7963fi
7964
7965echo "$as_me:$LINENO: result: $make_cv_file_timestamp_hi_res" >&5
7966echo "${ECHO_T}$make_cv_file_timestamp_hi_res" >&6
7967if test "$make_cv_file_timestamp_hi_res" = yes; then
7968 val=1
7969else
7970 val=0
7971fi
7972
7973cat >>confdefs.h <<_ACEOF
7974#define FILE_TIMESTAMP_HI_RES $val
7975_ACEOF
7976
7977
7978if test "$make_cv_file_timestamp_hi_res" = yes; then
7979 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
7980 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
7981 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
7982echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
7983if test "${ac_cv_search_clock_gettime+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985else
7986 ac_func_search_save_LIBS=$LIBS
7987ac_cv_search_clock_gettime=no
7988cat >conftest.$ac_ext <<_ACEOF
7989/* confdefs.h. */
7990_ACEOF
7991cat confdefs.h >>conftest.$ac_ext
7992cat >>conftest.$ac_ext <<_ACEOF
7993/* end confdefs.h. */
7994
7995/* Override any gcc2 internal prototype to avoid an error. */
7996#ifdef __cplusplus
7997extern "C"
7998#endif
7999/* We use char because int might match the return type of a gcc2
8000 builtin and then its argument prototype would still apply. */
8001char clock_gettime ();
8002int
8003main ()
8004{
8005clock_gettime ();
8006 ;
8007 return 0;
8008}
8009_ACEOF
8010rm -f conftest.$ac_objext conftest$ac_exeext
8011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012 (eval $ac_link) 2>conftest.er1
8013 ac_status=$?
8014 grep -v '^ *+' conftest.er1 >conftest.err
8015 rm -f conftest.er1
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } &&
8019 { ac_try='test -z "$ac_c_werror_flag"
8020 || test ! -s conftest.err'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 (eval $ac_try) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; } &&
8026 { ac_try='test -s conftest$ac_exeext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 (eval $ac_try) 2>&5
8029 ac_status=$?
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 ac_cv_search_clock_gettime="none required"
8033else
8034 echo "$as_me: failed program was:" >&5
8035sed 's/^/| /' conftest.$ac_ext >&5
8036
8037fi
8038rm -f conftest.err conftest.$ac_objext \
8039 conftest$ac_exeext conftest.$ac_ext
8040if test "$ac_cv_search_clock_gettime" = no; then
8041 for ac_lib in rt posix4; do
8042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8043 cat >conftest.$ac_ext <<_ACEOF
8044/* confdefs.h. */
8045_ACEOF
8046cat confdefs.h >>conftest.$ac_ext
8047cat >>conftest.$ac_ext <<_ACEOF
8048/* end confdefs.h. */
8049
8050/* Override any gcc2 internal prototype to avoid an error. */
8051#ifdef __cplusplus
8052extern "C"
8053#endif
8054/* We use char because int might match the return type of a gcc2
8055 builtin and then its argument prototype would still apply. */
8056char clock_gettime ();
8057int
8058main ()
8059{
8060clock_gettime ();
8061 ;
8062 return 0;
8063}
8064_ACEOF
8065rm -f conftest.$ac_objext conftest$ac_exeext
8066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067 (eval $ac_link) 2>conftest.er1
8068 ac_status=$?
8069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } &&
8074 { ac_try='test -z "$ac_c_werror_flag"
8075 || test ! -s conftest.err'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 (eval $ac_try) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; } &&
8081 { ac_try='test -s conftest$ac_exeext'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 (eval $ac_try) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 ac_cv_search_clock_gettime="-l$ac_lib"
8088break
8089else
8090 echo "$as_me: failed program was:" >&5
8091sed 's/^/| /' conftest.$ac_ext >&5
8092
8093fi
8094rm -f conftest.err conftest.$ac_objext \
8095 conftest$ac_exeext conftest.$ac_ext
8096 done
8097fi
8098LIBS=$ac_func_search_save_LIBS
8099fi
8100echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8101echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
8102if test "$ac_cv_search_clock_gettime" != no; then
8103 test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
8104
8105fi
8106
8107 if test "$ac_cv_search_clock_gettime" != no; then
8108
8109cat >>confdefs.h <<\_ACEOF
8110#define HAVE_CLOCK_GETTIME 1
8111_ACEOF
8112
8113 fi
8114fi
8115
8116# Check for DOS-style pathnames.
8117
8118 echo "$as_me:$LINENO: checking whether system uses MSDOS-style paths" >&5
8119echo $ECHO_N "checking whether system uses MSDOS-style paths... $ECHO_C" >&6
8120if test "${ac_cv_dos_paths+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8122else
8123
8124 cat >conftest.$ac_ext <<_ACEOF
8125
8126#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__
8127neither MSDOS nor Windows nor OS2
8128#endif
8129
8130_ACEOF
8131rm -f conftest.$ac_objext
8132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8133 (eval $ac_compile) 2>conftest.er1
8134 ac_status=$?
8135 grep -v '^ *+' conftest.er1 >conftest.err
8136 rm -f conftest.er1
8137 cat conftest.err >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } &&
8140 { ac_try='test -z "$ac_c_werror_flag"
8141 || test ! -s conftest.err'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 (eval $ac_try) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try='test -s conftest.$ac_objext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8153 ac_cv_dos_paths=yes
8154else
8155 echo "$as_me: failed program was:" >&5
8156sed 's/^/| /' conftest.$ac_ext >&5
8157
8158ac_cv_dos_paths=no
8159fi
8160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8161
8162fi
8163echo "$as_me:$LINENO: result: $ac_cv_dos_paths" >&5
8164echo "${ECHO_T}$ac_cv_dos_paths" >&6
8165
8166 if test x"$ac_cv_dos_paths" = xyes; then
8167
8168cat >>confdefs.h <<_ACEOF
8169#define HAVE_DOS_PATHS 1
8170_ACEOF
8171
8172 fi
8173
8174
8175# See if we have a standard version of gettimeofday(). Since actual
8176# implementations can differ, just make sure we have the most common
8177# one.
8178echo "$as_me:$LINENO: checking for standard gettimeofday" >&5
8179echo $ECHO_N "checking for standard gettimeofday... $ECHO_C" >&6
8180if test "${ac_cv_func_gettimeofday+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8182else
8183 ac_cv_func_gettimeofday=no
8184 if test "$cross_compiling" = yes; then
8185 ac_cv_func_gettimeofday="no (cross-compiling)"
8186else
8187 cat >conftest.$ac_ext <<_ACEOF
8188/* confdefs.h. */
8189_ACEOF
8190cat confdefs.h >>conftest.$ac_ext
8191cat >>conftest.$ac_ext <<_ACEOF
8192/* end confdefs.h. */
8193#include <sys/time.h>
8194 int main ()
8195 {
8196 struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
8197 exit (gettimeofday (&t, 0) != 0
8198 || t.tv_sec < 0 || t.tv_usec < 0);
8199 }
8200_ACEOF
8201rm -f conftest$ac_exeext
8202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203 (eval $ac_link) 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 (eval $ac_try) 2>&5
8209 ac_status=$?
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); }; }; then
8212 ac_cv_func_gettimeofday=yes
8213else
8214 echo "$as_me: program exited with status $ac_status" >&5
8215echo "$as_me: failed program was:" >&5
8216sed 's/^/| /' conftest.$ac_ext >&5
8217
8218( exit $ac_status )
8219ac_cv_func_gettimeofday=no
8220fi
8221rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8222fi
8223fi
8224echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
8225echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
8226if test "$ac_cv_func_gettimeofday" = yes; then
8227
8228cat >>confdefs.h <<\_ACEOF
8229#define HAVE_GETTIMEOFDAY 1
8230_ACEOF
8231
8232fi
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256for ac_func in memcpy memmove strchr strdup mkstemp mktemp fdopen \
8257 bsd_signal dup2 getcwd sigsetmask sigaction getgroups \
8258 seteuid setegid setlinebuf setreuid setregid setvbuf pipe \
8259 strerror strsignal
8260do
8261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8262echo "$as_me:$LINENO: checking for $ac_func" >&5
8263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8264if eval "test \"\${$as_ac_var+set}\" = set"; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266else
8267 cat >conftest.$ac_ext <<_ACEOF
8268/* confdefs.h. */
8269_ACEOF
8270cat confdefs.h >>conftest.$ac_ext
8271cat >>conftest.$ac_ext <<_ACEOF
8272/* end confdefs.h. */
8273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8275#define $ac_func innocuous_$ac_func
8276
8277/* System header to define __stub macros and hopefully few prototypes,
8278 which can conflict with char $ac_func (); below.
8279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8280 <limits.h> exists even on freestanding compilers. */
8281
8282#ifdef __STDC__
8283# include <limits.h>
8284#else
8285# include <assert.h>
8286#endif
8287
8288#undef $ac_func
8289
8290/* Override any gcc2 internal prototype to avoid an error. */
8291#ifdef __cplusplus
8292extern "C"
8293{
8294#endif
8295/* We use char because int might match the return type of a gcc2
8296 builtin and then its argument prototype would still apply. */
8297char $ac_func ();
8298/* The GNU C library defines this for functions which it implements
8299 to always fail with ENOSYS. Some functions are actually named
8300 something starting with __ and the normal name is an alias. */
8301#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8302choke me
8303#else
8304char (*f) () = $ac_func;
8305#endif
8306#ifdef __cplusplus
8307}
8308#endif
8309
8310int
8311main ()
8312{
8313return f != $ac_func;
8314 ;
8315 return 0;
8316}
8317_ACEOF
8318rm -f conftest.$ac_objext conftest$ac_exeext
8319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>conftest.er1
8321 ac_status=$?
8322 grep -v '^ *+' conftest.er1 >conftest.err
8323 rm -f conftest.er1
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -z "$ac_c_werror_flag"
8328 || test ! -s conftest.err'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try='test -s conftest$ac_exeext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 (eval $ac_try) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 eval "$as_ac_var=yes"
8341else
8342 echo "$as_me: failed program was:" >&5
8343sed 's/^/| /' conftest.$ac_ext >&5
8344
8345eval "$as_ac_var=no"
8346fi
8347rm -f conftest.err conftest.$ac_objext \
8348 conftest$ac_exeext conftest.$ac_ext
8349fi
8350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8351echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8352if test `eval echo '${'$as_ac_var'}'` = yes; then
8353 cat >>confdefs.h <<_ACEOF
8354#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8355_ACEOF
8356
8357fi
8358done
8359
8360
8361echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
8362echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
8363if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365else
8366 ac_cv_func_setvbuf_reversed=no
8367 cat >conftest.$ac_ext <<_ACEOF
8368/* confdefs.h. */
8369_ACEOF
8370cat confdefs.h >>conftest.$ac_ext
8371cat >>conftest.$ac_ext <<_ACEOF
8372/* end confdefs.h. */
8373#include <stdio.h>
8374# if PROTOTYPES
8375 int (setvbuf) (FILE *, int, char *, size_t);
8376# endif
8377int
8378main ()
8379{
8380char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
8381 ;
8382 return 0;
8383}
8384_ACEOF
8385rm -f conftest.$ac_objext conftest$ac_exeext
8386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387 (eval $ac_link) 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_c_werror_flag"
8395 || test ! -s conftest.err'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest$ac_exeext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 cat >conftest.$ac_ext <<_ACEOF
8408/* confdefs.h. */
8409_ACEOF
8410cat confdefs.h >>conftest.$ac_ext
8411cat >>conftest.$ac_ext <<_ACEOF
8412/* end confdefs.h. */
8413#include <stdio.h>
8414# if PROTOTYPES
8415 int (setvbuf) (FILE *, int, char *, size_t);
8416# endif
8417int
8418main ()
8419{
8420char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
8421 ;
8422 return 0;
8423}
8424_ACEOF
8425rm -f conftest.$ac_objext conftest$ac_exeext
8426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427 (eval $ac_link) 2>conftest.er1
8428 ac_status=$?
8429 grep -v '^ *+' conftest.er1 >conftest.err
8430 rm -f conftest.er1
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try='test -z "$ac_c_werror_flag"
8435 || test ! -s conftest.err'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437 (eval $ac_try) 2>&5
8438 ac_status=$?
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; } &&
8441 { ac_try='test -s conftest$ac_exeext'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 (eval $ac_try) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; }; then
8447 # It compiles and links either way, so it must not be declared
8448 # with a prototype and most likely this is a K&R C compiler.
8449 # Try running it.
8450 if test "$cross_compiling" = yes; then
8451 : # Assume setvbuf is not reversed when cross-compiling.
8452else
8453 cat >conftest.$ac_ext <<_ACEOF
8454/* confdefs.h. */
8455_ACEOF
8456cat confdefs.h >>conftest.$ac_ext
8457cat >>conftest.$ac_ext <<_ACEOF
8458/* end confdefs.h. */
8459#include <stdio.h>
8460int
8461main ()
8462{
8463/* This call has the arguments reversed.
8464 A reversed system may check and see that the address of buf
8465 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
8466 char buf;
8467 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
8468 exit (1);
8469 putchar ('\r');
8470 exit (0); /* Non-reversed systems SEGV here. */
8471 ;
8472 return 0;
8473}
8474_ACEOF
8475rm -f conftest$ac_exeext
8476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8477 (eval $ac_link) 2>&5
8478 ac_status=$?
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_cv_func_setvbuf_reversed=yes
8487else
8488 echo "$as_me: program exited with status $ac_status" >&5
8489echo "$as_me: failed program was:" >&5
8490sed 's/^/| /' conftest.$ac_ext >&5
8491
8492( exit $ac_status )
8493rm -f core *.core
8494fi
8495rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8496fi
8497 ac_cv_func_setvbuf_reversed=yes
8498else
8499 echo "$as_me: failed program was:" >&5
8500sed 's/^/| /' conftest.$ac_ext >&5
8501
8502fi
8503rm -f conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
8505else
8506 echo "$as_me: failed program was:" >&5
8507sed 's/^/| /' conftest.$ac_ext >&5
8508
8509fi
8510rm -f conftest.err conftest.$ac_objext \
8511 conftest$ac_exeext conftest.$ac_ext
8512fi
8513echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
8514echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
8515if test $ac_cv_func_setvbuf_reversed = yes; then
8516
8517cat >>confdefs.h <<\_ACEOF
8518#define SETVBUF_REVERSED 1
8519_ACEOF
8520
8521fi
8522
8523
8524# strcoll() is used by the GNU glob library
8525echo "$as_me:$LINENO: checking for working strcoll" >&5
8526echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
8527if test "${ac_cv_func_strcoll_works+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8529else
8530 if test "$cross_compiling" = yes; then
8531 ac_cv_func_strcoll_works=no
8532else
8533 cat >conftest.$ac_ext <<_ACEOF
8534/* confdefs.h. */
8535_ACEOF
8536cat confdefs.h >>conftest.$ac_ext
8537cat >>conftest.$ac_ext <<_ACEOF
8538/* end confdefs.h. */
8539$ac_includes_default
8540int
8541main ()
8542{
8543exit (strcoll ("abc", "def") >= 0 ||
8544 strcoll ("ABC", "DEF") >= 0 ||
8545 strcoll ("123", "456") >= 0)
8546 ;
8547 return 0;
8548}
8549_ACEOF
8550rm -f conftest$ac_exeext
8551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8552 (eval $ac_link) 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557 (eval $ac_try) 2>&5
8558 ac_status=$?
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_cv_func_strcoll_works=yes
8562else
8563 echo "$as_me: program exited with status $ac_status" >&5
8564echo "$as_me: failed program was:" >&5
8565sed 's/^/| /' conftest.$ac_ext >&5
8566
8567( exit $ac_status )
8568ac_cv_func_strcoll_works=no
8569fi
8570rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8571fi
8572fi
8573echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
8574echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
8575if test $ac_cv_func_strcoll_works = yes; then
8576
8577cat >>confdefs.h <<\_ACEOF
8578#define HAVE_STRCOLL 1
8579_ACEOF
8580
8581fi
8582
8583
8584# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8585# for constant arguments. Useless!
8586echo "$as_me:$LINENO: checking for working alloca.h" >&5
8587echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8588if test "${ac_cv_working_alloca_h+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590else
8591 cat >conftest.$ac_ext <<_ACEOF
8592/* confdefs.h. */
8593_ACEOF
8594cat confdefs.h >>conftest.$ac_ext
8595cat >>conftest.$ac_ext <<_ACEOF
8596/* end confdefs.h. */
8597#include <alloca.h>
8598int
8599main ()
8600{
8601char *p = (char *) alloca (2 * sizeof (int));
8602 ;
8603 return 0;
8604}
8605_ACEOF
8606rm -f conftest.$ac_objext conftest$ac_exeext
8607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608 (eval $ac_link) 2>conftest.er1
8609 ac_status=$?
8610 grep -v '^ *+' conftest.er1 >conftest.err
8611 rm -f conftest.er1
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -z "$ac_c_werror_flag"
8616 || test ! -s conftest.err'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; } &&
8622 { ac_try='test -s conftest$ac_exeext'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 (eval $ac_try) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
8628 ac_cv_working_alloca_h=yes
8629else
8630 echo "$as_me: failed program was:" >&5
8631sed 's/^/| /' conftest.$ac_ext >&5
8632
8633ac_cv_working_alloca_h=no
8634fi
8635rm -f conftest.err conftest.$ac_objext \
8636 conftest$ac_exeext conftest.$ac_ext
8637fi
8638echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8639echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8640if test $ac_cv_working_alloca_h = yes; then
8641
8642cat >>confdefs.h <<\_ACEOF
8643#define HAVE_ALLOCA_H 1
8644_ACEOF
8645
8646fi
8647
8648echo "$as_me:$LINENO: checking for alloca" >&5
8649echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8650if test "${ac_cv_func_alloca_works+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652else
8653 cat >conftest.$ac_ext <<_ACEOF
8654/* confdefs.h. */
8655_ACEOF
8656cat confdefs.h >>conftest.$ac_ext
8657cat >>conftest.$ac_ext <<_ACEOF
8658/* end confdefs.h. */
8659#ifdef __GNUC__
8660# define alloca __builtin_alloca
8661#else
8662# ifdef _MSC_VER
8663# include <malloc.h>
8664# define alloca _alloca
8665# else
8666# if HAVE_ALLOCA_H
8667# include <alloca.h>
8668# else
8669# ifdef _AIX
8670 #pragma alloca
8671# else
8672# ifndef alloca /* predefined by HP cc +Olibcalls */
8673char *alloca ();
8674# endif
8675# endif
8676# endif
8677# endif
8678#endif
8679
8680int
8681main ()
8682{
8683char *p = (char *) alloca (1);
8684 ;
8685 return 0;
8686}
8687_ACEOF
8688rm -f conftest.$ac_objext conftest$ac_exeext
8689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8690 (eval $ac_link) 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try='test -z "$ac_c_werror_flag"
8698 || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 (eval $ac_try) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest$ac_exeext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 (eval $ac_try) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_cv_func_alloca_works=yes
8711else
8712 echo "$as_me: failed program was:" >&5
8713sed 's/^/| /' conftest.$ac_ext >&5
8714
8715ac_cv_func_alloca_works=no
8716fi
8717rm -f conftest.err conftest.$ac_objext \
8718 conftest$ac_exeext conftest.$ac_ext
8719fi
8720echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8721echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8722
8723if test $ac_cv_func_alloca_works = yes; then
8724
8725cat >>confdefs.h <<\_ACEOF
8726#define HAVE_ALLOCA 1
8727_ACEOF
8728
8729else
8730 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8731# that cause trouble. Some versions do not even contain alloca or
8732# contain a buggy version. If you still want to use their alloca,
8733# use ar to extract alloca.o from them instead of compiling alloca.c.
8734
8735ALLOCA=alloca.$ac_objext
8736
8737cat >>confdefs.h <<\_ACEOF
8738#define C_ALLOCA 1
8739_ACEOF
8740
8741
8742echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8743echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8744if test "${ac_cv_os_cray+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746else
8747 cat >conftest.$ac_ext <<_ACEOF
8748/* confdefs.h. */
8749_ACEOF
8750cat confdefs.h >>conftest.$ac_ext
8751cat >>conftest.$ac_ext <<_ACEOF
8752/* end confdefs.h. */
8753#if defined(CRAY) && ! defined(CRAY2)
8754webecray
8755#else
8756wenotbecray
8757#endif
8758
8759_ACEOF
8760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8761 $EGREP "webecray" >/dev/null 2>&1; then
8762 ac_cv_os_cray=yes
8763else
8764 ac_cv_os_cray=no
8765fi
8766rm -f conftest*
8767
8768fi
8769echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8770echo "${ECHO_T}$ac_cv_os_cray" >&6
8771if test $ac_cv_os_cray = yes; then
8772 for ac_func in _getb67 GETB67 getb67; do
8773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8774echo "$as_me:$LINENO: checking for $ac_func" >&5
8775echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8776if eval "test \"\${$as_ac_var+set}\" = set"; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8778else
8779 cat >conftest.$ac_ext <<_ACEOF
8780/* confdefs.h. */
8781_ACEOF
8782cat confdefs.h >>conftest.$ac_ext
8783cat >>conftest.$ac_ext <<_ACEOF
8784/* end confdefs.h. */
8785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8787#define $ac_func innocuous_$ac_func
8788
8789/* System header to define __stub macros and hopefully few prototypes,
8790 which can conflict with char $ac_func (); below.
8791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8792 <limits.h> exists even on freestanding compilers. */
8793
8794#ifdef __STDC__
8795# include <limits.h>
8796#else
8797# include <assert.h>
8798#endif
8799
8800#undef $ac_func
8801
8802/* Override any gcc2 internal prototype to avoid an error. */
8803#ifdef __cplusplus
8804extern "C"
8805{
8806#endif
8807/* We use char because int might match the return type of a gcc2
8808 builtin and then its argument prototype would still apply. */
8809char $ac_func ();
8810/* The GNU C library defines this for functions which it implements
8811 to always fail with ENOSYS. Some functions are actually named
8812 something starting with __ and the normal name is an alias. */
8813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8814choke me
8815#else
8816char (*f) () = $ac_func;
8817#endif
8818#ifdef __cplusplus
8819}
8820#endif
8821
8822int
8823main ()
8824{
8825return f != $ac_func;
8826 ;
8827 return 0;
8828}
8829_ACEOF
8830rm -f conftest.$ac_objext conftest$ac_exeext
8831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8832 (eval $ac_link) 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
8839 { ac_try='test -z "$ac_c_werror_flag"
8840 || test ! -s conftest.err'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 (eval $ac_try) 2>&5
8843 ac_status=$?
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; } &&
8846 { ac_try='test -s conftest$ac_exeext'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 (eval $ac_try) 2>&5
8849 ac_status=$?
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; }; then
8852 eval "$as_ac_var=yes"
8853else
8854 echo "$as_me: failed program was:" >&5
8855sed 's/^/| /' conftest.$ac_ext >&5
8856
8857eval "$as_ac_var=no"
8858fi
8859rm -f conftest.err conftest.$ac_objext \
8860 conftest$ac_exeext conftest.$ac_ext
8861fi
8862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8863echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8864if test `eval echo '${'$as_ac_var'}'` = yes; then
8865
8866cat >>confdefs.h <<_ACEOF
8867#define CRAY_STACKSEG_END $ac_func
8868_ACEOF
8869
8870 break
8871fi
8872
8873 done
8874fi
8875
8876echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8877echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8878if test "${ac_cv_c_stack_direction+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8880else
8881 if test "$cross_compiling" = yes; then
8882 ac_cv_c_stack_direction=0
8883else
8884 cat >conftest.$ac_ext <<_ACEOF
8885/* confdefs.h. */
8886_ACEOF
8887cat confdefs.h >>conftest.$ac_ext
8888cat >>conftest.$ac_ext <<_ACEOF
8889/* end confdefs.h. */
8890int
8891find_stack_direction ()
8892{
8893 static char *addr = 0;
8894 auto char dummy;
8895 if (addr == 0)
8896 {
8897 addr = &dummy;
8898 return find_stack_direction ();
8899 }
8900 else
8901 return (&dummy > addr) ? 1 : -1;
8902}
8903
8904int
8905main ()
8906{
8907 exit (find_stack_direction () < 0);
8908}
8909_ACEOF
8910rm -f conftest$ac_exeext
8911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8912 (eval $ac_link) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917 (eval $ac_try) 2>&5
8918 ac_status=$?
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 ac_cv_c_stack_direction=1
8922else
8923 echo "$as_me: program exited with status $ac_status" >&5
8924echo "$as_me: failed program was:" >&5
8925sed 's/^/| /' conftest.$ac_ext >&5
8926
8927( exit $ac_status )
8928ac_cv_c_stack_direction=-1
8929fi
8930rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8931fi
8932fi
8933echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8934echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8935
8936cat >>confdefs.h <<_ACEOF
8937#define STACK_DIRECTION $ac_cv_c_stack_direction
8938_ACEOF
8939
8940
8941fi
8942
8943
8944
8945for ac_header in unistd.h vfork.h
8946do
8947as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8948if eval "test \"\${$as_ac_Header+set}\" = set"; then
8949 echo "$as_me:$LINENO: checking for $ac_header" >&5
8950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8951if eval "test \"\${$as_ac_Header+set}\" = set"; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953fi
8954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8956else
8957 # Is the header compilable?
8958echo "$as_me:$LINENO: checking $ac_header usability" >&5
8959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8960cat >conftest.$ac_ext <<_ACEOF
8961/* confdefs.h. */
8962_ACEOF
8963cat confdefs.h >>conftest.$ac_ext
8964cat >>conftest.$ac_ext <<_ACEOF
8965/* end confdefs.h. */
8966$ac_includes_default
8967#include <$ac_header>
8968_ACEOF
8969rm -f conftest.$ac_objext
8970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8971 (eval $ac_compile) 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"
8979 || test ! -s conftest.err'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; } &&
8985 { ac_try='test -s conftest.$ac_objext'
8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 (eval $ac_try) 2>&5
8988 ac_status=$?
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; }; then
8991 ac_header_compiler=yes
8992else
8993 echo "$as_me: failed program was:" >&5
8994sed 's/^/| /' conftest.$ac_ext >&5
8995
8996ac_header_compiler=no
8997fi
8998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8999echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9000echo "${ECHO_T}$ac_header_compiler" >&6
9001
9002# Is the header present?
9003echo "$as_me:$LINENO: checking $ac_header presence" >&5
9004echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9005cat >conftest.$ac_ext <<_ACEOF
9006/* confdefs.h. */
9007_ACEOF
9008cat confdefs.h >>conftest.$ac_ext
9009cat >>conftest.$ac_ext <<_ACEOF
9010/* end confdefs.h. */
9011#include <$ac_header>
9012_ACEOF
9013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9015 ac_status=$?
9016 grep -v '^ *+' conftest.er1 >conftest.err
9017 rm -f conftest.er1
9018 cat conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } >/dev/null; then
9021 if test -s conftest.err; then
9022 ac_cpp_err=$ac_c_preproc_warn_flag
9023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9024 else
9025 ac_cpp_err=
9026 fi
9027else
9028 ac_cpp_err=yes
9029fi
9030if test -z "$ac_cpp_err"; then
9031 ac_header_preproc=yes
9032else
9033 echo "$as_me: failed program was:" >&5
9034sed 's/^/| /' conftest.$ac_ext >&5
9035
9036 ac_header_preproc=no
9037fi
9038rm -f conftest.err conftest.$ac_ext
9039echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9040echo "${ECHO_T}$ac_header_preproc" >&6
9041
9042# So? What about this header?
9043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9044 yes:no: )
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9046echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9048echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9049 ac_header_preproc=yes
9050 ;;
9051 no:yes:* )
9052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9053echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9055echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9056 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9057echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9058 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9059echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9061echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9062 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9063echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9064 (
9065 cat <<\_ASBOX
9066## ------------------------------- ##
9067## Report this to [email protected] ##
9068## ------------------------------- ##
9069_ASBOX
9070 ) |
9071 sed "s/^/$as_me: WARNING: /" >&2
9072 ;;
9073esac
9074echo "$as_me:$LINENO: checking for $ac_header" >&5
9075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9076if eval "test \"\${$as_ac_Header+set}\" = set"; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078else
9079 eval "$as_ac_Header=\$ac_header_preproc"
9080fi
9081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9083
9084fi
9085if test `eval echo '${'$as_ac_Header'}'` = yes; then
9086 cat >>confdefs.h <<_ACEOF
9087#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9088_ACEOF
9089
9090fi
9091
9092done
9093
9094
9095
9096for ac_func in fork vfork
9097do
9098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9099echo "$as_me:$LINENO: checking for $ac_func" >&5
9100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9101if eval "test \"\${$as_ac_var+set}\" = set"; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9103else
9104 cat >conftest.$ac_ext <<_ACEOF
9105/* confdefs.h. */
9106_ACEOF
9107cat confdefs.h >>conftest.$ac_ext
9108cat >>conftest.$ac_ext <<_ACEOF
9109/* end confdefs.h. */
9110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9112#define $ac_func innocuous_$ac_func
9113
9114/* System header to define __stub macros and hopefully few prototypes,
9115 which can conflict with char $ac_func (); below.
9116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9117 <limits.h> exists even on freestanding compilers. */
9118
9119#ifdef __STDC__
9120# include <limits.h>
9121#else
9122# include <assert.h>
9123#endif
9124
9125#undef $ac_func
9126
9127/* Override any gcc2 internal prototype to avoid an error. */
9128#ifdef __cplusplus
9129extern "C"
9130{
9131#endif
9132/* We use char because int might match the return type of a gcc2
9133 builtin and then its argument prototype would still apply. */
9134char $ac_func ();
9135/* The GNU C library defines this for functions which it implements
9136 to always fail with ENOSYS. Some functions are actually named
9137 something starting with __ and the normal name is an alias. */
9138#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9139choke me
9140#else
9141char (*f) () = $ac_func;
9142#endif
9143#ifdef __cplusplus
9144}
9145#endif
9146
9147int
9148main ()
9149{
9150return f != $ac_func;
9151 ;
9152 return 0;
9153}
9154_ACEOF
9155rm -f conftest.$ac_objext conftest$ac_exeext
9156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9157 (eval $ac_link) 2>conftest.er1
9158 ac_status=$?
9159 grep -v '^ *+' conftest.er1 >conftest.err
9160 rm -f conftest.er1
9161 cat conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -z "$ac_c_werror_flag"
9165 || test ! -s conftest.err'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try='test -s conftest$ac_exeext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 (eval $ac_try) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177 eval "$as_ac_var=yes"
9178else
9179 echo "$as_me: failed program was:" >&5
9180sed 's/^/| /' conftest.$ac_ext >&5
9181
9182eval "$as_ac_var=no"
9183fi
9184rm -f conftest.err conftest.$ac_objext \
9185 conftest$ac_exeext conftest.$ac_ext
9186fi
9187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9188echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9189if test `eval echo '${'$as_ac_var'}'` = yes; then
9190 cat >>confdefs.h <<_ACEOF
9191#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9192_ACEOF
9193
9194fi
9195done
9196
9197if test "x$ac_cv_func_fork" = xyes; then
9198 echo "$as_me:$LINENO: checking for working fork" >&5
9199echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9200if test "${ac_cv_func_fork_works+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202else
9203 if test "$cross_compiling" = yes; then
9204 ac_cv_func_fork_works=cross
9205else
9206 cat >conftest.$ac_ext <<_ACEOF
9207/* By Ruediger Kuhlmann. */
9208 #include <sys/types.h>
9209 #if HAVE_UNISTD_H
9210 # include <unistd.h>
9211 #endif
9212 /* Some systems only have a dummy stub for fork() */
9213 int main ()
9214 {
9215 if (fork() < 0)
9216 exit (1);
9217 exit (0);
9218 }
9219_ACEOF
9220rm -f conftest$ac_exeext
9221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222 (eval $ac_link) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 (eval $ac_try) 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_cv_func_fork_works=yes
9232else
9233 echo "$as_me: program exited with status $ac_status" >&5
9234echo "$as_me: failed program was:" >&5
9235sed 's/^/| /' conftest.$ac_ext >&5
9236
9237( exit $ac_status )
9238ac_cv_func_fork_works=no
9239fi
9240rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9241fi
9242fi
9243echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9244echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9245
9246else
9247 ac_cv_func_fork_works=$ac_cv_func_fork
9248fi
9249if test "x$ac_cv_func_fork_works" = xcross; then
9250 case $host in
9251 *-*-amigaos* | *-*-msdosdjgpp*)
9252 # Override, as these systems have only a dummy fork() stub
9253 ac_cv_func_fork_works=no
9254 ;;
9255 *)
9256 ac_cv_func_fork_works=yes
9257 ;;
9258 esac
9259 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9260echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9261fi
9262ac_cv_func_vfork_works=$ac_cv_func_vfork
9263if test "x$ac_cv_func_vfork" = xyes; then
9264 echo "$as_me:$LINENO: checking for working vfork" >&5
9265echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9266if test "${ac_cv_func_vfork_works+set}" = set; then
9267 echo $ECHO_N "(cached) $ECHO_C" >&6
9268else
9269 if test "$cross_compiling" = yes; then
9270 ac_cv_func_vfork_works=cross
9271else
9272 cat >conftest.$ac_ext <<_ACEOF
9273/* confdefs.h. */
9274_ACEOF
9275cat confdefs.h >>conftest.$ac_ext
9276cat >>conftest.$ac_ext <<_ACEOF
9277/* end confdefs.h. */
9278/* Thanks to Paul Eggert for this test. */
9279#include <stdio.h>
9280#include <stdlib.h>
9281#include <sys/types.h>
9282#include <sys/stat.h>
9283#include <sys/wait.h>
9284#if HAVE_UNISTD_H
9285# include <unistd.h>
9286#endif
9287#if HAVE_VFORK_H
9288# include <vfork.h>
9289#endif
9290/* On some sparc systems, changes by the child to local and incoming
9291 argument registers are propagated back to the parent. The compiler
9292 is told about this with #include <vfork.h>, but some compilers
9293 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9294 static variable whose address is put into a register that is
9295 clobbered by the vfork. */
9296static void
9297#ifdef __cplusplus
9298sparc_address_test (int arg)
9299# else
9300sparc_address_test (arg) int arg;
9301#endif
9302{
9303 static pid_t child;
9304 if (!child) {
9305 child = vfork ();
9306 if (child < 0) {
9307 perror ("vfork");
9308 _exit(2);
9309 }
9310 if (!child) {
9311 arg = getpid();
9312 write(-1, "", 0);
9313 _exit (arg);
9314 }
9315 }
9316}
9317
9318int
9319main ()
9320{
9321 pid_t parent = getpid ();
9322 pid_t child;
9323
9324 sparc_address_test (0);
9325
9326 child = vfork ();
9327
9328 if (child == 0) {
9329 /* Here is another test for sparc vfork register problems. This
9330 test uses lots of local variables, at least as many local
9331 variables as main has allocated so far including compiler
9332 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9333 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9334 reuse the register of parent for one of the local variables,
9335 since it will think that parent can't possibly be used any more
9336 in this routine. Assigning to the local variable will thus
9337 munge parent in the parent process. */
9338 pid_t
9339 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9340 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9341 /* Convince the compiler that p..p7 are live; otherwise, it might
9342 use the same hardware register for all 8 local variables. */
9343 if (p != p1 || p != p2 || p != p3 || p != p4
9344 || p != p5 || p != p6 || p != p7)
9345 _exit(1);
9346
9347 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9348 from child file descriptors. If the child closes a descriptor
9349 before it execs or exits, this munges the parent's descriptor
9350 as well. Test for this by closing stdout in the child. */
9351 _exit(close(fileno(stdout)) != 0);
9352 } else {
9353 int status;
9354 struct stat st;
9355
9356 while (wait(&status) != child)
9357 ;
9358 exit(
9359 /* Was there some problem with vforking? */
9360 child < 0
9361
9362 /* Did the child fail? (This shouldn't happen.) */
9363 || status
9364
9365 /* Did the vfork/compiler bug occur? */
9366 || parent != getpid()
9367
9368 /* Did the file descriptor bug occur? */
9369 || fstat(fileno(stdout), &st) != 0
9370 );
9371 }
9372}
9373_ACEOF
9374rm -f conftest$ac_exeext
9375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9376 (eval $ac_link) 2>&5
9377 ac_status=$?
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 (eval $ac_try) 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 ac_cv_func_vfork_works=yes
9386else
9387 echo "$as_me: program exited with status $ac_status" >&5
9388echo "$as_me: failed program was:" >&5
9389sed 's/^/| /' conftest.$ac_ext >&5
9390
9391( exit $ac_status )
9392ac_cv_func_vfork_works=no
9393fi
9394rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9395fi
9396fi
9397echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9398echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9399
9400fi;
9401if test "x$ac_cv_func_fork_works" = xcross; then
9402 ac_cv_func_vfork_works=$ac_cv_func_vfork
9403 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9404echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9405fi
9406
9407if test "x$ac_cv_func_vfork_works" = xyes; then
9408
9409cat >>confdefs.h <<\_ACEOF
9410#define HAVE_WORKING_VFORK 1
9411_ACEOF
9412
9413else
9414
9415cat >>confdefs.h <<\_ACEOF
9416#define vfork fork
9417_ACEOF
9418
9419fi
9420if test "x$ac_cv_func_fork_works" = xyes; then
9421
9422cat >>confdefs.h <<\_ACEOF
9423#define HAVE_WORKING_FORK 1
9424_ACEOF
9425
9426fi
9427
9428
9429for ac_func in vprintf
9430do
9431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9432echo "$as_me:$LINENO: checking for $ac_func" >&5
9433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9434if eval "test \"\${$as_ac_var+set}\" = set"; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9436else
9437 cat >conftest.$ac_ext <<_ACEOF
9438/* confdefs.h. */
9439_ACEOF
9440cat confdefs.h >>conftest.$ac_ext
9441cat >>conftest.$ac_ext <<_ACEOF
9442/* end confdefs.h. */
9443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9445#define $ac_func innocuous_$ac_func
9446
9447/* System header to define __stub macros and hopefully few prototypes,
9448 which can conflict with char $ac_func (); below.
9449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9450 <limits.h> exists even on freestanding compilers. */
9451
9452#ifdef __STDC__
9453# include <limits.h>
9454#else
9455# include <assert.h>
9456#endif
9457
9458#undef $ac_func
9459
9460/* Override any gcc2 internal prototype to avoid an error. */
9461#ifdef __cplusplus
9462extern "C"
9463{
9464#endif
9465/* We use char because int might match the return type of a gcc2
9466 builtin and then its argument prototype would still apply. */
9467char $ac_func ();
9468/* The GNU C library defines this for functions which it implements
9469 to always fail with ENOSYS. Some functions are actually named
9470 something starting with __ and the normal name is an alias. */
9471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9472choke me
9473#else
9474char (*f) () = $ac_func;
9475#endif
9476#ifdef __cplusplus
9477}
9478#endif
9479
9480int
9481main ()
9482{
9483return f != $ac_func;
9484 ;
9485 return 0;
9486}
9487_ACEOF
9488rm -f conftest.$ac_objext conftest$ac_exeext
9489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9490 (eval $ac_link) 2>conftest.er1
9491 ac_status=$?
9492 grep -v '^ *+' conftest.er1 >conftest.err
9493 rm -f conftest.er1
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try='test -z "$ac_c_werror_flag"
9498 || test ! -s conftest.err'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 (eval $ac_try) 2>&5
9501 ac_status=$?
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; } &&
9504 { ac_try='test -s conftest$ac_exeext'
9505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 (eval $ac_try) 2>&5
9507 ac_status=$?
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; }; then
9510 eval "$as_ac_var=yes"
9511else
9512 echo "$as_me: failed program was:" >&5
9513sed 's/^/| /' conftest.$ac_ext >&5
9514
9515eval "$as_ac_var=no"
9516fi
9517rm -f conftest.err conftest.$ac_objext \
9518 conftest$ac_exeext conftest.$ac_ext
9519fi
9520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9521echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9522if test `eval echo '${'$as_ac_var'}'` = yes; then
9523 cat >>confdefs.h <<_ACEOF
9524#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9525_ACEOF
9526
9527echo "$as_me:$LINENO: checking for _doprnt" >&5
9528echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9529if test "${ac_cv_func__doprnt+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9531else
9532 cat >conftest.$ac_ext <<_ACEOF
9533/* confdefs.h. */
9534_ACEOF
9535cat confdefs.h >>conftest.$ac_ext
9536cat >>conftest.$ac_ext <<_ACEOF
9537/* end confdefs.h. */
9538/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9540#define _doprnt innocuous__doprnt
9541
9542/* System header to define __stub macros and hopefully few prototypes,
9543 which can conflict with char _doprnt (); below.
9544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9545 <limits.h> exists even on freestanding compilers. */
9546
9547#ifdef __STDC__
9548# include <limits.h>
9549#else
9550# include <assert.h>
9551#endif
9552
9553#undef _doprnt
9554
9555/* Override any gcc2 internal prototype to avoid an error. */
9556#ifdef __cplusplus
9557extern "C"
9558{
9559#endif
9560/* We use char because int might match the return type of a gcc2
9561 builtin and then its argument prototype would still apply. */
9562char _doprnt ();
9563/* The GNU C library defines this for functions which it implements
9564 to always fail with ENOSYS. Some functions are actually named
9565 something starting with __ and the normal name is an alias. */
9566#if defined (__stub__doprnt) || defined (__stub____doprnt)
9567choke me
9568#else
9569char (*f) () = _doprnt;
9570#endif
9571#ifdef __cplusplus
9572}
9573#endif
9574
9575int
9576main ()
9577{
9578return f != _doprnt;
9579 ;
9580 return 0;
9581}
9582_ACEOF
9583rm -f conftest.$ac_objext conftest$ac_exeext
9584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9585 (eval $ac_link) 2>conftest.er1
9586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } &&
9592 { ac_try='test -z "$ac_c_werror_flag"
9593 || test ! -s conftest.err'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 (eval $ac_try) 2>&5
9596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; } &&
9599 { ac_try='test -s conftest$ac_exeext'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 (eval $ac_try) 2>&5
9602 ac_status=$?
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; }; then
9605 ac_cv_func__doprnt=yes
9606else
9607 echo "$as_me: failed program was:" >&5
9608sed 's/^/| /' conftest.$ac_ext >&5
9609
9610ac_cv_func__doprnt=no
9611fi
9612rm -f conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9614fi
9615echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9616echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9617if test $ac_cv_func__doprnt = yes; then
9618
9619cat >>confdefs.h <<\_ACEOF
9620#define HAVE_DOPRNT 1
9621_ACEOF
9622
9623fi
9624
9625fi
9626done
9627
9628
9629echo "$as_me:$LINENO: checking whether closedir returns void" >&5
9630echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
9631if test "${ac_cv_func_closedir_void+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633else
9634 if test "$cross_compiling" = yes; then
9635 ac_cv_func_closedir_void=yes
9636else
9637 cat >conftest.$ac_ext <<_ACEOF
9638/* confdefs.h. */
9639_ACEOF
9640cat confdefs.h >>conftest.$ac_ext
9641cat >>conftest.$ac_ext <<_ACEOF
9642/* end confdefs.h. */
9643$ac_includes_default
9644#include <$ac_header_dirent>
9645#ifndef __cplusplus
9646int closedir ();
9647#endif
9648
9649int
9650main ()
9651{
9652exit (closedir (opendir (".")) != 0);
9653 ;
9654 return 0;
9655}
9656_ACEOF
9657rm -f conftest$ac_exeext
9658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9659 (eval $ac_link) 2>&5
9660 ac_status=$?
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668 ac_cv_func_closedir_void=no
9669else
9670 echo "$as_me: program exited with status $ac_status" >&5
9671echo "$as_me: failed program was:" >&5
9672sed 's/^/| /' conftest.$ac_ext >&5
9673
9674( exit $ac_status )
9675ac_cv_func_closedir_void=yes
9676fi
9677rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9678fi
9679fi
9680echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
9681echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
9682if test $ac_cv_func_closedir_void = yes; then
9683
9684cat >>confdefs.h <<\_ACEOF
9685#define CLOSEDIR_VOID 1
9686_ACEOF
9687
9688fi
9689
9690
9691ac_have_func=no # yes means we've found a way to get the load average.
9692
9693# Make sure getloadavg.c is where it belongs, at configure-time.
9694test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
9695 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
9696echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
9697 { (exit 1); exit 1; }; }
9698
9699ac_save_LIBS=$LIBS
9700
9701# Check for getloadavg, but be sure not to touch the cache variable.
9702(echo "$as_me:$LINENO: checking for getloadavg" >&5
9703echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
9704if test "${ac_cv_func_getloadavg+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9706else
9707 cat >conftest.$ac_ext <<_ACEOF
9708/* confdefs.h. */
9709_ACEOF
9710cat confdefs.h >>conftest.$ac_ext
9711cat >>conftest.$ac_ext <<_ACEOF
9712/* end confdefs.h. */
9713/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
9714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9715#define getloadavg innocuous_getloadavg
9716
9717/* System header to define __stub macros and hopefully few prototypes,
9718 which can conflict with char getloadavg (); below.
9719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9720 <limits.h> exists even on freestanding compilers. */
9721
9722#ifdef __STDC__
9723# include <limits.h>
9724#else
9725# include <assert.h>
9726#endif
9727
9728#undef getloadavg
9729
9730/* Override any gcc2 internal prototype to avoid an error. */
9731#ifdef __cplusplus
9732extern "C"
9733{
9734#endif
9735/* We use char because int might match the return type of a gcc2
9736 builtin and then its argument prototype would still apply. */
9737char getloadavg ();
9738/* The GNU C library defines this for functions which it implements
9739 to always fail with ENOSYS. Some functions are actually named
9740 something starting with __ and the normal name is an alias. */
9741#if defined (__stub_getloadavg) || defined (__stub___getloadavg)
9742choke me
9743#else
9744char (*f) () = getloadavg;
9745#endif
9746#ifdef __cplusplus
9747}
9748#endif
9749
9750int
9751main ()
9752{
9753return f != getloadavg;
9754 ;
9755 return 0;
9756}
9757_ACEOF
9758rm -f conftest.$ac_objext conftest$ac_exeext
9759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9760 (eval $ac_link) 2>conftest.er1
9761 ac_status=$?
9762 grep -v '^ *+' conftest.er1 >conftest.err
9763 rm -f conftest.er1
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } &&
9767 { ac_try='test -z "$ac_c_werror_flag"
9768 || test ! -s conftest.err'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 (eval $ac_try) 2>&5
9771 ac_status=$?
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; } &&
9774 { ac_try='test -s conftest$ac_exeext'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_cv_func_getloadavg=yes
9781else
9782 echo "$as_me: failed program was:" >&5
9783sed 's/^/| /' conftest.$ac_ext >&5
9784
9785ac_cv_func_getloadavg=no
9786fi
9787rm -f conftest.err conftest.$ac_objext \
9788 conftest$ac_exeext conftest.$ac_ext
9789fi
9790echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
9791echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
9792if test $ac_cv_func_getloadavg = yes; then
9793 exit 0
9794else
9795 exit 1
9796fi
9797) && ac_have_func=yes
9798
9799# On HPUX9, an unprivileged user can get load averages through this function.
9800
9801for ac_func in pstat_getdynamic
9802do
9803as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9804echo "$as_me:$LINENO: checking for $ac_func" >&5
9805echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9806if eval "test \"\${$as_ac_var+set}\" = set"; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9808else
9809 cat >conftest.$ac_ext <<_ACEOF
9810/* confdefs.h. */
9811_ACEOF
9812cat confdefs.h >>conftest.$ac_ext
9813cat >>conftest.$ac_ext <<_ACEOF
9814/* end confdefs.h. */
9815/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9817#define $ac_func innocuous_$ac_func
9818
9819/* System header to define __stub macros and hopefully few prototypes,
9820 which can conflict with char $ac_func (); below.
9821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9822 <limits.h> exists even on freestanding compilers. */
9823
9824#ifdef __STDC__
9825# include <limits.h>
9826#else
9827# include <assert.h>
9828#endif
9829
9830#undef $ac_func
9831
9832/* Override any gcc2 internal prototype to avoid an error. */
9833#ifdef __cplusplus
9834extern "C"
9835{
9836#endif
9837/* We use char because int might match the return type of a gcc2
9838 builtin and then its argument prototype would still apply. */
9839char $ac_func ();
9840/* The GNU C library defines this for functions which it implements
9841 to always fail with ENOSYS. Some functions are actually named
9842 something starting with __ and the normal name is an alias. */
9843#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9844choke me
9845#else
9846char (*f) () = $ac_func;
9847#endif
9848#ifdef __cplusplus
9849}
9850#endif
9851
9852int
9853main ()
9854{
9855return f != $ac_func;
9856 ;
9857 return 0;
9858}
9859_ACEOF
9860rm -f conftest.$ac_objext conftest$ac_exeext
9861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9862 (eval $ac_link) 2>conftest.er1
9863 ac_status=$?
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try='test -z "$ac_c_werror_flag"
9870 || test ! -s conftest.err'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 (eval $ac_try) 2>&5
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; } &&
9876 { ac_try='test -s conftest$ac_exeext'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 (eval $ac_try) 2>&5
9879 ac_status=$?
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; }; then
9882 eval "$as_ac_var=yes"
9883else
9884 echo "$as_me: failed program was:" >&5
9885sed 's/^/| /' conftest.$ac_ext >&5
9886
9887eval "$as_ac_var=no"
9888fi
9889rm -f conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891fi
9892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9893echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9894if test `eval echo '${'$as_ac_var'}'` = yes; then
9895 cat >>confdefs.h <<_ACEOF
9896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9897_ACEOF
9898
9899fi
9900done
9901
9902
9903# Solaris has libkstat which does not require root.
9904
9905echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
9906echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
9907if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9909else
9910 ac_check_lib_save_LIBS=$LIBS
9911LIBS="-lkstat $LIBS"
9912cat >conftest.$ac_ext <<_ACEOF
9913/* confdefs.h. */
9914_ACEOF
9915cat confdefs.h >>conftest.$ac_ext
9916cat >>conftest.$ac_ext <<_ACEOF
9917/* end confdefs.h. */
9918
9919/* Override any gcc2 internal prototype to avoid an error. */
9920#ifdef __cplusplus
9921extern "C"
9922#endif
9923/* We use char because int might match the return type of a gcc2
9924 builtin and then its argument prototype would still apply. */
9925char kstat_open ();
9926int
9927main ()
9928{
9929kstat_open ();
9930 ;
9931 return 0;
9932}
9933_ACEOF
9934rm -f conftest.$ac_objext conftest$ac_exeext
9935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9936 (eval $ac_link) 2>conftest.er1
9937 ac_status=$?
9938 grep -v '^ *+' conftest.er1 >conftest.err
9939 rm -f conftest.er1
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } &&
9943 { ac_try='test -z "$ac_c_werror_flag"
9944 || test ! -s conftest.err'
9945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 (eval $ac_try) 2>&5
9947 ac_status=$?
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; } &&
9950 { ac_try='test -s conftest$ac_exeext'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; }; then
9956 ac_cv_lib_kstat_kstat_open=yes
9957else
9958 echo "$as_me: failed program was:" >&5
9959sed 's/^/| /' conftest.$ac_ext >&5
9960
9961ac_cv_lib_kstat_kstat_open=no
9962fi
9963rm -f conftest.err conftest.$ac_objext \
9964 conftest$ac_exeext conftest.$ac_ext
9965LIBS=$ac_check_lib_save_LIBS
9966fi
9967echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
9968echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
9969if test $ac_cv_lib_kstat_kstat_open = yes; then
9970 cat >>confdefs.h <<_ACEOF
9971#define HAVE_LIBKSTAT 1
9972_ACEOF
9973
9974 LIBS="-lkstat $LIBS"
9975
9976fi
9977
9978test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
9979
9980# Some systems with -lutil have (and need) -lkvm as well, some do not.
9981# On Solaris, -lkvm requires nlist from -lelf, so check that first
9982# to get the right answer into the cache.
9983# For kstat on solaris, we need libelf to force the definition of SVR4 below.
9984if test $ac_have_func = no; then
9985 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
9986echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
9987if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9989else
9990 ac_check_lib_save_LIBS=$LIBS
9991LIBS="-lelf $LIBS"
9992cat >conftest.$ac_ext <<_ACEOF
9993/* confdefs.h. */
9994_ACEOF
9995cat confdefs.h >>conftest.$ac_ext
9996cat >>conftest.$ac_ext <<_ACEOF
9997/* end confdefs.h. */
9998
9999/* Override any gcc2 internal prototype to avoid an error. */
10000#ifdef __cplusplus
10001extern "C"
10002#endif
10003/* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
10005char elf_begin ();
10006int
10007main ()
10008{
10009elf_begin ();
10010 ;
10011 return 0;
10012}
10013_ACEOF
10014rm -f conftest.$ac_objext conftest$ac_exeext
10015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_lib_elf_elf_begin=yes
10037else
10038 echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
10041ac_cv_lib_elf_elf_begin=no
10042fi
10043rm -f conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10045LIBS=$ac_check_lib_save_LIBS
10046fi
10047echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
10048echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
10049if test $ac_cv_lib_elf_elf_begin = yes; then
10050 LIBS="-lelf $LIBS"
10051fi
10052
10053fi
10054if test $ac_have_func = no; then
10055 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
10056echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
10057if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059else
10060 ac_check_lib_save_LIBS=$LIBS
10061LIBS="-lkvm $LIBS"
10062cat >conftest.$ac_ext <<_ACEOF
10063/* confdefs.h. */
10064_ACEOF
10065cat confdefs.h >>conftest.$ac_ext
10066cat >>conftest.$ac_ext <<_ACEOF
10067/* end confdefs.h. */
10068
10069/* Override any gcc2 internal prototype to avoid an error. */
10070#ifdef __cplusplus
10071extern "C"
10072#endif
10073/* We use char because int might match the return type of a gcc2
10074 builtin and then its argument prototype would still apply. */
10075char kvm_open ();
10076int
10077main ()
10078{
10079kvm_open ();
10080 ;
10081 return 0;
10082}
10083_ACEOF
10084rm -f conftest.$ac_objext conftest$ac_exeext
10085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10086 (eval $ac_link) 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } &&
10093 { ac_try='test -z "$ac_c_werror_flag"
10094 || test ! -s conftest.err'
10095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096 (eval $ac_try) 2>&5
10097 ac_status=$?
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); }; } &&
10100 { ac_try='test -s conftest$ac_exeext'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; }; then
10106 ac_cv_lib_kvm_kvm_open=yes
10107else
10108 echo "$as_me: failed program was:" >&5
10109sed 's/^/| /' conftest.$ac_ext >&5
10110
10111ac_cv_lib_kvm_kvm_open=no
10112fi
10113rm -f conftest.err conftest.$ac_objext \
10114 conftest$ac_exeext conftest.$ac_ext
10115LIBS=$ac_check_lib_save_LIBS
10116fi
10117echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
10118echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
10119if test $ac_cv_lib_kvm_kvm_open = yes; then
10120 LIBS="-lkvm $LIBS"
10121fi
10122
10123 # Check for the 4.4BSD definition of getloadavg.
10124 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
10125echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
10126if test "${ac_cv_lib_util_getloadavg+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10128else
10129 ac_check_lib_save_LIBS=$LIBS
10130LIBS="-lutil $LIBS"
10131cat >conftest.$ac_ext <<_ACEOF
10132/* confdefs.h. */
10133_ACEOF
10134cat confdefs.h >>conftest.$ac_ext
10135cat >>conftest.$ac_ext <<_ACEOF
10136/* end confdefs.h. */
10137
10138/* Override any gcc2 internal prototype to avoid an error. */
10139#ifdef __cplusplus
10140extern "C"
10141#endif
10142/* We use char because int might match the return type of a gcc2
10143 builtin and then its argument prototype would still apply. */
10144char getloadavg ();
10145int
10146main ()
10147{
10148getloadavg ();
10149 ;
10150 return 0;
10151}
10152_ACEOF
10153rm -f conftest.$ac_objext conftest$ac_exeext
10154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10155 (eval $ac_link) 2>conftest.er1
10156 ac_status=$?
10157 grep -v '^ *+' conftest.er1 >conftest.err
10158 rm -f conftest.er1
10159 cat conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } &&
10162 { ac_try='test -z "$ac_c_werror_flag"
10163 || test ! -s conftest.err'
10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; } &&
10169 { ac_try='test -s conftest$ac_exeext'
10170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10171 (eval $ac_try) 2>&5
10172 ac_status=$?
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); }; }; then
10175 ac_cv_lib_util_getloadavg=yes
10176else
10177 echo "$as_me: failed program was:" >&5
10178sed 's/^/| /' conftest.$ac_ext >&5
10179
10180ac_cv_lib_util_getloadavg=no
10181fi
10182rm -f conftest.err conftest.$ac_objext \
10183 conftest$ac_exeext conftest.$ac_ext
10184LIBS=$ac_check_lib_save_LIBS
10185fi
10186echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
10187echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
10188if test $ac_cv_lib_util_getloadavg = yes; then
10189 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
10190fi
10191
10192fi
10193
10194if test $ac_have_func = no; then
10195 # There is a commonly available library for RS/6000 AIX.
10196 # Since it is not a standard part of AIX, it might be installed locally.
10197 ac_getloadavg_LIBS=$LIBS
10198 LIBS="-L/usr/local/lib $LIBS"
10199 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
10200echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
10201if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10203else
10204 ac_check_lib_save_LIBS=$LIBS
10205LIBS="-lgetloadavg $LIBS"
10206cat >conftest.$ac_ext <<_ACEOF
10207/* confdefs.h. */
10208_ACEOF
10209cat confdefs.h >>conftest.$ac_ext
10210cat >>conftest.$ac_ext <<_ACEOF
10211/* end confdefs.h. */
10212
10213/* Override any gcc2 internal prototype to avoid an error. */
10214#ifdef __cplusplus
10215extern "C"
10216#endif
10217/* We use char because int might match the return type of a gcc2
10218 builtin and then its argument prototype would still apply. */
10219char getloadavg ();
10220int
10221main ()
10222{
10223getloadavg ();
10224 ;
10225 return 0;
10226}
10227_ACEOF
10228rm -f conftest.$ac_objext conftest$ac_exeext
10229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10230 (eval $ac_link) 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
10237 { ac_try='test -z "$ac_c_werror_flag"
10238 || test ! -s conftest.err'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10241 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try='test -s conftest$ac_exeext'
10245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246 (eval $ac_try) 2>&5
10247 ac_status=$?
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
10250 ac_cv_lib_getloadavg_getloadavg=yes
10251else
10252 echo "$as_me: failed program was:" >&5
10253sed 's/^/| /' conftest.$ac_ext >&5
10254
10255ac_cv_lib_getloadavg_getloadavg=no
10256fi
10257rm -f conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259LIBS=$ac_check_lib_save_LIBS
10260fi
10261echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
10262echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
10263if test $ac_cv_lib_getloadavg_getloadavg = yes; then
10264 LIBS="-lgetloadavg $LIBS"
10265else
10266 LIBS=$ac_getloadavg_LIBS
10267fi
10268
10269fi
10270
10271# Make sure it is really in the library, if we think we found it,
10272# otherwise set up the replacement function.
10273
10274for ac_func in getloadavg
10275do
10276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10277echo "$as_me:$LINENO: checking for $ac_func" >&5
10278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10279if eval "test \"\${$as_ac_var+set}\" = set"; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281else
10282 cat >conftest.$ac_ext <<_ACEOF
10283/* confdefs.h. */
10284_ACEOF
10285cat confdefs.h >>conftest.$ac_ext
10286cat >>conftest.$ac_ext <<_ACEOF
10287/* end confdefs.h. */
10288/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10290#define $ac_func innocuous_$ac_func
10291
10292/* System header to define __stub macros and hopefully few prototypes,
10293 which can conflict with char $ac_func (); below.
10294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10295 <limits.h> exists even on freestanding compilers. */
10296
10297#ifdef __STDC__
10298# include <limits.h>
10299#else
10300# include <assert.h>
10301#endif
10302
10303#undef $ac_func
10304
10305/* Override any gcc2 internal prototype to avoid an error. */
10306#ifdef __cplusplus
10307extern "C"
10308{
10309#endif
10310/* We use char because int might match the return type of a gcc2
10311 builtin and then its argument prototype would still apply. */
10312char $ac_func ();
10313/* The GNU C library defines this for functions which it implements
10314 to always fail with ENOSYS. Some functions are actually named
10315 something starting with __ and the normal name is an alias. */
10316#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10317choke me
10318#else
10319char (*f) () = $ac_func;
10320#endif
10321#ifdef __cplusplus
10322}
10323#endif
10324
10325int
10326main ()
10327{
10328return f != $ac_func;
10329 ;
10330 return 0;
10331}
10332_ACEOF
10333rm -f conftest.$ac_objext conftest$ac_exeext
10334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335 (eval $ac_link) 2>conftest.er1
10336 ac_status=$?
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } &&
10342 { ac_try='test -z "$ac_c_werror_flag"
10343 || test ! -s conftest.err'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10346 ac_status=$?
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; } &&
10349 { ac_try='test -s conftest$ac_exeext'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10352 ac_status=$?
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; }; then
10355 eval "$as_ac_var=yes"
10356else
10357 echo "$as_me: failed program was:" >&5
10358sed 's/^/| /' conftest.$ac_ext >&5
10359
10360eval "$as_ac_var=no"
10361fi
10362rm -f conftest.err conftest.$ac_objext \
10363 conftest$ac_exeext conftest.$ac_ext
10364fi
10365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10366echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10367if test `eval echo '${'$as_ac_var'}'` = yes; then
10368 cat >>confdefs.h <<_ACEOF
10369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10370_ACEOF
10371
10372else
10373 case $LIBOBJS in
10374 "getloadavg.$ac_objext" | \
10375 *" getloadavg.$ac_objext" | \
10376 "getloadavg.$ac_objext "* | \
10377 *" getloadavg.$ac_objext "* ) ;;
10378 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
10379esac
10380
10381
10382cat >>confdefs.h <<\_ACEOF
10383#define C_GETLOADAVG 1
10384_ACEOF
10385
10386# Figure out what our getloadavg.c needs.
10387ac_have_func=no
10388if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
10389 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
10390echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
10391if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393fi
10394echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
10395echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
10396else
10397 # Is the header compilable?
10398echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
10399echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
10400cat >conftest.$ac_ext <<_ACEOF
10401/* confdefs.h. */
10402_ACEOF
10403cat confdefs.h >>conftest.$ac_ext
10404cat >>conftest.$ac_ext <<_ACEOF
10405/* end confdefs.h. */
10406$ac_includes_default
10407#include <sys/dg_sys_info.h>
10408_ACEOF
10409rm -f conftest.$ac_objext
10410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10411 (eval $ac_compile) 2>conftest.er1
10412 ac_status=$?
10413 grep -v '^ *+' conftest.er1 >conftest.err
10414 rm -f conftest.er1
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } &&
10418 { ac_try='test -z "$ac_c_werror_flag"
10419 || test ! -s conftest.err'
10420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421 (eval $ac_try) 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; } &&
10425 { ac_try='test -s conftest.$ac_objext'
10426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427 (eval $ac_try) 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
10431 ac_header_compiler=yes
10432else
10433 echo "$as_me: failed program was:" >&5
10434sed 's/^/| /' conftest.$ac_ext >&5
10435
10436ac_header_compiler=no
10437fi
10438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10439echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10440echo "${ECHO_T}$ac_header_compiler" >&6
10441
10442# Is the header present?
10443echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
10444echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
10445cat >conftest.$ac_ext <<_ACEOF
10446/* confdefs.h. */
10447_ACEOF
10448cat confdefs.h >>conftest.$ac_ext
10449cat >>conftest.$ac_ext <<_ACEOF
10450/* end confdefs.h. */
10451#include <sys/dg_sys_info.h>
10452_ACEOF
10453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10455 ac_status=$?
10456 grep -v '^ *+' conftest.er1 >conftest.err
10457 rm -f conftest.er1
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } >/dev/null; then
10461 if test -s conftest.err; then
10462 ac_cpp_err=$ac_c_preproc_warn_flag
10463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10464 else
10465 ac_cpp_err=
10466 fi
10467else
10468 ac_cpp_err=yes
10469fi
10470if test -z "$ac_cpp_err"; then
10471 ac_header_preproc=yes
10472else
10473 echo "$as_me: failed program was:" >&5
10474sed 's/^/| /' conftest.$ac_ext >&5
10475
10476 ac_header_preproc=no
10477fi
10478rm -f conftest.err conftest.$ac_ext
10479echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10480echo "${ECHO_T}$ac_header_preproc" >&6
10481
10482# So? What about this header?
10483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10484 yes:no: )
10485 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
10486echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10487 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
10488echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
10489 ac_header_preproc=yes
10490 ;;
10491 no:yes:* )
10492 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
10493echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
10494 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
10495echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
10496 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
10497echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
10498 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
10499echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
10500 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
10501echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
10502 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
10503echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
10504 (
10505 cat <<\_ASBOX
10506## ------------------------------- ##
10507## Report this to [email protected] ##
10508## ------------------------------- ##
10509_ASBOX
10510 ) |
10511 sed "s/^/$as_me: WARNING: /" >&2
10512 ;;
10513esac
10514echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
10515echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
10516if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10518else
10519 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
10520fi
10521echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
10522echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
10523
10524fi
10525if test $ac_cv_header_sys_dg_sys_info_h = yes; then
10526 ac_have_func=yes
10527
10528cat >>confdefs.h <<\_ACEOF
10529#define DGUX 1
10530_ACEOF
10531
10532
10533echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
10534echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
10535if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10537else
10538 ac_check_lib_save_LIBS=$LIBS
10539LIBS="-ldgc $LIBS"
10540cat >conftest.$ac_ext <<_ACEOF
10541/* confdefs.h. */
10542_ACEOF
10543cat confdefs.h >>conftest.$ac_ext
10544cat >>conftest.$ac_ext <<_ACEOF
10545/* end confdefs.h. */
10546
10547/* Override any gcc2 internal prototype to avoid an error. */
10548#ifdef __cplusplus
10549extern "C"
10550#endif
10551/* We use char because int might match the return type of a gcc2
10552 builtin and then its argument prototype would still apply. */
10553char dg_sys_info ();
10554int
10555main ()
10556{
10557dg_sys_info ();
10558 ;
10559 return 0;
10560}
10561_ACEOF
10562rm -f conftest.$ac_objext conftest$ac_exeext
10563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564 (eval $ac_link) 2>conftest.er1
10565 ac_status=$?
10566 grep -v '^ *+' conftest.er1 >conftest.err
10567 rm -f conftest.er1
10568 cat conftest.err >&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } &&
10571 { ac_try='test -z "$ac_c_werror_flag"
10572 || test ! -s conftest.err'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10575 ac_status=$?
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; } &&
10578 { ac_try='test -s conftest$ac_exeext'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; }; then
10584 ac_cv_lib_dgc_dg_sys_info=yes
10585else
10586 echo "$as_me: failed program was:" >&5
10587sed 's/^/| /' conftest.$ac_ext >&5
10588
10589ac_cv_lib_dgc_dg_sys_info=no
10590fi
10591rm -f conftest.err conftest.$ac_objext \
10592 conftest$ac_exeext conftest.$ac_ext
10593LIBS=$ac_check_lib_save_LIBS
10594fi
10595echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
10596echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
10597if test $ac_cv_lib_dgc_dg_sys_info = yes; then
10598 cat >>confdefs.h <<_ACEOF
10599#define HAVE_LIBDGC 1
10600_ACEOF
10601
10602 LIBS="-ldgc $LIBS"
10603
10604fi
10605
10606fi
10607
10608
10609
10610if test "${ac_cv_header_locale_h+set}" = set; then
10611 echo "$as_me:$LINENO: checking for locale.h" >&5
10612echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
10613if test "${ac_cv_header_locale_h+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10615fi
10616echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
10617echo "${ECHO_T}$ac_cv_header_locale_h" >&6
10618else
10619 # Is the header compilable?
10620echo "$as_me:$LINENO: checking locale.h usability" >&5
10621echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
10622cat >conftest.$ac_ext <<_ACEOF
10623/* confdefs.h. */
10624_ACEOF
10625cat confdefs.h >>conftest.$ac_ext
10626cat >>conftest.$ac_ext <<_ACEOF
10627/* end confdefs.h. */
10628$ac_includes_default
10629#include <locale.h>
10630_ACEOF
10631rm -f conftest.$ac_objext
10632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10633 (eval $ac_compile) 2>conftest.er1
10634 ac_status=$?
10635 grep -v '^ *+' conftest.er1 >conftest.err
10636 rm -f conftest.er1
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } &&
10640 { ac_try='test -z "$ac_c_werror_flag"
10641 || test ! -s conftest.err'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10644 ac_status=$?
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; } &&
10647 { ac_try='test -s conftest.$ac_objext'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
10653 ac_header_compiler=yes
10654else
10655 echo "$as_me: failed program was:" >&5
10656sed 's/^/| /' conftest.$ac_ext >&5
10657
10658ac_header_compiler=no
10659fi
10660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10661echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10662echo "${ECHO_T}$ac_header_compiler" >&6
10663
10664# Is the header present?
10665echo "$as_me:$LINENO: checking locale.h presence" >&5
10666echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
10667cat >conftest.$ac_ext <<_ACEOF
10668/* confdefs.h. */
10669_ACEOF
10670cat confdefs.h >>conftest.$ac_ext
10671cat >>conftest.$ac_ext <<_ACEOF
10672/* end confdefs.h. */
10673#include <locale.h>
10674_ACEOF
10675if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10677 ac_status=$?
10678 grep -v '^ *+' conftest.er1 >conftest.err
10679 rm -f conftest.er1
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } >/dev/null; then
10683 if test -s conftest.err; then
10684 ac_cpp_err=$ac_c_preproc_warn_flag
10685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10686 else
10687 ac_cpp_err=
10688 fi
10689else
10690 ac_cpp_err=yes
10691fi
10692if test -z "$ac_cpp_err"; then
10693 ac_header_preproc=yes
10694else
10695 echo "$as_me: failed program was:" >&5
10696sed 's/^/| /' conftest.$ac_ext >&5
10697
10698 ac_header_preproc=no
10699fi
10700rm -f conftest.err conftest.$ac_ext
10701echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10702echo "${ECHO_T}$ac_header_preproc" >&6
10703
10704# So? What about this header?
10705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10706 yes:no: )
10707 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
10708echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
10710echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
10711 ac_header_preproc=yes
10712 ;;
10713 no:yes:* )
10714 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
10715echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
10717echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
10719echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
10721echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
10723echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
10724 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
10725echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
10726 (
10727 cat <<\_ASBOX
10728## ------------------------------- ##
10729## Report this to [email protected] ##
10730## ------------------------------- ##
10731_ASBOX
10732 ) |
10733 sed "s/^/$as_me: WARNING: /" >&2
10734 ;;
10735esac
10736echo "$as_me:$LINENO: checking for locale.h" >&5
10737echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
10738if test "${ac_cv_header_locale_h+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10740else
10741 ac_cv_header_locale_h=$ac_header_preproc
10742fi
10743echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
10744echo "${ECHO_T}$ac_cv_header_locale_h" >&6
10745
10746fi
10747
10748
10749
10750for ac_func in setlocale
10751do
10752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10753echo "$as_me:$LINENO: checking for $ac_func" >&5
10754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10755if eval "test \"\${$as_ac_var+set}\" = set"; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757else
10758 cat >conftest.$ac_ext <<_ACEOF
10759/* confdefs.h. */
10760_ACEOF
10761cat confdefs.h >>conftest.$ac_ext
10762cat >>conftest.$ac_ext <<_ACEOF
10763/* end confdefs.h. */
10764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10766#define $ac_func innocuous_$ac_func
10767
10768/* System header to define __stub macros and hopefully few prototypes,
10769 which can conflict with char $ac_func (); below.
10770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10771 <limits.h> exists even on freestanding compilers. */
10772
10773#ifdef __STDC__
10774# include <limits.h>
10775#else
10776# include <assert.h>
10777#endif
10778
10779#undef $ac_func
10780
10781/* Override any gcc2 internal prototype to avoid an error. */
10782#ifdef __cplusplus
10783extern "C"
10784{
10785#endif
10786/* We use char because int might match the return type of a gcc2
10787 builtin and then its argument prototype would still apply. */
10788char $ac_func ();
10789/* The GNU C library defines this for functions which it implements
10790 to always fail with ENOSYS. Some functions are actually named
10791 something starting with __ and the normal name is an alias. */
10792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10793choke me
10794#else
10795char (*f) () = $ac_func;
10796#endif
10797#ifdef __cplusplus
10798}
10799#endif
10800
10801int
10802main ()
10803{
10804return f != $ac_func;
10805 ;
10806 return 0;
10807}
10808_ACEOF
10809rm -f conftest.$ac_objext conftest$ac_exeext
10810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10811 (eval $ac_link) 2>conftest.er1
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -z "$ac_c_werror_flag"
10819 || test ! -s conftest.err'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest$ac_exeext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 eval "$as_ac_var=yes"
10832else
10833 echo "$as_me: failed program was:" >&5
10834sed 's/^/| /' conftest.$ac_ext >&5
10835
10836eval "$as_ac_var=no"
10837fi
10838rm -f conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840fi
10841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10842echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10843if test `eval echo '${'$as_ac_var'}'` = yes; then
10844 cat >>confdefs.h <<_ACEOF
10845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10846_ACEOF
10847
10848fi
10849done
10850
10851
10852# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
10853# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
10854# Irix 4.0.5F has the header but not the library.
10855if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
10856 ac_have_func=yes
10857
10858cat >>confdefs.h <<\_ACEOF
10859#define SVR4 1
10860_ACEOF
10861
10862fi
10863
10864if test $ac_have_func = no; then
10865 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
10866 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
10867echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
10868if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870fi
10871echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
10872echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
10873else
10874 # Is the header compilable?
10875echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
10876echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
10877cat >conftest.$ac_ext <<_ACEOF
10878/* confdefs.h. */
10879_ACEOF
10880cat confdefs.h >>conftest.$ac_ext
10881cat >>conftest.$ac_ext <<_ACEOF
10882/* end confdefs.h. */
10883$ac_includes_default
10884#include <inq_stats/cpustats.h>
10885_ACEOF
10886rm -f conftest.$ac_objext
10887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10888 (eval $ac_compile) 2>conftest.er1
10889 ac_status=$?
10890 grep -v '^ *+' conftest.er1 >conftest.err
10891 rm -f conftest.er1
10892 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } &&
10895 { ac_try='test -z "$ac_c_werror_flag"
10896 || test ! -s conftest.err'
10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898 (eval $ac_try) 2>&5
10899 ac_status=$?
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; } &&
10902 { ac_try='test -s conftest.$ac_objext'
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10905 ac_status=$?
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10908 ac_header_compiler=yes
10909else
10910 echo "$as_me: failed program was:" >&5
10911sed 's/^/| /' conftest.$ac_ext >&5
10912
10913ac_header_compiler=no
10914fi
10915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10916echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10917echo "${ECHO_T}$ac_header_compiler" >&6
10918
10919# Is the header present?
10920echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
10921echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
10922cat >conftest.$ac_ext <<_ACEOF
10923/* confdefs.h. */
10924_ACEOF
10925cat confdefs.h >>conftest.$ac_ext
10926cat >>conftest.$ac_ext <<_ACEOF
10927/* end confdefs.h. */
10928#include <inq_stats/cpustats.h>
10929_ACEOF
10930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10932 ac_status=$?
10933 grep -v '^ *+' conftest.er1 >conftest.err
10934 rm -f conftest.er1
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } >/dev/null; then
10938 if test -s conftest.err; then
10939 ac_cpp_err=$ac_c_preproc_warn_flag
10940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10941 else
10942 ac_cpp_err=
10943 fi
10944else
10945 ac_cpp_err=yes
10946fi
10947if test -z "$ac_cpp_err"; then
10948 ac_header_preproc=yes
10949else
10950 echo "$as_me: failed program was:" >&5
10951sed 's/^/| /' conftest.$ac_ext >&5
10952
10953 ac_header_preproc=no
10954fi
10955rm -f conftest.err conftest.$ac_ext
10956echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10957echo "${ECHO_T}$ac_header_preproc" >&6
10958
10959# So? What about this header?
10960case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10961 yes:no: )
10962 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
10963echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
10965echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
10966 ac_header_preproc=yes
10967 ;;
10968 no:yes:* )
10969 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
10970echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
10971 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
10972echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
10974echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
10975 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
10976echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
10977 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
10978echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
10979 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
10980echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
10981 (
10982 cat <<\_ASBOX
10983## ------------------------------- ##
10984## Report this to [email protected] ##
10985## ------------------------------- ##
10986_ASBOX
10987 ) |
10988 sed "s/^/$as_me: WARNING: /" >&2
10989 ;;
10990esac
10991echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
10992echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
10993if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995else
10996 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
10997fi
10998echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
10999echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11000
11001fi
11002if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11003 ac_have_func=yes
11004
11005cat >>confdefs.h <<\_ACEOF
11006#define UMAX 1
11007_ACEOF
11008
11009
11010cat >>confdefs.h <<\_ACEOF
11011#define UMAX4_3 1
11012_ACEOF
11013
11014fi
11015
11016
11017fi
11018
11019if test $ac_have_func = no; then
11020 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11021 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11022echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11023if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11025fi
11026echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11027echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11028else
11029 # Is the header compilable?
11030echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11031echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11032cat >conftest.$ac_ext <<_ACEOF
11033/* confdefs.h. */
11034_ACEOF
11035cat confdefs.h >>conftest.$ac_ext
11036cat >>conftest.$ac_ext <<_ACEOF
11037/* end confdefs.h. */
11038$ac_includes_default
11039#include <sys/cpustats.h>
11040_ACEOF
11041rm -f conftest.$ac_objext
11042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043 (eval $ac_compile) 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag"
11051 || test ! -s conftest.err'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; } &&
11057 { ac_try='test -s conftest.$ac_objext'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 ac_header_compiler=yes
11064else
11065 echo "$as_me: failed program was:" >&5
11066sed 's/^/| /' conftest.$ac_ext >&5
11067
11068ac_header_compiler=no
11069fi
11070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11072echo "${ECHO_T}$ac_header_compiler" >&6
11073
11074# Is the header present?
11075echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11076echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11077cat >conftest.$ac_ext <<_ACEOF
11078/* confdefs.h. */
11079_ACEOF
11080cat confdefs.h >>conftest.$ac_ext
11081cat >>conftest.$ac_ext <<_ACEOF
11082/* end confdefs.h. */
11083#include <sys/cpustats.h>
11084_ACEOF
11085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11087 ac_status=$?
11088 grep -v '^ *+' conftest.er1 >conftest.err
11089 rm -f conftest.er1
11090 cat conftest.err >&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } >/dev/null; then
11093 if test -s conftest.err; then
11094 ac_cpp_err=$ac_c_preproc_warn_flag
11095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11096 else
11097 ac_cpp_err=
11098 fi
11099else
11100 ac_cpp_err=yes
11101fi
11102if test -z "$ac_cpp_err"; then
11103 ac_header_preproc=yes
11104else
11105 echo "$as_me: failed program was:" >&5
11106sed 's/^/| /' conftest.$ac_ext >&5
11107
11108 ac_header_preproc=no
11109fi
11110rm -f conftest.err conftest.$ac_ext
11111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11112echo "${ECHO_T}$ac_header_preproc" >&6
11113
11114# So? What about this header?
11115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11116 yes:no: )
11117 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11118echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11119 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
11120echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
11121 ac_header_preproc=yes
11122 ;;
11123 no:yes:* )
11124 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11125echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11126 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11127echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11128 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
11129echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
11130 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
11131echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
11132 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11133echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
11134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
11135echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
11136 (
11137 cat <<\_ASBOX
11138## ------------------------------- ##
11139## Report this to [email protected] ##
11140## ------------------------------- ##
11141_ASBOX
11142 ) |
11143 sed "s/^/$as_me: WARNING: /" >&2
11144 ;;
11145esac
11146echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11147echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11148if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11150else
11151 ac_cv_header_sys_cpustats_h=$ac_header_preproc
11152fi
11153echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11154echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11155
11156fi
11157if test $ac_cv_header_sys_cpustats_h = yes; then
11158 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
11159#define UMAX 1
11160_ACEOF
11161
11162fi
11163
11164
11165fi
11166
11167if test $ac_have_func = no; then
11168
11169for ac_header in mach/mach.h
11170do
11171as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11172if eval "test \"\${$as_ac_Header+set}\" = set"; then
11173 echo "$as_me:$LINENO: checking for $ac_header" >&5
11174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11175if eval "test \"\${$as_ac_Header+set}\" = set"; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177fi
11178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11180else
11181 # Is the header compilable?
11182echo "$as_me:$LINENO: checking $ac_header usability" >&5
11183echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11184cat >conftest.$ac_ext <<_ACEOF
11185/* confdefs.h. */
11186_ACEOF
11187cat confdefs.h >>conftest.$ac_ext
11188cat >>conftest.$ac_ext <<_ACEOF
11189/* end confdefs.h. */
11190$ac_includes_default
11191#include <$ac_header>
11192_ACEOF
11193rm -f conftest.$ac_objext
11194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11195 (eval $ac_compile) 2>conftest.er1
11196 ac_status=$?
11197 grep -v '^ *+' conftest.er1 >conftest.err
11198 rm -f conftest.er1
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } &&
11202 { ac_try='test -z "$ac_c_werror_flag"
11203 || test ! -s conftest.err'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; } &&
11209 { ac_try='test -s conftest.$ac_objext'
11210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211 (eval $ac_try) 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; }; then
11215 ac_header_compiler=yes
11216else
11217 echo "$as_me: failed program was:" >&5
11218sed 's/^/| /' conftest.$ac_ext >&5
11219
11220ac_header_compiler=no
11221fi
11222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11223echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11224echo "${ECHO_T}$ac_header_compiler" >&6
11225
11226# Is the header present?
11227echo "$as_me:$LINENO: checking $ac_header presence" >&5
11228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11229cat >conftest.$ac_ext <<_ACEOF
11230/* confdefs.h. */
11231_ACEOF
11232cat confdefs.h >>conftest.$ac_ext
11233cat >>conftest.$ac_ext <<_ACEOF
11234/* end confdefs.h. */
11235#include <$ac_header>
11236_ACEOF
11237if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } >/dev/null; then
11245 if test -s conftest.err; then
11246 ac_cpp_err=$ac_c_preproc_warn_flag
11247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11248 else
11249 ac_cpp_err=
11250 fi
11251else
11252 ac_cpp_err=yes
11253fi
11254if test -z "$ac_cpp_err"; then
11255 ac_header_preproc=yes
11256else
11257 echo "$as_me: failed program was:" >&5
11258sed 's/^/| /' conftest.$ac_ext >&5
11259
11260 ac_header_preproc=no
11261fi
11262rm -f conftest.err conftest.$ac_ext
11263echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11264echo "${ECHO_T}$ac_header_preproc" >&6
11265
11266# So? What about this header?
11267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11268 yes:no: )
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11270echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11272echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11273 ac_header_preproc=yes
11274 ;;
11275 no:yes:* )
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11277echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11279echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11281echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11283echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11287echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11288 (
11289 cat <<\_ASBOX
11290## ------------------------------- ##
11291## Report this to [email protected] ##
11292## ------------------------------- ##
11293_ASBOX
11294 ) |
11295 sed "s/^/$as_me: WARNING: /" >&2
11296 ;;
11297esac
11298echo "$as_me:$LINENO: checking for $ac_header" >&5
11299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11300if eval "test \"\${$as_ac_Header+set}\" = set"; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302else
11303 eval "$as_ac_Header=\$ac_header_preproc"
11304fi
11305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11306echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11307
11308fi
11309if test `eval echo '${'$as_ac_Header'}'` = yes; then
11310 cat >>confdefs.h <<_ACEOF
11311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11312_ACEOF
11313
11314fi
11315
11316done
11317
11318fi
11319
11320
11321for ac_header in nlist.h
11322do
11323as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11324if eval "test \"\${$as_ac_Header+set}\" = set"; then
11325 echo "$as_me:$LINENO: checking for $ac_header" >&5
11326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11327if eval "test \"\${$as_ac_Header+set}\" = set"; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329fi
11330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11331echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11332else
11333 # Is the header compilable?
11334echo "$as_me:$LINENO: checking $ac_header usability" >&5
11335echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11336cat >conftest.$ac_ext <<_ACEOF
11337/* confdefs.h. */
11338_ACEOF
11339cat confdefs.h >>conftest.$ac_ext
11340cat >>conftest.$ac_ext <<_ACEOF
11341/* end confdefs.h. */
11342$ac_includes_default
11343#include <$ac_header>
11344_ACEOF
11345rm -f conftest.$ac_objext
11346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11347 (eval $ac_compile) 2>conftest.er1
11348 ac_status=$?
11349 grep -v '^ *+' conftest.er1 >conftest.err
11350 rm -f conftest.er1
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try='test -z "$ac_c_werror_flag"
11355 || test ! -s conftest.err'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; } &&
11361 { ac_try='test -s conftest.$ac_objext'
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11364 ac_status=$?
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11367 ac_header_compiler=yes
11368else
11369 echo "$as_me: failed program was:" >&5
11370sed 's/^/| /' conftest.$ac_ext >&5
11371
11372ac_header_compiler=no
11373fi
11374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11375echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11376echo "${ECHO_T}$ac_header_compiler" >&6
11377
11378# Is the header present?
11379echo "$as_me:$LINENO: checking $ac_header presence" >&5
11380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11381cat >conftest.$ac_ext <<_ACEOF
11382/* confdefs.h. */
11383_ACEOF
11384cat confdefs.h >>conftest.$ac_ext
11385cat >>conftest.$ac_ext <<_ACEOF
11386/* end confdefs.h. */
11387#include <$ac_header>
11388_ACEOF
11389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11391 ac_status=$?
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } >/dev/null; then
11397 if test -s conftest.err; then
11398 ac_cpp_err=$ac_c_preproc_warn_flag
11399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11400 else
11401 ac_cpp_err=
11402 fi
11403else
11404 ac_cpp_err=yes
11405fi
11406if test -z "$ac_cpp_err"; then
11407 ac_header_preproc=yes
11408else
11409 echo "$as_me: failed program was:" >&5
11410sed 's/^/| /' conftest.$ac_ext >&5
11411
11412 ac_header_preproc=no
11413fi
11414rm -f conftest.err conftest.$ac_ext
11415echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11416echo "${ECHO_T}$ac_header_preproc" >&6
11417
11418# So? What about this header?
11419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11420 yes:no: )
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11425 ac_header_preproc=yes
11426 ;;
11427 no:yes:* )
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11440 (
11441 cat <<\_ASBOX
11442## ------------------------------- ##
11443## Report this to [email protected] ##
11444## ------------------------------- ##
11445_ASBOX
11446 ) |
11447 sed "s/^/$as_me: WARNING: /" >&2
11448 ;;
11449esac
11450echo "$as_me:$LINENO: checking for $ac_header" >&5
11451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11452if eval "test \"\${$as_ac_Header+set}\" = set"; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11454else
11455 eval "$as_ac_Header=\$ac_header_preproc"
11456fi
11457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11459
11460fi
11461if test `eval echo '${'$as_ac_Header'}'` = yes; then
11462 cat >>confdefs.h <<_ACEOF
11463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11464_ACEOF
11465 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
11466echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
11467if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11469else
11470 cat >conftest.$ac_ext <<_ACEOF
11471/* confdefs.h. */
11472_ACEOF
11473cat confdefs.h >>conftest.$ac_ext
11474cat >>conftest.$ac_ext <<_ACEOF
11475/* end confdefs.h. */
11476#include <nlist.h>
11477
11478int
11479main ()
11480{
11481static struct nlist ac_aggr;
11482if (ac_aggr.n_un.n_name)
11483return 0;
11484 ;
11485 return 0;
11486}
11487_ACEOF
11488rm -f conftest.$ac_objext
11489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490 (eval $ac_compile) 2>conftest.er1
11491 ac_status=$?
11492 grep -v '^ *+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest.$ac_objext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_member_struct_nlist_n_un_n_name=yes
11511else
11512 echo "$as_me: failed program was:" >&5
11513sed 's/^/| /' conftest.$ac_ext >&5
11514
11515cat >conftest.$ac_ext <<_ACEOF
11516/* confdefs.h. */
11517_ACEOF
11518cat confdefs.h >>conftest.$ac_ext
11519cat >>conftest.$ac_ext <<_ACEOF
11520/* end confdefs.h. */
11521#include <nlist.h>
11522
11523int
11524main ()
11525{
11526static struct nlist ac_aggr;
11527if (sizeof ac_aggr.n_un.n_name)
11528return 0;
11529 ;
11530 return 0;
11531}
11532_ACEOF
11533rm -f conftest.$ac_objext
11534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11535 (eval $ac_compile) 2>conftest.er1
11536 ac_status=$?
11537 grep -v '^ *+' conftest.er1 >conftest.err
11538 rm -f conftest.er1
11539 cat conftest.err >&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } &&
11542 { ac_try='test -z "$ac_c_werror_flag"
11543 || test ! -s conftest.err'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; } &&
11549 { ac_try='test -s conftest.$ac_objext'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 ac_cv_member_struct_nlist_n_un_n_name=yes
11556else
11557 echo "$as_me: failed program was:" >&5
11558sed 's/^/| /' conftest.$ac_ext >&5
11559
11560ac_cv_member_struct_nlist_n_un_n_name=no
11561fi
11562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11563fi
11564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11565fi
11566echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
11567echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
11568if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
11569
11570cat >>confdefs.h <<_ACEOF
11571#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11572_ACEOF
11573
11574
11575cat >>confdefs.h <<\_ACEOF
11576#define NLIST_NAME_UNION 1
11577_ACEOF
11578
11579fi
11580
11581
11582fi
11583
11584done
11585
11586fi
11587done
11588
11589
11590# Some definitions of getloadavg require that the program be installed setgid.
11591echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
11592echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
11593if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11595else
11596 cat >conftest.$ac_ext <<_ACEOF
11597/* confdefs.h. */
11598_ACEOF
11599cat confdefs.h >>conftest.$ac_ext
11600cat >>conftest.$ac_ext <<_ACEOF
11601/* end confdefs.h. */
11602#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11603#ifdef LDAV_PRIVILEGED
11604Yowza Am I SETGID yet
11605#endif
11606_ACEOF
11607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11608 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
11609 ac_cv_func_getloadavg_setgid=yes
11610else
11611 ac_cv_func_getloadavg_setgid=no
11612fi
11613rm -f conftest*
11614
11615fi
11616echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
11617echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
11618if test $ac_cv_func_getloadavg_setgid = yes; then
11619 NEED_SETGID=true
11620
11621cat >>confdefs.h <<\_ACEOF
11622#define GETLOADAVG_PRIVILEGED 1
11623_ACEOF
11624
11625else
11626 NEED_SETGID=false
11627fi
11628
11629if test $ac_cv_func_getloadavg_setgid = yes; then
11630 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
11631echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
11632if test "${ac_cv_group_kmem+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634else
11635 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11636 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11637 # If we got an error (system does not support symlinks), try without -L.
11638 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11639 ac_cv_group_kmem=`echo $ac_ls_output \
11640 | sed -ne 's/[ ][ ]*/ /g;
11641 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11642 / /s/.* //;p;'`
11643
11644fi
11645echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
11646echo "${ECHO_T}$ac_cv_group_kmem" >&6
11647 KMEM_GROUP=$ac_cv_group_kmem
11648fi
11649if test "x$ac_save_LIBS" = x; then
11650 GETLOADAVG_LIBS=$LIBS
11651else
11652 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
11653fi
11654LIBS=$ac_save_LIBS
11655
11656
11657
11658# AC_FUNC_GETLOADAVG is documented to set the NLIST_STRUCT value, but it
11659# doesn't. So, we will.
11660
11661if test "$ac_cv_header_nlist_h" = yes; then
11662 cat >conftest.$ac_ext <<_ACEOF
11663/* confdefs.h. */
11664_ACEOF
11665cat confdefs.h >>conftest.$ac_ext
11666cat >>conftest.$ac_ext <<_ACEOF
11667/* end confdefs.h. */
11668#include <nlist.h>
11669int
11670main ()
11671{
11672struct nlist nl;
11673 nl.n_name = "string";
11674 return 0;
11675 ;
11676 return 0;
11677}
11678_ACEOF
11679rm -f conftest.$ac_objext
11680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11681 (eval $ac_compile) 2>conftest.er1
11682 ac_status=$?
11683 grep -v '^ *+' conftest.er1 >conftest.err
11684 rm -f conftest.er1
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } &&
11688 { ac_try='test -z "$ac_c_werror_flag"
11689 || test ! -s conftest.err'
11690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691 (eval $ac_try) 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; } &&
11695 { ac_try='test -s conftest.$ac_objext'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; }; then
11701 make_cv_nlist_struct=yes
11702else
11703 echo "$as_me: failed program was:" >&5
11704sed 's/^/| /' conftest.$ac_ext >&5
11705
11706make_cv_nlist_struct=no
11707fi
11708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11709 if test "$make_cv_nlist_struct" = yes; then
11710
11711cat >>confdefs.h <<\_ACEOF
11712#define NLIST_STRUCT 1
11713_ACEOF
11714
11715 fi
11716fi
11717
11718echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
11719echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
11720if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722else
11723 cat >conftest.$ac_ext <<_ACEOF
11724/* confdefs.h. */
11725_ACEOF
11726cat confdefs.h >>conftest.$ac_ext
11727cat >>conftest.$ac_ext <<_ACEOF
11728/* end confdefs.h. */
11729$ac_includes_default
11730int
11731main ()
11732{
11733#ifndef sys_siglist
11734 char *p = (char *) sys_siglist;
11735#endif
11736
11737 ;
11738 return 0;
11739}
11740_ACEOF
11741rm -f conftest.$ac_objext
11742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743 (eval $ac_compile) 2>conftest.er1
11744 ac_status=$?
11745 grep -v '^ *+' conftest.er1 >conftest.err
11746 rm -f conftest.er1
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } &&
11750 { ac_try='test -z "$ac_c_werror_flag"
11751 || test ! -s conftest.err'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; } &&
11757 { ac_try='test -s conftest.$ac_objext'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
11763 ac_cv_have_decl_sys_siglist=yes
11764else
11765 echo "$as_me: failed program was:" >&5
11766sed 's/^/| /' conftest.$ac_ext >&5
11767
11768ac_cv_have_decl_sys_siglist=no
11769fi
11770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11771fi
11772echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
11773echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
11774if test $ac_cv_have_decl_sys_siglist = yes; then
11775
11776cat >>confdefs.h <<_ACEOF
11777#define HAVE_DECL_SYS_SIGLIST 1
11778_ACEOF
11779
11780
11781else
11782 cat >>confdefs.h <<_ACEOF
11783#define HAVE_DECL_SYS_SIGLIST 0
11784_ACEOF
11785
11786
11787fi
11788
11789
11790
11791
11792# Check out the wait reality.
11793
11794for ac_header in sys/wait.h
11795do
11796as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11797if eval "test \"\${$as_ac_Header+set}\" = set"; then
11798 echo "$as_me:$LINENO: checking for $ac_header" >&5
11799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11800if eval "test \"\${$as_ac_Header+set}\" = set"; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11802fi
11803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11804echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11805else
11806 # Is the header compilable?
11807echo "$as_me:$LINENO: checking $ac_header usability" >&5
11808echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11809cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h. */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h. */
11815$ac_includes_default
11816#include <$ac_header>
11817_ACEOF
11818rm -f conftest.$ac_objext
11819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11820 (eval $ac_compile) 2>conftest.er1
11821 ac_status=$?
11822 grep -v '^ *+' conftest.er1 >conftest.err
11823 rm -f conftest.er1
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } &&
11827 { ac_try='test -z "$ac_c_werror_flag"
11828 || test ! -s conftest.err'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; } &&
11834 { ac_try='test -s conftest.$ac_objext'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 ac_header_compiler=yes
11841else
11842 echo "$as_me: failed program was:" >&5
11843sed 's/^/| /' conftest.$ac_ext >&5
11844
11845ac_header_compiler=no
11846fi
11847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11848echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11849echo "${ECHO_T}$ac_header_compiler" >&6
11850
11851# Is the header present?
11852echo "$as_me:$LINENO: checking $ac_header presence" >&5
11853echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11854cat >conftest.$ac_ext <<_ACEOF
11855/* confdefs.h. */
11856_ACEOF
11857cat confdefs.h >>conftest.$ac_ext
11858cat >>conftest.$ac_ext <<_ACEOF
11859/* end confdefs.h. */
11860#include <$ac_header>
11861_ACEOF
11862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } >/dev/null; then
11870 if test -s conftest.err; then
11871 ac_cpp_err=$ac_c_preproc_warn_flag
11872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11873 else
11874 ac_cpp_err=
11875 fi
11876else
11877 ac_cpp_err=yes
11878fi
11879if test -z "$ac_cpp_err"; then
11880 ac_header_preproc=yes
11881else
11882 echo "$as_me: failed program was:" >&5
11883sed 's/^/| /' conftest.$ac_ext >&5
11884
11885 ac_header_preproc=no
11886fi
11887rm -f conftest.err conftest.$ac_ext
11888echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11889echo "${ECHO_T}$ac_header_preproc" >&6
11890
11891# So? What about this header?
11892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11893 yes:no: )
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11895echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11897echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11898 ac_header_preproc=yes
11899 ;;
11900 no:yes:* )
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11902echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11904echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11906echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11908echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11912echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11913 (
11914 cat <<\_ASBOX
11915## ------------------------------- ##
11916## Report this to [email protected] ##
11917## ------------------------------- ##
11918_ASBOX
11919 ) |
11920 sed "s/^/$as_me: WARNING: /" >&2
11921 ;;
11922esac
11923echo "$as_me:$LINENO: checking for $ac_header" >&5
11924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11925if eval "test \"\${$as_ac_Header+set}\" = set"; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927else
11928 eval "$as_ac_Header=\$ac_header_preproc"
11929fi
11930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11932
11933fi
11934if test `eval echo '${'$as_ac_Header'}'` = yes; then
11935 cat >>confdefs.h <<_ACEOF
11936#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11937_ACEOF
11938
11939fi
11940
11941done
11942
11943
11944
11945for ac_func in waitpid wait3
11946do
11947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11948echo "$as_me:$LINENO: checking for $ac_func" >&5
11949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11950if eval "test \"\${$as_ac_var+set}\" = set"; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952else
11953 cat >conftest.$ac_ext <<_ACEOF
11954/* confdefs.h. */
11955_ACEOF
11956cat confdefs.h >>conftest.$ac_ext
11957cat >>conftest.$ac_ext <<_ACEOF
11958/* end confdefs.h. */
11959/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11961#define $ac_func innocuous_$ac_func
11962
11963/* System header to define __stub macros and hopefully few prototypes,
11964 which can conflict with char $ac_func (); below.
11965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11966 <limits.h> exists even on freestanding compilers. */
11967
11968#ifdef __STDC__
11969# include <limits.h>
11970#else
11971# include <assert.h>
11972#endif
11973
11974#undef $ac_func
11975
11976/* Override any gcc2 internal prototype to avoid an error. */
11977#ifdef __cplusplus
11978extern "C"
11979{
11980#endif
11981/* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11983char $ac_func ();
11984/* The GNU C library defines this for functions which it implements
11985 to always fail with ENOSYS. Some functions are actually named
11986 something starting with __ and the normal name is an alias. */
11987#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11988choke me
11989#else
11990char (*f) () = $ac_func;
11991#endif
11992#ifdef __cplusplus
11993}
11994#endif
11995
11996int
11997main ()
11998{
11999return f != $ac_func;
12000 ;
12001 return 0;
12002}
12003_ACEOF
12004rm -f conftest.$ac_objext conftest$ac_exeext
12005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12006 (eval $ac_link) 2>conftest.er1
12007 ac_status=$?
12008 grep -v '^ *+' conftest.er1 >conftest.err
12009 rm -f conftest.er1
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } &&
12013 { ac_try='test -z "$ac_c_werror_flag"
12014 || test ! -s conftest.err'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest$ac_exeext'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 eval "$as_ac_var=yes"
12027else
12028 echo "$as_me: failed program was:" >&5
12029sed 's/^/| /' conftest.$ac_ext >&5
12030
12031eval "$as_ac_var=no"
12032fi
12033rm -f conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12035fi
12036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12037echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12038if test `eval echo '${'$as_ac_var'}'` = yes; then
12039 cat >>confdefs.h <<_ACEOF
12040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12041_ACEOF
12042
12043fi
12044done
12045
12046echo "$as_me:$LINENO: checking for union wait" >&5
12047echo $ECHO_N "checking for union wait... $ECHO_C" >&6
12048if test "${make_cv_union_wait+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050else
12051 cat >conftest.$ac_ext <<_ACEOF
12052/* confdefs.h. */
12053_ACEOF
12054cat confdefs.h >>conftest.$ac_ext
12055cat >>conftest.$ac_ext <<_ACEOF
12056/* end confdefs.h. */
12057#include <sys/types.h>
12058#include <sys/wait.h>
12059int
12060main ()
12061{
12062union wait status; int pid; pid = wait (&status);
12063#ifdef WEXITSTATUS
12064/* Some POSIXoid systems have both the new-style macros and the old
12065 union wait type, and they do not work together. If union wait
12066 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
12067 if (WEXITSTATUS (status) != 0) pid = -1;
12068#ifdef WTERMSIG
12069 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
12070 -- blow chunks here --
12071#endif
12072#endif
12073#ifdef HAVE_WAITPID
12074 /* Make sure union wait works with waitpid. */
12075 pid = waitpid (-1, &status, 0);
12076#endif
12077
12078 ;
12079 return 0;
12080}
12081_ACEOF
12082rm -f conftest.$ac_objext conftest$ac_exeext
12083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12084 (eval $ac_link) 2>conftest.er1
12085 ac_status=$?
12086 grep -v '^ *+' conftest.er1 >conftest.err
12087 rm -f conftest.er1
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } &&
12091 { ac_try='test -z "$ac_c_werror_flag"
12092 || test ! -s conftest.err'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; } &&
12098 { ac_try='test -s conftest$ac_exeext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 make_cv_union_wait=yes
12105else
12106 echo "$as_me: failed program was:" >&5
12107sed 's/^/| /' conftest.$ac_ext >&5
12108
12109make_cv_union_wait=no
12110fi
12111rm -f conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12113fi
12114
12115if test "$make_cv_union_wait" = yes; then
12116
12117cat >>confdefs.h <<\_ACEOF
12118#define HAVE_UNION_WAIT 1
12119_ACEOF
12120
12121fi
12122echo "$as_me:$LINENO: result: $make_cv_union_wait" >&5
12123echo "${ECHO_T}$make_cv_union_wait" >&6
12124
12125
12126# If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
12127if test "$PATH_SEPARATOR" = ';'; then
12128
12129cat >>confdefs.h <<\_ACEOF
12130#define HAVE_DOS_PATHS 1
12131_ACEOF
12132
12133fi
12134
12135
12136# See if the user wants to use pmake's "customs" distributed build capability
12137
12138 REMOTE=stub
12139use_customs=false
12140
12141# Check whether --with-customs or --without-customs was given.
12142if test "${with_customs+set}" = set; then
12143 withval="$with_customs"
12144 case $withval in
12145 n|no) : ;;
12146 *) make_cppflags="$CPPFLAGS"
12147 case $withval in
12148 y|ye|yes) : ;;
12149 *) CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
12150 make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
12151 esac
12152
12153cf_test_netlibs=no
12154echo "$as_me:$LINENO: checking for network libraries" >&5
12155echo $ECHO_N "checking for network libraries... $ECHO_C" >&6
12156if test "${cf_cv_netlibs+set}" = set; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12158else
12159
12160echo "$as_me:$LINENO: result: working..." >&5
12161echo "${ECHO_T}working..." >&6
12162cf_cv_netlibs=""
12163cf_test_netlibs=yes
12164
12165for ac_func in gethostname
12166do
12167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12168echo "$as_me:$LINENO: checking for $ac_func" >&5
12169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12170if eval "test \"\${$as_ac_var+set}\" = set"; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12172else
12173 cat >conftest.$ac_ext <<_ACEOF
12174/* confdefs.h. */
12175_ACEOF
12176cat confdefs.h >>conftest.$ac_ext
12177cat >>conftest.$ac_ext <<_ACEOF
12178/* end confdefs.h. */
12179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12181#define $ac_func innocuous_$ac_func
12182
12183/* System header to define __stub macros and hopefully few prototypes,
12184 which can conflict with char $ac_func (); below.
12185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12186 <limits.h> exists even on freestanding compilers. */
12187
12188#ifdef __STDC__
12189# include <limits.h>
12190#else
12191# include <assert.h>
12192#endif
12193
12194#undef $ac_func
12195
12196/* Override any gcc2 internal prototype to avoid an error. */
12197#ifdef __cplusplus
12198extern "C"
12199{
12200#endif
12201/* We use char because int might match the return type of a gcc2
12202 builtin and then its argument prototype would still apply. */
12203char $ac_func ();
12204/* The GNU C library defines this for functions which it implements
12205 to always fail with ENOSYS. Some functions are actually named
12206 something starting with __ and the normal name is an alias. */
12207#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12208choke me
12209#else
12210char (*f) () = $ac_func;
12211#endif
12212#ifdef __cplusplus
12213}
12214#endif
12215
12216int
12217main ()
12218{
12219return f != $ac_func;
12220 ;
12221 return 0;
12222}
12223_ACEOF
12224rm -f conftest.$ac_objext conftest$ac_exeext
12225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12226 (eval $ac_link) 2>conftest.er1
12227 ac_status=$?
12228 grep -v '^ *+' conftest.er1 >conftest.err
12229 rm -f conftest.er1
12230 cat conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } &&
12233 { ac_try='test -z "$ac_c_werror_flag"
12234 || test ! -s conftest.err'
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12237 ac_status=$?
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; } &&
12240 { ac_try='test -s conftest$ac_exeext'
12241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242 (eval $ac_try) 2>&5
12243 ac_status=$?
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; }; then
12246 eval "$as_ac_var=yes"
12247else
12248 echo "$as_me: failed program was:" >&5
12249sed 's/^/| /' conftest.$ac_ext >&5
12250
12251eval "$as_ac_var=no"
12252fi
12253rm -f conftest.err conftest.$ac_objext \
12254 conftest$ac_exeext conftest.$ac_ext
12255fi
12256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12257echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12258if test `eval echo '${'$as_ac_var'}'` = yes; then
12259 cat >>confdefs.h <<_ACEOF
12260#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12261_ACEOF
12262
12263else
12264
12265
12266echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5
12267echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6
12268if test "${ac_cv_lib_nsl_gethostname+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270else
12271 ac_check_lib_save_LIBS=$LIBS
12272LIBS="-lnsl $cf_cv_netlibs $LIBS"
12273cat >conftest.$ac_ext <<_ACEOF
12274/* confdefs.h. */
12275_ACEOF
12276cat confdefs.h >>conftest.$ac_ext
12277cat >>conftest.$ac_ext <<_ACEOF
12278/* end confdefs.h. */
12279
12280/* Override any gcc2 internal prototype to avoid an error. */
12281#ifdef __cplusplus
12282extern "C"
12283#endif
12284/* We use char because int might match the return type of a gcc2
12285 builtin and then its argument prototype would still apply. */
12286char gethostname ();
12287int
12288main ()
12289{
12290gethostname ();
12291 ;
12292 return 0;
12293}
12294_ACEOF
12295rm -f conftest.$ac_objext conftest$ac_exeext
12296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297 (eval $ac_link) 2>conftest.er1
12298 ac_status=$?
12299 grep -v '^ *+' conftest.er1 >conftest.err
12300 rm -f conftest.er1
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } &&
12304 { ac_try='test -z "$ac_c_werror_flag"
12305 || test ! -s conftest.err'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; } &&
12311 { ac_try='test -s conftest$ac_exeext'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 ac_cv_lib_nsl_gethostname=yes
12318else
12319 echo "$as_me: failed program was:" >&5
12320sed 's/^/| /' conftest.$ac_ext >&5
12321
12322ac_cv_lib_nsl_gethostname=no
12323fi
12324rm -f conftest.err conftest.$ac_objext \
12325 conftest$ac_exeext conftest.$ac_ext
12326LIBS=$ac_check_lib_save_LIBS
12327fi
12328echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5
12329echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6
12330if test $ac_cv_lib_nsl_gethostname = yes; then
12331
12332
12333cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
12334
12335
12336cat >>confdefs.h <<_ACEOF
12337#define HAVE_$cf_tr_func 1
12338_ACEOF
12339
12340 ac_cv_func_gethostname=yes
12341 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
12342else
12343
12344 ac_cv_func_gethostname=unknown
12345 unset ac_cv_func_gethostname 2>/dev/null
12346
12347
12348echo "$as_me:$LINENO: checking for gethostname in -lsocket" >&5
12349echo $ECHO_N "checking for gethostname in -lsocket... $ECHO_C" >&6
12350if test "${ac_cv_lib_socket_gethostname+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12352else
12353 ac_check_lib_save_LIBS=$LIBS
12354LIBS="-lsocket $cf_cv_netlibs $LIBS"
12355cat >conftest.$ac_ext <<_ACEOF
12356/* confdefs.h. */
12357_ACEOF
12358cat confdefs.h >>conftest.$ac_ext
12359cat >>conftest.$ac_ext <<_ACEOF
12360/* end confdefs.h. */
12361
12362/* Override any gcc2 internal prototype to avoid an error. */
12363#ifdef __cplusplus
12364extern "C"
12365#endif
12366/* We use char because int might match the return type of a gcc2
12367 builtin and then its argument prototype would still apply. */
12368char gethostname ();
12369int
12370main ()
12371{
12372gethostname ();
12373 ;
12374 return 0;
12375}
12376_ACEOF
12377rm -f conftest.$ac_objext conftest$ac_exeext
12378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379 (eval $ac_link) 2>conftest.er1
12380 ac_status=$?
12381 grep -v '^ *+' conftest.er1 >conftest.err
12382 rm -f conftest.er1
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } &&
12386 { ac_try='test -z "$ac_c_werror_flag"
12387 || test ! -s conftest.err'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest$ac_exeext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_cv_lib_socket_gethostname=yes
12400else
12401 echo "$as_me: failed program was:" >&5
12402sed 's/^/| /' conftest.$ac_ext >&5
12403
12404ac_cv_lib_socket_gethostname=no
12405fi
12406rm -f conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408LIBS=$ac_check_lib_save_LIBS
12409fi
12410echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostname" >&5
12411echo "${ECHO_T}$ac_cv_lib_socket_gethostname" >&6
12412if test $ac_cv_lib_socket_gethostname = yes; then
12413
12414
12415cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
12416
12417
12418cat >>confdefs.h <<_ACEOF
12419#define HAVE_$cf_tr_func 1
12420_ACEOF
12421
12422 ac_cv_func_gethostname=yes
12423 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
12424else
12425
12426 ac_cv_func_gethostname=unknown
12427 unset ac_cv_func_gethostname 2>/dev/null
12428
12429fi
12430
12431
12432fi
12433
12434
12435fi
12436done
12437
12438#
12439# FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but
12440# I don't know the entrypoints - 97/7/22 TD
12441echo "$as_me:$LINENO: checking for main in -linet" >&5
12442echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6
12443if test "${ac_cv_lib_inet_main+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445else
12446 ac_check_lib_save_LIBS=$LIBS
12447LIBS="-linet $LIBS"
12448cat >conftest.$ac_ext <<_ACEOF
12449/* confdefs.h. */
12450_ACEOF
12451cat confdefs.h >>conftest.$ac_ext
12452cat >>conftest.$ac_ext <<_ACEOF
12453/* end confdefs.h. */
12454
12455
12456int
12457main ()
12458{
12459main ();
12460 ;
12461 return 0;
12462}
12463_ACEOF
12464rm -f conftest.$ac_objext conftest$ac_exeext
12465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12466 (eval $ac_link) 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"
12474 || test ! -s conftest.err'
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; } &&
12480 { ac_try='test -s conftest$ac_exeext'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 ac_cv_lib_inet_main=yes
12487else
12488 echo "$as_me: failed program was:" >&5
12489sed 's/^/| /' conftest.$ac_ext >&5
12490
12491ac_cv_lib_inet_main=no
12492fi
12493rm -f conftest.err conftest.$ac_objext \
12494 conftest$ac_exeext conftest.$ac_ext
12495LIBS=$ac_check_lib_save_LIBS
12496fi
12497echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
12498echo "${ECHO_T}$ac_cv_lib_inet_main" >&6
12499if test $ac_cv_lib_inet_main = yes; then
12500 cf_cv_netlibs="-linet $cf_cv_netlibs"
12501fi
12502
12503#
12504if test "$ac_cv_func_lsocket" != no ; then
12505
12506for ac_func in socket
12507do
12508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12509echo "$as_me:$LINENO: checking for $ac_func" >&5
12510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12511if eval "test \"\${$as_ac_var+set}\" = set"; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513else
12514 cat >conftest.$ac_ext <<_ACEOF
12515/* confdefs.h. */
12516_ACEOF
12517cat confdefs.h >>conftest.$ac_ext
12518cat >>conftest.$ac_ext <<_ACEOF
12519/* end confdefs.h. */
12520/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12522#define $ac_func innocuous_$ac_func
12523
12524/* System header to define __stub macros and hopefully few prototypes,
12525 which can conflict with char $ac_func (); below.
12526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12527 <limits.h> exists even on freestanding compilers. */
12528
12529#ifdef __STDC__
12530# include <limits.h>
12531#else
12532# include <assert.h>
12533#endif
12534
12535#undef $ac_func
12536
12537/* Override any gcc2 internal prototype to avoid an error. */
12538#ifdef __cplusplus
12539extern "C"
12540{
12541#endif
12542/* We use char because int might match the return type of a gcc2
12543 builtin and then its argument prototype would still apply. */
12544char $ac_func ();
12545/* The GNU C library defines this for functions which it implements
12546 to always fail with ENOSYS. Some functions are actually named
12547 something starting with __ and the normal name is an alias. */
12548#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12549choke me
12550#else
12551char (*f) () = $ac_func;
12552#endif
12553#ifdef __cplusplus
12554}
12555#endif
12556
12557int
12558main ()
12559{
12560return f != $ac_func;
12561 ;
12562 return 0;
12563}
12564_ACEOF
12565rm -f conftest.$ac_objext conftest$ac_exeext
12566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12567 (eval $ac_link) 2>conftest.er1
12568 ac_status=$?
12569 grep -v '^ *+' conftest.er1 >conftest.err
12570 rm -f conftest.er1
12571 cat conftest.err >&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } &&
12574 { ac_try='test -z "$ac_c_werror_flag"
12575 || test ! -s conftest.err'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; } &&
12581 { ac_try='test -s conftest$ac_exeext'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12587 eval "$as_ac_var=yes"
12588else
12589 echo "$as_me: failed program was:" >&5
12590sed 's/^/| /' conftest.$ac_ext >&5
12591
12592eval "$as_ac_var=no"
12593fi
12594rm -f conftest.err conftest.$ac_objext \
12595 conftest$ac_exeext conftest.$ac_ext
12596fi
12597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12598echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12599if test `eval echo '${'$as_ac_var'}'` = yes; then
12600 cat >>confdefs.h <<_ACEOF
12601#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12602_ACEOF
12603
12604else
12605
12606
12607echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12608echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
12609if test "${ac_cv_lib_socket_socket+set}" = set; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
12611else
12612 ac_check_lib_save_LIBS=$LIBS
12613LIBS="-lsocket $cf_cv_netlibs $LIBS"
12614cat >conftest.$ac_ext <<_ACEOF
12615/* confdefs.h. */
12616_ACEOF
12617cat confdefs.h >>conftest.$ac_ext
12618cat >>conftest.$ac_ext <<_ACEOF
12619/* end confdefs.h. */
12620
12621/* Override any gcc2 internal prototype to avoid an error. */
12622#ifdef __cplusplus
12623extern "C"
12624#endif
12625/* We use char because int might match the return type of a gcc2
12626 builtin and then its argument prototype would still apply. */
12627char socket ();
12628int
12629main ()
12630{
12631socket ();
12632 ;
12633 return 0;
12634}
12635_ACEOF
12636rm -f conftest.$ac_objext conftest$ac_exeext
12637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12638 (eval $ac_link) 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } &&
12645 { ac_try='test -z "$ac_c_werror_flag"
12646 || test ! -s conftest.err'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest$ac_exeext'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 ac_cv_lib_socket_socket=yes
12659else
12660 echo "$as_me: failed program was:" >&5
12661sed 's/^/| /' conftest.$ac_ext >&5
12662
12663ac_cv_lib_socket_socket=no
12664fi
12665rm -f conftest.err conftest.$ac_objext \
12666 conftest$ac_exeext conftest.$ac_ext
12667LIBS=$ac_check_lib_save_LIBS
12668fi
12669echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12670echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
12671if test $ac_cv_lib_socket_socket = yes; then
12672
12673
12674cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
12675
12676
12677cat >>confdefs.h <<_ACEOF
12678#define HAVE_$cf_tr_func 1
12679_ACEOF
12680
12681 ac_cv_func_socket=yes
12682 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
12683else
12684
12685 ac_cv_func_socket=unknown
12686 unset ac_cv_func_socket 2>/dev/null
12687
12688
12689echo "$as_me:$LINENO: checking for socket in -lbsd" >&5
12690echo $ECHO_N "checking for socket in -lbsd... $ECHO_C" >&6
12691if test "${ac_cv_lib_bsd_socket+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12693else
12694 ac_check_lib_save_LIBS=$LIBS
12695LIBS="-lbsd $cf_cv_netlibs $LIBS"
12696cat >conftest.$ac_ext <<_ACEOF
12697/* confdefs.h. */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h. */
12702
12703/* Override any gcc2 internal prototype to avoid an error. */
12704#ifdef __cplusplus
12705extern "C"
12706#endif
12707/* We use char because int might match the return type of a gcc2
12708 builtin and then its argument prototype would still apply. */
12709char socket ();
12710int
12711main ()
12712{
12713socket ();
12714 ;
12715 return 0;
12716}
12717_ACEOF
12718rm -f conftest.$ac_objext conftest$ac_exeext
12719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12720 (eval $ac_link) 2>conftest.er1
12721 ac_status=$?
12722 grep -v '^ *+' conftest.er1 >conftest.err
12723 rm -f conftest.er1
12724 cat conftest.err >&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } &&
12727 { ac_try='test -z "$ac_c_werror_flag"
12728 || test ! -s conftest.err'
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; } &&
12734 { ac_try='test -s conftest$ac_exeext'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
12740 ac_cv_lib_bsd_socket=yes
12741else
12742 echo "$as_me: failed program was:" >&5
12743sed 's/^/| /' conftest.$ac_ext >&5
12744
12745ac_cv_lib_bsd_socket=no
12746fi
12747rm -f conftest.err conftest.$ac_objext \
12748 conftest$ac_exeext conftest.$ac_ext
12749LIBS=$ac_check_lib_save_LIBS
12750fi
12751echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_socket" >&5
12752echo "${ECHO_T}$ac_cv_lib_bsd_socket" >&6
12753if test $ac_cv_lib_bsd_socket = yes; then
12754
12755
12756cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
12757
12758
12759cat >>confdefs.h <<_ACEOF
12760#define HAVE_$cf_tr_func 1
12761_ACEOF
12762
12763 ac_cv_func_socket=yes
12764 cf_cv_netlibs="-lbsd $cf_cv_netlibs"
12765else
12766
12767 ac_cv_func_socket=unknown
12768 unset ac_cv_func_socket 2>/dev/null
12769
12770fi
12771
12772
12773fi
12774
12775
12776fi
12777done
12778
12779fi
12780#
12781
12782for ac_func in gethostbyname
12783do
12784as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12785echo "$as_me:$LINENO: checking for $ac_func" >&5
12786echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12787if eval "test \"\${$as_ac_var+set}\" = set"; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12789else
12790 cat >conftest.$ac_ext <<_ACEOF
12791/* confdefs.h. */
12792_ACEOF
12793cat confdefs.h >>conftest.$ac_ext
12794cat >>conftest.$ac_ext <<_ACEOF
12795/* end confdefs.h. */
12796/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12798#define $ac_func innocuous_$ac_func
12799
12800/* System header to define __stub macros and hopefully few prototypes,
12801 which can conflict with char $ac_func (); below.
12802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12803 <limits.h> exists even on freestanding compilers. */
12804
12805#ifdef __STDC__
12806# include <limits.h>
12807#else
12808# include <assert.h>
12809#endif
12810
12811#undef $ac_func
12812
12813/* Override any gcc2 internal prototype to avoid an error. */
12814#ifdef __cplusplus
12815extern "C"
12816{
12817#endif
12818/* We use char because int might match the return type of a gcc2
12819 builtin and then its argument prototype would still apply. */
12820char $ac_func ();
12821/* The GNU C library defines this for functions which it implements
12822 to always fail with ENOSYS. Some functions are actually named
12823 something starting with __ and the normal name is an alias. */
12824#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12825choke me
12826#else
12827char (*f) () = $ac_func;
12828#endif
12829#ifdef __cplusplus
12830}
12831#endif
12832
12833int
12834main ()
12835{
12836return f != $ac_func;
12837 ;
12838 return 0;
12839}
12840_ACEOF
12841rm -f conftest.$ac_objext conftest$ac_exeext
12842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12843 (eval $ac_link) 2>conftest.er1
12844 ac_status=$?
12845 grep -v '^ *+' conftest.er1 >conftest.err
12846 rm -f conftest.er1
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
12850 { ac_try='test -z "$ac_c_werror_flag"
12851 || test ! -s conftest.err'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } &&
12857 { ac_try='test -s conftest$ac_exeext'
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; }; then
12863 eval "$as_ac_var=yes"
12864else
12865 echo "$as_me: failed program was:" >&5
12866sed 's/^/| /' conftest.$ac_ext >&5
12867
12868eval "$as_ac_var=no"
12869fi
12870rm -f conftest.err conftest.$ac_objext \
12871 conftest$ac_exeext conftest.$ac_ext
12872fi
12873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12874echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12875if test `eval echo '${'$as_ac_var'}'` = yes; then
12876 cat >>confdefs.h <<_ACEOF
12877#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12878_ACEOF
12879
12880else
12881
12882
12883echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12884echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12885if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12887else
12888 ac_check_lib_save_LIBS=$LIBS
12889LIBS="-lnsl $cf_cv_netlibs $LIBS"
12890cat >conftest.$ac_ext <<_ACEOF
12891/* confdefs.h. */
12892_ACEOF
12893cat confdefs.h >>conftest.$ac_ext
12894cat >>conftest.$ac_ext <<_ACEOF
12895/* end confdefs.h. */
12896
12897/* Override any gcc2 internal prototype to avoid an error. */
12898#ifdef __cplusplus
12899extern "C"
12900#endif
12901/* We use char because int might match the return type of a gcc2
12902 builtin and then its argument prototype would still apply. */
12903char gethostbyname ();
12904int
12905main ()
12906{
12907gethostbyname ();
12908 ;
12909 return 0;
12910}
12911_ACEOF
12912rm -f conftest.$ac_objext conftest$ac_exeext
12913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12914 (eval $ac_link) 2>conftest.er1
12915 ac_status=$?
12916 grep -v '^ *+' conftest.er1 >conftest.err
12917 rm -f conftest.er1
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
12921 { ac_try='test -z "$ac_c_werror_flag"
12922 || test ! -s conftest.err'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest$ac_exeext'
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 ac_cv_lib_nsl_gethostbyname=yes
12935else
12936 echo "$as_me: failed program was:" >&5
12937sed 's/^/| /' conftest.$ac_ext >&5
12938
12939ac_cv_lib_nsl_gethostbyname=no
12940fi
12941rm -f conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext conftest.$ac_ext
12943LIBS=$ac_check_lib_save_LIBS
12944fi
12945echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12946echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12947if test $ac_cv_lib_nsl_gethostbyname = yes; then
12948
12949
12950cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
12951
12952
12953cat >>confdefs.h <<_ACEOF
12954#define HAVE_$cf_tr_func 1
12955_ACEOF
12956
12957 ac_cv_func_gethostbyname=yes
12958 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
12959else
12960
12961 ac_cv_func_gethostbyname=unknown
12962 unset ac_cv_func_gethostbyname 2>/dev/null
12963
12964fi
12965
12966
12967fi
12968done
12969
12970#
12971
12972for ac_func in strcasecmp
12973do
12974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12975echo "$as_me:$LINENO: checking for $ac_func" >&5
12976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12977if eval "test \"\${$as_ac_var+set}\" = set"; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12979else
12980 cat >conftest.$ac_ext <<_ACEOF
12981/* confdefs.h. */
12982_ACEOF
12983cat confdefs.h >>conftest.$ac_ext
12984cat >>conftest.$ac_ext <<_ACEOF
12985/* end confdefs.h. */
12986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12988#define $ac_func innocuous_$ac_func
12989
12990/* System header to define __stub macros and hopefully few prototypes,
12991 which can conflict with char $ac_func (); below.
12992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12993 <limits.h> exists even on freestanding compilers. */
12994
12995#ifdef __STDC__
12996# include <limits.h>
12997#else
12998# include <assert.h>
12999#endif
13000
13001#undef $ac_func
13002
13003/* Override any gcc2 internal prototype to avoid an error. */
13004#ifdef __cplusplus
13005extern "C"
13006{
13007#endif
13008/* We use char because int might match the return type of a gcc2
13009 builtin and then its argument prototype would still apply. */
13010char $ac_func ();
13011/* The GNU C library defines this for functions which it implements
13012 to always fail with ENOSYS. Some functions are actually named
13013 something starting with __ and the normal name is an alias. */
13014#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13015choke me
13016#else
13017char (*f) () = $ac_func;
13018#endif
13019#ifdef __cplusplus
13020}
13021#endif
13022
13023int
13024main ()
13025{
13026return f != $ac_func;
13027 ;
13028 return 0;
13029}
13030_ACEOF
13031rm -f conftest.$ac_objext conftest$ac_exeext
13032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13033 (eval $ac_link) 2>conftest.er1
13034 ac_status=$?
13035 grep -v '^ *+' conftest.er1 >conftest.err
13036 rm -f conftest.er1
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } &&
13040 { ac_try='test -z "$ac_c_werror_flag"
13041 || test ! -s conftest.err'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } &&
13047 { ac_try='test -s conftest$ac_exeext'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 eval "$as_ac_var=yes"
13054else
13055 echo "$as_me: failed program was:" >&5
13056sed 's/^/| /' conftest.$ac_ext >&5
13057
13058eval "$as_ac_var=no"
13059fi
13060rm -f conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext conftest.$ac_ext
13062fi
13063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13064echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13065if test `eval echo '${'$as_ac_var'}'` = yes; then
13066 cat >>confdefs.h <<_ACEOF
13067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13068_ACEOF
13069
13070else
13071
13072
13073echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
13074echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
13075if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13077else
13078 ac_check_lib_save_LIBS=$LIBS
13079LIBS="-lresolv $cf_cv_netlibs $LIBS"
13080cat >conftest.$ac_ext <<_ACEOF
13081/* confdefs.h. */
13082_ACEOF
13083cat confdefs.h >>conftest.$ac_ext
13084cat >>conftest.$ac_ext <<_ACEOF
13085/* end confdefs.h. */
13086
13087/* Override any gcc2 internal prototype to avoid an error. */
13088#ifdef __cplusplus
13089extern "C"
13090#endif
13091/* We use char because int might match the return type of a gcc2
13092 builtin and then its argument prototype would still apply. */
13093char strcasecmp ();
13094int
13095main ()
13096{
13097strcasecmp ();
13098 ;
13099 return 0;
13100}
13101_ACEOF
13102rm -f conftest.$ac_objext conftest$ac_exeext
13103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13104 (eval $ac_link) 2>conftest.er1
13105 ac_status=$?
13106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } &&
13111 { ac_try='test -z "$ac_c_werror_flag"
13112 || test ! -s conftest.err'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try='test -s conftest$ac_exeext'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 ac_cv_lib_resolv_strcasecmp=yes
13125else
13126 echo "$as_me: failed program was:" >&5
13127sed 's/^/| /' conftest.$ac_ext >&5
13128
13129ac_cv_lib_resolv_strcasecmp=no
13130fi
13131rm -f conftest.err conftest.$ac_objext \
13132 conftest$ac_exeext conftest.$ac_ext
13133LIBS=$ac_check_lib_save_LIBS
13134fi
13135echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
13136echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
13137if test $ac_cv_lib_resolv_strcasecmp = yes; then
13138
13139
13140cf_tr_func=`echo strcasecmp | tr '[a-z]' '[A-Z]'`
13141
13142
13143cat >>confdefs.h <<_ACEOF
13144#define HAVE_$cf_tr_func 1
13145_ACEOF
13146
13147 ac_cv_func_strcasecmp=yes
13148 cf_cv_netlibs="-lresolv $cf_cv_netlibs"
13149else
13150
13151 ac_cv_func_strcasecmp=unknown
13152 unset ac_cv_func_strcasecmp 2>/dev/null
13153
13154fi
13155
13156
13157fi
13158done
13159
13160
13161fi
13162
13163LIBS="$LIBS $cf_cv_netlibs"
13164test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
13165
13166 if test "${ac_cv_header_customs_h+set}" = set; then
13167 echo "$as_me:$LINENO: checking for customs.h" >&5
13168echo $ECHO_N "checking for customs.h... $ECHO_C" >&6
13169if test "${ac_cv_header_customs_h+set}" = set; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13171fi
13172echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5
13173echo "${ECHO_T}$ac_cv_header_customs_h" >&6
13174else
13175 # Is the header compilable?
13176echo "$as_me:$LINENO: checking customs.h usability" >&5
13177echo $ECHO_N "checking customs.h usability... $ECHO_C" >&6
13178cat >conftest.$ac_ext <<_ACEOF
13179/* confdefs.h. */
13180_ACEOF
13181cat confdefs.h >>conftest.$ac_ext
13182cat >>conftest.$ac_ext <<_ACEOF
13183/* end confdefs.h. */
13184$ac_includes_default
13185#include <customs.h>
13186_ACEOF
13187rm -f conftest.$ac_objext
13188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13189 (eval $ac_compile) 2>conftest.er1
13190 ac_status=$?
13191 grep -v '^ *+' conftest.er1 >conftest.err
13192 rm -f conftest.er1
13193 cat conftest.err >&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try='test -z "$ac_c_werror_flag"
13197 || test ! -s conftest.err'
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; } &&
13203 { ac_try='test -s conftest.$ac_objext'
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; }; then
13209 ac_header_compiler=yes
13210else
13211 echo "$as_me: failed program was:" >&5
13212sed 's/^/| /' conftest.$ac_ext >&5
13213
13214ac_header_compiler=no
13215fi
13216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13217echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13218echo "${ECHO_T}$ac_header_compiler" >&6
13219
13220# Is the header present?
13221echo "$as_me:$LINENO: checking customs.h presence" >&5
13222echo $ECHO_N "checking customs.h presence... $ECHO_C" >&6
13223cat >conftest.$ac_ext <<_ACEOF
13224/* confdefs.h. */
13225_ACEOF
13226cat confdefs.h >>conftest.$ac_ext
13227cat >>conftest.$ac_ext <<_ACEOF
13228/* end confdefs.h. */
13229#include <customs.h>
13230_ACEOF
13231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13233 ac_status=$?
13234 grep -v '^ *+' conftest.er1 >conftest.err
13235 rm -f conftest.er1
13236 cat conftest.err >&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } >/dev/null; then
13239 if test -s conftest.err; then
13240 ac_cpp_err=$ac_c_preproc_warn_flag
13241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13242 else
13243 ac_cpp_err=
13244 fi
13245else
13246 ac_cpp_err=yes
13247fi
13248if test -z "$ac_cpp_err"; then
13249 ac_header_preproc=yes
13250else
13251 echo "$as_me: failed program was:" >&5
13252sed 's/^/| /' conftest.$ac_ext >&5
13253
13254 ac_header_preproc=no
13255fi
13256rm -f conftest.err conftest.$ac_ext
13257echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13258echo "${ECHO_T}$ac_header_preproc" >&6
13259
13260# So? What about this header?
13261case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13262 yes:no: )
13263 { echo "$as_me:$LINENO: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&5
13264echo "$as_me: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the compiler's result" >&5
13266echo "$as_me: WARNING: customs.h: proceeding with the compiler's result" >&2;}
13267 ac_header_preproc=yes
13268 ;;
13269 no:yes:* )
13270 { echo "$as_me:$LINENO: WARNING: customs.h: present but cannot be compiled" >&5
13271echo "$as_me: WARNING: customs.h: present but cannot be compiled" >&2;}
13272 { echo "$as_me:$LINENO: WARNING: customs.h: check for missing prerequisite headers?" >&5
13273echo "$as_me: WARNING: customs.h: check for missing prerequisite headers?" >&2;}
13274 { echo "$as_me:$LINENO: WARNING: customs.h: see the Autoconf documentation" >&5
13275echo "$as_me: WARNING: customs.h: see the Autoconf documentation" >&2;}
13276 { echo "$as_me:$LINENO: WARNING: customs.h: section \"Present But Cannot Be Compiled\"" >&5
13277echo "$as_me: WARNING: customs.h: section \"Present But Cannot Be Compiled\"" >&2;}
13278 { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the preprocessor's result" >&5
13279echo "$as_me: WARNING: customs.h: proceeding with the preprocessor's result" >&2;}
13280 { echo "$as_me:$LINENO: WARNING: customs.h: in the future, the compiler will take precedence" >&5
13281echo "$as_me: WARNING: customs.h: in the future, the compiler will take precedence" >&2;}
13282 (
13283 cat <<\_ASBOX
13284## ------------------------------- ##
13285## Report this to [email protected] ##
13286## ------------------------------- ##
13287_ASBOX
13288 ) |
13289 sed "s/^/$as_me: WARNING: /" >&2
13290 ;;
13291esac
13292echo "$as_me:$LINENO: checking for customs.h" >&5
13293echo $ECHO_N "checking for customs.h... $ECHO_C" >&6
13294if test "${ac_cv_header_customs_h+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13296else
13297 ac_cv_header_customs_h=$ac_header_preproc
13298fi
13299echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5
13300echo "${ECHO_T}$ac_cv_header_customs_h" >&6
13301
13302fi
13303if test $ac_cv_header_customs_h = yes; then
13304 use_customs=true
13305 REMOTE=cstms
13306 LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
13307else
13308 with_customs=no
13309 CPPFLAGS="$make_cppflags" make_badcust=yes
13310fi
13311
13312
13313 ;;
13314 esac
13315fi;
13316# Tell automake about this, so it can include the right .c files.
13317
13318
13319if test "$use_customs" = true; then
13320 USE_CUSTOMS_TRUE=
13321 USE_CUSTOMS_FALSE='#'
13322else
13323 USE_CUSTOMS_TRUE='#'
13324 USE_CUSTOMS_FALSE=
13325fi
13326
13327
13328# See if we can handle the job server feature, and if the user wants it.
13329
13330# Check whether --enable-job-server or --disable-job-server was given.
13331if test "${enable_job_server+set}" = set; then
13332 enableval="$enable_job_server"
13333 make_cv_job_server="$enableval" user_job_server="$enableval"
13334else
13335 make_cv_job_server="yes"
13336fi;
13337
13338has_wait_nohang=yes
13339case "$ac_cv_func_waitpid/$ac_cv_func_wait3" in
13340 no/no) has_wait_nohang=no ;;
13341esac
13342
13343echo "$as_me:$LINENO: checking for SA_RESTART" >&5
13344echo $ECHO_N "checking for SA_RESTART... $ECHO_C" >&6
13345if test "${make_cv_sa_restart+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13347else
13348
13349 cat >conftest.$ac_ext <<_ACEOF
13350/* confdefs.h. */
13351_ACEOF
13352cat confdefs.h >>conftest.$ac_ext
13353cat >>conftest.$ac_ext <<_ACEOF
13354/* end confdefs.h. */
13355#include <signal.h>
13356int
13357main ()
13358{
13359return SA_RESTART;
13360 ;
13361 return 0;
13362}
13363_ACEOF
13364rm -f conftest.$ac_objext
13365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13366 (eval $ac_compile) 2>conftest.er1
13367 ac_status=$?
13368 grep -v '^ *+' conftest.er1 >conftest.err
13369 rm -f conftest.er1
13370 cat conftest.err >&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } &&
13373 { ac_try='test -z "$ac_c_werror_flag"
13374 || test ! -s conftest.err'
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); }; } &&
13380 { ac_try='test -s conftest.$ac_objext'
13381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382 (eval $ac_try) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 make_cv_sa_restart=yes
13387else
13388 echo "$as_me: failed program was:" >&5
13389sed 's/^/| /' conftest.$ac_ext >&5
13390
13391make_cv_sa_restart=no
13392fi
13393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13394fi
13395echo "$as_me:$LINENO: result: $make_cv_sa_restart" >&5
13396echo "${ECHO_T}$make_cv_sa_restart" >&6
13397
13398# enable make_cv_sa_restart for OS/2
13399case "$host_os" in
13400 os2*) make_cv_sa_restart=yes ;;
13401esac
13402
13403if test "$make_cv_sa_restart" != no; then
13404
13405cat >>confdefs.h <<\_ACEOF
13406#define HAVE_SA_RESTART 1
13407_ACEOF
13408
13409fi
13410
13411case "$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/$make_cv_job_server" in
13412 yes/yes/yes/yes/yes)
13413
13414cat >>confdefs.h <<\_ACEOF
13415#define MAKE_JOBSERVER 1
13416_ACEOF
13417;;
13418esac
13419
13420# Find the SCCS commands, so we can include them in our default rules.
13421
13422echo "$as_me:$LINENO: checking for location of SCCS get command" >&5
13423echo $ECHO_N "checking for location of SCCS get command... $ECHO_C" >&6
13424if test "${make_cv_path_sccs_get+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13426else
13427
13428if test -f /usr/sccs/get; then
13429 make_cv_path_sccs_get=/usr/sccs/get
13430else
13431 make_cv_path_sccs_get=get
13432fi
13433fi
13434echo "$as_me:$LINENO: result: $make_cv_path_sccs_get" >&5
13435echo "${ECHO_T}$make_cv_path_sccs_get" >&6
13436
13437cat >>confdefs.h <<_ACEOF
13438#define SCCS_GET "$make_cv_path_sccs_get"
13439_ACEOF
13440
13441
13442ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
13443if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
13444 test -f s.conftest; then
13445 # We successfully created an SCCS file.
13446 echo "$as_me:$LINENO: checking if SCCS get command understands -G" >&5
13447echo $ECHO_N "checking if SCCS get command understands -G... $ECHO_C" >&6
13448if test "${make_cv_sys_get_minus_G+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13450else
13451
13452 if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
13453 test -f conftoast; then
13454 make_cv_sys_get_minus_G=yes
13455 else
13456 make_cv_sys_get_minus_G=no
13457 fi
13458fi
13459echo "$as_me:$LINENO: result: $make_cv_sys_get_minus_G" >&5
13460echo "${ECHO_T}$make_cv_sys_get_minus_G" >&6
13461 case "$make_cv_sys_get_minus_G" in
13462 yes)
13463cat >>confdefs.h <<\_ACEOF
13464#define SCCS_GET_MINUS_G 1
13465_ACEOF
13466;;
13467 esac
13468fi
13469rm -f s.conftest conftoast
13470
13471# Check the system to see if it provides GNU glob. If not, use our
13472# local version.
13473
13474echo "$as_me:$LINENO: checking if system libc has GNU glob" >&5
13475echo $ECHO_N "checking if system libc has GNU glob... $ECHO_C" >&6
13476if test "${make_cv_sys_gnu_glob+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13478else
13479
13480 cat >conftest.$ac_ext <<_ACEOF
13481/* confdefs.h. */
13482_ACEOF
13483cat confdefs.h >>conftest.$ac_ext
13484cat >>conftest.$ac_ext <<_ACEOF
13485/* end confdefs.h. */
13486
13487#include <features.h>
13488#include <glob.h>
13489#include <fnmatch.h>
13490
13491#define GLOB_INTERFACE_VERSION 1
13492#if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
13493# include <gnu-versions.h>
13494# if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
13495 gnu glob
13496# endif
13497#endif
13498
13499_ACEOF
13500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13501 $EGREP "gnu glob" >/dev/null 2>&1; then
13502 echo "$as_me:$LINENO: result: yes" >&5
13503echo "${ECHO_T}yes" >&6
13504make_cv_sys_gnu_glob=yes
13505else
13506 echo "$as_me:$LINENO: result: no; using local copy" >&5
13507echo "${ECHO_T}no; using local copy" >&6
13508 GLOBINC='-I$(srcdir)/glob'
13509 GLOBLIB=glob/libglob.a
13510make_cv_sys_gnu_glob=no
13511fi
13512rm -f conftest*
13513
13514fi
13515
13516# Tell automake about this, so it can build the right .c files.
13517
13518
13519if test "$make_cv_sys_gnu_glob" = no; then
13520 USE_LOCAL_GLOB_TRUE=
13521 USE_LOCAL_GLOB_FALSE='#'
13522else
13523 USE_LOCAL_GLOB_TRUE='#'
13524 USE_LOCAL_GLOB_FALSE=
13525fi
13526
13527
13528# Let the makefile know what our build host is
13529
13530
13531cat >>confdefs.h <<_ACEOF
13532#define MAKE_HOST "$host"
13533_ACEOF
13534
13535MAKE_HOST="$host"
13536
13537
13538# Include the Maintainer's Makefile section, if it's here.
13539
13540MAINT_MAKEFILE=/dev/null
13541if test -r "$srcdir/maintMakefile"; then
13542 MAINT_MAKEFILE="$srcdir/maintMakefile"
13543fi
13544
13545
13546# Allow building with dmalloc
13547echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
13548echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
13549
13550# Check whether --with-dmalloc or --without-dmalloc was given.
13551if test "${with_dmalloc+set}" = set; then
13552 withval="$with_dmalloc"
13553 if test "$withval" = yes; then
13554 echo "$as_me:$LINENO: result: yes" >&5
13555echo "${ECHO_T}yes" >&6
13556
13557cat >>confdefs.h <<\_ACEOF
13558#define WITH_DMALLOC 1
13559_ACEOF
13560
13561 LIBS="$LIBS -ldmalloc"
13562 LDFLAGS="$LDFLAGS -g"
13563else
13564 echo "$as_me:$LINENO: result: no" >&5
13565echo "${ECHO_T}no" >&6
13566fi
13567else
13568 echo "$as_me:$LINENO: result: no" >&5
13569echo "${ECHO_T}no" >&6
13570fi;
13571
13572
13573# Forcibly disable SET_MAKE. If it's set it breaks things like the test
13574# scripts, etc.
13575SET_MAKE=
13576
13577# Sanity check and inform the user of what we found
13578
13579case "$make_badcust" in
13580 yes) echo
13581 echo "WARNING: --with-customs specified but no customs.h could be found;"
13582 echo " disabling Customs support."
13583 echo ;;
13584esac
13585
13586case "$with_customs" in
13587 ""|n|no|y|ye|yes) ;;
13588 *) if test -f "$with_customs/lib/libcustoms.a"; then
13589 :
13590 else
13591 echo
13592 echo "WARNING: '$with_customs/lib' does not appear to contain the"
13593 echo " Customs library. You must build and install Customs"
13594 echo " before compiling GNU make."
13595 echo
13596 fi ;;
13597esac
13598
13599case "$has_wait_nohang" in
13600 no) echo
13601 echo "WARNING: Your system has neither waitpid() nor wait3()."
13602 echo " Without one of these, signal handling is unreliable."
13603 echo " You should be aware that running GNU make with -j"
13604 echo " could result in erratic behavior."
13605 echo ;;
13606esac
13607
13608case "$make_cv_job_server/$user_job_server" in
13609 no/yes) echo
13610 echo "WARNING: Make job server requires a POSIX-ish system that"
13611 echo " supports the pipe(), sigaction(), and either"
13612 echo " waitpid() or wait3() functions. Your system doesn't"
13613 echo " appear to provide one or more of those."
13614 echo " Disabling job server support."
13615 echo ;;
13616esac
13617
13618
13619# Specify what files are to be created.
13620# We only generate the build.sh if we have a build.sh.in; we won't have
13621# one before we've created a distribution.
13622
13623 ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile"
13624
13625
13626if test -f $srcdir/build.sh.in; then
13627 ac_config_files="$ac_config_files build.sh"
13628
13629fi
13630
13631
13632# OK, do it!
13633
13634cat >confcache <<\_ACEOF
13635# This file is a shell script that caches the results of configure
13636# tests run on this system so they can be shared between configure
13637# scripts and configure runs, see configure's option --config-cache.
13638# It is not useful on other systems. If it contains results you don't
13639# want to keep, you may remove or edit it.
13640#
13641# config.status only pays attention to the cache file if you give it
13642# the --recheck option to rerun configure.
13643#
13644# `ac_cv_env_foo' variables (set or unset) will be overridden when
13645# loading this file, other *unset* `ac_cv_foo' will be assigned the
13646# following values.
13647
13648_ACEOF
13649
13650# The following way of writing the cache mishandles newlines in values,
13651# but we know of no workaround that is simple, portable, and efficient.
13652# So, don't put newlines in cache variables' values.
13653# Ultrix sh set writes to stderr and can't be redirected directly,
13654# and sets the high bit in the cache file unless we assign to the vars.
13655{
13656 (set) 2>&1 |
13657 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13658 *ac_space=\ *)
13659 # `set' does not quote correctly, so add quotes (double-quote
13660 # substitution turns \\\\ into \\, and sed turns \\ into \).
13661 sed -n \
13662 "s/'/'\\\\''/g;
13663 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13664 ;;
13665 *)
13666 # `set' quotes correctly as required by POSIX, so do not add quotes.
13667 sed -n \
13668 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13669 ;;
13670 esac;
13671} |
13672 sed '
13673 t clear
13674 : clear
13675 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13676 t end
13677 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13678 : end' >>confcache
13679if diff $cache_file confcache >/dev/null 2>&1; then :; else
13680 if test -w $cache_file; then
13681 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13682 cat confcache >$cache_file
13683 else
13684 echo "not updating unwritable cache $cache_file"
13685 fi
13686fi
13687rm -f confcache
13688
13689test "x$prefix" = xNONE && prefix=$ac_default_prefix
13690# Let make expand exec_prefix.
13691test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13692
13693# VPATH may cause trouble with some makes, so we remove $(srcdir),
13694# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13695# trailing colons and then remove the whole line if VPATH becomes empty
13696# (actually we leave an empty line to preserve line numbers).
13697if test "x$srcdir" = x.; then
13698 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13699s/:*\$(srcdir):*/:/;
13700s/:*\${srcdir}:*/:/;
13701s/:*@srcdir@:*/:/;
13702s/^\([^=]*=[ ]*\):*/\1/;
13703s/:*$//;
13704s/^[^=]*=[ ]*$//;
13705}'
13706fi
13707
13708DEFS=-DHAVE_CONFIG_H
13709
13710ac_libobjs=
13711ac_ltlibobjs=
13712for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13713 # 1. Remove the extension, and $U if already installed.
13714 ac_i=`echo "$ac_i" |
13715 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13716 # 2. Add them.
13717 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13718 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13719done
13720LIBOBJS=$ac_libobjs
13721
13722LTLIBOBJS=$ac_ltlibobjs
13723
13724
13725if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13726 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13727Usually this means the macro was only invoked conditionally." >&5
13728echo "$as_me: error: conditional \"AMDEP\" was never defined.
13729Usually this means the macro was only invoked conditionally." >&2;}
13730 { (exit 1); exit 1; }; }
13731fi
13732if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13733 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13734Usually this means the macro was only invoked conditionally." >&5
13735echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13736Usually this means the macro was only invoked conditionally." >&2;}
13737 { (exit 1); exit 1; }; }
13738fi
13739if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
13740 { { echo "$as_me:$LINENO: error: conditional \"USE_CUSTOMS\" was never defined.
13741Usually this means the macro was only invoked conditionally." >&5
13742echo "$as_me: error: conditional \"USE_CUSTOMS\" was never defined.
13743Usually this means the macro was only invoked conditionally." >&2;}
13744 { (exit 1); exit 1; }; }
13745fi
13746if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then
13747 { { echo "$as_me:$LINENO: error: conditional \"USE_LOCAL_GLOB\" was never defined.
13748Usually this means the macro was only invoked conditionally." >&5
13749echo "$as_me: error: conditional \"USE_LOCAL_GLOB\" was never defined.
13750Usually this means the macro was only invoked conditionally." >&2;}
13751 { (exit 1); exit 1; }; }
13752fi
13753
13754: ${CONFIG_STATUS=./config.status}
13755ac_clean_files_save=$ac_clean_files
13756ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13757{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13758echo "$as_me: creating $CONFIG_STATUS" >&6;}
13759cat >$CONFIG_STATUS <<_ACEOF
13760#! $SHELL
13761# Generated by $as_me.
13762# Run this file to recreate the current configuration.
13763# Compiler output produced by configure, useful for debugging
13764# configure, is in config.log if it exists.
13765
13766debug=false
13767ac_cs_recheck=false
13768ac_cs_silent=false
13769SHELL=\${CONFIG_SHELL-$SHELL}
13770_ACEOF
13771
13772cat >>$CONFIG_STATUS <<\_ACEOF
13773## --------------------- ##
13774## M4sh Initialization. ##
13775## --------------------- ##
13776
13777# Be Bourne compatible
13778if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13779 emulate sh
13780 NULLCMD=:
13781 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13782 # is contrary to our usage. Disable this feature.
13783 alias -g '${1+"$@"}'='"$@"'
13784elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13785 set -o posix
13786fi
13787DUALCASE=1; export DUALCASE # for MKS sh
13788
13789# Support unset when possible.
13790if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13791 as_unset=unset
13792else
13793 as_unset=false
13794fi
13795
13796
13797# Work around bugs in pre-3.0 UWIN ksh.
13798$as_unset ENV MAIL MAILPATH
13799PS1='$ '
13800PS2='> '
13801PS4='+ '
13802
13803# NLS nuisances.
13804for as_var in \
13805 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13806 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13807 LC_TELEPHONE LC_TIME
13808do
13809 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13810 eval $as_var=C; export $as_var
13811 else
13812 $as_unset $as_var
13813 fi
13814done
13815
13816# Required to use basename.
13817if expr a : '\(a\)' >/dev/null 2>&1; then
13818 as_expr=expr
13819else
13820 as_expr=false
13821fi
13822
13823if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13824 as_basename=basename
13825else
13826 as_basename=false
13827fi
13828
13829
13830# Name of the executable.
13831as_me=`$as_basename "$0" ||
13832$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13833 X"$0" : 'X\(//\)$' \| \
13834 X"$0" : 'X\(/\)$' \| \
13835 . : '\(.\)' 2>/dev/null ||
13836echo X/"$0" |
13837 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13838 /^X\/\(\/\/\)$/{ s//\1/; q; }
13839 /^X\/\(\/\).*/{ s//\1/; q; }
13840 s/.*/./; q'`
13841
13842
13843# PATH needs CR, and LINENO needs CR and PATH.
13844# Avoid depending upon Character Ranges.
13845as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13846as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13847as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13848as_cr_digits='0123456789'
13849as_cr_alnum=$as_cr_Letters$as_cr_digits
13850
13851# The user is always right.
13852if test "${PATH_SEPARATOR+set}" != set; then
13853 echo "#! /bin/sh" >conf$$.sh
13854 echo "exit 0" >>conf$$.sh
13855 chmod +x conf$$.sh
13856 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13857 PATH_SEPARATOR=';'
13858 else
13859 PATH_SEPARATOR=:
13860 fi
13861 rm -f conf$$.sh
13862fi
13863
13864
13865 as_lineno_1=$LINENO
13866 as_lineno_2=$LINENO
13867 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13868 test "x$as_lineno_1" != "x$as_lineno_2" &&
13869 test "x$as_lineno_3" = "x$as_lineno_2" || {
13870 # Find who we are. Look in the path if we contain no path at all
13871 # relative or not.
13872 case $0 in
13873 *[\\/]* ) as_myself=$0 ;;
13874 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13875for as_dir in $PATH
13876do
13877 IFS=$as_save_IFS
13878 test -z "$as_dir" && as_dir=.
13879 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13880done
13881
13882 ;;
13883 esac
13884 # We did not find ourselves, most probably we were run as `sh COMMAND'
13885 # in which case we are not to be found in the path.
13886 if test "x$as_myself" = x; then
13887 as_myself=$0
13888 fi
13889 if test ! -f "$as_myself"; then
13890 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13891echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13892 { (exit 1); exit 1; }; }
13893 fi
13894 case $CONFIG_SHELL in
13895 '')
13896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13897for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13898do
13899 IFS=$as_save_IFS
13900 test -z "$as_dir" && as_dir=.
13901 for as_base in sh bash ksh sh5; do
13902 case $as_dir in
13903 /*)
13904 if ("$as_dir/$as_base" -c '
13905 as_lineno_1=$LINENO
13906 as_lineno_2=$LINENO
13907 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13908 test "x$as_lineno_1" != "x$as_lineno_2" &&
13909 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13910 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13911 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13912 CONFIG_SHELL=$as_dir/$as_base
13913 export CONFIG_SHELL
13914 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13915 fi;;
13916 esac
13917 done
13918done
13919;;
13920 esac
13921
13922 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13923 # uniformly replaced by the line number. The first 'sed' inserts a
13924 # line-number line before each line; the second 'sed' does the real
13925 # work. The second script uses 'N' to pair each line-number line
13926 # with the numbered line, and appends trailing '-' during
13927 # substitution so that $LINENO is not a special case at line end.
13928 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13929 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13930 sed '=' <$as_myself |
13931 sed '
13932 N
13933 s,$,-,
13934 : loop
13935 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13936 t loop
13937 s,-$,,
13938 s,^['$as_cr_digits']*\n,,
13939 ' >$as_me.lineno &&
13940 chmod +x $as_me.lineno ||
13941 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13942echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13943 { (exit 1); exit 1; }; }
13944
13945 # Don't try to exec as it changes $[0], causing all sort of problems
13946 # (the dirname of $[0] is not the place where we might find the
13947 # original and so on. Autoconf is especially sensible to this).
13948 . ./$as_me.lineno
13949 # Exit status is that of the last command.
13950 exit
13951}
13952
13953
13954case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13955 *c*,-n*) ECHO_N= ECHO_C='
13956' ECHO_T=' ' ;;
13957 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13958 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13959esac
13960
13961if expr a : '\(a\)' >/dev/null 2>&1; then
13962 as_expr=expr
13963else
13964 as_expr=false
13965fi
13966
13967rm -f conf$$ conf$$.exe conf$$.file
13968echo >conf$$.file
13969if ln -s conf$$.file conf$$ 2>/dev/null; then
13970 # We could just check for DJGPP; but this test a) works b) is more generic
13971 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13972 if test -f conf$$.exe; then
13973 # Don't use ln at all; we don't have any links
13974 as_ln_s='cp -p'
13975 else
13976 as_ln_s='ln -s'
13977 fi
13978elif ln conf$$.file conf$$ 2>/dev/null; then
13979 as_ln_s=ln
13980else
13981 as_ln_s='cp -p'
13982fi
13983rm -f conf$$ conf$$.exe conf$$.file
13984
13985if mkdir -p . 2>/dev/null; then
13986 as_mkdir_p=:
13987else
13988 test -d ./-p && rmdir ./-p
13989 as_mkdir_p=false
13990fi
13991
13992as_executable_p="test -f"
13993
13994# Sed expression to map a string onto a valid CPP name.
13995as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13996
13997# Sed expression to map a string onto a valid variable name.
13998as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13999
14000
14001# IFS
14002# We need space, tab and new line, in precisely that order.
14003as_nl='
14004'
14005IFS=" $as_nl"
14006
14007# CDPATH.
14008$as_unset CDPATH
14009
14010exec 6>&1
14011
14012# Open the log real soon, to keep \$[0] and so on meaningful, and to
14013# report actual input values of CONFIG_FILES etc. instead of their
14014# values after options handling. Logging --version etc. is OK.
14015exec 5>>config.log
14016{
14017 echo
14018 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14019## Running $as_me. ##
14020_ASBOX
14021} >&5
14022cat >&5 <<_CSEOF
14023
14024This file was extended by GNU make $as_me 3.81beta1, which was
14025generated by GNU Autoconf 2.59. Invocation command line was
14026
14027 CONFIG_FILES = $CONFIG_FILES
14028 CONFIG_HEADERS = $CONFIG_HEADERS
14029 CONFIG_LINKS = $CONFIG_LINKS
14030 CONFIG_COMMANDS = $CONFIG_COMMANDS
14031 $ $0 $@
14032
14033_CSEOF
14034echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14035echo >&5
14036_ACEOF
14037
14038# Files that config.status was made for.
14039if test -n "$ac_config_files"; then
14040 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14041fi
14042
14043if test -n "$ac_config_headers"; then
14044 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14045fi
14046
14047if test -n "$ac_config_links"; then
14048 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14049fi
14050
14051if test -n "$ac_config_commands"; then
14052 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14053fi
14054
14055cat >>$CONFIG_STATUS <<\_ACEOF
14056
14057ac_cs_usage="\
14058\`$as_me' instantiates files from templates according to the
14059current configuration.
14060
14061Usage: $0 [OPTIONS] [FILE]...
14062
14063 -h, --help print this help, then exit
14064 -V, --version print version number, then exit
14065 -q, --quiet do not print progress messages
14066 -d, --debug don't remove temporary files
14067 --recheck update $as_me by reconfiguring in the same conditions
14068 --file=FILE[:TEMPLATE]
14069 instantiate the configuration file FILE
14070 --header=FILE[:TEMPLATE]
14071 instantiate the configuration header FILE
14072
14073Configuration files:
14074$config_files
14075
14076Configuration headers:
14077$config_headers
14078
14079Configuration commands:
14080$config_commands
14081
14082Report bugs to <[email protected]>."
14083_ACEOF
14084
14085cat >>$CONFIG_STATUS <<_ACEOF
14086ac_cs_version="\\
14087GNU make config.status 3.81beta1
14088configured by $0, generated by GNU Autoconf 2.59,
14089 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14090
14091Copyright (C) 2003 Free Software Foundation, Inc.
14092This config.status script is free software; the Free Software Foundation
14093gives unlimited permission to copy, distribute and modify it."
14094srcdir=$srcdir
14095INSTALL="$INSTALL"
14096_ACEOF
14097
14098cat >>$CONFIG_STATUS <<\_ACEOF
14099# If no file are specified by the user, then we need to provide default
14100# value. By we need to know if files were specified by the user.
14101ac_need_defaults=:
14102while test $# != 0
14103do
14104 case $1 in
14105 --*=*)
14106 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14107 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14108 ac_shift=:
14109 ;;
14110 -*)
14111 ac_option=$1
14112 ac_optarg=$2
14113 ac_shift=shift
14114 ;;
14115 *) # This is not an option, so the user has probably given explicit
14116 # arguments.
14117 ac_option=$1
14118 ac_need_defaults=false;;
14119 esac
14120
14121 case $ac_option in
14122 # Handling of the options.
14123_ACEOF
14124cat >>$CONFIG_STATUS <<\_ACEOF
14125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14126 ac_cs_recheck=: ;;
14127 --version | --vers* | -V )
14128 echo "$ac_cs_version"; exit 0 ;;
14129 --he | --h)
14130 # Conflict between --help and --header
14131 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14132Try \`$0 --help' for more information." >&5
14133echo "$as_me: error: ambiguous option: $1
14134Try \`$0 --help' for more information." >&2;}
14135 { (exit 1); exit 1; }; };;
14136 --help | --hel | -h )
14137 echo "$ac_cs_usage"; exit 0 ;;
14138 --debug | --d* | -d )
14139 debug=: ;;
14140 --file | --fil | --fi | --f )
14141 $ac_shift
14142 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14143 ac_need_defaults=false;;
14144 --header | --heade | --head | --hea )
14145 $ac_shift
14146 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14147 ac_need_defaults=false;;
14148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14150 ac_cs_silent=: ;;
14151
14152 # This is an error.
14153 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14154Try \`$0 --help' for more information." >&5
14155echo "$as_me: error: unrecognized option: $1
14156Try \`$0 --help' for more information." >&2;}
14157 { (exit 1); exit 1; }; } ;;
14158
14159 *) ac_config_targets="$ac_config_targets $1" ;;
14160
14161 esac
14162 shift
14163done
14164
14165ac_configure_extra_args=
14166
14167if $ac_cs_silent; then
14168 exec 6>/dev/null
14169 ac_configure_extra_args="$ac_configure_extra_args --silent"
14170fi
14171
14172_ACEOF
14173cat >>$CONFIG_STATUS <<_ACEOF
14174if \$ac_cs_recheck; then
14175 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14176 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14177fi
14178
14179_ACEOF
14180
14181cat >>$CONFIG_STATUS <<_ACEOF
14182#
14183# INIT-COMMANDS section.
14184#
14185
14186AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14187# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14188 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14189 # from automake.
14190 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14191 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14192 LINGUAS="${LINGUAS-%UNSET%}"
14193
14194
14195_ACEOF
14196
14197
14198
14199cat >>$CONFIG_STATUS <<\_ACEOF
14200for ac_config_target in $ac_config_targets
14201do
14202 case "$ac_config_target" in
14203 # Handling of arguments.
14204 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14205 "glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
14206 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14207 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
14208 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14209 "build.sh" ) CONFIG_FILES="$CONFIG_FILES build.sh" ;;
14210 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14211 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14212 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14213 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14214echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14215 { (exit 1); exit 1; }; };;
14216 esac
14217done
14218
14219# If the user did not use the arguments to specify the items to instantiate,
14220# then the envvar interface is used. Set only those that are not.
14221# We use the long form for the default assignment because of an extremely
14222# bizarre bug on SunOS 4.1.3.
14223if $ac_need_defaults; then
14224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14225 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14226 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14227fi
14228
14229# Have a temporary directory for convenience. Make it in the build tree
14230# simply because there is no reason to put it here, and in addition,
14231# creating and moving files from /tmp can sometimes cause problems.
14232# Create a temporary directory, and hook for its removal unless debugging.
14233$debug ||
14234{
14235 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14236 trap '{ (exit 1); exit 1; }' 1 2 13 15
14237}
14238
14239# Create a (secure) tmp directory for tmp files.
14240
14241{
14242 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14243 test -n "$tmp" && test -d "$tmp"
14244} ||
14245{
14246 tmp=./confstat$$-$RANDOM
14247 (umask 077 && mkdir $tmp)
14248} ||
14249{
14250 echo "$me: cannot create a temporary directory in ." >&2
14251 { (exit 1); exit 1; }
14252}
14253
14254_ACEOF
14255
14256cat >>$CONFIG_STATUS <<_ACEOF
14257
14258#
14259# CONFIG_FILES section.
14260#
14261
14262# No need to generate the scripts if there are no CONFIG_FILES.
14263# This happens for instance when ./config.status config.h
14264if test -n "\$CONFIG_FILES"; then
14265 # Protect against being on the right side of a sed subst in config.status.
14266 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14267 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14268s,@SHELL@,$SHELL,;t t
14269s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14270s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14271s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14272s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14273s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14274s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14275s,@exec_prefix@,$exec_prefix,;t t
14276s,@prefix@,$prefix,;t t
14277s,@program_transform_name@,$program_transform_name,;t t
14278s,@bindir@,$bindir,;t t
14279s,@sbindir@,$sbindir,;t t
14280s,@libexecdir@,$libexecdir,;t t
14281s,@datadir@,$datadir,;t t
14282s,@sysconfdir@,$sysconfdir,;t t
14283s,@sharedstatedir@,$sharedstatedir,;t t
14284s,@localstatedir@,$localstatedir,;t t
14285s,@libdir@,$libdir,;t t
14286s,@includedir@,$includedir,;t t
14287s,@oldincludedir@,$oldincludedir,;t t
14288s,@infodir@,$infodir,;t t
14289s,@mandir@,$mandir,;t t
14290s,@build_alias@,$build_alias,;t t
14291s,@host_alias@,$host_alias,;t t
14292s,@target_alias@,$target_alias,;t t
14293s,@DEFS@,$DEFS,;t t
14294s,@ECHO_C@,$ECHO_C,;t t
14295s,@ECHO_N@,$ECHO_N,;t t
14296s,@ECHO_T@,$ECHO_T,;t t
14297s,@LIBS@,$LIBS,;t t
14298s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14299s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14300s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14301s,@CYGPATH_W@,$CYGPATH_W,;t t
14302s,@PACKAGE@,$PACKAGE,;t t
14303s,@VERSION@,$VERSION,;t t
14304s,@ACLOCAL@,$ACLOCAL,;t t
14305s,@AUTOCONF@,$AUTOCONF,;t t
14306s,@AUTOMAKE@,$AUTOMAKE,;t t
14307s,@AUTOHEADER@,$AUTOHEADER,;t t
14308s,@MAKEINFO@,$MAKEINFO,;t t
14309s,@AMTAR@,$AMTAR,;t t
14310s,@install_sh@,$install_sh,;t t
14311s,@STRIP@,$STRIP,;t t
14312s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14313s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14314s,@mkdir_p@,$mkdir_p,;t t
14315s,@AWK@,$AWK,;t t
14316s,@SET_MAKE@,$SET_MAKE,;t t
14317s,@am__leading_dot@,$am__leading_dot,;t t
14318s,@CC@,$CC,;t t
14319s,@CFLAGS@,$CFLAGS,;t t
14320s,@LDFLAGS@,$LDFLAGS,;t t
14321s,@CPPFLAGS@,$CPPFLAGS,;t t
14322s,@ac_ct_CC@,$ac_ct_CC,;t t
14323s,@EXEEXT@,$EXEEXT,;t t
14324s,@OBJEXT@,$OBJEXT,;t t
14325s,@DEPDIR@,$DEPDIR,;t t
14326s,@am__include@,$am__include,;t t
14327s,@am__quote@,$am__quote,;t t
14328s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14329s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14330s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14331s,@CCDEPMODE@,$CCDEPMODE,;t t
14332s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14333s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14334s,@RANLIB@,$RANLIB,;t t
14335s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14336s,@CPP@,$CPP,;t t
14337s,@AR@,$AR,;t t
14338s,@PERL@,$PERL,;t t
14339s,@build@,$build,;t t
14340s,@build_cpu@,$build_cpu,;t t
14341s,@build_vendor@,$build_vendor,;t t
14342s,@build_os@,$build_os,;t t
14343s,@host@,$host,;t t
14344s,@host_cpu@,$host_cpu,;t t
14345s,@host_vendor@,$host_vendor,;t t
14346s,@host_os@,$host_os,;t t
14347s,@EGREP@,$EGREP,;t t
14348s,@U@,$U,;t t
14349s,@ANSI2KNR@,$ANSI2KNR,;t t
14350s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14351s,@USE_NLS@,$USE_NLS,;t t
14352s,@MSGFMT@,$MSGFMT,;t t
14353s,@GMSGFMT@,$GMSGFMT,;t t
14354s,@XGETTEXT@,$XGETTEXT,;t t
14355s,@MSGMERGE@,$MSGMERGE,;t t
14356s,@LIBICONV@,$LIBICONV,;t t
14357s,@LTLIBICONV@,$LTLIBICONV,;t t
14358s,@INTLLIBS@,$INTLLIBS,;t t
14359s,@LIBINTL@,$LIBINTL,;t t
14360s,@LTLIBINTL@,$LTLIBINTL,;t t
14361s,@POSUB@,$POSUB,;t t
14362s,@ALLOCA@,$ALLOCA,;t t
14363s,@LIBOBJS@,$LIBOBJS,;t t
14364s,@NEED_SETGID@,$NEED_SETGID,;t t
14365s,@KMEM_GROUP@,$KMEM_GROUP,;t t
14366s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
14367s,@REMOTE@,$REMOTE,;t t
14368s,@USE_CUSTOMS_TRUE@,$USE_CUSTOMS_TRUE,;t t
14369s,@USE_CUSTOMS_FALSE@,$USE_CUSTOMS_FALSE,;t t
14370s,@GLOBINC@,$GLOBINC,;t t
14371s,@GLOBLIB@,$GLOBLIB,;t t
14372s,@USE_LOCAL_GLOB_TRUE@,$USE_LOCAL_GLOB_TRUE,;t t
14373s,@USE_LOCAL_GLOB_FALSE@,$USE_LOCAL_GLOB_FALSE,;t t
14374s,@MAKE_HOST@,$MAKE_HOST,;t t
14375s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14376/@MAINT_MAKEFILE@/r $MAINT_MAKEFILE
14377s,@MAINT_MAKEFILE@,,;t t
14378CEOF
14379
14380_ACEOF
14381
14382 cat >>$CONFIG_STATUS <<\_ACEOF
14383 # Split the substitutions into bite-sized pieces for seds with
14384 # small command number limits, like on Digital OSF/1 and HP-UX.
14385 ac_max_sed_lines=48
14386 ac_sed_frag=1 # Number of current file.
14387 ac_beg=1 # First line for current file.
14388 ac_end=$ac_max_sed_lines # Line after last line for current file.
14389 ac_more_lines=:
14390 ac_sed_cmds=
14391 while $ac_more_lines; do
14392 if test $ac_beg -gt 1; then
14393 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14394 else
14395 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14396 fi
14397 if test ! -s $tmp/subs.frag; then
14398 ac_more_lines=false
14399 else
14400 # The purpose of the label and of the branching condition is to
14401 # speed up the sed processing (if there are no `@' at all, there
14402 # is no need to browse any of the substitutions).
14403 # These are the two extra sed commands mentioned above.
14404 (echo ':t
14405 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14406 if test -z "$ac_sed_cmds"; then
14407 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14408 else
14409 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14410 fi
14411 ac_sed_frag=`expr $ac_sed_frag + 1`
14412 ac_beg=$ac_end
14413 ac_end=`expr $ac_end + $ac_max_sed_lines`
14414 fi
14415 done
14416 if test -z "$ac_sed_cmds"; then
14417 ac_sed_cmds=cat
14418 fi
14419fi # test -n "$CONFIG_FILES"
14420
14421_ACEOF
14422cat >>$CONFIG_STATUS <<\_ACEOF
14423for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14424 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14425 case $ac_file in
14426 - | *:- | *:-:* ) # input from stdin
14427 cat >$tmp/stdin
14428 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14429 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14430 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14431 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14432 * ) ac_file_in=$ac_file.in ;;
14433 esac
14434
14435 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14436 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14437$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14438 X"$ac_file" : 'X\(//\)[^/]' \| \
14439 X"$ac_file" : 'X\(//\)$' \| \
14440 X"$ac_file" : 'X\(/\)' \| \
14441 . : '\(.\)' 2>/dev/null ||
14442echo X"$ac_file" |
14443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14444 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14445 /^X\(\/\/\)$/{ s//\1/; q; }
14446 /^X\(\/\).*/{ s//\1/; q; }
14447 s/.*/./; q'`
14448 { if $as_mkdir_p; then
14449 mkdir -p "$ac_dir"
14450 else
14451 as_dir="$ac_dir"
14452 as_dirs=
14453 while test ! -d "$as_dir"; do
14454 as_dirs="$as_dir $as_dirs"
14455 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14456$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14457 X"$as_dir" : 'X\(//\)[^/]' \| \
14458 X"$as_dir" : 'X\(//\)$' \| \
14459 X"$as_dir" : 'X\(/\)' \| \
14460 . : '\(.\)' 2>/dev/null ||
14461echo X"$as_dir" |
14462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14464 /^X\(\/\/\)$/{ s//\1/; q; }
14465 /^X\(\/\).*/{ s//\1/; q; }
14466 s/.*/./; q'`
14467 done
14468 test ! -n "$as_dirs" || mkdir $as_dirs
14469 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14470echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14471 { (exit 1); exit 1; }; }; }
14472
14473 ac_builddir=.
14474
14475if test "$ac_dir" != .; then
14476 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14477 # A "../" for each directory in $ac_dir_suffix.
14478 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14479else
14480 ac_dir_suffix= ac_top_builddir=
14481fi
14482
14483case $srcdir in
14484 .) # No --srcdir option. We are building in place.
14485 ac_srcdir=.
14486 if test -z "$ac_top_builddir"; then
14487 ac_top_srcdir=.
14488 else
14489 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14490 fi ;;
14491 [\\/]* | ?:[\\/]* ) # Absolute path.
14492 ac_srcdir=$srcdir$ac_dir_suffix;
14493 ac_top_srcdir=$srcdir ;;
14494 *) # Relative path.
14495 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14496 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14497esac
14498
14499# Do not use `cd foo && pwd` to compute absolute paths, because
14500# the directories may not exist.
14501case `pwd` in
14502.) ac_abs_builddir="$ac_dir";;
14503*)
14504 case "$ac_dir" in
14505 .) ac_abs_builddir=`pwd`;;
14506 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14507 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14508 esac;;
14509esac
14510case $ac_abs_builddir in
14511.) ac_abs_top_builddir=${ac_top_builddir}.;;
14512*)
14513 case ${ac_top_builddir}. in
14514 .) ac_abs_top_builddir=$ac_abs_builddir;;
14515 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14516 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14517 esac;;
14518esac
14519case $ac_abs_builddir in
14520.) ac_abs_srcdir=$ac_srcdir;;
14521*)
14522 case $ac_srcdir in
14523 .) ac_abs_srcdir=$ac_abs_builddir;;
14524 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14525 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14526 esac;;
14527esac
14528case $ac_abs_builddir in
14529.) ac_abs_top_srcdir=$ac_top_srcdir;;
14530*)
14531 case $ac_top_srcdir in
14532 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14533 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14534 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14535 esac;;
14536esac
14537
14538
14539 case $INSTALL in
14540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14541 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14542 esac
14543
14544 if test x"$ac_file" != x-; then
14545 { echo "$as_me:$LINENO: creating $ac_file" >&5
14546echo "$as_me: creating $ac_file" >&6;}
14547 rm -f "$ac_file"
14548 fi
14549 # Let's still pretend it is `configure' which instantiates (i.e., don't
14550 # use $as_me), people would be surprised to read:
14551 # /* config.h. Generated by config.status. */
14552 if test x"$ac_file" = x-; then
14553 configure_input=
14554 else
14555 configure_input="$ac_file. "
14556 fi
14557 configure_input=$configure_input"Generated from `echo $ac_file_in |
14558 sed 's,.*/,,'` by configure."
14559
14560 # First look for the input files in the build tree, otherwise in the
14561 # src tree.
14562 ac_file_inputs=`IFS=:
14563 for f in $ac_file_in; do
14564 case $f in
14565 -) echo $tmp/stdin ;;
14566 [\\/$]*)
14567 # Absolute (can't be DOS-style, as IFS=:)
14568 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14569echo "$as_me: error: cannot find input file: $f" >&2;}
14570 { (exit 1); exit 1; }; }
14571 echo "$f";;
14572 *) # Relative
14573 if test -f "$f"; then
14574 # Build tree
14575 echo "$f"
14576 elif test -f "$srcdir/$f"; then
14577 # Source tree
14578 echo "$srcdir/$f"
14579 else
14580 # /dev/null tree
14581 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14582echo "$as_me: error: cannot find input file: $f" >&2;}
14583 { (exit 1); exit 1; }; }
14584 fi;;
14585 esac
14586 done` || { (exit 1); exit 1; }
14587_ACEOF
14588cat >>$CONFIG_STATUS <<_ACEOF
14589 sed "$ac_vpsub
14590$extrasub
14591_ACEOF
14592cat >>$CONFIG_STATUS <<\_ACEOF
14593:t
14594/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14595s,@configure_input@,$configure_input,;t t
14596s,@srcdir@,$ac_srcdir,;t t
14597s,@abs_srcdir@,$ac_abs_srcdir,;t t
14598s,@top_srcdir@,$ac_top_srcdir,;t t
14599s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14600s,@builddir@,$ac_builddir,;t t
14601s,@abs_builddir@,$ac_abs_builddir,;t t
14602s,@top_builddir@,$ac_top_builddir,;t t
14603s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14604s,@INSTALL@,$ac_INSTALL,;t t
14605" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14606 rm -f $tmp/stdin
14607 if test x"$ac_file" != x-; then
14608 mv $tmp/out $ac_file
14609 else
14610 cat $tmp/out
14611 rm -f $tmp/out
14612 fi
14613
14614done
14615_ACEOF
14616cat >>$CONFIG_STATUS <<\_ACEOF
14617
14618#
14619# CONFIG_HEADER section.
14620#
14621
14622# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14623# NAME is the cpp macro being defined and VALUE is the value it is being given.
14624#
14625# ac_d sets the value in "#define NAME VALUE" lines.
14626ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14627ac_dB='[ ].*$,\1#\2'
14628ac_dC=' '
14629ac_dD=',;t'
14630# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14631ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14632ac_uB='$,\1#\2define\3'
14633ac_uC=' '
14634ac_uD=',;t'
14635
14636for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14637 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14638 case $ac_file in
14639 - | *:- | *:-:* ) # input from stdin
14640 cat >$tmp/stdin
14641 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14642 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14643 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14644 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14645 * ) ac_file_in=$ac_file.in ;;
14646 esac
14647
14648 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14649echo "$as_me: creating $ac_file" >&6;}
14650
14651 # First look for the input files in the build tree, otherwise in the
14652 # src tree.
14653 ac_file_inputs=`IFS=:
14654 for f in $ac_file_in; do
14655 case $f in
14656 -) echo $tmp/stdin ;;
14657 [\\/$]*)
14658 # Absolute (can't be DOS-style, as IFS=:)
14659 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14660echo "$as_me: error: cannot find input file: $f" >&2;}
14661 { (exit 1); exit 1; }; }
14662 # Do quote $f, to prevent DOS paths from being IFS'd.
14663 echo "$f";;
14664 *) # Relative
14665 if test -f "$f"; then
14666 # Build tree
14667 echo "$f"
14668 elif test -f "$srcdir/$f"; then
14669 # Source tree
14670 echo "$srcdir/$f"
14671 else
14672 # /dev/null tree
14673 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14674echo "$as_me: error: cannot find input file: $f" >&2;}
14675 { (exit 1); exit 1; }; }
14676 fi;;
14677 esac
14678 done` || { (exit 1); exit 1; }
14679 # Remove the trailing spaces.
14680 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14681
14682_ACEOF
14683
14684# Transform confdefs.h into two sed scripts, `conftest.defines' and
14685# `conftest.undefs', that substitutes the proper values into
14686# config.h.in to produce config.h. The first handles `#define'
14687# templates, and the second `#undef' templates.
14688# And first: Protect against being on the right side of a sed subst in
14689# config.status. Protect against being in an unquoted here document
14690# in config.status.
14691rm -f conftest.defines conftest.undefs
14692# Using a here document instead of a string reduces the quoting nightmare.
14693# Putting comments in sed scripts is not portable.
14694#
14695# `end' is used to avoid that the second main sed command (meant for
14696# 0-ary CPP macros) applies to n-ary macro definitions.
14697# See the Autoconf documentation for `clear'.
14698cat >confdef2sed.sed <<\_ACEOF
14699s/[\\&,]/\\&/g
14700s,[\\$`],\\&,g
14701t clear
14702: clear
14703s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14704t end
14705s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14706: end
14707_ACEOF
14708# If some macros were called several times there might be several times
14709# the same #defines, which is useless. Nevertheless, we may not want to
14710# sort them, since we want the *last* AC-DEFINE to be honored.
14711uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14712sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14713rm -f confdef2sed.sed
14714
14715# This sed command replaces #undef with comments. This is necessary, for
14716# example, in the case of _POSIX_SOURCE, which is predefined and required
14717# on some systems where configure will not decide to define it.
14718cat >>conftest.undefs <<\_ACEOF
14719s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14720_ACEOF
14721
14722# Break up conftest.defines because some shells have a limit on the size
14723# of here documents, and old seds have small limits too (100 cmds).
14724echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14725echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14726echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14727echo ' :' >>$CONFIG_STATUS
14728rm -f conftest.tail
14729while grep . conftest.defines >/dev/null
14730do
14731 # Write a limited-size here document to $tmp/defines.sed.
14732 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14733 # Speed up: don't consider the non `#define' lines.
14734 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14735 # Work around the forget-to-reset-the-flag bug.
14736 echo 't clr' >>$CONFIG_STATUS
14737 echo ': clr' >>$CONFIG_STATUS
14738 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14739 echo 'CEOF
14740 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14741 rm -f $tmp/in
14742 mv $tmp/out $tmp/in
14743' >>$CONFIG_STATUS
14744 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14745 rm -f conftest.defines
14746 mv conftest.tail conftest.defines
14747done
14748rm -f conftest.defines
14749echo ' fi # grep' >>$CONFIG_STATUS
14750echo >>$CONFIG_STATUS
14751
14752# Break up conftest.undefs because some shells have a limit on the size
14753# of here documents, and old seds have small limits too (100 cmds).
14754echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14755rm -f conftest.tail
14756while grep . conftest.undefs >/dev/null
14757do
14758 # Write a limited-size here document to $tmp/undefs.sed.
14759 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14760 # Speed up: don't consider the non `#undef'
14761 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14762 # Work around the forget-to-reset-the-flag bug.
14763 echo 't clr' >>$CONFIG_STATUS
14764 echo ': clr' >>$CONFIG_STATUS
14765 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14766 echo 'CEOF
14767 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14768 rm -f $tmp/in
14769 mv $tmp/out $tmp/in
14770' >>$CONFIG_STATUS
14771 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14772 rm -f conftest.undefs
14773 mv conftest.tail conftest.undefs
14774done
14775rm -f conftest.undefs
14776
14777cat >>$CONFIG_STATUS <<\_ACEOF
14778 # Let's still pretend it is `configure' which instantiates (i.e., don't
14779 # use $as_me), people would be surprised to read:
14780 # /* config.h. Generated by config.status. */
14781 if test x"$ac_file" = x-; then
14782 echo "/* Generated by configure. */" >$tmp/config.h
14783 else
14784 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14785 fi
14786 cat $tmp/in >>$tmp/config.h
14787 rm -f $tmp/in
14788 if test x"$ac_file" != x-; then
14789 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14790 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14791echo "$as_me: $ac_file is unchanged" >&6;}
14792 else
14793 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14794$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14795 X"$ac_file" : 'X\(//\)[^/]' \| \
14796 X"$ac_file" : 'X\(//\)$' \| \
14797 X"$ac_file" : 'X\(/\)' \| \
14798 . : '\(.\)' 2>/dev/null ||
14799echo X"$ac_file" |
14800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14801 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14802 /^X\(\/\/\)$/{ s//\1/; q; }
14803 /^X\(\/\).*/{ s//\1/; q; }
14804 s/.*/./; q'`
14805 { if $as_mkdir_p; then
14806 mkdir -p "$ac_dir"
14807 else
14808 as_dir="$ac_dir"
14809 as_dirs=
14810 while test ! -d "$as_dir"; do
14811 as_dirs="$as_dir $as_dirs"
14812 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14813$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14814 X"$as_dir" : 'X\(//\)[^/]' \| \
14815 X"$as_dir" : 'X\(//\)$' \| \
14816 X"$as_dir" : 'X\(/\)' \| \
14817 . : '\(.\)' 2>/dev/null ||
14818echo X"$as_dir" |
14819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14821 /^X\(\/\/\)$/{ s//\1/; q; }
14822 /^X\(\/\).*/{ s//\1/; q; }
14823 s/.*/./; q'`
14824 done
14825 test ! -n "$as_dirs" || mkdir $as_dirs
14826 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14827echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14828 { (exit 1); exit 1; }; }; }
14829
14830 rm -f $ac_file
14831 mv $tmp/config.h $ac_file
14832 fi
14833 else
14834 cat $tmp/config.h
14835 rm -f $tmp/config.h
14836 fi
14837# Compute $ac_file's index in $config_headers.
14838_am_stamp_count=1
14839for _am_header in $config_headers :; do
14840 case $_am_header in
14841 $ac_file | $ac_file:* )
14842 break ;;
14843 * )
14844 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14845 esac
14846done
14847echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14848$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14849 X$ac_file : 'X\(//\)[^/]' \| \
14850 X$ac_file : 'X\(//\)$' \| \
14851 X$ac_file : 'X\(/\)' \| \
14852 . : '\(.\)' 2>/dev/null ||
14853echo X$ac_file |
14854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14856 /^X\(\/\/\)$/{ s//\1/; q; }
14857 /^X\(\/\).*/{ s//\1/; q; }
14858 s/.*/./; q'`/stamp-h$_am_stamp_count
14859done
14860_ACEOF
14861cat >>$CONFIG_STATUS <<\_ACEOF
14862
14863#
14864# CONFIG_COMMANDS section.
14865#
14866for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14867 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14868 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14869 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14870$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14871 X"$ac_dest" : 'X\(//\)[^/]' \| \
14872 X"$ac_dest" : 'X\(//\)$' \| \
14873 X"$ac_dest" : 'X\(/\)' \| \
14874 . : '\(.\)' 2>/dev/null ||
14875echo X"$ac_dest" |
14876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14878 /^X\(\/\/\)$/{ s//\1/; q; }
14879 /^X\(\/\).*/{ s//\1/; q; }
14880 s/.*/./; q'`
14881 { if $as_mkdir_p; then
14882 mkdir -p "$ac_dir"
14883 else
14884 as_dir="$ac_dir"
14885 as_dirs=
14886 while test ! -d "$as_dir"; do
14887 as_dirs="$as_dir $as_dirs"
14888 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14889$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14890 X"$as_dir" : 'X\(//\)[^/]' \| \
14891 X"$as_dir" : 'X\(//\)$' \| \
14892 X"$as_dir" : 'X\(/\)' \| \
14893 . : '\(.\)' 2>/dev/null ||
14894echo X"$as_dir" |
14895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14897 /^X\(\/\/\)$/{ s//\1/; q; }
14898 /^X\(\/\).*/{ s//\1/; q; }
14899 s/.*/./; q'`
14900 done
14901 test ! -n "$as_dirs" || mkdir $as_dirs
14902 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14903echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14904 { (exit 1); exit 1; }; }; }
14905
14906 ac_builddir=.
14907
14908if test "$ac_dir" != .; then
14909 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14910 # A "../" for each directory in $ac_dir_suffix.
14911 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14912else
14913 ac_dir_suffix= ac_top_builddir=
14914fi
14915
14916case $srcdir in
14917 .) # No --srcdir option. We are building in place.
14918 ac_srcdir=.
14919 if test -z "$ac_top_builddir"; then
14920 ac_top_srcdir=.
14921 else
14922 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14923 fi ;;
14924 [\\/]* | ?:[\\/]* ) # Absolute path.
14925 ac_srcdir=$srcdir$ac_dir_suffix;
14926 ac_top_srcdir=$srcdir ;;
14927 *) # Relative path.
14928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14930esac
14931
14932# Do not use `cd foo && pwd` to compute absolute paths, because
14933# the directories may not exist.
14934case `pwd` in
14935.) ac_abs_builddir="$ac_dir";;
14936*)
14937 case "$ac_dir" in
14938 .) ac_abs_builddir=`pwd`;;
14939 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14940 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14941 esac;;
14942esac
14943case $ac_abs_builddir in
14944.) ac_abs_top_builddir=${ac_top_builddir}.;;
14945*)
14946 case ${ac_top_builddir}. in
14947 .) ac_abs_top_builddir=$ac_abs_builddir;;
14948 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14949 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14950 esac;;
14951esac
14952case $ac_abs_builddir in
14953.) ac_abs_srcdir=$ac_srcdir;;
14954*)
14955 case $ac_srcdir in
14956 .) ac_abs_srcdir=$ac_abs_builddir;;
14957 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14958 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14959 esac;;
14960esac
14961case $ac_abs_builddir in
14962.) ac_abs_top_srcdir=$ac_top_srcdir;;
14963*)
14964 case $ac_top_srcdir in
14965 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14966 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14967 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14968 esac;;
14969esac
14970
14971
14972 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14973echo "$as_me: executing $ac_dest commands" >&6;}
14974 case $ac_dest in
14975 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14976 # Strip MF so we end up with the name of the file.
14977 mf=`echo "$mf" | sed -e 's/:.*$//'`
14978 # Check whether this is an Automake generated Makefile or not.
14979 # We used to match only the files named `Makefile.in', but
14980 # some people rename them; so instead we look at the file content.
14981 # Grep'ing the first line is not enough: some people post-process
14982 # each Makefile.in and add a new line on top of each file to say so.
14983 # So let's grep whole file.
14984 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14985 dirpart=`(dirname "$mf") 2>/dev/null ||
14986$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14987 X"$mf" : 'X\(//\)[^/]' \| \
14988 X"$mf" : 'X\(//\)$' \| \
14989 X"$mf" : 'X\(/\)' \| \
14990 . : '\(.\)' 2>/dev/null ||
14991echo X"$mf" |
14992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14994 /^X\(\/\/\)$/{ s//\1/; q; }
14995 /^X\(\/\).*/{ s//\1/; q; }
14996 s/.*/./; q'`
14997 else
14998 continue
14999 fi
15000 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
15001 # Extract the definition of DEP_FILES from the Makefile without
15002 # running `make'.
15003 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
15004 test -z "$DEPDIR" && continue
15005 # When using ansi2knr, U may be empty or an underscore; expand it
15006 U=`sed -n -e '/^U = / s///p' < "$mf"`
15007 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
15008 # We invoke sed twice because it is the simplest approach to
15009 # changing $(DEPDIR) to its actual value in the expansion.
15010 for file in `sed -n -e '
15011 /^DEP_FILES = .*\\\\$/ {
15012 s/^DEP_FILES = //
15013 :loop
15014 s/\\\\$//
15015 p
15016 n
15017 /\\\\$/ b loop
15018 p
15019 }
15020 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
15021 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15022 # Make sure the directory exists.
15023 test -f "$dirpart/$file" && continue
15024 fdir=`(dirname "$file") 2>/dev/null ||
15025$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15026 X"$file" : 'X\(//\)[^/]' \| \
15027 X"$file" : 'X\(//\)$' \| \
15028 X"$file" : 'X\(/\)' \| \
15029 . : '\(.\)' 2>/dev/null ||
15030echo X"$file" |
15031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15033 /^X\(\/\/\)$/{ s//\1/; q; }
15034 /^X\(\/\).*/{ s//\1/; q; }
15035 s/.*/./; q'`
15036 { if $as_mkdir_p; then
15037 mkdir -p $dirpart/$fdir
15038 else
15039 as_dir=$dirpart/$fdir
15040 as_dirs=
15041 while test ! -d "$as_dir"; do
15042 as_dirs="$as_dir $as_dirs"
15043 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15044$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15045 X"$as_dir" : 'X\(//\)[^/]' \| \
15046 X"$as_dir" : 'X\(//\)$' \| \
15047 X"$as_dir" : 'X\(/\)' \| \
15048 . : '\(.\)' 2>/dev/null ||
15049echo X"$as_dir" |
15050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15052 /^X\(\/\/\)$/{ s//\1/; q; }
15053 /^X\(\/\).*/{ s//\1/; q; }
15054 s/.*/./; q'`
15055 done
15056 test ! -n "$as_dirs" || mkdir $as_dirs
15057 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15058echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15059 { (exit 1); exit 1; }; }; }
15060
15061 # echo "creating $dirpart/$file"
15062 echo '# dummy' > "$dirpart/$file"
15063 done
15064done
15065 ;;
15066 default-1 )
15067 for ac_file in $CONFIG_FILES; do
15068 # Support "outfile[:infile[:infile...]]"
15069 case "$ac_file" in
15070 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15071 esac
15072 # PO directories have a Makefile.in generated from Makefile.in.in.
15073 case "$ac_file" in */Makefile.in)
15074 # Adjust a relative srcdir.
15075 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15076 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15077 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15078 # In autoconf-2.13 it is called $ac_given_srcdir.
15079 # In autoconf-2.50 it is called $srcdir.
15080 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15081 case "$ac_given_srcdir" in
15082 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15083 /*) top_srcdir="$ac_given_srcdir" ;;
15084 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15085 esac
15086 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15087 rm -f "$ac_dir/POTFILES"
15088 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15089 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15090 POMAKEFILEDEPS="POTFILES.in"
15091 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15092 # on $ac_dir but don't depend on user-specified configuration
15093 # parameters.
15094 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15095 # The LINGUAS file contains the set of available languages.
15096 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15097 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15098 fi
15099 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15100 # Hide the ALL_LINGUAS assigment from automake.
15101 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15102 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15103 else
15104 # The set of available languages was given in configure.in.
15105 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15106 fi
15107 # Compute POFILES
15108 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15109 # Compute UPDATEPOFILES
15110 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15111 # Compute DUMMYPOFILES
15112 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15113 # Compute GMOFILES
15114 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15115 case "$ac_given_srcdir" in
15116 .) srcdirpre= ;;
15117 *) srcdirpre='$(srcdir)/' ;;
15118 esac
15119 POFILES=
15120 UPDATEPOFILES=
15121 DUMMYPOFILES=
15122 GMOFILES=
15123 for lang in $ALL_LINGUAS; do
15124 POFILES="$POFILES $srcdirpre$lang.po"
15125 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15126 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15127 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15128 done
15129 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15130 # environment variable.
15131 INST_LINGUAS=
15132 if test -n "$ALL_LINGUAS"; then
15133 for presentlang in $ALL_LINGUAS; do
15134 useit=no
15135 if test "%UNSET%" != "$LINGUAS"; then
15136 desiredlanguages="$LINGUAS"
15137 else
15138 desiredlanguages="$ALL_LINGUAS"
15139 fi
15140 for desiredlang in $desiredlanguages; do
15141 # Use the presentlang catalog if desiredlang is
15142 # a. equal to presentlang, or
15143 # b. a variant of presentlang (because in this case,
15144 # presentlang can be used as a fallback for messages
15145 # which are not translated in the desiredlang catalog).
15146 case "$desiredlang" in
15147 "$presentlang"*) useit=yes;;
15148 esac
15149 done
15150 if test $useit = yes; then
15151 INST_LINGUAS="$INST_LINGUAS $presentlang"
15152 fi
15153 done
15154 fi
15155 CATALOGS=
15156 if test -n "$INST_LINGUAS"; then
15157 for lang in $INST_LINGUAS; do
15158 CATALOGS="$CATALOGS $lang.gmo"
15159 done
15160 fi
15161 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15162 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15163 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15164 if test -f "$f"; then
15165 case "$f" in
15166 *.orig | *.bak | *~) ;;
15167 *) cat "$f" >> "$ac_dir/Makefile" ;;
15168 esac
15169 fi
15170 done
15171 fi
15172 ;;
15173 esac
15174 done ;;
15175 esac
15176done
15177_ACEOF
15178
15179cat >>$CONFIG_STATUS <<\_ACEOF
15180
15181{ (exit 0); exit 0; }
15182_ACEOF
15183chmod +x $CONFIG_STATUS
15184ac_clean_files=$ac_clean_files_save
15185
15186
15187# configure is writing to config.log, and then calls config.status.
15188# config.status does its own redirection, appending to config.log.
15189# Unfortunately, on DOS this fails, as config.log is still kept open
15190# by configure, so config.status won't be able to write to it; its
15191# output is simply discarded. So we exec the FD to /dev/null,
15192# effectively closing config.log, so it can be properly (re)opened and
15193# appended to by config.status. When coming back to configure, we
15194# need to make the FD available again.
15195if test "$no_create" != yes; then
15196 ac_cs_success=:
15197 ac_config_status_args=
15198 test "$silent" = yes &&
15199 ac_config_status_args="$ac_config_status_args --quiet"
15200 exec 5>/dev/null
15201 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15202 exec 5>>config.log
15203 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15204 # would make configure fail if this is the last instruction.
15205 $ac_cs_success || { (exit 1); exit 1; }
15206fi
15207
15208
15209
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette