No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gmake / configure
blobe233298336f715a1ecb56525319fed814423e2d8
1 #! /bin/sh
2 # From configure.in Id: configure.in,v 1.114 2002/10/03 05:46:12 psmith Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.54 for GNU make 3.80.
6 # Report bugs to <bug-make@gnu.org>.
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
41 # NLS nuisances.
42 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conftest.sh
89 echo "exit 0" >>conftest.sh
90 chmod +x conftest.sh
91 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conftest.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME='GNU make'
268 PACKAGE_TARNAME='make'
269 PACKAGE_VERSION='3.80'
270 PACKAGE_STRING='GNU make 3.80'
271 PACKAGE_BUGREPORT='bug-make@gnu.org'
273 ac_unique_file="vpath.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 AWK SET_MAKE 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 MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE USE_NLS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB ALLOCA LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS USE_CUSTOMS_TRUE USE_CUSTOMS_FALSE GLOBINC GLOBLIB USE_LOCAL_GLOB_TRUE USE_LOCAL_GLOB_FALSE MAKE_HOST LTLIBOBJS'
312 ac_subst_files='MAINT_MAKEFILE'
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures GNU make 3.80 to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
831 cat <<\_ACEOF
833 Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
844 if test -n "$ac_init_help"; then
845 case $ac_init_help in
846 short | recursive ) echo "Configuration of GNU make 3.80:";;
847 esac
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking Speeds up one-time builds
854 --enable-dependency-tracking Do not reject slow dependency extractors
855 --disable-rpath do not hardcode runtime library paths
856 --disable-nls do not use Native Language Support
857 --disable-largefile omit support for large files
858 --disable-job-server disallow recursive make communication during -jN
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --with-gnu-ld assume the C compiler uses GNU ld default=no
864 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
865 --without-libiconv-prefix don't search for libiconv in includedir and libdir
866 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
867 --without-libintl-prefix don't search for libintl in includedir and libdir
868 --with-customs=DIR enable remote jobs via Customs--see README.customs
869 --with-dmalloc use dmalloc, as in
870 http://www.dmalloc.com/dmalloc.tar.gz
872 Some influential environment variables:
873 CC C compiler command
874 CFLAGS C compiler flags
875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
876 nonstandard directory <lib dir>
877 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
878 headers in a nonstandard directory <include dir>
879 CPP C preprocessor
881 Use these variables to override the choices made by `configure' or to help
882 it to find libraries and programs with nonstandard names/locations.
884 Report bugs to <bug-make@gnu.org>.
885 _ACEOF
888 if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
895 if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 else
900 ac_dir_suffix= ac_top_builddir=
903 case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 fi ;;
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 esac
918 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
919 # absolute.
920 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
921 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
922 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
923 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
925 cd $ac_dir
926 # Check for guested configure; otherwise get Cygnus style configure.
927 if test -f $ac_srcdir/configure.gnu; then
928 echo
929 $SHELL $ac_srcdir/configure.gnu --help=recursive
930 elif test -f $ac_srcdir/configure; then
931 echo
932 $SHELL $ac_srcdir/configure --help=recursive
933 elif test -f $ac_srcdir/configure.ac ||
934 test -f $ac_srcdir/configure.in; then
935 echo
936 $ac_configure --help
937 else
938 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
940 cd $ac_popdir
941 done
944 test -n "$ac_init_help" && exit 0
945 if $ac_init_version; then
946 cat <<\_ACEOF
947 GNU make configure 3.80
948 generated by GNU Autoconf 2.54
950 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
951 Free Software Foundation, Inc.
952 This configure script is free software; the Free Software Foundation
953 gives unlimited permission to copy, distribute and modify it.
954 _ACEOF
955 exit 0
957 exec 5>config.log
958 cat >&5 <<_ACEOF
959 This file contains any messages produced by compilers while
960 running configure, to aid debugging if configure makes a mistake.
962 It was created by GNU make $as_me 3.80, which was
963 generated by GNU Autoconf 2.54. Invocation command line was
965 $ $0 $@
967 _ACEOF
969 cat <<_ASUNAME
970 ## --------- ##
971 ## Platform. ##
972 ## --------- ##
974 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
975 uname -m = `(uname -m) 2>/dev/null || echo unknown`
976 uname -r = `(uname -r) 2>/dev/null || echo unknown`
977 uname -s = `(uname -s) 2>/dev/null || echo unknown`
978 uname -v = `(uname -v) 2>/dev/null || echo unknown`
980 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
981 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
983 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
984 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
985 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
986 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
987 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
988 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
989 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
991 _ASUNAME
993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
994 for as_dir in $PATH
996 IFS=$as_save_IFS
997 test -z "$as_dir" && as_dir=.
998 echo "PATH: $as_dir"
999 done
1001 } >&5
1003 cat >&5 <<_ACEOF
1006 ## ----------- ##
1007 ## Core tests. ##
1008 ## ----------- ##
1010 _ACEOF
1013 # Keep a trace of the command line.
1014 # Strip out --no-create and --no-recursion so they do not pile up.
1015 # Also quote any args containing shell meta-characters.
1016 ac_configure_args=
1017 ac_sep=
1018 for ac_arg
1020 case $ac_arg in
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n ) continue ;;
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 continue ;;
1026 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1027 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1028 esac
1029 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1030 # Get rid of the leading space.
1031 ac_sep=" "
1032 done
1034 # When interrupted or exit'd, cleanup temporary files, and complete
1035 # config.log. We remove comments because anyway the quotes in there
1036 # would cause problems or look ugly.
1037 # WARNING: Be sure not to use single quotes in there, as some shells,
1038 # such as our DU 5.0 friend, will then `close' the trap.
1039 trap 'exit_status=$?
1040 # Save into config.log some information that might help in debugging.
1042 echo
1044 cat <<\_ASBOX
1045 ## ---------------- ##
1046 ## Cache variables. ##
1047 ## ---------------- ##
1048 _ASBOX
1049 echo
1050 # The following way of writing the cache mishandles newlines in values,
1052 (set) 2>&1 |
1053 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1054 *ac_space=\ *)
1055 sed -n \
1056 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1060 sed -n \
1061 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1063 esac;
1065 echo
1067 cat <<\_ASBOX
1068 ## ----------------- ##
1069 ## Output variables. ##
1070 ## ----------------- ##
1071 _ASBOX
1072 echo
1073 for ac_var in $ac_subst_vars
1075 eval ac_val=$`echo $ac_var`
1076 echo "$ac_var='"'"'$ac_val'"'"'"
1077 done | sort
1078 echo
1080 if test -n "$ac_subst_files"; then
1081 cat <<\_ASBOX
1082 ## ------------- ##
1083 ## Output files. ##
1084 ## ------------- ##
1085 _ASBOX
1086 echo
1087 for ac_var in $ac_subst_files
1089 eval ac_val=$`echo $ac_var`
1090 echo "$ac_var='"'"'$ac_val'"'"'"
1091 done | sort
1092 echo
1095 if test -s confdefs.h; then
1096 cat <<\_ASBOX
1097 ## ----------- ##
1098 ## confdefs.h. ##
1099 ## ----------- ##
1100 _ASBOX
1101 echo
1102 sed "/^$/d" confdefs.h | sort
1103 echo
1105 test "$ac_signal" != 0 &&
1106 echo "$as_me: caught signal $ac_signal"
1107 echo "$as_me: exit $exit_status"
1108 } >&5
1109 rm -f core core.* *.core &&
1110 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1111 exit $exit_status
1113 for ac_signal in 1 2 13 15; do
1114 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1115 done
1116 ac_signal=0
1118 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1119 rm -rf conftest* confdefs.h
1120 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1121 echo >confdefs.h
1123 # Predefined preprocessor variables.
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_NAME "$PACKAGE_NAME"
1127 _ACEOF
1130 cat >>confdefs.h <<_ACEOF
1131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1132 _ACEOF
1135 cat >>confdefs.h <<_ACEOF
1136 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1137 _ACEOF
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_STRING "$PACKAGE_STRING"
1142 _ACEOF
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1147 _ACEOF
1150 # Let the site file select an alternate cache file if it wants to.
1151 # Prefer explicitly selected file to automatically selected ones.
1152 if test -z "$CONFIG_SITE"; then
1153 if test "x$prefix" != xNONE; then
1154 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1155 else
1156 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1159 for ac_site_file in $CONFIG_SITE; do
1160 if test -r "$ac_site_file"; then
1161 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1162 echo "$as_me: loading site script $ac_site_file" >&6;}
1163 sed 's/^/| /' "$ac_site_file" >&5
1164 . "$ac_site_file"
1166 done
1168 if test -r "$cache_file"; then
1169 # Some versions of bash will fail to source /dev/null (special
1170 # files actually), so we avoid doing that.
1171 if test -f "$cache_file"; then
1172 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1173 echo "$as_me: loading cache $cache_file" >&6;}
1174 case $cache_file in
1175 [\\/]* | ?:[\\/]* ) . $cache_file;;
1176 *) . ./$cache_file;;
1177 esac
1179 else
1180 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1181 echo "$as_me: creating cache $cache_file" >&6;}
1182 >$cache_file
1185 # Check that the precious variables saved in the cache have kept the same
1186 # value.
1187 ac_cache_corrupted=false
1188 for ac_var in `(set) 2>&1 |
1189 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1190 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1191 eval ac_new_set=\$ac_env_${ac_var}_set
1192 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1193 eval ac_new_val="\$ac_env_${ac_var}_value"
1194 case $ac_old_set,$ac_new_set in
1195 set,)
1196 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1197 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1198 ac_cache_corrupted=: ;;
1199 ,set)
1200 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1201 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1202 ac_cache_corrupted=: ;;
1203 ,);;
1205 if test "x$ac_old_val" != "x$ac_new_val"; then
1206 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1207 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1208 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1209 echo "$as_me: former value: $ac_old_val" >&2;}
1210 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1211 echo "$as_me: current value: $ac_new_val" >&2;}
1212 ac_cache_corrupted=:
1213 fi;;
1214 esac
1215 # Pass precious variables to config.status.
1216 if test "$ac_new_set" = set; then
1217 case $ac_new_val in
1218 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1220 *) ac_arg=$ac_var=$ac_new_val ;;
1221 esac
1222 case " $ac_configure_args " in
1223 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1224 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1225 esac
1227 done
1228 if $ac_cache_corrupted; then
1229 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1230 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1231 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1232 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1233 { (exit 1); exit 1; }; }
1236 ac_ext=c
1237 ac_cpp='$CPP $CPPFLAGS'
1238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1273 # Autoconf setup
1274 ac_aux_dir=
1275 for ac_dir in config $srcdir/config; do
1276 if test -f $ac_dir/install-sh; then
1277 ac_aux_dir=$ac_dir
1278 ac_install_sh="$ac_aux_dir/install-sh -c"
1279 break
1280 elif test -f $ac_dir/install.sh; then
1281 ac_aux_dir=$ac_dir
1282 ac_install_sh="$ac_aux_dir/install.sh -c"
1283 break
1284 elif test -f $ac_dir/shtool; then
1285 ac_aux_dir=$ac_dir
1286 ac_install_sh="$ac_aux_dir/shtool install -c"
1287 break
1289 done
1290 if test -z "$ac_aux_dir"; then
1291 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1292 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1293 { (exit 1); exit 1; }; }
1295 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1296 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1297 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1300 ac_config_headers="$ac_config_headers config.h"
1303 # Automake setup
1304 am__api_version="1.7"
1305 # Find a good install program. We prefer a C program (faster),
1306 # so one script is as good as another. But avoid the broken or
1307 # incompatible versions:
1308 # SysV /etc/install, /usr/sbin/install
1309 # SunOS /usr/etc/install
1310 # IRIX /sbin/install
1311 # AIX /bin/install
1312 # AmigaOS /C/install, which installs bootblocks on floppy discs
1313 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1314 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1315 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1316 # ./install, which can be erroneously created by make from ./install.sh.
1317 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1318 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1319 if test -z "$INSTALL"; then
1320 if test "${ac_cv_path_install+set}" = set; then
1321 echo $ECHO_N "(cached) $ECHO_C" >&6
1322 else
1323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1324 for as_dir in $PATH
1326 IFS=$as_save_IFS
1327 test -z "$as_dir" && as_dir=.
1328 # Account for people who put trailing slashes in PATH elements.
1329 case $as_dir/ in
1330 ./ | .// | /cC/* | \
1331 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1332 /usr/ucb/* ) ;;
1334 # OSF1 and SCO ODT 3.0 have their own names for install.
1335 # Don't use installbsd from OSF since it installs stuff as root
1336 # by default.
1337 for ac_prog in ginstall scoinst install; do
1338 for ac_exec_ext in '' $ac_executable_extensions; do
1339 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1340 if test $ac_prog = install &&
1341 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1342 # AIX install. It has an incompatible calling convention.
1344 elif test $ac_prog = install &&
1345 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1346 # program-specific install script used by HP pwplus--don't use.
1348 else
1349 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1350 break 3
1353 done
1354 done
1356 esac
1357 done
1361 if test "${ac_cv_path_install+set}" = set; then
1362 INSTALL=$ac_cv_path_install
1363 else
1364 # As a last resort, use the slow shell script. We don't cache a
1365 # path for INSTALL within a source directory, because that will
1366 # break other packages using the cache if that directory is
1367 # removed, or if the path is relative.
1368 INSTALL=$ac_install_sh
1371 echo "$as_me:$LINENO: result: $INSTALL" >&5
1372 echo "${ECHO_T}$INSTALL" >&6
1374 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1375 # It thinks the first close brace ends the variable substitution.
1376 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1378 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1380 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1382 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1383 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1384 # Just in case
1385 sleep 1
1386 echo timestamp > conftest.file
1387 # Do `set' in a subshell so we don't clobber the current shell's
1388 # arguments. Must try -L first in case configure is actually a
1389 # symlink; some systems play weird games with the mod time of symlinks
1390 # (eg FreeBSD returns the mod time of the symlink's containing
1391 # directory).
1392 if (
1393 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1394 if test "$*" = "X"; then
1395 # -L didn't work.
1396 set X `ls -t $srcdir/configure conftest.file`
1398 rm -f conftest.file
1399 if test "$*" != "X $srcdir/configure conftest.file" \
1400 && test "$*" != "X conftest.file $srcdir/configure"; then
1402 # If neither matched, then we have a broken ls. This can happen
1403 # if, for instance, CONFIG_SHELL is bash and it inherits a
1404 # broken ls alias from the environment. This has actually
1405 # happened. Such a system could not be considered "sane".
1406 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1407 alias in your environment" >&5
1408 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1409 alias in your environment" >&2;}
1410 { (exit 1); exit 1; }; }
1413 test "$2" = conftest.file
1415 then
1416 # Ok.
1418 else
1419 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1420 Check your system clock" >&5
1421 echo "$as_me: error: newly created file is older than distributed files!
1422 Check your system clock" >&2;}
1423 { (exit 1); exit 1; }; }
1425 echo "$as_me:$LINENO: result: yes" >&5
1426 echo "${ECHO_T}yes" >&6
1427 test "$program_prefix" != NONE &&
1428 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1429 # Use a double $ so make ignores it.
1430 test "$program_suffix" != NONE &&
1431 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1432 # Double any \ or $. echo might interpret backslashes.
1433 # By default was `s,x,x', remove it if useless.
1434 cat <<\_ACEOF >conftest.sed
1435 s/[\\$]/&&/g;s/;s,x,x,$//
1436 _ACEOF
1437 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1438 rm conftest.sed
1441 # expand $ac_aux_dir to an absolute path
1442 am_aux_dir=`cd $ac_aux_dir && pwd`
1444 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1445 # Use eval to expand $SHELL
1446 if eval "$MISSING --run true"; then
1447 am_missing_run="$MISSING --run "
1448 else
1449 am_missing_run=
1450 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1451 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1454 for ac_prog in gawk mawk nawk awk
1456 # Extract the first word of "$ac_prog", so it can be a program name with args.
1457 set dummy $ac_prog; ac_word=$2
1458 echo "$as_me:$LINENO: checking for $ac_word" >&5
1459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1460 if test "${ac_cv_prog_AWK+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1462 else
1463 if test -n "$AWK"; then
1464 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1465 else
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467 for as_dir in $PATH
1469 IFS=$as_save_IFS
1470 test -z "$as_dir" && as_dir=.
1471 for ac_exec_ext in '' $ac_executable_extensions; do
1472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1473 ac_cv_prog_AWK="$ac_prog"
1474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475 break 2
1477 done
1478 done
1482 AWK=$ac_cv_prog_AWK
1483 if test -n "$AWK"; then
1484 echo "$as_me:$LINENO: result: $AWK" >&5
1485 echo "${ECHO_T}$AWK" >&6
1486 else
1487 echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1491 test -n "$AWK" && break
1492 done
1494 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1495 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1496 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1497 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500 cat >conftest.make <<\_ACEOF
1501 all:
1502 @echo 'ac_maketemp="${MAKE}"'
1503 _ACEOF
1504 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1505 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1506 if test -n "$ac_maketemp"; then
1507 eval ac_cv_prog_make_${ac_make}_set=yes
1508 else
1509 eval ac_cv_prog_make_${ac_make}_set=no
1511 rm -f conftest.make
1513 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1514 echo "$as_me:$LINENO: result: yes" >&5
1515 echo "${ECHO_T}yes" >&6
1516 SET_MAKE=
1517 else
1518 echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1520 SET_MAKE="MAKE=${MAKE-make}"
1523 # test to see if srcdir already configured
1524 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1525 test -f $srcdir/config.status; then
1526 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1527 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1528 { (exit 1); exit 1; }; }
1531 # test whether we have cygpath
1532 if test -z "$CYGPATH_W"; then
1533 if (cygpath --version) >/dev/null 2>/dev/null; then
1534 CYGPATH_W='cygpath -w'
1535 else
1536 CYGPATH_W=echo
1541 # Define the identity of the package.
1542 PACKAGE=make
1543 VERSION=3.80
1546 cat >>confdefs.h <<_ACEOF
1547 #define PACKAGE "$PACKAGE"
1548 _ACEOF
1551 cat >>confdefs.h <<_ACEOF
1552 #define VERSION "$VERSION"
1553 _ACEOF
1555 # Some tools Automake needs.
1557 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1560 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1563 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1566 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1569 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1572 AMTAR=${AMTAR-"${am_missing_run}tar"}
1574 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1576 # Installed binaries are usually stripped using `strip' when the user
1577 # run `make install-strip'. However `strip' might not be the right
1578 # tool to use in cross-compilation environments, therefore Automake
1579 # will honor the `STRIP' environment variable to overrule this program.
1580 if test "$cross_compiling" != no; then
1581 if test -n "$ac_tool_prefix"; then
1582 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1583 set dummy ${ac_tool_prefix}strip; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_STRIP+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589 if test -n "$STRIP"; then
1590 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 break 2
1603 done
1604 done
1608 STRIP=$ac_cv_prog_STRIP
1609 if test -n "$STRIP"; then
1610 echo "$as_me:$LINENO: result: $STRIP" >&5
1611 echo "${ECHO_T}$STRIP" >&6
1612 else
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1618 if test -z "$ac_cv_prog_STRIP"; then
1619 ac_ct_STRIP=$STRIP
1620 # Extract the first word of "strip", so it can be a program name with args.
1621 set dummy strip; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 if test -n "$ac_ct_STRIP"; then
1628 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_ac_ct_STRIP="strip"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 break 2
1641 done
1642 done
1644 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1647 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1648 if test -n "$ac_ct_STRIP"; then
1649 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1650 echo "${ECHO_T}$ac_ct_STRIP" >&6
1651 else
1652 echo "$as_me:$LINENO: result: no" >&5
1653 echo "${ECHO_T}no" >&6
1656 STRIP=$ac_ct_STRIP
1657 else
1658 STRIP="$ac_cv_prog_STRIP"
1662 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1664 # We need awk for the "check" target. The system "awk" is bad on
1665 # some platforms.
1669 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1670 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1671 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1672 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675 cat >conftest.make <<\_ACEOF
1676 all:
1677 @echo 'ac_maketemp="${MAKE}"'
1678 _ACEOF
1679 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1680 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1681 if test -n "$ac_maketemp"; then
1682 eval ac_cv_prog_make_${ac_make}_set=yes
1683 else
1684 eval ac_cv_prog_make_${ac_make}_set=no
1686 rm -f conftest.make
1688 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1689 echo "$as_me:$LINENO: result: yes" >&5
1690 echo "${ECHO_T}yes" >&6
1691 SET_MAKE=
1692 else
1693 echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1695 SET_MAKE="MAKE=${MAKE-make}"
1699 # Checks for programs.
1700 ac_ext=c
1701 ac_cpp='$CPP $CPPFLAGS'
1702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1705 if test -n "$ac_tool_prefix"; then
1706 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1707 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_CC+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713 if test -n "$CC"; then
1714 ac_cv_prog_CC="$CC" # Let the user override the test.
1715 else
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 break 2
1727 done
1728 done
1732 CC=$ac_cv_prog_CC
1733 if test -n "$CC"; then
1734 echo "$as_me:$LINENO: result: $CC" >&5
1735 echo "${ECHO_T}$CC" >&6
1736 else
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1742 if test -z "$ac_cv_prog_CC"; then
1743 ac_ct_CC=$CC
1744 # Extract the first word of "gcc", so it can be a program name with args.
1745 set dummy gcc; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 else
1751 if test -n "$ac_ct_CC"; then
1752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1753 else
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 for as_dir in $PATH
1757 IFS=$as_save_IFS
1758 test -z "$as_dir" && as_dir=.
1759 for ac_exec_ext in '' $ac_executable_extensions; do
1760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761 ac_cv_prog_ac_ct_CC="gcc"
1762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763 break 2
1765 done
1766 done
1770 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1771 if test -n "$ac_ct_CC"; then
1772 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1773 echo "${ECHO_T}$ac_ct_CC" >&6
1774 else
1775 echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1779 CC=$ac_ct_CC
1780 else
1781 CC="$ac_cv_prog_CC"
1784 if test -z "$CC"; then
1785 if test -n "$ac_tool_prefix"; then
1786 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1787 set dummy ${ac_tool_prefix}cc; ac_word=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_CC+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793 if test -n "$CC"; then
1794 ac_cv_prog_CC="$CC" # Let the user override the test.
1795 else
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 for as_dir in $PATH
1799 IFS=$as_save_IFS
1800 test -z "$as_dir" && as_dir=.
1801 for ac_exec_ext in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 ac_cv_prog_CC="${ac_tool_prefix}cc"
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805 break 2
1807 done
1808 done
1812 CC=$ac_cv_prog_CC
1813 if test -n "$CC"; then
1814 echo "$as_me:$LINENO: result: $CC" >&5
1815 echo "${ECHO_T}$CC" >&6
1816 else
1817 echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1822 if test -z "$ac_cv_prog_CC"; then
1823 ac_ct_CC=$CC
1824 # Extract the first word of "cc", so it can be a program name with args.
1825 set dummy cc; ac_word=$2
1826 echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 else
1831 if test -n "$ac_ct_CC"; then
1832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1833 else
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841 ac_cv_prog_ac_ct_CC="cc"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 break 2
1845 done
1846 done
1850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1851 if test -n "$ac_ct_CC"; then
1852 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1853 echo "${ECHO_T}$ac_ct_CC" >&6
1854 else
1855 echo "$as_me:$LINENO: result: no" >&5
1856 echo "${ECHO_T}no" >&6
1859 CC=$ac_ct_CC
1860 else
1861 CC="$ac_cv_prog_CC"
1865 if test -z "$CC"; then
1866 # Extract the first word of "cc", so it can be a program name with args.
1867 set dummy cc; ac_word=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873 if test -n "$CC"; then
1874 ac_cv_prog_CC="$CC" # Let the user override the test.
1875 else
1876 ac_prog_rejected=no
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1885 ac_prog_rejected=yes
1886 continue
1888 ac_cv_prog_CC="cc"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 break 2
1892 done
1893 done
1895 if test $ac_prog_rejected = yes; then
1896 # We found a bogon in the path, so make sure we never use it.
1897 set dummy $ac_cv_prog_CC
1898 shift
1899 if test $# != 0; then
1900 # We chose a different compiler from the bogus one.
1901 # However, it has the same basename, so the bogon will be chosen
1902 # first if we set CC to just the basename; use the full file name.
1903 shift
1904 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1909 CC=$ac_cv_prog_CC
1910 if test -n "$CC"; then
1911 echo "$as_me:$LINENO: result: $CC" >&5
1912 echo "${ECHO_T}$CC" >&6
1913 else
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1919 if test -z "$CC"; then
1920 if test -n "$ac_tool_prefix"; then
1921 for ac_prog in cl
1923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1925 echo "$as_me:$LINENO: checking for $ac_word" >&5
1926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927 if test "${ac_cv_prog_CC+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 else
1930 if test -n "$CC"; then
1931 ac_cv_prog_CC="$CC" # Let the user override the test.
1932 else
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 for ac_exec_ext in '' $ac_executable_extensions; do
1939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 break 2
1944 done
1945 done
1949 CC=$ac_cv_prog_CC
1950 if test -n "$CC"; then
1951 echo "$as_me:$LINENO: result: $CC" >&5
1952 echo "${ECHO_T}$CC" >&6
1953 else
1954 echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1958 test -n "$CC" && break
1959 done
1961 if test -z "$CC"; then
1962 ac_ct_CC=$CC
1963 for ac_prog in cl
1965 # Extract the first word of "$ac_prog", so it can be a program name with args.
1966 set dummy $ac_prog; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 if test -n "$ac_ct_CC"; then
1973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1974 else
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1978 IFS=$as_save_IFS
1979 test -z "$as_dir" && as_dir=.
1980 for ac_exec_ext in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_ac_ct_CC="$ac_prog"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 break 2
1986 done
1987 done
1991 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1992 if test -n "$ac_ct_CC"; then
1993 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1994 echo "${ECHO_T}$ac_ct_CC" >&6
1995 else
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2000 test -n "$ac_ct_CC" && break
2001 done
2003 CC=$ac_ct_CC
2009 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2010 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2011 { (exit 1); exit 1; }; }
2013 # Provide some information about the compiler.
2014 echo "$as_me:$LINENO:" \
2015 "checking for C compiler version" >&5
2016 ac_compiler=`set X $ac_compile; echo $2`
2017 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2018 (eval $ac_compiler --version </dev/null >&5) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }
2022 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2023 (eval $ac_compiler -v </dev/null >&5) 2>&5
2024 ac_status=$?
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }
2027 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2028 (eval $ac_compiler -V </dev/null >&5) 2>&5
2029 ac_status=$?
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }
2033 cat >conftest.$ac_ext <<_ACEOF
2034 #line $LINENO "configure"
2035 #include "confdefs.h"
2038 main ()
2042 return 0;
2044 _ACEOF
2045 ac_clean_files_save=$ac_clean_files
2046 ac_clean_files="$ac_clean_files a.out a.exe"
2047 # Try to create an executable without -o first, disregard a.out.
2048 # It will help us diagnose broken compilers, and finding out an intuition
2049 # of exeext.
2050 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2051 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2052 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2053 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2054 (eval $ac_link_default) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; then
2058 # Find the output, starting from the most likely. This scheme is
2059 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2060 # resort.
2062 # Be careful to initialize this variable, since it used to be cached.
2063 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2064 ac_cv_exeext=
2065 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
2066 test -f "$ac_file" || continue
2067 case $ac_file in
2068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2069 a.out ) # We found the default executable, but exeext='' is most
2070 # certainly right.
2071 break;;
2072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2073 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2074 export ac_cv_exeext
2075 break;;
2076 * ) break;;
2077 esac
2078 done
2079 else
2080 echo "$as_me: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2082 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2083 check \`config.log' for details." >&5
2084 echo "$as_me: error: C compiler cannot create executables
2085 check \`config.log' for details." >&2;}
2086 { (exit 77); exit 77; }; }
2089 ac_exeext=$ac_cv_exeext
2090 echo "$as_me:$LINENO: result: $ac_file" >&5
2091 echo "${ECHO_T}$ac_file" >&6
2093 # Check the compiler produces executables we can run. If not, either
2094 # the compiler is broken, or we cross compile.
2095 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2096 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2097 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2098 # If not cross compiling, check that we can run a simple program.
2099 if test "$cross_compiling" != yes; then
2100 if { ac_try='./$ac_file'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 (eval $ac_try) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
2106 cross_compiling=no
2107 else
2108 if test "$cross_compiling" = maybe; then
2109 cross_compiling=yes
2110 else
2111 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2112 If you meant to cross compile, use \`--host'." >&5
2113 echo "$as_me: error: cannot run C compiled programs.
2114 If you meant to cross compile, use \`--host'." >&2;}
2115 { (exit 1); exit 1; }; }
2119 echo "$as_me:$LINENO: result: yes" >&5
2120 echo "${ECHO_T}yes" >&6
2122 rm -f a.out a.exe conftest$ac_cv_exeext
2123 ac_clean_files=$ac_clean_files_save
2124 # Check the compiler produces executables we can run. If not, either
2125 # the compiler is broken, or we cross compile.
2126 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2127 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2128 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2129 echo "${ECHO_T}$cross_compiling" >&6
2131 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2132 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2134 (eval $ac_link) 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }; then
2138 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2139 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2140 # work properly (i.e., refer to `conftest.exe'), while it won't with
2141 # `rm'.
2142 for ac_file in conftest.exe conftest conftest.*; do
2143 test -f "$ac_file" || continue
2144 case $ac_file in
2145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2146 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2147 export ac_cv_exeext
2148 break;;
2149 * ) break;;
2150 esac
2151 done
2152 else
2153 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2154 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2155 { (exit 1); exit 1; }; }
2158 rm -f conftest$ac_cv_exeext
2159 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2160 echo "${ECHO_T}$ac_cv_exeext" >&6
2162 rm -f conftest.$ac_ext
2163 EXEEXT=$ac_cv_exeext
2164 ac_exeext=$EXEEXT
2165 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2166 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2167 if test "${ac_cv_objext+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 cat >conftest.$ac_ext <<_ACEOF
2171 #line $LINENO "configure"
2172 #include "confdefs.h"
2175 main ()
2179 return 0;
2181 _ACEOF
2182 rm -f conftest.o conftest.obj
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; then
2188 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2189 case $ac_file in
2190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2191 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2192 break;;
2193 esac
2194 done
2195 else
2196 echo "$as_me: failed program was:" >&5
2197 cat conftest.$ac_ext >&5
2198 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2199 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2200 { (exit 1); exit 1; }; }
2203 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2205 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2206 echo "${ECHO_T}$ac_cv_objext" >&6
2207 OBJEXT=$ac_cv_objext
2208 ac_objext=$OBJEXT
2209 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2210 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2211 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214 cat >conftest.$ac_ext <<_ACEOF
2215 #line $LINENO "configure"
2216 #include "confdefs.h"
2219 main ()
2221 #ifndef __GNUC__
2222 choke me
2223 #endif
2226 return 0;
2228 _ACEOF
2229 rm -f conftest.$ac_objext
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 ac_compiler_gnu=yes
2242 else
2243 echo "$as_me: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2245 ac_compiler_gnu=no
2247 rm -f conftest.$ac_objext conftest.$ac_ext
2248 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2251 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2252 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2253 GCC=`test $ac_compiler_gnu = yes && echo yes`
2254 ac_test_CFLAGS=${CFLAGS+set}
2255 ac_save_CFLAGS=$CFLAGS
2256 CFLAGS="-g"
2257 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2258 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2259 if test "${ac_cv_prog_cc_g+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262 cat >conftest.$ac_ext <<_ACEOF
2263 #line $LINENO "configure"
2264 #include "confdefs.h"
2267 main ()
2271 return 0;
2273 _ACEOF
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276 (eval $ac_compile) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2286 ac_cv_prog_cc_g=yes
2287 else
2288 echo "$as_me: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2290 ac_cv_prog_cc_g=no
2292 rm -f conftest.$ac_objext conftest.$ac_ext
2294 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2295 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2296 if test "$ac_test_CFLAGS" = set; then
2297 CFLAGS=$ac_save_CFLAGS
2298 elif test $ac_cv_prog_cc_g = yes; then
2299 if test "$GCC" = yes; then
2300 CFLAGS="-g -O2"
2301 else
2302 CFLAGS="-g"
2304 else
2305 if test "$GCC" = yes; then
2306 CFLAGS="-O2"
2307 else
2308 CFLAGS=
2311 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2312 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2313 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316 ac_cv_prog_cc_stdc=no
2317 ac_save_CC=$CC
2318 cat >conftest.$ac_ext <<_ACEOF
2319 #line $LINENO "configure"
2320 #include "confdefs.h"
2321 #include <stdarg.h>
2322 #include <stdio.h>
2323 #include <sys/types.h>
2324 #include <sys/stat.h>
2325 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2326 struct buf { int x; };
2327 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2328 static char *e (p, i)
2329 char **p;
2330 int i;
2332 return p[i];
2334 static char *f (char * (*g) (char **, int), char **p, ...)
2336 char *s;
2337 va_list v;
2338 va_start (v,p);
2339 s = g (p, va_arg (v,int));
2340 va_end (v);
2341 return s;
2343 int test (int i, double x);
2344 struct s1 {int (*f) (int a);};
2345 struct s2 {int (*f) (double a);};
2346 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2347 int argc;
2348 char **argv;
2350 main ()
2352 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2354 return 0;
2356 _ACEOF
2357 # Don't try gcc -ansi; that turns off useful extensions and
2358 # breaks some systems' header files.
2359 # AIX -qlanglvl=ansi
2360 # Ultrix and OSF/1 -std1
2361 # HP-UX 10.20 and later -Ae
2362 # HP-UX older versions -Aa -D_HPUX_SOURCE
2363 # SVR4 -Xc -D__EXTENSIONS__
2364 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2366 CC="$ac_save_CC $ac_arg"
2367 rm -f conftest.$ac_objext
2368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369 (eval $ac_compile) 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -s conftest.$ac_objext'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 (eval $ac_try) 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; }; then
2379 ac_cv_prog_cc_stdc=$ac_arg
2380 break
2381 else
2382 echo "$as_me: failed program was:" >&5
2383 cat conftest.$ac_ext >&5
2385 rm -f conftest.$ac_objext
2386 done
2387 rm -f conftest.$ac_ext conftest.$ac_objext
2388 CC=$ac_save_CC
2392 case "x$ac_cv_prog_cc_stdc" in
2393 x|xno)
2394 echo "$as_me:$LINENO: result: none needed" >&5
2395 echo "${ECHO_T}none needed" >&6 ;;
2397 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2398 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2399 CC="$CC $ac_cv_prog_cc_stdc" ;;
2400 esac
2402 # Some people use a C++ compiler to compile C. Since we use `exit',
2403 # in C++ we need to declare it. In case someone uses the same compiler
2404 # for both compiling C and C++ we need to have the C++ compiler decide
2405 # the declaration of exit, since it's the most demanding environment.
2406 cat >conftest.$ac_ext <<_ACEOF
2407 #ifndef __cplusplus
2408 choke me
2409 #endif
2410 _ACEOF
2411 rm -f conftest.$ac_objext
2412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413 (eval $ac_compile) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 for ac_declaration in \
2425 '#include <stdlib.h>' \
2426 'extern "C" void std::exit (int) throw (); using std::exit;' \
2427 'extern "C" void std::exit (int); using std::exit;' \
2428 'extern "C" void exit (int) throw ();' \
2429 'extern "C" void exit (int);' \
2430 'void exit (int);'
2432 cat >conftest.$ac_ext <<_ACEOF
2433 #line $LINENO "configure"
2434 #include "confdefs.h"
2435 #include <stdlib.h>
2436 $ac_declaration
2438 main ()
2440 exit (42);
2442 return 0;
2444 _ACEOF
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -s conftest.$ac_objext'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2458 else
2459 echo "$as_me: failed program was:" >&5
2460 cat conftest.$ac_ext >&5
2461 continue
2463 rm -f conftest.$ac_objext conftest.$ac_ext
2464 cat >conftest.$ac_ext <<_ACEOF
2465 #line $LINENO "configure"
2466 #include "confdefs.h"
2467 $ac_declaration
2469 main ()
2471 exit (42);
2473 return 0;
2475 _ACEOF
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 break
2489 else
2490 echo "$as_me: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2493 rm -f conftest.$ac_objext conftest.$ac_ext
2494 done
2495 rm -f conftest*
2496 if test -n "$ac_declaration"; then
2497 echo '#ifdef __cplusplus' >>confdefs.h
2498 echo $ac_declaration >>confdefs.h
2499 echo '#endif' >>confdefs.h
2502 else
2503 echo "$as_me: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2506 rm -f conftest.$ac_objext conftest.$ac_ext
2507 ac_ext=c
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512 rm -f .deps 2>/dev/null
2513 mkdir .deps 2>/dev/null
2514 if test -d .deps; then
2515 DEPDIR=.deps
2516 else
2517 # MS-DOS does not allow filenames that begin with a dot.
2518 DEPDIR=_deps
2520 rmdir .deps 2>/dev/null
2523 ac_config_commands="$ac_config_commands depfiles"
2526 am_make=${MAKE-make}
2527 cat > confinc << 'END'
2528 doit:
2529 @echo done
2531 # If we don't find an include directive, just comment out the code.
2532 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2533 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2534 am__include="#"
2535 am__quote=
2536 _am_result=none
2537 # First try GNU make style include.
2538 echo "include confinc" > confmf
2539 # We grep out `Entering directory' and `Leaving directory'
2540 # messages which can occur if `w' ends up in MAKEFLAGS.
2541 # In particular we don't look at `^make:' because GNU make might
2542 # be invoked under some other name (usually "gmake"), in which
2543 # case it prints its new name instead of `make'.
2544 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2545 am__include=include
2546 am__quote=
2547 _am_result=GNU
2549 # Now try BSD make style include.
2550 if test "$am__include" = "#"; then
2551 echo '.include "confinc"' > confmf
2552 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2553 am__include=.include
2554 am__quote="\""
2555 _am_result=BSD
2560 echo "$as_me:$LINENO: result: $_am_result" >&5
2561 echo "${ECHO_T}$_am_result" >&6
2562 rm -f confinc confmf
2564 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2565 if test "${enable_dependency_tracking+set}" = set; then
2566 enableval="$enable_dependency_tracking"
2569 if test "x$enable_dependency_tracking" != xno; then
2570 am_depcomp="$ac_aux_dir/depcomp"
2571 AMDEPBACKSLASH='\'
2575 if test "x$enable_dependency_tracking" != xno; then
2576 AMDEP_TRUE=
2577 AMDEP_FALSE='#'
2578 else
2579 AMDEP_TRUE='#'
2580 AMDEP_FALSE=
2586 depcc="$CC" am_compiler_list=
2588 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2589 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2590 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2594 # We make a subdir and do the tests there. Otherwise we can end up
2595 # making bogus files that we don't know about and never remove. For
2596 # instance it was reported that on HP-UX the gcc test will end up
2597 # making a dummy file named `D' -- because `-MD' means `put the output
2598 # in D'.
2599 mkdir conftest.dir
2600 # Copy depcomp to subdir because otherwise we won't find it if we're
2601 # using a relative directory.
2602 cp "$am_depcomp" conftest.dir
2603 cd conftest.dir
2605 am_cv_CC_dependencies_compiler_type=none
2606 if test "$am_compiler_list" = ""; then
2607 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2609 for depmode in $am_compiler_list; do
2610 # We need to recreate these files for each test, as the compiler may
2611 # overwrite some of them when testing with obscure command lines.
2612 # This happens at least with the AIX C compiler.
2613 echo '#include "conftest.h"' > conftest.c
2614 echo 'int i;' > conftest.h
2615 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2617 case $depmode in
2618 nosideeffect)
2619 # after this tag, mechanisms are not by side-effect, so they'll
2620 # only be used when explicitly requested
2621 if test "x$enable_dependency_tracking" = xyes; then
2622 continue
2623 else
2624 break
2627 none) break ;;
2628 esac
2629 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2630 # mode. It turns out that the SunPro C++ compiler does not properly
2631 # handle `-M -o', and we need to detect this.
2632 if depmode=$depmode \
2633 source=conftest.c object=conftest.o \
2634 depfile=conftest.Po tmpdepfile=conftest.TPo \
2635 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2636 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2637 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2638 am_cv_CC_dependencies_compiler_type=$depmode
2639 break
2641 done
2643 cd ..
2644 rm -rf conftest.dir
2645 else
2646 am_cv_CC_dependencies_compiler_type=none
2650 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2651 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2652 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2657 test "x$enable_dependency_tracking" != xno \
2658 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2659 am__fastdepCC_TRUE=
2660 am__fastdepCC_FALSE='#'
2661 else
2662 am__fastdepCC_TRUE='#'
2663 am__fastdepCC_FALSE=
2667 # Find a good install program. We prefer a C program (faster),
2668 # so one script is as good as another. But avoid the broken or
2669 # incompatible versions:
2670 # SysV /etc/install, /usr/sbin/install
2671 # SunOS /usr/etc/install
2672 # IRIX /sbin/install
2673 # AIX /bin/install
2674 # AmigaOS /C/install, which installs bootblocks on floppy discs
2675 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2676 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2677 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2678 # ./install, which can be erroneously created by make from ./install.sh.
2679 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2680 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2681 if test -z "$INSTALL"; then
2682 if test "${ac_cv_path_install+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 # Account for people who put trailing slashes in PATH elements.
2691 case $as_dir/ in
2692 ./ | .// | /cC/* | \
2693 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2694 /usr/ucb/* ) ;;
2696 # OSF1 and SCO ODT 3.0 have their own names for install.
2697 # Don't use installbsd from OSF since it installs stuff as root
2698 # by default.
2699 for ac_prog in ginstall scoinst install; do
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2702 if test $ac_prog = install &&
2703 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2704 # AIX install. It has an incompatible calling convention.
2706 elif test $ac_prog = install &&
2707 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2708 # program-specific install script used by HP pwplus--don't use.
2710 else
2711 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2712 break 3
2715 done
2716 done
2718 esac
2719 done
2723 if test "${ac_cv_path_install+set}" = set; then
2724 INSTALL=$ac_cv_path_install
2725 else
2726 # As a last resort, use the slow shell script. We don't cache a
2727 # path for INSTALL within a source directory, because that will
2728 # break other packages using the cache if that directory is
2729 # removed, or if the path is relative.
2730 INSTALL=$ac_install_sh
2733 echo "$as_me:$LINENO: result: $INSTALL" >&5
2734 echo "${ECHO_T}$INSTALL" >&6
2736 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2737 # It thinks the first close brace ends the variable substitution.
2738 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2740 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2742 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2744 if test -n "$ac_tool_prefix"; then
2745 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2746 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2747 echo "$as_me:$LINENO: checking for $ac_word" >&5
2748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2749 if test "${ac_cv_prog_RANLIB+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752 if test -n "$RANLIB"; then
2753 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2754 else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2762 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 break 2
2766 done
2767 done
2771 RANLIB=$ac_cv_prog_RANLIB
2772 if test -n "$RANLIB"; then
2773 echo "$as_me:$LINENO: result: $RANLIB" >&5
2774 echo "${ECHO_T}$RANLIB" >&6
2775 else
2776 echo "$as_me:$LINENO: result: no" >&5
2777 echo "${ECHO_T}no" >&6
2781 if test -z "$ac_cv_prog_RANLIB"; then
2782 ac_ct_RANLIB=$RANLIB
2783 # Extract the first word of "ranlib", so it can be a program name with args.
2784 set dummy ranlib; ac_word=$2
2785 echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2787 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 else
2790 if test -n "$ac_ct_RANLIB"; then
2791 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800 ac_cv_prog_ac_ct_RANLIB="ranlib"
2801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2804 done
2805 done
2807 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2810 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2811 if test -n "$ac_ct_RANLIB"; then
2812 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2813 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2814 else
2815 echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6
2819 RANLIB=$ac_ct_RANLIB
2820 else
2821 RANLIB="$ac_cv_prog_RANLIB"
2824 ac_ext=c
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2830 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2831 # On Suns, sometimes $CPP names a directory.
2832 if test -n "$CPP" && test -d "$CPP"; then
2833 CPP=
2835 if test -z "$CPP"; then
2836 if test "${ac_cv_prog_CPP+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 else
2839 # Double quotes because CPP needs to be expanded
2840 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2842 ac_preproc_ok=false
2843 for ac_c_preproc_warn_flag in '' yes
2845 # Use a header file that comes with gcc, so configuring glibc
2846 # with a fresh cross-compiler works.
2847 # On the NeXT, cc -E runs the code through the compiler's parser,
2848 # not just through cpp. "Syntax error" is here to catch this case.
2849 cat >conftest.$ac_ext <<_ACEOF
2850 #line $LINENO "configure"
2851 #include "confdefs.h"
2852 #include <assert.h>
2853 Syntax error
2854 _ACEOF
2855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2857 ac_status=$?
2858 grep -v '^ *+' conftest.er1 >conftest.err
2859 rm -f conftest.er1
2860 cat conftest.err >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } >/dev/null; then
2863 if test -s conftest.err; then
2864 ac_cpp_err=$ac_c_preproc_warn_flag
2865 else
2866 ac_cpp_err=
2868 else
2869 ac_cpp_err=yes
2871 if test -z "$ac_cpp_err"; then
2873 else
2874 echo "$as_me: failed program was:" >&5
2875 cat conftest.$ac_ext >&5
2876 # Broken: fails on valid input.
2877 continue
2879 rm -f conftest.err conftest.$ac_ext
2881 # OK, works on sane cases. Now check whether non-existent headers
2882 # can be detected and how.
2883 cat >conftest.$ac_ext <<_ACEOF
2884 #line $LINENO "configure"
2885 #include "confdefs.h"
2886 #include <ac_nonexistent.h>
2887 _ACEOF
2888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2890 ac_status=$?
2891 grep -v '^ *+' conftest.er1 >conftest.err
2892 rm -f conftest.er1
2893 cat conftest.err >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } >/dev/null; then
2896 if test -s conftest.err; then
2897 ac_cpp_err=$ac_c_preproc_warn_flag
2898 else
2899 ac_cpp_err=
2901 else
2902 ac_cpp_err=yes
2904 if test -z "$ac_cpp_err"; then
2905 # Broken: success on invalid input.
2906 continue
2907 else
2908 echo "$as_me: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2910 # Passes both tests.
2911 ac_preproc_ok=:
2912 break
2914 rm -f conftest.err conftest.$ac_ext
2916 done
2917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2918 rm -f conftest.err conftest.$ac_ext
2919 if $ac_preproc_ok; then
2920 break
2923 done
2924 ac_cv_prog_CPP=$CPP
2927 CPP=$ac_cv_prog_CPP
2928 else
2929 ac_cv_prog_CPP=$CPP
2931 echo "$as_me:$LINENO: result: $CPP" >&5
2932 echo "${ECHO_T}$CPP" >&6
2933 ac_preproc_ok=false
2934 for ac_c_preproc_warn_flag in '' yes
2936 # Use a header file that comes with gcc, so configuring glibc
2937 # with a fresh cross-compiler works.
2938 # On the NeXT, cc -E runs the code through the compiler's parser,
2939 # not just through cpp. "Syntax error" is here to catch this case.
2940 cat >conftest.$ac_ext <<_ACEOF
2941 #line $LINENO "configure"
2942 #include "confdefs.h"
2943 #include <assert.h>
2944 Syntax error
2945 _ACEOF
2946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948 ac_status=$?
2949 grep -v '^ *+' conftest.er1 >conftest.err
2950 rm -f conftest.er1
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } >/dev/null; then
2954 if test -s conftest.err; then
2955 ac_cpp_err=$ac_c_preproc_warn_flag
2956 else
2957 ac_cpp_err=
2959 else
2960 ac_cpp_err=yes
2962 if test -z "$ac_cpp_err"; then
2964 else
2965 echo "$as_me: failed program was:" >&5
2966 cat conftest.$ac_ext >&5
2967 # Broken: fails on valid input.
2968 continue
2970 rm -f conftest.err conftest.$ac_ext
2972 # OK, works on sane cases. Now check whether non-existent headers
2973 # can be detected and how.
2974 cat >conftest.$ac_ext <<_ACEOF
2975 #line $LINENO "configure"
2976 #include "confdefs.h"
2977 #include <ac_nonexistent.h>
2978 _ACEOF
2979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2981 ac_status=$?
2982 grep -v '^ *+' conftest.er1 >conftest.err
2983 rm -f conftest.er1
2984 cat conftest.err >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } >/dev/null; then
2987 if test -s conftest.err; then
2988 ac_cpp_err=$ac_c_preproc_warn_flag
2989 else
2990 ac_cpp_err=
2992 else
2993 ac_cpp_err=yes
2995 if test -z "$ac_cpp_err"; then
2996 # Broken: success on invalid input.
2997 continue
2998 else
2999 echo "$as_me: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3001 # Passes both tests.
3002 ac_preproc_ok=:
3003 break
3005 rm -f conftest.err conftest.$ac_ext
3007 done
3008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3009 rm -f conftest.err conftest.$ac_ext
3010 if $ac_preproc_ok; then
3012 else
3013 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3014 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3015 { (exit 1); exit 1; }; }
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 # Extract the first word of "ar", so it can be a program name with args.
3025 set dummy ar; ac_word=$2
3026 echo "$as_me:$LINENO: checking for $ac_word" >&5
3027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3028 if test "${ac_cv_prog_AR+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 else
3031 if test -n "$AR"; then
3032 ac_cv_prog_AR="$AR" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_AR="ar"
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3045 done
3046 done
3048 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3051 AR=$ac_cv_prog_AR
3052 if test -n "$AR"; then
3053 echo "$as_me:$LINENO: result: $AR" >&5
3054 echo "${ECHO_T}$AR" >&6
3055 else
3056 echo "$as_me:$LINENO: result: no" >&5
3057 echo "${ECHO_T}no" >&6
3060 # Perl is needed for the test suite (only)
3061 # Extract the first word of "perl", so it can be a program name with args.
3062 set dummy perl; ac_word=$2
3063 echo "$as_me:$LINENO: checking for $ac_word" >&5
3064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065 if test "${ac_cv_prog_PERL+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 if test -n "$PERL"; then
3069 ac_cv_prog_PERL="$PERL" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_PERL="perl"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3082 done
3083 done
3085 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
3088 PERL=$ac_cv_prog_PERL
3089 if test -n "$PERL"; then
3090 echo "$as_me:$LINENO: result: $PERL" >&5
3091 echo "${ECHO_T}$PERL" >&6
3092 else
3093 echo "$as_me:$LINENO: result: no" >&5
3094 echo "${ECHO_T}no" >&6
3098 # Specialized system macros
3099 # Make sure we can run config.sub.
3100 $ac_config_sub sun4 >/dev/null 2>&1 ||
3101 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3102 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3103 { (exit 1); exit 1; }; }
3105 echo "$as_me:$LINENO: checking build system type" >&5
3106 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3107 if test "${ac_cv_build+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110 ac_cv_build_alias=$build_alias
3111 test -z "$ac_cv_build_alias" &&
3112 ac_cv_build_alias=`$ac_config_guess`
3113 test -z "$ac_cv_build_alias" &&
3114 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3115 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3116 { (exit 1); exit 1; }; }
3117 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3118 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3119 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3120 { (exit 1); exit 1; }; }
3123 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3124 echo "${ECHO_T}$ac_cv_build" >&6
3125 build=$ac_cv_build
3126 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3127 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3128 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3131 echo "$as_me:$LINENO: checking host system type" >&5
3132 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3133 if test "${ac_cv_host+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136 ac_cv_host_alias=$host_alias
3137 test -z "$ac_cv_host_alias" &&
3138 ac_cv_host_alias=$ac_cv_build_alias
3139 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3140 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3141 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3142 { (exit 1); exit 1; }; }
3145 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3146 echo "${ECHO_T}$ac_cv_host" >&6
3147 host=$ac_cv_host
3148 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3149 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3150 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3155 echo "$as_me:$LINENO: checking for egrep" >&5
3156 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3157 if test "${ac_cv_prog_egrep+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3161 then ac_cv_prog_egrep='grep -E'
3162 else ac_cv_prog_egrep='egrep'
3165 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3166 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3167 EGREP=$ac_cv_prog_egrep
3171 echo "$as_me:$LINENO: checking for AIX" >&5
3172 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3173 cat >conftest.$ac_ext <<_ACEOF
3174 #line $LINENO "configure"
3175 #include "confdefs.h"
3176 #ifdef _AIX
3178 #endif
3180 _ACEOF
3181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3182 $EGREP "yes" >/dev/null 2>&1; then
3183 echo "$as_me:$LINENO: result: yes" >&5
3184 echo "${ECHO_T}yes" >&6
3185 cat >>confdefs.h <<\_ACEOF
3186 #define _ALL_SOURCE 1
3187 _ACEOF
3189 else
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3193 rm -f conftest*
3197 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3198 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3199 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 ac_check_lib_save_LIBS=$LIBS
3203 LIBS="-lcposix $LIBS"
3204 cat >conftest.$ac_ext <<_ACEOF
3205 #line $LINENO "configure"
3206 #include "confdefs.h"
3208 /* Override any gcc2 internal prototype to avoid an error. */
3209 #ifdef __cplusplus
3210 extern "C"
3211 #endif
3212 /* We use char because int might match the return type of a gcc2
3213 builtin and then its argument prototype would still apply. */
3214 char strerror ();
3216 main ()
3218 strerror ();
3220 return 0;
3222 _ACEOF
3223 rm -f conftest.$ac_objext conftest$ac_exeext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3225 (eval $ac_link) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -s conftest$ac_exeext'
3230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 (eval $ac_try) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; }; then
3235 ac_cv_lib_cposix_strerror=yes
3236 else
3237 echo "$as_me: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3239 ac_cv_lib_cposix_strerror=no
3241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3242 LIBS=$ac_check_lib_save_LIBS
3244 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3245 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3246 if test $ac_cv_lib_cposix_strerror = yes; then
3247 LIBS="$LIBS -lcposix"
3252 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3253 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3254 if test "${ac_cv_header_stdc+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257 cat >conftest.$ac_ext <<_ACEOF
3258 #line $LINENO "configure"
3259 #include "confdefs.h"
3260 #include <stdlib.h>
3261 #include <stdarg.h>
3262 #include <string.h>
3263 #include <float.h>
3265 _ACEOF
3266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3268 ac_status=$?
3269 grep -v '^ *+' conftest.er1 >conftest.err
3270 rm -f conftest.er1
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } >/dev/null; then
3274 if test -s conftest.err; then
3275 ac_cpp_err=$ac_c_preproc_warn_flag
3276 else
3277 ac_cpp_err=
3279 else
3280 ac_cpp_err=yes
3282 if test -z "$ac_cpp_err"; then
3283 ac_cv_header_stdc=yes
3284 else
3285 echo "$as_me: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3287 ac_cv_header_stdc=no
3289 rm -f conftest.err conftest.$ac_ext
3291 if test $ac_cv_header_stdc = yes; then
3292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3293 cat >conftest.$ac_ext <<_ACEOF
3294 #line $LINENO "configure"
3295 #include "confdefs.h"
3296 #include <string.h>
3298 _ACEOF
3299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3300 $EGREP "memchr" >/dev/null 2>&1; then
3302 else
3303 ac_cv_header_stdc=no
3305 rm -f conftest*
3309 if test $ac_cv_header_stdc = yes; then
3310 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3311 cat >conftest.$ac_ext <<_ACEOF
3312 #line $LINENO "configure"
3313 #include "confdefs.h"
3314 #include <stdlib.h>
3316 _ACEOF
3317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3318 $EGREP "free" >/dev/null 2>&1; then
3320 else
3321 ac_cv_header_stdc=no
3323 rm -f conftest*
3327 if test $ac_cv_header_stdc = yes; then
3328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3329 if test "$cross_compiling" = yes; then
3331 else
3332 cat >conftest.$ac_ext <<_ACEOF
3333 #line $LINENO "configure"
3334 #include "confdefs.h"
3335 #include <ctype.h>
3336 #if ((' ' & 0x0FF) == 0x020)
3337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3339 #else
3340 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3341 || ('j' <= (c) && (c) <= 'r') \
3342 || ('s' <= (c) && (c) <= 'z'))
3343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3344 #endif
3346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3348 main ()
3350 int i;
3351 for (i = 0; i < 256; i++)
3352 if (XOR (islower (i), ISLOWER (i))
3353 || toupper (i) != TOUPPER (i))
3354 exit(2);
3355 exit (0);
3357 _ACEOF
3358 rm -f conftest$ac_exeext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3360 (eval $ac_link) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 (eval $ac_try) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
3370 else
3371 echo "$as_me: program exited with status $ac_status" >&5
3372 echo "$as_me: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3374 ( exit $ac_status )
3375 ac_cv_header_stdc=no
3377 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3381 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3382 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3383 if test $ac_cv_header_stdc = yes; then
3385 cat >>confdefs.h <<\_ACEOF
3386 #define STDC_HEADERS 1
3387 _ACEOF
3391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3401 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3402 inttypes.h stdint.h unistd.h
3404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3405 echo "$as_me:$LINENO: checking for $ac_header" >&5
3406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410 cat >conftest.$ac_ext <<_ACEOF
3411 #line $LINENO "configure"
3412 #include "confdefs.h"
3413 $ac_includes_default
3415 #include <$ac_header>
3416 _ACEOF
3417 rm -f conftest.$ac_objext
3418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3419 (eval $ac_compile) 2>&5
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } &&
3423 { ac_try='test -s conftest.$ac_objext'
3424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425 (eval $ac_try) 2>&5
3426 ac_status=$?
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; }; then
3429 eval "$as_ac_Header=yes"
3430 else
3431 echo "$as_me: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
3433 eval "$as_ac_Header=no"
3435 rm -f conftest.$ac_objext conftest.$ac_ext
3437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3440 cat >>confdefs.h <<_ACEOF
3441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3442 _ACEOF
3446 done
3449 if test "${ac_cv_header_minix_config_h+set}" = set; then
3450 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3451 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3452 if test "${ac_cv_header_minix_config_h+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3456 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3457 else
3458 # Is the header compilable?
3459 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3460 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3461 cat >conftest.$ac_ext <<_ACEOF
3462 #line $LINENO "configure"
3463 #include "confdefs.h"
3464 $ac_includes_default
3465 #include <minix/config.h>
3466 _ACEOF
3467 rm -f conftest.$ac_objext
3468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3469 (eval $ac_compile) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } &&
3473 { ac_try='test -s conftest.$ac_objext'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 (eval $ac_try) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3479 ac_header_compiler=yes
3480 else
3481 echo "$as_me: failed program was:" >&5
3482 cat conftest.$ac_ext >&5
3483 ac_header_compiler=no
3485 rm -f conftest.$ac_objext conftest.$ac_ext
3486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3487 echo "${ECHO_T}$ac_header_compiler" >&6
3489 # Is the header present?
3490 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3491 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3492 cat >conftest.$ac_ext <<_ACEOF
3493 #line $LINENO "configure"
3494 #include "confdefs.h"
3495 #include <minix/config.h>
3496 _ACEOF
3497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } >/dev/null; then
3505 if test -s conftest.err; then
3506 ac_cpp_err=$ac_c_preproc_warn_flag
3507 else
3508 ac_cpp_err=
3510 else
3511 ac_cpp_err=yes
3513 if test -z "$ac_cpp_err"; then
3514 ac_header_preproc=yes
3515 else
3516 echo "$as_me: failed program was:" >&5
3517 cat conftest.$ac_ext >&5
3518 ac_header_preproc=no
3520 rm -f conftest.err conftest.$ac_ext
3521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3522 echo "${ECHO_T}$ac_header_preproc" >&6
3524 # So? What about this header?
3525 case $ac_header_compiler:$ac_header_preproc in
3526 yes:no )
3527 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3528 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3529 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3530 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3531 no:yes )
3532 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3533 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3534 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3535 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3536 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3537 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3538 esac
3539 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3540 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3541 if test "${ac_cv_header_minix_config_h+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544 ac_cv_header_minix_config_h=$ac_header_preproc
3546 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3547 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3550 if test $ac_cv_header_minix_config_h = yes; then
3551 MINIX=yes
3552 else
3553 MINIX=
3557 if test "$MINIX" = yes; then
3559 cat >>confdefs.h <<\_ACEOF
3560 #define _POSIX_SOURCE 1
3561 _ACEOF
3564 cat >>confdefs.h <<\_ACEOF
3565 #define _POSIX_1_SOURCE 2
3566 _ACEOF
3569 cat >>confdefs.h <<\_ACEOF
3570 #define _MINIX 1
3571 _ACEOF
3576 # Enable gettext, in "external" mode.
3580 MKINSTALLDIRS=
3581 if test -n "$ac_aux_dir"; then
3582 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3584 if test -z "$MKINSTALLDIRS"; then
3585 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3592 # Extract the first word of "msgfmt", so it can be a program name with args.
3593 set dummy msgfmt; ac_word=$2
3594 echo "$as_me:$LINENO: checking for $ac_word" >&5
3595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3596 if test "${ac_cv_path_MSGFMT+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599 case "$MSGFMT" in
3601 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3605 for ac_dir in $PATH; do
3606 test -z "$ac_dir" && ac_dir=.
3607 if test -f $ac_dir/$ac_word; then
3608 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3609 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3610 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3611 break
3614 done
3615 IFS="$ac_save_ifs"
3616 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3618 esac
3620 MSGFMT="$ac_cv_path_MSGFMT"
3621 if test "$MSGFMT" != ":"; then
3622 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3623 echo "${ECHO_T}$MSGFMT" >&6
3624 else
3625 echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3629 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3630 set dummy gmsgfmt; ac_word=$2
3631 echo "$as_me:$LINENO: checking for $ac_word" >&5
3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3633 if test "${ac_cv_path_GMSGFMT+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636 case $GMSGFMT in
3637 [\\/]* | ?:[\\/]*)
3638 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3652 done
3653 done
3655 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3657 esac
3659 GMSGFMT=$ac_cv_path_GMSGFMT
3661 if test -n "$GMSGFMT"; then
3662 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3663 echo "${ECHO_T}$GMSGFMT" >&6
3664 else
3665 echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6
3670 # Extract the first word of "xgettext", so it can be a program name with args.
3671 set dummy xgettext; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_path_XGETTEXT+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 case "$XGETTEXT" in
3679 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3683 for ac_dir in $PATH; do
3684 test -z "$ac_dir" && ac_dir=.
3685 if test -f $ac_dir/$ac_word; then
3686 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3687 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3688 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3689 break
3692 done
3693 IFS="$ac_save_ifs"
3694 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3696 esac
3698 XGETTEXT="$ac_cv_path_XGETTEXT"
3699 if test "$XGETTEXT" != ":"; then
3700 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3701 echo "${ECHO_T}$XGETTEXT" >&6
3702 else
3703 echo "$as_me:$LINENO: result: no" >&5
3704 echo "${ECHO_T}no" >&6
3707 rm -f messages.po
3709 # Extract the first word of "msgmerge", so it can be a program name with args.
3710 set dummy msgmerge; ac_word=$2
3711 echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713 if test "${ac_cv_path_MSGMERGE+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716 case "$MSGMERGE" in
3718 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3722 for ac_dir in $PATH; do
3723 test -z "$ac_dir" && ac_dir=.
3724 if test -f $ac_dir/$ac_word; then
3725 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3726 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
3727 break
3730 done
3731 IFS="$ac_save_ifs"
3732 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3734 esac
3736 MSGMERGE="$ac_cv_path_MSGMERGE"
3737 if test "$MSGMERGE" != ":"; then
3738 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3739 echo "${ECHO_T}$MSGMERGE" >&6
3740 else
3741 echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6
3746 if test "$GMSGFMT" != ":"; then
3747 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3748 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3750 else
3751 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3752 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3753 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3754 GMSGFMT=":"
3758 if test "$XGETTEXT" != ":"; then
3759 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3760 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3762 else
3763 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3764 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3765 XGETTEXT=":"
3767 rm -f messages.po
3770 ac_config_commands="$ac_config_commands default-1"
3774 if test "X$prefix" = "XNONE"; then
3775 acl_final_prefix="$ac_default_prefix"
3776 else
3777 acl_final_prefix="$prefix"
3779 if test "X$exec_prefix" = "XNONE"; then
3780 acl_final_exec_prefix='${prefix}'
3781 else
3782 acl_final_exec_prefix="$exec_prefix"
3784 acl_save_prefix="$prefix"
3785 prefix="$acl_final_prefix"
3786 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3787 prefix="$acl_save_prefix"
3790 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3791 if test "${with_gnu_ld+set}" = set; then
3792 withval="$with_gnu_ld"
3793 test "$withval" = no || with_gnu_ld=yes
3794 else
3795 with_gnu_ld=no
3797 ac_prog=ld
3798 if test "$GCC" = yes; then
3799 # Check if gcc -print-prog-name=ld gives a path.
3800 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3801 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3802 case $host in
3803 *-*-mingw*)
3804 # gcc leaves a trailing carriage return which upsets mingw
3805 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3807 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3808 esac
3809 case $ac_prog in
3810 # Accept absolute paths.
3811 [\\/]* | [A-Za-z]:[\\/]*)
3812 re_direlt='/[^/][^/]*/\.\./'
3813 # Canonicalize the path of ld
3814 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3815 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3816 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3817 done
3818 test -z "$LD" && LD="$ac_prog"
3821 # If it fails, then pretend we aren't using GCC.
3822 ac_prog=ld
3825 # If it is relative, then search for the first ld in PATH.
3826 with_gnu_ld=unknown
3828 esac
3829 elif test "$with_gnu_ld" = yes; then
3830 echo "$as_me:$LINENO: checking for GNU ld" >&5
3831 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3832 else
3833 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3834 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3836 if test "${acl_cv_path_LD+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839 if test -z "$LD"; then
3840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3841 for ac_dir in $PATH; do
3842 test -z "$ac_dir" && ac_dir=.
3843 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3844 acl_cv_path_LD="$ac_dir/$ac_prog"
3845 # Check to see if the program is GNU ld. I'd rather use --version,
3846 # but apparently some GNU ld's only accept -v.
3847 # Break only if it was the GNU/non-GNU ld that we prefer.
3848 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3849 test "$with_gnu_ld" != no && break
3850 else
3851 test "$with_gnu_ld" != yes && break
3854 done
3855 IFS="$ac_save_ifs"
3856 else
3857 acl_cv_path_LD="$LD" # Let the user override the test with a path.
3861 LD="$acl_cv_path_LD"
3862 if test -n "$LD"; then
3863 echo "$as_me:$LINENO: result: $LD" >&5
3864 echo "${ECHO_T}$LD" >&6
3865 else
3866 echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6
3869 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3870 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3871 { (exit 1); exit 1; }; }
3872 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3873 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3874 if test "${acl_cv_prog_gnu_ld+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3878 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3879 acl_cv_prog_gnu_ld=yes
3880 else
3881 acl_cv_prog_gnu_ld=no
3884 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3885 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
3886 with_gnu_ld=$acl_cv_prog_gnu_ld
3890 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
3891 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
3892 if test "${acl_cv_rpath+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3896 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3897 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3898 . ./conftest.sh
3899 rm -f ./conftest.sh
3900 acl_cv_rpath=done
3903 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3904 echo "${ECHO_T}$acl_cv_rpath" >&6
3905 wl="$acl_cv_wl"
3906 libext="$acl_cv_libext"
3907 shlibext="$acl_cv_shlibext"
3908 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3909 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3910 hardcode_direct="$acl_cv_hardcode_direct"
3911 hardcode_minus_L="$acl_cv_hardcode_minus_L"
3912 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
3913 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
3914 # Check whether --enable-rpath or --disable-rpath was given.
3915 if test "${enable_rpath+set}" = set; then
3916 enableval="$enable_rpath"
3918 else
3919 enable_rpath=yes
3928 use_additional=yes
3930 acl_save_prefix="$prefix"
3931 prefix="$acl_final_prefix"
3932 acl_save_exec_prefix="$exec_prefix"
3933 exec_prefix="$acl_final_exec_prefix"
3935 eval additional_includedir=\"$includedir\"
3936 eval additional_libdir=\"$libdir\"
3938 exec_prefix="$acl_save_exec_prefix"
3939 prefix="$acl_save_prefix"
3942 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3943 if test "${with_libiconv_prefix+set}" = set; then
3944 withval="$with_libiconv_prefix"
3946 if test "X$withval" = "Xno"; then
3947 use_additional=no
3948 else
3949 if test "X$withval" = "X"; then
3951 acl_save_prefix="$prefix"
3952 prefix="$acl_final_prefix"
3953 acl_save_exec_prefix="$exec_prefix"
3954 exec_prefix="$acl_final_exec_prefix"
3956 eval additional_includedir=\"$includedir\"
3957 eval additional_libdir=\"$libdir\"
3959 exec_prefix="$acl_save_exec_prefix"
3960 prefix="$acl_save_prefix"
3962 else
3963 additional_includedir="$withval/include"
3964 additional_libdir="$withval/lib"
3969 LIBICONV=
3970 LTLIBICONV=
3971 INCICONV=
3972 rpathdirs=
3973 ltrpathdirs=
3974 names_already_handled=
3975 names_next_round='iconv '
3976 while test -n "$names_next_round"; do
3977 names_this_round="$names_next_round"
3978 names_next_round=
3979 for name in $names_this_round; do
3980 already_handled=
3981 for n in $names_already_handled; do
3982 if test "$n" = "$name"; then
3983 already_handled=yes
3984 break
3986 done
3987 if test -z "$already_handled"; then
3988 names_already_handled="$names_already_handled $name"
3989 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3990 eval value=\"\$HAVE_LIB$uppername\"
3991 if test -n "$value"; then
3992 if test "$value" = yes; then
3993 eval value=\"\$LIB$uppername\"
3994 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3995 eval value=\"\$LTLIB$uppername\"
3996 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3997 else
4000 else
4001 found_dir=
4002 found_la=
4003 found_so=
4004 found_a=
4005 if test $use_additional = yes; then
4006 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4007 found_dir="$additional_libdir"
4008 found_so="$additional_libdir/lib$name.$shlibext"
4009 if test -f "$additional_libdir/lib$name.la"; then
4010 found_la="$additional_libdir/lib$name.la"
4012 else
4013 if test -f "$additional_libdir/lib$name.$libext"; then
4014 found_dir="$additional_libdir"
4015 found_a="$additional_libdir/lib$name.$libext"
4016 if test -f "$additional_libdir/lib$name.la"; then
4017 found_la="$additional_libdir/lib$name.la"
4022 if test "X$found_dir" = "X"; then
4023 for x in $LDFLAGS $LTLIBICONV; do
4025 acl_save_prefix="$prefix"
4026 prefix="$acl_final_prefix"
4027 acl_save_exec_prefix="$exec_prefix"
4028 exec_prefix="$acl_final_exec_prefix"
4029 eval x=\"$x\"
4030 exec_prefix="$acl_save_exec_prefix"
4031 prefix="$acl_save_prefix"
4033 case "$x" in
4034 -L*)
4035 dir=`echo "X$x" | sed -e 's/^X-L//'`
4036 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4037 found_dir="$dir"
4038 found_so="$dir/lib$name.$shlibext"
4039 if test -f "$dir/lib$name.la"; then
4040 found_la="$dir/lib$name.la"
4042 else
4043 if test -f "$dir/lib$name.$libext"; then
4044 found_dir="$dir"
4045 found_a="$dir/lib$name.$libext"
4046 if test -f "$dir/lib$name.la"; then
4047 found_la="$dir/lib$name.la"
4052 esac
4053 if test "X$found_dir" != "X"; then
4054 break
4056 done
4058 if test "X$found_dir" != "X"; then
4059 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4060 if test "X$found_so" != "X"; then
4061 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4062 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4063 else
4064 haveit=
4065 for x in $ltrpathdirs; do
4066 if test "X$x" = "X$found_dir"; then
4067 haveit=yes
4068 break
4070 done
4071 if test -z "$haveit"; then
4072 ltrpathdirs="$ltrpathdirs $found_dir"
4074 if test "$hardcode_direct" = yes; then
4075 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4076 else
4077 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4078 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4079 haveit=
4080 for x in $rpathdirs; do
4081 if test "X$x" = "X$found_dir"; then
4082 haveit=yes
4083 break
4085 done
4086 if test -z "$haveit"; then
4087 rpathdirs="$rpathdirs $found_dir"
4089 else
4090 haveit=
4091 for x in $LDFLAGS $LIBICONV; do
4093 acl_save_prefix="$prefix"
4094 prefix="$acl_final_prefix"
4095 acl_save_exec_prefix="$exec_prefix"
4096 exec_prefix="$acl_final_exec_prefix"
4097 eval x=\"$x\"
4098 exec_prefix="$acl_save_exec_prefix"
4099 prefix="$acl_save_prefix"
4101 if test "X$x" = "X-L$found_dir"; then
4102 haveit=yes
4103 break
4105 done
4106 if test -z "$haveit"; then
4107 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4109 if test "$hardcode_minus_L" != no; then
4110 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4111 else
4112 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4117 else
4118 if test "X$found_a" != "X"; then
4119 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4120 else
4121 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4124 additional_includedir=
4125 case "$found_dir" in
4126 */lib | */lib/)
4127 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4128 additional_includedir="$basedir/include"
4130 esac
4131 if test "X$additional_includedir" != "X"; then
4132 if test "X$additional_includedir" != "X/usr/include"; then
4133 haveit=
4134 if test "X$additional_includedir" = "X/usr/local/include"; then
4135 if test -n "$GCC"; then
4136 case $host_os in
4137 linux*) haveit=yes;;
4138 esac
4141 if test -z "$haveit"; then
4142 for x in $CPPFLAGS $INCICONV; do
4144 acl_save_prefix="$prefix"
4145 prefix="$acl_final_prefix"
4146 acl_save_exec_prefix="$exec_prefix"
4147 exec_prefix="$acl_final_exec_prefix"
4148 eval x=\"$x\"
4149 exec_prefix="$acl_save_exec_prefix"
4150 prefix="$acl_save_prefix"
4152 if test "X$x" = "X-I$additional_includedir"; then
4153 haveit=yes
4154 break
4156 done
4157 if test -z "$haveit"; then
4158 if test -d "$additional_includedir"; then
4159 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4165 if test -n "$found_la"; then
4166 save_libdir="$libdir"
4167 case "$found_la" in
4168 */* | *\\*) . "$found_la" ;;
4169 *) . "./$found_la" ;;
4170 esac
4171 libdir="$save_libdir"
4172 for dep in $dependency_libs; do
4173 case "$dep" in
4174 -L*)
4175 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4176 if test "X$additional_libdir" != "X/usr/lib"; then
4177 haveit=
4178 if test "X$additional_libdir" = "X/usr/local/lib"; then
4179 if test -n "$GCC"; then
4180 case $host_os in
4181 linux*) haveit=yes;;
4182 esac
4185 if test -z "$haveit"; then
4186 haveit=
4187 for x in $LDFLAGS $LIBICONV; do
4189 acl_save_prefix="$prefix"
4190 prefix="$acl_final_prefix"
4191 acl_save_exec_prefix="$exec_prefix"
4192 exec_prefix="$acl_final_exec_prefix"
4193 eval x=\"$x\"
4194 exec_prefix="$acl_save_exec_prefix"
4195 prefix="$acl_save_prefix"
4197 if test "X$x" = "X-L$additional_libdir"; then
4198 haveit=yes
4199 break
4201 done
4202 if test -z "$haveit"; then
4203 if test -d "$additional_libdir"; then
4204 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4207 haveit=
4208 for x in $LDFLAGS $LTLIBICONV; do
4210 acl_save_prefix="$prefix"
4211 prefix="$acl_final_prefix"
4212 acl_save_exec_prefix="$exec_prefix"
4213 exec_prefix="$acl_final_exec_prefix"
4214 eval x=\"$x\"
4215 exec_prefix="$acl_save_exec_prefix"
4216 prefix="$acl_save_prefix"
4218 if test "X$x" = "X-L$additional_libdir"; then
4219 haveit=yes
4220 break
4222 done
4223 if test -z "$haveit"; then
4224 if test -d "$additional_libdir"; then
4225 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4231 -R*)
4232 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4233 if test "$enable_rpath" != no; then
4234 haveit=
4235 for x in $rpathdirs; do
4236 if test "X$x" = "X$dir"; then
4237 haveit=yes
4238 break
4240 done
4241 if test -z "$haveit"; then
4242 rpathdirs="$rpathdirs $dir"
4244 haveit=
4245 for x in $ltrpathdirs; do
4246 if test "X$x" = "X$dir"; then
4247 haveit=yes
4248 break
4250 done
4251 if test -z "$haveit"; then
4252 ltrpathdirs="$ltrpathdirs $dir"
4256 -l*)
4257 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4259 *.la)
4260 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4263 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4264 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4266 esac
4267 done
4269 else
4270 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4271 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4275 done
4276 done
4277 if test "X$rpathdirs" != "X"; then
4278 if test -n "$hardcode_libdir_separator"; then
4279 alldirs=
4280 for found_dir in $rpathdirs; do
4281 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4282 done
4283 acl_save_libdir="$libdir"
4284 libdir="$alldirs"
4285 eval flag=\"$hardcode_libdir_flag_spec\"
4286 libdir="$acl_save_libdir"
4287 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4288 else
4289 for found_dir in $rpathdirs; do
4290 acl_save_libdir="$libdir"
4291 libdir="$found_dir"
4292 eval flag=\"$hardcode_libdir_flag_spec\"
4293 libdir="$acl_save_libdir"
4294 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4295 done
4298 if test "X$ltrpathdirs" != "X"; then
4299 for found_dir in $ltrpathdirs; do
4300 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4301 done
4320 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4321 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4322 # Check whether --enable-nls or --disable-nls was given.
4323 if test "${enable_nls+set}" = set; then
4324 enableval="$enable_nls"
4325 USE_NLS=$enableval
4326 else
4327 USE_NLS=yes
4329 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4330 echo "${ECHO_T}$USE_NLS" >&6
4334 LIBINTL=
4335 LTLIBINTL=
4336 POSUB=
4338 if test "$USE_NLS" = "yes"; then
4339 gt_use_preinstalled_gnugettext=no
4346 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4347 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
4348 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351 cat >conftest.$ac_ext <<_ACEOF
4352 #line $LINENO "configure"
4353 #include "confdefs.h"
4354 #include <libintl.h>
4355 extern int _nl_msg_cat_cntr;
4356 extern int *_nl_domain_bindings;
4358 main ()
4360 bindtextdomain ("", "");
4361 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
4363 return 0;
4365 _ACEOF
4366 rm -f conftest.$ac_objext conftest$ac_exeext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4368 (eval $ac_link) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -s conftest$ac_exeext'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 (eval $ac_try) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 gt_cv_func_gnugettext1_libc=yes
4379 else
4380 echo "$as_me: failed program was:" >&5
4381 cat conftest.$ac_ext >&5
4382 gt_cv_func_gnugettext1_libc=no
4384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4386 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
4387 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
4389 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4395 am_save_CPPFLAGS="$CPPFLAGS"
4397 for element in $INCICONV; do
4398 haveit=
4399 for x in $CPPFLAGS; do
4401 acl_save_prefix="$prefix"
4402 prefix="$acl_final_prefix"
4403 acl_save_exec_prefix="$exec_prefix"
4404 exec_prefix="$acl_final_exec_prefix"
4405 eval x=\"$x\"
4406 exec_prefix="$acl_save_exec_prefix"
4407 prefix="$acl_save_prefix"
4409 if test "X$x" = "X$element"; then
4410 haveit=yes
4411 break
4413 done
4414 if test -z "$haveit"; then
4415 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4417 done
4420 echo "$as_me:$LINENO: checking for iconv" >&5
4421 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
4422 if test "${am_cv_func_iconv+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4426 am_cv_func_iconv="no, consider installing GNU libiconv"
4427 am_cv_lib_iconv=no
4428 cat >conftest.$ac_ext <<_ACEOF
4429 #line $LINENO "configure"
4430 #include "confdefs.h"
4431 #include <stdlib.h>
4432 #include <iconv.h>
4434 main ()
4436 iconv_t cd = iconv_open("","");
4437 iconv(cd,NULL,NULL,NULL,NULL);
4438 iconv_close(cd);
4440 return 0;
4442 _ACEOF
4443 rm -f conftest.$ac_objext conftest$ac_exeext
4444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4445 (eval $ac_link) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } &&
4449 { ac_try='test -s conftest$ac_exeext'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 (eval $ac_try) 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; }; then
4455 am_cv_func_iconv=yes
4456 else
4457 echo "$as_me: failed program was:" >&5
4458 cat conftest.$ac_ext >&5
4460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4461 if test "$am_cv_func_iconv" != yes; then
4462 am_save_LIBS="$LIBS"
4463 LIBS="$LIBS $LIBICONV"
4464 cat >conftest.$ac_ext <<_ACEOF
4465 #line $LINENO "configure"
4466 #include "confdefs.h"
4467 #include <stdlib.h>
4468 #include <iconv.h>
4470 main ()
4472 iconv_t cd = iconv_open("","");
4473 iconv(cd,NULL,NULL,NULL,NULL);
4474 iconv_close(cd);
4476 return 0;
4478 _ACEOF
4479 rm -f conftest.$ac_objext conftest$ac_exeext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4481 (eval $ac_link) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } &&
4485 { ac_try='test -s conftest$ac_exeext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 am_cv_lib_iconv=yes
4492 am_cv_func_iconv=yes
4493 else
4494 echo "$as_me: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4498 LIBS="$am_save_LIBS"
4502 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4503 echo "${ECHO_T}$am_cv_func_iconv" >&6
4504 if test "$am_cv_func_iconv" = yes; then
4506 cat >>confdefs.h <<\_ACEOF
4507 #define HAVE_ICONV 1
4508 _ACEOF
4511 if test "$am_cv_lib_iconv" = yes; then
4512 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4513 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
4514 echo "$as_me:$LINENO: result: $LIBICONV" >&5
4515 echo "${ECHO_T}$LIBICONV" >&6
4516 else
4517 CPPFLAGS="$am_save_CPPFLAGS"
4518 LIBICONV=
4519 LTLIBICONV=
4527 use_additional=yes
4529 acl_save_prefix="$prefix"
4530 prefix="$acl_final_prefix"
4531 acl_save_exec_prefix="$exec_prefix"
4532 exec_prefix="$acl_final_exec_prefix"
4534 eval additional_includedir=\"$includedir\"
4535 eval additional_libdir=\"$libdir\"
4537 exec_prefix="$acl_save_exec_prefix"
4538 prefix="$acl_save_prefix"
4541 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
4542 if test "${with_libintl_prefix+set}" = set; then
4543 withval="$with_libintl_prefix"
4545 if test "X$withval" = "Xno"; then
4546 use_additional=no
4547 else
4548 if test "X$withval" = "X"; then
4550 acl_save_prefix="$prefix"
4551 prefix="$acl_final_prefix"
4552 acl_save_exec_prefix="$exec_prefix"
4553 exec_prefix="$acl_final_exec_prefix"
4555 eval additional_includedir=\"$includedir\"
4556 eval additional_libdir=\"$libdir\"
4558 exec_prefix="$acl_save_exec_prefix"
4559 prefix="$acl_save_prefix"
4561 else
4562 additional_includedir="$withval/include"
4563 additional_libdir="$withval/lib"
4568 LIBINTL=
4569 LTLIBINTL=
4570 INCINTL=
4571 rpathdirs=
4572 ltrpathdirs=
4573 names_already_handled=
4574 names_next_round='intl '
4575 while test -n "$names_next_round"; do
4576 names_this_round="$names_next_round"
4577 names_next_round=
4578 for name in $names_this_round; do
4579 already_handled=
4580 for n in $names_already_handled; do
4581 if test "$n" = "$name"; then
4582 already_handled=yes
4583 break
4585 done
4586 if test -z "$already_handled"; then
4587 names_already_handled="$names_already_handled $name"
4588 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4589 eval value=\"\$HAVE_LIB$uppername\"
4590 if test -n "$value"; then
4591 if test "$value" = yes; then
4592 eval value=\"\$LIB$uppername\"
4593 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4594 eval value=\"\$LTLIB$uppername\"
4595 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4596 else
4599 else
4600 found_dir=
4601 found_la=
4602 found_so=
4603 found_a=
4604 if test $use_additional = yes; then
4605 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4606 found_dir="$additional_libdir"
4607 found_so="$additional_libdir/lib$name.$shlibext"
4608 if test -f "$additional_libdir/lib$name.la"; then
4609 found_la="$additional_libdir/lib$name.la"
4611 else
4612 if test -f "$additional_libdir/lib$name.$libext"; then
4613 found_dir="$additional_libdir"
4614 found_a="$additional_libdir/lib$name.$libext"
4615 if test -f "$additional_libdir/lib$name.la"; then
4616 found_la="$additional_libdir/lib$name.la"
4621 if test "X$found_dir" = "X"; then
4622 for x in $LDFLAGS $LTLIBINTL; do
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 eval x=\"$x\"
4629 exec_prefix="$acl_save_exec_prefix"
4630 prefix="$acl_save_prefix"
4632 case "$x" in
4633 -L*)
4634 dir=`echo "X$x" | sed -e 's/^X-L//'`
4635 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4636 found_dir="$dir"
4637 found_so="$dir/lib$name.$shlibext"
4638 if test -f "$dir/lib$name.la"; then
4639 found_la="$dir/lib$name.la"
4641 else
4642 if test -f "$dir/lib$name.$libext"; then
4643 found_dir="$dir"
4644 found_a="$dir/lib$name.$libext"
4645 if test -f "$dir/lib$name.la"; then
4646 found_la="$dir/lib$name.la"
4651 esac
4652 if test "X$found_dir" != "X"; then
4653 break
4655 done
4657 if test "X$found_dir" != "X"; then
4658 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4659 if test "X$found_so" != "X"; then
4660 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4661 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4662 else
4663 haveit=
4664 for x in $ltrpathdirs; do
4665 if test "X$x" = "X$found_dir"; then
4666 haveit=yes
4667 break
4669 done
4670 if test -z "$haveit"; then
4671 ltrpathdirs="$ltrpathdirs $found_dir"
4673 if test "$hardcode_direct" = yes; then
4674 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4675 else
4676 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4677 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4678 haveit=
4679 for x in $rpathdirs; do
4680 if test "X$x" = "X$found_dir"; then
4681 haveit=yes
4682 break
4684 done
4685 if test -z "$haveit"; then
4686 rpathdirs="$rpathdirs $found_dir"
4688 else
4689 haveit=
4690 for x in $LDFLAGS $LIBINTL; do
4692 acl_save_prefix="$prefix"
4693 prefix="$acl_final_prefix"
4694 acl_save_exec_prefix="$exec_prefix"
4695 exec_prefix="$acl_final_exec_prefix"
4696 eval x=\"$x\"
4697 exec_prefix="$acl_save_exec_prefix"
4698 prefix="$acl_save_prefix"
4700 if test "X$x" = "X-L$found_dir"; then
4701 haveit=yes
4702 break
4704 done
4705 if test -z "$haveit"; then
4706 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4708 if test "$hardcode_minus_L" != no; then
4709 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4710 else
4711 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4716 else
4717 if test "X$found_a" != "X"; then
4718 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4719 else
4720 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4723 additional_includedir=
4724 case "$found_dir" in
4725 */lib | */lib/)
4726 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4727 additional_includedir="$basedir/include"
4729 esac
4730 if test "X$additional_includedir" != "X"; then
4731 if test "X$additional_includedir" != "X/usr/include"; then
4732 haveit=
4733 if test "X$additional_includedir" = "X/usr/local/include"; then
4734 if test -n "$GCC"; then
4735 case $host_os in
4736 linux*) haveit=yes;;
4737 esac
4740 if test -z "$haveit"; then
4741 for x in $CPPFLAGS $INCINTL; do
4743 acl_save_prefix="$prefix"
4744 prefix="$acl_final_prefix"
4745 acl_save_exec_prefix="$exec_prefix"
4746 exec_prefix="$acl_final_exec_prefix"
4747 eval x=\"$x\"
4748 exec_prefix="$acl_save_exec_prefix"
4749 prefix="$acl_save_prefix"
4751 if test "X$x" = "X-I$additional_includedir"; then
4752 haveit=yes
4753 break
4755 done
4756 if test -z "$haveit"; then
4757 if test -d "$additional_includedir"; then
4758 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4764 if test -n "$found_la"; then
4765 save_libdir="$libdir"
4766 case "$found_la" in
4767 */* | *\\*) . "$found_la" ;;
4768 *) . "./$found_la" ;;
4769 esac
4770 libdir="$save_libdir"
4771 for dep in $dependency_libs; do
4772 case "$dep" in
4773 -L*)
4774 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4775 if test "X$additional_libdir" != "X/usr/lib"; then
4776 haveit=
4777 if test "X$additional_libdir" = "X/usr/local/lib"; then
4778 if test -n "$GCC"; then
4779 case $host_os in
4780 linux*) haveit=yes;;
4781 esac
4784 if test -z "$haveit"; then
4785 haveit=
4786 for x in $LDFLAGS $LIBINTL; do
4788 acl_save_prefix="$prefix"
4789 prefix="$acl_final_prefix"
4790 acl_save_exec_prefix="$exec_prefix"
4791 exec_prefix="$acl_final_exec_prefix"
4792 eval x=\"$x\"
4793 exec_prefix="$acl_save_exec_prefix"
4794 prefix="$acl_save_prefix"
4796 if test "X$x" = "X-L$additional_libdir"; then
4797 haveit=yes
4798 break
4800 done
4801 if test -z "$haveit"; then
4802 if test -d "$additional_libdir"; then
4803 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4806 haveit=
4807 for x in $LDFLAGS $LTLIBINTL; do
4809 acl_save_prefix="$prefix"
4810 prefix="$acl_final_prefix"
4811 acl_save_exec_prefix="$exec_prefix"
4812 exec_prefix="$acl_final_exec_prefix"
4813 eval x=\"$x\"
4814 exec_prefix="$acl_save_exec_prefix"
4815 prefix="$acl_save_prefix"
4817 if test "X$x" = "X-L$additional_libdir"; then
4818 haveit=yes
4819 break
4821 done
4822 if test -z "$haveit"; then
4823 if test -d "$additional_libdir"; then
4824 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4830 -R*)
4831 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4832 if test "$enable_rpath" != no; then
4833 haveit=
4834 for x in $rpathdirs; do
4835 if test "X$x" = "X$dir"; then
4836 haveit=yes
4837 break
4839 done
4840 if test -z "$haveit"; then
4841 rpathdirs="$rpathdirs $dir"
4843 haveit=
4844 for x in $ltrpathdirs; do
4845 if test "X$x" = "X$dir"; then
4846 haveit=yes
4847 break
4849 done
4850 if test -z "$haveit"; then
4851 ltrpathdirs="$ltrpathdirs $dir"
4855 -l*)
4856 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4858 *.la)
4859 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4862 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4863 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4865 esac
4866 done
4868 else
4869 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4870 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4874 done
4875 done
4876 if test "X$rpathdirs" != "X"; then
4877 if test -n "$hardcode_libdir_separator"; then
4878 alldirs=
4879 for found_dir in $rpathdirs; do
4880 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4881 done
4882 acl_save_libdir="$libdir"
4883 libdir="$alldirs"
4884 eval flag=\"$hardcode_libdir_flag_spec\"
4885 libdir="$acl_save_libdir"
4886 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4887 else
4888 for found_dir in $rpathdirs; do
4889 acl_save_libdir="$libdir"
4890 libdir="$found_dir"
4891 eval flag=\"$hardcode_libdir_flag_spec\"
4892 libdir="$acl_save_libdir"
4893 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4894 done
4897 if test "X$ltrpathdirs" != "X"; then
4898 for found_dir in $ltrpathdirs; do
4899 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4900 done
4903 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
4904 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
4905 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 gt_save_CPPFLAGS="$CPPFLAGS"
4909 CPPFLAGS="$CPPFLAGS $INCINTL"
4910 gt_save_LIBS="$LIBS"
4911 LIBS="$LIBS $LIBINTL"
4912 cat >conftest.$ac_ext <<_ACEOF
4913 #line $LINENO "configure"
4914 #include "confdefs.h"
4915 #include <libintl.h>
4916 extern int _nl_msg_cat_cntr;
4917 extern
4918 #ifdef __cplusplus
4920 #endif
4921 const char *_nl_expand_alias ();
4923 main ()
4925 bindtextdomain ("", "");
4926 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4928 return 0;
4930 _ACEOF
4931 rm -f conftest.$ac_objext conftest$ac_exeext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4933 (eval $ac_link) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } &&
4937 { ac_try='test -s conftest$ac_exeext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 (eval $ac_try) 2>&5
4940 ac_status=$?
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4943 gt_cv_func_gnugettext1_libintl=yes
4944 else
4945 echo "$as_me: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4947 gt_cv_func_gnugettext1_libintl=no
4949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4950 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
4951 LIBS="$LIBS $LIBICONV"
4952 cat >conftest.$ac_ext <<_ACEOF
4953 #line $LINENO "configure"
4954 #include "confdefs.h"
4955 #include <libintl.h>
4956 extern int _nl_msg_cat_cntr;
4957 extern
4958 #ifdef __cplusplus
4960 #endif
4961 const char *_nl_expand_alias ();
4963 main ()
4965 bindtextdomain ("", "");
4966 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4968 return 0;
4970 _ACEOF
4971 rm -f conftest.$ac_objext conftest$ac_exeext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4973 (eval $ac_link) 2>&5
4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try='test -s conftest$ac_exeext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 (eval $ac_try) 2>&5
4980 ac_status=$?
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 LIBINTL="$LIBINTL $LIBICONV"
4984 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
4985 gt_cv_func_gnugettext1_libintl=yes
4987 else
4988 echo "$as_me: failed program was:" >&5
4989 cat conftest.$ac_ext >&5
4991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4993 CPPFLAGS="$gt_save_CPPFLAGS"
4994 LIBS="$gt_save_LIBS"
4996 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
4997 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
5000 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5001 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5002 && test "$PACKAGE" != gettext; }; then
5003 gt_use_preinstalled_gnugettext=yes
5004 else
5005 LIBINTL=
5006 LTLIBINTL=
5007 INCINTL=
5012 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5013 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5015 cat >>confdefs.h <<\_ACEOF
5016 #define ENABLE_NLS 1
5017 _ACEOF
5019 else
5020 USE_NLS=no
5024 if test "$USE_NLS" = "yes"; then
5026 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5027 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5028 echo "$as_me:$LINENO: checking how to link with libintl" >&5
5029 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
5030 echo "$as_me:$LINENO: result: $LIBINTL" >&5
5031 echo "${ECHO_T}$LIBINTL" >&6
5033 for element in $INCINTL; do
5034 haveit=
5035 for x in $CPPFLAGS; do
5037 acl_save_prefix="$prefix"
5038 prefix="$acl_final_prefix"
5039 acl_save_exec_prefix="$exec_prefix"
5040 exec_prefix="$acl_final_exec_prefix"
5041 eval x=\"$x\"
5042 exec_prefix="$acl_save_exec_prefix"
5043 prefix="$acl_save_prefix"
5045 if test "X$x" = "X$element"; then
5046 haveit=yes
5047 break
5049 done
5050 if test -z "$haveit"; then
5051 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053 done
5058 cat >>confdefs.h <<\_ACEOF
5059 #define HAVE_GETTEXT 1
5060 _ACEOF
5063 cat >>confdefs.h <<\_ACEOF
5064 #define HAVE_DCGETTEXT 1
5065 _ACEOF
5069 POSUB=po
5074 INTLLIBS="$LIBINTL"
5082 # This test must come as early as possible after the compiler configuration
5083 # tests, because the choice of the file model can (in principle) affect
5084 # whether functions and headers are available, whether they work, etc.
5085 # Check whether --enable-largefile or --disable-largefile was given.
5086 if test "${enable_largefile+set}" = set; then
5087 enableval="$enable_largefile"
5090 if test "$enable_largefile" != no; then
5092 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5093 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
5094 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097 ac_cv_sys_largefile_CC=no
5098 if test "$GCC" != yes; then
5099 ac_save_CC=$CC
5100 while :; do
5101 # IRIX 6.2 and later do not support large files by default,
5102 # so use the C compiler's -n32 option if that helps.
5103 cat >conftest.$ac_ext <<_ACEOF
5104 #line $LINENO "configure"
5105 #include "confdefs.h"
5106 #include <sys/types.h>
5107 /* Check that off_t can represent 2**63 - 1 correctly.
5108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5109 since some C++ compilers masquerading as C compilers
5110 incorrectly reject 9223372036854775807. */
5111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5113 && LARGE_OFF_T % 2147483647 == 1)
5114 ? 1 : -1];
5116 main ()
5120 return 0;
5122 _ACEOF
5123 rm -f conftest.$ac_objext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5125 (eval $ac_compile) 2>&5
5126 ac_status=$?
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
5129 { ac_try='test -s conftest.$ac_objext'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; }; then
5135 break
5136 else
5137 echo "$as_me: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5140 rm -f conftest.$ac_objext
5141 CC="$CC -n32"
5142 rm -f conftest.$ac_objext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5144 (eval $ac_compile) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } &&
5148 { ac_try='test -s conftest.$ac_objext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 (eval $ac_try) 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 ac_cv_sys_largefile_CC=' -n32'; break
5155 else
5156 echo "$as_me: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5159 rm -f conftest.$ac_objext
5160 break
5161 done
5162 CC=$ac_save_CC
5163 rm -f conftest.$ac_ext
5166 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5167 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5168 if test "$ac_cv_sys_largefile_CC" != no; then
5169 CC=$CC$ac_cv_sys_largefile_CC
5172 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5173 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5174 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177 while :; do
5178 ac_cv_sys_file_offset_bits=no
5179 cat >conftest.$ac_ext <<_ACEOF
5180 #line $LINENO "configure"
5181 #include "confdefs.h"
5182 #include <sys/types.h>
5183 /* Check that off_t can represent 2**63 - 1 correctly.
5184 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5185 since some C++ compilers masquerading as C compilers
5186 incorrectly reject 9223372036854775807. */
5187 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5188 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5189 && LARGE_OFF_T % 2147483647 == 1)
5190 ? 1 : -1];
5192 main ()
5196 return 0;
5198 _ACEOF
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201 (eval $ac_compile) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } &&
5205 { ac_try='test -s conftest.$ac_objext'
5206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 (eval $ac_try) 2>&5
5208 ac_status=$?
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; }; then
5211 break
5212 else
5213 echo "$as_me: failed program was:" >&5
5214 cat conftest.$ac_ext >&5
5216 rm -f conftest.$ac_objext conftest.$ac_ext
5217 cat >conftest.$ac_ext <<_ACEOF
5218 #line $LINENO "configure"
5219 #include "confdefs.h"
5220 #define _FILE_OFFSET_BITS 64
5221 #include <sys/types.h>
5222 /* Check that off_t can represent 2**63 - 1 correctly.
5223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5224 since some C++ compilers masquerading as C compilers
5225 incorrectly reject 9223372036854775807. */
5226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5228 && LARGE_OFF_T % 2147483647 == 1)
5229 ? 1 : -1];
5231 main ()
5235 return 0;
5237 _ACEOF
5238 rm -f conftest.$ac_objext
5239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5240 (eval $ac_compile) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -s conftest.$ac_objext'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5250 ac_cv_sys_file_offset_bits=64; break
5251 else
5252 echo "$as_me: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5255 rm -f conftest.$ac_objext conftest.$ac_ext
5256 break
5257 done
5259 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5260 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5261 if test "$ac_cv_sys_file_offset_bits" != no; then
5263 cat >>confdefs.h <<_ACEOF
5264 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5265 _ACEOF
5268 rm -f conftest*
5269 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5270 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5271 if test "${ac_cv_sys_large_files+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274 while :; do
5275 ac_cv_sys_large_files=no
5276 cat >conftest.$ac_ext <<_ACEOF
5277 #line $LINENO "configure"
5278 #include "confdefs.h"
5279 #include <sys/types.h>
5280 /* Check that off_t can represent 2**63 - 1 correctly.
5281 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5282 since some C++ compilers masquerading as C compilers
5283 incorrectly reject 9223372036854775807. */
5284 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5286 && LARGE_OFF_T % 2147483647 == 1)
5287 ? 1 : -1];
5289 main ()
5293 return 0;
5295 _ACEOF
5296 rm -f conftest.$ac_objext
5297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5298 (eval $ac_compile) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } &&
5302 { ac_try='test -s conftest.$ac_objext'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 (eval $ac_try) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; }; then
5308 break
5309 else
5310 echo "$as_me: failed program was:" >&5
5311 cat conftest.$ac_ext >&5
5313 rm -f conftest.$ac_objext conftest.$ac_ext
5314 cat >conftest.$ac_ext <<_ACEOF
5315 #line $LINENO "configure"
5316 #include "confdefs.h"
5317 #define _LARGE_FILES 1
5318 #include <sys/types.h>
5319 /* Check that off_t can represent 2**63 - 1 correctly.
5320 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5321 since some C++ compilers masquerading as C compilers
5322 incorrectly reject 9223372036854775807. */
5323 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5325 && LARGE_OFF_T % 2147483647 == 1)
5326 ? 1 : -1];
5328 main ()
5332 return 0;
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337 (eval $ac_compile) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -s conftest.$ac_objext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 (eval $ac_try) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 ac_cv_sys_large_files=1; break
5348 else
5349 echo "$as_me: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5352 rm -f conftest.$ac_objext conftest.$ac_ext
5353 break
5354 done
5356 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5357 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5358 if test "$ac_cv_sys_large_files" != no; then
5360 cat >>confdefs.h <<_ACEOF
5361 #define _LARGE_FILES $ac_cv_sys_large_files
5362 _ACEOF
5365 rm -f conftest*
5369 # Checks for libraries.
5370 echo "$as_me:$LINENO: checking for library containing getpwnam" >&5
5371 echo $ECHO_N "checking for library containing getpwnam... $ECHO_C" >&6
5372 if test "${ac_cv_search_getpwnam+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375 ac_func_search_save_LIBS=$LIBS
5376 ac_cv_search_getpwnam=no
5377 cat >conftest.$ac_ext <<_ACEOF
5378 #line $LINENO "configure"
5379 #include "confdefs.h"
5381 /* Override any gcc2 internal prototype to avoid an error. */
5382 #ifdef __cplusplus
5383 extern "C"
5384 #endif
5385 /* We use char because int might match the return type of a gcc2
5386 builtin and then its argument prototype would still apply. */
5387 char getpwnam ();
5389 main ()
5391 getpwnam ();
5393 return 0;
5395 _ACEOF
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398 (eval $ac_link) 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -s conftest$ac_exeext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 (eval $ac_try) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_cv_search_getpwnam="none required"
5409 else
5410 echo "$as_me: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5414 if test "$ac_cv_search_getpwnam" = no; then
5415 for ac_lib in sun; do
5416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5417 cat >conftest.$ac_ext <<_ACEOF
5418 #line $LINENO "configure"
5419 #include "confdefs.h"
5421 /* Override any gcc2 internal prototype to avoid an error. */
5422 #ifdef __cplusplus
5423 extern "C"
5424 #endif
5425 /* We use char because int might match the return type of a gcc2
5426 builtin and then its argument prototype would still apply. */
5427 char getpwnam ();
5429 main ()
5431 getpwnam ();
5433 return 0;
5435 _ACEOF
5436 rm -f conftest.$ac_objext conftest$ac_exeext
5437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5438 (eval $ac_link) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -s conftest$ac_exeext'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 (eval $ac_try) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5448 ac_cv_search_getpwnam="-l$ac_lib"
5449 break
5450 else
5451 echo "$as_me: failed program was:" >&5
5452 cat conftest.$ac_ext >&5
5454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5455 done
5457 LIBS=$ac_func_search_save_LIBS
5459 echo "$as_me:$LINENO: result: $ac_cv_search_getpwnam" >&5
5460 echo "${ECHO_T}$ac_cv_search_getpwnam" >&6
5461 if test "$ac_cv_search_getpwnam" != no; then
5462 test "$ac_cv_search_getpwnam" = "none required" || LIBS="$ac_cv_search_getpwnam $LIBS"
5467 # Checks for header files.
5468 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5469 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5470 if test "${ac_cv_header_stdc+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5475 #include "confdefs.h"
5476 #include <stdlib.h>
5477 #include <stdarg.h>
5478 #include <string.h>
5479 #include <float.h>
5481 _ACEOF
5482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } >/dev/null; then
5490 if test -s conftest.err; then
5491 ac_cpp_err=$ac_c_preproc_warn_flag
5492 else
5493 ac_cpp_err=
5495 else
5496 ac_cpp_err=yes
5498 if test -z "$ac_cpp_err"; then
5499 ac_cv_header_stdc=yes
5500 else
5501 echo "$as_me: failed program was:" >&5
5502 cat conftest.$ac_ext >&5
5503 ac_cv_header_stdc=no
5505 rm -f conftest.err conftest.$ac_ext
5507 if test $ac_cv_header_stdc = yes; then
5508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5509 cat >conftest.$ac_ext <<_ACEOF
5510 #line $LINENO "configure"
5511 #include "confdefs.h"
5512 #include <string.h>
5514 _ACEOF
5515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5516 $EGREP "memchr" >/dev/null 2>&1; then
5518 else
5519 ac_cv_header_stdc=no
5521 rm -f conftest*
5525 if test $ac_cv_header_stdc = yes; then
5526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5527 cat >conftest.$ac_ext <<_ACEOF
5528 #line $LINENO "configure"
5529 #include "confdefs.h"
5530 #include <stdlib.h>
5532 _ACEOF
5533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5534 $EGREP "free" >/dev/null 2>&1; then
5536 else
5537 ac_cv_header_stdc=no
5539 rm -f conftest*
5543 if test $ac_cv_header_stdc = yes; then
5544 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5545 if test "$cross_compiling" = yes; then
5547 else
5548 cat >conftest.$ac_ext <<_ACEOF
5549 #line $LINENO "configure"
5550 #include "confdefs.h"
5551 #include <ctype.h>
5552 #if ((' ' & 0x0FF) == 0x020)
5553 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5554 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5555 #else
5556 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5557 || ('j' <= (c) && (c) <= 'r') \
5558 || ('s' <= (c) && (c) <= 'z'))
5559 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5560 #endif
5562 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5564 main ()
5566 int i;
5567 for (i = 0; i < 256; i++)
5568 if (XOR (islower (i), ISLOWER (i))
5569 || toupper (i) != TOUPPER (i))
5570 exit(2);
5571 exit (0);
5573 _ACEOF
5574 rm -f conftest$ac_exeext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5576 (eval $ac_link) 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5586 else
5587 echo "$as_me: program exited with status $ac_status" >&5
5588 echo "$as_me: failed program was:" >&5
5589 cat conftest.$ac_ext >&5
5590 ( exit $ac_status )
5591 ac_cv_header_stdc=no
5593 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5597 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5598 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5599 if test $ac_cv_header_stdc = yes; then
5601 cat >>confdefs.h <<\_ACEOF
5602 #define STDC_HEADERS 1
5603 _ACEOF
5612 ac_header_dirent=no
5613 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5614 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5615 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5616 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 else
5620 cat >conftest.$ac_ext <<_ACEOF
5621 #line $LINENO "configure"
5622 #include "confdefs.h"
5623 #include <sys/types.h>
5624 #include <$ac_hdr>
5627 main ()
5629 if ((DIR *) 0)
5630 return 0;
5632 return 0;
5634 _ACEOF
5635 rm -f conftest.$ac_objext
5636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637 (eval $ac_compile) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try='test -s conftest.$ac_objext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5647 eval "$as_ac_Header=yes"
5648 else
5649 echo "$as_me: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5651 eval "$as_ac_Header=no"
5653 rm -f conftest.$ac_objext conftest.$ac_ext
5655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5658 cat >>confdefs.h <<_ACEOF
5659 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5660 _ACEOF
5662 ac_header_dirent=$ac_hdr; break
5665 done
5666 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5667 if test $ac_header_dirent = dirent.h; then
5668 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5669 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5670 if test "${ac_cv_search_opendir+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673 ac_func_search_save_LIBS=$LIBS
5674 ac_cv_search_opendir=no
5675 cat >conftest.$ac_ext <<_ACEOF
5676 #line $LINENO "configure"
5677 #include "confdefs.h"
5679 /* Override any gcc2 internal prototype to avoid an error. */
5680 #ifdef __cplusplus
5681 extern "C"
5682 #endif
5683 /* We use char because int might match the return type of a gcc2
5684 builtin and then its argument prototype would still apply. */
5685 char opendir ();
5687 main ()
5689 opendir ();
5691 return 0;
5693 _ACEOF
5694 rm -f conftest.$ac_objext conftest$ac_exeext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5696 (eval $ac_link) 2>&5
5697 ac_status=$?
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } &&
5700 { ac_try='test -s conftest$ac_exeext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 ac_cv_search_opendir="none required"
5707 else
5708 echo "$as_me: failed program was:" >&5
5709 cat conftest.$ac_ext >&5
5711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5712 if test "$ac_cv_search_opendir" = no; then
5713 for ac_lib in dir; do
5714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5715 cat >conftest.$ac_ext <<_ACEOF
5716 #line $LINENO "configure"
5717 #include "confdefs.h"
5719 /* Override any gcc2 internal prototype to avoid an error. */
5720 #ifdef __cplusplus
5721 extern "C"
5722 #endif
5723 /* We use char because int might match the return type of a gcc2
5724 builtin and then its argument prototype would still apply. */
5725 char opendir ();
5727 main ()
5729 opendir ();
5731 return 0;
5733 _ACEOF
5734 rm -f conftest.$ac_objext conftest$ac_exeext
5735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5736 (eval $ac_link) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5746 ac_cv_search_opendir="-l$ac_lib"
5747 break
5748 else
5749 echo "$as_me: failed program was:" >&5
5750 cat conftest.$ac_ext >&5
5752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5753 done
5755 LIBS=$ac_func_search_save_LIBS
5757 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5758 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5759 if test "$ac_cv_search_opendir" != no; then
5760 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5764 else
5765 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5766 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5767 if test "${ac_cv_search_opendir+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770 ac_func_search_save_LIBS=$LIBS
5771 ac_cv_search_opendir=no
5772 cat >conftest.$ac_ext <<_ACEOF
5773 #line $LINENO "configure"
5774 #include "confdefs.h"
5776 /* Override any gcc2 internal prototype to avoid an error. */
5777 #ifdef __cplusplus
5778 extern "C"
5779 #endif
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5782 char opendir ();
5784 main ()
5786 opendir ();
5788 return 0;
5790 _ACEOF
5791 rm -f conftest.$ac_objext conftest$ac_exeext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5793 (eval $ac_link) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try='test -s conftest$ac_exeext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 ac_cv_search_opendir="none required"
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5809 if test "$ac_cv_search_opendir" = no; then
5810 for ac_lib in x; do
5811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5812 cat >conftest.$ac_ext <<_ACEOF
5813 #line $LINENO "configure"
5814 #include "confdefs.h"
5816 /* Override any gcc2 internal prototype to avoid an error. */
5817 #ifdef __cplusplus
5818 extern "C"
5819 #endif
5820 /* We use char because int might match the return type of a gcc2
5821 builtin and then its argument prototype would still apply. */
5822 char opendir ();
5824 main ()
5826 opendir ();
5828 return 0;
5830 _ACEOF
5831 rm -f conftest.$ac_objext conftest$ac_exeext
5832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5833 (eval $ac_link) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -s conftest$ac_exeext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 (eval $ac_try) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 ac_cv_search_opendir="-l$ac_lib"
5844 break
5845 else
5846 echo "$as_me: failed program was:" >&5
5847 cat conftest.$ac_ext >&5
5849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5850 done
5852 LIBS=$ac_func_search_save_LIBS
5854 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5855 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5856 if test "$ac_cv_search_opendir" != no; then
5857 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5863 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5864 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5865 if test "${ac_cv_header_stat_broken+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868 cat >conftest.$ac_ext <<_ACEOF
5869 #line $LINENO "configure"
5870 #include "confdefs.h"
5871 #include <sys/types.h>
5872 #include <sys/stat.h>
5874 #if defined(S_ISBLK) && defined(S_IFDIR)
5875 # if S_ISBLK (S_IFDIR)
5876 You lose.
5877 # endif
5878 #endif
5880 #if defined(S_ISBLK) && defined(S_IFCHR)
5881 # if S_ISBLK (S_IFCHR)
5882 You lose.
5883 # endif
5884 #endif
5886 #if defined(S_ISLNK) && defined(S_IFREG)
5887 # if S_ISLNK (S_IFREG)
5888 You lose.
5889 # endif
5890 #endif
5892 #if defined(S_ISSOCK) && defined(S_IFREG)
5893 # if S_ISSOCK (S_IFREG)
5894 You lose.
5895 # endif
5896 #endif
5898 _ACEOF
5899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5900 $EGREP "You lose" >/dev/null 2>&1; then
5901 ac_cv_header_stat_broken=yes
5902 else
5903 ac_cv_header_stat_broken=no
5905 rm -f conftest*
5908 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5909 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5910 if test $ac_cv_header_stat_broken = yes; then
5912 cat >>confdefs.h <<\_ACEOF
5913 #define STAT_MACROS_BROKEN 1
5914 _ACEOF
5918 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5919 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5920 if test "${ac_cv_header_time+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923 cat >conftest.$ac_ext <<_ACEOF
5924 #line $LINENO "configure"
5925 #include "confdefs.h"
5926 #include <sys/types.h>
5927 #include <sys/time.h>
5928 #include <time.h>
5931 main ()
5933 if ((struct tm *) 0)
5934 return 0;
5936 return 0;
5938 _ACEOF
5939 rm -f conftest.$ac_objext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941 (eval $ac_compile) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_cv_header_time=yes
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 cat conftest.$ac_ext >&5
5955 ac_cv_header_time=no
5957 rm -f conftest.$ac_objext conftest.$ac_ext
5959 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5960 echo "${ECHO_T}$ac_cv_header_time" >&6
5961 if test $ac_cv_header_time = yes; then
5963 cat >>confdefs.h <<\_ACEOF
5964 #define TIME_WITH_SYS_TIME 1
5965 _ACEOF
5979 for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
5980 memory.h sys/param.h sys/time.h sys/timeb.h
5982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5984 echo "$as_me:$LINENO: checking for $ac_header" >&5
5985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5991 else
5992 # Is the header compilable?
5993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5995 cat >conftest.$ac_ext <<_ACEOF
5996 #line $LINENO "configure"
5997 #include "confdefs.h"
5998 $ac_includes_default
5999 #include <$ac_header>
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -s conftest.$ac_objext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 ac_header_compiler=yes
6014 else
6015 echo "$as_me: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6017 ac_header_compiler=no
6019 rm -f conftest.$ac_objext conftest.$ac_ext
6020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6021 echo "${ECHO_T}$ac_header_compiler" >&6
6023 # Is the header present?
6024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6026 cat >conftest.$ac_ext <<_ACEOF
6027 #line $LINENO "configure"
6028 #include "confdefs.h"
6029 #include <$ac_header>
6030 _ACEOF
6031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } >/dev/null; then
6039 if test -s conftest.err; then
6040 ac_cpp_err=$ac_c_preproc_warn_flag
6041 else
6042 ac_cpp_err=
6044 else
6045 ac_cpp_err=yes
6047 if test -z "$ac_cpp_err"; then
6048 ac_header_preproc=yes
6049 else
6050 echo "$as_me: failed program was:" >&5
6051 cat conftest.$ac_ext >&5
6052 ac_header_preproc=no
6054 rm -f conftest.err conftest.$ac_ext
6055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6056 echo "${ECHO_T}$ac_header_preproc" >&6
6058 # So? What about this header?
6059 case $ac_header_compiler:$ac_header_preproc in
6060 yes:no )
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6065 no:yes )
6066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6072 esac
6073 echo "$as_me:$LINENO: checking for $ac_header" >&5
6074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078 eval "$as_ac_Header=$ac_header_preproc"
6080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6085 cat >>confdefs.h <<_ACEOF
6086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6087 _ACEOF
6091 done
6094 if test "x$CC" != xcc; then
6095 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6096 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6097 else
6098 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6099 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6101 set dummy $CC; ac_cc=`echo $2 |
6102 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6103 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106 cat >conftest.$ac_ext <<_ACEOF
6107 #line $LINENO "configure"
6108 #include "confdefs.h"
6111 main ()
6115 return 0;
6117 _ACEOF
6118 # Make sure it works both with $CC and with simple cc.
6119 # We do the test twice because some compilers refuse to overwrite an
6120 # existing .o file with -o, though they will create one.
6121 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6122 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); };
6132 then
6133 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6134 if test "x$CC" != xcc; then
6135 # Test first that cc exists at all.
6136 if { ac_try='cc -c conftest.$ac_ext >&5'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6143 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 (eval $ac_try) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); };
6153 then
6154 # cc works too.
6156 else
6157 # cc exists but doesn't like -o.
6158 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6162 else
6163 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6165 rm -f conftest*
6168 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6169 echo "$as_me:$LINENO: result: yes" >&5
6170 echo "${ECHO_T}yes" >&6
6171 else
6172 echo "$as_me:$LINENO: result: no" >&5
6173 echo "${ECHO_T}no" >&6
6175 cat >>confdefs.h <<\_ACEOF
6176 #define NO_MINUS_C_MINUS_O 1
6177 _ACEOF
6181 # FIXME: we rely on the cache variable name because
6182 # there is no other way.
6183 set dummy $CC
6184 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6185 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6186 # Losing compiler, so override with the script.
6187 # FIXME: It is wrong to rewrite CC.
6188 # But if we don't then we get into trouble of one sort or another.
6189 # A longer-term fix would be to have automake use am__CC in this case,
6190 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6191 CC="$am_aux_dir/compile $CC"
6197 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
6198 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
6199 if test "${am_cv_prog_cc_stdc+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 am_cv_prog_cc_stdc=no
6203 ac_save_CC="$CC"
6204 # Don't try gcc -ansi; that turns off useful extensions and
6205 # breaks some systems' header files.
6206 # AIX -qlanglvl=ansi
6207 # Ultrix and OSF/1 -std1
6208 # HP-UX 10.20 and later -Ae
6209 # HP-UX older versions -Aa -D_HPUX_SOURCE
6210 # SVR4 -Xc -D__EXTENSIONS__
6211 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6213 CC="$ac_save_CC $ac_arg"
6214 cat >conftest.$ac_ext <<_ACEOF
6215 #line $LINENO "configure"
6216 #include "confdefs.h"
6217 #include <stdarg.h>
6218 #include <stdio.h>
6219 #include <sys/types.h>
6220 #include <sys/stat.h>
6221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6222 struct buf { int x; };
6223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6224 static char *e (p, i)
6225 char **p;
6226 int i;
6228 return p[i];
6230 static char *f (char * (*g) (char **, int), char **p, ...)
6232 char *s;
6233 va_list v;
6234 va_start (v,p);
6235 s = g (p, va_arg (v,int));
6236 va_end (v);
6237 return s;
6239 int test (int i, double x);
6240 struct s1 {int (*f) (int a);};
6241 struct s2 {int (*f) (double a);};
6242 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6243 int argc;
6244 char **argv;
6247 main ()
6250 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6253 return 0;
6255 _ACEOF
6256 rm -f conftest.$ac_objext
6257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6258 (eval $ac_compile) 2>&5
6259 ac_status=$?
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
6262 { ac_try='test -s conftest.$ac_objext'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 (eval $ac_try) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 am_cv_prog_cc_stdc="$ac_arg"; break
6269 else
6270 echo "$as_me: failed program was:" >&5
6271 cat conftest.$ac_ext >&5
6273 rm -f conftest.$ac_objext conftest.$ac_ext
6274 done
6275 CC="$ac_save_CC"
6279 if test -z "$am_cv_prog_cc_stdc"; then
6280 echo "$as_me:$LINENO: result: none needed" >&5
6281 echo "${ECHO_T}none needed" >&6
6282 else
6283 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
6284 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
6286 case "x$am_cv_prog_cc_stdc" in
6287 x|xno) ;;
6288 *) CC="$CC $am_cv_prog_cc_stdc" ;;
6289 esac
6291 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6292 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6293 if test "${ac_cv_c_const+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296 cat >conftest.$ac_ext <<_ACEOF
6297 #line $LINENO "configure"
6298 #include "confdefs.h"
6301 main ()
6303 /* FIXME: Include the comments suggested by Paul. */
6304 #ifndef __cplusplus
6305 /* Ultrix mips cc rejects this. */
6306 typedef int charset[2];
6307 const charset x;
6308 /* SunOS 4.1.1 cc rejects this. */
6309 char const *const *ccp;
6310 char **p;
6311 /* NEC SVR4.0.2 mips cc rejects this. */
6312 struct point {int x, y;};
6313 static struct point const zero = {0,0};
6314 /* AIX XL C 1.02.0.0 rejects this.
6315 It does not let you subtract one const X* pointer from another in
6316 an arm of an if-expression whose if-part is not a constant
6317 expression */
6318 const char *g = "string";
6319 ccp = &g + (g ? g-g : 0);
6320 /* HPUX 7.0 cc rejects these. */
6321 ++ccp;
6322 p = (char**) ccp;
6323 ccp = (char const *const *) p;
6324 { /* SCO 3.2v4 cc rejects this. */
6325 char *t;
6326 char const *s = 0 ? (char *) 0 : (char const *) 0;
6328 *t++ = 0;
6330 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6331 int x[] = {25, 17};
6332 const int *foo = &x[0];
6333 ++foo;
6335 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6336 typedef const int *iptr;
6337 iptr p = 0;
6338 ++p;
6340 { /* AIX XL C 1.02.0.0 rejects this saying
6341 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6342 struct s { int j; const int *ap[3]; };
6343 struct s *b; b->j = 5;
6345 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6346 const int foo = 10;
6348 #endif
6351 return 0;
6353 _ACEOF
6354 rm -f conftest.$ac_objext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try='test -s conftest.$ac_objext'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 (eval $ac_try) 2>&5
6363 ac_status=$?
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6366 ac_cv_c_const=yes
6367 else
6368 echo "$as_me: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6370 ac_cv_c_const=no
6372 rm -f conftest.$ac_objext conftest.$ac_ext
6374 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6375 echo "${ECHO_T}$ac_cv_c_const" >&6
6376 if test $ac_cv_c_const = no; then
6378 cat >>confdefs.h <<\_ACEOF
6379 #define const
6380 _ACEOF
6384 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6385 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6386 if test "${ac_cv_type_signal+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389 cat >conftest.$ac_ext <<_ACEOF
6390 #line $LINENO "configure"
6391 #include "confdefs.h"
6392 #include <sys/types.h>
6393 #include <signal.h>
6394 #ifdef signal
6395 # undef signal
6396 #endif
6397 #ifdef __cplusplus
6398 extern "C" void (*signal (int, void (*)(int)))(int);
6399 #else
6400 void (*signal ()) ();
6401 #endif
6404 main ()
6406 int i;
6408 return 0;
6410 _ACEOF
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -s conftest.$ac_objext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 ac_cv_type_signal=void
6424 else
6425 echo "$as_me: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6427 ac_cv_type_signal=int
6429 rm -f conftest.$ac_objext conftest.$ac_ext
6431 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6432 echo "${ECHO_T}$ac_cv_type_signal" >&6
6434 cat >>confdefs.h <<_ACEOF
6435 #define RETSIGTYPE $ac_cv_type_signal
6436 _ACEOF
6439 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6440 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6441 if test "${ac_cv_type_uid_t+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444 cat >conftest.$ac_ext <<_ACEOF
6445 #line $LINENO "configure"
6446 #include "confdefs.h"
6447 #include <sys/types.h>
6449 _ACEOF
6450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6451 $EGREP "uid_t" >/dev/null 2>&1; then
6452 ac_cv_type_uid_t=yes
6453 else
6454 ac_cv_type_uid_t=no
6456 rm -f conftest*
6459 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6460 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6461 if test $ac_cv_type_uid_t = no; then
6463 cat >>confdefs.h <<\_ACEOF
6464 #define uid_t int
6465 _ACEOF
6468 cat >>confdefs.h <<\_ACEOF
6469 #define gid_t int
6470 _ACEOF
6474 echo "$as_me:$LINENO: checking for pid_t" >&5
6475 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6476 if test "${ac_cv_type_pid_t+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479 cat >conftest.$ac_ext <<_ACEOF
6480 #line $LINENO "configure"
6481 #include "confdefs.h"
6482 $ac_includes_default
6484 main ()
6486 if ((pid_t *) 0)
6487 return 0;
6488 if (sizeof (pid_t))
6489 return 0;
6491 return 0;
6493 _ACEOF
6494 rm -f conftest.$ac_objext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6496 (eval $ac_compile) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } &&
6500 { ac_try='test -s conftest.$ac_objext'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 (eval $ac_try) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; }; then
6506 ac_cv_type_pid_t=yes
6507 else
6508 echo "$as_me: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6510 ac_cv_type_pid_t=no
6512 rm -f conftest.$ac_objext conftest.$ac_ext
6514 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6515 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6516 if test $ac_cv_type_pid_t = yes; then
6518 else
6520 cat >>confdefs.h <<_ACEOF
6521 #define pid_t int
6522 _ACEOF
6527 # Find some definition for uintmax_t
6529 echo "$as_me:$LINENO: checking for uintmax_t" >&5
6530 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
6531 if test "${ac_cv_type_uintmax_t+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534 cat >conftest.$ac_ext <<_ACEOF
6535 #line $LINENO "configure"
6536 #include "confdefs.h"
6537 $ac_includes_default
6539 main ()
6541 if ((uintmax_t *) 0)
6542 return 0;
6543 if (sizeof (uintmax_t))
6544 return 0;
6546 return 0;
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551 (eval $ac_compile) 2>&5
6552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
6555 { ac_try='test -s conftest.$ac_objext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 (eval $ac_try) 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561 ac_cv_type_uintmax_t=yes
6562 else
6563 echo "$as_me: failed program was:" >&5
6564 cat conftest.$ac_ext >&5
6565 ac_cv_type_uintmax_t=no
6567 rm -f conftest.$ac_objext conftest.$ac_ext
6569 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
6570 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
6571 if test $ac_cv_type_uintmax_t = yes; then
6573 else
6575 uintmax_t="unsigned long"
6576 echo "$as_me:$LINENO: checking for unsigned long long" >&5
6577 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6578 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581 cat >conftest.$ac_ext <<_ACEOF
6582 #line $LINENO "configure"
6583 #include "confdefs.h"
6584 $ac_includes_default
6586 main ()
6588 if ((unsigned long long *) 0)
6589 return 0;
6590 if (sizeof (unsigned long long))
6591 return 0;
6593 return 0;
6595 _ACEOF
6596 rm -f conftest.$ac_objext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598 (eval $ac_compile) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 (eval $ac_try) 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_cv_type_unsigned_long_long=yes
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 cat conftest.$ac_ext >&5
6612 ac_cv_type_unsigned_long_long=no
6614 rm -f conftest.$ac_objext conftest.$ac_ext
6616 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6617 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6618 if test $ac_cv_type_unsigned_long_long = yes; then
6619 uintmax_t="unsigned long long"
6623 cat >>confdefs.h <<_ACEOF
6624 #define uintmax_t $uintmax_t
6625 _ACEOF
6630 # Find out whether our struct stat returns nanosecond resolution timestamps.
6632 echo "$as_me:$LINENO: checking for nanoseconds field of struct stat.st_mtim" >&5
6633 echo $ECHO_N "checking for nanoseconds field of struct stat.st_mtim... $ECHO_C" >&6
6634 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637 ac_save_CPPFLAGS="$CPPFLAGS"
6638 ac_cv_struct_st_mtim_nsec=no
6639 # tv_nsec -- the usual case
6640 # _tv_nsec -- Solaris 2.6, if
6641 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
6642 # && !defined __EXTENSIONS__)
6643 # st__tim.tv_nsec -- UnixWare 2.1.2
6644 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
6645 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
6646 cat >conftest.$ac_ext <<_ACEOF
6647 #line $LINENO "configure"
6648 #include "confdefs.h"
6649 #include <sys/types.h>
6650 #include <sys/stat.h>
6652 main ()
6654 struct stat s; s.st_mtim.ST_MTIM_NSEC;
6656 return 0;
6658 _ACEOF
6659 rm -f conftest.$ac_objext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6661 (eval $ac_compile) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } &&
6665 { ac_try='test -s conftest.$ac_objext'
6666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 (eval $ac_try) 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; }; then
6671 ac_cv_struct_st_mtim_nsec=$ac_val; break
6672 else
6673 echo "$as_me: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6676 rm -f conftest.$ac_objext conftest.$ac_ext
6677 done
6678 CPPFLAGS="$ac_save_CPPFLAGS"
6680 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
6681 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
6683 if test $ac_cv_struct_st_mtim_nsec != no; then
6685 cat >>confdefs.h <<_ACEOF
6686 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
6687 _ACEOF
6692 echo "$as_me:$LINENO: checking whether to use high resolution file timestamps" >&5
6693 echo $ECHO_N "checking whether to use high resolution file timestamps... $ECHO_C" >&6
6694 if test "${make_cv_file_timestamp_hi_res+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6698 make_cv_file_timestamp_hi_res=no
6699 if test "$ac_cv_struct_st_mtim_nsec" != no; then
6700 cat >conftest.$ac_ext <<_ACEOF
6701 #line $LINENO "configure"
6702 #include "confdefs.h"
6704 # if HAVE_INTTYPES_H
6705 # include <inttypes.h>
6706 # endif
6708 main ()
6710 char a[0x7fffffff < (uintmax_t) -1 >> 30 ? 1 : -1];
6712 return 0;
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717 (eval $ac_compile) 2>&5
6718 ac_status=$?
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try='test -s conftest.$ac_objext'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 (eval $ac_try) 2>&5
6724 ac_status=$?
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; }; then
6727 make_cv_file_timestamp_hi_res=yes
6728 else
6729 echo "$as_me: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6732 rm -f conftest.$ac_objext conftest.$ac_ext
6736 echo "$as_me:$LINENO: result: $make_cv_file_timestamp_hi_res" >&5
6737 echo "${ECHO_T}$make_cv_file_timestamp_hi_res" >&6
6738 if test "$make_cv_file_timestamp_hi_res" = yes; then
6739 val=1
6740 else
6741 val=0
6744 cat >>confdefs.h <<_ACEOF
6745 #define FILE_TIMESTAMP_HI_RES $val
6746 _ACEOF
6749 if test "$make_cv_file_timestamp_hi_res" = yes; then
6750 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
6751 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
6752 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
6753 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
6754 if test "${ac_cv_search_clock_gettime+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757 ac_func_search_save_LIBS=$LIBS
6758 ac_cv_search_clock_gettime=no
6759 cat >conftest.$ac_ext <<_ACEOF
6760 #line $LINENO "configure"
6761 #include "confdefs.h"
6763 /* Override any gcc2 internal prototype to avoid an error. */
6764 #ifdef __cplusplus
6765 extern "C"
6766 #endif
6767 /* We use char because int might match the return type of a gcc2
6768 builtin and then its argument prototype would still apply. */
6769 char clock_gettime ();
6771 main ()
6773 clock_gettime ();
6775 return 0;
6777 _ACEOF
6778 rm -f conftest.$ac_objext conftest$ac_exeext
6779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6780 (eval $ac_link) 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_clock_gettime="none required"
6791 else
6792 echo "$as_me: failed program was:" >&5
6793 cat conftest.$ac_ext >&5
6795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6796 if test "$ac_cv_search_clock_gettime" = no; then
6797 for ac_lib in rt posix4; do
6798 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6799 cat >conftest.$ac_ext <<_ACEOF
6800 #line $LINENO "configure"
6801 #include "confdefs.h"
6803 /* Override any gcc2 internal prototype to avoid an error. */
6804 #ifdef __cplusplus
6805 extern "C"
6806 #endif
6807 /* We use char because int might match the return type of a gcc2
6808 builtin and then its argument prototype would still apply. */
6809 char clock_gettime ();
6811 main ()
6813 clock_gettime ();
6815 return 0;
6817 _ACEOF
6818 rm -f conftest.$ac_objext conftest$ac_exeext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6820 (eval $ac_link) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try='test -s conftest$ac_exeext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 ac_cv_search_clock_gettime="-l$ac_lib"
6831 break
6832 else
6833 echo "$as_me: failed program was:" >&5
6834 cat conftest.$ac_ext >&5
6836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6837 done
6839 LIBS=$ac_func_search_save_LIBS
6841 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
6842 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
6843 if test "$ac_cv_search_clock_gettime" != no; then
6844 test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
6848 if test "$ac_cv_search_clock_gettime" != no; then
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_CLOCK_GETTIME 1
6852 _ACEOF
6858 # See if we have a standard version of gettimeofday(). Since actual
6859 # implementations can differ, just make sure we have the most common
6860 # one.
6861 echo "$as_me:$LINENO: checking for standard gettimeofday" >&5
6862 echo $ECHO_N "checking for standard gettimeofday... $ECHO_C" >&6
6863 if test "${ac_cv_func_gettimeofday+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866 ac_cv_func_gettimeofday=no
6867 if test "$cross_compiling" = yes; then
6868 ac_cv_func_gettimeofday="no (cross-compiling)"
6869 else
6870 cat >conftest.$ac_ext <<_ACEOF
6871 #line $LINENO "configure"
6872 #include "confdefs.h"
6873 #include <sys/time.h>
6874 int main ()
6876 struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
6877 exit (gettimeofday (&t, 0) != 0
6878 || t.tv_sec < 0 || t.tv_usec < 0);
6880 _ACEOF
6881 rm -f conftest$ac_exeext
6882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883 (eval $ac_link) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 (eval $ac_try) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6892 ac_cv_func_gettimeofday=yes
6893 else
6894 echo "$as_me: program exited with status $ac_status" >&5
6895 echo "$as_me: failed program was:" >&5
6896 cat conftest.$ac_ext >&5
6897 ( exit $ac_status )
6898 ac_cv_func_gettimeofday=no
6900 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6903 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
6904 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
6905 if test "$ac_cv_func_gettimeofday" = yes; then
6907 cat >>confdefs.h <<\_ACEOF
6908 #define HAVE_GETTIMEOFDAY 1
6909 _ACEOF
6935 for ac_func in memcpy memmove strchr strdup mkstemp mktemp fdopen \
6936 bsd_signal dup2 getcwd sigsetmask sigaction getgroups \
6937 seteuid setegid setlinebuf setreuid setregid setvbuf pipe \
6938 strerror strsignal
6940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6941 echo "$as_me:$LINENO: checking for $ac_func" >&5
6942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6943 if eval "test \"\${$as_ac_var+set}\" = set"; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946 cat >conftest.$ac_ext <<_ACEOF
6947 #line $LINENO "configure"
6948 #include "confdefs.h"
6949 /* System header to define __stub macros and hopefully few prototypes,
6950 which can conflict with char $ac_func (); below. */
6951 #include <assert.h>
6952 /* Override any gcc2 internal prototype to avoid an error. */
6953 #ifdef __cplusplus
6954 extern "C"
6955 #endif
6956 /* We use char because int might match the return type of a gcc2
6957 builtin and then its argument prototype would still apply. */
6958 char $ac_func ();
6959 char (*f) ();
6962 main ()
6964 /* The GNU C library defines this for functions which it implements
6965 to always fail with ENOSYS. Some functions are actually named
6966 something starting with __ and the normal name is an alias. */
6967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6968 choke me
6969 #else
6970 f = $ac_func;
6971 #endif
6974 return 0;
6976 _ACEOF
6977 rm -f conftest.$ac_objext conftest$ac_exeext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6979 (eval $ac_link) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } &&
6983 { ac_try='test -s conftest$ac_exeext'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
6989 eval "$as_ac_var=yes"
6990 else
6991 echo "$as_me: failed program was:" >&5
6992 cat conftest.$ac_ext >&5
6993 eval "$as_ac_var=no"
6995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6999 if test `eval echo '${'$as_ac_var'}'` = yes; then
7000 cat >>confdefs.h <<_ACEOF
7001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7002 _ACEOF
7005 done
7008 echo "$as_me:$LINENO: checking for function prototypes" >&5
7009 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7010 if test "$ac_cv_prog_cc_stdc" != no; then
7011 echo "$as_me:$LINENO: result: yes" >&5
7012 echo "${ECHO_T}yes" >&6
7014 cat >>confdefs.h <<\_ACEOF
7015 #define PROTOTYPES 1
7016 _ACEOF
7019 cat >>confdefs.h <<\_ACEOF
7020 #define __PROTOTYPES 1
7021 _ACEOF
7023 else
7024 echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6
7028 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
7029 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
7030 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033 ac_cv_func_setvbuf_reversed=no
7034 cat >conftest.$ac_ext <<_ACEOF
7035 #line $LINENO "configure"
7036 #include "confdefs.h"
7037 #include <stdio.h>
7038 # if PROTOTYPES
7039 int (setvbuf) (FILE *, int, char *, size_t);
7040 # endif
7042 main ()
7044 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
7046 return 0;
7048 _ACEOF
7049 rm -f conftest.$ac_objext conftest$ac_exeext
7050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7051 (eval $ac_link) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } &&
7055 { ac_try='test -s conftest$ac_exeext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 (eval $ac_try) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 cat >conftest.$ac_ext <<_ACEOF
7062 #line $LINENO "configure"
7063 #include "confdefs.h"
7064 #include <stdio.h>
7065 # if PROTOTYPES
7066 int (setvbuf) (FILE *, int, char *, size_t);
7067 # endif
7069 main ()
7071 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
7073 return 0;
7075 _ACEOF
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078 (eval $ac_link) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try='test -s conftest$ac_exeext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 # It compiles and links either way, so it must not be declared
7089 # with a prototype and most likely this is a K&R C compiler.
7090 # Try running it.
7091 if test "$cross_compiling" = yes; then
7092 : # Assume setvbuf is not reversed when cross-compiling.
7093 else
7094 cat >conftest.$ac_ext <<_ACEOF
7095 #line $LINENO "configure"
7096 #include "confdefs.h"
7097 #include <stdio.h>
7099 main ()
7101 /* This call has the arguments reversed.
7102 A reversed system may check and see that the address of buf
7103 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
7104 char buf;
7105 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
7106 exit (1);
7107 putchar ('\r');
7108 exit (0); /* Non-reversed systems SEGV here. */
7110 return 0;
7112 _ACEOF
7113 rm -f conftest$ac_exeext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7115 (eval $ac_link) 2>&5
7116 ac_status=$?
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 (eval $ac_try) 2>&5
7121 ac_status=$?
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; }; then
7124 ac_cv_func_setvbuf_reversed=yes
7125 else
7126 echo "$as_me: program exited with status $ac_status" >&5
7127 echo "$as_me: failed program was:" >&5
7128 cat conftest.$ac_ext >&5
7129 ( exit $ac_status )
7130 rm -f core core.* *.core
7132 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7134 ac_cv_func_setvbuf_reversed=yes
7135 else
7136 echo "$as_me: failed program was:" >&5
7137 cat conftest.$ac_ext >&5
7139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7140 else
7141 echo "$as_me: failed program was:" >&5
7142 cat conftest.$ac_ext >&5
7144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7146 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
7147 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
7148 if test $ac_cv_func_setvbuf_reversed = yes; then
7150 cat >>confdefs.h <<\_ACEOF
7151 #define SETVBUF_REVERSED 1
7152 _ACEOF
7157 # strcoll() is used by the GNU glob library
7158 echo "$as_me:$LINENO: checking for working strcoll" >&5
7159 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
7160 if test "${ac_cv_func_strcoll_works+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163 if test "$cross_compiling" = yes; then
7164 ac_cv_func_strcoll_works=no
7165 else
7166 cat >conftest.$ac_ext <<_ACEOF
7167 #line $LINENO "configure"
7168 #include "confdefs.h"
7169 $ac_includes_default
7171 main ()
7173 exit (strcoll ("abc", "def") >= 0 ||
7174 strcoll ("ABC", "DEF") >= 0 ||
7175 strcoll ("123", "456") >= 0)
7177 return 0;
7179 _ACEOF
7180 rm -f conftest$ac_exeext
7181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7182 (eval $ac_link) 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187 (eval $ac_try) 2>&5
7188 ac_status=$?
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 ac_cv_func_strcoll_works=yes
7192 else
7193 echo "$as_me: program exited with status $ac_status" >&5
7194 echo "$as_me: failed program was:" >&5
7195 cat conftest.$ac_ext >&5
7196 ( exit $ac_status )
7197 ac_cv_func_strcoll_works=no
7199 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7202 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
7203 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
7204 if test $ac_cv_func_strcoll_works = yes; then
7206 cat >>confdefs.h <<\_ACEOF
7207 #define HAVE_STRCOLL 1
7208 _ACEOF
7213 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7214 # for constant arguments. Useless!
7215 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7216 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7217 if test "${ac_cv_working_alloca_h+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220 cat >conftest.$ac_ext <<_ACEOF
7221 #line $LINENO "configure"
7222 #include "confdefs.h"
7223 #include <alloca.h>
7225 main ()
7227 char *p = (char *) alloca (2 * sizeof (int));
7229 return 0;
7231 _ACEOF
7232 rm -f conftest.$ac_objext conftest$ac_exeext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7234 (eval $ac_link) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } &&
7238 { ac_try='test -s conftest$ac_exeext'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 (eval $ac_try) 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; }; then
7244 ac_cv_working_alloca_h=yes
7245 else
7246 echo "$as_me: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7248 ac_cv_working_alloca_h=no
7250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7252 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7253 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7254 if test $ac_cv_working_alloca_h = yes; then
7256 cat >>confdefs.h <<\_ACEOF
7257 #define HAVE_ALLOCA_H 1
7258 _ACEOF
7262 echo "$as_me:$LINENO: checking for alloca" >&5
7263 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7264 if test "${ac_cv_func_alloca_works+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267 cat >conftest.$ac_ext <<_ACEOF
7268 #line $LINENO "configure"
7269 #include "confdefs.h"
7270 #ifdef __GNUC__
7271 # define alloca __builtin_alloca
7272 #else
7273 # ifdef _MSC_VER
7274 # include <malloc.h>
7275 # define alloca _alloca
7276 # else
7277 # if HAVE_ALLOCA_H
7278 # include <alloca.h>
7279 # else
7280 # ifdef _AIX
7281 #pragma alloca
7282 # else
7283 # ifndef alloca /* predefined by HP cc +Olibcalls */
7284 char *alloca ();
7285 # endif
7286 # endif
7287 # endif
7288 # endif
7289 #endif
7292 main ()
7294 char *p = (char *) alloca (1);
7296 return 0;
7298 _ACEOF
7299 rm -f conftest.$ac_objext conftest$ac_exeext
7300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7301 (eval $ac_link) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
7305 { ac_try='test -s conftest$ac_exeext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_cv_func_alloca_works=yes
7312 else
7313 echo "$as_me: failed program was:" >&5
7314 cat conftest.$ac_ext >&5
7315 ac_cv_func_alloca_works=no
7317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7319 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7320 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7322 if test $ac_cv_func_alloca_works = yes; then
7324 cat >>confdefs.h <<\_ACEOF
7325 #define HAVE_ALLOCA 1
7326 _ACEOF
7328 else
7329 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7330 # that cause trouble. Some versions do not even contain alloca or
7331 # contain a buggy version. If you still want to use their alloca,
7332 # use ar to extract alloca.o from them instead of compiling alloca.c.
7334 ALLOCA=alloca.$ac_objext
7336 cat >>confdefs.h <<\_ACEOF
7337 #define C_ALLOCA 1
7338 _ACEOF
7341 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7342 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7343 if test "${ac_cv_os_cray+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346 cat >conftest.$ac_ext <<_ACEOF
7347 #line $LINENO "configure"
7348 #include "confdefs.h"
7349 #if defined(CRAY) && ! defined(CRAY2)
7350 webecray
7351 #else
7352 wenotbecray
7353 #endif
7355 _ACEOF
7356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7357 $EGREP "webecray" >/dev/null 2>&1; then
7358 ac_cv_os_cray=yes
7359 else
7360 ac_cv_os_cray=no
7362 rm -f conftest*
7365 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7366 echo "${ECHO_T}$ac_cv_os_cray" >&6
7367 if test $ac_cv_os_cray = yes; then
7368 for ac_func in _getb67 GETB67 getb67; do
7369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7370 echo "$as_me:$LINENO: checking for $ac_func" >&5
7371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7372 if eval "test \"\${$as_ac_var+set}\" = set"; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375 cat >conftest.$ac_ext <<_ACEOF
7376 #line $LINENO "configure"
7377 #include "confdefs.h"
7378 /* System header to define __stub macros and hopefully few prototypes,
7379 which can conflict with char $ac_func (); below. */
7380 #include <assert.h>
7381 /* Override any gcc2 internal prototype to avoid an error. */
7382 #ifdef __cplusplus
7383 extern "C"
7384 #endif
7385 /* We use char because int might match the return type of a gcc2
7386 builtin and then its argument prototype would still apply. */
7387 char $ac_func ();
7388 char (*f) ();
7391 main ()
7393 /* The GNU C library defines this for functions which it implements
7394 to always fail with ENOSYS. Some functions are actually named
7395 something starting with __ and the normal name is an alias. */
7396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7397 choke me
7398 #else
7399 f = $ac_func;
7400 #endif
7403 return 0;
7405 _ACEOF
7406 rm -f conftest.$ac_objext conftest$ac_exeext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7408 (eval $ac_link) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } &&
7412 { ac_try='test -s conftest$ac_exeext'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 (eval $ac_try) 2>&5
7415 ac_status=$?
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; }; then
7418 eval "$as_ac_var=yes"
7419 else
7420 echo "$as_me: failed program was:" >&5
7421 cat conftest.$ac_ext >&5
7422 eval "$as_ac_var=no"
7424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7428 if test `eval echo '${'$as_ac_var'}'` = yes; then
7430 cat >>confdefs.h <<_ACEOF
7431 #define CRAY_STACKSEG_END $ac_func
7432 _ACEOF
7434 break
7437 done
7440 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7441 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7442 if test "${ac_cv_c_stack_direction+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445 if test "$cross_compiling" = yes; then
7446 ac_cv_c_stack_direction=0
7447 else
7448 cat >conftest.$ac_ext <<_ACEOF
7449 #line $LINENO "configure"
7450 #include "confdefs.h"
7452 find_stack_direction ()
7454 static char *addr = 0;
7455 auto char dummy;
7456 if (addr == 0)
7458 addr = &dummy;
7459 return find_stack_direction ();
7461 else
7462 return (&dummy > addr) ? 1 : -1;
7466 main ()
7468 exit (find_stack_direction () < 0);
7470 _ACEOF
7471 rm -f conftest$ac_exeext
7472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7473 (eval $ac_link) 2>&5
7474 ac_status=$?
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 ac_cv_c_stack_direction=1
7483 else
7484 echo "$as_me: program exited with status $ac_status" >&5
7485 echo "$as_me: failed program was:" >&5
7486 cat conftest.$ac_ext >&5
7487 ( exit $ac_status )
7488 ac_cv_c_stack_direction=-1
7490 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7493 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7494 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7496 cat >>confdefs.h <<_ACEOF
7497 #define STACK_DIRECTION $ac_cv_c_stack_direction
7498 _ACEOF
7505 for ac_header in unistd.h vfork.h
7507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509 echo "$as_me:$LINENO: checking for $ac_header" >&5
7510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7516 else
7517 # Is the header compilable?
7518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7520 cat >conftest.$ac_ext <<_ACEOF
7521 #line $LINENO "configure"
7522 #include "confdefs.h"
7523 $ac_includes_default
7524 #include <$ac_header>
7525 _ACEOF
7526 rm -f conftest.$ac_objext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528 (eval $ac_compile) 2>&5
7529 ac_status=$?
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -s conftest.$ac_objext'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 (eval $ac_try) 2>&5
7535 ac_status=$?
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; }; then
7538 ac_header_compiler=yes
7539 else
7540 echo "$as_me: failed program was:" >&5
7541 cat conftest.$ac_ext >&5
7542 ac_header_compiler=no
7544 rm -f conftest.$ac_objext conftest.$ac_ext
7545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7546 echo "${ECHO_T}$ac_header_compiler" >&6
7548 # Is the header present?
7549 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7551 cat >conftest.$ac_ext <<_ACEOF
7552 #line $LINENO "configure"
7553 #include "confdefs.h"
7554 #include <$ac_header>
7555 _ACEOF
7556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } >/dev/null; then
7564 if test -s conftest.err; then
7565 ac_cpp_err=$ac_c_preproc_warn_flag
7566 else
7567 ac_cpp_err=
7569 else
7570 ac_cpp_err=yes
7572 if test -z "$ac_cpp_err"; then
7573 ac_header_preproc=yes
7574 else
7575 echo "$as_me: failed program was:" >&5
7576 cat conftest.$ac_ext >&5
7577 ac_header_preproc=no
7579 rm -f conftest.err conftest.$ac_ext
7580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7581 echo "${ECHO_T}$ac_header_preproc" >&6
7583 # So? What about this header?
7584 case $ac_header_compiler:$ac_header_preproc in
7585 yes:no )
7586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7590 no:yes )
7591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7597 esac
7598 echo "$as_me:$LINENO: checking for $ac_header" >&5
7599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603 eval "$as_ac_Header=$ac_header_preproc"
7605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7610 cat >>confdefs.h <<_ACEOF
7611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7612 _ACEOF
7616 done
7620 for ac_func in fork vfork
7622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7623 echo "$as_me:$LINENO: checking for $ac_func" >&5
7624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7625 if eval "test \"\${$as_ac_var+set}\" = set"; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628 cat >conftest.$ac_ext <<_ACEOF
7629 #line $LINENO "configure"
7630 #include "confdefs.h"
7631 /* System header to define __stub macros and hopefully few prototypes,
7632 which can conflict with char $ac_func (); below. */
7633 #include <assert.h>
7634 /* Override any gcc2 internal prototype to avoid an error. */
7635 #ifdef __cplusplus
7636 extern "C"
7637 #endif
7638 /* We use char because int might match the return type of a gcc2
7639 builtin and then its argument prototype would still apply. */
7640 char $ac_func ();
7641 char (*f) ();
7644 main ()
7646 /* The GNU C library defines this for functions which it implements
7647 to always fail with ENOSYS. Some functions are actually named
7648 something starting with __ and the normal name is an alias. */
7649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7650 choke me
7651 #else
7652 f = $ac_func;
7653 #endif
7656 return 0;
7658 _ACEOF
7659 rm -f conftest.$ac_objext conftest$ac_exeext
7660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7661 (eval $ac_link) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -s conftest$ac_exeext'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 eval "$as_ac_var=yes"
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 cat conftest.$ac_ext >&5
7675 eval "$as_ac_var=no"
7677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7681 if test `eval echo '${'$as_ac_var'}'` = yes; then
7682 cat >>confdefs.h <<_ACEOF
7683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7684 _ACEOF
7687 done
7689 if test "x$ac_cv_func_fork" = xyes; then
7690 echo "$as_me:$LINENO: checking for working fork" >&5
7691 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7692 if test "${ac_cv_func_fork_works+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695 if test "$cross_compiling" = yes; then
7696 ac_cv_func_fork_works=cross
7697 else
7698 cat >conftest.$ac_ext <<_ACEOF
7699 /* By Ruediger Kuhlmann. */
7700 #include <sys/types.h>
7701 #if HAVE_UNISTD_H
7702 # include <unistd.h>
7703 #endif
7704 /* Some systems only have a dummy stub for fork() */
7705 int main ()
7707 if (fork() < 0)
7708 exit (1);
7709 exit (0);
7711 _ACEOF
7712 rm -f conftest$ac_exeext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7714 (eval $ac_link) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 ac_cv_func_fork_works=yes
7724 else
7725 echo "$as_me: program exited with status $ac_status" >&5
7726 echo "$as_me: failed program was:" >&5
7727 cat conftest.$ac_ext >&5
7728 ( exit $ac_status )
7729 ac_cv_func_fork_works=no
7731 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7734 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7735 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7737 else
7738 ac_cv_func_fork_works=$ac_cv_func_fork
7740 if test "x$ac_cv_func_fork_works" = xcross; then
7741 case $host in
7742 *-*-amigaos* | *-*-msdosdjgpp*)
7743 # Override, as these systems have only a dummy fork() stub
7744 ac_cv_func_fork_works=no
7747 ac_cv_func_fork_works=yes
7749 esac
7750 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7751 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7753 ac_cv_func_vfork_works=$ac_cv_func_vfork
7754 if test "x$ac_cv_func_vfork" = xyes; then
7755 echo "$as_me:$LINENO: checking for working vfork" >&5
7756 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7757 if test "${ac_cv_func_vfork_works+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760 if test "$cross_compiling" = yes; then
7761 ac_cv_func_vfork_works=cross
7762 else
7763 cat >conftest.$ac_ext <<_ACEOF
7764 #line $LINENO "configure"
7765 #include "confdefs.h"
7766 /* Thanks to Paul Eggert for this test. */
7767 #include <stdio.h>
7768 #include <sys/types.h>
7769 #include <sys/stat.h>
7770 #if HAVE_UNISTD_H
7771 # include <unistd.h>
7772 #endif
7773 #if HAVE_VFORK_H
7774 # include <vfork.h>
7775 #endif
7776 /* On some sparc systems, changes by the child to local and incoming
7777 argument registers are propagated back to the parent. The compiler
7778 is told about this with #include <vfork.h>, but some compilers
7779 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7780 static variable whose address is put into a register that is
7781 clobbered by the vfork. */
7782 static
7783 #ifdef __cplusplus
7784 sparc_address_test (int arg)
7785 # else
7786 sparc_address_test (arg) int arg;
7787 #endif
7789 static pid_t child;
7790 if (!child) {
7791 child = vfork ();
7792 if (child < 0) {
7793 perror ("vfork");
7794 _exit(2);
7796 if (!child) {
7797 arg = getpid();
7798 write(-1, "", 0);
7799 _exit (arg);
7805 main ()
7807 pid_t parent = getpid ();
7808 pid_t child;
7810 sparc_address_test ();
7812 child = vfork ();
7814 if (child == 0) {
7815 /* Here is another test for sparc vfork register problems. This
7816 test uses lots of local variables, at least as many local
7817 variables as main has allocated so far including compiler
7818 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7819 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7820 reuse the register of parent for one of the local variables,
7821 since it will think that parent can't possibly be used any more
7822 in this routine. Assigning to the local variable will thus
7823 munge parent in the parent process. */
7824 pid_t
7825 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7826 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7827 /* Convince the compiler that p..p7 are live; otherwise, it might
7828 use the same hardware register for all 8 local variables. */
7829 if (p != p1 || p != p2 || p != p3 || p != p4
7830 || p != p5 || p != p6 || p != p7)
7831 _exit(1);
7833 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7834 from child file descriptors. If the child closes a descriptor
7835 before it execs or exits, this munges the parent's descriptor
7836 as well. Test for this by closing stdout in the child. */
7837 _exit(close(fileno(stdout)) != 0);
7838 } else {
7839 int status;
7840 struct stat st;
7842 while (wait(&status) != child)
7844 exit(
7845 /* Was there some problem with vforking? */
7846 child < 0
7848 /* Did the child fail? (This shouldn't happen.) */
7849 || status
7851 /* Did the vfork/compiler bug occur? */
7852 || parent != getpid()
7854 /* Did the file descriptor bug occur? */
7855 || fstat(fileno(stdout), &st) != 0
7859 _ACEOF
7860 rm -f conftest$ac_exeext
7861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7862 (eval $ac_link) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 (eval $ac_try) 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7871 ac_cv_func_vfork_works=yes
7872 else
7873 echo "$as_me: program exited with status $ac_status" >&5
7874 echo "$as_me: failed program was:" >&5
7875 cat conftest.$ac_ext >&5
7876 ( exit $ac_status )
7877 ac_cv_func_vfork_works=no
7879 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7882 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7883 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7886 if test "x$ac_cv_func_fork_works" = xcross; then
7887 ac_cv_func_vfork_works=ac_cv_func_vfork
7888 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7889 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7892 if test "x$ac_cv_func_vfork_works" = xyes; then
7894 cat >>confdefs.h <<\_ACEOF
7895 #define HAVE_WORKING_VFORK 1
7896 _ACEOF
7898 else
7900 cat >>confdefs.h <<\_ACEOF
7901 #define vfork fork
7902 _ACEOF
7905 if test "x$ac_cv_func_fork_works" = xyes; then
7907 cat >>confdefs.h <<\_ACEOF
7908 #define HAVE_WORKING_FORK 1
7909 _ACEOF
7914 for ac_func in vprintf
7916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7917 echo "$as_me:$LINENO: checking for $ac_func" >&5
7918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7919 if eval "test \"\${$as_ac_var+set}\" = set"; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922 cat >conftest.$ac_ext <<_ACEOF
7923 #line $LINENO "configure"
7924 #include "confdefs.h"
7925 /* System header to define __stub macros and hopefully few prototypes,
7926 which can conflict with char $ac_func (); below. */
7927 #include <assert.h>
7928 /* Override any gcc2 internal prototype to avoid an error. */
7929 #ifdef __cplusplus
7930 extern "C"
7931 #endif
7932 /* We use char because int might match the return type of a gcc2
7933 builtin and then its argument prototype would still apply. */
7934 char $ac_func ();
7935 char (*f) ();
7938 main ()
7940 /* The GNU C library defines this for functions which it implements
7941 to always fail with ENOSYS. Some functions are actually named
7942 something starting with __ and the normal name is an alias. */
7943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7944 choke me
7945 #else
7946 f = $ac_func;
7947 #endif
7950 return 0;
7952 _ACEOF
7953 rm -f conftest.$ac_objext conftest$ac_exeext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955 (eval $ac_link) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -s conftest$ac_exeext'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 (eval $ac_try) 2>&5
7962 ac_status=$?
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7965 eval "$as_ac_var=yes"
7966 else
7967 echo "$as_me: failed program was:" >&5
7968 cat conftest.$ac_ext >&5
7969 eval "$as_ac_var=no"
7971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7975 if test `eval echo '${'$as_ac_var'}'` = yes; then
7976 cat >>confdefs.h <<_ACEOF
7977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7978 _ACEOF
7980 echo "$as_me:$LINENO: checking for _doprnt" >&5
7981 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7982 if test "${ac_cv_func__doprnt+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 else
7985 cat >conftest.$ac_ext <<_ACEOF
7986 #line $LINENO "configure"
7987 #include "confdefs.h"
7988 /* System header to define __stub macros and hopefully few prototypes,
7989 which can conflict with char _doprnt (); below. */
7990 #include <assert.h>
7991 /* Override any gcc2 internal prototype to avoid an error. */
7992 #ifdef __cplusplus
7993 extern "C"
7994 #endif
7995 /* We use char because int might match the return type of a gcc2
7996 builtin and then its argument prototype would still apply. */
7997 char _doprnt ();
7998 char (*f) ();
8001 main ()
8003 /* The GNU C library defines this for functions which it implements
8004 to always fail with ENOSYS. Some functions are actually named
8005 something starting with __ and the normal name is an alias. */
8006 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8007 choke me
8008 #else
8009 f = _doprnt;
8010 #endif
8013 return 0;
8015 _ACEOF
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8018 (eval $ac_link) 2>&5
8019 ac_status=$?
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try='test -s conftest$ac_exeext'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 (eval $ac_try) 2>&5
8025 ac_status=$?
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
8028 ac_cv_func__doprnt=yes
8029 else
8030 echo "$as_me: failed program was:" >&5
8031 cat conftest.$ac_ext >&5
8032 ac_cv_func__doprnt=no
8034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8036 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8037 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
8038 if test $ac_cv_func__doprnt = yes; then
8040 cat >>confdefs.h <<\_ACEOF
8041 #define HAVE_DOPRNT 1
8042 _ACEOF
8047 done
8050 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8051 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
8052 if test "${ac_cv_func_closedir_void+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 else
8055 if test "$cross_compiling" = yes; then
8056 ac_cv_func_closedir_void=yes
8057 else
8058 cat >conftest.$ac_ext <<_ACEOF
8059 #line $LINENO "configure"
8060 #include "confdefs.h"
8061 $ac_includes_default
8062 #include <$ac_header_dirent>
8063 #ifndef __cplusplus
8064 int closedir ();
8065 #endif
8068 main ()
8070 exit (closedir (opendir (".")) != 0);
8072 return 0;
8074 _ACEOF
8075 rm -f conftest$ac_exeext
8076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8077 (eval $ac_link) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 (eval $ac_try) 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8086 ac_cv_func_closedir_void=no
8087 else
8088 echo "$as_me: program exited with status $ac_status" >&5
8089 echo "$as_me: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8091 ( exit $ac_status )
8092 ac_cv_func_closedir_void=yes
8094 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8097 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8098 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
8099 if test $ac_cv_func_closedir_void = yes; then
8101 cat >>confdefs.h <<\_ACEOF
8102 #define CLOSEDIR_VOID 1
8103 _ACEOF
8108 ac_have_func=no # yes means we've found a way to get the load average.
8110 # Make sure getloadavg.c is where it belongs, at configure-time.
8111 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
8112 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
8113 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
8114 { (exit 1); exit 1; }; }
8116 ac_save_LIBS=$LIBS
8118 # Check for getloadavg, but be sure not to touch the cache variable.
8119 (echo "$as_me:$LINENO: checking for getloadavg" >&5
8120 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8121 if test "${ac_cv_func_getloadavg+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 else
8124 cat >conftest.$ac_ext <<_ACEOF
8125 #line $LINENO "configure"
8126 #include "confdefs.h"
8127 /* System header to define __stub macros and hopefully few prototypes,
8128 which can conflict with char getloadavg (); below. */
8129 #include <assert.h>
8130 /* Override any gcc2 internal prototype to avoid an error. */
8131 #ifdef __cplusplus
8132 extern "C"
8133 #endif
8134 /* We use char because int might match the return type of a gcc2
8135 builtin and then its argument prototype would still apply. */
8136 char getloadavg ();
8137 char (*f) ();
8140 main ()
8142 /* The GNU C library defines this for functions which it implements
8143 to always fail with ENOSYS. Some functions are actually named
8144 something starting with __ and the normal name is an alias. */
8145 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8146 choke me
8147 #else
8148 f = getloadavg;
8149 #endif
8152 return 0;
8154 _ACEOF
8155 rm -f conftest.$ac_objext conftest$ac_exeext
8156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8157 (eval $ac_link) 2>&5
8158 ac_status=$?
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } &&
8161 { ac_try='test -s conftest$ac_exeext'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 (eval $ac_try) 2>&5
8164 ac_status=$?
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8167 ac_cv_func_getloadavg=yes
8168 else
8169 echo "$as_me: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8171 ac_cv_func_getloadavg=no
8173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8175 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
8176 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
8177 if test $ac_cv_func_getloadavg = yes; then
8178 exit 0
8179 else
8180 exit 1
8182 ) && ac_have_func=yes
8184 # On HPUX9, an unprivileged user can get load averages through this function.
8186 for ac_func in pstat_getdynamic
8188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8189 echo "$as_me:$LINENO: checking for $ac_func" >&5
8190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8191 if eval "test \"\${$as_ac_var+set}\" = set"; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194 cat >conftest.$ac_ext <<_ACEOF
8195 #line $LINENO "configure"
8196 #include "confdefs.h"
8197 /* System header to define __stub macros and hopefully few prototypes,
8198 which can conflict with char $ac_func (); below. */
8199 #include <assert.h>
8200 /* Override any gcc2 internal prototype to avoid an error. */
8201 #ifdef __cplusplus
8202 extern "C"
8203 #endif
8204 /* We use char because int might match the return type of a gcc2
8205 builtin and then its argument prototype would still apply. */
8206 char $ac_func ();
8207 char (*f) ();
8210 main ()
8212 /* The GNU C library defines this for functions which it implements
8213 to always fail with ENOSYS. Some functions are actually named
8214 something starting with __ and the normal name is an alias. */
8215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8216 choke me
8217 #else
8218 f = $ac_func;
8219 #endif
8222 return 0;
8224 _ACEOF
8225 rm -f conftest.$ac_objext conftest$ac_exeext
8226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8227 (eval $ac_link) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } &&
8231 { ac_try='test -s conftest$ac_exeext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 eval "$as_ac_var=yes"
8238 else
8239 echo "$as_me: failed program was:" >&5
8240 cat conftest.$ac_ext >&5
8241 eval "$as_ac_var=no"
8243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8247 if test `eval echo '${'$as_ac_var'}'` = yes; then
8248 cat >>confdefs.h <<_ACEOF
8249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8250 _ACEOF
8253 done
8256 # Solaris has libkstat which does not require root.
8258 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
8259 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
8260 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263 ac_check_lib_save_LIBS=$LIBS
8264 LIBS="-lkstat $LIBS"
8265 cat >conftest.$ac_ext <<_ACEOF
8266 #line $LINENO "configure"
8267 #include "confdefs.h"
8269 /* Override any gcc2 internal prototype to avoid an error. */
8270 #ifdef __cplusplus
8271 extern "C"
8272 #endif
8273 /* We use char because int might match the return type of a gcc2
8274 builtin and then its argument prototype would still apply. */
8275 char kstat_open ();
8277 main ()
8279 kstat_open ();
8281 return 0;
8283 _ACEOF
8284 rm -f conftest.$ac_objext conftest$ac_exeext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8286 (eval $ac_link) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -s conftest$ac_exeext'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296 ac_cv_lib_kstat_kstat_open=yes
8297 else
8298 echo "$as_me: failed program was:" >&5
8299 cat conftest.$ac_ext >&5
8300 ac_cv_lib_kstat_kstat_open=no
8302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8303 LIBS=$ac_check_lib_save_LIBS
8305 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
8306 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
8307 if test $ac_cv_lib_kstat_kstat_open = yes; then
8308 cat >>confdefs.h <<_ACEOF
8309 #define HAVE_LIBKSTAT 1
8310 _ACEOF
8312 LIBS="-lkstat $LIBS"
8316 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
8318 # Some systems with -lutil have (and need) -lkvm as well, some do not.
8319 # On Solaris, -lkvm requires nlist from -lelf, so check that first
8320 # to get the right answer into the cache.
8321 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
8322 if test $ac_have_func = no; then
8323 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
8324 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
8325 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 else
8328 ac_check_lib_save_LIBS=$LIBS
8329 LIBS="-lelf $LIBS"
8330 cat >conftest.$ac_ext <<_ACEOF
8331 #line $LINENO "configure"
8332 #include "confdefs.h"
8334 /* Override any gcc2 internal prototype to avoid an error. */
8335 #ifdef __cplusplus
8336 extern "C"
8337 #endif
8338 /* We use char because int might match the return type of a gcc2
8339 builtin and then its argument prototype would still apply. */
8340 char elf_begin ();
8342 main ()
8344 elf_begin ();
8346 return 0;
8348 _ACEOF
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8351 (eval $ac_link) 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } &&
8355 { ac_try='test -s conftest$ac_exeext'
8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 (eval $ac_try) 2>&5
8358 ac_status=$?
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8361 ac_cv_lib_elf_elf_begin=yes
8362 else
8363 echo "$as_me: failed program was:" >&5
8364 cat conftest.$ac_ext >&5
8365 ac_cv_lib_elf_elf_begin=no
8367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8368 LIBS=$ac_check_lib_save_LIBS
8370 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
8371 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
8372 if test $ac_cv_lib_elf_elf_begin = yes; then
8373 LIBS="-lelf $LIBS"
8377 if test $ac_have_func = no; then
8378 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
8379 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
8380 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8383 ac_check_lib_save_LIBS=$LIBS
8384 LIBS="-lkvm $LIBS"
8385 cat >conftest.$ac_ext <<_ACEOF
8386 #line $LINENO "configure"
8387 #include "confdefs.h"
8389 /* Override any gcc2 internal prototype to avoid an error. */
8390 #ifdef __cplusplus
8391 extern "C"
8392 #endif
8393 /* We use char because int might match the return type of a gcc2
8394 builtin and then its argument prototype would still apply. */
8395 char kvm_open ();
8397 main ()
8399 kvm_open ();
8401 return 0;
8403 _ACEOF
8404 rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8406 (eval $ac_link) 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } &&
8410 { ac_try='test -s conftest$ac_exeext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_lib_kvm_kvm_open=yes
8417 else
8418 echo "$as_me: failed program was:" >&5
8419 cat conftest.$ac_ext >&5
8420 ac_cv_lib_kvm_kvm_open=no
8422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8423 LIBS=$ac_check_lib_save_LIBS
8425 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
8426 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
8427 if test $ac_cv_lib_kvm_kvm_open = yes; then
8428 LIBS="-lkvm $LIBS"
8431 # Check for the 4.4BSD definition of getloadavg.
8432 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
8433 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
8434 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437 ac_check_lib_save_LIBS=$LIBS
8438 LIBS="-lutil $LIBS"
8439 cat >conftest.$ac_ext <<_ACEOF
8440 #line $LINENO "configure"
8441 #include "confdefs.h"
8443 /* Override any gcc2 internal prototype to avoid an error. */
8444 #ifdef __cplusplus
8445 extern "C"
8446 #endif
8447 /* We use char because int might match the return type of a gcc2
8448 builtin and then its argument prototype would still apply. */
8449 char getloadavg ();
8451 main ()
8453 getloadavg ();
8455 return 0;
8457 _ACEOF
8458 rm -f conftest.$ac_objext conftest$ac_exeext
8459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8460 (eval $ac_link) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } &&
8464 { ac_try='test -s conftest$ac_exeext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_cv_lib_util_getloadavg=yes
8471 else
8472 echo "$as_me: failed program was:" >&5
8473 cat conftest.$ac_ext >&5
8474 ac_cv_lib_util_getloadavg=no
8476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8477 LIBS=$ac_check_lib_save_LIBS
8479 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
8480 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
8481 if test $ac_cv_lib_util_getloadavg = yes; then
8482 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
8487 if test $ac_have_func = no; then
8488 # There is a commonly available library for RS/6000 AIX.
8489 # Since it is not a standard part of AIX, it might be installed locally.
8490 ac_getloadavg_LIBS=$LIBS
8491 LIBS="-L/usr/local/lib $LIBS"
8492 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
8493 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
8494 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497 ac_check_lib_save_LIBS=$LIBS
8498 LIBS="-lgetloadavg $LIBS"
8499 cat >conftest.$ac_ext <<_ACEOF
8500 #line $LINENO "configure"
8501 #include "confdefs.h"
8503 /* Override any gcc2 internal prototype to avoid an error. */
8504 #ifdef __cplusplus
8505 extern "C"
8506 #endif
8507 /* We use char because int might match the return type of a gcc2
8508 builtin and then its argument prototype would still apply. */
8509 char getloadavg ();
8511 main ()
8513 getloadavg ();
8515 return 0;
8517 _ACEOF
8518 rm -f conftest.$ac_objext conftest$ac_exeext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8520 (eval $ac_link) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -s conftest$ac_exeext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 ac_cv_lib_getloadavg_getloadavg=yes
8531 else
8532 echo "$as_me: failed program was:" >&5
8533 cat conftest.$ac_ext >&5
8534 ac_cv_lib_getloadavg_getloadavg=no
8536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8537 LIBS=$ac_check_lib_save_LIBS
8539 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
8540 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
8541 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
8542 LIBS="-lgetloadavg $LIBS"
8543 else
8544 LIBS=$ac_getloadavg_LIBS
8549 # Make sure it is really in the library, if we think we found it,
8550 # otherwise set up the replacement function.
8552 for ac_func in getloadavg
8554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8555 echo "$as_me:$LINENO: checking for $ac_func" >&5
8556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8557 if eval "test \"\${$as_ac_var+set}\" = set"; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560 cat >conftest.$ac_ext <<_ACEOF
8561 #line $LINENO "configure"
8562 #include "confdefs.h"
8563 /* System header to define __stub macros and hopefully few prototypes,
8564 which can conflict with char $ac_func (); below. */
8565 #include <assert.h>
8566 /* Override any gcc2 internal prototype to avoid an error. */
8567 #ifdef __cplusplus
8568 extern "C"
8569 #endif
8570 /* We use char because int might match the return type of a gcc2
8571 builtin and then its argument prototype would still apply. */
8572 char $ac_func ();
8573 char (*f) ();
8576 main ()
8578 /* The GNU C library defines this for functions which it implements
8579 to always fail with ENOSYS. Some functions are actually named
8580 something starting with __ and the normal name is an alias. */
8581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8582 choke me
8583 #else
8584 f = $ac_func;
8585 #endif
8588 return 0;
8590 _ACEOF
8591 rm -f conftest.$ac_objext conftest$ac_exeext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8593 (eval $ac_link) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } &&
8597 { ac_try='test -s conftest$ac_exeext'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 (eval $ac_try) 2>&5
8600 ac_status=$?
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; }; then
8603 eval "$as_ac_var=yes"
8604 else
8605 echo "$as_me: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8607 eval "$as_ac_var=no"
8609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8613 if test `eval echo '${'$as_ac_var'}'` = yes; then
8614 cat >>confdefs.h <<_ACEOF
8615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8616 _ACEOF
8618 else
8619 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
8621 cat >>confdefs.h <<\_ACEOF
8622 #define C_GETLOADAVG 1
8623 _ACEOF
8625 # Figure out what our getloadavg.c needs.
8626 ac_have_func=no
8627 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
8628 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
8629 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
8630 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
8634 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
8635 else
8636 # Is the header compilable?
8637 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
8638 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
8639 cat >conftest.$ac_ext <<_ACEOF
8640 #line $LINENO "configure"
8641 #include "confdefs.h"
8642 $ac_includes_default
8643 #include <sys/dg_sys_info.h>
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8647 (eval $ac_compile) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try='test -s conftest.$ac_objext'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 (eval $ac_try) 2>&5
8654 ac_status=$?
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; }; then
8657 ac_header_compiler=yes
8658 else
8659 echo "$as_me: failed program was:" >&5
8660 cat conftest.$ac_ext >&5
8661 ac_header_compiler=no
8663 rm -f conftest.$ac_objext conftest.$ac_ext
8664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8665 echo "${ECHO_T}$ac_header_compiler" >&6
8667 # Is the header present?
8668 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
8669 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
8670 cat >conftest.$ac_ext <<_ACEOF
8671 #line $LINENO "configure"
8672 #include "confdefs.h"
8673 #include <sys/dg_sys_info.h>
8674 _ACEOF
8675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8677 ac_status=$?
8678 grep -v '^ *+' conftest.er1 >conftest.err
8679 rm -f conftest.er1
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } >/dev/null; then
8683 if test -s conftest.err; then
8684 ac_cpp_err=$ac_c_preproc_warn_flag
8685 else
8686 ac_cpp_err=
8688 else
8689 ac_cpp_err=yes
8691 if test -z "$ac_cpp_err"; then
8692 ac_header_preproc=yes
8693 else
8694 echo "$as_me: failed program was:" >&5
8695 cat conftest.$ac_ext >&5
8696 ac_header_preproc=no
8698 rm -f conftest.err conftest.$ac_ext
8699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8700 echo "${ECHO_T}$ac_header_preproc" >&6
8702 # So? What about this header?
8703 case $ac_header_compiler:$ac_header_preproc in
8704 yes:no )
8705 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
8706 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
8708 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
8709 no:yes )
8710 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
8711 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
8712 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
8713 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
8715 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
8716 esac
8717 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
8718 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
8719 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 else
8722 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
8724 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
8725 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
8728 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
8729 ac_have_func=yes
8731 cat >>confdefs.h <<\_ACEOF
8732 #define DGUX 1
8733 _ACEOF
8736 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
8737 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
8738 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741 ac_check_lib_save_LIBS=$LIBS
8742 LIBS="-ldgc $LIBS"
8743 cat >conftest.$ac_ext <<_ACEOF
8744 #line $LINENO "configure"
8745 #include "confdefs.h"
8747 /* Override any gcc2 internal prototype to avoid an error. */
8748 #ifdef __cplusplus
8749 extern "C"
8750 #endif
8751 /* We use char because int might match the return type of a gcc2
8752 builtin and then its argument prototype would still apply. */
8753 char dg_sys_info ();
8755 main ()
8757 dg_sys_info ();
8759 return 0;
8761 _ACEOF
8762 rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8764 (eval $ac_link) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -s conftest$ac_exeext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_cv_lib_dgc_dg_sys_info=yes
8775 else
8776 echo "$as_me: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8778 ac_cv_lib_dgc_dg_sys_info=no
8780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8781 LIBS=$ac_check_lib_save_LIBS
8783 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
8784 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
8785 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
8786 cat >>confdefs.h <<_ACEOF
8787 #define HAVE_LIBDGC 1
8788 _ACEOF
8790 LIBS="-ldgc $LIBS"
8798 if test "${ac_cv_header_locale_h+set}" = set; then
8799 echo "$as_me:$LINENO: checking for locale.h" >&5
8800 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
8801 if test "${ac_cv_header_locale_h+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
8805 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
8806 else
8807 # Is the header compilable?
8808 echo "$as_me:$LINENO: checking locale.h usability" >&5
8809 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
8810 cat >conftest.$ac_ext <<_ACEOF
8811 #line $LINENO "configure"
8812 #include "confdefs.h"
8813 $ac_includes_default
8814 #include <locale.h>
8815 _ACEOF
8816 rm -f conftest.$ac_objext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8818 (eval $ac_compile) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } &&
8822 { ac_try='test -s conftest.$ac_objext'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; }; then
8828 ac_header_compiler=yes
8829 else
8830 echo "$as_me: failed program was:" >&5
8831 cat conftest.$ac_ext >&5
8832 ac_header_compiler=no
8834 rm -f conftest.$ac_objext conftest.$ac_ext
8835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8836 echo "${ECHO_T}$ac_header_compiler" >&6
8838 # Is the header present?
8839 echo "$as_me:$LINENO: checking locale.h presence" >&5
8840 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
8841 cat >conftest.$ac_ext <<_ACEOF
8842 #line $LINENO "configure"
8843 #include "confdefs.h"
8844 #include <locale.h>
8845 _ACEOF
8846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8848 ac_status=$?
8849 grep -v '^ *+' conftest.er1 >conftest.err
8850 rm -f conftest.er1
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } >/dev/null; then
8854 if test -s conftest.err; then
8855 ac_cpp_err=$ac_c_preproc_warn_flag
8856 else
8857 ac_cpp_err=
8859 else
8860 ac_cpp_err=yes
8862 if test -z "$ac_cpp_err"; then
8863 ac_header_preproc=yes
8864 else
8865 echo "$as_me: failed program was:" >&5
8866 cat conftest.$ac_ext >&5
8867 ac_header_preproc=no
8869 rm -f conftest.err conftest.$ac_ext
8870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8871 echo "${ECHO_T}$ac_header_preproc" >&6
8873 # So? What about this header?
8874 case $ac_header_compiler:$ac_header_preproc in
8875 yes:no )
8876 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
8877 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
8880 no:yes )
8881 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
8882 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
8883 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
8884 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
8885 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
8886 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
8887 esac
8888 echo "$as_me:$LINENO: checking for locale.h" >&5
8889 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
8890 if test "${ac_cv_header_locale_h+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 else
8893 ac_cv_header_locale_h=$ac_header_preproc
8895 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
8896 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
8902 for ac_func in setlocale
8904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8905 echo "$as_me:$LINENO: checking for $ac_func" >&5
8906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8907 if eval "test \"\${$as_ac_var+set}\" = set"; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910 cat >conftest.$ac_ext <<_ACEOF
8911 #line $LINENO "configure"
8912 #include "confdefs.h"
8913 /* System header to define __stub macros and hopefully few prototypes,
8914 which can conflict with char $ac_func (); below. */
8915 #include <assert.h>
8916 /* Override any gcc2 internal prototype to avoid an error. */
8917 #ifdef __cplusplus
8918 extern "C"
8919 #endif
8920 /* We use char because int might match the return type of a gcc2
8921 builtin and then its argument prototype would still apply. */
8922 char $ac_func ();
8923 char (*f) ();
8926 main ()
8928 /* The GNU C library defines this for functions which it implements
8929 to always fail with ENOSYS. Some functions are actually named
8930 something starting with __ and the normal name is an alias. */
8931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8932 choke me
8933 #else
8934 f = $ac_func;
8935 #endif
8938 return 0;
8940 _ACEOF
8941 rm -f conftest.$ac_objext conftest$ac_exeext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943 (eval $ac_link) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -s conftest$ac_exeext'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 (eval $ac_try) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8953 eval "$as_ac_var=yes"
8954 else
8955 echo "$as_me: failed program was:" >&5
8956 cat conftest.$ac_ext >&5
8957 eval "$as_ac_var=no"
8959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8963 if test `eval echo '${'$as_ac_var'}'` = yes; then
8964 cat >>confdefs.h <<_ACEOF
8965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8966 _ACEOF
8969 done
8972 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
8973 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
8974 # Irix 4.0.5F has the header but not the library.
8975 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
8976 ac_have_func=yes
8978 cat >>confdefs.h <<\_ACEOF
8979 #define SVR4 1
8980 _ACEOF
8984 if test $ac_have_func = no; then
8985 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
8986 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
8987 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
8988 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8991 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
8992 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
8993 else
8994 # Is the header compilable?
8995 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
8996 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
8997 cat >conftest.$ac_ext <<_ACEOF
8998 #line $LINENO "configure"
8999 #include "confdefs.h"
9000 $ac_includes_default
9001 #include <inq_stats/cpustats.h>
9002 _ACEOF
9003 rm -f conftest.$ac_objext
9004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9005 (eval $ac_compile) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } &&
9009 { ac_try='test -s conftest.$ac_objext'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 (eval $ac_try) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 ac_header_compiler=yes
9016 else
9017 echo "$as_me: failed program was:" >&5
9018 cat conftest.$ac_ext >&5
9019 ac_header_compiler=no
9021 rm -f conftest.$ac_objext conftest.$ac_ext
9022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9023 echo "${ECHO_T}$ac_header_compiler" >&6
9025 # Is the header present?
9026 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
9027 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9029 #line $LINENO "configure"
9030 #include "confdefs.h"
9031 #include <inq_stats/cpustats.h>
9032 _ACEOF
9033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9035 ac_status=$?
9036 grep -v '^ *+' conftest.er1 >conftest.err
9037 rm -f conftest.er1
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } >/dev/null; then
9041 if test -s conftest.err; then
9042 ac_cpp_err=$ac_c_preproc_warn_flag
9043 else
9044 ac_cpp_err=
9046 else
9047 ac_cpp_err=yes
9049 if test -z "$ac_cpp_err"; then
9050 ac_header_preproc=yes
9051 else
9052 echo "$as_me: failed program was:" >&5
9053 cat conftest.$ac_ext >&5
9054 ac_header_preproc=no
9056 rm -f conftest.err conftest.$ac_ext
9057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9058 echo "${ECHO_T}$ac_header_preproc" >&6
9060 # So? What about this header?
9061 case $ac_header_compiler:$ac_header_preproc in
9062 yes:no )
9063 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
9064 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9065 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
9066 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
9067 no:yes )
9068 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
9069 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
9070 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
9071 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
9073 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
9074 esac
9075 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
9076 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9077 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
9082 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9083 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9086 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9087 ac_have_func=yes
9089 cat >>confdefs.h <<\_ACEOF
9090 #define UMAX 1
9091 _ACEOF
9094 cat >>confdefs.h <<\_ACEOF
9095 #define UMAX4_3 1
9096 _ACEOF
9103 if test $ac_have_func = no; then
9104 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9105 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
9106 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9107 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
9111 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9112 else
9113 # Is the header compilable?
9114 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
9115 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
9116 cat >conftest.$ac_ext <<_ACEOF
9117 #line $LINENO "configure"
9118 #include "confdefs.h"
9119 $ac_includes_default
9120 #include <sys/cpustats.h>
9121 _ACEOF
9122 rm -f conftest.$ac_objext
9123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9124 (eval $ac_compile) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } &&
9128 { ac_try='test -s conftest.$ac_objext'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 (eval $ac_try) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9134 ac_header_compiler=yes
9135 else
9136 echo "$as_me: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9138 ac_header_compiler=no
9140 rm -f conftest.$ac_objext conftest.$ac_ext
9141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9142 echo "${ECHO_T}$ac_header_compiler" >&6
9144 # Is the header present?
9145 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
9146 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
9147 cat >conftest.$ac_ext <<_ACEOF
9148 #line $LINENO "configure"
9149 #include "confdefs.h"
9150 #include <sys/cpustats.h>
9151 _ACEOF
9152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9154 ac_status=$?
9155 grep -v '^ *+' conftest.er1 >conftest.err
9156 rm -f conftest.er1
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } >/dev/null; then
9160 if test -s conftest.err; then
9161 ac_cpp_err=$ac_c_preproc_warn_flag
9162 else
9163 ac_cpp_err=
9165 else
9166 ac_cpp_err=yes
9168 if test -z "$ac_cpp_err"; then
9169 ac_header_preproc=yes
9170 else
9171 echo "$as_me: failed program was:" >&5
9172 cat conftest.$ac_ext >&5
9173 ac_header_preproc=no
9175 rm -f conftest.err conftest.$ac_ext
9176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9177 echo "${ECHO_T}$ac_header_preproc" >&6
9179 # So? What about this header?
9180 case $ac_header_compiler:$ac_header_preproc in
9181 yes:no )
9182 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
9183 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9184 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
9185 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
9186 no:yes )
9187 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
9188 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
9190 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
9192 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
9193 esac
9194 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
9195 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9196 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199 ac_cv_header_sys_cpustats_h=$ac_header_preproc
9201 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
9202 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9205 if test $ac_cv_header_sys_cpustats_h = yes; then
9206 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
9207 #define UMAX 1
9208 _ACEOF
9215 if test $ac_have_func = no; then
9217 for ac_header in mach/mach.h
9219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9221 echo "$as_me:$LINENO: checking for $ac_header" >&5
9222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9228 else
9229 # Is the header compilable?
9230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9232 cat >conftest.$ac_ext <<_ACEOF
9233 #line $LINENO "configure"
9234 #include "confdefs.h"
9235 $ac_includes_default
9236 #include <$ac_header>
9237 _ACEOF
9238 rm -f conftest.$ac_objext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9240 (eval $ac_compile) 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try='test -s conftest.$ac_objext'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9250 ac_header_compiler=yes
9251 else
9252 echo "$as_me: failed program was:" >&5
9253 cat conftest.$ac_ext >&5
9254 ac_header_compiler=no
9256 rm -f conftest.$ac_objext conftest.$ac_ext
9257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9258 echo "${ECHO_T}$ac_header_compiler" >&6
9260 # Is the header present?
9261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9263 cat >conftest.$ac_ext <<_ACEOF
9264 #line $LINENO "configure"
9265 #include "confdefs.h"
9266 #include <$ac_header>
9267 _ACEOF
9268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9270 ac_status=$?
9271 grep -v '^ *+' conftest.er1 >conftest.err
9272 rm -f conftest.er1
9273 cat conftest.err >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } >/dev/null; then
9276 if test -s conftest.err; then
9277 ac_cpp_err=$ac_c_preproc_warn_flag
9278 else
9279 ac_cpp_err=
9281 else
9282 ac_cpp_err=yes
9284 if test -z "$ac_cpp_err"; then
9285 ac_header_preproc=yes
9286 else
9287 echo "$as_me: failed program was:" >&5
9288 cat conftest.$ac_ext >&5
9289 ac_header_preproc=no
9291 rm -f conftest.err conftest.$ac_ext
9292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9293 echo "${ECHO_T}$ac_header_preproc" >&6
9295 # So? What about this header?
9296 case $ac_header_compiler:$ac_header_preproc in
9297 yes:no )
9298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9302 no:yes )
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9309 esac
9310 echo "$as_me:$LINENO: checking for $ac_header" >&5
9311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315 eval "$as_ac_Header=$ac_header_preproc"
9317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9322 cat >>confdefs.h <<_ACEOF
9323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9324 _ACEOF
9328 done
9333 for ac_header in nlist.h
9335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9337 echo "$as_me:$LINENO: checking for $ac_header" >&5
9338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9344 else
9345 # Is the header compilable?
9346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9348 cat >conftest.$ac_ext <<_ACEOF
9349 #line $LINENO "configure"
9350 #include "confdefs.h"
9351 $ac_includes_default
9352 #include <$ac_header>
9353 _ACEOF
9354 rm -f conftest.$ac_objext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9356 (eval $ac_compile) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } &&
9360 { ac_try='test -s conftest.$ac_objext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 (eval $ac_try) 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_header_compiler=yes
9367 else
9368 echo "$as_me: failed program was:" >&5
9369 cat conftest.$ac_ext >&5
9370 ac_header_compiler=no
9372 rm -f conftest.$ac_objext conftest.$ac_ext
9373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9374 echo "${ECHO_T}$ac_header_compiler" >&6
9376 # Is the header present?
9377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9379 cat >conftest.$ac_ext <<_ACEOF
9380 #line $LINENO "configure"
9381 #include "confdefs.h"
9382 #include <$ac_header>
9383 _ACEOF
9384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } >/dev/null; then
9392 if test -s conftest.err; then
9393 ac_cpp_err=$ac_c_preproc_warn_flag
9394 else
9395 ac_cpp_err=
9397 else
9398 ac_cpp_err=yes
9400 if test -z "$ac_cpp_err"; then
9401 ac_header_preproc=yes
9402 else
9403 echo "$as_me: failed program was:" >&5
9404 cat conftest.$ac_ext >&5
9405 ac_header_preproc=no
9407 rm -f conftest.err conftest.$ac_ext
9408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9409 echo "${ECHO_T}$ac_header_preproc" >&6
9411 # So? What about this header?
9412 case $ac_header_compiler:$ac_header_preproc in
9413 yes:no )
9414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9418 no:yes )
9419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9422 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9425 esac
9426 echo "$as_me:$LINENO: checking for $ac_header" >&5
9427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431 eval "$as_ac_Header=$ac_header_preproc"
9433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9438 cat >>confdefs.h <<_ACEOF
9439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9440 _ACEOF
9441 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
9442 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9443 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446 cat >conftest.$ac_ext <<_ACEOF
9447 #line $LINENO "configure"
9448 #include "confdefs.h"
9449 #include <nlist.h>
9452 main ()
9454 static struct nlist ac_aggr;
9455 if (ac_aggr.n_un.n_name)
9456 return 0;
9458 return 0;
9460 _ACEOF
9461 rm -f conftest.$ac_objext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9463 (eval $ac_compile) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } &&
9467 { ac_try='test -s conftest.$ac_objext'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 (eval $ac_try) 2>&5
9470 ac_status=$?
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; }; then
9473 ac_cv_member_struct_nlist_n_un_n_name=yes
9474 else
9475 echo "$as_me: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9477 cat >conftest.$ac_ext <<_ACEOF
9478 #line $LINENO "configure"
9479 #include "confdefs.h"
9480 #include <nlist.h>
9483 main ()
9485 static struct nlist ac_aggr;
9486 if (sizeof ac_aggr.n_un.n_name)
9487 return 0;
9489 return 0;
9491 _ACEOF
9492 rm -f conftest.$ac_objext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9494 (eval $ac_compile) 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } &&
9498 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9504 ac_cv_member_struct_nlist_n_un_n_name=yes
9505 else
9506 echo "$as_me: failed program was:" >&5
9507 cat conftest.$ac_ext >&5
9508 ac_cv_member_struct_nlist_n_un_n_name=no
9510 rm -f conftest.$ac_objext conftest.$ac_ext
9512 rm -f conftest.$ac_objext conftest.$ac_ext
9514 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9515 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9516 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9518 cat >>confdefs.h <<_ACEOF
9519 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9520 _ACEOF
9523 cat >>confdefs.h <<\_ACEOF
9524 #define NLIST_NAME_UNION 1
9525 _ACEOF
9532 done
9535 done
9538 # Some definitions of getloadavg require that the program be installed setgid.
9539 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
9540 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9541 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544 cat >conftest.$ac_ext <<_ACEOF
9545 #line $LINENO "configure"
9546 #include "confdefs.h"
9547 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
9548 #ifdef LDAV_PRIVILEGED
9549 Yowza Am I SETGID yet
9550 #endif
9551 _ACEOF
9552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9553 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
9554 ac_cv_func_getloadavg_setgid=yes
9555 else
9556 ac_cv_func_getloadavg_setgid=no
9558 rm -f conftest*
9561 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
9562 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9563 if test $ac_cv_func_getloadavg_setgid = yes; then
9564 NEED_SETGID=true
9566 cat >>confdefs.h <<\_ACEOF
9567 #define GETLOADAVG_PRIVILEGED 1
9568 _ACEOF
9570 else
9571 NEED_SETGID=false
9574 if test $ac_cv_func_getloadavg_setgid = yes; then
9575 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
9576 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9577 if test "${ac_cv_group_kmem+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9581 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
9582 # If we got an error (system does not support symlinks), try without -L.
9583 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
9584 ac_cv_group_kmem=`echo $ac_ls_output \
9585 | sed -ne 's/[ ][ ]*/ /g;
9586 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9587 / /s/.* //;p;'`
9590 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
9591 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9592 KMEM_GROUP=$ac_cv_group_kmem
9594 if test "x$ac_save_LIBS" = x; then
9595 GETLOADAVG_LIBS=$LIBS
9596 else
9597 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9599 LIBS=$ac_save_LIBS
9603 # AC_FUNC_GETLOADAVG is documented to set the NLIST_STRUCT value, but it
9604 # doesn't. So, we will.
9606 if test "$ac_cv_header_nlist_h" = yes; then
9607 cat >conftest.$ac_ext <<_ACEOF
9608 #line $LINENO "configure"
9609 #include "confdefs.h"
9610 #include <nlist.h>
9612 main ()
9614 struct nlist nl;
9615 nl.n_name = "string";
9616 return 0;
9618 return 0;
9620 _ACEOF
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623 (eval $ac_compile) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -s conftest.$ac_objext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 (eval $ac_try) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 make_cv_nlist_struct=yes
9634 else
9635 echo "$as_me: failed program was:" >&5
9636 cat conftest.$ac_ext >&5
9637 make_cv_nlist_struct=no
9639 rm -f conftest.$ac_objext conftest.$ac_ext
9640 if test "$make_cv_nlist_struct" = yes; then
9642 cat >>confdefs.h <<\_ACEOF
9643 #define NLIST_STRUCT 1
9644 _ACEOF
9649 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
9650 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
9651 if test "${ac_cv_decl_sys_siglist+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 else
9654 cat >conftest.$ac_ext <<_ACEOF
9655 #line $LINENO "configure"
9656 #include "confdefs.h"
9657 #include <sys/types.h>
9658 #include <signal.h>
9659 /* NetBSD declares sys_siglist in unistd.h. */
9660 #if HAVE_UNISTD_H
9661 # include <unistd.h>
9662 #endif
9665 main ()
9667 char *msg = *(sys_siglist + 1);
9669 return 0;
9671 _ACEOF
9672 rm -f conftest.$ac_objext
9673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9674 (eval $ac_compile) 2>&5
9675 ac_status=$?
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } &&
9678 { ac_try='test -s conftest.$ac_objext'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 (eval $ac_try) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
9684 ac_cv_decl_sys_siglist=yes
9685 else
9686 echo "$as_me: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9688 ac_cv_decl_sys_siglist=no
9690 rm -f conftest.$ac_objext conftest.$ac_ext
9692 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
9693 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
9694 if test $ac_cv_decl_sys_siglist = yes; then
9696 cat >>confdefs.h <<\_ACEOF
9697 #define SYS_SIGLIST_DECLARED 1
9698 _ACEOF
9703 # Check out the wait reality.
9705 for ac_header in sys/wait.h
9707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9709 echo "$as_me:$LINENO: checking for $ac_header" >&5
9710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9716 else
9717 # Is the header compilable?
9718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9720 cat >conftest.$ac_ext <<_ACEOF
9721 #line $LINENO "configure"
9722 #include "confdefs.h"
9723 $ac_includes_default
9724 #include <$ac_header>
9725 _ACEOF
9726 rm -f conftest.$ac_objext
9727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9728 (eval $ac_compile) 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try='test -s conftest.$ac_objext'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 (eval $ac_try) 2>&5
9735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 ac_header_compiler=yes
9739 else
9740 echo "$as_me: failed program was:" >&5
9741 cat conftest.$ac_ext >&5
9742 ac_header_compiler=no
9744 rm -f conftest.$ac_objext conftest.$ac_ext
9745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9746 echo "${ECHO_T}$ac_header_compiler" >&6
9748 # Is the header present?
9749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9751 cat >conftest.$ac_ext <<_ACEOF
9752 #line $LINENO "configure"
9753 #include "confdefs.h"
9754 #include <$ac_header>
9755 _ACEOF
9756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9758 ac_status=$?
9759 grep -v '^ *+' conftest.er1 >conftest.err
9760 rm -f conftest.er1
9761 cat conftest.err >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } >/dev/null; then
9764 if test -s conftest.err; then
9765 ac_cpp_err=$ac_c_preproc_warn_flag
9766 else
9767 ac_cpp_err=
9769 else
9770 ac_cpp_err=yes
9772 if test -z "$ac_cpp_err"; then
9773 ac_header_preproc=yes
9774 else
9775 echo "$as_me: failed program was:" >&5
9776 cat conftest.$ac_ext >&5
9777 ac_header_preproc=no
9779 rm -f conftest.err conftest.$ac_ext
9780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9781 echo "${ECHO_T}$ac_header_preproc" >&6
9783 # So? What about this header?
9784 case $ac_header_compiler:$ac_header_preproc in
9785 yes:no )
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9790 no:yes )
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9797 esac
9798 echo "$as_me:$LINENO: checking for $ac_header" >&5
9799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803 eval "$as_ac_Header=$ac_header_preproc"
9805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9810 cat >>confdefs.h <<_ACEOF
9811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9812 _ACEOF
9816 done
9820 for ac_func in waitpid wait3
9822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9823 echo "$as_me:$LINENO: checking for $ac_func" >&5
9824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9825 if eval "test \"\${$as_ac_var+set}\" = set"; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9827 else
9828 cat >conftest.$ac_ext <<_ACEOF
9829 #line $LINENO "configure"
9830 #include "confdefs.h"
9831 /* System header to define __stub macros and hopefully few prototypes,
9832 which can conflict with char $ac_func (); below. */
9833 #include <assert.h>
9834 /* Override any gcc2 internal prototype to avoid an error. */
9835 #ifdef __cplusplus
9836 extern "C"
9837 #endif
9838 /* We use char because int might match the return type of a gcc2
9839 builtin and then its argument prototype would still apply. */
9840 char $ac_func ();
9841 char (*f) ();
9844 main ()
9846 /* The GNU C library defines this for functions which it implements
9847 to always fail with ENOSYS. Some functions are actually named
9848 something starting with __ and the normal name is an alias. */
9849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9850 choke me
9851 #else
9852 f = $ac_func;
9853 #endif
9856 return 0;
9858 _ACEOF
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9861 (eval $ac_link) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } &&
9865 { ac_try='test -s conftest$ac_exeext'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 (eval $ac_try) 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; }; then
9871 eval "$as_ac_var=yes"
9872 else
9873 echo "$as_me: failed program was:" >&5
9874 cat conftest.$ac_ext >&5
9875 eval "$as_ac_var=no"
9877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9881 if test `eval echo '${'$as_ac_var'}'` = yes; then
9882 cat >>confdefs.h <<_ACEOF
9883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9884 _ACEOF
9887 done
9889 echo "$as_me:$LINENO: checking for union wait" >&5
9890 echo $ECHO_N "checking for union wait... $ECHO_C" >&6
9891 if test "${make_cv_union_wait+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894 cat >conftest.$ac_ext <<_ACEOF
9895 #line $LINENO "configure"
9896 #include "confdefs.h"
9897 #include <sys/types.h>
9898 #include <sys/wait.h>
9900 main ()
9902 union wait status; int pid; pid = wait (&status);
9903 #ifdef WEXITSTATUS
9904 /* Some POSIXoid systems have both the new-style macros and the old
9905 union wait type, and they do not work together. If union wait
9906 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
9907 if (WEXITSTATUS (status) != 0) pid = -1;
9908 #ifdef WTERMSIG
9909 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
9910 -- blow chunks here --
9911 #endif
9912 #endif
9913 #ifdef HAVE_WAITPID
9914 /* Make sure union wait works with waitpid. */
9915 pid = waitpid (-1, &status, 0);
9916 #endif
9919 return 0;
9921 _ACEOF
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9924 (eval $ac_link) 2>&5
9925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -s conftest$ac_exeext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 (eval $ac_try) 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 make_cv_union_wait=yes
9935 else
9936 echo "$as_me: failed program was:" >&5
9937 cat conftest.$ac_ext >&5
9938 make_cv_union_wait=no
9940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9943 if test "$make_cv_union_wait" = yes; then
9945 cat >>confdefs.h <<\_ACEOF
9946 #define HAVE_UNION_WAIT 1
9947 _ACEOF
9950 echo "$as_me:$LINENO: result: $make_cv_union_wait" >&5
9951 echo "${ECHO_T}$make_cv_union_wait" >&6
9954 # See if the user wants to use pmake's "customs" distributed build capability
9956 use_customs=false
9958 # Check whether --with-customs or --without-customs was given.
9959 if test "${with_customs+set}" = set; then
9960 withval="$with_customs"
9961 case $withval in
9962 n|no) : ;;
9963 *) make_cppflags="$CPPFLAGS"
9964 case $withval in
9965 y|ye|yes) : ;;
9966 *) CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
9967 make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
9968 esac
9970 cf_test_netlibs=no
9971 echo "$as_me:$LINENO: checking for network libraries" >&5
9972 echo $ECHO_N "checking for network libraries... $ECHO_C" >&6
9973 if test "${cf_cv_netlibs+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9977 echo "$as_me:$LINENO: result: working..." >&5
9978 echo "${ECHO_T}working..." >&6
9979 cf_cv_netlibs=""
9980 cf_test_netlibs=yes
9982 for ac_func in gethostname
9984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9985 echo "$as_me:$LINENO: checking for $ac_func" >&5
9986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9987 if eval "test \"\${$as_ac_var+set}\" = set"; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990 cat >conftest.$ac_ext <<_ACEOF
9991 #line $LINENO "configure"
9992 #include "confdefs.h"
9993 /* System header to define __stub macros and hopefully few prototypes,
9994 which can conflict with char $ac_func (); below. */
9995 #include <assert.h>
9996 /* Override any gcc2 internal prototype to avoid an error. */
9997 #ifdef __cplusplus
9998 extern "C"
9999 #endif
10000 /* We use char because int might match the return type of a gcc2
10001 builtin and then its argument prototype would still apply. */
10002 char $ac_func ();
10003 char (*f) ();
10006 main ()
10008 /* The GNU C library defines this for functions which it implements
10009 to always fail with ENOSYS. Some functions are actually named
10010 something starting with __ and the normal name is an alias. */
10011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10012 choke me
10013 #else
10014 f = $ac_func;
10015 #endif
10018 return 0;
10020 _ACEOF
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023 (eval $ac_link) 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -s conftest$ac_exeext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 eval "$as_ac_var=yes"
10034 else
10035 echo "$as_me: failed program was:" >&5
10036 cat conftest.$ac_ext >&5
10037 eval "$as_ac_var=no"
10039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10043 if test `eval echo '${'$as_ac_var'}'` = yes; then
10044 cat >>confdefs.h <<_ACEOF
10045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10046 _ACEOF
10048 else
10051 echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5
10052 echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6
10053 if test "${ac_cv_lib_nsl_gethostname+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056 ac_check_lib_save_LIBS=$LIBS
10057 LIBS="-lnsl $cf_cv_netlibs $LIBS"
10058 cat >conftest.$ac_ext <<_ACEOF
10059 #line $LINENO "configure"
10060 #include "confdefs.h"
10062 /* Override any gcc2 internal prototype to avoid an error. */
10063 #ifdef __cplusplus
10064 extern "C"
10065 #endif
10066 /* We use char because int might match the return type of a gcc2
10067 builtin and then its argument prototype would still apply. */
10068 char gethostname ();
10070 main ()
10072 gethostname ();
10074 return 0;
10076 _ACEOF
10077 rm -f conftest.$ac_objext conftest$ac_exeext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10079 (eval $ac_link) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } &&
10083 { ac_try='test -s conftest$ac_exeext'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10089 ac_cv_lib_nsl_gethostname=yes
10090 else
10091 echo "$as_me: failed program was:" >&5
10092 cat conftest.$ac_ext >&5
10093 ac_cv_lib_nsl_gethostname=no
10095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10096 LIBS=$ac_check_lib_save_LIBS
10098 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5
10099 echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6
10100 if test $ac_cv_lib_nsl_gethostname = yes; then
10103 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
10106 cat >>confdefs.h <<_ACEOF
10107 #define HAVE_$cf_tr_func 1
10108 _ACEOF
10110 ac_cv_func_gethostname=yes
10111 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
10112 else
10114 ac_cv_func_gethostname=unknown
10115 unset ac_cv_func_gethostname 2>/dev/null
10118 echo "$as_me:$LINENO: checking for gethostname in -lsocket" >&5
10119 echo $ECHO_N "checking for gethostname in -lsocket... $ECHO_C" >&6
10120 if test "${ac_cv_lib_socket_gethostname+set}" = set; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 else
10123 ac_check_lib_save_LIBS=$LIBS
10124 LIBS="-lsocket $cf_cv_netlibs $LIBS"
10125 cat >conftest.$ac_ext <<_ACEOF
10126 #line $LINENO "configure"
10127 #include "confdefs.h"
10129 /* Override any gcc2 internal prototype to avoid an error. */
10130 #ifdef __cplusplus
10131 extern "C"
10132 #endif
10133 /* We use char because int might match the return type of a gcc2
10134 builtin and then its argument prototype would still apply. */
10135 char gethostname ();
10137 main ()
10139 gethostname ();
10141 return 0;
10143 _ACEOF
10144 rm -f conftest.$ac_objext conftest$ac_exeext
10145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10146 (eval $ac_link) 2>&5
10147 ac_status=$?
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } &&
10150 { ac_try='test -s conftest$ac_exeext'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10156 ac_cv_lib_socket_gethostname=yes
10157 else
10158 echo "$as_me: failed program was:" >&5
10159 cat conftest.$ac_ext >&5
10160 ac_cv_lib_socket_gethostname=no
10162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10165 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostname" >&5
10166 echo "${ECHO_T}$ac_cv_lib_socket_gethostname" >&6
10167 if test $ac_cv_lib_socket_gethostname = yes; then
10170 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
10173 cat >>confdefs.h <<_ACEOF
10174 #define HAVE_$cf_tr_func 1
10175 _ACEOF
10177 ac_cv_func_gethostname=yes
10178 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
10179 else
10181 ac_cv_func_gethostname=unknown
10182 unset ac_cv_func_gethostname 2>/dev/null
10191 done
10194 # FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but
10195 # I don't know the entrypoints - 97/7/22 TD
10196 echo "$as_me:$LINENO: checking for main in -linet" >&5
10197 echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6
10198 if test "${ac_cv_lib_inet_main+set}" = set; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 else
10201 ac_check_lib_save_LIBS=$LIBS
10202 LIBS="-linet $LIBS"
10203 cat >conftest.$ac_ext <<_ACEOF
10204 #line $LINENO "configure"
10205 #include "confdefs.h"
10209 main ()
10211 main ();
10213 return 0;
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218 (eval $ac_link) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } &&
10222 { ac_try='test -s conftest$ac_exeext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_cv_lib_inet_main=yes
10229 else
10230 echo "$as_me: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10232 ac_cv_lib_inet_main=no
10234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10235 LIBS=$ac_check_lib_save_LIBS
10237 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
10238 echo "${ECHO_T}$ac_cv_lib_inet_main" >&6
10239 if test $ac_cv_lib_inet_main = yes; then
10240 cf_cv_netlibs="-linet $cf_cv_netlibs"
10244 if test "$ac_cv_func_lsocket" != no ; then
10246 for ac_func in socket
10248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10249 echo "$as_me:$LINENO: checking for $ac_func" >&5
10250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10251 if eval "test \"\${$as_ac_var+set}\" = set"; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 else
10254 cat >conftest.$ac_ext <<_ACEOF
10255 #line $LINENO "configure"
10256 #include "confdefs.h"
10257 /* System header to define __stub macros and hopefully few prototypes,
10258 which can conflict with char $ac_func (); below. */
10259 #include <assert.h>
10260 /* Override any gcc2 internal prototype to avoid an error. */
10261 #ifdef __cplusplus
10262 extern "C"
10263 #endif
10264 /* We use char because int might match the return type of a gcc2
10265 builtin and then its argument prototype would still apply. */
10266 char $ac_func ();
10267 char (*f) ();
10270 main ()
10272 /* The GNU C library defines this for functions which it implements
10273 to always fail with ENOSYS. Some functions are actually named
10274 something starting with __ and the normal name is an alias. */
10275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10276 choke me
10277 #else
10278 f = $ac_func;
10279 #endif
10282 return 0;
10284 _ACEOF
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287 (eval $ac_link) 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } &&
10291 { ac_try='test -s conftest$ac_exeext'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10294 ac_status=$?
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10297 eval "$as_ac_var=yes"
10298 else
10299 echo "$as_me: failed program was:" >&5
10300 cat conftest.$ac_ext >&5
10301 eval "$as_ac_var=no"
10303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10307 if test `eval echo '${'$as_ac_var'}'` = yes; then
10308 cat >>confdefs.h <<_ACEOF
10309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10310 _ACEOF
10312 else
10315 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
10316 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
10317 if test "${ac_cv_lib_socket_socket+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320 ac_check_lib_save_LIBS=$LIBS
10321 LIBS="-lsocket $cf_cv_netlibs $LIBS"
10322 cat >conftest.$ac_ext <<_ACEOF
10323 #line $LINENO "configure"
10324 #include "confdefs.h"
10326 /* Override any gcc2 internal prototype to avoid an error. */
10327 #ifdef __cplusplus
10328 extern "C"
10329 #endif
10330 /* We use char because int might match the return type of a gcc2
10331 builtin and then its argument prototype would still apply. */
10332 char socket ();
10334 main ()
10336 socket ();
10338 return 0;
10340 _ACEOF
10341 rm -f conftest.$ac_objext conftest$ac_exeext
10342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10343 (eval $ac_link) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } &&
10347 { ac_try='test -s conftest$ac_exeext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_cv_lib_socket_socket=yes
10354 else
10355 echo "$as_me: failed program was:" >&5
10356 cat conftest.$ac_ext >&5
10357 ac_cv_lib_socket_socket=no
10359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10360 LIBS=$ac_check_lib_save_LIBS
10362 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
10363 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
10364 if test $ac_cv_lib_socket_socket = yes; then
10367 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
10370 cat >>confdefs.h <<_ACEOF
10371 #define HAVE_$cf_tr_func 1
10372 _ACEOF
10374 ac_cv_func_socket=yes
10375 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
10376 else
10378 ac_cv_func_socket=unknown
10379 unset ac_cv_func_socket 2>/dev/null
10382 echo "$as_me:$LINENO: checking for socket in -lbsd" >&5
10383 echo $ECHO_N "checking for socket in -lbsd... $ECHO_C" >&6
10384 if test "${ac_cv_lib_bsd_socket+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387 ac_check_lib_save_LIBS=$LIBS
10388 LIBS="-lbsd $cf_cv_netlibs $LIBS"
10389 cat >conftest.$ac_ext <<_ACEOF
10390 #line $LINENO "configure"
10391 #include "confdefs.h"
10393 /* Override any gcc2 internal prototype to avoid an error. */
10394 #ifdef __cplusplus
10395 extern "C"
10396 #endif
10397 /* We use char because int might match the return type of a gcc2
10398 builtin and then its argument prototype would still apply. */
10399 char socket ();
10401 main ()
10403 socket ();
10405 return 0;
10407 _ACEOF
10408 rm -f conftest.$ac_objext conftest$ac_exeext
10409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10410 (eval $ac_link) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } &&
10414 { ac_try='test -s conftest$ac_exeext'
10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416 (eval $ac_try) 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; }; then
10420 ac_cv_lib_bsd_socket=yes
10421 else
10422 echo "$as_me: failed program was:" >&5
10423 cat conftest.$ac_ext >&5
10424 ac_cv_lib_bsd_socket=no
10426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10427 LIBS=$ac_check_lib_save_LIBS
10429 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_socket" >&5
10430 echo "${ECHO_T}$ac_cv_lib_bsd_socket" >&6
10431 if test $ac_cv_lib_bsd_socket = yes; then
10434 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
10437 cat >>confdefs.h <<_ACEOF
10438 #define HAVE_$cf_tr_func 1
10439 _ACEOF
10441 ac_cv_func_socket=yes
10442 cf_cv_netlibs="-lbsd $cf_cv_netlibs"
10443 else
10445 ac_cv_func_socket=unknown
10446 unset ac_cv_func_socket 2>/dev/null
10455 done
10460 for ac_func in gethostbyname
10462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10463 echo "$as_me:$LINENO: checking for $ac_func" >&5
10464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10465 if eval "test \"\${$as_ac_var+set}\" = set"; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 else
10468 cat >conftest.$ac_ext <<_ACEOF
10469 #line $LINENO "configure"
10470 #include "confdefs.h"
10471 /* System header to define __stub macros and hopefully few prototypes,
10472 which can conflict with char $ac_func (); below. */
10473 #include <assert.h>
10474 /* Override any gcc2 internal prototype to avoid an error. */
10475 #ifdef __cplusplus
10476 extern "C"
10477 #endif
10478 /* We use char because int might match the return type of a gcc2
10479 builtin and then its argument prototype would still apply. */
10480 char $ac_func ();
10481 char (*f) ();
10484 main ()
10486 /* The GNU C library defines this for functions which it implements
10487 to always fail with ENOSYS. Some functions are actually named
10488 something starting with __ and the normal name is an alias. */
10489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10490 choke me
10491 #else
10492 f = $ac_func;
10493 #endif
10496 return 0;
10498 _ACEOF
10499 rm -f conftest.$ac_objext conftest$ac_exeext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10501 (eval $ac_link) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -s conftest$ac_exeext'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
10511 eval "$as_ac_var=yes"
10512 else
10513 echo "$as_me: failed program was:" >&5
10514 cat conftest.$ac_ext >&5
10515 eval "$as_ac_var=no"
10517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10521 if test `eval echo '${'$as_ac_var'}'` = yes; then
10522 cat >>confdefs.h <<_ACEOF
10523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10524 _ACEOF
10526 else
10529 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10530 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10531 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10534 ac_check_lib_save_LIBS=$LIBS
10535 LIBS="-lnsl $cf_cv_netlibs $LIBS"
10536 cat >conftest.$ac_ext <<_ACEOF
10537 #line $LINENO "configure"
10538 #include "confdefs.h"
10540 /* Override any gcc2 internal prototype to avoid an error. */
10541 #ifdef __cplusplus
10542 extern "C"
10543 #endif
10544 /* We use char because int might match the return type of a gcc2
10545 builtin and then its argument prototype would still apply. */
10546 char gethostbyname ();
10548 main ()
10550 gethostbyname ();
10552 return 0;
10554 _ACEOF
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557 (eval $ac_link) 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } &&
10561 { ac_try='test -s conftest$ac_exeext'
10562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563 (eval $ac_try) 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 ac_cv_lib_nsl_gethostbyname=yes
10568 else
10569 echo "$as_me: failed program was:" >&5
10570 cat conftest.$ac_ext >&5
10571 ac_cv_lib_nsl_gethostbyname=no
10573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10574 LIBS=$ac_check_lib_save_LIBS
10576 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10577 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10578 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10581 cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
10584 cat >>confdefs.h <<_ACEOF
10585 #define HAVE_$cf_tr_func 1
10586 _ACEOF
10588 ac_cv_func_gethostbyname=yes
10589 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
10590 else
10592 ac_cv_func_gethostbyname=unknown
10593 unset ac_cv_func_gethostbyname 2>/dev/null
10599 done
10603 for ac_func in strcasecmp
10605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10606 echo "$as_me:$LINENO: checking for $ac_func" >&5
10607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10608 if eval "test \"\${$as_ac_var+set}\" = set"; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611 cat >conftest.$ac_ext <<_ACEOF
10612 #line $LINENO "configure"
10613 #include "confdefs.h"
10614 /* System header to define __stub macros and hopefully few prototypes,
10615 which can conflict with char $ac_func (); below. */
10616 #include <assert.h>
10617 /* Override any gcc2 internal prototype to avoid an error. */
10618 #ifdef __cplusplus
10619 extern "C"
10620 #endif
10621 /* We use char because int might match the return type of a gcc2
10622 builtin and then its argument prototype would still apply. */
10623 char $ac_func ();
10624 char (*f) ();
10627 main ()
10629 /* The GNU C library defines this for functions which it implements
10630 to always fail with ENOSYS. Some functions are actually named
10631 something starting with __ and the normal name is an alias. */
10632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10633 choke me
10634 #else
10635 f = $ac_func;
10636 #endif
10639 return 0;
10641 _ACEOF
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10644 (eval $ac_link) 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
10648 { ac_try='test -s conftest$ac_exeext'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10651 ac_status=$?
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; }; then
10654 eval "$as_ac_var=yes"
10655 else
10656 echo "$as_me: failed program was:" >&5
10657 cat conftest.$ac_ext >&5
10658 eval "$as_ac_var=no"
10660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10664 if test `eval echo '${'$as_ac_var'}'` = yes; then
10665 cat >>confdefs.h <<_ACEOF
10666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10667 _ACEOF
10669 else
10672 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
10673 echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
10674 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677 ac_check_lib_save_LIBS=$LIBS
10678 LIBS="-lresolv $cf_cv_netlibs $LIBS"
10679 cat >conftest.$ac_ext <<_ACEOF
10680 #line $LINENO "configure"
10681 #include "confdefs.h"
10683 /* Override any gcc2 internal prototype to avoid an error. */
10684 #ifdef __cplusplus
10685 extern "C"
10686 #endif
10687 /* We use char because int might match the return type of a gcc2
10688 builtin and then its argument prototype would still apply. */
10689 char strcasecmp ();
10691 main ()
10693 strcasecmp ();
10695 return 0;
10697 _ACEOF
10698 rm -f conftest.$ac_objext conftest$ac_exeext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700 (eval $ac_link) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } &&
10704 { ac_try='test -s conftest$ac_exeext'
10705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; }; then
10710 ac_cv_lib_resolv_strcasecmp=yes
10711 else
10712 echo "$as_me: failed program was:" >&5
10713 cat conftest.$ac_ext >&5
10714 ac_cv_lib_resolv_strcasecmp=no
10716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10717 LIBS=$ac_check_lib_save_LIBS
10719 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
10720 echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
10721 if test $ac_cv_lib_resolv_strcasecmp = yes; then
10724 cf_tr_func=`echo strcasecmp | tr '[a-z]' '[A-Z]'`
10727 cat >>confdefs.h <<_ACEOF
10728 #define HAVE_$cf_tr_func 1
10729 _ACEOF
10731 ac_cv_func_strcasecmp=yes
10732 cf_cv_netlibs="-lresolv $cf_cv_netlibs"
10733 else
10735 ac_cv_func_strcasecmp=unknown
10736 unset ac_cv_func_strcasecmp 2>/dev/null
10742 done
10747 LIBS="$LIBS $cf_cv_netlibs"
10748 test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
10750 if test "${ac_cv_header_customs_h+set}" = set; then
10751 echo "$as_me:$LINENO: checking for customs.h" >&5
10752 echo $ECHO_N "checking for customs.h... $ECHO_C" >&6
10753 if test "${ac_cv_header_customs_h+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5
10757 echo "${ECHO_T}$ac_cv_header_customs_h" >&6
10758 else
10759 # Is the header compilable?
10760 echo "$as_me:$LINENO: checking customs.h usability" >&5
10761 echo $ECHO_N "checking customs.h usability... $ECHO_C" >&6
10762 cat >conftest.$ac_ext <<_ACEOF
10763 #line $LINENO "configure"
10764 #include "confdefs.h"
10765 $ac_includes_default
10766 #include <customs.h>
10767 _ACEOF
10768 rm -f conftest.$ac_objext
10769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10770 (eval $ac_compile) 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try='test -s conftest.$ac_objext'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; }; then
10780 ac_header_compiler=yes
10781 else
10782 echo "$as_me: failed program was:" >&5
10783 cat conftest.$ac_ext >&5
10784 ac_header_compiler=no
10786 rm -f conftest.$ac_objext conftest.$ac_ext
10787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10788 echo "${ECHO_T}$ac_header_compiler" >&6
10790 # Is the header present?
10791 echo "$as_me:$LINENO: checking customs.h presence" >&5
10792 echo $ECHO_N "checking customs.h presence... $ECHO_C" >&6
10793 cat >conftest.$ac_ext <<_ACEOF
10794 #line $LINENO "configure"
10795 #include "confdefs.h"
10796 #include <customs.h>
10797 _ACEOF
10798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10800 ac_status=$?
10801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } >/dev/null; then
10806 if test -s conftest.err; then
10807 ac_cpp_err=$ac_c_preproc_warn_flag
10808 else
10809 ac_cpp_err=
10811 else
10812 ac_cpp_err=yes
10814 if test -z "$ac_cpp_err"; then
10815 ac_header_preproc=yes
10816 else
10817 echo "$as_me: failed program was:" >&5
10818 cat conftest.$ac_ext >&5
10819 ac_header_preproc=no
10821 rm -f conftest.err conftest.$ac_ext
10822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10823 echo "${ECHO_T}$ac_header_preproc" >&6
10825 # So? What about this header?
10826 case $ac_header_compiler:$ac_header_preproc in
10827 yes:no )
10828 { echo "$as_me:$LINENO: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&5
10829 echo "$as_me: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10830 { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the preprocessor's result" >&5
10831 echo "$as_me: WARNING: customs.h: proceeding with the preprocessor's result" >&2;};;
10832 no:yes )
10833 { echo "$as_me:$LINENO: WARNING: customs.h: present but cannot be compiled" >&5
10834 echo "$as_me: WARNING: customs.h: present but cannot be compiled" >&2;}
10835 { echo "$as_me:$LINENO: WARNING: customs.h: check for missing prerequisite headers?" >&5
10836 echo "$as_me: WARNING: customs.h: check for missing prerequisite headers?" >&2;}
10837 { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the preprocessor's result" >&5
10838 echo "$as_me: WARNING: customs.h: proceeding with the preprocessor's result" >&2;};;
10839 esac
10840 echo "$as_me:$LINENO: checking for customs.h" >&5
10841 echo $ECHO_N "checking for customs.h... $ECHO_C" >&6
10842 if test "${ac_cv_header_customs_h+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 else
10845 ac_cv_header_customs_h=$ac_header_preproc
10847 echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5
10848 echo "${ECHO_T}$ac_cv_header_customs_h" >&6
10851 if test $ac_cv_header_customs_h = yes; then
10852 use_customs=true
10853 LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
10854 else
10855 with_customs=no
10856 CPPFLAGS="$make_cppflags" make_badcust=yes
10861 esac
10863 # Tell automake about this, so it can include the right .c files.
10866 if test "$use_customs" = true; then
10867 USE_CUSTOMS_TRUE=
10868 USE_CUSTOMS_FALSE='#'
10869 else
10870 USE_CUSTOMS_TRUE='#'
10871 USE_CUSTOMS_FALSE=
10875 # See if we can handle the job server feature, and if the user wants it.
10877 # Check whether --enable-job-server or --disable-job-server was given.
10878 if test "${enable_job_server+set}" = set; then
10879 enableval="$enable_job_server"
10880 make_cv_job_server="$enableval" user_job_server="$enableval"
10881 else
10882 make_cv_job_server="yes"
10885 has_wait_nohang=yes
10886 case "$ac_cv_func_waitpid/$ac_cv_func_wait3" in
10887 no/no) has_wait_nohang=no ;;
10888 esac
10890 echo "$as_me:$LINENO: checking for SA_RESTART" >&5
10891 echo $ECHO_N "checking for SA_RESTART... $ECHO_C" >&6
10892 if test "${make_cv_sa_restart+set}" = set; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 else
10896 cat >conftest.$ac_ext <<_ACEOF
10897 #line $LINENO "configure"
10898 #include "confdefs.h"
10899 #include <signal.h>
10901 main ()
10903 return SA_RESTART;
10905 return 0;
10907 _ACEOF
10908 rm -f conftest.$ac_objext
10909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10910 (eval $ac_compile) 2>&5
10911 ac_status=$?
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } &&
10914 { ac_try='test -s conftest.$ac_objext'
10915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10916 (eval $ac_try) 2>&5
10917 ac_status=$?
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); }; }; then
10920 make_cv_sa_restart=yes
10921 else
10922 echo "$as_me: failed program was:" >&5
10923 cat conftest.$ac_ext >&5
10924 make_cv_sa_restart=no
10926 rm -f conftest.$ac_objext conftest.$ac_ext
10928 echo "$as_me:$LINENO: result: $make_cv_sa_restart" >&5
10929 echo "${ECHO_T}$make_cv_sa_restart" >&6
10930 if test "$make_cv_sa_restart" != no; then
10932 cat >>confdefs.h <<\_ACEOF
10933 #define HAVE_SA_RESTART 1
10934 _ACEOF
10938 case "$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/$make_cv_job_server" in
10939 yes/yes/yes/yes/yes)
10941 cat >>confdefs.h <<\_ACEOF
10942 #define MAKE_JOBSERVER 1
10943 _ACEOF
10945 esac
10947 # Find the SCCS commands, so we can include them in our default rules.
10949 echo "$as_me:$LINENO: checking for location of SCCS get command" >&5
10950 echo $ECHO_N "checking for location of SCCS get command... $ECHO_C" >&6
10951 if test "${make_cv_path_sccs_get+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10955 if test -f /usr/sccs/get; then
10956 make_cv_path_sccs_get=/usr/sccs/get
10957 else
10958 make_cv_path_sccs_get=get
10961 echo "$as_me:$LINENO: result: $make_cv_path_sccs_get" >&5
10962 echo "${ECHO_T}$make_cv_path_sccs_get" >&6
10964 cat >>confdefs.h <<_ACEOF
10965 #define SCCS_GET "$make_cv_path_sccs_get"
10966 _ACEOF
10969 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
10970 if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
10971 test -f s.conftest; then
10972 # We successfully created an SCCS file.
10973 echo "$as_me:$LINENO: checking if SCCS get command understands -G" >&5
10974 echo $ECHO_N "checking if SCCS get command understands -G... $ECHO_C" >&6
10975 if test "${make_cv_sys_get_minus_G+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 else
10979 if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
10980 test -f conftoast; then
10981 make_cv_sys_get_minus_G=yes
10982 else
10983 make_cv_sys_get_minus_G=no
10986 echo "$as_me:$LINENO: result: $make_cv_sys_get_minus_G" >&5
10987 echo "${ECHO_T}$make_cv_sys_get_minus_G" >&6
10988 case "$make_cv_sys_get_minus_G" in
10989 yes)
10990 cat >>confdefs.h <<\_ACEOF
10991 #define SCCS_GET_MINUS_G 1
10992 _ACEOF
10994 esac
10996 rm -f s.conftest conftoast
10998 # Check the system to see if it provides GNU glob. If not, use our
10999 # local version.
11001 echo "$as_me:$LINENO: checking if system libc has GNU glob" >&5
11002 echo $ECHO_N "checking if system libc has GNU glob... $ECHO_C" >&6
11003 if test "${make_cv_sys_gnu_glob+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11007 cat >conftest.$ac_ext <<_ACEOF
11008 #line $LINENO "configure"
11009 #include "confdefs.h"
11011 #include <features.h>
11012 #include <glob.h>
11013 #include <fnmatch.h>
11015 #define GLOB_INTERFACE_VERSION 1
11016 #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
11017 # include <gnu-versions.h>
11018 # if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
11019 gnu glob
11020 # endif
11021 #endif
11023 _ACEOF
11024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11025 $EGREP "gnu glob" >/dev/null 2>&1; then
11026 echo "$as_me:$LINENO: result: yes" >&5
11027 echo "${ECHO_T}yes" >&6
11028 make_cv_sys_gnu_glob=yes
11029 else
11030 echo "$as_me:$LINENO: result: no; using local copy" >&5
11031 echo "${ECHO_T}no; using local copy" >&6
11032 GLOBINC='-I$(srcdir)/glob'
11033 GLOBLIB=glob/libglob.a
11034 make_cv_sys_gnu_glob=no
11036 rm -f conftest*
11040 # Tell automake about this, so it can build the right .c files.
11043 if test "$make_cv_sys_gnu_glob" = no; then
11044 USE_LOCAL_GLOB_TRUE=
11045 USE_LOCAL_GLOB_FALSE='#'
11046 else
11047 USE_LOCAL_GLOB_TRUE='#'
11048 USE_LOCAL_GLOB_FALSE=
11052 # PTX systems have a broken implementation of SA_RESTART. I know of
11053 # no way to test for this behavior, so I'll just test for PTX
11055 case "$host" in
11056 i386-sequent-sysv4)
11058 cat >>confdefs.h <<\_ACEOF
11059 #define HAVE_BROKEN_RESTART 1
11060 _ACEOF
11062 echo ""
11063 echo "WARNING: The SA_RESTART sigaction() flag does not work on PTX."
11064 echo " This causes 'make -j' to fail at random times."
11065 echo " I am installing a workaround, which is mostly but not 100%"
11066 echo " effective. If you see random failures during 'make -j'"
11067 echo " you should either contact the bug list, or not use -j."
11068 echo "" ;;
11069 esac
11071 # Let the makefile know what our build host is
11074 cat >>confdefs.h <<_ACEOF
11075 #define MAKE_HOST "$host"
11076 _ACEOF
11078 MAKE_HOST="$host"
11081 # Include the Maintainer's Makefile section, if it's here.
11083 MAINT_MAKEFILE=/dev/null
11084 if test -r "$srcdir/maintMakefile"; then
11085 MAINT_MAKEFILE="$srcdir/maintMakefile"
11089 # Allow building with dmalloc
11090 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
11091 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
11093 # Check whether --with-dmalloc or --without-dmalloc was given.
11094 if test "${with_dmalloc+set}" = set; then
11095 withval="$with_dmalloc"
11096 if test "$withval" = yes; then
11097 echo "$as_me:$LINENO: result: yes" >&5
11098 echo "${ECHO_T}yes" >&6
11100 cat >>confdefs.h <<\_ACEOF
11101 #define WITH_DMALLOC 1
11102 _ACEOF
11104 LIBS="$LIBS -ldmalloc"
11105 LDFLAGS="$LDFLAGS -g"
11106 else
11107 echo "$as_me:$LINENO: result: no" >&5
11108 echo "${ECHO_T}no" >&6
11110 else
11111 echo "$as_me:$LINENO: result: no" >&5
11112 echo "${ECHO_T}no" >&6
11117 # Sanity check and inform the user of what we found
11119 case "$make_badcust" in
11120 yes) echo
11121 echo "WARNING: --with-customs specified but no customs.h could be found;"
11122 echo " disabling Customs support."
11123 echo ;;
11124 esac
11126 case "$with_customs" in
11127 ""|n|no|y|ye|yes) ;;
11128 *) if test -f "$with_customs/lib/libcustoms.a"; then
11130 else
11131 echo
11132 echo "WARNING: '$with_customs/lib' does not appear to contain the"
11133 echo " Customs library. You must build and install Customs"
11134 echo " before compiling GNU make."
11135 echo
11136 fi ;;
11137 esac
11139 case "$has_wait_nohang" in
11140 no) echo
11141 echo "WARNING: Your system has neither waitpid() nor wait3()."
11142 echo " Without one of these, signal handling is unreliable."
11143 echo " You should be aware that running GNU make with -j"
11144 echo " could result in erratic behavior."
11145 echo ;;
11146 esac
11148 case "$make_cv_job_server/$user_job_server" in
11149 no/yes) echo
11150 echo "WARNING: Make job server requires a POSIX-ish system that"
11151 echo " supports the pipe(), sigaction(), and either"
11152 echo " waitpid() or wait3() functions. Your system doesn't"
11153 echo " appear to provide one or more of those."
11154 echo " Disabling job server support."
11155 echo ;;
11156 esac
11159 # Specify what files are to be created.
11160 # We only generate the build.sh if we have a build.sh.in; we won't have
11161 # one before we've created a distribution.
11163 ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile"
11166 if test -f $srcdir/build.sh.in; then
11167 ac_config_files="$ac_config_files build.sh"
11172 # OK, do it!
11174 cat >confcache <<\_ACEOF
11175 # This file is a shell script that caches the results of configure
11176 # tests run on this system so they can be shared between configure
11177 # scripts and configure runs, see configure's option --config-cache.
11178 # It is not useful on other systems. If it contains results you don't
11179 # want to keep, you may remove or edit it.
11181 # config.status only pays attention to the cache file if you give it
11182 # the --recheck option to rerun configure.
11184 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11185 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11186 # following values.
11188 _ACEOF
11190 # The following way of writing the cache mishandles newlines in values,
11191 # but we know of no workaround that is simple, portable, and efficient.
11192 # So, don't put newlines in cache variables' values.
11193 # Ultrix sh set writes to stderr and can't be redirected directly,
11194 # and sets the high bit in the cache file unless we assign to the vars.
11196 (set) 2>&1 |
11197 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11198 *ac_space=\ *)
11199 # `set' does not quote correctly, so add quotes (double-quote
11200 # substitution turns \\\\ into \\, and sed turns \\ into \).
11201 sed -n \
11202 "s/'/'\\\\''/g;
11203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11206 # `set' quotes correctly as required by POSIX, so do not add quotes.
11207 sed -n \
11208 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11210 esac;
11212 sed '
11213 t clear
11214 : clear
11215 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11216 t end
11217 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11218 : end' >>confcache
11219 if cmp -s $cache_file confcache; then :; else
11220 if test -w $cache_file; then
11221 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11222 cat confcache >$cache_file
11223 else
11224 echo "not updating unwritable cache $cache_file"
11227 rm -f confcache
11229 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11230 # Let make expand exec_prefix.
11231 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11233 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11234 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11235 # trailing colons and then remove the whole line if VPATH becomes empty
11236 # (actually we leave an empty line to preserve line numbers).
11237 if test "x$srcdir" = x.; then
11238 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11239 s/:*\$(srcdir):*/:/;
11240 s/:*\${srcdir}:*/:/;
11241 s/:*@srcdir@:*/:/;
11242 s/^\([^=]*=[ ]*\):*/\1/;
11243 s/:*$//;
11244 s/^[^=]*=[ ]*$//;
11248 DEFS=-DHAVE_CONFIG_H
11250 ac_libobjs=
11251 ac_ltlibobjs=
11252 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11253 # 1. Remove the extension, and $U if already installed.
11254 ac_i=`echo "$ac_i" |
11255 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11256 # 2. Add them.
11257 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11258 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11259 done
11260 LIBOBJS=$ac_libobjs
11262 LTLIBOBJS=$ac_ltlibobjs
11265 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11266 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11267 Usually this means the macro was only invoked conditionally." >&5
11268 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11269 Usually this means the macro was only invoked conditionally." >&2;}
11270 { (exit 1); exit 1; }; }
11272 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11273 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11274 Usually this means the macro was only invoked conditionally." >&5
11275 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11276 Usually this means the macro was only invoked conditionally." >&2;}
11277 { (exit 1); exit 1; }; }
11279 if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
11280 { { echo "$as_me:$LINENO: error: conditional \"USE_CUSTOMS\" was never defined.
11281 Usually this means the macro was only invoked conditionally." >&5
11282 echo "$as_me: error: conditional \"USE_CUSTOMS\" was never defined.
11283 Usually this means the macro was only invoked conditionally." >&2;}
11284 { (exit 1); exit 1; }; }
11286 if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then
11287 { { echo "$as_me:$LINENO: error: conditional \"USE_LOCAL_GLOB\" was never defined.
11288 Usually this means the macro was only invoked conditionally." >&5
11289 echo "$as_me: error: conditional \"USE_LOCAL_GLOB\" was never defined.
11290 Usually this means the macro was only invoked conditionally." >&2;}
11291 { (exit 1); exit 1; }; }
11294 : ${CONFIG_STATUS=./config.status}
11295 ac_clean_files_save=$ac_clean_files
11296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11297 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11298 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11299 cat >$CONFIG_STATUS <<_ACEOF
11300 #! $SHELL
11301 # Generated by $as_me.
11302 # Run this file to recreate the current configuration.
11303 # Compiler output produced by configure, useful for debugging
11304 # configure, is in config.log if it exists.
11306 debug=false
11307 SHELL=\${CONFIG_SHELL-$SHELL}
11308 _ACEOF
11310 cat >>$CONFIG_STATUS <<\_ACEOF
11311 ## --------------------- ##
11312 ## M4sh Initialization. ##
11313 ## --------------------- ##
11315 # Be Bourne compatible
11316 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11317 emulate sh
11318 NULLCMD=:
11319 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11320 # is contrary to our usage. Disable this feature.
11321 alias -g '${1+"$@"}'='"$@"'
11322 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11323 set -o posix
11326 # Support unset when possible.
11327 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11328 as_unset=unset
11329 else
11330 as_unset=false
11334 # Work around bugs in pre-3.0 UWIN ksh.
11335 $as_unset ENV MAIL MAILPATH
11336 PS1='$ '
11337 PS2='> '
11338 PS4='+ '
11340 # NLS nuisances.
11341 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
11343 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11344 eval $as_var=C; export $as_var
11345 else
11346 $as_unset $as_var
11348 done
11350 # Required to use basename.
11351 if expr a : '\(a\)' >/dev/null 2>&1; then
11352 as_expr=expr
11353 else
11354 as_expr=false
11357 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11358 as_basename=basename
11359 else
11360 as_basename=false
11364 # Name of the executable.
11365 as_me=`$as_basename "$0" ||
11366 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11367 X"$0" : 'X\(//\)$' \| \
11368 X"$0" : 'X\(/\)$' \| \
11369 . : '\(.\)' 2>/dev/null ||
11370 echo X/"$0" |
11371 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11372 /^X\/\(\/\/\)$/{ s//\1/; q; }
11373 /^X\/\(\/\).*/{ s//\1/; q; }
11374 s/.*/./; q'`
11377 # PATH needs CR, and LINENO needs CR and PATH.
11378 # Avoid depending upon Character Ranges.
11379 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11380 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11381 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11382 as_cr_digits='0123456789'
11383 as_cr_alnum=$as_cr_Letters$as_cr_digits
11385 # The user is always right.
11386 if test "${PATH_SEPARATOR+set}" != set; then
11387 echo "#! /bin/sh" >conftest.sh
11388 echo "exit 0" >>conftest.sh
11389 chmod +x conftest.sh
11390 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
11391 PATH_SEPARATOR=';'
11392 else
11393 PATH_SEPARATOR=:
11395 rm -f conftest.sh
11399 as_lineno_1=$LINENO
11400 as_lineno_2=$LINENO
11401 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11402 test "x$as_lineno_1" != "x$as_lineno_2" &&
11403 test "x$as_lineno_3" = "x$as_lineno_2" || {
11404 # Find who we are. Look in the path if we contain no path at all
11405 # relative or not.
11406 case $0 in
11407 *[\\/]* ) as_myself=$0 ;;
11408 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in $PATH
11411 IFS=$as_save_IFS
11412 test -z "$as_dir" && as_dir=.
11413 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11414 done
11417 esac
11418 # We did not find ourselves, most probably we were run as `sh COMMAND'
11419 # in which case we are not to be found in the path.
11420 if test "x$as_myself" = x; then
11421 as_myself=$0
11423 if test ! -f "$as_myself"; then
11424 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11425 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11426 { (exit 1); exit 1; }; }
11428 case $CONFIG_SHELL in
11430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11433 IFS=$as_save_IFS
11434 test -z "$as_dir" && as_dir=.
11435 for as_base in sh bash ksh sh5; do
11436 case $as_dir in
11438 if ("$as_dir/$as_base" -c '
11439 as_lineno_1=$LINENO
11440 as_lineno_2=$LINENO
11441 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11442 test "x$as_lineno_1" != "x$as_lineno_2" &&
11443 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11444 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11445 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11446 CONFIG_SHELL=$as_dir/$as_base
11447 export CONFIG_SHELL
11448 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11449 fi;;
11450 esac
11451 done
11452 done
11454 esac
11456 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11457 # uniformly replaced by the line number. The first 'sed' inserts a
11458 # line-number line before each line; the second 'sed' does the real
11459 # work. The second script uses 'N' to pair each line-number line
11460 # with the numbered line, and appends trailing '-' during
11461 # substitution so that $LINENO is not a special case at line end.
11462 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11463 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11464 sed '=' <$as_myself |
11465 sed '
11467 s,$,-,
11468 : loop
11469 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11470 t loop
11471 s,-$,,
11472 s,^['$as_cr_digits']*\n,,
11473 ' >$as_me.lineno &&
11474 chmod +x $as_me.lineno ||
11475 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11476 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11477 { (exit 1); exit 1; }; }
11479 # Don't try to exec as it changes $[0], causing all sort of problems
11480 # (the dirname of $[0] is not the place where we might find the
11481 # original and so on. Autoconf is especially sensible to this).
11482 . ./$as_me.lineno
11483 # Exit status is that of the last command.
11484 exit
11488 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11489 *c*,-n*) ECHO_N= ECHO_C='
11490 ' ECHO_T=' ' ;;
11491 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11492 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11493 esac
11495 if expr a : '\(a\)' >/dev/null 2>&1; then
11496 as_expr=expr
11497 else
11498 as_expr=false
11501 rm -f conf$$ conf$$.exe conf$$.file
11502 echo >conf$$.file
11503 if ln -s conf$$.file conf$$ 2>/dev/null; then
11504 # We could just check for DJGPP; but this test a) works b) is more generic
11505 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11506 if test -f conf$$.exe; then
11507 # Don't use ln at all; we don't have any links
11508 as_ln_s='cp -p'
11509 else
11510 as_ln_s='ln -s'
11512 elif ln conf$$.file conf$$ 2>/dev/null; then
11513 as_ln_s=ln
11514 else
11515 as_ln_s='cp -p'
11517 rm -f conf$$ conf$$.exe conf$$.file
11519 if mkdir -p . 2>/dev/null; then
11520 as_mkdir_p=:
11521 else
11522 as_mkdir_p=false
11525 as_executable_p="test -f"
11527 # Sed expression to map a string onto a valid CPP name.
11528 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11530 # Sed expression to map a string onto a valid variable name.
11531 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11534 # IFS
11535 # We need space, tab and new line, in precisely that order.
11536 as_nl='
11538 IFS=" $as_nl"
11540 # CDPATH.
11541 $as_unset CDPATH
11543 exec 6>&1
11545 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11546 # report actual input values of CONFIG_FILES etc. instead of their
11547 # values after options handling. Logging --version etc. is OK.
11548 exec 5>>config.log
11550 echo
11551 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11552 ## Running $as_me. ##
11553 _ASBOX
11554 } >&5
11555 cat >&5 <<_CSEOF
11557 This file was extended by GNU make $as_me 3.80, which was
11558 generated by GNU Autoconf 2.54. Invocation command line was
11560 CONFIG_FILES = $CONFIG_FILES
11561 CONFIG_HEADERS = $CONFIG_HEADERS
11562 CONFIG_LINKS = $CONFIG_LINKS
11563 CONFIG_COMMANDS = $CONFIG_COMMANDS
11564 $ $0 $@
11566 _CSEOF
11567 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11568 echo >&5
11569 _ACEOF
11571 # Files that config.status was made for.
11572 if test -n "$ac_config_files"; then
11573 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11576 if test -n "$ac_config_headers"; then
11577 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11580 if test -n "$ac_config_links"; then
11581 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11584 if test -n "$ac_config_commands"; then
11585 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11588 cat >>$CONFIG_STATUS <<\_ACEOF
11590 ac_cs_usage="\
11591 \`$as_me' instantiates files from templates according to the
11592 current configuration.
11594 Usage: $0 [OPTIONS] [FILE]...
11596 -h, --help print this help, then exit
11597 -V, --version print version number, then exit
11598 -d, --debug don't remove temporary files
11599 --recheck update $as_me by reconfiguring in the same conditions
11600 --file=FILE[:TEMPLATE]
11601 instantiate the configuration file FILE
11602 --header=FILE[:TEMPLATE]
11603 instantiate the configuration header FILE
11605 Configuration files:
11606 $config_files
11608 Configuration headers:
11609 $config_headers
11611 Configuration commands:
11612 $config_commands
11614 Report bugs to <bug-autoconf@gnu.org>."
11615 _ACEOF
11617 cat >>$CONFIG_STATUS <<_ACEOF
11618 ac_cs_version="\\
11619 GNU make config.status 3.80
11620 configured by $0, generated by GNU Autoconf 2.54,
11621 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11623 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11624 Free Software Foundation, Inc.
11625 This config.status script is free software; the Free Software Foundation
11626 gives unlimited permission to copy, distribute and modify it."
11627 srcdir=$srcdir
11628 INSTALL="$INSTALL"
11629 _ACEOF
11631 cat >>$CONFIG_STATUS <<\_ACEOF
11632 # If no file are specified by the user, then we need to provide default
11633 # value. By we need to know if files were specified by the user.
11634 ac_need_defaults=:
11635 while test $# != 0
11637 case $1 in
11638 --*=*)
11639 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11640 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11641 ac_shift=:
11644 ac_option=$1
11645 ac_optarg=$2
11646 ac_shift=shift
11648 *) # This is not an option, so the user has probably given explicit
11649 # arguments.
11650 ac_option=$1
11651 ac_need_defaults=false;;
11652 esac
11654 case $ac_option in
11655 # Handling of the options.
11656 _ACEOF
11657 cat >>$CONFIG_STATUS <<_ACEOF
11658 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11659 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11660 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11661 _ACEOF
11662 cat >>$CONFIG_STATUS <<\_ACEOF
11663 --version | --vers* | -V )
11664 echo "$ac_cs_version"; exit 0 ;;
11665 --he | --h)
11666 # Conflict between --help and --header
11667 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11668 Try \`$0 --help' for more information." >&5
11669 echo "$as_me: error: ambiguous option: $1
11670 Try \`$0 --help' for more information." >&2;}
11671 { (exit 1); exit 1; }; };;
11672 --help | --hel | -h )
11673 echo "$ac_cs_usage"; exit 0 ;;
11674 --debug | --d* | -d )
11675 debug=: ;;
11676 --file | --fil | --fi | --f )
11677 $ac_shift
11678 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11679 ac_need_defaults=false;;
11680 --header | --heade | --head | --hea )
11681 $ac_shift
11682 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11683 ac_need_defaults=false;;
11685 # This is an error.
11686 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11687 Try \`$0 --help' for more information." >&5
11688 echo "$as_me: error: unrecognized option: $1
11689 Try \`$0 --help' for more information." >&2;}
11690 { (exit 1); exit 1; }; } ;;
11692 *) ac_config_targets="$ac_config_targets $1" ;;
11694 esac
11695 shift
11696 done
11698 _ACEOF
11700 cat >>$CONFIG_STATUS <<_ACEOF
11702 # INIT-COMMANDS section.
11705 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11706 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11707 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11708 # from automake.
11709 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
11710 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11711 LINGUAS="${LINGUAS-%UNSET%}"
11714 _ACEOF
11718 cat >>$CONFIG_STATUS <<\_ACEOF
11719 for ac_config_target in $ac_config_targets
11721 case "$ac_config_target" in
11722 # Handling of arguments.
11723 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11724 "glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
11725 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11726 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
11727 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11728 "build.sh" ) CONFIG_FILES="$CONFIG_FILES build.sh" ;;
11729 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11730 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11731 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11732 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11733 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11734 { (exit 1); exit 1; }; };;
11735 esac
11736 done
11738 # If the user did not use the arguments to specify the items to instantiate,
11739 # then the envvar interface is used. Set only those that are not.
11740 # We use the long form for the default assignment because of an extremely
11741 # bizarre bug on SunOS 4.1.3.
11742 if $ac_need_defaults; then
11743 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11744 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11745 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11748 # Create a temporary directory, and hook for its removal unless debugging.
11749 $debug ||
11751 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11752 trap '{ (exit 1); exit 1; }' 1 2 13 15
11755 # Create a (secure) tmp directory for tmp files.
11756 : ${TMPDIR=/tmp}
11758 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11759 test -n "$tmp" && test -d "$tmp"
11760 } ||
11762 tmp=$TMPDIR/cs$$-$RANDOM
11763 (umask 077 && mkdir $tmp)
11764 } ||
11766 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11767 { (exit 1); exit 1; }
11770 _ACEOF
11772 cat >>$CONFIG_STATUS <<_ACEOF
11775 # CONFIG_FILES section.
11778 # No need to generate the scripts if there are no CONFIG_FILES.
11779 # This happens for instance when ./config.status config.h
11780 if test -n "\$CONFIG_FILES"; then
11781 # Protect against being on the right side of a sed subst in config.status.
11782 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11783 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11784 s,@SHELL@,$SHELL,;t t
11785 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11786 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11787 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11788 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11789 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11790 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11791 s,@exec_prefix@,$exec_prefix,;t t
11792 s,@prefix@,$prefix,;t t
11793 s,@program_transform_name@,$program_transform_name,;t t
11794 s,@bindir@,$bindir,;t t
11795 s,@sbindir@,$sbindir,;t t
11796 s,@libexecdir@,$libexecdir,;t t
11797 s,@datadir@,$datadir,;t t
11798 s,@sysconfdir@,$sysconfdir,;t t
11799 s,@sharedstatedir@,$sharedstatedir,;t t
11800 s,@localstatedir@,$localstatedir,;t t
11801 s,@libdir@,$libdir,;t t
11802 s,@includedir@,$includedir,;t t
11803 s,@oldincludedir@,$oldincludedir,;t t
11804 s,@infodir@,$infodir,;t t
11805 s,@mandir@,$mandir,;t t
11806 s,@build_alias@,$build_alias,;t t
11807 s,@host_alias@,$host_alias,;t t
11808 s,@target_alias@,$target_alias,;t t
11809 s,@DEFS@,$DEFS,;t t
11810 s,@ECHO_C@,$ECHO_C,;t t
11811 s,@ECHO_N@,$ECHO_N,;t t
11812 s,@ECHO_T@,$ECHO_T,;t t
11813 s,@LIBS@,$LIBS,;t t
11814 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11815 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11816 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11817 s,@CYGPATH_W@,$CYGPATH_W,;t t
11818 s,@PACKAGE@,$PACKAGE,;t t
11819 s,@VERSION@,$VERSION,;t t
11820 s,@ACLOCAL@,$ACLOCAL,;t t
11821 s,@AUTOCONF@,$AUTOCONF,;t t
11822 s,@AUTOMAKE@,$AUTOMAKE,;t t
11823 s,@AUTOHEADER@,$AUTOHEADER,;t t
11824 s,@MAKEINFO@,$MAKEINFO,;t t
11825 s,@AMTAR@,$AMTAR,;t t
11826 s,@install_sh@,$install_sh,;t t
11827 s,@STRIP@,$STRIP,;t t
11828 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11829 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11830 s,@AWK@,$AWK,;t t
11831 s,@SET_MAKE@,$SET_MAKE,;t t
11832 s,@CC@,$CC,;t t
11833 s,@CFLAGS@,$CFLAGS,;t t
11834 s,@LDFLAGS@,$LDFLAGS,;t t
11835 s,@CPPFLAGS@,$CPPFLAGS,;t t
11836 s,@ac_ct_CC@,$ac_ct_CC,;t t
11837 s,@EXEEXT@,$EXEEXT,;t t
11838 s,@OBJEXT@,$OBJEXT,;t t
11839 s,@DEPDIR@,$DEPDIR,;t t
11840 s,@am__include@,$am__include,;t t
11841 s,@am__quote@,$am__quote,;t t
11842 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11843 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11844 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11845 s,@CCDEPMODE@,$CCDEPMODE,;t t
11846 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11847 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11848 s,@RANLIB@,$RANLIB,;t t
11849 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11850 s,@CPP@,$CPP,;t t
11851 s,@AR@,$AR,;t t
11852 s,@PERL@,$PERL,;t t
11853 s,@build@,$build,;t t
11854 s,@build_cpu@,$build_cpu,;t t
11855 s,@build_vendor@,$build_vendor,;t t
11856 s,@build_os@,$build_os,;t t
11857 s,@host@,$host,;t t
11858 s,@host_cpu@,$host_cpu,;t t
11859 s,@host_vendor@,$host_vendor,;t t
11860 s,@host_os@,$host_os,;t t
11861 s,@EGREP@,$EGREP,;t t
11862 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11863 s,@MSGFMT@,$MSGFMT,;t t
11864 s,@GMSGFMT@,$GMSGFMT,;t t
11865 s,@XGETTEXT@,$XGETTEXT,;t t
11866 s,@MSGMERGE@,$MSGMERGE,;t t
11867 s,@USE_NLS@,$USE_NLS,;t t
11868 s,@LIBICONV@,$LIBICONV,;t t
11869 s,@LTLIBICONV@,$LTLIBICONV,;t t
11870 s,@INTLLIBS@,$INTLLIBS,;t t
11871 s,@LIBINTL@,$LIBINTL,;t t
11872 s,@LTLIBINTL@,$LTLIBINTL,;t t
11873 s,@POSUB@,$POSUB,;t t
11874 s,@ALLOCA@,$ALLOCA,;t t
11875 s,@LIBOBJS@,$LIBOBJS,;t t
11876 s,@NEED_SETGID@,$NEED_SETGID,;t t
11877 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
11878 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
11879 s,@USE_CUSTOMS_TRUE@,$USE_CUSTOMS_TRUE,;t t
11880 s,@USE_CUSTOMS_FALSE@,$USE_CUSTOMS_FALSE,;t t
11881 s,@GLOBINC@,$GLOBINC,;t t
11882 s,@GLOBLIB@,$GLOBLIB,;t t
11883 s,@USE_LOCAL_GLOB_TRUE@,$USE_LOCAL_GLOB_TRUE,;t t
11884 s,@USE_LOCAL_GLOB_FALSE@,$USE_LOCAL_GLOB_FALSE,;t t
11885 s,@MAKE_HOST@,$MAKE_HOST,;t t
11886 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11887 /@MAINT_MAKEFILE@/r $MAINT_MAKEFILE
11888 s,@MAINT_MAKEFILE@,,;t t
11889 CEOF
11891 _ACEOF
11893 cat >>$CONFIG_STATUS <<\_ACEOF
11894 # Split the substitutions into bite-sized pieces for seds with
11895 # small command number limits, like on Digital OSF/1 and HP-UX.
11896 ac_max_sed_lines=48
11897 ac_sed_frag=1 # Number of current file.
11898 ac_beg=1 # First line for current file.
11899 ac_end=$ac_max_sed_lines # Line after last line for current file.
11900 ac_more_lines=:
11901 ac_sed_cmds=
11902 while $ac_more_lines; do
11903 if test $ac_beg -gt 1; then
11904 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11905 else
11906 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11908 if test ! -s $tmp/subs.frag; then
11909 ac_more_lines=false
11910 else
11911 # The purpose of the label and of the branching condition is to
11912 # speed up the sed processing (if there are no `@' at all, there
11913 # is no need to browse any of the substitutions).
11914 # These are the two extra sed commands mentioned above.
11915 (echo ':t
11916 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11917 if test -z "$ac_sed_cmds"; then
11918 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11919 else
11920 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11922 ac_sed_frag=`expr $ac_sed_frag + 1`
11923 ac_beg=$ac_end
11924 ac_end=`expr $ac_end + $ac_max_sed_lines`
11926 done
11927 if test -z "$ac_sed_cmds"; then
11928 ac_sed_cmds=cat
11930 fi # test -n "$CONFIG_FILES"
11932 _ACEOF
11933 cat >>$CONFIG_STATUS <<\_ACEOF
11934 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11935 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11936 case $ac_file in
11937 - | *:- | *:-:* ) # input from stdin
11938 cat >$tmp/stdin
11939 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11940 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11941 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11942 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11943 * ) ac_file_in=$ac_file.in ;;
11944 esac
11946 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11947 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11948 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11949 X"$ac_file" : 'X\(//\)[^/]' \| \
11950 X"$ac_file" : 'X\(//\)$' \| \
11951 X"$ac_file" : 'X\(/\)' \| \
11952 . : '\(.\)' 2>/dev/null ||
11953 echo X"$ac_file" |
11954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11955 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11956 /^X\(\/\/\)$/{ s//\1/; q; }
11957 /^X\(\/\).*/{ s//\1/; q; }
11958 s/.*/./; q'`
11959 { if $as_mkdir_p; then
11960 mkdir -p "$ac_dir"
11961 else
11962 as_dir="$ac_dir"
11963 as_dirs=
11964 while test ! -d "$as_dir"; do
11965 as_dirs="$as_dir $as_dirs"
11966 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11968 X"$as_dir" : 'X\(//\)[^/]' \| \
11969 X"$as_dir" : 'X\(//\)$' \| \
11970 X"$as_dir" : 'X\(/\)' \| \
11971 . : '\(.\)' 2>/dev/null ||
11972 echo X"$as_dir" |
11973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11974 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11975 /^X\(\/\/\)$/{ s//\1/; q; }
11976 /^X\(\/\).*/{ s//\1/; q; }
11977 s/.*/./; q'`
11978 done
11979 test ! -n "$as_dirs" || mkdir $as_dirs
11980 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11981 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11982 { (exit 1); exit 1; }; }; }
11984 ac_builddir=.
11986 if test "$ac_dir" != .; then
11987 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11988 # A "../" for each directory in $ac_dir_suffix.
11989 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11990 else
11991 ac_dir_suffix= ac_top_builddir=
11994 case $srcdir in
11995 .) # No --srcdir option. We are building in place.
11996 ac_srcdir=.
11997 if test -z "$ac_top_builddir"; then
11998 ac_top_srcdir=.
11999 else
12000 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12001 fi ;;
12002 [\\/]* | ?:[\\/]* ) # Absolute path.
12003 ac_srcdir=$srcdir$ac_dir_suffix;
12004 ac_top_srcdir=$srcdir ;;
12005 *) # Relative path.
12006 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12007 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12008 esac
12009 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12010 # absolute.
12011 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12012 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12013 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12014 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12017 case $INSTALL in
12018 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12019 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12020 esac
12022 if test x"$ac_file" != x-; then
12023 { echo "$as_me:$LINENO: creating $ac_file" >&5
12024 echo "$as_me: creating $ac_file" >&6;}
12025 rm -f "$ac_file"
12027 # Let's still pretend it is `configure' which instantiates (i.e., don't
12028 # use $as_me), people would be surprised to read:
12029 # /* config.h. Generated by config.status. */
12030 if test x"$ac_file" = x-; then
12031 configure_input=
12032 else
12033 configure_input="$ac_file. "
12035 configure_input=$configure_input"Generated from `echo $ac_file_in |
12036 sed 's,.*/,,'` by configure."
12038 # First look for the input files in the build tree, otherwise in the
12039 # src tree.
12040 ac_file_inputs=`IFS=:
12041 for f in $ac_file_in; do
12042 case $f in
12043 -) echo $tmp/stdin ;;
12044 [\\/$]*)
12045 # Absolute (can't be DOS-style, as IFS=:)
12046 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12047 echo "$as_me: error: cannot find input file: $f" >&2;}
12048 { (exit 1); exit 1; }; }
12049 echo $f;;
12050 *) # Relative
12051 if test -f "$f"; then
12052 # Build tree
12053 echo $f
12054 elif test -f "$srcdir/$f"; then
12055 # Source tree
12056 echo $srcdir/$f
12057 else
12058 # /dev/null tree
12059 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12060 echo "$as_me: error: cannot find input file: $f" >&2;}
12061 { (exit 1); exit 1; }; }
12062 fi;;
12063 esac
12064 done` || { (exit 1); exit 1; }
12065 _ACEOF
12066 cat >>$CONFIG_STATUS <<_ACEOF
12067 sed "$ac_vpsub
12068 $extrasub
12069 _ACEOF
12070 cat >>$CONFIG_STATUS <<\_ACEOF
12072 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12073 s,@configure_input@,$configure_input,;t t
12074 s,@srcdir@,$ac_srcdir,;t t
12075 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12076 s,@top_srcdir@,$ac_top_srcdir,;t t
12077 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12078 s,@builddir@,$ac_builddir,;t t
12079 s,@abs_builddir@,$ac_abs_builddir,;t t
12080 s,@top_builddir@,$ac_top_builddir,;t t
12081 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12082 s,@INSTALL@,$ac_INSTALL,;t t
12083 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12084 rm -f $tmp/stdin
12085 if test x"$ac_file" != x-; then
12086 mv $tmp/out $ac_file
12087 else
12088 cat $tmp/out
12089 rm -f $tmp/out
12092 done
12093 _ACEOF
12094 cat >>$CONFIG_STATUS <<\_ACEOF
12097 # CONFIG_HEADER section.
12100 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12101 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12103 # ac_d sets the value in "#define NAME VALUE" lines.
12104 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12105 ac_dB='[ ].*$,\1#\2'
12106 ac_dC=' '
12107 ac_dD=',;t'
12108 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12109 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12110 ac_uB='$,\1#\2define\3'
12111 ac_uC=' '
12112 ac_uD=',;t'
12114 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12115 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12116 case $ac_file in
12117 - | *:- | *:-:* ) # input from stdin
12118 cat >$tmp/stdin
12119 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12120 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12121 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12122 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12123 * ) ac_file_in=$ac_file.in ;;
12124 esac
12126 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12127 echo "$as_me: creating $ac_file" >&6;}
12129 # First look for the input files in the build tree, otherwise in the
12130 # src tree.
12131 ac_file_inputs=`IFS=:
12132 for f in $ac_file_in; do
12133 case $f in
12134 -) echo $tmp/stdin ;;
12135 [\\/$]*)
12136 # Absolute (can't be DOS-style, as IFS=:)
12137 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12138 echo "$as_me: error: cannot find input file: $f" >&2;}
12139 { (exit 1); exit 1; }; }
12140 echo $f;;
12141 *) # Relative
12142 if test -f "$f"; then
12143 # Build tree
12144 echo $f
12145 elif test -f "$srcdir/$f"; then
12146 # Source tree
12147 echo $srcdir/$f
12148 else
12149 # /dev/null tree
12150 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12151 echo "$as_me: error: cannot find input file: $f" >&2;}
12152 { (exit 1); exit 1; }; }
12153 fi;;
12154 esac
12155 done` || { (exit 1); exit 1; }
12156 # Remove the trailing spaces.
12157 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12159 _ACEOF
12161 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12162 # `conftest.undefs', that substitutes the proper values into
12163 # config.h.in to produce config.h. The first handles `#define'
12164 # templates, and the second `#undef' templates.
12165 # And first: Protect against being on the right side of a sed subst in
12166 # config.status. Protect against being in an unquoted here document
12167 # in config.status.
12168 rm -f conftest.defines conftest.undefs
12169 # Using a here document instead of a string reduces the quoting nightmare.
12170 # Putting comments in sed scripts is not portable.
12172 # `end' is used to avoid that the second main sed command (meant for
12173 # 0-ary CPP macros) applies to n-ary macro definitions.
12174 # See the Autoconf documentation for `clear'.
12175 cat >confdef2sed.sed <<\_ACEOF
12176 s/[\\&,]/\\&/g
12177 s,[\\$`],\\&,g
12178 t clear
12179 : clear
12180 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12181 t end
12182 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12183 : end
12184 _ACEOF
12185 # If some macros were called several times there might be several times
12186 # the same #defines, which is useless. Nevertheless, we may not want to
12187 # sort them, since we want the *last* AC-DEFINE to be honored.
12188 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12189 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12190 rm -f confdef2sed.sed
12192 # This sed command replaces #undef with comments. This is necessary, for
12193 # example, in the case of _POSIX_SOURCE, which is predefined and required
12194 # on some systems where configure will not decide to define it.
12195 cat >>conftest.undefs <<\_ACEOF
12196 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12197 _ACEOF
12199 # Break up conftest.defines because some shells have a limit on the size
12200 # of here documents, and old seds have small limits too (100 cmds).
12201 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12202 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12203 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12204 echo ' :' >>$CONFIG_STATUS
12205 rm -f conftest.tail
12206 while grep . conftest.defines >/dev/null
12208 # Write a limited-size here document to $tmp/defines.sed.
12209 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12210 # Speed up: don't consider the non `#define' lines.
12211 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12212 # Work around the forget-to-reset-the-flag bug.
12213 echo 't clr' >>$CONFIG_STATUS
12214 echo ': clr' >>$CONFIG_STATUS
12215 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12216 echo 'CEOF
12217 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12218 rm -f $tmp/in
12219 mv $tmp/out $tmp/in
12220 ' >>$CONFIG_STATUS
12221 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12222 rm -f conftest.defines
12223 mv conftest.tail conftest.defines
12224 done
12225 rm -f conftest.defines
12226 echo ' fi # grep' >>$CONFIG_STATUS
12227 echo >>$CONFIG_STATUS
12229 # Break up conftest.undefs because some shells have a limit on the size
12230 # of here documents, and old seds have small limits too (100 cmds).
12231 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12232 rm -f conftest.tail
12233 while grep . conftest.undefs >/dev/null
12235 # Write a limited-size here document to $tmp/undefs.sed.
12236 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12237 # Speed up: don't consider the non `#undef'
12238 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12239 # Work around the forget-to-reset-the-flag bug.
12240 echo 't clr' >>$CONFIG_STATUS
12241 echo ': clr' >>$CONFIG_STATUS
12242 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12243 echo 'CEOF
12244 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12245 rm -f $tmp/in
12246 mv $tmp/out $tmp/in
12247 ' >>$CONFIG_STATUS
12248 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12249 rm -f conftest.undefs
12250 mv conftest.tail conftest.undefs
12251 done
12252 rm -f conftest.undefs
12254 cat >>$CONFIG_STATUS <<\_ACEOF
12255 # Let's still pretend it is `configure' which instantiates (i.e., don't
12256 # use $as_me), people would be surprised to read:
12257 # /* config.h. Generated by config.status. */
12258 if test x"$ac_file" = x-; then
12259 echo "/* Generated by configure. */" >$tmp/config.h
12260 else
12261 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12263 cat $tmp/in >>$tmp/config.h
12264 rm -f $tmp/in
12265 if test x"$ac_file" != x-; then
12266 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12267 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12268 echo "$as_me: $ac_file is unchanged" >&6;}
12269 else
12270 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12271 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12272 X"$ac_file" : 'X\(//\)[^/]' \| \
12273 X"$ac_file" : 'X\(//\)$' \| \
12274 X"$ac_file" : 'X\(/\)' \| \
12275 . : '\(.\)' 2>/dev/null ||
12276 echo X"$ac_file" |
12277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12279 /^X\(\/\/\)$/{ s//\1/; q; }
12280 /^X\(\/\).*/{ s//\1/; q; }
12281 s/.*/./; q'`
12282 { if $as_mkdir_p; then
12283 mkdir -p "$ac_dir"
12284 else
12285 as_dir="$ac_dir"
12286 as_dirs=
12287 while test ! -d "$as_dir"; do
12288 as_dirs="$as_dir $as_dirs"
12289 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12290 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12291 X"$as_dir" : 'X\(//\)[^/]' \| \
12292 X"$as_dir" : 'X\(//\)$' \| \
12293 X"$as_dir" : 'X\(/\)' \| \
12294 . : '\(.\)' 2>/dev/null ||
12295 echo X"$as_dir" |
12296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12298 /^X\(\/\/\)$/{ s//\1/; q; }
12299 /^X\(\/\).*/{ s//\1/; q; }
12300 s/.*/./; q'`
12301 done
12302 test ! -n "$as_dirs" || mkdir $as_dirs
12303 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12304 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12305 { (exit 1); exit 1; }; }; }
12307 rm -f $ac_file
12308 mv $tmp/config.h $ac_file
12310 else
12311 cat $tmp/config.h
12312 rm -f $tmp/config.h
12314 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
12315 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12316 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12317 X$ac_file : 'X\(//\)[^/]' \| \
12318 X$ac_file : 'X\(//\)$' \| \
12319 X$ac_file : 'X\(/\)' \| \
12320 . : '\(.\)' 2>/dev/null ||
12321 echo X$ac_file |
12322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12324 /^X\(\/\/\)$/{ s//\1/; q; }
12325 /^X\(\/\).*/{ s//\1/; q; }
12326 s/.*/./; q'`/stamp-h$_am_stamp_count
12327 done
12328 _ACEOF
12329 cat >>$CONFIG_STATUS <<\_ACEOF
12332 # CONFIG_COMMANDS section.
12334 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12335 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12336 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12337 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12338 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12339 X"$ac_dest" : 'X\(//\)[^/]' \| \
12340 X"$ac_dest" : 'X\(//\)$' \| \
12341 X"$ac_dest" : 'X\(/\)' \| \
12342 . : '\(.\)' 2>/dev/null ||
12343 echo X"$ac_dest" |
12344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12346 /^X\(\/\/\)$/{ s//\1/; q; }
12347 /^X\(\/\).*/{ s//\1/; q; }
12348 s/.*/./; q'`
12349 ac_builddir=.
12351 if test "$ac_dir" != .; then
12352 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12353 # A "../" for each directory in $ac_dir_suffix.
12354 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12355 else
12356 ac_dir_suffix= ac_top_builddir=
12359 case $srcdir in
12360 .) # No --srcdir option. We are building in place.
12361 ac_srcdir=.
12362 if test -z "$ac_top_builddir"; then
12363 ac_top_srcdir=.
12364 else
12365 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12366 fi ;;
12367 [\\/]* | ?:[\\/]* ) # Absolute path.
12368 ac_srcdir=$srcdir$ac_dir_suffix;
12369 ac_top_srcdir=$srcdir ;;
12370 *) # Relative path.
12371 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12372 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12373 esac
12374 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12375 # absolute.
12376 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12377 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12378 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12379 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12382 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12383 echo "$as_me: executing $ac_dest commands" >&6;}
12384 case $ac_dest in
12385 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12386 # Strip MF so we end up with the name of the file.
12387 mf=`echo "$mf" | sed -e 's/:.*$//'`
12388 # Check whether this is an Automake generated Makefile or not.
12389 # We used to match only the files named `Makefile.in', but
12390 # some people rename them; so instead we look at the file content.
12391 # Grep'ing the first line is not enough: some people post-process
12392 # each Makefile.in and add a new line on top of each file to say so.
12393 # So let's grep whole file.
12394 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12395 dirpart=`(dirname "$mf") 2>/dev/null ||
12396 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12397 X"$mf" : 'X\(//\)[^/]' \| \
12398 X"$mf" : 'X\(//\)$' \| \
12399 X"$mf" : 'X\(/\)' \| \
12400 . : '\(.\)' 2>/dev/null ||
12401 echo X"$mf" |
12402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12404 /^X\(\/\/\)$/{ s//\1/; q; }
12405 /^X\(\/\).*/{ s//\1/; q; }
12406 s/.*/./; q'`
12407 else
12408 continue
12410 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12411 # Extract the definition of DEP_FILES from the Makefile without
12412 # running `make'.
12413 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12414 test -z "$DEPDIR" && continue
12415 # When using ansi2knr, U may be empty or an underscore; expand it
12416 U=`sed -n -e '/^U = / s///p' < "$mf"`
12417 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12418 # We invoke sed twice because it is the simplest approach to
12419 # changing $(DEPDIR) to its actual value in the expansion.
12420 for file in `sed -n -e '
12421 /^DEP_FILES = .*\\\\$/ {
12422 s/^DEP_FILES = //
12423 :loop
12424 s/\\\\$//
12427 /\\\\$/ b loop
12430 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12431 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12432 # Make sure the directory exists.
12433 test -f "$dirpart/$file" && continue
12434 fdir=`(dirname "$file") 2>/dev/null ||
12435 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12436 X"$file" : 'X\(//\)[^/]' \| \
12437 X"$file" : 'X\(//\)$' \| \
12438 X"$file" : 'X\(/\)' \| \
12439 . : '\(.\)' 2>/dev/null ||
12440 echo X"$file" |
12441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12443 /^X\(\/\/\)$/{ s//\1/; q; }
12444 /^X\(\/\).*/{ s//\1/; q; }
12445 s/.*/./; q'`
12446 { if $as_mkdir_p; then
12447 mkdir -p $dirpart/$fdir
12448 else
12449 as_dir=$dirpart/$fdir
12450 as_dirs=
12451 while test ! -d "$as_dir"; do
12452 as_dirs="$as_dir $as_dirs"
12453 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12455 X"$as_dir" : 'X\(//\)[^/]' \| \
12456 X"$as_dir" : 'X\(//\)$' \| \
12457 X"$as_dir" : 'X\(/\)' \| \
12458 . : '\(.\)' 2>/dev/null ||
12459 echo X"$as_dir" |
12460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12462 /^X\(\/\/\)$/{ s//\1/; q; }
12463 /^X\(\/\).*/{ s//\1/; q; }
12464 s/.*/./; q'`
12465 done
12466 test ! -n "$as_dirs" || mkdir $as_dirs
12467 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12468 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12469 { (exit 1); exit 1; }; }; }
12471 # echo "creating $dirpart/$file"
12472 echo '# dummy' > "$dirpart/$file"
12473 done
12474 done
12476 default-1 )
12477 for ac_file in $CONFIG_FILES; do
12478 # Support "outfile[:infile[:infile...]]"
12479 case "$ac_file" in
12480 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12481 esac
12482 # PO directories have a Makefile.in generated from Makefile.in.in.
12483 case "$ac_file" in */Makefile.in)
12484 # Adjust a relative srcdir.
12485 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12486 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12487 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12488 # In autoconf-2.13 it is called $ac_given_srcdir.
12489 # In autoconf-2.50 it is called $srcdir.
12490 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12491 case "$ac_given_srcdir" in
12492 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12493 /*) top_srcdir="$ac_given_srcdir" ;;
12494 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12495 esac
12496 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12497 rm -f "$ac_dir/POTFILES"
12498 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12499 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12500 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
12501 # on $ac_dir but don't depend on user-specified configuration
12502 # parameters.
12503 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12504 # The LINGUAS file contains the set of available languages.
12505 if test -n "$ALL_LINGUAS"; then
12506 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12508 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12509 # Hide the ALL_LINGUAS assigment from automake.
12510 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12512 case "$ac_given_srcdir" in
12513 .) srcdirpre= ;;
12514 *) srcdirpre='$(srcdir)/' ;;
12515 esac
12516 POFILES=
12517 GMOFILES=
12518 UPDATEPOFILES=
12519 DUMMYPOFILES=
12520 for lang in $ALL_LINGUAS; do
12521 POFILES="$POFILES $srcdirpre$lang.po"
12522 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12523 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12524 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12525 done
12526 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12527 # environment variable.
12528 INST_LINGUAS=
12529 if test -n "$ALL_LINGUAS"; then
12530 for presentlang in $ALL_LINGUAS; do
12531 useit=no
12532 if test "%UNSET%" != "$LINGUAS"; then
12533 desiredlanguages="$LINGUAS"
12534 else
12535 desiredlanguages="$ALL_LINGUAS"
12537 for desiredlang in $desiredlanguages; do
12538 # Use the presentlang catalog if desiredlang is
12539 # a. equal to presentlang, or
12540 # b. a variant of presentlang (because in this case,
12541 # presentlang can be used as a fallback for messages
12542 # which are not translated in the desiredlang catalog).
12543 case "$desiredlang" in
12544 "$presentlang"*) useit=yes;;
12545 esac
12546 done
12547 if test $useit = yes; then
12548 INST_LINGUAS="$INST_LINGUAS $presentlang"
12550 done
12552 CATALOGS=
12553 if test -n "$INST_LINGUAS"; then
12554 for lang in $INST_LINGUAS; do
12555 CATALOGS="$CATALOGS $lang.gmo"
12556 done
12558 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12559 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12560 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12561 if test -f "$f"; then
12562 case "$f" in
12563 *.orig | *.bak | *~) ;;
12564 *) cat "$f" >> "$ac_dir/Makefile" ;;
12565 esac
12567 done
12570 esac
12571 done ;;
12572 esac
12573 done
12574 _ACEOF
12576 cat >>$CONFIG_STATUS <<\_ACEOF
12578 { (exit 0); exit 0; }
12579 _ACEOF
12580 chmod +x $CONFIG_STATUS
12581 ac_clean_files=$ac_clean_files_save
12584 # configure is writing to config.log, and then calls config.status.
12585 # config.status does its own redirection, appending to config.log.
12586 # Unfortunately, on DOS this fails, as config.log is still kept open
12587 # by configure, so config.status won't be able to write to it; its
12588 # output is simply discarded. So we exec the FD to /dev/null,
12589 # effectively closing config.log, so it can be properly (re)opened and
12590 # appended to by config.status. When coming back to configure, we
12591 # need to make the FD available again.
12592 if test "$no_create" != yes; then
12593 ac_cs_success=:
12594 exec 5>/dev/null
12595 $SHELL $CONFIG_STATUS || ac_cs_success=false
12596 exec 5>>config.log
12597 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12598 # would make configure fail if this is the last instruction.
12599 $ac_cs_success || { (exit 1); exit 1; }