configure revision 1.4 1 #! /bin/sh
2 # From configure.in Id: configure.in,v 1.142 2006/04/01 06:36:40 psmith Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GNU make 3.81.
5 #
6 # Report bugs to <bug-make (at] gnu.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46 do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100 fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
156 ;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS=" $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='GNU make'
272 PACKAGE_TARNAME='make'
273 PACKAGE_VERSION='3.81'
274 PACKAGE_STRING='GNU make 3.81'
275 PACKAGE_BUGREPORT='bug-make (at] gnu.org'
276
277 ac_unique_file="vpath.c"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP AR PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP U ANSI2KNR MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB ALLOCA LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS REMOTE USE_CUSTOMS_TRUE USE_CUSTOMS_FALSE GLOBINC GLOBLIB USE_LOCAL_GLOB_TRUE USE_LOCAL_GLOB_FALSE MAKE_HOST WINDOWSENV_TRUE WINDOWSENV_FALSE LTLIBOBJS'
316 ac_subst_files='MAINT_MAKEFILE'
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653 done
654
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675 do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728 else
729 ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776
777 #
778 # Report the --help message.
779 #
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures GNU make 3.81 to adapt to many kinds of systems.
785
786 Usage: $0 [OPTION]... [VAR=VALUE]...
787
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
790
791 Defaults for the options are specified in brackets.
792
793 Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803
804 _ACEOF
805
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
812
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
817
818 For better control, use the options below.
819
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
834
835 cat <<\_ACEOF
836
837 Program names:
838 --program-prefix=PREFIX prepend PREFIX to installed program names
839 --program-suffix=SUFFIX append SUFFIX to installed program names
840 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841
842 System types:
843 --build=BUILD configure for building on BUILD [guessed]
844 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845 _ACEOF
846 fi
847
848 if test -n "$ac_init_help"; then
849 case $ac_init_help in
850 short | recursive ) echo "Configuration of GNU make 3.81:";;
851 esac
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-dependency-tracking speeds up one-time build
858 --enable-dependency-tracking do not reject slow dependency extractors
859 --disable-nls do not use Native Language Support
860 --disable-rpath do not hardcode runtime library paths
861 --disable-largefile omit support for large files
862 --enable-case-insensitive-file-system
863 enable case insensitive file system support
864 --disable-job-server disallow recursive make communication during -jN
865
866 Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
871 --without-libiconv-prefix don't search for libiconv in includedir and libdir
872 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
873 --without-libintl-prefix don't search for libintl in includedir and libdir
874 --with-customs=DIR enable remote jobs via Customs--see README.customs
875 --with-dmalloc use dmalloc, as in
876 http://www.dmalloc.com/dmalloc.tar.gz
877
878 Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
885 CPP C preprocessor
886
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
889
890 Report bugs to <bug-make@gnu.org>.
891 _ACEOF
892 fi
893
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
896 ac_popdir=`pwd`
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
899 ac_builddir=.
900
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906 ac_dir_suffix= ac_top_builddir=
907 fi
908
909 case $srcdir in
910 .) # No --srcdir option. We are building in place.
911 ac_srcdir=.
912 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=.
914 else
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 fi ;;
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
920 *) # Relative path.
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
924
925 # Do not use `cd foo && pwd` to compute absolute paths, because
926 # the directories may not exist.
927 case `pwd` in
928 .) ac_abs_builddir="$ac_dir";;
929 *)
930 case "$ac_dir" in
931 .) ac_abs_builddir=`pwd`;;
932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *)
939 case ${ac_top_builddir}. in
940 .) ac_abs_top_builddir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_srcdir=$ac_srcdir;;
947 *)
948 case $ac_srcdir in
949 .) ac_abs_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952 esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *)
957 case $ac_top_srcdir in
958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 esac;;
962 esac
963
964 cd $ac_dir
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
967 echo
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
970 echo
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
974 echo
975 $ac_configure --help
976 else
977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 fi
979 cd "$ac_popdir"
980 done
981 fi
982
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
985 cat <<\_ACEOF
986 GNU make configure 3.81
987 generated by GNU Autoconf 2.59
988
989 Copyright (C) 2003 Free Software Foundation, Inc.
990 This configure script is free software; the Free Software Foundation
991 gives unlimited permission to copy, distribute and modify it.
992 _ACEOF
993 exit 0
994 fi
995 exec 5>config.log
996 cat >&5 <<_ACEOF
997 This file contains any messages produced by compilers while
998 running configure, to aid debugging if configure makes a mistake.
999
1000 It was created by GNU make $as_me 3.81, which was
1001 generated by GNU Autoconf 2.59. Invocation command line was
1002
1003 $ $0 $@
1004
1005 _ACEOF
1006 {
1007 cat <<_ASUNAME
1008 ## --------- ##
1009 ## Platform. ##
1010 ## --------- ##
1011
1012 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1013 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1014 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1015 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1016 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017
1018 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1019 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020
1021 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1022 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1023 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1024 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1025 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1026 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1027 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1028
1029 _ASUNAME
1030
1031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1032 for as_dir in $PATH
1033 do
1034 IFS=$as_save_IFS
1035 test -z "$as_dir" && as_dir=.
1036 echo "PATH: $as_dir"
1037 done
1038
1039 } >&5
1040
1041 cat >&5 <<_ACEOF
1042
1043
1044 ## ----------- ##
1045 ## Core tests. ##
1046 ## ----------- ##
1047
1048 _ACEOF
1049
1050
1051 # Keep a trace of the command line.
1052 # Strip out --no-create and --no-recursion so they do not pile up.
1053 # Strip out --silent because we don't want to record it for future runs.
1054 # Also quote any args containing shell meta-characters.
1055 # Make two passes to allow for proper duplicate-argument suppression.
1056 ac_configure_args=
1057 ac_configure_args0=
1058 ac_configure_args1=
1059 ac_sep=
1060 ac_must_keep_next=false
1061 for ac_pass in 1 2
1062 do
1063 for ac_arg
1064 do
1065 case $ac_arg in
1066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 continue ;;
1070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072 esac
1073 case $ac_pass in
1074 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075 2)
1076 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077 if test $ac_must_keep_next = true; then
1078 ac_must_keep_next=false # Got value, back to normal.
1079 else
1080 case $ac_arg in
1081 *=* | --config-cache | -C | -disable-* | --disable-* \
1082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084 | -with-* | --with-* | -without-* | --without-* | --x)
1085 case "$ac_configure_args0 " in
1086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1087 esac
1088 ;;
1089 -* ) ac_must_keep_next=true ;;
1090 esac
1091 fi
1092 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093 # Get rid of the leading space.
1094 ac_sep=" "
1095 ;;
1096 esac
1097 done
1098 done
1099 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101
1102 # When interrupted or exit'd, cleanup temporary files, and complete
1103 # config.log. We remove comments because anyway the quotes in there
1104 # would cause problems or look ugly.
1105 # WARNING: Be sure not to use single quotes in there, as some shells,
1106 # such as our DU 5.0 friend, will then `close' the trap.
1107 trap 'exit_status=$?
1108 # Save into config.log some information that might help in debugging.
1109 {
1110 echo
1111
1112 cat <<\_ASBOX
1113 ## ---------------- ##
1114 ## Cache variables. ##
1115 ## ---------------- ##
1116 _ASBOX
1117 echo
1118 # The following way of writing the cache mishandles newlines in values,
1119 {
1120 (set) 2>&1 |
1121 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122 *ac_space=\ *)
1123 sed -n \
1124 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1126 ;;
1127 *)
1128 sed -n \
1129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 ;;
1131 esac;
1132 }
1133 echo
1134
1135 cat <<\_ASBOX
1136 ## ----------------- ##
1137 ## Output variables. ##
1138 ## ----------------- ##
1139 _ASBOX
1140 echo
1141 for ac_var in $ac_subst_vars
1142 do
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1147
1148 if test -n "$ac_subst_files"; then
1149 cat <<\_ASBOX
1150 ## ------------- ##
1151 ## Output files. ##
1152 ## ------------- ##
1153 _ASBOX
1154 echo
1155 for ac_var in $ac_subst_files
1156 do
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1159 done | sort
1160 echo
1161 fi
1162
1163 if test -s confdefs.h; then
1164 cat <<\_ASBOX
1165 ## ----------- ##
1166 ## confdefs.h. ##
1167 ## ----------- ##
1168 _ASBOX
1169 echo
1170 sed "/^$/d" confdefs.h | sort
1171 echo
1172 fi
1173 test "$ac_signal" != 0 &&
1174 echo "$as_me: caught signal $ac_signal"
1175 echo "$as_me: exit $exit_status"
1176 } >&5
1177 rm -f core *.core &&
1178 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1179 exit $exit_status
1180 ' 0
1181 for ac_signal in 1 2 13 15; do
1182 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1183 done
1184 ac_signal=0
1185
1186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1187 rm -rf conftest* confdefs.h
1188 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1189 echo >confdefs.h
1190
1191 # Predefined preprocessor variables.
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_NAME "$PACKAGE_NAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_STRING "$PACKAGE_STRING"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1215 _ACEOF
1216
1217
1218 # Let the site file select an alternate cache file if it wants to.
1219 # Prefer explicitly selected file to automatically selected ones.
1220 if test -z "$CONFIG_SITE"; then
1221 if test "x$prefix" != xNONE; then
1222 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1223 else
1224 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1225 fi
1226 fi
1227 for ac_site_file in $CONFIG_SITE; do
1228 if test -r "$ac_site_file"; then
1229 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1230 echo "$as_me: loading site script $ac_site_file" >&6;}
1231 sed 's/^/| /' "$ac_site_file" >&5
1232 . "$ac_site_file"
1233 fi
1234 done
1235
1236 if test -r "$cache_file"; then
1237 # Some versions of bash will fail to source /dev/null (special
1238 # files actually), so we avoid doing that.
1239 if test -f "$cache_file"; then
1240 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1241 echo "$as_me: loading cache $cache_file" >&6;}
1242 case $cache_file in
1243 [\\/]* | ?:[\\/]* ) . $cache_file;;
1244 *) . ./$cache_file;;
1245 esac
1246 fi
1247 else
1248 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249 echo "$as_me: creating cache $cache_file" >&6;}
1250 >$cache_file
1251 fi
1252
1253 # Check that the precious variables saved in the cache have kept the same
1254 # value.
1255 ac_cache_corrupted=false
1256 for ac_var in `(set) 2>&1 |
1257 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259 eval ac_new_set=\$ac_env_${ac_var}_set
1260 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261 eval ac_new_val="\$ac_env_${ac_var}_value"
1262 case $ac_old_set,$ac_new_set in
1263 set,)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,set)
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1271 ,);;
1272 *)
1273 if test "x$ac_old_val" != "x$ac_new_val"; then
1274 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1275 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1276 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1277 echo "$as_me: former value: $ac_old_val" >&2;}
1278 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1279 echo "$as_me: current value: $ac_new_val" >&2;}
1280 ac_cache_corrupted=:
1281 fi;;
1282 esac
1283 # Pass precious variables to config.status.
1284 if test "$ac_new_set" = set; then
1285 case $ac_new_val in
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1288 *) ac_arg=$ac_var=$ac_new_val ;;
1289 esac
1290 case " $ac_configure_args " in
1291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1292 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1293 esac
1294 fi
1295 done
1296 if $ac_cache_corrupted; then
1297 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1298 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1299 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1300 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301 { (exit 1); exit 1; }; }
1302 fi
1303
1304 ac_ext=c
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340 # Autoconf setup
1341 ac_aux_dir=
1342 for ac_dir in config $srcdir/config; do
1343 if test -f $ac_dir/install-sh; then
1344 ac_aux_dir=$ac_dir
1345 ac_install_sh="$ac_aux_dir/install-sh -c"
1346 break
1347 elif test -f $ac_dir/install.sh; then
1348 ac_aux_dir=$ac_dir
1349 ac_install_sh="$ac_aux_dir/install.sh -c"
1350 break
1351 elif test -f $ac_dir/shtool; then
1352 ac_aux_dir=$ac_dir
1353 ac_install_sh="$ac_aux_dir/shtool install -c"
1354 break
1355 fi
1356 done
1357 if test -z "$ac_aux_dir"; then
1358 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1359 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1360 { (exit 1); exit 1; }; }
1361 fi
1362 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1363 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1364 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1365
1366
1367 ac_config_headers="$ac_config_headers config.h"
1368
1369
1370 # Automake setup
1371 am__api_version="1.9"
1372 # Find a good install program. We prefer a C program (faster),
1373 # so one script is as good as another. But avoid the broken or
1374 # incompatible versions:
1375 # SysV /etc/install, /usr/sbin/install
1376 # SunOS /usr/etc/install
1377 # IRIX /sbin/install
1378 # AIX /bin/install
1379 # AmigaOS /C/install, which installs bootblocks on floppy discs
1380 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1381 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1382 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1383 # OS/2's system install, which has a completely different semantic
1384 # ./install, which can be erroneously created by make from ./install.sh.
1385 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1386 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1387 if test -z "$INSTALL"; then
1388 if test "${ac_cv_path_install+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392 for as_dir in $PATH
1393 do
1394 IFS=$as_save_IFS
1395 test -z "$as_dir" && as_dir=.
1396 # Account for people who put trailing slashes in PATH elements.
1397 case $as_dir/ in
1398 ./ | .// | /cC/* | \
1399 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1400 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1401 /usr/ucb/* ) ;;
1402 *)
1403 # OSF1 and SCO ODT 3.0 have their own names for install.
1404 # Don't use installbsd from OSF since it installs stuff as root
1405 # by default.
1406 for ac_prog in ginstall scoinst install; do
1407 for ac_exec_ext in '' $ac_executable_extensions; do
1408 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1409 if test $ac_prog = install &&
1410 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1411 # AIX install. It has an incompatible calling convention.
1412 :
1413 elif test $ac_prog = install &&
1414 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1415 # program-specific install script used by HP pwplus--don't use.
1416 :
1417 else
1418 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1419 break 3
1420 fi
1421 fi
1422 done
1423 done
1424 ;;
1425 esac
1426 done
1427
1428
1429 fi
1430 if test "${ac_cv_path_install+set}" = set; then
1431 INSTALL=$ac_cv_path_install
1432 else
1433 # As a last resort, use the slow shell script. We don't cache a
1434 # path for INSTALL within a source directory, because that will
1435 # break other packages using the cache if that directory is
1436 # removed, or if the path is relative.
1437 INSTALL=$ac_install_sh
1438 fi
1439 fi
1440 echo "$as_me:$LINENO: result: $INSTALL" >&5
1441 echo "${ECHO_T}$INSTALL" >&6
1442
1443 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1444 # It thinks the first close brace ends the variable substitution.
1445 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1446
1447 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1448
1449 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1450
1451 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1452 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1453 # Just in case
1454 sleep 1
1455 echo timestamp > conftest.file
1456 # Do `set' in a subshell so we don't clobber the current shell's
1457 # arguments. Must try -L first in case configure is actually a
1458 # symlink; some systems play weird games with the mod time of symlinks
1459 # (eg FreeBSD returns the mod time of the symlink's containing
1460 # directory).
1461 if (
1462 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1463 if test "$*" = "X"; then
1464 # -L didn't work.
1465 set X `ls -t $srcdir/configure conftest.file`
1466 fi
1467 rm -f conftest.file
1468 if test "$*" != "X $srcdir/configure conftest.file" \
1469 && test "$*" != "X conftest.file $srcdir/configure"; then
1470
1471 # If neither matched, then we have a broken ls. This can happen
1472 # if, for instance, CONFIG_SHELL is bash and it inherits a
1473 # broken ls alias from the environment. This has actually
1474 # happened. Such a system could not be considered "sane".
1475 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1476 alias in your environment" >&5
1477 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1478 alias in your environment" >&2;}
1479 { (exit 1); exit 1; }; }
1480 fi
1481
1482 test "$2" = conftest.file
1483 )
1484 then
1485 # Ok.
1486 :
1487 else
1488 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1489 Check your system clock" >&5
1490 echo "$as_me: error: newly created file is older than distributed files!
1491 Check your system clock" >&2;}
1492 { (exit 1); exit 1; }; }
1493 fi
1494 echo "$as_me:$LINENO: result: yes" >&5
1495 echo "${ECHO_T}yes" >&6
1496 test "$program_prefix" != NONE &&
1497 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1498 # Use a double $ so make ignores it.
1499 test "$program_suffix" != NONE &&
1500 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1501 # Double any \ or $. echo might interpret backslashes.
1502 # By default was `s,x,x', remove it if useless.
1503 cat <<\_ACEOF >conftest.sed
1504 s/[\\$]/&&/g;s/;s,x,x,$//
1505 _ACEOF
1506 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1507 rm conftest.sed
1508
1509 # expand $ac_aux_dir to an absolute path
1510 am_aux_dir=`cd $ac_aux_dir && pwd`
1511
1512 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1513 # Use eval to expand $SHELL
1514 if eval "$MISSING --run true"; then
1515 am_missing_run="$MISSING --run "
1516 else
1517 am_missing_run=
1518 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1519 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1520 fi
1521
1522 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1523 # We used to keeping the `.' as first argument, in order to
1524 # allow $(mkdir_p) to be used without argument. As in
1525 # $(mkdir_p) $(somedir)
1526 # where $(somedir) is conditionally defined. However this is wrong
1527 # for two reasons:
1528 # 1. if the package is installed by a user who cannot write `.'
1529 # make install will fail,
1530 # 2. the above comment should most certainly read
1531 # $(mkdir_p) $(DESTDIR)$(somedir)
1532 # so it does not work when $(somedir) is undefined and
1533 # $(DESTDIR) is not.
1534 # To support the latter case, we have to write
1535 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1536 # so the `.' trick is pointless.
1537 mkdir_p='mkdir -p --'
1538 else
1539 # On NextStep and OpenStep, the `mkdir' command does not
1540 # recognize any option. It will interpret all options as
1541 # directories to create, and then abort because `.' already
1542 # exists.
1543 for d in ./-p ./--version;
1544 do
1545 test -d $d && rmdir $d
1546 done
1547 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1548 if test -f "$ac_aux_dir/mkinstalldirs"; then
1549 mkdir_p='$(mkinstalldirs)'
1550 else
1551 mkdir_p='$(install_sh) -d'
1552 fi
1553 fi
1554
1555 for ac_prog in gawk mawk nawk awk
1556 do
1557 # Extract the first word of "$ac_prog", so it can be a program name with args.
1558 set dummy $ac_prog; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_AWK+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 if test -n "$AWK"; then
1565 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1566 else
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 for as_dir in $PATH
1569 do
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_AWK="$ac_prog"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1577 fi
1578 done
1579 done
1580
1581 fi
1582 fi
1583 AWK=$ac_cv_prog_AWK
1584 if test -n "$AWK"; then
1585 echo "$as_me:$LINENO: result: $AWK" >&5
1586 echo "${ECHO_T}$AWK" >&6
1587 else
1588 echo "$as_me:$LINENO: result: no" >&5
1589 echo "${ECHO_T}no" >&6
1590 fi
1591
1592 test -n "$AWK" && break
1593 done
1594
1595 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1596 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1597 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1598 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 else
1601 cat >conftest.make <<\_ACEOF
1602 all:
1603 @echo 'ac_maketemp="$(MAKE)"'
1604 _ACEOF
1605 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1606 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1607 if test -n "$ac_maketemp"; then
1608 eval ac_cv_prog_make_${ac_make}_set=yes
1609 else
1610 eval ac_cv_prog_make_${ac_make}_set=no
1611 fi
1612 rm -f conftest.make
1613 fi
1614 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1615 echo "$as_me:$LINENO: result: yes" >&5
1616 echo "${ECHO_T}yes" >&6
1617 SET_MAKE=
1618 else
1619 echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1621 SET_MAKE="MAKE=${MAKE-make}"
1622 fi
1623
1624 rm -rf .tst 2>/dev/null
1625 mkdir .tst 2>/dev/null
1626 if test -d .tst; then
1627 am__leading_dot=.
1628 else
1629 am__leading_dot=_
1630 fi
1631 rmdir .tst 2>/dev/null
1632
1633 # test to see if srcdir already configured
1634 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1635 test -f $srcdir/config.status; then
1636 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1637 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1638 { (exit 1); exit 1; }; }
1639 fi
1640
1641 # test whether we have cygpath
1642 if test -z "$CYGPATH_W"; then
1643 if (cygpath --version) >/dev/null 2>/dev/null; then
1644 CYGPATH_W='cygpath -w'
1645 else
1646 CYGPATH_W=echo
1647 fi
1648 fi
1649
1650
1651 # Define the identity of the package.
1652 PACKAGE='make'
1653 VERSION='3.81'
1654
1655
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE "$PACKAGE"
1658 _ACEOF
1659
1660
1661 cat >>confdefs.h <<_ACEOF
1662 #define VERSION "$VERSION"
1663 _ACEOF
1664
1665 # Some tools Automake needs.
1666
1667 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1668
1669
1670 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1671
1672
1673 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1674
1675
1676 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1677
1678
1679 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1680
1681 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1682
1683 # Installed binaries are usually stripped using `strip' when the user
1684 # run `make install-strip'. However `strip' might not be the right
1685 # tool to use in cross-compilation environments, therefore Automake
1686 # will honor the `STRIP' environment variable to overrule this program.
1687 if test "$cross_compiling" != no; then
1688 if test -n "$ac_tool_prefix"; then
1689 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1690 set dummy ${ac_tool_prefix}strip; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_STRIP+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 if test -n "$STRIP"; then
1697 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1698 else
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702 IFS=$as_save_IFS
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 break 2
1709 fi
1710 done
1711 done
1712
1713 fi
1714 fi
1715 STRIP=$ac_cv_prog_STRIP
1716 if test -n "$STRIP"; then
1717 echo "$as_me:$LINENO: result: $STRIP" >&5
1718 echo "${ECHO_T}$STRIP" >&6
1719 else
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1722 fi
1723
1724 fi
1725 if test -z "$ac_cv_prog_STRIP"; then
1726 ac_ct_STRIP=$STRIP
1727 # Extract the first word of "strip", so it can be a program name with args.
1728 set dummy strip; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734 if test -n "$ac_ct_STRIP"; then
1735 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1736 else
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
1739 do
1740 IFS=$as_save_IFS
1741 test -z "$as_dir" && as_dir=.
1742 for ac_exec_ext in '' $ac_executable_extensions; do
1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744 ac_cv_prog_ac_ct_STRIP="strip"
1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746 break 2
1747 fi
1748 done
1749 done
1750
1751 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1752 fi
1753 fi
1754 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1755 if test -n "$ac_ct_STRIP"; then
1756 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1757 echo "${ECHO_T}$ac_ct_STRIP" >&6
1758 else
1759 echo "$as_me:$LINENO: result: no" >&5
1760 echo "${ECHO_T}no" >&6
1761 fi
1762
1763 STRIP=$ac_ct_STRIP
1764 else
1765 STRIP="$ac_cv_prog_STRIP"
1766 fi
1767
1768 fi
1769 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1770
1771 # We need awk for the "check" target. The system "awk" is bad on
1772 # some platforms.
1773 # Always define AMTAR for backward compatibility.
1774
1775 AMTAR=${AMTAR-"${am_missing_run}tar"}
1776
1777 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1778
1779
1780
1781
1782
1783
1784 # Checks for programs.
1785 ac_ext=c
1786 ac_cpp='$CPP $CPPFLAGS'
1787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1790 if test -n "$ac_tool_prefix"; then
1791 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1792 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1793 echo "$as_me:$LINENO: checking for $ac_word" >&5
1794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1795 if test "${ac_cv_prog_CC+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1797 else
1798 if test -n "$CC"; then
1799 ac_cv_prog_CC="$CC" # Let the user override the test.
1800 else
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 for as_dir in $PATH
1803 do
1804 IFS=$as_save_IFS
1805 test -z "$as_dir" && as_dir=.
1806 for ac_exec_ext in '' $ac_executable_extensions; do
1807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 break 2
1811 fi
1812 done
1813 done
1814
1815 fi
1816 fi
1817 CC=$ac_cv_prog_CC
1818 if test -n "$CC"; then
1819 echo "$as_me:$LINENO: result: $CC" >&5
1820 echo "${ECHO_T}$CC" >&6
1821 else
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1824 fi
1825
1826 fi
1827 if test -z "$ac_cv_prog_CC"; then
1828 ac_ct_CC=$CC
1829 # Extract the first word of "gcc", so it can be a program name with args.
1830 set dummy gcc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836 if test -n "$ac_ct_CC"; then
1837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1838 else
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1841 do
1842 IFS=$as_save_IFS
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_ac_ct_CC="gcc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848 break 2
1849 fi
1850 done
1851 done
1852
1853 fi
1854 fi
1855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1856 if test -n "$ac_ct_CC"; then
1857 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1858 echo "${ECHO_T}$ac_ct_CC" >&6
1859 else
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1862 fi
1863
1864 CC=$ac_ct_CC
1865 else
1866 CC="$ac_cv_prog_CC"
1867 fi
1868
1869 if test -z "$CC"; then
1870 if test -n "$ac_tool_prefix"; then
1871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1872 set dummy ${ac_tool_prefix}cc; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1880 else
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1883 do
1884 IFS=$as_save_IFS
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 ac_cv_prog_CC="${ac_tool_prefix}cc"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 break 2
1891 fi
1892 done
1893 done
1894
1895 fi
1896 fi
1897 CC=$ac_cv_prog_CC
1898 if test -n "$CC"; then
1899 echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6
1901 else
1902 echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1904 fi
1905
1906 fi
1907 if test -z "$ac_cv_prog_CC"; then
1908 ac_ct_CC=$CC
1909 # Extract the first word of "cc", so it can be a program name with args.
1910 set dummy cc; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916 if test -n "$ac_ct_CC"; then
1917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_ac_ct_CC="cc"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 break 2
1929 fi
1930 done
1931 done
1932
1933 fi
1934 fi
1935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936 if test -n "$ac_ct_CC"; then
1937 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938 echo "${ECHO_T}$ac_ct_CC" >&6
1939 else
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 fi
1943
1944 CC=$ac_ct_CC
1945 else
1946 CC="$ac_cv_prog_CC"
1947 fi
1948
1949 fi
1950 if test -z "$CC"; then
1951 # Extract the first word of "cc", so it can be a program name with args.
1952 set dummy cc; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_CC+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958 if test -n "$CC"; then
1959 ac_cv_prog_CC="$CC" # Let the user override the test.
1960 else
1961 ac_prog_rejected=no
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1970 ac_prog_rejected=yes
1971 continue
1972 fi
1973 ac_cv_prog_CC="cc"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 break 2
1976 fi
1977 done
1978 done
1979
1980 if test $ac_prog_rejected = yes; then
1981 # We found a bogon in the path, so make sure we never use it.
1982 set dummy $ac_cv_prog_CC
1983 shift
1984 if test $# != 0; then
1985 # We chose a different compiler from the bogus one.
1986 # However, it has the same basename, so the bogon will be chosen
1987 # first if we set CC to just the basename; use the full file name.
1988 shift
1989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1990 fi
1991 fi
1992 fi
1993 fi
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996 echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6
1998 else
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2001 fi
2002
2003 fi
2004 if test -z "$CC"; then
2005 if test -n "$ac_tool_prefix"; then
2006 for ac_prog in cl
2007 do
2008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 break 2
2028 fi
2029 done
2030 done
2031
2032 fi
2033 fi
2034 CC=$ac_cv_prog_CC
2035 if test -n "$CC"; then
2036 echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6
2038 else
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 fi
2042
2043 test -n "$CC" && break
2044 done
2045 fi
2046 if test -z "$CC"; then
2047 ac_ct_CC=$CC
2048 for ac_prog in cl
2049 do
2050 # Extract the first word of "$ac_prog", so it can be a program name with args.
2051 set dummy $ac_prog; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057 if test -n "$ac_ct_CC"; then
2058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063 IFS=$as_save_IFS
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067 ac_cv_prog_ac_ct_CC="$ac_prog"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 break 2
2070 fi
2071 done
2072 done
2073
2074 fi
2075 fi
2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2077 if test -n "$ac_ct_CC"; then
2078 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2079 echo "${ECHO_T}$ac_ct_CC" >&6
2080 else
2081 echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2083 fi
2084
2085 test -n "$ac_ct_CC" && break
2086 done
2087
2088 CC=$ac_ct_CC
2089 fi
2090
2091 fi
2092
2093
2094 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2095 See \`config.log' for more details." >&5
2096 echo "$as_me: error: no acceptable C compiler found in \$PATH
2097 See \`config.log' for more details." >&2;}
2098 { (exit 1); exit 1; }; }
2099
2100 # Provide some information about the compiler.
2101 echo "$as_me:$LINENO:" \
2102 "checking for C compiler version" >&5
2103 ac_compiler=`set X $ac_compile; echo $2`
2104 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2105 (eval $ac_compiler --version </dev/null >&5) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2110 (eval $ac_compiler -v </dev/null >&5) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }
2114 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2115 (eval $ac_compiler -V </dev/null >&5) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2119
2120 cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h. */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2126
2127 int
2128 main ()
2129 {
2130
2131 ;
2132 return 0;
2133 }
2134 _ACEOF
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2139 # of exeext.
2140 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2144 (eval $ac_link_default) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; then
2148 # Find the output, starting from the most likely. This scheme is
2149 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2150 # resort.
2151
2152 # Be careful to initialize this variable, since it used to be cached.
2153 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2154 ac_cv_exeext=
2155 # b.out is created by i960 compilers.
2156 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2157 do
2158 test -f "$ac_file" || continue
2159 case $ac_file in
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2161 ;;
2162 conftest.$ac_ext )
2163 # This is the source file.
2164 ;;
2165 [ab].out )
2166 # We found the default executable, but exeext='' is most
2167 # certainly right.
2168 break;;
2169 *.* )
2170 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171 # FIXME: I believe we export ac_cv_exeext for Libtool,
2172 # but it would be cool to find out if it's true. Does anybody
2173 # maintain Libtool? --akim.
2174 export ac_cv_exeext
2175 break;;
2176 * )
2177 break;;
2178 esac
2179 done
2180 else
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2183
2184 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: C compiler cannot create executables
2187 See \`config.log' for more details." >&2;}
2188 { (exit 77); exit 77; }; }
2189 fi
2190
2191 ac_exeext=$ac_cv_exeext
2192 echo "$as_me:$LINENO: result: $ac_file" >&5
2193 echo "${ECHO_T}$ac_file" >&6
2194
2195 # Check the compiler produces executables we can run. If not, either
2196 # the compiler is broken, or we cross compile.
2197 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2198 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2199 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2200 # If not cross compiling, check that we can run a simple program.
2201 if test "$cross_compiling" != yes; then
2202 if { ac_try='./$ac_file'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204 (eval $ac_try) 2>&5
2205 ac_status=$?
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; }; then
2208 cross_compiling=no
2209 else
2210 if test "$cross_compiling" = maybe; then
2211 cross_compiling=yes
2212 else
2213 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2214 If you meant to cross compile, use \`--host'.
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot run C compiled programs.
2217 If you meant to cross compile, use \`--host'.
2218 See \`config.log' for more details." >&2;}
2219 { (exit 1); exit 1; }; }
2220 fi
2221 fi
2222 fi
2223 echo "$as_me:$LINENO: result: yes" >&5
2224 echo "${ECHO_T}yes" >&6
2225
2226 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2227 ac_clean_files=$ac_clean_files_save
2228 # Check the compiler produces executables we can run. If not, either
2229 # the compiler is broken, or we cross compile.
2230 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2231 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2232 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2233 echo "${ECHO_T}$cross_compiling" >&6
2234
2235 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2236 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2238 (eval $ac_link) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; then
2242 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2243 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2244 # work properly (i.e., refer to `conftest.exe'), while it won't with
2245 # `rm'.
2246 for ac_file in conftest.exe conftest conftest.*; do
2247 test -f "$ac_file" || continue
2248 case $ac_file in
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2251 export ac_cv_exeext
2252 break;;
2253 * ) break;;
2254 esac
2255 done
2256 else
2257 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2260 See \`config.log' for more details." >&2;}
2261 { (exit 1); exit 1; }; }
2262 fi
2263
2264 rm -f conftest$ac_cv_exeext
2265 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2266 echo "${ECHO_T}$ac_cv_exeext" >&6
2267
2268 rm -f conftest.$ac_ext
2269 EXEEXT=$ac_cv_exeext
2270 ac_exeext=$EXEEXT
2271 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2272 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2273 if test "${ac_cv_objext+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276 cat >conftest.$ac_ext <<_ACEOF
2277 /* confdefs.h. */
2278 _ACEOF
2279 cat confdefs.h >>conftest.$ac_ext
2280 cat >>conftest.$ac_ext <<_ACEOF
2281 /* end confdefs.h. */
2282
2283 int
2284 main ()
2285 {
2286
2287 ;
2288 return 0;
2289 }
2290 _ACEOF
2291 rm -f conftest.o conftest.obj
2292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 (eval $ac_compile) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; then
2297 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2298 case $ac_file in
2299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2300 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2301 break;;
2302 esac
2303 done
2304 else
2305 echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2307
2308 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2309 See \`config.log' for more details." >&5
2310 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2311 See \`config.log' for more details." >&2;}
2312 { (exit 1); exit 1; }; }
2313 fi
2314
2315 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2316 fi
2317 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2318 echo "${ECHO_T}$ac_cv_objext" >&6
2319 OBJEXT=$ac_cv_objext
2320 ac_objext=$OBJEXT
2321 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2322 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2323 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326 cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h. */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2332
2333 int
2334 main ()
2335 {
2336 #ifndef __GNUC__
2337 choke me
2338 #endif
2339
2340 ;
2341 return 0;
2342 }
2343 _ACEOF
2344 rm -f conftest.$ac_objext
2345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 (eval $ac_try) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2365 ac_compiler_gnu=yes
2366 else
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 ac_compiler_gnu=no
2371 fi
2372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2373 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2374
2375 fi
2376 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2377 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2378 GCC=`test $ac_compiler_gnu = yes && echo yes`
2379 ac_test_CFLAGS=${CFLAGS+set}
2380 ac_save_CFLAGS=$CFLAGS
2381 CFLAGS="-g"
2382 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2383 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2384 if test "${ac_cv_prog_cc_g+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387 cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h. */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2393
2394 int
2395 main ()
2396 {
2397
2398 ;
2399 return 0;
2400 }
2401 _ACEOF
2402 rm -f conftest.$ac_objext
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404 (eval $ac_compile) 2>conftest.er1
2405 ac_status=$?
2406 grep -v '^ *+' conftest.er1 >conftest.err
2407 rm -f conftest.er1
2408 cat conftest.err >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } &&
2411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 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 ac_cv_prog_cc_g=yes
2424 else
2425 echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2427
2428 ac_cv_prog_cc_g=no
2429 fi
2430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431 fi
2432 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2433 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2434 if test "$ac_test_CFLAGS" = set; then
2435 CFLAGS=$ac_save_CFLAGS
2436 elif test $ac_cv_prog_cc_g = yes; then
2437 if test "$GCC" = yes; then
2438 CFLAGS="-g -O2"
2439 else
2440 CFLAGS="-g"
2441 fi
2442 else
2443 if test "$GCC" = yes; then
2444 CFLAGS="-O2"
2445 else
2446 CFLAGS=
2447 fi
2448 fi
2449 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2450 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2451 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454 ac_cv_prog_cc_stdc=no
2455 ac_save_CC=$CC
2456 cat >conftest.$ac_ext <<_ACEOF
2457 /* confdefs.h. */
2458 _ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2462 #include <stdarg.h>
2463 #include <stdio.h>
2464 #include <sys/types.h>
2465 #include <sys/stat.h>
2466 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2467 struct buf { int x; };
2468 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2469 static char *e (p, i)
2470 char **p;
2471 int i;
2472 {
2473 return p[i];
2474 }
2475 static char *f (char * (*g) (char **, int), char **p, ...)
2476 {
2477 char *s;
2478 va_list v;
2479 va_start (v,p);
2480 s = g (p, va_arg (v,int));
2481 va_end (v);
2482 return s;
2483 }
2484
2485 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2486 function prototypes and stuff, but not '\xHH' hex character constants.
2487 These don't provoke an error unfortunately, instead are silently treated
2488 as 'x'. The following induces an error, until -std1 is added to get
2489 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2490 array size at least. It's necessary to write '\x00'==0 to get something
2491 that's true only with -std1. */
2492 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2493
2494 int test (int i, double x);
2495 struct s1 {int (*f) (int a);};
2496 struct s2 {int (*f) (double a);};
2497 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2498 int argc;
2499 char **argv;
2500 int
2501 main ()
2502 {
2503 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2504 ;
2505 return 0;
2506 }
2507 _ACEOF
2508 # Don't try gcc -ansi; that turns off useful extensions and
2509 # breaks some systems' header files.
2510 # AIX -qlanglvl=ansi
2511 # Ultrix and OSF/1 -std1
2512 # HP-UX 10.20 and later -Ae
2513 # HP-UX older versions -Aa -D_HPUX_SOURCE
2514 # SVR4 -Xc -D__EXTENSIONS__
2515 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2516 do
2517 CC="$ac_save_CC $ac_arg"
2518 rm -f conftest.$ac_objext
2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>conftest.er1
2521 ac_status=$?
2522 grep -v '^ *+' conftest.er1 >conftest.err
2523 rm -f conftest.er1
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 (eval $ac_try) 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 (eval $ac_try) 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2539 ac_cv_prog_cc_stdc=$ac_arg
2540 break
2541 else
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 fi
2546 rm -f conftest.err conftest.$ac_objext
2547 done
2548 rm -f conftest.$ac_ext conftest.$ac_objext
2549 CC=$ac_save_CC
2550
2551 fi
2552
2553 case "x$ac_cv_prog_cc_stdc" in
2554 x|xno)
2555 echo "$as_me:$LINENO: result: none needed" >&5
2556 echo "${ECHO_T}none needed" >&6 ;;
2557 *)
2558 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2559 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2560 CC="$CC $ac_cv_prog_cc_stdc" ;;
2561 esac
2562
2563 # Some people use a C++ compiler to compile C. Since we use `exit',
2564 # in C++ we need to declare it. In case someone uses the same compiler
2565 # for both compiling C and C++ we need to have the C++ compiler decide
2566 # the declaration of exit, since it's the most demanding environment.
2567 cat >conftest.$ac_ext <<_ACEOF
2568 #ifndef __cplusplus
2569 choke me
2570 #endif
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>conftest.er1
2575 ac_status=$?
2576 grep -v '^ *+' conftest.er1 >conftest.err
2577 rm -f conftest.er1
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try='test -s conftest.$ac_objext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 (eval $ac_try) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 for ac_declaration in \
2594 '' \
2595 'extern "C" void std::exit (int) throw (); using std::exit;' \
2596 'extern "C" void std::exit (int); using std::exit;' \
2597 'extern "C" void exit (int) throw ();' \
2598 'extern "C" void exit (int);' \
2599 'void exit (int);'
2600 do
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h. */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2607 $ac_declaration
2608 #include <stdlib.h>
2609 int
2610 main ()
2611 {
2612 exit (42);
2613 ;
2614 return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>conftest.er1
2620 ac_status=$?
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2638 :
2639 else
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 continue
2644 fi
2645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2646 cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h. */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2652 $ac_declaration
2653 int
2654 main ()
2655 {
2656 exit (42);
2657 ;
2658 return 0;
2659 }
2660 _ACEOF
2661 rm -f conftest.$ac_objext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663 (eval $ac_compile) 2>conftest.er1
2664 ac_status=$?
2665 grep -v '^ *+' conftest.er1 >conftest.err
2666 rm -f conftest.er1
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
2670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; } &&
2676 { ac_try='test -s conftest.$ac_objext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 break
2683 else
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2686
2687 fi
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689 done
2690 rm -f conftest*
2691 if test -n "$ac_declaration"; then
2692 echo '#ifdef __cplusplus' >>confdefs.h
2693 echo $ac_declaration >>confdefs.h
2694 echo '#endif' >>confdefs.h
2695 fi
2696
2697 else
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2700
2701 fi
2702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2703 ac_ext=c
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708 DEPDIR="${am__leading_dot}deps"
2709
2710 ac_config_commands="$ac_config_commands depfiles"
2711
2712
2713 am_make=${MAKE-make}
2714 cat > confinc << 'END'
2715 am__doit:
2716 @echo done
2717 .PHONY: am__doit
2718 END
2719 # If we don't find an include directive, just comment out the code.
2720 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2721 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2722 am__include="#"
2723 am__quote=
2724 _am_result=none
2725 # First try GNU make style include.
2726 echo "include confinc" > confmf
2727 # We grep out `Entering directory' and `Leaving directory'
2728 # messages which can occur if `w' ends up in MAKEFLAGS.
2729 # In particular we don't look at `^make:' because GNU make might
2730 # be invoked under some other name (usually "gmake"), in which
2731 # case it prints its new name instead of `make'.
2732 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2733 am__include=include
2734 am__quote=
2735 _am_result=GNU
2736 fi
2737 # Now try BSD make style include.
2738 if test "$am__include" = "#"; then
2739 echo '.include "confinc"' > confmf
2740 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2741 am__include=.include
2742 am__quote="\""
2743 _am_result=BSD
2744 fi
2745 fi
2746
2747
2748 echo "$as_me:$LINENO: result: $_am_result" >&5
2749 echo "${ECHO_T}$_am_result" >&6
2750 rm -f confinc confmf
2751
2752 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2753 if test "${enable_dependency_tracking+set}" = set; then
2754 enableval="$enable_dependency_tracking"
2755
2756 fi;
2757 if test "x$enable_dependency_tracking" != xno; then
2758 am_depcomp="$ac_aux_dir/depcomp"
2759 AMDEPBACKSLASH='\'
2760 fi
2761
2762
2763 if test "x$enable_dependency_tracking" != xno; then
2764 AMDEP_TRUE=
2765 AMDEP_FALSE='#'
2766 else
2767 AMDEP_TRUE='#'
2768 AMDEP_FALSE=
2769 fi
2770
2771
2772
2773
2774 depcc="$CC" am_compiler_list=
2775
2776 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2777 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2778 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2782 # We make a subdir and do the tests there. Otherwise we can end up
2783 # making bogus files that we don't know about and never remove. For
2784 # instance it was reported that on HP-UX the gcc test will end up
2785 # making a dummy file named `D' -- because `-MD' means `put the output
2786 # in D'.
2787 mkdir conftest.dir
2788 # Copy depcomp to subdir because otherwise we won't find it if we're
2789 # using a relative directory.
2790 cp "$am_depcomp" conftest.dir
2791 cd conftest.dir
2792 # We will build objects and dependencies in a subdirectory because
2793 # it helps to detect inapplicable dependency modes. For instance
2794 # both Tru64's cc and ICC support -MD to output dependencies as a
2795 # side effect of compilation, but ICC will put the dependencies in
2796 # the current directory while Tru64 will put them in the object
2797 # directory.
2798 mkdir sub
2799
2800 am_cv_CC_dependencies_compiler_type=none
2801 if test "$am_compiler_list" = ""; then
2802 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2803 fi
2804 for depmode in $am_compiler_list; do
2805 # Setup a source with many dependencies, because some compilers
2806 # like to wrap large dependency lists on column 80 (with \), and
2807 # we should not choose a depcomp mode which is confused by this.
2808 #
2809 # We need to recreate these files for each test, as the compiler may
2810 # overwrite some of them when testing with obscure command lines.
2811 # This happens at least with the AIX C compiler.
2812 : > sub/conftest.c
2813 for i in 1 2 3 4 5 6; do
2814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2816 # Solaris 8's {/usr,}/bin/sh.
2817 touch sub/conftst$i.h
2818 done
2819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2820
2821 case $depmode in
2822 nosideeffect)
2823 # after this tag, mechanisms are not by side-effect, so they'll
2824 # only be used when explicitly requested
2825 if test "x$enable_dependency_tracking" = xyes; then
2826 continue
2827 else
2828 break
2829 fi
2830 ;;
2831 none) break ;;
2832 esac
2833 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2834 # mode. It turns out that the SunPro C++ compiler does not properly
2835 # handle `-M -o', and we need to detect this.
2836 if depmode=$depmode \
2837 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2838 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2839 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2840 >/dev/null 2>conftest.err &&
2841 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2842 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2843 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2844 # icc doesn't choke on unknown options, it will just issue warnings
2845 # or remarks (even with -Werror). So we grep stderr for any message
2846 # that says an option was ignored or not supported.
2847 # When given -MP, icc 7.0 and 7.1 complain thusly:
2848 # icc: Command line warning: ignoring option '-M'; no argument required
2849 # The diagnosis changed in icc 8.0:
2850 # icc: Command line remark: option '-MP' not supported
2851 if (grep 'ignoring option' conftest.err ||
2852 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2853 am_cv_CC_dependencies_compiler_type=$depmode
2854 break
2855 fi
2856 fi
2857 done
2858
2859 cd ..
2860 rm -rf conftest.dir
2861 else
2862 am_cv_CC_dependencies_compiler_type=none
2863 fi
2864
2865 fi
2866 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2867 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2868 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2869
2870
2871
2872 if
2873 test "x$enable_dependency_tracking" != xno \
2874 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2875 am__fastdepCC_TRUE=
2876 am__fastdepCC_FALSE='#'
2877 else
2878 am__fastdepCC_TRUE='#'
2879 am__fastdepCC_FALSE=
2880 fi
2881
2882
2883 # Find a good install program. We prefer a C program (faster),
2884 # so one script is as good as another. But avoid the broken or
2885 # incompatible versions:
2886 # SysV /etc/install, /usr/sbin/install
2887 # SunOS /usr/etc/install
2888 # IRIX /sbin/install
2889 # AIX /bin/install
2890 # AmigaOS /C/install, which installs bootblocks on floppy discs
2891 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2894 # OS/2's system install, which has a completely different semantic
2895 # ./install, which can be erroneously created by make from ./install.sh.
2896 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2897 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2898 if test -z "$INSTALL"; then
2899 if test "${ac_cv_path_install+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 # Account for people who put trailing slashes in PATH elements.
2908 case $as_dir/ in
2909 ./ | .// | /cC/* | \
2910 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2911 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2912 /usr/ucb/* ) ;;
2913 *)
2914 # OSF1 and SCO ODT 3.0 have their own names for install.
2915 # Don't use installbsd from OSF since it installs stuff as root
2916 # by default.
2917 for ac_prog in ginstall scoinst install; do
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2920 if test $ac_prog = install &&
2921 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2922 # AIX install. It has an incompatible calling convention.
2923 :
2924 elif test $ac_prog = install &&
2925 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2926 # program-specific install script used by HP pwplus--don't use.
2927 :
2928 else
2929 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2930 break 3
2931 fi
2932 fi
2933 done
2934 done
2935 ;;
2936 esac
2937 done
2938
2939
2940 fi
2941 if test "${ac_cv_path_install+set}" = set; then
2942 INSTALL=$ac_cv_path_install
2943 else
2944 # As a last resort, use the slow shell script. We don't cache a
2945 # path for INSTALL within a source directory, because that will
2946 # break other packages using the cache if that directory is
2947 # removed, or if the path is relative.
2948 INSTALL=$ac_install_sh
2949 fi
2950 fi
2951 echo "$as_me:$LINENO: result: $INSTALL" >&5
2952 echo "${ECHO_T}$INSTALL" >&6
2953
2954 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2955 # It thinks the first close brace ends the variable substitution.
2956 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2957
2958 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2959
2960 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2961
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2965 echo "$as_me:$LINENO: checking for $ac_word" >&5
2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967 if test "${ac_cv_prog_RANLIB+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970 if test -n "$RANLIB"; then
2971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2983 fi
2984 done
2985 done
2986
2987 fi
2988 fi
2989 RANLIB=$ac_cv_prog_RANLIB
2990 if test -n "$RANLIB"; then
2991 echo "$as_me:$LINENO: result: $RANLIB" >&5
2992 echo "${ECHO_T}$RANLIB" >&6
2993 else
2994 echo "$as_me:$LINENO: result: no" >&5
2995 echo "${ECHO_T}no" >&6
2996 fi
2997
2998 fi
2999 if test -z "$ac_cv_prog_RANLIB"; then
3000 ac_ct_RANLIB=$RANLIB
3001 # Extract the first word of "ranlib", so it can be a program name with args.
3002 set dummy ranlib; ac_word=$2
3003 echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008 if test -n "$ac_ct_RANLIB"; then
3009 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_ac_ct_RANLIB="ranlib"
3019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3021 fi
3022 done
3023 done
3024
3025 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3026 fi
3027 fi
3028 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3029 if test -n "$ac_ct_RANLIB"; then
3030 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3031 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3032 else
3033 echo "$as_me:$LINENO: result: no" >&5
3034 echo "${ECHO_T}no" >&6
3035 fi
3036
3037 RANLIB=$ac_ct_RANLIB
3038 else
3039 RANLIB="$ac_cv_prog_RANLIB"
3040 fi
3041
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3048 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3049 # On Suns, sometimes $CPP names a directory.
3050 if test -n "$CPP" && test -d "$CPP"; then
3051 CPP=
3052 fi
3053 if test -z "$CPP"; then
3054 if test "${ac_cv_prog_CPP+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057 # Double quotes because CPP needs to be expanded
3058 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3059 do
3060 ac_preproc_ok=false
3061 for ac_c_preproc_warn_flag in '' yes
3062 do
3063 # Use a header file that comes with gcc, so configuring glibc
3064 # with a fresh cross-compiler works.
3065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3066 # <limits.h> exists even on freestanding compilers.
3067 # On the NeXT, cc -E runs the code through the compiler's parser,
3068 # not just through cpp. "Syntax error" is here to catch this case.
3069 cat >conftest.$ac_ext <<_ACEOF
3070 /* confdefs.h. */
3071 _ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3075 #ifdef __STDC__
3076 # include <limits.h>
3077 #else
3078 # include <assert.h>
3079 #endif
3080 Syntax error
3081 _ACEOF
3082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } >/dev/null; then
3090 if test -s conftest.err; then
3091 ac_cpp_err=$ac_c_preproc_warn_flag
3092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3093 else
3094 ac_cpp_err=
3095 fi
3096 else
3097 ac_cpp_err=yes
3098 fi
3099 if test -z "$ac_cpp_err"; then
3100 :
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 # Broken: fails on valid input.
3106 continue
3107 fi
3108 rm -f conftest.err conftest.$ac_ext
3109
3110 # OK, works on sane cases. Now check whether non-existent headers
3111 # can be detected and how.
3112 cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h. */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3118 #include <ac_nonexistent.h>
3119 _ACEOF
3120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3122 ac_status=$?
3123 grep -v '^ *+' conftest.er1 >conftest.err
3124 rm -f conftest.er1
3125 cat conftest.err >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } >/dev/null; then
3128 if test -s conftest.err; then
3129 ac_cpp_err=$ac_c_preproc_warn_flag
3130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3131 else
3132 ac_cpp_err=
3133 fi
3134 else
3135 ac_cpp_err=yes
3136 fi
3137 if test -z "$ac_cpp_err"; then
3138 # Broken: success on invalid input.
3139 continue
3140 else
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 # Passes both tests.
3145 ac_preproc_ok=:
3146 break
3147 fi
3148 rm -f conftest.err conftest.$ac_ext
3149
3150 done
3151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3152 rm -f conftest.err conftest.$ac_ext
3153 if $ac_preproc_ok; then
3154 break
3155 fi
3156
3157 done
3158 ac_cv_prog_CPP=$CPP
3159
3160 fi
3161 CPP=$ac_cv_prog_CPP
3162 else
3163 ac_cv_prog_CPP=$CPP
3164 fi
3165 echo "$as_me:$LINENO: result: $CPP" >&5
3166 echo "${ECHO_T}$CPP" >&6
3167 ac_preproc_ok=false
3168 for ac_c_preproc_warn_flag in '' yes
3169 do
3170 # Use a header file that comes with gcc, so configuring glibc
3171 # with a fresh cross-compiler works.
3172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3173 # <limits.h> exists even on freestanding compilers.
3174 # On the NeXT, cc -E runs the code through the compiler's parser,
3175 # not just through cpp. "Syntax error" is here to catch this case.
3176 cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h. */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3182 #ifdef __STDC__
3183 # include <limits.h>
3184 #else
3185 # include <assert.h>
3186 #endif
3187 Syntax error
3188 _ACEOF
3189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } >/dev/null; then
3197 if test -s conftest.err; then
3198 ac_cpp_err=$ac_c_preproc_warn_flag
3199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3200 else
3201 ac_cpp_err=
3202 fi
3203 else
3204 ac_cpp_err=yes
3205 fi
3206 if test -z "$ac_cpp_err"; then
3207 :
3208 else
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 # Broken: fails on valid input.
3213 continue
3214 fi
3215 rm -f conftest.err conftest.$ac_ext
3216
3217 # OK, works on sane cases. Now check whether non-existent headers
3218 # can be detected and how.
3219 cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h. */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3225 #include <ac_nonexistent.h>
3226 _ACEOF
3227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3229 ac_status=$?
3230 grep -v '^ *+' conftest.er1 >conftest.err
3231 rm -f conftest.er1
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } >/dev/null; then
3235 if test -s conftest.err; then
3236 ac_cpp_err=$ac_c_preproc_warn_flag
3237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3238 else
3239 ac_cpp_err=
3240 fi
3241 else
3242 ac_cpp_err=yes
3243 fi
3244 if test -z "$ac_cpp_err"; then
3245 # Broken: success on invalid input.
3246 continue
3247 else
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251 # Passes both tests.
3252 ac_preproc_ok=:
3253 break
3254 fi
3255 rm -f conftest.err conftest.$ac_ext
3256
3257 done
3258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3259 rm -f conftest.err conftest.$ac_ext
3260 if $ac_preproc_ok; then
3261 :
3262 else
3263 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3264 See \`config.log' for more details." >&5
3265 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3266 See \`config.log' for more details." >&2;}
3267 { (exit 1); exit 1; }; }
3268 fi
3269
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275
3276 # Extract the first word of "ar", so it can be a program name with args.
3277 set dummy ar; ac_word=$2
3278 echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280 if test "${ac_cv_prog_AR+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 if test -n "$AR"; then
3284 ac_cv_prog_AR="$AR" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_AR="ar"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297 done
3298 done
3299
3300 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3301 fi
3302 fi
3303 AR=$ac_cv_prog_AR
3304 if test -n "$AR"; then
3305 echo "$as_me:$LINENO: result: $AR" >&5
3306 echo "${ECHO_T}$AR" >&6
3307 else
3308 echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6
3310 fi
3311
3312 # Perl is needed for the test suite (only)
3313 # Extract the first word of "perl", so it can be a program name with args.
3314 set dummy perl; ac_word=$2
3315 echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317 if test "${ac_cv_prog_PERL+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 if test -n "$PERL"; then
3321 ac_cv_prog_PERL="$PERL" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_PERL="perl"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334 done
3335 done
3336
3337 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
3338 fi
3339 fi
3340 PERL=$ac_cv_prog_PERL
3341 if test -n "$PERL"; then
3342 echo "$as_me:$LINENO: result: $PERL" >&5
3343 echo "${ECHO_T}$PERL" >&6
3344 else
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3347 fi
3348
3349
3350 # Specialized system macros
3351 # Make sure we can run config.sub.
3352 $ac_config_sub sun4 >/dev/null 2>&1 ||
3353 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3354 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3355 { (exit 1); exit 1; }; }
3356
3357 echo "$as_me:$LINENO: checking build system type" >&5
3358 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3359 if test "${ac_cv_build+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362 ac_cv_build_alias=$build_alias
3363 test -z "$ac_cv_build_alias" &&
3364 ac_cv_build_alias=`$ac_config_guess`
3365 test -z "$ac_cv_build_alias" &&
3366 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3367 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3368 { (exit 1); exit 1; }; }
3369 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3370 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3371 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3372 { (exit 1); exit 1; }; }
3373
3374 fi
3375 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3376 echo "${ECHO_T}$ac_cv_build" >&6
3377 build=$ac_cv_build
3378 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3379 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3380 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3381
3382
3383 echo "$as_me:$LINENO: checking host system type" >&5
3384 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3385 if test "${ac_cv_host+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 ac_cv_host_alias=$host_alias
3389 test -z "$ac_cv_host_alias" &&
3390 ac_cv_host_alias=$ac_cv_build_alias
3391 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3393 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3394 { (exit 1); exit 1; }; }
3395
3396 fi
3397 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3398 echo "${ECHO_T}$ac_cv_host" >&6
3399 host=$ac_cv_host
3400 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3401 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3402 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3403
3404
3405
3406
3407 echo "$as_me:$LINENO: checking for egrep" >&5
3408 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3409 if test "${ac_cv_prog_egrep+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3413 then ac_cv_prog_egrep='grep -E'
3414 else ac_cv_prog_egrep='egrep'
3415 fi
3416 fi
3417 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3418 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3419 EGREP=$ac_cv_prog_egrep
3420
3421
3422
3423 echo "$as_me:$LINENO: checking for AIX" >&5
3424 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3425 cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h. */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3431 #ifdef _AIX
3432 yes
3433 #endif
3434
3435 _ACEOF
3436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3437 $EGREP "yes" >/dev/null 2>&1; then
3438 echo "$as_me:$LINENO: result: yes" >&5
3439 echo "${ECHO_T}yes" >&6
3440 cat >>confdefs.h <<\_ACEOF
3441 #define _ALL_SOURCE 1
3442 _ACEOF
3443
3444 else
3445 echo "$as_me:$LINENO: result: no" >&5
3446 echo "${ECHO_T}no" >&6
3447 fi
3448 rm -f conftest*
3449
3450
3451 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3452 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3453 if test "${ac_cv_search_strerror+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 ac_func_search_save_LIBS=$LIBS
3457 ac_cv_search_strerror=no
3458 cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h. */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464
3465 /* Override any gcc2 internal prototype to avoid an error. */
3466 #ifdef __cplusplus
3467 extern "C"
3468 #endif
3469 /* We use char because int might match the return type of a gcc2
3470 builtin and then its argument prototype would still apply. */
3471 char strerror ();
3472 int
3473 main ()
3474 {
3475 strerror ();
3476 ;
3477 return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest.$ac_objext conftest$ac_exeext
3481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3482 (eval $ac_link) 2>conftest.er1
3483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; } &&
3495 { ac_try='test -s conftest$ac_exeext'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 ac_cv_search_strerror="none required"
3502 else
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 fi
3507 rm -f conftest.err conftest.$ac_objext \
3508 conftest$ac_exeext conftest.$ac_ext
3509 if test "$ac_cv_search_strerror" = no; then
3510 for ac_lib in cposix; do
3511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3512 cat >conftest.$ac_ext <<_ACEOF
3513 /* confdefs.h. */
3514 _ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3518
3519 /* Override any gcc2 internal prototype to avoid an error. */
3520 #ifdef __cplusplus
3521 extern "C"
3522 #endif
3523 /* We use char because int might match the return type of a gcc2
3524 builtin and then its argument prototype would still apply. */
3525 char strerror ();
3526 int
3527 main ()
3528 {
3529 strerror ();
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 rm -f conftest.$ac_objext conftest$ac_exeext
3535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3536 (eval $ac_link) 2>conftest.er1
3537 ac_status=$?
3538 grep -v '^ *+' conftest.er1 >conftest.err
3539 rm -f conftest.er1
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } &&
3543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest$ac_exeext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3555 ac_cv_search_strerror="-l$ac_lib"
3556 break
3557 else
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3560
3561 fi
3562 rm -f conftest.err conftest.$ac_objext \
3563 conftest$ac_exeext conftest.$ac_ext
3564 done
3565 fi
3566 LIBS=$ac_func_search_save_LIBS
3567 fi
3568 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3569 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3570 if test "$ac_cv_search_strerror" != no; then
3571 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3572
3573 fi
3574
3575 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3576 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3577 if test "${ac_cv_header_stdc+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h. */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3586 #include <stdlib.h>
3587 #include <stdarg.h>
3588 #include <string.h>
3589 #include <float.h>
3590
3591 int
3592 main ()
3593 {
3594
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 rm -f conftest.$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; } &&
3614 { ac_try='test -s conftest.$ac_objext'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3620 ac_cv_header_stdc=yes
3621 else
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625 ac_cv_header_stdc=no
3626 fi
3627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3628
3629 if test $ac_cv_header_stdc = yes; then
3630 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3631 cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h. */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3637 #include <string.h>
3638
3639 _ACEOF
3640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3641 $EGREP "memchr" >/dev/null 2>&1; then
3642 :
3643 else
3644 ac_cv_header_stdc=no
3645 fi
3646 rm -f conftest*
3647
3648 fi
3649
3650 if test $ac_cv_header_stdc = yes; then
3651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658 #include <stdlib.h>
3659
3660 _ACEOF
3661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3662 $EGREP "free" >/dev/null 2>&1; then
3663 :
3664 else
3665 ac_cv_header_stdc=no
3666 fi
3667 rm -f conftest*
3668
3669 fi
3670
3671 if test $ac_cv_header_stdc = yes; then
3672 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3673 if test "$cross_compiling" = yes; then
3674 :
3675 else
3676 cat >conftest.$ac_ext <<_ACEOF
3677 /* confdefs.h. */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3682 #include <ctype.h>
3683 #if ((' ' & 0x0FF) == 0x020)
3684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3686 #else
3687 # define ISLOWER(c) \
3688 (('a' <= (c) && (c) <= 'i') \
3689 || ('j' <= (c) && (c) <= 'r') \
3690 || ('s' <= (c) && (c) <= 'z'))
3691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3692 #endif
3693
3694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3695 int
3696 main ()
3697 {
3698 int i;
3699 for (i = 0; i < 256; i++)
3700 if (XOR (islower (i), ISLOWER (i))
3701 || toupper (i) != TOUPPER (i))
3702 return (2);
3703 return (0);
3704 }
3705 _ACEOF
3706 rm -f conftest$ac_exeext
3707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3708 (eval $ac_link) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 :
3718 else
3719 echo "$as_me: program exited with status $ac_status" >&5
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 ( exit $ac_status )
3724 ac_cv_header_stdc=no
3725 fi
3726 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3727 fi
3728 fi
3729 fi
3730 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3731 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3732 if test $ac_cv_header_stdc = yes; then
3733
3734 cat >>confdefs.h <<\_ACEOF
3735 #define STDC_HEADERS 1
3736 _ACEOF
3737
3738 fi
3739
3740 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3751 inttypes.h stdint.h unistd.h
3752 do
3753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3754 echo "$as_me:$LINENO: checking for $ac_header" >&5
3755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 $ac_includes_default
3766
3767 #include <$ac_header>
3768 _ACEOF
3769 rm -f conftest.$ac_objext
3770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3771 (eval $ac_compile) 2>conftest.er1
3772 ac_status=$?
3773 grep -v '^ *+' conftest.er1 >conftest.err
3774 rm -f conftest.er1
3775 cat conftest.err >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } &&
3778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 (eval $ac_try) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; } &&
3784 { ac_try='test -s conftest.$ac_objext'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; }; then
3790 eval "$as_ac_Header=yes"
3791 else
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795 eval "$as_ac_Header=no"
3796 fi
3797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798 fi
3799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3802 cat >>confdefs.h <<_ACEOF
3803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3804 _ACEOF
3805
3806 fi
3807
3808 done
3809
3810
3811 if test "${ac_cv_header_minix_config_h+set}" = set; then
3812 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3813 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3814 if test "${ac_cv_header_minix_config_h+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 fi
3817 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3818 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3819 else
3820 # Is the header compilable?
3821 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3822 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3823 cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h. */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3829 $ac_includes_default
3830 #include <minix/config.h>
3831 _ACEOF
3832 rm -f conftest.$ac_objext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3834 (eval $ac_compile) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; } &&
3847 { ac_try='test -s conftest.$ac_objext'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 (eval $ac_try) 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; }; then
3853 ac_header_compiler=yes
3854 else
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3857
3858 ac_header_compiler=no
3859 fi
3860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3862 echo "${ECHO_T}$ac_header_compiler" >&6
3863
3864 # Is the header present?
3865 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3866 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3867 cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h. */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3873 #include <minix/config.h>
3874 _ACEOF
3875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3877 ac_status=$?
3878 grep -v '^ *+' conftest.er1 >conftest.err
3879 rm -f conftest.er1
3880 cat conftest.err >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } >/dev/null; then
3883 if test -s conftest.err; then
3884 ac_cpp_err=$ac_c_preproc_warn_flag
3885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3886 else
3887 ac_cpp_err=
3888 fi
3889 else
3890 ac_cpp_err=yes
3891 fi
3892 if test -z "$ac_cpp_err"; then
3893 ac_header_preproc=yes
3894 else
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3897
3898 ac_header_preproc=no
3899 fi
3900 rm -f conftest.err conftest.$ac_ext
3901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3902 echo "${ECHO_T}$ac_header_preproc" >&6
3903
3904 # So? What about this header?
3905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3906 yes:no: )
3907 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3908 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3909 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3910 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3911 ac_header_preproc=yes
3912 ;;
3913 no:yes:* )
3914 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3915 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3916 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3917 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3918 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3919 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3920 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3921 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3922 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3923 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3924 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3925 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3926 (
3927 cat <<\_ASBOX
3928 ## ------------------------------- ##
3929 ## Report this to bug-make (at] gnu.org ##
3930 ## ------------------------------- ##
3931 _ASBOX
3932 ) |
3933 sed "s/^/$as_me: WARNING: /" >&2
3934 ;;
3935 esac
3936 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3937 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3938 if test "${ac_cv_header_minix_config_h+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941 ac_cv_header_minix_config_h=$ac_header_preproc
3942 fi
3943 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3944 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3945
3946 fi
3947 if test $ac_cv_header_minix_config_h = yes; then
3948 MINIX=yes
3949 else
3950 MINIX=
3951 fi
3952
3953
3954 if test "$MINIX" = yes; then
3955
3956 cat >>confdefs.h <<\_ACEOF
3957 #define _POSIX_SOURCE 1
3958 _ACEOF
3959
3960
3961 cat >>confdefs.h <<\_ACEOF
3962 #define _POSIX_1_SOURCE 2
3963 _ACEOF
3964
3965
3966 cat >>confdefs.h <<\_ACEOF
3967 #define _MINIX 1
3968 _ACEOF
3969
3970 fi
3971
3972
3973 # Needed for ansi2knr
3974 echo "$as_me:$LINENO: checking for function prototypes" >&5
3975 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3976 if test "$ac_cv_prog_cc_stdc" != no; then
3977 echo "$as_me:$LINENO: result: yes" >&5
3978 echo "${ECHO_T}yes" >&6
3979
3980 cat >>confdefs.h <<\_ACEOF
3981 #define PROTOTYPES 1
3982 _ACEOF
3983
3984
3985 cat >>confdefs.h <<\_ACEOF
3986 #define __PROTOTYPES 1
3987 _ACEOF
3988
3989 else
3990 echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
3992 fi
3993
3994
3995 if test "$ac_cv_prog_cc_stdc" != no; then
3996 U= ANSI2KNR=
3997 else
3998 U=_ ANSI2KNR=./ansi2knr
3999 fi
4000 # Ensure some checks needed by ansi2knr itself.
4001
4002
4003 for ac_header in string.h
4004 do
4005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4007 echo "$as_me:$LINENO: checking for $ac_header" >&5
4008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 fi
4012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4014 else
4015 # Is the header compilable?
4016 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h. */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 $ac_includes_default
4025 #include <$ac_header>
4026 _ACEOF
4027 rm -f conftest.$ac_objext
4028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4029 (eval $ac_compile) 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } &&
4036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try='test -s conftest.$ac_objext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 ac_header_compiler=yes
4049 else
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053 ac_header_compiler=no
4054 fi
4055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4057 echo "${ECHO_T}$ac_header_compiler" >&6
4058
4059 # Is the header present?
4060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4062 cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h. */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 #include <$ac_header>
4069 _ACEOF
4070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } >/dev/null; then
4078 if test -s conftest.err; then
4079 ac_cpp_err=$ac_c_preproc_warn_flag
4080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4081 else
4082 ac_cpp_err=
4083 fi
4084 else
4085 ac_cpp_err=yes
4086 fi
4087 if test -z "$ac_cpp_err"; then
4088 ac_header_preproc=yes
4089 else
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093 ac_header_preproc=no
4094 fi
4095 rm -f conftest.err conftest.$ac_ext
4096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4097 echo "${ECHO_T}$ac_header_preproc" >&6
4098
4099 # So? What about this header?
4100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4101 yes:no: )
4102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4106 ac_header_preproc=yes
4107 ;;
4108 no:yes:* )
4109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4121 (
4122 cat <<\_ASBOX
4123 ## ------------------------------- ##
4124 ## Report this to bug-make (at] gnu.org ##
4125 ## ------------------------------- ##
4126 _ASBOX
4127 ) |
4128 sed "s/^/$as_me: WARNING: /" >&2
4129 ;;
4130 esac
4131 echo "$as_me:$LINENO: checking for $ac_header" >&5
4132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 eval "$as_ac_Header=\$ac_header_preproc"
4137 fi
4138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4140
4141 fi
4142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4143 cat >>confdefs.h <<_ACEOF
4144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4145 _ACEOF
4146
4147 fi
4148
4149 done
4150
4151
4152
4153 # Enable gettext, in "external" mode.
4154
4155
4156
4157 MKINSTALLDIRS=
4158 if test -n "$ac_aux_dir"; then
4159 case "$ac_aux_dir" in
4160 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4161 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4162 esac
4163 fi
4164 if test -z "$MKINSTALLDIRS"; then
4165 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4166 fi
4167
4168
4169
4170 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4171 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4172 # Check whether --enable-nls or --disable-nls was given.
4173 if test "${enable_nls+set}" = set; then
4174 enableval="$enable_nls"
4175 USE_NLS=$enableval
4176 else
4177 USE_NLS=yes
4178 fi;
4179 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4180 echo "${ECHO_T}$USE_NLS" >&6
4181
4182
4183
4184
4185
4186
4187 # Prepare PATH_SEPARATOR.
4188 # The user is always right.
4189 if test "${PATH_SEPARATOR+set}" != set; then
4190 echo "#! /bin/sh" >conf$$.sh
4191 echo "exit 0" >>conf$$.sh
4192 chmod +x conf$$.sh
4193 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4194 PATH_SEPARATOR=';'
4195 else
4196 PATH_SEPARATOR=:
4197 fi
4198 rm -f conf$$.sh
4199 fi
4200
4201 # Find out how to test for executable files. Don't use a zero-byte file,
4202 # as systems may use methods other than mode bits to determine executability.
4203 cat >conf$$.file <<_ASEOF
4204 #! /bin/sh
4205 exit 0
4206 _ASEOF
4207 chmod +x conf$$.file
4208 if test -x conf$$.file >/dev/null 2>&1; then
4209 ac_executable_p="test -x"
4210 else
4211 ac_executable_p="test -f"
4212 fi
4213 rm -f conf$$.file
4214
4215 # Extract the first word of "msgfmt", so it can be a program name with args.
4216 set dummy msgfmt; ac_word=$2
4217 echo "$as_me:$LINENO: checking for $ac_word" >&5
4218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4219 if test "${ac_cv_path_MSGFMT+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222 case "$MSGFMT" in
4223 [\\/]* | ?:[\\/]*)
4224 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4225 ;;
4226 *)
4227 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4228 for ac_dir in $PATH; do
4229 IFS="$ac_save_IFS"
4230 test -z "$ac_dir" && ac_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4233 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4234 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4235 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4236 break 2
4237 fi
4238 fi
4239 done
4240 done
4241 IFS="$ac_save_IFS"
4242 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4243 ;;
4244 esac
4245 fi
4246 MSGFMT="$ac_cv_path_MSGFMT"
4247 if test "$MSGFMT" != ":"; then
4248 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4249 echo "${ECHO_T}$MSGFMT" >&6
4250 else
4251 echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6
4253 fi
4254
4255 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4256 set dummy gmsgfmt; ac_word=$2
4257 echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4259 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262 case $GMSGFMT in
4263 [\\/]* | ?:[\\/]*)
4264 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4265 ;;
4266 *)
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 break 2
4277 fi
4278 done
4279 done
4280
4281 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4282 ;;
4283 esac
4284 fi
4285 GMSGFMT=$ac_cv_path_GMSGFMT
4286
4287 if test -n "$GMSGFMT"; then
4288 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4289 echo "${ECHO_T}$GMSGFMT" >&6
4290 else
4291 echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6
4293 fi
4294
4295
4296
4297 # Prepare PATH_SEPARATOR.
4298 # The user is always right.
4299 if test "${PATH_SEPARATOR+set}" != set; then
4300 echo "#! /bin/sh" >conf$$.sh
4301 echo "exit 0" >>conf$$.sh
4302 chmod +x conf$$.sh
4303 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4304 PATH_SEPARATOR=';'
4305 else
4306 PATH_SEPARATOR=:
4307 fi
4308 rm -f conf$$.sh
4309 fi
4310
4311 # Find out how to test for executable files. Don't use a zero-byte file,
4312 # as systems may use methods other than mode bits to determine executability.
4313 cat >conf$$.file <<_ASEOF
4314 #! /bin/sh
4315 exit 0
4316 _ASEOF
4317 chmod +x conf$$.file
4318 if test -x conf$$.file >/dev/null 2>&1; then
4319 ac_executable_p="test -x"
4320 else
4321 ac_executable_p="test -f"
4322 fi
4323 rm -f conf$$.file
4324
4325 # Extract the first word of "xgettext", so it can be a program name with args.
4326 set dummy xgettext; ac_word=$2
4327 echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 case "$XGETTEXT" in
4333 [\\/]* | ?:[\\/]*)
4334 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4335 ;;
4336 *)
4337 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4338 for ac_dir in $PATH; do
4339 IFS="$ac_save_IFS"
4340 test -z "$ac_dir" && ac_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4343 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4344 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4345 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4346 break 2
4347 fi
4348 fi
4349 done
4350 done
4351 IFS="$ac_save_IFS"
4352 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4353 ;;
4354 esac
4355 fi
4356 XGETTEXT="$ac_cv_path_XGETTEXT"
4357 if test "$XGETTEXT" != ":"; then
4358 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4359 echo "${ECHO_T}$XGETTEXT" >&6
4360 else
4361 echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6
4363 fi
4364
4365 rm -f messages.po
4366
4367
4368 # Prepare PATH_SEPARATOR.
4369 # The user is always right.
4370 if test "${PATH_SEPARATOR+set}" != set; then
4371 echo "#! /bin/sh" >conf$$.sh
4372 echo "exit 0" >>conf$$.sh
4373 chmod +x conf$$.sh
4374 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4375 PATH_SEPARATOR=';'
4376 else
4377 PATH_SEPARATOR=:
4378 fi
4379 rm -f conf$$.sh
4380 fi
4381
4382 # Find out how to test for executable files. Don't use a zero-byte file,
4383 # as systems may use methods other than mode bits to determine executability.
4384 cat >conf$$.file <<_ASEOF
4385 #! /bin/sh
4386 exit 0
4387 _ASEOF
4388 chmod +x conf$$.file
4389 if test -x conf$$.file >/dev/null 2>&1; then
4390 ac_executable_p="test -x"
4391 else
4392 ac_executable_p="test -f"
4393 fi
4394 rm -f conf$$.file
4395
4396 # Extract the first word of "msgmerge", so it can be a program name with args.
4397 set dummy msgmerge; ac_word=$2
4398 echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403 case "$MSGMERGE" in
4404 [\\/]* | ?:[\\/]*)
4405 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4406 ;;
4407 *)
4408 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4409 for ac_dir in $PATH; do
4410 IFS="$ac_save_IFS"
4411 test -z "$ac_dir" && ac_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4414 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4415 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4416 break 2
4417 fi
4418 fi
4419 done
4420 done
4421 IFS="$ac_save_IFS"
4422 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4423 ;;
4424 esac
4425 fi
4426 MSGMERGE="$ac_cv_path_MSGMERGE"
4427 if test "$MSGMERGE" != ":"; then
4428 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4429 echo "${ECHO_T}$MSGMERGE" >&6
4430 else
4431 echo "$as_me:$LINENO: result: no" >&5
4432 echo "${ECHO_T}no" >&6
4433 fi
4434
4435
4436 if test "$GMSGFMT" != ":"; then
4437 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4438 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4439 : ;
4440 else
4441 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4442 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4443 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4444 GMSGFMT=":"
4445 fi
4446 fi
4447
4448 if test "$XGETTEXT" != ":"; then
4449 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4450 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4451 : ;
4452 else
4453 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4454 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4455 XGETTEXT=":"
4456 fi
4457 rm -f messages.po
4458 fi
4459
4460 ac_config_commands="$ac_config_commands default-1"
4461
4462
4463
4464 if test "X$prefix" = "XNONE"; then
4465 acl_final_prefix="$ac_default_prefix"
4466 else
4467 acl_final_prefix="$prefix"
4468 fi
4469 if test "X$exec_prefix" = "XNONE"; then
4470 acl_final_exec_prefix='${prefix}'
4471 else
4472 acl_final_exec_prefix="$exec_prefix"
4473 fi
4474 acl_save_prefix="$prefix"
4475 prefix="$acl_final_prefix"
4476 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4477 prefix="$acl_save_prefix"
4478
4479
4480 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4481 if test "${with_gnu_ld+set}" = set; then
4482 withval="$with_gnu_ld"
4483 test "$withval" = no || with_gnu_ld=yes
4484 else
4485 with_gnu_ld=no
4486 fi;
4487 # Prepare PATH_SEPARATOR.
4488 # The user is always right.
4489 if test "${PATH_SEPARATOR+set}" != set; then
4490 echo "#! /bin/sh" >conf$$.sh
4491 echo "exit 0" >>conf$$.sh
4492 chmod +x conf$$.sh
4493 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4494 PATH_SEPARATOR=';'
4495 else
4496 PATH_SEPARATOR=:
4497 fi
4498 rm -f conf$$.sh
4499 fi
4500 ac_prog=ld
4501 if test "$GCC" = yes; then
4502 # Check if gcc -print-prog-name=ld gives a path.
4503 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4504 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4505 case $host in
4506 *-*-mingw*)
4507 # gcc leaves a trailing carriage return which upsets mingw
4508 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4509 *)
4510 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4511 esac
4512 case $ac_prog in
4513 # Accept absolute paths.
4514 [\\/]* | [A-Za-z]:[\\/]*)
4515 re_direlt='/[^/][^/]*/\.\./'
4516 # Canonicalize the path of ld
4517 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4518 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4519 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4520 done
4521 test -z "$LD" && LD="$ac_prog"
4522 ;;
4523 "")
4524 # If it fails, then pretend we aren't using GCC.
4525 ac_prog=ld
4526 ;;
4527 *)
4528 # If it is relative, then search for the first ld in PATH.
4529 with_gnu_ld=unknown
4530 ;;
4531 esac
4532 elif test "$with_gnu_ld" = yes; then
4533 echo "$as_me:$LINENO: checking for GNU ld" >&5
4534 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4535 else
4536 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4537 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4538 fi
4539 if test "${acl_cv_path_LD+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542 if test -z "$LD"; then
4543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4544 for ac_dir in $PATH; do
4545 test -z "$ac_dir" && ac_dir=.
4546 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4547 acl_cv_path_LD="$ac_dir/$ac_prog"
4548 # Check to see if the program is GNU ld. I'd rather use --version,
4549 # but apparently some GNU ld's only accept -v.
4550 # Break only if it was the GNU/non-GNU ld that we prefer.
4551 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4552 *GNU* | *'with BFD'*)
4553 test "$with_gnu_ld" != no && break ;;
4554 *)
4555 test "$with_gnu_ld" != yes && break ;;
4556 esac
4557 fi
4558 done
4559 IFS="$ac_save_ifs"
4560 else
4561 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4562 fi
4563 fi
4564
4565 LD="$acl_cv_path_LD"
4566 if test -n "$LD"; then
4567 echo "$as_me:$LINENO: result: $LD" >&5
4568 echo "${ECHO_T}$LD" >&6
4569 else
4570 echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6
4572 fi
4573 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4574 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4575 { (exit 1); exit 1; }; }
4576 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4577 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4578 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4582 case `$LD -v 2>&1 </dev/null` in
4583 *GNU* | *'with BFD'*)
4584 acl_cv_prog_gnu_ld=yes ;;
4585 *)
4586 acl_cv_prog_gnu_ld=no ;;
4587 esac
4588 fi
4589 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4590 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4591 with_gnu_ld=$acl_cv_prog_gnu_ld
4592
4593
4594
4595 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4596 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
4597 if test "${acl_cv_rpath+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600
4601 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4602 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4603 . ./conftest.sh
4604 rm -f ./conftest.sh
4605 acl_cv_rpath=done
4606
4607 fi
4608 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4609 echo "${ECHO_T}$acl_cv_rpath" >&6
4610 wl="$acl_cv_wl"
4611 libext="$acl_cv_libext"
4612 shlibext="$acl_cv_shlibext"
4613 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4614 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4615 hardcode_direct="$acl_cv_hardcode_direct"
4616 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4617 # Check whether --enable-rpath or --disable-rpath was given.
4618 if test "${enable_rpath+set}" = set; then
4619 enableval="$enable_rpath"
4620 :
4621 else
4622 enable_rpath=yes
4623 fi;
4624
4625
4626
4627
4628
4629
4630
4631 use_additional=yes
4632
4633 acl_save_prefix="$prefix"
4634 prefix="$acl_final_prefix"
4635 acl_save_exec_prefix="$exec_prefix"
4636 exec_prefix="$acl_final_exec_prefix"
4637
4638 eval additional_includedir=\"$includedir\"
4639 eval additional_libdir=\"$libdir\"
4640
4641 exec_prefix="$acl_save_exec_prefix"
4642 prefix="$acl_save_prefix"
4643
4644
4645 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4646 if test "${with_libiconv_prefix+set}" = set; then
4647 withval="$with_libiconv_prefix"
4648
4649 if test "X$withval" = "Xno"; then
4650 use_additional=no
4651 else
4652 if test "X$withval" = "X"; then
4653
4654 acl_save_prefix="$prefix"
4655 prefix="$acl_final_prefix"
4656 acl_save_exec_prefix="$exec_prefix"
4657 exec_prefix="$acl_final_exec_prefix"
4658
4659 eval additional_includedir=\"$includedir\"
4660 eval additional_libdir=\"$libdir\"
4661
4662 exec_prefix="$acl_save_exec_prefix"
4663 prefix="$acl_save_prefix"
4664
4665 else
4666 additional_includedir="$withval/include"
4667 additional_libdir="$withval/lib"
4668 fi
4669 fi
4670
4671 fi;
4672 LIBICONV=
4673 LTLIBICONV=
4674 INCICONV=
4675 rpathdirs=
4676 ltrpathdirs=
4677 names_already_handled=
4678 names_next_round='iconv '
4679 while test -n "$names_next_round"; do
4680 names_this_round="$names_next_round"
4681 names_next_round=
4682 for name in $names_this_round; do
4683 already_handled=
4684 for n in $names_already_handled; do
4685 if test "$n" = "$name"; then
4686 already_handled=yes
4687 break
4688 fi
4689 done
4690 if test -z "$already_handled"; then
4691 names_already_handled="$names_already_handled $name"
4692 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4693 eval value=\"\$HAVE_LIB$uppername\"
4694 if test -n "$value"; then
4695 if test "$value" = yes; then
4696 eval value=\"\$LIB$uppername\"
4697 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4698 eval value=\"\$LTLIB$uppername\"
4699 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4700 else
4701 :
4702 fi
4703 else
4704 found_dir=
4705 found_la=
4706 found_so=
4707 found_a=
4708 if test $use_additional = yes; then
4709 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4710 found_dir="$additional_libdir"
4711 found_so="$additional_libdir/lib$name.$shlibext"
4712 if test -f "$additional_libdir/lib$name.la"; then
4713 found_la="$additional_libdir/lib$name.la"
4714 fi
4715 else
4716 if test -f "$additional_libdir/lib$name.$libext"; then
4717 found_dir="$additional_libdir"
4718 found_a="$additional_libdir/lib$name.$libext"
4719 if test -f "$additional_libdir/lib$name.la"; then
4720 found_la="$additional_libdir/lib$name.la"
4721 fi
4722 fi
4723 fi
4724 fi
4725 if test "X$found_dir" = "X"; then
4726 for x in $LDFLAGS $LTLIBICONV; do
4727
4728 acl_save_prefix="$prefix"
4729 prefix="$acl_final_prefix"
4730 acl_save_exec_prefix="$exec_prefix"
4731 exec_prefix="$acl_final_exec_prefix"
4732 eval x=\"$x\"
4733 exec_prefix="$acl_save_exec_prefix"
4734 prefix="$acl_save_prefix"
4735
4736 case "$x" in
4737 -L*)
4738 dir=`echo "X$x" | sed -e 's/^X-L//'`
4739 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4740 found_dir="$dir"
4741 found_so="$dir/lib$name.$shlibext"
4742 if test -f "$dir/lib$name.la"; then
4743 found_la="$dir/lib$name.la"
4744 fi
4745 else
4746 if test -f "$dir/lib$name.$libext"; then
4747 found_dir="$dir"
4748 found_a="$dir/lib$name.$libext"
4749 if test -f "$dir/lib$name.la"; then
4750 found_la="$dir/lib$name.la"
4751 fi
4752 fi
4753 fi
4754 ;;
4755 esac
4756 if test "X$found_dir" != "X"; then
4757 break
4758 fi
4759 done
4760 fi
4761 if test "X$found_dir" != "X"; then
4762 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4763 if test "X$found_so" != "X"; then
4764 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4765 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4766 else
4767 haveit=
4768 for x in $ltrpathdirs; do
4769 if test "X$x" = "X$found_dir"; then
4770 haveit=yes
4771 break
4772 fi
4773 done
4774 if test -z "$haveit"; then
4775 ltrpathdirs="$ltrpathdirs $found_dir"
4776 fi
4777 if test "$hardcode_direct" = yes; then
4778 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4779 else
4780 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4781 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4782 haveit=
4783 for x in $rpathdirs; do
4784 if test "X$x" = "X$found_dir"; then
4785 haveit=yes
4786 break
4787 fi
4788 done
4789 if test -z "$haveit"; then
4790 rpathdirs="$rpathdirs $found_dir"
4791 fi
4792 else
4793 haveit=
4794 for x in $LDFLAGS $LIBICONV; do
4795
4796 acl_save_prefix="$prefix"
4797 prefix="$acl_final_prefix"
4798 acl_save_exec_prefix="$exec_prefix"
4799 exec_prefix="$acl_final_exec_prefix"
4800 eval x=\"$x\"
4801 exec_prefix="$acl_save_exec_prefix"
4802 prefix="$acl_save_prefix"
4803
4804 if test "X$x" = "X-L$found_dir"; then
4805 haveit=yes
4806 break
4807 fi
4808 done
4809 if test -z "$haveit"; then
4810 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4811 fi
4812 if test "$hardcode_minus_L" != no; then
4813 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4814 else
4815 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4816 fi
4817 fi
4818 fi
4819 fi
4820 else
4821 if test "X$found_a" != "X"; then
4822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4823 else
4824 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4825 fi
4826 fi
4827 additional_includedir=
4828 case "$found_dir" in
4829 */lib | */lib/)
4830 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4831 additional_includedir="$basedir/include"
4832 ;;
4833 esac
4834 if test "X$additional_includedir" != "X"; then
4835 if test "X$additional_includedir" != "X/usr/include"; then
4836 haveit=
4837 if test "X$additional_includedir" = "X/usr/local/include"; then
4838 if test -n "$GCC"; then
4839 case $host_os in
4840 linux*) haveit=yes;;
4841 esac
4842 fi
4843 fi
4844 if test -z "$haveit"; then
4845 for x in $CPPFLAGS $INCICONV; do
4846
4847 acl_save_prefix="$prefix"
4848 prefix="$acl_final_prefix"
4849 acl_save_exec_prefix="$exec_prefix"
4850 exec_prefix="$acl_final_exec_prefix"
4851 eval x=\"$x\"
4852 exec_prefix="$acl_save_exec_prefix"
4853 prefix="$acl_save_prefix"
4854
4855 if test "X$x" = "X-I$additional_includedir"; then
4856 haveit=yes
4857 break
4858 fi
4859 done
4860 if test -z "$haveit"; then
4861 if test -d "$additional_includedir"; then
4862 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4863 fi
4864 fi
4865 fi
4866 fi
4867 fi
4868 if test -n "$found_la"; then
4869 save_libdir="$libdir"
4870 case "$found_la" in
4871 */* | *\\*) . "$found_la" ;;
4872 *) . "./$found_la" ;;
4873 esac
4874 libdir="$save_libdir"
4875 for dep in $dependency_libs; do
4876 case "$dep" in
4877 -L*)
4878 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4879 if test "X$additional_libdir" != "X/usr/lib"; then
4880 haveit=
4881 if test "X$additional_libdir" = "X/usr/local/lib"; then
4882 if test -n "$GCC"; then
4883 case $host_os in
4884 linux*) haveit=yes;;
4885 esac
4886 fi
4887 fi
4888 if test -z "$haveit"; then
4889 haveit=
4890 for x in $LDFLAGS $LIBICONV; do
4891
4892 acl_save_prefix="$prefix"
4893 prefix="$acl_final_prefix"
4894 acl_save_exec_prefix="$exec_prefix"
4895 exec_prefix="$acl_final_exec_prefix"
4896 eval x=\"$x\"
4897 exec_prefix="$acl_save_exec_prefix"
4898 prefix="$acl_save_prefix"
4899
4900 if test "X$x" = "X-L$additional_libdir"; then
4901 haveit=yes
4902 break
4903 fi
4904 done
4905 if test -z "$haveit"; then
4906 if test -d "$additional_libdir"; then
4907 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4908 fi
4909 fi
4910 haveit=
4911 for x in $LDFLAGS $LTLIBICONV; do
4912
4913 acl_save_prefix="$prefix"
4914 prefix="$acl_final_prefix"
4915 acl_save_exec_prefix="$exec_prefix"
4916 exec_prefix="$acl_final_exec_prefix"
4917 eval x=\"$x\"
4918 exec_prefix="$acl_save_exec_prefix"
4919 prefix="$acl_save_prefix"
4920
4921 if test "X$x" = "X-L$additional_libdir"; then
4922 haveit=yes
4923 break
4924 fi
4925 done
4926 if test -z "$haveit"; then
4927 if test -d "$additional_libdir"; then
4928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4929 fi
4930 fi
4931 fi
4932 fi
4933 ;;
4934 -R*)
4935 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4936 if test "$enable_rpath" != no; then
4937 haveit=
4938 for x in $rpathdirs; do
4939 if test "X$x" = "X$dir"; then
4940 haveit=yes
4941 break
4942 fi
4943 done
4944 if test -z "$haveit"; then
4945 rpathdirs="$rpathdirs $dir"
4946 fi
4947 haveit=
4948 for x in $ltrpathdirs; do
4949 if test "X$x" = "X$dir"; then
4950 haveit=yes
4951 break
4952 fi
4953 done
4954 if test -z "$haveit"; then
4955 ltrpathdirs="$ltrpathdirs $dir"
4956 fi
4957 fi
4958 ;;
4959 -l*)
4960 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4961 ;;
4962 *.la)
4963 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4964 ;;
4965 *)
4966 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4967 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4968 ;;
4969 esac
4970 done
4971 fi
4972 else
4973 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4974 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4975 fi
4976 fi
4977 fi
4978 done
4979 done
4980 if test "X$rpathdirs" != "X"; then
4981 if test -n "$hardcode_libdir_separator"; then
4982 alldirs=
4983 for found_dir in $rpathdirs; do
4984 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4985 done
4986 acl_save_libdir="$libdir"
4987 libdir="$alldirs"
4988 eval flag=\"$hardcode_libdir_flag_spec\"
4989 libdir="$acl_save_libdir"
4990 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4991 else
4992 for found_dir in $rpathdirs; do
4993 acl_save_libdir="$libdir"
4994 libdir="$found_dir"
4995 eval flag=\"$hardcode_libdir_flag_spec\"
4996 libdir="$acl_save_libdir"
4997 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4998 done
4999 fi
5000 fi
5001 if test "X$ltrpathdirs" != "X"; then
5002 for found_dir in $ltrpathdirs; do
5003 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5004 done
5005 fi
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5025 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5026 # Check whether --enable-nls or --disable-nls was given.
5027 if test "${enable_nls+set}" = set; then
5028 enableval="$enable_nls"
5029 USE_NLS=$enableval
5030 else
5031 USE_NLS=yes
5032 fi;
5033 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5034 echo "${ECHO_T}$USE_NLS" >&6
5035
5036
5037
5038
5039 LIBINTL=
5040 LTLIBINTL=
5041 POSUB=
5042
5043 if test "$USE_NLS" = "yes"; then
5044 gt_use_preinstalled_gnugettext=no
5045
5046
5047
5048
5049
5050
5051 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5052 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5053 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056 cat >conftest.$ac_ext <<_ACEOF
5057 /* confdefs.h. */
5058 _ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5062 #include <libintl.h>
5063 extern int _nl_msg_cat_cntr;
5064 extern int *_nl_domain_bindings;
5065 int
5066 main ()
5067 {
5068 bindtextdomain ("", "");
5069 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5070 ;
5071 return 0;
5072 }
5073 _ACEOF
5074 rm -f conftest.$ac_objext conftest$ac_exeext
5075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5076 (eval $ac_link) 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 (eval $ac_try) 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; } &&
5089 { ac_try='test -s conftest$ac_exeext'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 (eval $ac_try) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; }; then
5095 gt_cv_func_gnugettext1_libc=yes
5096 else
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100 gt_cv_func_gnugettext1_libc=no
5101 fi
5102 rm -f conftest.err conftest.$ac_objext \
5103 conftest$ac_exeext conftest.$ac_ext
5104 fi
5105 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5106 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5107
5108 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5109
5110
5111
5112
5113
5114 am_save_CPPFLAGS="$CPPFLAGS"
5115
5116 for element in $INCICONV; do
5117 haveit=
5118 for x in $CPPFLAGS; do
5119
5120 acl_save_prefix="$prefix"
5121 prefix="$acl_final_prefix"
5122 acl_save_exec_prefix="$exec_prefix"
5123 exec_prefix="$acl_final_exec_prefix"
5124 eval x=\"$x\"
5125 exec_prefix="$acl_save_exec_prefix"
5126 prefix="$acl_save_prefix"
5127
5128 if test "X$x" = "X$element"; then
5129 haveit=yes
5130 break
5131 fi
5132 done
5133 if test -z "$haveit"; then
5134 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5135 fi
5136 done
5137
5138
5139 echo "$as_me:$LINENO: checking for iconv" >&5
5140 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5141 if test "${am_cv_func_iconv+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144
5145 am_cv_func_iconv="no, consider installing GNU libiconv"
5146 am_cv_lib_iconv=no
5147 cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h. */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 #include <stdlib.h>
5154 #include <iconv.h>
5155 int
5156 main ()
5157 {
5158 iconv_t cd = iconv_open("","");
5159 iconv(cd,NULL,NULL,NULL,NULL);
5160 iconv_close(cd);
5161 ;
5162 return 0;
5163 }
5164 _ACEOF
5165 rm -f conftest.$ac_objext conftest$ac_exeext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5167 (eval $ac_link) 2>conftest.er1
5168 ac_status=$?
5169 grep -v '^ *+' conftest.er1 >conftest.err
5170 rm -f conftest.er1
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 (eval $ac_try) 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; } &&
5180 { ac_try='test -s conftest$ac_exeext'
5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 (eval $ac_try) 2>&5
5183 ac_status=$?
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; }; then
5186 am_cv_func_iconv=yes
5187 else
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5190
5191 fi
5192 rm -f conftest.err conftest.$ac_objext \
5193 conftest$ac_exeext conftest.$ac_ext
5194 if test "$am_cv_func_iconv" != yes; then
5195 am_save_LIBS="$LIBS"
5196 LIBS="$LIBS $LIBICONV"
5197 cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h. */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 #include <stdlib.h>
5204 #include <iconv.h>
5205 int
5206 main ()
5207 {
5208 iconv_t cd = iconv_open("","");
5209 iconv(cd,NULL,NULL,NULL,NULL);
5210 iconv_close(cd);
5211 ;
5212 return 0;
5213 }
5214 _ACEOF
5215 rm -f conftest.$ac_objext conftest$ac_exeext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5217 (eval $ac_link) 2>conftest.er1
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 (eval $ac_try) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; } &&
5230 { ac_try='test -s conftest$ac_exeext'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 (eval $ac_try) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; }; then
5236 am_cv_lib_iconv=yes
5237 am_cv_func_iconv=yes
5238 else
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5241
5242 fi
5243 rm -f conftest.err conftest.$ac_objext \
5244 conftest$ac_exeext conftest.$ac_ext
5245 LIBS="$am_save_LIBS"
5246 fi
5247
5248 fi
5249 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5250 echo "${ECHO_T}$am_cv_func_iconv" >&6
5251 if test "$am_cv_func_iconv" = yes; then
5252
5253 cat >>confdefs.h <<\_ACEOF
5254 #define HAVE_ICONV 1
5255 _ACEOF
5256
5257 fi
5258 if test "$am_cv_lib_iconv" = yes; then
5259 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
5260 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
5261 echo "$as_me:$LINENO: result: $LIBICONV" >&5
5262 echo "${ECHO_T}$LIBICONV" >&6
5263 else
5264 CPPFLAGS="$am_save_CPPFLAGS"
5265 LIBICONV=
5266 LTLIBICONV=
5267 fi
5268
5269
5270
5271
5272
5273
5274 use_additional=yes
5275
5276 acl_save_prefix="$prefix"
5277 prefix="$acl_final_prefix"
5278 acl_save_exec_prefix="$exec_prefix"
5279 exec_prefix="$acl_final_exec_prefix"
5280
5281 eval additional_includedir=\"$includedir\"
5282 eval additional_libdir=\"$libdir\"
5283
5284 exec_prefix="$acl_save_exec_prefix"
5285 prefix="$acl_save_prefix"
5286
5287
5288 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
5289 if test "${with_libintl_prefix+set}" = set; then
5290 withval="$with_libintl_prefix"
5291
5292 if test "X$withval" = "Xno"; then
5293 use_additional=no
5294 else
5295 if test "X$withval" = "X"; then
5296
5297 acl_save_prefix="$prefix"
5298 prefix="$acl_final_prefix"
5299 acl_save_exec_prefix="$exec_prefix"
5300 exec_prefix="$acl_final_exec_prefix"
5301
5302 eval additional_includedir=\"$includedir\"
5303 eval additional_libdir=\"$libdir\"
5304
5305 exec_prefix="$acl_save_exec_prefix"
5306 prefix="$acl_save_prefix"
5307
5308 else
5309 additional_includedir="$withval/include"
5310 additional_libdir="$withval/lib"
5311 fi
5312 fi
5313
5314 fi;
5315 LIBINTL=
5316 LTLIBINTL=
5317 INCINTL=
5318 rpathdirs=
5319 ltrpathdirs=
5320 names_already_handled=
5321 names_next_round='intl '
5322 while test -n "$names_next_round"; do
5323 names_this_round="$names_next_round"
5324 names_next_round=
5325 for name in $names_this_round; do
5326 already_handled=
5327 for n in $names_already_handled; do
5328 if test "$n" = "$name"; then
5329 already_handled=yes
5330 break
5331 fi
5332 done
5333 if test -z "$already_handled"; then
5334 names_already_handled="$names_already_handled $name"
5335 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5336 eval value=\"\$HAVE_LIB$uppername\"
5337 if test -n "$value"; then
5338 if test "$value" = yes; then
5339 eval value=\"\$LIB$uppername\"
5340 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5341 eval value=\"\$LTLIB$uppername\"
5342 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5343 else
5344 :
5345 fi
5346 else
5347 found_dir=
5348 found_la=
5349 found_so=
5350 found_a=
5351 if test $use_additional = yes; then
5352 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5353 found_dir="$additional_libdir"
5354 found_so="$additional_libdir/lib$name.$shlibext"
5355 if test -f "$additional_libdir/lib$name.la"; then
5356 found_la="$additional_libdir/lib$name.la"
5357 fi
5358 else
5359 if test -f "$additional_libdir/lib$name.$libext"; then
5360 found_dir="$additional_libdir"
5361 found_a="$additional_libdir/lib$name.$libext"
5362 if test -f "$additional_libdir/lib$name.la"; then
5363 found_la="$additional_libdir/lib$name.la"
5364 fi
5365 fi
5366 fi
5367 fi
5368 if test "X$found_dir" = "X"; then
5369 for x in $LDFLAGS $LTLIBINTL; do
5370
5371 acl_save_prefix="$prefix"
5372 prefix="$acl_final_prefix"
5373 acl_save_exec_prefix="$exec_prefix"
5374 exec_prefix="$acl_final_exec_prefix"
5375 eval x=\"$x\"
5376 exec_prefix="$acl_save_exec_prefix"
5377 prefix="$acl_save_prefix"
5378
5379 case "$x" in
5380 -L*)
5381 dir=`echo "X$x" | sed -e 's/^X-L//'`
5382 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5383 found_dir="$dir"
5384 found_so="$dir/lib$name.$shlibext"
5385 if test -f "$dir/lib$name.la"; then
5386 found_la="$dir/lib$name.la"
5387 fi
5388 else
5389 if test -f "$dir/lib$name.$libext"; then
5390 found_dir="$dir"
5391 found_a="$dir/lib$name.$libext"
5392 if test -f "$dir/lib$name.la"; then
5393 found_la="$dir/lib$name.la"
5394 fi
5395 fi
5396 fi
5397 ;;
5398 esac
5399 if test "X$found_dir" != "X"; then
5400 break
5401 fi
5402 done
5403 fi
5404 if test "X$found_dir" != "X"; then
5405 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5406 if test "X$found_so" != "X"; then
5407 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5408 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5409 else
5410 haveit=
5411 for x in $ltrpathdirs; do
5412 if test "X$x" = "X$found_dir"; then
5413 haveit=yes
5414 break
5415 fi
5416 done
5417 if test -z "$haveit"; then
5418 ltrpathdirs="$ltrpathdirs $found_dir"
5419 fi
5420 if test "$hardcode_direct" = yes; then
5421 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5422 else
5423 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5424 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5425 haveit=
5426 for x in $rpathdirs; do
5427 if test "X$x" = "X$found_dir"; then
5428 haveit=yes
5429 break
5430 fi
5431 done
5432 if test -z "$haveit"; then
5433 rpathdirs="$rpathdirs $found_dir"
5434 fi
5435 else
5436 haveit=
5437 for x in $LDFLAGS $LIBINTL; do
5438
5439 acl_save_prefix="$prefix"
5440 prefix="$acl_final_prefix"
5441 acl_save_exec_prefix="$exec_prefix"
5442 exec_prefix="$acl_final_exec_prefix"
5443 eval x=\"$x\"
5444 exec_prefix="$acl_save_exec_prefix"
5445 prefix="$acl_save_prefix"
5446
5447 if test "X$x" = "X-L$found_dir"; then
5448 haveit=yes
5449 break
5450 fi
5451 done
5452 if test -z "$haveit"; then
5453 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5454 fi
5455 if test "$hardcode_minus_L" != no; then
5456 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5457 else
5458 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5459 fi
5460 fi
5461 fi
5462 fi
5463 else
5464 if test "X$found_a" != "X"; then
5465 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5466 else
5467 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5468 fi
5469 fi
5470 additional_includedir=
5471 case "$found_dir" in
5472 */lib | */lib/)
5473 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5474 additional_includedir="$basedir/include"
5475 ;;
5476 esac
5477 if test "X$additional_includedir" != "X"; then
5478 if test "X$additional_includedir" != "X/usr/include"; then
5479 haveit=
5480 if test "X$additional_includedir" = "X/usr/local/include"; then
5481 if test -n "$GCC"; then
5482 case $host_os in
5483 linux*) haveit=yes;;
5484 esac
5485 fi
5486 fi
5487 if test -z "$haveit"; then
5488 for x in $CPPFLAGS $INCINTL; do
5489
5490 acl_save_prefix="$prefix"
5491 prefix="$acl_final_prefix"
5492 acl_save_exec_prefix="$exec_prefix"
5493 exec_prefix="$acl_final_exec_prefix"
5494 eval x=\"$x\"
5495 exec_prefix="$acl_save_exec_prefix"
5496 prefix="$acl_save_prefix"
5497
5498 if test "X$x" = "X-I$additional_includedir"; then
5499 haveit=yes
5500 break
5501 fi
5502 done
5503 if test -z "$haveit"; then
5504 if test -d "$additional_includedir"; then
5505 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5506 fi
5507 fi
5508 fi
5509 fi
5510 fi
5511 if test -n "$found_la"; then
5512 save_libdir="$libdir"
5513 case "$found_la" in
5514 */* | *\\*) . "$found_la" ;;
5515 *) . "./$found_la" ;;
5516 esac
5517 libdir="$save_libdir"
5518 for dep in $dependency_libs; do
5519 case "$dep" in
5520 -L*)
5521 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5522 if test "X$additional_libdir" != "X/usr/lib"; then
5523 haveit=
5524 if test "X$additional_libdir" = "X/usr/local/lib"; then
5525 if test -n "$GCC"; then
5526 case $host_os in
5527 linux*) haveit=yes;;
5528 esac
5529 fi
5530 fi
5531 if test -z "$haveit"; then
5532 haveit=
5533 for x in $LDFLAGS $LIBINTL; do
5534
5535 acl_save_prefix="$prefix"
5536 prefix="$acl_final_prefix"
5537 acl_save_exec_prefix="$exec_prefix"
5538 exec_prefix="$acl_final_exec_prefix"
5539 eval x=\"$x\"
5540 exec_prefix="$acl_save_exec_prefix"
5541 prefix="$acl_save_prefix"
5542
5543 if test "X$x" = "X-L$additional_libdir"; then
5544 haveit=yes
5545 break
5546 fi
5547 done
5548 if test -z "$haveit"; then
5549 if test -d "$additional_libdir"; then
5550 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5551 fi
5552 fi
5553 haveit=
5554 for x in $LDFLAGS $LTLIBINTL; do
5555
5556 acl_save_prefix="$prefix"
5557 prefix="$acl_final_prefix"
5558 acl_save_exec_prefix="$exec_prefix"
5559 exec_prefix="$acl_final_exec_prefix"
5560 eval x=\"$x\"
5561 exec_prefix="$acl_save_exec_prefix"
5562 prefix="$acl_save_prefix"
5563
5564 if test "X$x" = "X-L$additional_libdir"; then
5565 haveit=yes
5566 break
5567 fi
5568 done
5569 if test -z "$haveit"; then
5570 if test -d "$additional_libdir"; then
5571 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5572 fi
5573 fi
5574 fi
5575 fi
5576 ;;
5577 -R*)
5578 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5579 if test "$enable_rpath" != no; then
5580 haveit=
5581 for x in $rpathdirs; do
5582 if test "X$x" = "X$dir"; then
5583 haveit=yes
5584 break
5585 fi
5586 done
5587 if test -z "$haveit"; then
5588 rpathdirs="$rpathdirs $dir"
5589 fi
5590 haveit=
5591 for x in $ltrpathdirs; do
5592 if test "X$x" = "X$dir"; then
5593 haveit=yes
5594 break
5595 fi
5596 done
5597 if test -z "$haveit"; then
5598 ltrpathdirs="$ltrpathdirs $dir"
5599 fi
5600 fi
5601 ;;
5602 -l*)
5603 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5604 ;;
5605 *.la)
5606 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5607 ;;
5608 *)
5609 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5610 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5611 ;;
5612 esac
5613 done
5614 fi
5615 else
5616 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5617 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5618 fi
5619 fi
5620 fi
5621 done
5622 done
5623 if test "X$rpathdirs" != "X"; then
5624 if test -n "$hardcode_libdir_separator"; then
5625 alldirs=
5626 for found_dir in $rpathdirs; do
5627 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5628 done
5629 acl_save_libdir="$libdir"
5630 libdir="$alldirs"
5631 eval flag=\"$hardcode_libdir_flag_spec\"
5632 libdir="$acl_save_libdir"
5633 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5634 else
5635 for found_dir in $rpathdirs; do
5636 acl_save_libdir="$libdir"
5637 libdir="$found_dir"
5638 eval flag=\"$hardcode_libdir_flag_spec\"
5639 libdir="$acl_save_libdir"
5640 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5641 done
5642 fi
5643 fi
5644 if test "X$ltrpathdirs" != "X"; then
5645 for found_dir in $ltrpathdirs; do
5646 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5647 done
5648 fi
5649
5650 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
5651 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
5652 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655 gt_save_CPPFLAGS="$CPPFLAGS"
5656 CPPFLAGS="$CPPFLAGS $INCINTL"
5657 gt_save_LIBS="$LIBS"
5658 LIBS="$LIBS $LIBINTL"
5659 cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h. */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 #include <libintl.h>
5666 extern int _nl_msg_cat_cntr;
5667 extern
5668 #ifdef __cplusplus
5669 "C"
5670 #endif
5671 const char *_nl_expand_alias ();
5672 int
5673 main ()
5674 {
5675 bindtextdomain ("", "");
5676 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5677 ;
5678 return 0;
5679 }
5680 _ACEOF
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 (eval $ac_try) 2>&5
5693 ac_status=$?
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; } &&
5696 { ac_try='test -s conftest$ac_exeext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5702 gt_cv_func_gnugettext1_libintl=yes
5703 else
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5706
5707 gt_cv_func_gnugettext1_libintl=no
5708 fi
5709 rm -f conftest.err conftest.$ac_objext \
5710 conftest$ac_exeext conftest.$ac_ext
5711 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5712 LIBS="$LIBS $LIBICONV"
5713 cat >conftest.$ac_ext <<_ACEOF
5714 /* confdefs.h. */
5715 _ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h. */
5719 #include <libintl.h>
5720 extern int _nl_msg_cat_cntr;
5721 extern
5722 #ifdef __cplusplus
5723 "C"
5724 #endif
5725 const char *_nl_expand_alias ();
5726 int
5727 main ()
5728 {
5729 bindtextdomain ("", "");
5730 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5731 ;
5732 return 0;
5733 }
5734 _ACEOF
5735 rm -f conftest.$ac_objext conftest$ac_exeext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5737 (eval $ac_link) 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 (eval $ac_try) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; } &&
5750 { ac_try='test -s conftest$ac_exeext'
5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 (eval $ac_try) 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; }; then
5756 LIBINTL="$LIBINTL $LIBICONV"
5757 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5758 gt_cv_func_gnugettext1_libintl=yes
5759
5760 else
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764 fi
5765 rm -f conftest.err conftest.$ac_objext \
5766 conftest$ac_exeext conftest.$ac_ext
5767 fi
5768 CPPFLAGS="$gt_save_CPPFLAGS"
5769 LIBS="$gt_save_LIBS"
5770 fi
5771 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
5772 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
5773 fi
5774
5775 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5776 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5777 && test "$PACKAGE" != gettext-runtime \
5778 && test "$PACKAGE" != gettext-tools; }; then
5779 gt_use_preinstalled_gnugettext=yes
5780 else
5781 LIBINTL=
5782 LTLIBINTL=
5783 INCINTL=
5784 fi
5785
5786
5787
5788 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5789 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5790
5791 cat >>confdefs.h <<\_ACEOF
5792 #define ENABLE_NLS 1
5793 _ACEOF
5794
5795 else
5796 USE_NLS=no
5797 fi
5798 fi
5799
5800 echo "$as_me:$LINENO: checking whether to use NLS" >&5
5801 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
5802 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5803 echo "${ECHO_T}$USE_NLS" >&6
5804 if test "$USE_NLS" = "yes"; then
5805 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
5806 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
5807 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5808 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5809 gt_source="external libintl"
5810 else
5811 gt_source="libc"
5812 fi
5813 else
5814 gt_source="included intl directory"
5815 fi
5816 echo "$as_me:$LINENO: result: $gt_source" >&5
5817 echo "${ECHO_T}$gt_source" >&6
5818 fi
5819
5820 if test "$USE_NLS" = "yes"; then
5821
5822 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5823 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5824 echo "$as_me:$LINENO: checking how to link with libintl" >&5
5825 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
5826 echo "$as_me:$LINENO: result: $LIBINTL" >&5
5827 echo "${ECHO_T}$LIBINTL" >&6
5828
5829 for element in $INCINTL; do
5830 haveit=
5831 for x in $CPPFLAGS; do
5832
5833 acl_save_prefix="$prefix"
5834 prefix="$acl_final_prefix"
5835 acl_save_exec_prefix="$exec_prefix"
5836 exec_prefix="$acl_final_exec_prefix"
5837 eval x=\"$x\"
5838 exec_prefix="$acl_save_exec_prefix"
5839 prefix="$acl_save_prefix"
5840
5841 if test "X$x" = "X$element"; then
5842 haveit=yes
5843 break
5844 fi
5845 done
5846 if test -z "$haveit"; then
5847 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5848 fi
5849 done
5850
5851 fi
5852
5853
5854 cat >>confdefs.h <<\_ACEOF
5855 #define HAVE_GETTEXT 1
5856 _ACEOF
5857
5858
5859 cat >>confdefs.h <<\_ACEOF
5860 #define HAVE_DCGETTEXT 1
5861 _ACEOF
5862
5863 fi
5864
5865 POSUB=po
5866 fi
5867
5868
5869
5870 INTLLIBS="$LIBINTL"
5871
5872
5873
5874
5875
5876
5877
5878 # This test must come as early as possible after the compiler configuration
5879 # tests, because the choice of the file model can (in principle) affect
5880 # whether functions and headers are available, whether they work, etc.
5881 # Check whether --enable-largefile or --disable-largefile was given.
5882 if test "${enable_largefile+set}" = set; then
5883 enableval="$enable_largefile"
5884
5885 fi;
5886 if test "$enable_largefile" != no; then
5887
5888 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5889 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
5890 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 ac_cv_sys_largefile_CC=no
5894 if test "$GCC" != yes; then
5895 ac_save_CC=$CC
5896 while :; do
5897 # IRIX 6.2 and later do not support large files by default,
5898 # so use the C compiler's -n32 option if that helps.
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 #include <sys/types.h>
5906 /* Check that off_t can represent 2**63 - 1 correctly.
5907 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5908 since some C++ compilers masquerading as C compilers
5909 incorrectly reject 9223372036854775807. */
5910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5911 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5912 && LARGE_OFF_T % 2147483647 == 1)
5913 ? 1 : -1];
5914 int
5915 main ()
5916 {
5917
5918 ;
5919 return 0;
5920 }
5921 _ACEOF
5922 rm -f conftest.$ac_objext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5924 (eval $ac_compile) 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 break
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 fi
5949 rm -f conftest.err conftest.$ac_objext
5950 CC="$CC -n32"
5951 rm -f conftest.$ac_objext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5953 (eval $ac_compile) 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } &&
5960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 (eval $ac_try) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; } &&
5966 { ac_try='test -s conftest.$ac_objext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5972 ac_cv_sys_largefile_CC=' -n32'; break
5973 else
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5976
5977 fi
5978 rm -f conftest.err conftest.$ac_objext
5979 break
5980 done
5981 CC=$ac_save_CC
5982 rm -f conftest.$ac_ext
5983 fi
5984 fi
5985 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5986 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5987 if test "$ac_cv_sys_largefile_CC" != no; then
5988 CC=$CC$ac_cv_sys_largefile_CC
5989 fi
5990
5991 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5992 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5993 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996 while :; do
5997 ac_cv_sys_file_offset_bits=no
5998 cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h. */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 #include <sys/types.h>
6005 /* Check that off_t can represent 2**63 - 1 correctly.
6006 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6007 since some C++ compilers masquerading as C compilers
6008 incorrectly reject 9223372036854775807. */
6009 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6011 && LARGE_OFF_T % 2147483647 == 1)
6012 ? 1 : -1];
6013 int
6014 main ()
6015 {
6016
6017 ;
6018 return 0;
6019 }
6020 _ACEOF
6021 rm -f conftest.$ac_objext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023 (eval $ac_compile) 2>conftest.er1
6024 ac_status=$?
6025 grep -v '^ *+' conftest.er1 >conftest.err
6026 rm -f conftest.er1
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } &&
6030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 (eval $ac_try) 2>&5
6033 ac_status=$?
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; } &&
6036 { ac_try='test -s conftest.$ac_objext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 (eval $ac_try) 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 break
6043 else
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6046
6047 fi
6048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h. */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #define _FILE_OFFSET_BITS 64
6056 #include <sys/types.h>
6057 /* Check that off_t can represent 2**63 - 1 correctly.
6058 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6059 since some C++ compilers masquerading as C compilers
6060 incorrectly reject 9223372036854775807. */
6061 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6062 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6063 && LARGE_OFF_T % 2147483647 == 1)
6064 ? 1 : -1];
6065 int
6066 main ()
6067 {
6068
6069 ;
6070 return 0;
6071 }
6072 _ACEOF
6073 rm -f conftest.$ac_objext
6074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6075 (eval $ac_compile) 2>conftest.er1
6076 ac_status=$?
6077 grep -v '^ *+' conftest.er1 >conftest.err
6078 rm -f conftest.er1
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } &&
6082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; } &&
6088 { ac_try='test -s conftest.$ac_objext'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 (eval $ac_try) 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_cv_sys_file_offset_bits=64; break
6095 else
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6098
6099 fi
6100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6101 break
6102 done
6103 fi
6104 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6105 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
6106 if test "$ac_cv_sys_file_offset_bits" != no; then
6107
6108 cat >>confdefs.h <<_ACEOF
6109 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6110 _ACEOF
6111
6112 fi
6113 rm -f conftest*
6114 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6115 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
6116 if test "${ac_cv_sys_large_files+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119 while :; do
6120 ac_cv_sys_large_files=no
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h. */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 #include <sys/types.h>
6128 /* Check that off_t can represent 2**63 - 1 correctly.
6129 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6130 since some C++ compilers masquerading as C compilers
6131 incorrectly reject 9223372036854775807. */
6132 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6134 && LARGE_OFF_T % 2147483647 == 1)
6135 ? 1 : -1];
6136 int
6137 main ()
6138 {
6139
6140 ;
6141 return 0;
6142 }
6143 _ACEOF
6144 rm -f conftest.$ac_objext
6145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6146 (eval $ac_compile) 2>conftest.er1
6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } &&
6153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 (eval $ac_try) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; } &&
6159 { ac_try='test -s conftest.$ac_objext'
6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 (eval $ac_try) 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; }; then
6165 break
6166 else
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170 fi
6171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 #define _LARGE_FILES 1
6179 #include <sys/types.h>
6180 /* Check that off_t can represent 2**63 - 1 correctly.
6181 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6182 since some C++ compilers masquerading as C compilers
6183 incorrectly reject 9223372036854775807. */
6184 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6185 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6186 && LARGE_OFF_T % 2147483647 == 1)
6187 ? 1 : -1];
6188 int
6189 main ()
6190 {
6191
6192 ;
6193 return 0;
6194 }
6195 _ACEOF
6196 rm -f conftest.$ac_objext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6198 (eval $ac_compile) 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } &&
6205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try='test -s conftest.$ac_objext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 ac_cv_sys_large_files=1; break
6218 else
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222 fi
6223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6224 break
6225 done
6226 fi
6227 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6228 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
6229 if test "$ac_cv_sys_large_files" != no; then
6230
6231 cat >>confdefs.h <<_ACEOF
6232 #define _LARGE_FILES $ac_cv_sys_large_files
6233 _ACEOF
6234
6235 fi
6236 rm -f conftest*
6237 fi
6238
6239
6240 # Checks for libraries.
6241 echo "$as_me:$LINENO: checking for library containing getpwnam" >&5
6242 echo $ECHO_N "checking for library containing getpwnam... $ECHO_C" >&6
6243 if test "${ac_cv_search_getpwnam+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246 ac_func_search_save_LIBS=$LIBS
6247 ac_cv_search_getpwnam=no
6248 cat >conftest.$ac_ext <<_ACEOF
6249 /* confdefs.h. */
6250 _ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6254
6255 /* Override any gcc2 internal prototype to avoid an error. */
6256 #ifdef __cplusplus
6257 extern "C"
6258 #endif
6259 /* We use char because int might match the return type of a gcc2
6260 builtin and then its argument prototype would still apply. */
6261 char getpwnam ();
6262 int
6263 main ()
6264 {
6265 getpwnam ();
6266 ;
6267 return 0;
6268 }
6269 _ACEOF
6270 rm -f conftest.$ac_objext conftest$ac_exeext
6271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6272 (eval $ac_link) 2>conftest.er1
6273 ac_status=$?
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } &&
6279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; } &&
6285 { ac_try='test -s conftest$ac_exeext'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 ac_cv_search_getpwnam="none required"
6292 else
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6295
6296 fi
6297 rm -f conftest.err conftest.$ac_objext \
6298 conftest$ac_exeext conftest.$ac_ext
6299 if test "$ac_cv_search_getpwnam" = no; then
6300 for ac_lib in sun; do
6301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6302 cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h. */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6308
6309 /* Override any gcc2 internal prototype to avoid an error. */
6310 #ifdef __cplusplus
6311 extern "C"
6312 #endif
6313 /* We use char because int might match the return type of a gcc2
6314 builtin and then its argument prototype would still apply. */
6315 char getpwnam ();
6316 int
6317 main ()
6318 {
6319 getpwnam ();
6320 ;
6321 return 0;
6322 }
6323 _ACEOF
6324 rm -f conftest.$ac_objext conftest$ac_exeext
6325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6326 (eval $ac_link) 2>conftest.er1
6327 ac_status=$?
6328 grep -v '^ *+' conftest.er1 >conftest.err
6329 rm -f conftest.er1
6330 cat conftest.err >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } &&
6333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; } &&
6339 { ac_try='test -s conftest$ac_exeext'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341 (eval $ac_try) 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; }; then
6345 ac_cv_search_getpwnam="-l$ac_lib"
6346 break
6347 else
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6350
6351 fi
6352 rm -f conftest.err conftest.$ac_objext \
6353 conftest$ac_exeext conftest.$ac_ext
6354 done
6355 fi
6356 LIBS=$ac_func_search_save_LIBS
6357 fi
6358 echo "$as_me:$LINENO: result: $ac_cv_search_getpwnam" >&5
6359 echo "${ECHO_T}$ac_cv_search_getpwnam" >&6
6360 if test "$ac_cv_search_getpwnam" != no; then
6361 test "$ac_cv_search_getpwnam" = "none required" || LIBS="$ac_cv_search_getpwnam $LIBS"
6362
6363 fi
6364
6365
6366 # Checks for header files.
6367 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6368 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6369 if test "${ac_cv_header_stdc+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372 cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h. */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 #include <stdlib.h>
6379 #include <stdarg.h>
6380 #include <string.h>
6381 #include <float.h>
6382
6383 int
6384 main ()
6385 {
6386
6387 ;
6388 return 0;
6389 }
6390 _ACEOF
6391 rm -f conftest.$ac_objext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393 (eval $ac_compile) 2>conftest.er1
6394 ac_status=$?
6395 grep -v '^ *+' conftest.er1 >conftest.err
6396 rm -f conftest.er1
6397 cat conftest.err >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } &&
6400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 (eval $ac_try) 2>&5
6403 ac_status=$?
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; } &&
6406 { ac_try='test -s conftest.$ac_objext'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 (eval $ac_try) 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6412 ac_cv_header_stdc=yes
6413 else
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6416
6417 ac_cv_header_stdc=no
6418 fi
6419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6420
6421 if test $ac_cv_header_stdc = yes; then
6422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h. */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 #include <string.h>
6430
6431 _ACEOF
6432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6433 $EGREP "memchr" >/dev/null 2>&1; then
6434 :
6435 else
6436 ac_cv_header_stdc=no
6437 fi
6438 rm -f conftest*
6439
6440 fi
6441
6442 if test $ac_cv_header_stdc = yes; then
6443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6444 cat >conftest.$ac_ext <<_ACEOF
6445 /* confdefs.h. */
6446 _ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 #include <stdlib.h>
6451
6452 _ACEOF
6453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6454 $EGREP "free" >/dev/null 2>&1; then
6455 :
6456 else
6457 ac_cv_header_stdc=no
6458 fi
6459 rm -f conftest*
6460
6461 fi
6462
6463 if test $ac_cv_header_stdc = yes; then
6464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6465 if test "$cross_compiling" = yes; then
6466 :
6467 else
6468 cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h. */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 #include <ctype.h>
6475 #if ((' ' & 0x0FF) == 0x020)
6476 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6477 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6478 #else
6479 # define ISLOWER(c) \
6480 (('a' <= (c) && (c) <= 'i') \
6481 || ('j' <= (c) && (c) <= 'r') \
6482 || ('s' <= (c) && (c) <= 'z'))
6483 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6484 #endif
6485
6486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6487 int
6488 main ()
6489 {
6490 int i;
6491 for (i = 0; i < 256; i++)
6492 if (XOR (islower (i), ISLOWER (i))
6493 || toupper (i) != TOUPPER (i))
6494 exit(2);
6495 exit (0);
6496 }
6497 _ACEOF
6498 rm -f conftest$ac_exeext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6500 (eval $ac_link) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 (eval $ac_try) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 :
6510 else
6511 echo "$as_me: program exited with status $ac_status" >&5
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 ( exit $ac_status )
6516 ac_cv_header_stdc=no
6517 fi
6518 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6519 fi
6520 fi
6521 fi
6522 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6523 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6524 if test $ac_cv_header_stdc = yes; then
6525
6526 cat >>confdefs.h <<\_ACEOF
6527 #define STDC_HEADERS 1
6528 _ACEOF
6529
6530 fi
6531
6532
6533
6534
6535
6536
6537 ac_header_dirent=no
6538 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6539 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6540 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6541 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545 cat >conftest.$ac_ext <<_ACEOF
6546 /* confdefs.h. */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 #include <sys/types.h>
6552 #include <$ac_hdr>
6553
6554 int
6555 main ()
6556 {
6557 if ((DIR *) 0)
6558 return 0;
6559 ;
6560 return 0;
6561 }
6562 _ACEOF
6563 rm -f conftest.$ac_objext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6565 (eval $ac_compile) 2>conftest.er1
6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } &&
6572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 (eval $ac_try) 2>&5
6575 ac_status=$?
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); }; } &&
6578 { ac_try='test -s conftest.$ac_objext'
6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 (eval $ac_try) 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
6584 eval "$as_ac_Header=yes"
6585 else
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6588
6589 eval "$as_ac_Header=no"
6590 fi
6591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6592 fi
6593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6596 cat >>confdefs.h <<_ACEOF
6597 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6598 _ACEOF
6599
6600 ac_header_dirent=$ac_hdr; break
6601 fi
6602
6603 done
6604 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6605 if test $ac_header_dirent = dirent.h; then
6606 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6607 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6608 if test "${ac_cv_search_opendir+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611 ac_func_search_save_LIBS=$LIBS
6612 ac_cv_search_opendir=no
6613 cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h. */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6619
6620 /* Override any gcc2 internal prototype to avoid an error. */
6621 #ifdef __cplusplus
6622 extern "C"
6623 #endif
6624 /* We use char because int might match the return type of a gcc2
6625 builtin and then its argument prototype would still apply. */
6626 char opendir ();
6627 int
6628 main ()
6629 {
6630 opendir ();
6631 ;
6632 return 0;
6633 }
6634 _ACEOF
6635 rm -f conftest.$ac_objext conftest$ac_exeext
6636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6637 (eval $ac_link) 2>conftest.er1
6638 ac_status=$?
6639 grep -v '^ *+' conftest.er1 >conftest.err
6640 rm -f conftest.er1
6641 cat conftest.err >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } &&
6644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest$ac_exeext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 ac_cv_search_opendir="none required"
6657 else
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 fi
6662 rm -f conftest.err conftest.$ac_objext \
6663 conftest$ac_exeext conftest.$ac_ext
6664 if test "$ac_cv_search_opendir" = no; then
6665 for ac_lib in dir; do
6666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6667 cat >conftest.$ac_ext <<_ACEOF
6668 /* confdefs.h. */
6669 _ACEOF
6670 cat confdefs.h >>conftest.$ac_ext
6671 cat >>conftest.$ac_ext <<_ACEOF
6672 /* end confdefs.h. */
6673
6674 /* Override any gcc2 internal prototype to avoid an error. */
6675 #ifdef __cplusplus
6676 extern "C"
6677 #endif
6678 /* We use char because int might match the return type of a gcc2
6679 builtin and then its argument prototype would still apply. */
6680 char opendir ();
6681 int
6682 main ()
6683 {
6684 opendir ();
6685 ;
6686 return 0;
6687 }
6688 _ACEOF
6689 rm -f conftest.$ac_objext conftest$ac_exeext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6691 (eval $ac_link) 2>conftest.er1
6692 ac_status=$?
6693 grep -v '^ *+' conftest.er1 >conftest.err
6694 rm -f conftest.er1
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 (eval $ac_try) 2>&5
6701 ac_status=$?
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try='test -s conftest$ac_exeext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 (eval $ac_try) 2>&5
6707 ac_status=$?
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_cv_search_opendir="-l$ac_lib"
6711 break
6712 else
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6715
6716 fi
6717 rm -f conftest.err conftest.$ac_objext \
6718 conftest$ac_exeext conftest.$ac_ext
6719 done
6720 fi
6721 LIBS=$ac_func_search_save_LIBS
6722 fi
6723 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6724 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6725 if test "$ac_cv_search_opendir" != no; then
6726 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6727
6728 fi
6729
6730 else
6731 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6732 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6733 if test "${ac_cv_search_opendir+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736 ac_func_search_save_LIBS=$LIBS
6737 ac_cv_search_opendir=no
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h. */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744
6745 /* Override any gcc2 internal prototype to avoid an error. */
6746 #ifdef __cplusplus
6747 extern "C"
6748 #endif
6749 /* We use char because int might match the return type of a gcc2
6750 builtin and then its argument prototype would still apply. */
6751 char opendir ();
6752 int
6753 main ()
6754 {
6755 opendir ();
6756 ;
6757 return 0;
6758 }
6759 _ACEOF
6760 rm -f conftest.$ac_objext conftest$ac_exeext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6762 (eval $ac_link) 2>conftest.er1
6763 ac_status=$?
6764 grep -v '^ *+' conftest.er1 >conftest.err
6765 rm -f conftest.er1
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
6769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; } &&
6775 { ac_try='test -s conftest$ac_exeext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 ac_cv_search_opendir="none required"
6782 else
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6785
6786 fi
6787 rm -f conftest.err conftest.$ac_objext \
6788 conftest$ac_exeext conftest.$ac_ext
6789 if test "$ac_cv_search_opendir" = no; then
6790 for ac_lib in x; do
6791 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6792 cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h. */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798
6799 /* Override any gcc2 internal prototype to avoid an error. */
6800 #ifdef __cplusplus
6801 extern "C"
6802 #endif
6803 /* We use char because int might match the return type of a gcc2
6804 builtin and then its argument prototype would still apply. */
6805 char opendir ();
6806 int
6807 main ()
6808 {
6809 opendir ();
6810 ;
6811 return 0;
6812 }
6813 _ACEOF
6814 rm -f conftest.$ac_objext conftest$ac_exeext
6815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6816 (eval $ac_link) 2>conftest.er1
6817 ac_status=$?
6818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } &&
6823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 (eval $ac_try) 2>&5
6826 ac_status=$?
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; } &&
6829 { ac_try='test -s conftest$ac_exeext'
6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 (eval $ac_try) 2>&5
6832 ac_status=$?
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
6835 ac_cv_search_opendir="-l$ac_lib"
6836 break
6837 else
6838 echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6840
6841 fi
6842 rm -f conftest.err conftest.$ac_objext \
6843 conftest$ac_exeext conftest.$ac_ext
6844 done
6845 fi
6846 LIBS=$ac_func_search_save_LIBS
6847 fi
6848 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6849 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6850 if test "$ac_cv_search_opendir" != no; then
6851 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6852
6853 fi
6854
6855 fi
6856
6857 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6858 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6859 if test "${ac_cv_header_stat_broken+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h. */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 #include <sys/types.h>
6869 #include <sys/stat.h>
6870
6871 #if defined(S_ISBLK) && defined(S_IFDIR)
6872 # if S_ISBLK (S_IFDIR)
6873 You lose.
6874 # endif
6875 #endif
6876
6877 #if defined(S_ISBLK) && defined(S_IFCHR)
6878 # if S_ISBLK (S_IFCHR)
6879 You lose.
6880 # endif
6881 #endif
6882
6883 #if defined(S_ISLNK) && defined(S_IFREG)
6884 # if S_ISLNK (S_IFREG)
6885 You lose.
6886 # endif
6887 #endif
6888
6889 #if defined(S_ISSOCK) && defined(S_IFREG)
6890 # if S_ISSOCK (S_IFREG)
6891 You lose.
6892 # endif
6893 #endif
6894
6895 _ACEOF
6896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6897 $EGREP "You lose" >/dev/null 2>&1; then
6898 ac_cv_header_stat_broken=yes
6899 else
6900 ac_cv_header_stat_broken=no
6901 fi
6902 rm -f conftest*
6903
6904 fi
6905 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6906 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6907 if test $ac_cv_header_stat_broken = yes; then
6908
6909 cat >>confdefs.h <<\_ACEOF
6910 #define STAT_MACROS_BROKEN 1
6911 _ACEOF
6912
6913 fi
6914
6915 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6916 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6917 if test "${ac_cv_header_time+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 cat >conftest.$ac_ext <<_ACEOF
6921 /* confdefs.h. */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6926 #include <sys/types.h>
6927 #include <sys/time.h>
6928 #include <time.h>
6929
6930 int
6931 main ()
6932 {
6933 if ((struct tm *) 0)
6934 return 0;
6935 ;
6936 return 0;
6937 }
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6941 (eval $ac_compile) 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try='test -s conftest.$ac_objext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_cv_header_time=yes
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6964
6965 ac_cv_header_time=no
6966 fi
6967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6968 fi
6969 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6970 echo "${ECHO_T}$ac_cv_header_time" >&6
6971 if test $ac_cv_header_time = yes; then
6972
6973 cat >>confdefs.h <<\_ACEOF
6974 #define TIME_WITH_SYS_TIME 1
6975 _ACEOF
6976
6977 fi
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990 for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
6991 memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h
6992 do
6993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6995 echo "$as_me:$LINENO: checking for $ac_header" >&5
6996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 fi
7000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7002 else
7003 # Is the header compilable?
7004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7006 cat >conftest.$ac_ext <<_ACEOF
7007 /* confdefs.h. */
7008 _ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7012 $ac_includes_default
7013 #include <$ac_header>
7014 _ACEOF
7015 rm -f conftest.$ac_objext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7017 (eval $ac_compile) 2>conftest.er1
7018 ac_status=$?
7019 grep -v '^ *+' conftest.er1 >conftest.err
7020 rm -f conftest.er1
7021 cat conftest.err >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } &&
7024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 (eval $ac_try) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; } &&
7030 { ac_try='test -s conftest.$ac_objext'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 (eval $ac_try) 2>&5
7033 ac_status=$?
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; }; then
7036 ac_header_compiler=yes
7037 else
7038 echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7040
7041 ac_header_compiler=no
7042 fi
7043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7045 echo "${ECHO_T}$ac_header_compiler" >&6
7046
7047 # Is the header present?
7048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7050 cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h. */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 #include <$ac_header>
7057 _ACEOF
7058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7060 ac_status=$?
7061 grep -v '^ *+' conftest.er1 >conftest.err
7062 rm -f conftest.er1
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } >/dev/null; then
7066 if test -s conftest.err; then
7067 ac_cpp_err=$ac_c_preproc_warn_flag
7068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7069 else
7070 ac_cpp_err=
7071 fi
7072 else
7073 ac_cpp_err=yes
7074 fi
7075 if test -z "$ac_cpp_err"; then
7076 ac_header_preproc=yes
7077 else
7078 echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7080
7081 ac_header_preproc=no
7082 fi
7083 rm -f conftest.err conftest.$ac_ext
7084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7085 echo "${ECHO_T}$ac_header_preproc" >&6
7086
7087 # So? What about this header?
7088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7089 yes:no: )
7090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7094 ac_header_preproc=yes
7095 ;;
7096 no:yes:* )
7097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7109 (
7110 cat <<\_ASBOX
7111 ## ------------------------------- ##
7112 ## Report this to bug-make (at] gnu.org ##
7113 ## ------------------------------- ##
7114 _ASBOX
7115 ) |
7116 sed "s/^/$as_me: WARNING: /" >&2
7117 ;;
7118 esac
7119 echo "$as_me:$LINENO: checking for $ac_header" >&5
7120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 eval "$as_ac_Header=\$ac_header_preproc"
7125 fi
7126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7128
7129 fi
7130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7131 cat >>confdefs.h <<_ACEOF
7132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7133 _ACEOF
7134
7135 fi
7136
7137 done
7138
7139
7140 # Set a flag if we have an ANSI C compiler
7141 if test "$ac_cv_prog_cc_stdc" != no; then
7142
7143 cat >>confdefs.h <<\_ACEOF
7144 #define HAVE_ANSI_COMPILER 1
7145 _ACEOF
7146
7147 fi
7148
7149
7150 # Determine what kind of variadic function calls we support
7151
7152
7153 for ac_header in stdarg.h varargs.h
7154 do
7155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7157 echo "$as_me:$LINENO: checking for $ac_header" >&5
7158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 fi
7162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7164 else
7165 # Is the header compilable?
7166 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7168 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h. */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 $ac_includes_default
7175 #include <$ac_header>
7176 _ACEOF
7177 rm -f conftest.$ac_objext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7179 (eval $ac_compile) 2>conftest.er1
7180 ac_status=$?
7181 grep -v '^ *+' conftest.er1 >conftest.err
7182 rm -f conftest.er1
7183 cat conftest.err >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 (eval $ac_try) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; } &&
7192 { ac_try='test -s conftest.$ac_objext'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 (eval $ac_try) 2>&5
7195 ac_status=$?
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7198 ac_header_compiler=yes
7199 else
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7202
7203 ac_header_compiler=no
7204 fi
7205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7207 echo "${ECHO_T}$ac_header_compiler" >&6
7208
7209 # Is the header present?
7210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7212 cat >conftest.$ac_ext <<_ACEOF
7213 /* confdefs.h. */
7214 _ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h. */
7218 #include <$ac_header>
7219 _ACEOF
7220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7222 ac_status=$?
7223 grep -v '^ *+' conftest.er1 >conftest.err
7224 rm -f conftest.er1
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } >/dev/null; then
7228 if test -s conftest.err; then
7229 ac_cpp_err=$ac_c_preproc_warn_flag
7230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7231 else
7232 ac_cpp_err=
7233 fi
7234 else
7235 ac_cpp_err=yes
7236 fi
7237 if test -z "$ac_cpp_err"; then
7238 ac_header_preproc=yes
7239 else
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7242
7243 ac_header_preproc=no
7244 fi
7245 rm -f conftest.err conftest.$ac_ext
7246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7247 echo "${ECHO_T}$ac_header_preproc" >&6
7248
7249 # So? What about this header?
7250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7251 yes:no: )
7252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7256 ac_header_preproc=yes
7257 ;;
7258 no:yes:* )
7259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7271 (
7272 cat <<\_ASBOX
7273 ## ------------------------------- ##
7274 ## Report this to bug-make (at] gnu.org ##
7275 ## ------------------------------- ##
7276 _ASBOX
7277 ) |
7278 sed "s/^/$as_me: WARNING: /" >&2
7279 ;;
7280 esac
7281 echo "$as_me:$LINENO: checking for $ac_header" >&5
7282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286 eval "$as_ac_Header=\$ac_header_preproc"
7287 fi
7288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7290
7291 fi
7292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7293 cat >>confdefs.h <<_ACEOF
7294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295 _ACEOF
7296 break
7297 fi
7298
7299 done
7300
7301
7302 if test "x$CC" != xcc; then
7303 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
7304 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
7305 else
7306 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
7307 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
7308 fi
7309 set dummy $CC; ac_cc=`echo $2 |
7310 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7311 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314 cat >conftest.$ac_ext <<_ACEOF
7315 /* confdefs.h. */
7316 _ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7320
7321 int
7322 main ()
7323 {
7324
7325 ;
7326 return 0;
7327 }
7328 _ACEOF
7329 # Make sure it works both with $CC and with simple cc.
7330 # We do the test twice because some compilers refuse to overwrite an
7331 # existing .o file with -o, though they will create one.
7332 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
7333 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 (eval $ac_try) 2>&5
7335 ac_status=$?
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } &&
7338 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); };
7343 then
7344 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7345 if test "x$CC" != xcc; then
7346 # Test first that cc exists at all.
7347 if { ac_try='cc -c conftest.$ac_ext >&5'
7348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349 (eval $ac_try) 2>&5
7350 ac_status=$?
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); }; }; then
7353 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
7354 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } &&
7359 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360 (eval $ac_try) 2>&5
7361 ac_status=$?
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); };
7364 then
7365 # cc works too.
7366 :
7367 else
7368 # cc exists but doesn't like -o.
7369 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7370 fi
7371 fi
7372 fi
7373 else
7374 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7375 fi
7376 rm -f conftest*
7377
7378 fi
7379 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
7380 echo "$as_me:$LINENO: result: yes" >&5
7381 echo "${ECHO_T}yes" >&6
7382 else
7383 echo "$as_me:$LINENO: result: no" >&5
7384 echo "${ECHO_T}no" >&6
7385
7386 cat >>confdefs.h <<\_ACEOF
7387 #define NO_MINUS_C_MINUS_O 1
7388 _ACEOF
7389
7390 fi
7391
7392 # FIXME: we rely on the cache variable name because
7393 # there is no other way.
7394 set dummy $CC
7395 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7396 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
7397 # Losing compiler, so override with the script.
7398 # FIXME: It is wrong to rewrite CC.
7399 # But if we don't then we get into trouble of one sort or another.
7400 # A longer-term fix would be to have automake use am__CC in this case,
7401 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7402 CC="$am_aux_dir/compile $CC"
7403 fi
7404
7405 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7406 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7407 if test "${ac_cv_c_const+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410 cat >conftest.$ac_ext <<_ACEOF
7411 /* confdefs.h. */
7412 _ACEOF
7413 cat confdefs.h >>conftest.$ac_ext
7414 cat >>conftest.$ac_ext <<_ACEOF
7415 /* end confdefs.h. */
7416
7417 int
7418 main ()
7419 {
7420 /* FIXME: Include the comments suggested by Paul. */
7421 #ifndef __cplusplus
7422 /* Ultrix mips cc rejects this. */
7423 typedef int charset[2];
7424 const charset x;
7425 /* SunOS 4.1.1 cc rejects this. */
7426 char const *const *ccp;
7427 char **p;
7428 /* NEC SVR4.0.2 mips cc rejects this. */
7429 struct point {int x, y;};
7430 static struct point const zero = {0,0};
7431 /* AIX XL C 1.02.0.0 rejects this.
7432 It does not let you subtract one const X* pointer from another in
7433 an arm of an if-expression whose if-part is not a constant
7434 expression */
7435 const char *g = "string";
7436 ccp = &g + (g ? g-g : 0);
7437 /* HPUX 7.0 cc rejects these. */
7438 ++ccp;
7439 p = (char**) ccp;
7440 ccp = (char const *const *) p;
7441 { /* SCO 3.2v4 cc rejects this. */
7442 char *t;
7443 char const *s = 0 ? (char *) 0 : (char const *) 0;
7444
7445 *t++ = 0;
7446 }
7447 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7448 int x[] = {25, 17};
7449 const int *foo = &x[0];
7450 ++foo;
7451 }
7452 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7453 typedef const int *iptr;
7454 iptr p = 0;
7455 ++p;
7456 }
7457 { /* AIX XL C 1.02.0.0 rejects this saying
7458 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7459 struct s { int j; const int *ap[3]; };
7460 struct s *b; b->j = 5;
7461 }
7462 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7463 const int foo = 10;
7464 }
7465 #endif
7466
7467 ;
7468 return 0;
7469 }
7470 _ACEOF
7471 rm -f conftest.$ac_objext
7472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7473 (eval $ac_compile) 2>conftest.er1
7474 ac_status=$?
7475 grep -v '^ *+' conftest.er1 >conftest.err
7476 rm -f conftest.er1
7477 cat conftest.err >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } &&
7480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 (eval $ac_try) 2>&5
7483 ac_status=$?
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; } &&
7486 { ac_try='test -s conftest.$ac_objext'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 (eval $ac_try) 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; }; then
7492 ac_cv_c_const=yes
7493 else
7494 echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7496
7497 ac_cv_c_const=no
7498 fi
7499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7500 fi
7501 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7502 echo "${ECHO_T}$ac_cv_c_const" >&6
7503 if test $ac_cv_c_const = no; then
7504
7505 cat >>confdefs.h <<\_ACEOF
7506 #define const
7507 _ACEOF
7508
7509 fi
7510
7511 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7512 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7513 if test "${ac_cv_type_signal+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516 cat >conftest.$ac_ext <<_ACEOF
7517 /* confdefs.h. */
7518 _ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7522 #include <sys/types.h>
7523 #include <signal.h>
7524 #ifdef signal
7525 # undef signal
7526 #endif
7527 #ifdef __cplusplus
7528 extern "C" void (*signal (int, void (*)(int)))(int);
7529 #else
7530 void (*signal (int, void (*)(int)))(int);
7531 #endif
7532
7533 int
7534 main ()
7535 {
7536 int i;
7537 ;
7538 return 0;
7539 }
7540 _ACEOF
7541 rm -f conftest.$ac_objext
7542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7543 (eval $ac_compile) 2>conftest.er1
7544 ac_status=$?
7545 grep -v '^ *+' conftest.er1 >conftest.err
7546 rm -f conftest.er1
7547 cat conftest.err >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } &&
7550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 (eval $ac_try) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; } &&
7556 { ac_try='test -s conftest.$ac_objext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 (eval $ac_try) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_cv_type_signal=void
7563 else
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7566
7567 ac_cv_type_signal=int
7568 fi
7569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7570 fi
7571 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7572 echo "${ECHO_T}$ac_cv_type_signal" >&6
7573
7574 cat >>confdefs.h <<_ACEOF
7575 #define RETSIGTYPE $ac_cv_type_signal
7576 _ACEOF
7577
7578
7579 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7580 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7581 if test "${ac_cv_type_uid_t+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584 cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h. */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7590 #include <sys/types.h>
7591
7592 _ACEOF
7593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7594 $EGREP "uid_t" >/dev/null 2>&1; then
7595 ac_cv_type_uid_t=yes
7596 else
7597 ac_cv_type_uid_t=no
7598 fi
7599 rm -f conftest*
7600
7601 fi
7602 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7603 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7604 if test $ac_cv_type_uid_t = no; then
7605
7606 cat >>confdefs.h <<\_ACEOF
7607 #define uid_t int
7608 _ACEOF
7609
7610
7611 cat >>confdefs.h <<\_ACEOF
7612 #define gid_t int
7613 _ACEOF
7614
7615 fi
7616
7617 echo "$as_me:$LINENO: checking for pid_t" >&5
7618 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7619 if test "${ac_cv_type_pid_t+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622 cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h. */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7628 $ac_includes_default
7629 int
7630 main ()
7631 {
7632 if ((pid_t *) 0)
7633 return 0;
7634 if (sizeof (pid_t))
7635 return 0;
7636 ;
7637 return 0;
7638 }
7639 _ACEOF
7640 rm -f conftest.$ac_objext
7641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7642 (eval $ac_compile) 2>conftest.er1
7643 ac_status=$?
7644 grep -v '^ *+' conftest.er1 >conftest.err
7645 rm -f conftest.er1
7646 cat conftest.err >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } &&
7649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 (eval $ac_try) 2>&5
7652 ac_status=$?
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; } &&
7655 { ac_try='test -s conftest.$ac_objext'
7656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 (eval $ac_try) 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; }; then
7661 ac_cv_type_pid_t=yes
7662 else
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7665
7666 ac_cv_type_pid_t=no
7667 fi
7668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7669 fi
7670 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7671 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7672 if test $ac_cv_type_pid_t = yes; then
7673 :
7674 else
7675
7676 cat >>confdefs.h <<_ACEOF
7677 #define pid_t int
7678 _ACEOF
7679
7680 fi
7681
7682
7683 # Find some definition for uintmax_t
7684
7685 echo "$as_me:$LINENO: checking for uintmax_t" >&5
7686 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
7687 if test "${ac_cv_type_uintmax_t+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h. */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 $ac_includes_default
7697 int
7698 main ()
7699 {
7700 if ((uintmax_t *) 0)
7701 return 0;
7702 if (sizeof (uintmax_t))
7703 return 0;
7704 ;
7705 return 0;
7706 }
7707 _ACEOF
7708 rm -f conftest.$ac_objext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7710 (eval $ac_compile) 2>conftest.er1
7711 ac_status=$?
7712 grep -v '^ *+' conftest.er1 >conftest.err
7713 rm -f conftest.er1
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } &&
7717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_type_uintmax_t=yes
7730 else
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 ac_cv_type_uintmax_t=no
7735 fi
7736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7737 fi
7738 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
7739 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
7740 if test $ac_cv_type_uintmax_t = yes; then
7741 :
7742 else
7743
7744 uintmax_t="unsigned long"
7745 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7746 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7747 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h. */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 $ac_includes_default
7757 int
7758 main ()
7759 {
7760 if ((unsigned long long *) 0)
7761 return 0;
7762 if (sizeof (unsigned long long))
7763 return 0;
7764 ;
7765 return 0;
7766 }
7767 _ACEOF
7768 rm -f conftest.$ac_objext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770 (eval $ac_compile) 2>conftest.er1
7771 ac_status=$?
7772 grep -v '^ *+' conftest.er1 >conftest.err
7773 rm -f conftest.er1
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 (eval $ac_try) 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; } &&
7783 { ac_try='test -s conftest.$ac_objext'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 (eval $ac_try) 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_cv_type_unsigned_long_long=yes
7790 else
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794 ac_cv_type_unsigned_long_long=no
7795 fi
7796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7797 fi
7798 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7799 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7800 if test $ac_cv_type_unsigned_long_long = yes; then
7801 uintmax_t="unsigned long long"
7802 fi
7803
7804
7805 cat >>confdefs.h <<_ACEOF
7806 #define uintmax_t $uintmax_t
7807 _ACEOF
7808
7809 fi
7810
7811
7812 # Find out whether our struct stat returns nanosecond resolution timestamps.
7813
7814 echo "$as_me:$LINENO: checking for nanoseconds field of struct stat.st_mtim" >&5
7815 echo $ECHO_N "checking for nanoseconds field of struct stat.st_mtim... $ECHO_C" >&6
7816 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819 ac_save_CPPFLAGS="$CPPFLAGS"
7820 ac_cv_struct_st_mtim_nsec=no
7821 # tv_nsec -- the usual case
7822 # _tv_nsec -- Solaris 2.6, if
7823 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
7824 # && !defined __EXTENSIONS__)
7825 # st__tim.tv_nsec -- UnixWare 2.1.2
7826 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
7827 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
7828 cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h. */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834 #include <sys/types.h>
7835 #include <sys/stat.h>
7836
7837 int
7838 main ()
7839 {
7840 struct stat s; s.st_mtim.ST_MTIM_NSEC;
7841 ;
7842 return 0;
7843 }
7844 _ACEOF
7845 rm -f conftest.$ac_objext
7846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847 (eval $ac_compile) 2>conftest.er1
7848 ac_status=$?
7849 grep -v '^ *+' conftest.er1 >conftest.err
7850 rm -f conftest.er1
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 (eval $ac_try) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; } &&
7860 { ac_try='test -s conftest.$ac_objext'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
7866 ac_cv_struct_st_mtim_nsec=$ac_val; break
7867 else
7868 echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7870
7871 fi
7872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7873 done
7874 CPPFLAGS="$ac_save_CPPFLAGS"
7875
7876 fi
7877 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
7878 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
7879
7880 if test $ac_cv_struct_st_mtim_nsec != no; then
7881
7882 cat >>confdefs.h <<_ACEOF
7883 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
7884 _ACEOF
7885
7886 fi
7887
7888
7889 echo "$as_me:$LINENO: checking whether to use high resolution file timestamps" >&5
7890 echo $ECHO_N "checking whether to use high resolution file timestamps... $ECHO_C" >&6
7891 if test "${make_cv_file_timestamp_hi_res+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894
7895 make_cv_file_timestamp_hi_res=no
7896 if test "$ac_cv_struct_st_mtim_nsec" != no; then
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903
7904 # if HAVE_INTTYPES_H
7905 # include <inttypes.h>
7906 # endif
7907 int
7908 main ()
7909 {
7910 char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
7911 ;
7912 return 0;
7913 }
7914 _ACEOF
7915 rm -f conftest.$ac_objext
7916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7917 (eval $ac_compile) 2>conftest.er1
7918 ac_status=$?
7919 grep -v '^ *+' conftest.er1 >conftest.err
7920 rm -f conftest.er1
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 (eval $ac_try) 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; } &&
7930 { ac_try='test -s conftest.$ac_objext'
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 (eval $ac_try) 2>&5
7933 ac_status=$?
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; }; then
7936 make_cv_file_timestamp_hi_res=yes
7937 else
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7940
7941 fi
7942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7943 fi
7944 fi
7945
7946 echo "$as_me:$LINENO: result: $make_cv_file_timestamp_hi_res" >&5
7947 echo "${ECHO_T}$make_cv_file_timestamp_hi_res" >&6
7948 if test "$make_cv_file_timestamp_hi_res" = yes; then
7949 val=1
7950 else
7951 val=0
7952 fi
7953
7954 cat >>confdefs.h <<_ACEOF
7955 #define FILE_TIMESTAMP_HI_RES $val
7956 _ACEOF
7957
7958
7959 if test "$make_cv_file_timestamp_hi_res" = yes; then
7960 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
7961 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
7962 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
7963 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
7964 if test "${ac_cv_search_clock_gettime+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967 ac_func_search_save_LIBS=$LIBS
7968 ac_cv_search_clock_gettime=no
7969 cat >conftest.$ac_ext <<_ACEOF
7970 /* confdefs.h. */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975
7976 /* Override any gcc2 internal prototype to avoid an error. */
7977 #ifdef __cplusplus
7978 extern "C"
7979 #endif
7980 /* We use char because int might match the return type of a gcc2
7981 builtin and then its argument prototype would still apply. */
7982 char clock_gettime ();
7983 int
7984 main ()
7985 {
7986 clock_gettime ();
7987 ;
7988 return 0;
7989 }
7990 _ACEOF
7991 rm -f conftest.$ac_objext conftest$ac_exeext
7992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7993 (eval $ac_link) 2>conftest.er1
7994 ac_status=$?
7995 grep -v '^ *+' conftest.er1 >conftest.err
7996 rm -f conftest.er1
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 (eval $ac_try) 2>&5
8003 ac_status=$?
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; } &&
8006 { ac_try='test -s conftest$ac_exeext'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 (eval $ac_try) 2>&5
8009 ac_status=$?
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; }; then
8012 ac_cv_search_clock_gettime="none required"
8013 else
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8016
8017 fi
8018 rm -f conftest.err conftest.$ac_objext \
8019 conftest$ac_exeext conftest.$ac_ext
8020 if test "$ac_cv_search_clock_gettime" = no; then
8021 for ac_lib in rt posix4; do
8022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8023 cat >conftest.$ac_ext <<_ACEOF
8024 /* confdefs.h. */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8029
8030 /* Override any gcc2 internal prototype to avoid an error. */
8031 #ifdef __cplusplus
8032 extern "C"
8033 #endif
8034 /* We use char because int might match the return type of a gcc2
8035 builtin and then its argument prototype would still apply. */
8036 char clock_gettime ();
8037 int
8038 main ()
8039 {
8040 clock_gettime ();
8041 ;
8042 return 0;
8043 }
8044 _ACEOF
8045 rm -f conftest.$ac_objext conftest$ac_exeext
8046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8047 (eval $ac_link) 2>conftest.er1
8048 ac_status=$?
8049 grep -v '^ *+' conftest.er1 >conftest.err
8050 rm -f conftest.er1
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; } &&
8060 { ac_try='test -s conftest$ac_exeext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 (eval $ac_try) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_search_clock_gettime="-l$ac_lib"
8067 break
8068 else
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8071
8072 fi
8073 rm -f conftest.err conftest.$ac_objext \
8074 conftest$ac_exeext conftest.$ac_ext
8075 done
8076 fi
8077 LIBS=$ac_func_search_save_LIBS
8078 fi
8079 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8080 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
8081 if test "$ac_cv_search_clock_gettime" != no; then
8082 test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
8083
8084 fi
8085
8086 if test "$ac_cv_search_clock_gettime" != no; then
8087
8088 cat >>confdefs.h <<\_ACEOF
8089 #define HAVE_CLOCK_GETTIME 1
8090 _ACEOF
8091
8092 fi
8093 fi
8094
8095 # Check for DOS-style pathnames.
8096
8097 echo "$as_me:$LINENO: checking whether system uses MSDOS-style paths" >&5
8098 echo $ECHO_N "checking whether system uses MSDOS-style paths... $ECHO_C" >&6
8099 if test "${ac_cv_dos_paths+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102
8103 cat >conftest.$ac_ext <<_ACEOF
8104
8105 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__
8106 neither MSDOS nor Windows nor OS2
8107 #endif
8108
8109 _ACEOF
8110 rm -f conftest.$ac_objext
8111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8112 (eval $ac_compile) 2>conftest.er1
8113 ac_status=$?
8114 grep -v '^ *+' conftest.er1 >conftest.err
8115 rm -f conftest.er1
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } &&
8119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 (eval $ac_try) 2>&5
8122 ac_status=$?
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; } &&
8125 { ac_try='test -s conftest.$ac_objext'
8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 (eval $ac_try) 2>&5
8128 ac_status=$?
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8131 ac_cv_dos_paths=yes
8132 else
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8135
8136 ac_cv_dos_paths=no
8137 fi
8138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8139
8140 fi
8141 echo "$as_me:$LINENO: result: $ac_cv_dos_paths" >&5
8142 echo "${ECHO_T}$ac_cv_dos_paths" >&6
8143
8144 if test x"$ac_cv_dos_paths" = xyes; then
8145
8146 cat >>confdefs.h <<_ACEOF
8147 #define HAVE_DOS_PATHS 1
8148 _ACEOF
8149
8150 fi
8151
8152
8153 # See if we have a standard version of gettimeofday(). Since actual
8154 # implementations can differ, just make sure we have the most common
8155 # one.
8156 echo "$as_me:$LINENO: checking for standard gettimeofday" >&5
8157 echo $ECHO_N "checking for standard gettimeofday... $ECHO_C" >&6
8158 if test "${ac_cv_func_gettimeofday+set}" = set; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 else
8161 ac_cv_func_gettimeofday=no
8162 if test "$cross_compiling" = yes; then
8163 ac_cv_func_gettimeofday="no (cross-compiling)"
8164 else
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h. */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 #include <sys/time.h>
8172 int main ()
8173 {
8174 struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
8175 exit (gettimeofday (&t, 0) != 0
8176 || t.tv_sec < 0 || t.tv_usec < 0);
8177 }
8178 _ACEOF
8179 rm -f conftest$ac_exeext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8181 (eval $ac_link) 2>&5
8182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 ac_cv_func_gettimeofday=yes
8191 else
8192 echo "$as_me: program exited with status $ac_status" >&5
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8195
8196 ( exit $ac_status )
8197 ac_cv_func_gettimeofday=no
8198 fi
8199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8200 fi
8201 fi
8202 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
8203 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
8204 if test "$ac_cv_func_gettimeofday" = yes; then
8205
8206 cat >>confdefs.h <<\_ACEOF
8207 #define HAVE_GETTIMEOFDAY 1
8208 _ACEOF
8209
8210 fi
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240 for ac_func in memcpy memmove strchr strdup mkstemp mktemp fdopen \
8241 bsd_signal dup2 getcwd realpath sigsetmask sigaction \
8242 getgroups seteuid setegid setlinebuf setreuid setregid \
8243 getrlimit setrlimit setvbuf pipe strerror strsignal \
8244 lstat readlink atexit
8245 do
8246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8247 echo "$as_me:$LINENO: checking for $ac_func" >&5
8248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8249 if eval "test \"\${$as_ac_var+set}\" = set"; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252 cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h. */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8260 #define $ac_func innocuous_$ac_func
8261
8262 /* System header to define __stub macros and hopefully few prototypes,
8263 which can conflict with char $ac_func (); below.
8264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8265 <limits.h> exists even on freestanding compilers. */
8266
8267 #ifdef __STDC__
8268 # include <limits.h>
8269 #else
8270 # include <assert.h>
8271 #endif
8272
8273 #undef $ac_func
8274
8275 /* Override any gcc2 internal prototype to avoid an error. */
8276 #ifdef __cplusplus
8277 extern "C"
8278 {
8279 #endif
8280 /* We use char because int might match the return type of a gcc2
8281 builtin and then its argument prototype would still apply. */
8282 char $ac_func ();
8283 /* The GNU C library defines this for functions which it implements
8284 to always fail with ENOSYS. Some functions are actually named
8285 something starting with __ and the normal name is an alias. */
8286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8287 choke me
8288 #else
8289 char (*f) () = $ac_func;
8290 #endif
8291 #ifdef __cplusplus
8292 }
8293 #endif
8294
8295 int
8296 main ()
8297 {
8298 return f != $ac_func;
8299 ;
8300 return 0;
8301 }
8302 _ACEOF
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305 (eval $ac_link) 2>conftest.er1
8306 ac_status=$?
8307 grep -v '^ *+' conftest.er1 >conftest.err
8308 rm -f conftest.er1
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 (eval $ac_try) 2>&5
8315 ac_status=$?
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; } &&
8318 { ac_try='test -s conftest$ac_exeext'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 eval "$as_ac_var=yes"
8325 else
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8328
8329 eval "$as_ac_var=no"
8330 fi
8331 rm -f conftest.err conftest.$ac_objext \
8332 conftest$ac_exeext conftest.$ac_ext
8333 fi
8334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8336 if test `eval echo '${'$as_ac_var'}'` = yes; then
8337 cat >>confdefs.h <<_ACEOF
8338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8339 _ACEOF
8340
8341 fi
8342 done
8343
8344
8345 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
8346 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
8347 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350 ac_cv_func_setvbuf_reversed=no
8351 cat >conftest.$ac_ext <<_ACEOF
8352 /* confdefs.h. */
8353 _ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8357 #include <stdio.h>
8358 # if PROTOTYPES
8359 int (setvbuf) (FILE *, int, char *, size_t);
8360 # endif
8361 int
8362 main ()
8363 {
8364 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
8365 ;
8366 return 0;
8367 }
8368 _ACEOF
8369 rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8371 (eval $ac_link) 2>conftest.er1
8372 ac_status=$?
8373 grep -v '^ *+' conftest.er1 >conftest.err
8374 rm -f conftest.er1
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 (eval $ac_try) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; } &&
8384 { ac_try='test -s conftest$ac_exeext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 (eval $ac_try) 2>&5
8387 ac_status=$?
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 cat >conftest.$ac_ext <<_ACEOF
8391 /* confdefs.h. */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 #include <stdio.h>
8397 # if PROTOTYPES
8398 int (setvbuf) (FILE *, int, char *, size_t);
8399 # endif
8400 int
8401 main ()
8402 {
8403 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
8404 ;
8405 return 0;
8406 }
8407 _ACEOF
8408 rm -f conftest.$ac_objext conftest$ac_exeext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8410 (eval $ac_link) 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 (eval $ac_try) 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; } &&
8423 { ac_try='test -s conftest$ac_exeext'
8424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 (eval $ac_try) 2>&5
8426 ac_status=$?
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); }; }; then
8429 # It compiles and links either way, so it must not be declared
8430 # with a prototype and most likely this is a K&R C compiler.
8431 # Try running it.
8432 if test "$cross_compiling" = yes; then
8433 : # Assume setvbuf is not reversed when cross-compiling.
8434 else
8435 cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h. */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 #include <stdio.h>
8442 int
8443 main ()
8444 {
8445 /* This call has the arguments reversed.
8446 A reversed system may check and see that the address of buf
8447 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
8448 char buf;
8449 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
8450 exit (1);
8451 putchar ('\r');
8452 exit (0); /* Non-reversed systems SEGV here. */
8453 ;
8454 return 0;
8455 }
8456 _ACEOF
8457 rm -f conftest$ac_exeext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8459 (eval $ac_link) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_func_setvbuf_reversed=yes
8469 else
8470 echo "$as_me: program exited with status $ac_status" >&5
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8473
8474 ( exit $ac_status )
8475 rm -f core *.core
8476 fi
8477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8478 fi
8479 ac_cv_func_setvbuf_reversed=yes
8480 else
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484 fi
8485 rm -f conftest.err conftest.$ac_objext \
8486 conftest$ac_exeext conftest.$ac_ext
8487 else
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8490
8491 fi
8492 rm -f conftest.err conftest.$ac_objext \
8493 conftest$ac_exeext conftest.$ac_ext
8494 fi
8495 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
8496 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
8497 if test $ac_cv_func_setvbuf_reversed = yes; then
8498
8499 cat >>confdefs.h <<\_ACEOF
8500 #define SETVBUF_REVERSED 1
8501 _ACEOF
8502
8503 fi
8504
8505
8506 # strcoll() is used by the GNU glob library
8507 echo "$as_me:$LINENO: checking for working strcoll" >&5
8508 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
8509 if test "${ac_cv_func_strcoll_works+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512 if test "$cross_compiling" = yes; then
8513 ac_cv_func_strcoll_works=no
8514 else
8515 cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h. */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8521 $ac_includes_default
8522 int
8523 main ()
8524 {
8525 exit (strcoll ("abc", "def") >= 0 ||
8526 strcoll ("ABC", "DEF") >= 0 ||
8527 strcoll ("123", "456") >= 0)
8528 ;
8529 return 0;
8530 }
8531 _ACEOF
8532 rm -f conftest$ac_exeext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534 (eval $ac_link) 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 (eval $ac_try) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8543 ac_cv_func_strcoll_works=yes
8544 else
8545 echo "$as_me: program exited with status $ac_status" >&5
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 ( exit $ac_status )
8550 ac_cv_func_strcoll_works=no
8551 fi
8552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8553 fi
8554 fi
8555 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
8556 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
8557 if test $ac_cv_func_strcoll_works = yes; then
8558
8559 cat >>confdefs.h <<\_ACEOF
8560 #define HAVE_STRCOLL 1
8561 _ACEOF
8562
8563 fi
8564
8565
8566 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8567 # for constant arguments. Useless!
8568 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8569 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8570 if test "${ac_cv_working_alloca_h+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573 cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h. */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8579 #include <alloca.h>
8580 int
8581 main ()
8582 {
8583 char *p = (char *) alloca (2 * sizeof (int));
8584 ;
8585 return 0;
8586 }
8587 _ACEOF
8588 rm -f conftest.$ac_objext conftest$ac_exeext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8590 (eval $ac_link) 2>conftest.er1
8591 ac_status=$?
8592 grep -v '^ *+' conftest.er1 >conftest.err
8593 rm -f conftest.er1
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } &&
8597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8603 { ac_try='test -s conftest$ac_exeext'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 (eval $ac_try) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8609 ac_cv_working_alloca_h=yes
8610 else
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8613
8614 ac_cv_working_alloca_h=no
8615 fi
8616 rm -f conftest.err conftest.$ac_objext \
8617 conftest$ac_exeext conftest.$ac_ext
8618 fi
8619 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8620 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8621 if test $ac_cv_working_alloca_h = yes; then
8622
8623 cat >>confdefs.h <<\_ACEOF
8624 #define HAVE_ALLOCA_H 1
8625 _ACEOF
8626
8627 fi
8628
8629 echo "$as_me:$LINENO: checking for alloca" >&5
8630 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8631 if test "${ac_cv_func_alloca_works+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h. */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640 #ifdef __GNUC__
8641 # define alloca __builtin_alloca
8642 #else
8643 # ifdef _MSC_VER
8644 # include <malloc.h>
8645 # define alloca _alloca
8646 # else
8647 # if HAVE_ALLOCA_H
8648 # include <alloca.h>
8649 # else
8650 # ifdef _AIX
8651 #pragma alloca
8652 # else
8653 # ifndef alloca /* predefined by HP cc +Olibcalls */
8654 char *alloca ();
8655 # endif
8656 # endif
8657 # endif
8658 # endif
8659 #endif
8660
8661 int
8662 main ()
8663 {
8664 char *p = (char *) alloca (1);
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 rm -f conftest.$ac_objext conftest$ac_exeext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8671 (eval $ac_link) 2>conftest.er1
8672 ac_status=$?
8673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 (eval $ac_try) 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; } &&
8684 { ac_try='test -s conftest$ac_exeext'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 (eval $ac_try) 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 ac_cv_func_alloca_works=yes
8691 else
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8694
8695 ac_cv_func_alloca_works=no
8696 fi
8697 rm -f conftest.err conftest.$ac_objext \
8698 conftest$ac_exeext conftest.$ac_ext
8699 fi
8700 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8701 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8702
8703 if test $ac_cv_func_alloca_works = yes; then
8704
8705 cat >>confdefs.h <<\_ACEOF
8706 #define HAVE_ALLOCA 1
8707 _ACEOF
8708
8709 else
8710 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8711 # that cause trouble. Some versions do not even contain alloca or
8712 # contain a buggy version. If you still want to use their alloca,
8713 # use ar to extract alloca.o from them instead of compiling alloca.c.
8714
8715 ALLOCA=alloca.$ac_objext
8716
8717 cat >>confdefs.h <<\_ACEOF
8718 #define C_ALLOCA 1
8719 _ACEOF
8720
8721
8722 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8723 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8724 if test "${ac_cv_os_cray+set}" = set; then
8725 echo $ECHO_N "(cached) $ECHO_C" >&6
8726 else
8727 cat >conftest.$ac_ext <<_ACEOF
8728 /* confdefs.h. */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8733 #if defined(CRAY) && ! defined(CRAY2)
8734 webecray
8735 #else
8736 wenotbecray
8737 #endif
8738
8739 _ACEOF
8740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8741 $EGREP "webecray" >/dev/null 2>&1; then
8742 ac_cv_os_cray=yes
8743 else
8744 ac_cv_os_cray=no
8745 fi
8746 rm -f conftest*
8747
8748 fi
8749 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8750 echo "${ECHO_T}$ac_cv_os_cray" >&6
8751 if test $ac_cv_os_cray = yes; then
8752 for ac_func in _getb67 GETB67 getb67; do
8753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8754 echo "$as_me:$LINENO: checking for $ac_func" >&5
8755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8756 if eval "test \"\${$as_ac_var+set}\" = set"; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759 cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h. */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8767 #define $ac_func innocuous_$ac_func
8768
8769 /* System header to define __stub macros and hopefully few prototypes,
8770 which can conflict with char $ac_func (); below.
8771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8772 <limits.h> exists even on freestanding compilers. */
8773
8774 #ifdef __STDC__
8775 # include <limits.h>
8776 #else
8777 # include <assert.h>
8778 #endif
8779
8780 #undef $ac_func
8781
8782 /* Override any gcc2 internal prototype to avoid an error. */
8783 #ifdef __cplusplus
8784 extern "C"
8785 {
8786 #endif
8787 /* We use char because int might match the return type of a gcc2
8788 builtin and then its argument prototype would still apply. */
8789 char $ac_func ();
8790 /* The GNU C library defines this for functions which it implements
8791 to always fail with ENOSYS. Some functions are actually named
8792 something starting with __ and the normal name is an alias. */
8793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8794 choke me
8795 #else
8796 char (*f) () = $ac_func;
8797 #endif
8798 #ifdef __cplusplus
8799 }
8800 #endif
8801
8802 int
8803 main ()
8804 {
8805 return f != $ac_func;
8806 ;
8807 return 0;
8808 }
8809 _ACEOF
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8812 (eval $ac_link) 2>conftest.er1
8813 ac_status=$?
8814 grep -v '^ *+' conftest.er1 >conftest.err
8815 rm -f conftest.er1
8816 cat conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } &&
8819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 (eval $ac_try) 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; } &&
8825 { ac_try='test -s conftest$ac_exeext'
8826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827 (eval $ac_try) 2>&5
8828 ac_status=$?
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); }; }; then
8831 eval "$as_ac_var=yes"
8832 else
8833 echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8835
8836 eval "$as_ac_var=no"
8837 fi
8838 rm -f conftest.err conftest.$ac_objext \
8839 conftest$ac_exeext conftest.$ac_ext
8840 fi
8841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8843 if test `eval echo '${'$as_ac_var'}'` = yes; then
8844
8845 cat >>confdefs.h <<_ACEOF
8846 #define CRAY_STACKSEG_END $ac_func
8847 _ACEOF
8848
8849 break
8850 fi
8851
8852 done
8853 fi
8854
8855 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8856 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8857 if test "${ac_cv_c_stack_direction+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860 if test "$cross_compiling" = yes; then
8861 ac_cv_c_stack_direction=0
8862 else
8863 cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h. */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 int
8870 find_stack_direction ()
8871 {
8872 static char *addr = 0;
8873 auto char dummy;
8874 if (addr == 0)
8875 {
8876 addr = &dummy;
8877 return find_stack_direction ();
8878 }
8879 else
8880 return (&dummy > addr) ? 1 : -1;
8881 }
8882
8883 int
8884 main ()
8885 {
8886 exit (find_stack_direction () < 0);
8887 }
8888 _ACEOF
8889 rm -f conftest$ac_exeext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891 (eval $ac_link) 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 (eval $ac_try) 2>&5
8897 ac_status=$?
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; }; then
8900 ac_cv_c_stack_direction=1
8901 else
8902 echo "$as_me: program exited with status $ac_status" >&5
8903 echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8905
8906 ( exit $ac_status )
8907 ac_cv_c_stack_direction=-1
8908 fi
8909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8910 fi
8911 fi
8912 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8913 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8914
8915 cat >>confdefs.h <<_ACEOF
8916 #define STACK_DIRECTION $ac_cv_c_stack_direction
8917 _ACEOF
8918
8919
8920 fi
8921
8922
8923
8924 for ac_header in unistd.h vfork.h
8925 do
8926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8928 echo "$as_me:$LINENO: checking for $ac_header" >&5
8929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 fi
8933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8935 else
8936 # Is the header compilable?
8937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8939 cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h. */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 $ac_includes_default
8946 #include <$ac_header>
8947 _ACEOF
8948 rm -f conftest.$ac_objext
8949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8950 (eval $ac_compile) 2>conftest.er1
8951 ac_status=$?
8952 grep -v '^ *+' conftest.er1 >conftest.err
8953 rm -f conftest.er1
8954 cat conftest.err >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } &&
8957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 (eval $ac_try) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; } &&
8963 { ac_try='test -s conftest.$ac_objext'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 (eval $ac_try) 2>&5
8966 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
8969 ac_header_compiler=yes
8970 else
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8973
8974 ac_header_compiler=no
8975 fi
8976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8978 echo "${ECHO_T}$ac_header_compiler" >&6
8979
8980 # Is the header present?
8981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8983 cat >conftest.$ac_ext <<_ACEOF
8984 /* confdefs.h. */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8989 #include <$ac_header>
8990 _ACEOF
8991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8993 ac_status=$?
8994 grep -v '^ *+' conftest.er1 >conftest.err
8995 rm -f conftest.er1
8996 cat conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } >/dev/null; then
8999 if test -s conftest.err; then
9000 ac_cpp_err=$ac_c_preproc_warn_flag
9001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9002 else
9003 ac_cpp_err=
9004 fi
9005 else
9006 ac_cpp_err=yes
9007 fi
9008 if test -z "$ac_cpp_err"; then
9009 ac_header_preproc=yes
9010 else
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 ac_header_preproc=no
9015 fi
9016 rm -f conftest.err conftest.$ac_ext
9017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9018 echo "${ECHO_T}$ac_header_preproc" >&6
9019
9020 # So? What about this header?
9021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9022 yes:no: )
9023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9027 ac_header_preproc=yes
9028 ;;
9029 no:yes:* )
9030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9042 (
9043 cat <<\_ASBOX
9044 ## ------------------------------- ##
9045 ## Report this to bug-make (at] gnu.org ##
9046 ## ------------------------------- ##
9047 _ASBOX
9048 ) |
9049 sed "s/^/$as_me: WARNING: /" >&2
9050 ;;
9051 esac
9052 echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 else
9057 eval "$as_ac_Header=\$ac_header_preproc"
9058 fi
9059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9061
9062 fi
9063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9064 cat >>confdefs.h <<_ACEOF
9065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9066 _ACEOF
9067
9068 fi
9069
9070 done
9071
9072
9073
9074 for ac_func in fork vfork
9075 do
9076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9077 echo "$as_me:$LINENO: checking for $ac_func" >&5
9078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9079 if eval "test \"\${$as_ac_var+set}\" = set"; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9082 cat >conftest.$ac_ext <<_ACEOF
9083 /* confdefs.h. */
9084 _ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9090 #define $ac_func innocuous_$ac_func
9091
9092 /* System header to define __stub macros and hopefully few prototypes,
9093 which can conflict with char $ac_func (); below.
9094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9095 <limits.h> exists even on freestanding compilers. */
9096
9097 #ifdef __STDC__
9098 # include <limits.h>
9099 #else
9100 # include <assert.h>
9101 #endif
9102
9103 #undef $ac_func
9104
9105 /* Override any gcc2 internal prototype to avoid an error. */
9106 #ifdef __cplusplus
9107 extern "C"
9108 {
9109 #endif
9110 /* We use char because int might match the return type of a gcc2
9111 builtin and then its argument prototype would still apply. */
9112 char $ac_func ();
9113 /* The GNU C library defines this for functions which it implements
9114 to always fail with ENOSYS. Some functions are actually named
9115 something starting with __ and the normal name is an alias. */
9116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9117 choke me
9118 #else
9119 char (*f) () = $ac_func;
9120 #endif
9121 #ifdef __cplusplus
9122 }
9123 #endif
9124
9125 int
9126 main ()
9127 {
9128 return f != $ac_func;
9129 ;
9130 return 0;
9131 }
9132 _ACEOF
9133 rm -f conftest.$ac_objext conftest$ac_exeext
9134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9135 (eval $ac_link) 2>conftest.er1
9136 ac_status=$?
9137 grep -v '^ *+' conftest.er1 >conftest.err
9138 rm -f conftest.er1
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } &&
9142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 (eval $ac_try) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; } &&
9148 { ac_try='test -s conftest$ac_exeext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 (eval $ac_try) 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 eval "$as_ac_var=yes"
9155 else
9156 echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9158
9159 eval "$as_ac_var=no"
9160 fi
9161 rm -f conftest.err conftest.$ac_objext \
9162 conftest$ac_exeext conftest.$ac_ext
9163 fi
9164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9166 if test `eval echo '${'$as_ac_var'}'` = yes; then
9167 cat >>confdefs.h <<_ACEOF
9168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9169 _ACEOF
9170
9171 fi
9172 done
9173
9174 if test "x$ac_cv_func_fork" = xyes; then
9175 echo "$as_me:$LINENO: checking for working fork" >&5
9176 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9177 if test "${ac_cv_func_fork_works+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180 if test "$cross_compiling" = yes; then
9181 ac_cv_func_fork_works=cross
9182 else
9183 cat >conftest.$ac_ext <<_ACEOF
9184 /* confdefs.h. */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9189 $ac_includes_default
9190 int
9191 main ()
9192 {
9193
9194 /* By Ruediger Kuhlmann. */
9195 if (fork() < 0)
9196 exit (1);
9197 exit (0);
9198
9199 ;
9200 return 0;
9201 }
9202 _ACEOF
9203 rm -f conftest$ac_exeext
9204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9205 (eval $ac_link) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_cv_func_fork_works=yes
9215 else
9216 echo "$as_me: program exited with status $ac_status" >&5
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9219
9220 ( exit $ac_status )
9221 ac_cv_func_fork_works=no
9222 fi
9223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9224 fi
9225 fi
9226 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9227 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9228
9229 else
9230 ac_cv_func_fork_works=$ac_cv_func_fork
9231 fi
9232 if test "x$ac_cv_func_fork_works" = xcross; then
9233 case $host in
9234 *-*-amigaos* | *-*-msdosdjgpp*)
9235 # Override, as these systems have only a dummy fork() stub
9236 ac_cv_func_fork_works=no
9237 ;;
9238 *)
9239 ac_cv_func_fork_works=yes
9240 ;;
9241 esac
9242 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9243 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9244 fi
9245 ac_cv_func_vfork_works=$ac_cv_func_vfork
9246 if test "x$ac_cv_func_vfork" = xyes; then
9247 echo "$as_me:$LINENO: checking for working vfork" >&5
9248 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9249 if test "${ac_cv_func_vfork_works+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252 if test "$cross_compiling" = yes; then
9253 ac_cv_func_vfork_works=cross
9254 else
9255 cat >conftest.$ac_ext <<_ACEOF
9256 /* confdefs.h. */
9257 _ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9261 /* Thanks to Paul Eggert for this test. */
9262 #include <stdio.h>
9263 #include <stdlib.h>
9264 #include <sys/types.h>
9265 #include <sys/stat.h>
9266 #include <sys/wait.h>
9267 #if HAVE_UNISTD_H
9268 # include <unistd.h>
9269 #endif
9270 #if HAVE_VFORK_H
9271 # include <vfork.h>
9272 #endif
9273 /* On some sparc systems, changes by the child to local and incoming
9274 argument registers are propagated back to the parent. The compiler
9275 is told about this with #include <vfork.h>, but some compilers
9276 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9277 static variable whose address is put into a register that is
9278 clobbered by the vfork. */
9279 static void
9280 #ifdef __cplusplus
9281 sparc_address_test (int arg)
9282 # else
9283 sparc_address_test (arg) int arg;
9284 #endif
9285 {
9286 static pid_t child;
9287 if (!child) {
9288 child = vfork ();
9289 if (child < 0) {
9290 perror ("vfork");
9291 _exit(2);
9292 }
9293 if (!child) {
9294 arg = getpid();
9295 write(-1, "", 0);
9296 _exit (arg);
9297 }
9298 }
9299 }
9300
9301 int
9302 main ()
9303 {
9304 pid_t parent = getpid ();
9305 pid_t child;
9306
9307 sparc_address_test (0);
9308
9309 child = vfork ();
9310
9311 if (child == 0) {
9312 /* Here is another test for sparc vfork register problems. This
9313 test uses lots of local variables, at least as many local
9314 variables as main has allocated so far including compiler
9315 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9316 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9317 reuse the register of parent for one of the local variables,
9318 since it will think that parent can't possibly be used any more
9319 in this routine. Assigning to the local variable will thus
9320 munge parent in the parent process. */
9321 pid_t
9322 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9323 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9324 /* Convince the compiler that p..p7 are live; otherwise, it might
9325 use the same hardware register for all 8 local variables. */
9326 if (p != p1 || p != p2 || p != p3 || p != p4
9327 || p != p5 || p != p6 || p != p7)
9328 _exit(1);
9329
9330 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9331 from child file descriptors. If the child closes a descriptor
9332 before it execs or exits, this munges the parent's descriptor
9333 as well. Test for this by closing stdout in the child. */
9334 _exit(close(fileno(stdout)) != 0);
9335 } else {
9336 int status;
9337 struct stat st;
9338
9339 while (wait(&status) != child)
9340 ;
9341 exit(
9342 /* Was there some problem with vforking? */
9343 child < 0
9344
9345 /* Did the child fail? (This shouldn't happen.) */
9346 || status
9347
9348 /* Did the vfork/compiler bug occur? */
9349 || parent != getpid()
9350
9351 /* Did the file descriptor bug occur? */
9352 || fstat(fileno(stdout), &st) != 0
9353 );
9354 }
9355 }
9356 _ACEOF
9357 rm -f conftest$ac_exeext
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 (eval $ac_try) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
9368 ac_cv_func_vfork_works=yes
9369 else
9370 echo "$as_me: program exited with status $ac_status" >&5
9371 echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9373
9374 ( exit $ac_status )
9375 ac_cv_func_vfork_works=no
9376 fi
9377 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9378 fi
9379 fi
9380 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9381 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9382
9383 fi;
9384 if test "x$ac_cv_func_fork_works" = xcross; then
9385 ac_cv_func_vfork_works=$ac_cv_func_vfork
9386 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9387 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9388 fi
9389
9390 if test "x$ac_cv_func_vfork_works" = xyes; then
9391
9392 cat >>confdefs.h <<\_ACEOF
9393 #define HAVE_WORKING_VFORK 1
9394 _ACEOF
9395
9396 else
9397
9398 cat >>confdefs.h <<\_ACEOF
9399 #define vfork fork
9400 _ACEOF
9401
9402 fi
9403 if test "x$ac_cv_func_fork_works" = xyes; then
9404
9405 cat >>confdefs.h <<\_ACEOF
9406 #define HAVE_WORKING_FORK 1
9407 _ACEOF
9408
9409 fi
9410
9411
9412 for ac_func in vprintf
9413 do
9414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9415 echo "$as_me:$LINENO: checking for $ac_func" >&5
9416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9417 if eval "test \"\${$as_ac_var+set}\" = set"; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420 cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h. */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9428 #define $ac_func innocuous_$ac_func
9429
9430 /* System header to define __stub macros and hopefully few prototypes,
9431 which can conflict with char $ac_func (); below.
9432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9433 <limits.h> exists even on freestanding compilers. */
9434
9435 #ifdef __STDC__
9436 # include <limits.h>
9437 #else
9438 # include <assert.h>
9439 #endif
9440
9441 #undef $ac_func
9442
9443 /* Override any gcc2 internal prototype to avoid an error. */
9444 #ifdef __cplusplus
9445 extern "C"
9446 {
9447 #endif
9448 /* We use char because int might match the return type of a gcc2
9449 builtin and then its argument prototype would still apply. */
9450 char $ac_func ();
9451 /* The GNU C library defines this for functions which it implements
9452 to always fail with ENOSYS. Some functions are actually named
9453 something starting with __ and the normal name is an alias. */
9454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9455 choke me
9456 #else
9457 char (*f) () = $ac_func;
9458 #endif
9459 #ifdef __cplusplus
9460 }
9461 #endif
9462
9463 int
9464 main ()
9465 {
9466 return f != $ac_func;
9467 ;
9468 return 0;
9469 }
9470 _ACEOF
9471 rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9473 (eval $ac_link) 2>conftest.er1
9474 ac_status=$?
9475 grep -v '^ *+' conftest.er1 >conftest.err
9476 rm -f conftest.er1
9477 cat conftest.err >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); } &&
9480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; } &&
9486 { ac_try='test -s conftest$ac_exeext'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 (eval $ac_try) 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; }; then
9492 eval "$as_ac_var=yes"
9493 else
9494 echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9496
9497 eval "$as_ac_var=no"
9498 fi
9499 rm -f conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9501 fi
9502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9504 if test `eval echo '${'$as_ac_var'}'` = yes; then
9505 cat >>confdefs.h <<_ACEOF
9506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9507 _ACEOF
9508
9509 echo "$as_me:$LINENO: checking for _doprnt" >&5
9510 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9511 if test "${ac_cv_func__doprnt+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514 cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h. */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9522 #define _doprnt innocuous__doprnt
9523
9524 /* System header to define __stub macros and hopefully few prototypes,
9525 which can conflict with char _doprnt (); below.
9526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9527 <limits.h> exists even on freestanding compilers. */
9528
9529 #ifdef __STDC__
9530 # include <limits.h>
9531 #else
9532 # include <assert.h>
9533 #endif
9534
9535 #undef _doprnt
9536
9537 /* Override any gcc2 internal prototype to avoid an error. */
9538 #ifdef __cplusplus
9539 extern "C"
9540 {
9541 #endif
9542 /* We use char because int might match the return type of a gcc2
9543 builtin and then its argument prototype would still apply. */
9544 char _doprnt ();
9545 /* The GNU C library defines this for functions which it implements
9546 to always fail with ENOSYS. Some functions are actually named
9547 something starting with __ and the normal name is an alias. */
9548 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9549 choke me
9550 #else
9551 char (*f) () = _doprnt;
9552 #endif
9553 #ifdef __cplusplus
9554 }
9555 #endif
9556
9557 int
9558 main ()
9559 {
9560 return f != _doprnt;
9561 ;
9562 return 0;
9563 }
9564 _ACEOF
9565 rm -f conftest.$ac_objext conftest$ac_exeext
9566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9567 (eval $ac_link) 2>conftest.er1
9568 ac_status=$?
9569 grep -v '^ *+' conftest.er1 >conftest.err
9570 rm -f conftest.er1
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } &&
9574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; } &&
9580 { ac_try='test -s conftest$ac_exeext'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 (eval $ac_try) 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; }; then
9586 ac_cv_func__doprnt=yes
9587 else
9588 echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9590
9591 ac_cv_func__doprnt=no
9592 fi
9593 rm -f conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
9595 fi
9596 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9597 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9598 if test $ac_cv_func__doprnt = yes; then
9599
9600 cat >>confdefs.h <<\_ACEOF
9601 #define HAVE_DOPRNT 1
9602 _ACEOF
9603
9604 fi
9605
9606 fi
9607 done
9608
9609
9610 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
9611 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
9612 if test "${ac_cv_func_closedir_void+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615 if test "$cross_compiling" = yes; then
9616 ac_cv_func_closedir_void=yes
9617 else
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h. */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 $ac_includes_default
9625 #include <$ac_header_dirent>
9626 #ifndef __cplusplus
9627 int closedir ();
9628 #endif
9629
9630 int
9631 main ()
9632 {
9633 exit (closedir (opendir (".")) != 0);
9634 ;
9635 return 0;
9636 }
9637 _ACEOF
9638 rm -f conftest$ac_exeext
9639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9640 (eval $ac_link) 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 (eval $ac_try) 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9649 ac_cv_func_closedir_void=no
9650 else
9651 echo "$as_me: program exited with status $ac_status" >&5
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9654
9655 ( exit $ac_status )
9656 ac_cv_func_closedir_void=yes
9657 fi
9658 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9659 fi
9660 fi
9661 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
9662 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
9663 if test $ac_cv_func_closedir_void = yes; then
9664
9665 cat >>confdefs.h <<\_ACEOF
9666 #define CLOSEDIR_VOID 1
9667 _ACEOF
9668
9669 fi
9670
9671
9672 ac_have_func=no # yes means we've found a way to get the load average.
9673
9674 # Make sure getloadavg.c is where it belongs, at configure-time.
9675 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
9676 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
9677 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
9678 { (exit 1); exit 1; }; }
9679
9680 ac_save_LIBS=$LIBS
9681
9682 # Check for getloadavg, but be sure not to touch the cache variable.
9683 (echo "$as_me:$LINENO: checking for getloadavg" >&5
9684 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
9685 if test "${ac_cv_func_getloadavg+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h. */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
9695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9696 #define getloadavg innocuous_getloadavg
9697
9698 /* System header to define __stub macros and hopefully few prototypes,
9699 which can conflict with char getloadavg (); below.
9700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9701 <limits.h> exists even on freestanding compilers. */
9702
9703 #ifdef __STDC__
9704 # include <limits.h>
9705 #else
9706 # include <assert.h>
9707 #endif
9708
9709 #undef getloadavg
9710
9711 /* Override any gcc2 internal prototype to avoid an error. */
9712 #ifdef __cplusplus
9713 extern "C"
9714 {
9715 #endif
9716 /* We use char because int might match the return type of a gcc2
9717 builtin and then its argument prototype would still apply. */
9718 char getloadavg ();
9719 /* The GNU C library defines this for functions which it implements
9720 to always fail with ENOSYS. Some functions are actually named
9721 something starting with __ and the normal name is an alias. */
9722 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
9723 choke me
9724 #else
9725 char (*f) () = getloadavg;
9726 #endif
9727 #ifdef __cplusplus
9728 }
9729 #endif
9730
9731 int
9732 main ()
9733 {
9734 return f != getloadavg;
9735 ;
9736 return 0;
9737 }
9738 _ACEOF
9739 rm -f conftest.$ac_objext conftest$ac_exeext
9740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9741 (eval $ac_link) 2>conftest.er1
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; } &&
9754 { ac_try='test -s conftest$ac_exeext'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 (eval $ac_try) 2>&5
9757 ac_status=$?
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9760 ac_cv_func_getloadavg=yes
9761 else
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9764
9765 ac_cv_func_getloadavg=no
9766 fi
9767 rm -f conftest.err conftest.$ac_objext \
9768 conftest$ac_exeext conftest.$ac_ext
9769 fi
9770 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
9771 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
9772 if test $ac_cv_func_getloadavg = yes; then
9773 exit 0
9774 else
9775 exit 1
9776 fi
9777 ) && ac_have_func=yes
9778
9779 # On HPUX9, an unprivileged user can get load averages through this function.
9780
9781 for ac_func in pstat_getdynamic
9782 do
9783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9784 echo "$as_me:$LINENO: checking for $ac_func" >&5
9785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9786 if eval "test \"\${$as_ac_var+set}\" = set"; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789 cat >conftest.$ac_ext <<_ACEOF
9790 /* confdefs.h. */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9797 #define $ac_func innocuous_$ac_func
9798
9799 /* System header to define __stub macros and hopefully few prototypes,
9800 which can conflict with char $ac_func (); below.
9801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9802 <limits.h> exists even on freestanding compilers. */
9803
9804 #ifdef __STDC__
9805 # include <limits.h>
9806 #else
9807 # include <assert.h>
9808 #endif
9809
9810 #undef $ac_func
9811
9812 /* Override any gcc2 internal prototype to avoid an error. */
9813 #ifdef __cplusplus
9814 extern "C"
9815 {
9816 #endif
9817 /* We use char because int might match the return type of a gcc2
9818 builtin and then its argument prototype would still apply. */
9819 char $ac_func ();
9820 /* The GNU C library defines this for functions which it implements
9821 to always fail with ENOSYS. Some functions are actually named
9822 something starting with __ and the normal name is an alias. */
9823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9824 choke me
9825 #else
9826 char (*f) () = $ac_func;
9827 #endif
9828 #ifdef __cplusplus
9829 }
9830 #endif
9831
9832 int
9833 main ()
9834 {
9835 return f != $ac_func;
9836 ;
9837 return 0;
9838 }
9839 _ACEOF
9840 rm -f conftest.$ac_objext conftest$ac_exeext
9841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9842 (eval $ac_link) 2>conftest.er1
9843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } &&
9849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 (eval $ac_try) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 eval "$as_ac_var=yes"
9862 else
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 eval "$as_ac_var=no"
9867 fi
9868 rm -f conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9870 fi
9871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9873 if test `eval echo '${'$as_ac_var'}'` = yes; then
9874 cat >>confdefs.h <<_ACEOF
9875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9876 _ACEOF
9877
9878 fi
9879 done
9880
9881
9882 # Solaris has libkstat which does not require root.
9883
9884 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
9885 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
9886 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889 ac_check_lib_save_LIBS=$LIBS
9890 LIBS="-lkstat $LIBS"
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h. */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897
9898 /* Override any gcc2 internal prototype to avoid an error. */
9899 #ifdef __cplusplus
9900 extern "C"
9901 #endif
9902 /* We use char because int might match the return type of a gcc2
9903 builtin and then its argument prototype would still apply. */
9904 char kstat_open ();
9905 int
9906 main ()
9907 {
9908 kstat_open ();
9909 ;
9910 return 0;
9911 }
9912 _ACEOF
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915 (eval $ac_link) 2>conftest.er1
9916 ac_status=$?
9917 grep -v '^ *+' conftest.er1 >conftest.err
9918 rm -f conftest.er1
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } &&
9922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 (eval $ac_try) 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 ac_cv_lib_kstat_kstat_open=yes
9935 else
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 ac_cv_lib_kstat_kstat_open=no
9940 fi
9941 rm -f conftest.err conftest.$ac_objext \
9942 conftest$ac_exeext conftest.$ac_ext
9943 LIBS=$ac_check_lib_save_LIBS
9944 fi
9945 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
9946 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
9947 if test $ac_cv_lib_kstat_kstat_open = yes; then
9948 cat >>confdefs.h <<_ACEOF
9949 #define HAVE_LIBKSTAT 1
9950 _ACEOF
9951
9952 LIBS="-lkstat $LIBS"
9953
9954 fi
9955
9956 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
9957
9958 # Some systems with -lutil have (and need) -lkvm as well, some do not.
9959 # On Solaris, -lkvm requires nlist from -lelf, so check that first
9960 # to get the right answer into the cache.
9961 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
9962 if test $ac_have_func = no; then
9963 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
9964 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
9965 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968 ac_check_lib_save_LIBS=$LIBS
9969 LIBS="-lelf $LIBS"
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h. */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976
9977 /* Override any gcc2 internal prototype to avoid an error. */
9978 #ifdef __cplusplus
9979 extern "C"
9980 #endif
9981 /* We use char because int might match the return type of a gcc2
9982 builtin and then its argument prototype would still apply. */
9983 char elf_begin ();
9984 int
9985 main ()
9986 {
9987 elf_begin ();
9988 ;
9989 return 0;
9990 }
9991 _ACEOF
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9994 (eval $ac_link) 2>conftest.er1
9995 ac_status=$?
9996 grep -v '^ *+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } &&
10001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; } &&
10007 { ac_try='test -s conftest$ac_exeext'
10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10010 ac_status=$?
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 ac_cv_lib_elf_elf_begin=yes
10014 else
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10017
10018 ac_cv_lib_elf_elf_begin=no
10019 fi
10020 rm -f conftest.err conftest.$ac_objext \
10021 conftest$ac_exeext conftest.$ac_ext
10022 LIBS=$ac_check_lib_save_LIBS
10023 fi
10024 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
10025 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
10026 if test $ac_cv_lib_elf_elf_begin = yes; then
10027 LIBS="-lelf $LIBS"
10028 fi
10029
10030 fi
10031 if test $ac_have_func = no; then
10032 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
10033 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
10034 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
10035 echo $ECHO_N "(cached) $ECHO_C" >&6
10036 else
10037 ac_check_lib_save_LIBS=$LIBS
10038 LIBS="-lkvm $LIBS"
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h. */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045
10046 /* Override any gcc2 internal prototype to avoid an error. */
10047 #ifdef __cplusplus
10048 extern "C"
10049 #endif
10050 /* We use char because int might match the return type of a gcc2
10051 builtin and then its argument prototype would still apply. */
10052 char kvm_open ();
10053 int
10054 main ()
10055 {
10056 kvm_open ();
10057 ;
10058 return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>conftest.er1
10064 ac_status=$?
10065 grep -v '^ *+' conftest.er1 >conftest.err
10066 rm -f conftest.er1
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; } &&
10076 { ac_try='test -s conftest$ac_exeext'
10077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078 (eval $ac_try) 2>&5
10079 ac_status=$?
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10082 ac_cv_lib_kvm_kvm_open=yes
10083 else
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10086
10087 ac_cv_lib_kvm_kvm_open=no
10088 fi
10089 rm -f conftest.err conftest.$ac_objext \
10090 conftest$ac_exeext conftest.$ac_ext
10091 LIBS=$ac_check_lib_save_LIBS
10092 fi
10093 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
10094 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
10095 if test $ac_cv_lib_kvm_kvm_open = yes; then
10096 LIBS="-lkvm $LIBS"
10097 fi
10098
10099 # Check for the 4.4BSD definition of getloadavg.
10100 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
10101 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
10102 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 else
10105 ac_check_lib_save_LIBS=$LIBS
10106 LIBS="-lutil $LIBS"
10107 cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h. */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10113
10114 /* Override any gcc2 internal prototype to avoid an error. */
10115 #ifdef __cplusplus
10116 extern "C"
10117 #endif
10118 /* We use char because int might match the return type of a gcc2
10119 builtin and then its argument prototype would still apply. */
10120 char getloadavg ();
10121 int
10122 main ()
10123 {
10124 getloadavg ();
10125 ;
10126 return 0;
10127 }
10128 _ACEOF
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10131 (eval $ac_link) 2>conftest.er1
10132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
10138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; } &&
10144 { ac_try='test -s conftest$ac_exeext'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5
10147 ac_status=$?
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; }; then
10150 ac_cv_lib_util_getloadavg=yes
10151 else
10152 echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10154
10155 ac_cv_lib_util_getloadavg=no
10156 fi
10157 rm -f conftest.err conftest.$ac_objext \
10158 conftest$ac_exeext conftest.$ac_ext
10159 LIBS=$ac_check_lib_save_LIBS
10160 fi
10161 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
10162 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
10163 if test $ac_cv_lib_util_getloadavg = yes; then
10164 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
10165 fi
10166
10167 fi
10168
10169 if test $ac_have_func = no; then
10170 # There is a commonly available library for RS/6000 AIX.
10171 # Since it is not a standard part of AIX, it might be installed locally.
10172 ac_getloadavg_LIBS=$LIBS
10173 LIBS="-L/usr/local/lib $LIBS"
10174 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
10175 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
10176 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 else
10179 ac_check_lib_save_LIBS=$LIBS
10180 LIBS="-lgetloadavg $LIBS"
10181 cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h. */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187
10188 /* Override any gcc2 internal prototype to avoid an error. */
10189 #ifdef __cplusplus
10190 extern "C"
10191 #endif
10192 /* We use char because int might match the return type of a gcc2
10193 builtin and then its argument prototype would still apply. */
10194 char getloadavg ();
10195 int
10196 main ()
10197 {
10198 getloadavg ();
10199 ;
10200 return 0;
10201 }
10202 _ACEOF
10203 rm -f conftest.$ac_objext conftest$ac_exeext
10204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10205 (eval $ac_link) 2>conftest.er1
10206 ac_status=$?
10207 grep -v '^ *+' conftest.er1 >conftest.err
10208 rm -f conftest.er1
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } &&
10212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; } &&
10218 { ac_try='test -s conftest$ac_exeext'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 ac_cv_lib_getloadavg_getloadavg=yes
10225 else
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 ac_cv_lib_getloadavg_getloadavg=no
10230 fi
10231 rm -f conftest.err conftest.$ac_objext \
10232 conftest$ac_exeext conftest.$ac_ext
10233 LIBS=$ac_check_lib_save_LIBS
10234 fi
10235 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
10236 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
10237 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
10238 LIBS="-lgetloadavg $LIBS"
10239 else
10240 LIBS=$ac_getloadavg_LIBS
10241 fi
10242
10243 fi
10244
10245 # Make sure it is really in the library, if we think we found it,
10246 # otherwise set up the replacement function.
10247
10248 for ac_func in getloadavg
10249 do
10250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10251 echo "$as_me:$LINENO: checking for $ac_func" >&5
10252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10253 if eval "test \"\${$as_ac_var+set}\" = set"; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256 cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h. */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10264 #define $ac_func innocuous_$ac_func
10265
10266 /* System header to define __stub macros and hopefully few prototypes,
10267 which can conflict with char $ac_func (); below.
10268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10269 <limits.h> exists even on freestanding compilers. */
10270
10271 #ifdef __STDC__
10272 # include <limits.h>
10273 #else
10274 # include <assert.h>
10275 #endif
10276
10277 #undef $ac_func
10278
10279 /* Override any gcc2 internal prototype to avoid an error. */
10280 #ifdef __cplusplus
10281 extern "C"
10282 {
10283 #endif
10284 /* We use char because int might match the return type of a gcc2
10285 builtin and then its argument prototype would still apply. */
10286 char $ac_func ();
10287 /* The GNU C library defines this for functions which it implements
10288 to always fail with ENOSYS. Some functions are actually named
10289 something starting with __ and the normal name is an alias. */
10290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10291 choke me
10292 #else
10293 char (*f) () = $ac_func;
10294 #endif
10295 #ifdef __cplusplus
10296 }
10297 #endif
10298
10299 int
10300 main ()
10301 {
10302 return f != $ac_func;
10303 ;
10304 return 0;
10305 }
10306 _ACEOF
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309 (eval $ac_link) 2>conftest.er1
10310 ac_status=$?
10311 grep -v '^ *+' conftest.er1 >conftest.err
10312 rm -f conftest.er1
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; } &&
10322 { ac_try='test -s conftest$ac_exeext'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 eval "$as_ac_var=yes"
10329 else
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10332
10333 eval "$as_ac_var=no"
10334 fi
10335 rm -f conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext conftest.$ac_ext
10337 fi
10338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10340 if test `eval echo '${'$as_ac_var'}'` = yes; then
10341 cat >>confdefs.h <<_ACEOF
10342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10343 _ACEOF
10344
10345 else
10346 case $LIBOBJS in
10347 "getloadavg.$ac_objext" | \
10348 *" getloadavg.$ac_objext" | \
10349 "getloadavg.$ac_objext "* | \
10350 *" getloadavg.$ac_objext "* ) ;;
10351 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
10352 esac
10353
10354
10355 cat >>confdefs.h <<\_ACEOF
10356 #define C_GETLOADAVG 1
10357 _ACEOF
10358
10359 # Figure out what our getloadavg.c needs.
10360 ac_have_func=no
10361 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
10362 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
10363 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
10364 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 fi
10367 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
10368 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
10369 else
10370 # Is the header compilable?
10371 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
10372 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
10373 cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h. */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 $ac_includes_default
10380 #include <sys/dg_sys_info.h>
10381 _ACEOF
10382 rm -f conftest.$ac_objext
10383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10384 (eval $ac_compile) 2>conftest.er1
10385 ac_status=$?
10386 grep -v '^ *+' conftest.er1 >conftest.err
10387 rm -f conftest.er1
10388 cat conftest.err >&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); } &&
10391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393 (eval $ac_try) 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; } &&
10397 { ac_try='test -s conftest.$ac_objext'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10403 ac_header_compiler=yes
10404 else
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10407
10408 ac_header_compiler=no
10409 fi
10410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10412 echo "${ECHO_T}$ac_header_compiler" >&6
10413
10414 # Is the header present?
10415 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
10416 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
10417 cat >conftest.$ac_ext <<_ACEOF
10418 /* confdefs.h. */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10423 #include <sys/dg_sys_info.h>
10424 _ACEOF
10425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10427 ac_status=$?
10428 grep -v '^ *+' conftest.er1 >conftest.err
10429 rm -f conftest.er1
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } >/dev/null; then
10433 if test -s conftest.err; then
10434 ac_cpp_err=$ac_c_preproc_warn_flag
10435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10436 else
10437 ac_cpp_err=
10438 fi
10439 else
10440 ac_cpp_err=yes
10441 fi
10442 if test -z "$ac_cpp_err"; then
10443 ac_header_preproc=yes
10444 else
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10447
10448 ac_header_preproc=no
10449 fi
10450 rm -f conftest.err conftest.$ac_ext
10451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10452 echo "${ECHO_T}$ac_header_preproc" >&6
10453
10454 # So? What about this header?
10455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10456 yes:no: )
10457 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
10458 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10459 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
10460 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
10461 ac_header_preproc=yes
10462 ;;
10463 no:yes:* )
10464 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
10465 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
10466 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
10467 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
10468 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
10469 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
10470 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
10471 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
10472 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
10473 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
10474 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
10475 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
10476 (
10477 cat <<\_ASBOX
10478 ## ------------------------------- ##
10479 ## Report this to bug-make (at] gnu.org ##
10480 ## ------------------------------- ##
10481 _ASBOX
10482 ) |
10483 sed "s/^/$as_me: WARNING: /" >&2
10484 ;;
10485 esac
10486 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
10487 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
10488 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
10492 fi
10493 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
10494 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
10495
10496 fi
10497 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
10498 ac_have_func=yes
10499
10500 cat >>confdefs.h <<\_ACEOF
10501 #define DGUX 1
10502 _ACEOF
10503
10504
10505 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
10506 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
10507 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 else
10510 ac_check_lib_save_LIBS=$LIBS
10511 LIBS="-ldgc $LIBS"
10512 cat >conftest.$ac_ext <<_ACEOF
10513 /* confdefs.h. */
10514 _ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10518
10519 /* Override any gcc2 internal prototype to avoid an error. */
10520 #ifdef __cplusplus
10521 extern "C"
10522 #endif
10523 /* We use char because int might match the return type of a gcc2
10524 builtin and then its argument prototype would still apply. */
10525 char dg_sys_info ();
10526 int
10527 main ()
10528 {
10529 dg_sys_info ();
10530 ;
10531 return 0;
10532 }
10533 _ACEOF
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536 (eval $ac_link) 2>conftest.er1
10537 ac_status=$?
10538 grep -v '^ *+' conftest.er1 >conftest.err
10539 rm -f conftest.er1
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
10543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; } &&
10549 { ac_try='test -s conftest$ac_exeext'
10550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551 (eval $ac_try) 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
10555 ac_cv_lib_dgc_dg_sys_info=yes
10556 else
10557 echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10559
10560 ac_cv_lib_dgc_dg_sys_info=no
10561 fi
10562 rm -f conftest.err conftest.$ac_objext \
10563 conftest$ac_exeext conftest.$ac_ext
10564 LIBS=$ac_check_lib_save_LIBS
10565 fi
10566 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
10567 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
10568 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
10569 cat >>confdefs.h <<_ACEOF
10570 #define HAVE_LIBDGC 1
10571 _ACEOF
10572
10573 LIBS="-ldgc $LIBS"
10574
10575 fi
10576
10577 fi
10578
10579
10580
10581 if test "${ac_cv_header_locale_h+set}" = set; then
10582 echo "$as_me:$LINENO: checking for locale.h" >&5
10583 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
10584 if test "${ac_cv_header_locale_h+set}" = set; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
10586 fi
10587 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
10588 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
10589 else
10590 # Is the header compilable?
10591 echo "$as_me:$LINENO: checking locale.h usability" >&5
10592 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
10593 cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h. */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10599 $ac_includes_default
10600 #include <locale.h>
10601 _ACEOF
10602 rm -f conftest.$ac_objext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10604 (eval $ac_compile) 2>conftest.er1
10605 ac_status=$?
10606 grep -v '^ *+' conftest.er1 >conftest.err
10607 rm -f conftest.er1
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
10611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; } &&
10617 { ac_try='test -s conftest.$ac_objext'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10620 ac_status=$?
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_header_compiler=yes
10624 else
10625 echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10627
10628 ac_header_compiler=no
10629 fi
10630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10632 echo "${ECHO_T}$ac_header_compiler" >&6
10633
10634 # Is the header present?
10635 echo "$as_me:$LINENO: checking locale.h presence" >&5
10636 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
10637 cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h. */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10643 #include <locale.h>
10644 _ACEOF
10645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10647 ac_status=$?
10648 grep -v '^ *+' conftest.er1 >conftest.err
10649 rm -f conftest.er1
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } >/dev/null; then
10653 if test -s conftest.err; then
10654 ac_cpp_err=$ac_c_preproc_warn_flag
10655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10656 else
10657 ac_cpp_err=
10658 fi
10659 else
10660 ac_cpp_err=yes
10661 fi
10662 if test -z "$ac_cpp_err"; then
10663 ac_header_preproc=yes
10664 else
10665 echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.$ac_ext >&5
10667
10668 ac_header_preproc=no
10669 fi
10670 rm -f conftest.err conftest.$ac_ext
10671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10672 echo "${ECHO_T}$ac_header_preproc" >&6
10673
10674 # So? What about this header?
10675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10676 yes:no: )
10677 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
10678 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10679 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
10680 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
10681 ac_header_preproc=yes
10682 ;;
10683 no:yes:* )
10684 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
10685 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
10686 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
10687 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
10688 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
10689 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
10690 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
10691 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
10692 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
10693 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
10694 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
10695 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
10696 (
10697 cat <<\_ASBOX
10698 ## ------------------------------- ##
10699 ## Report this to bug-make (at] gnu.org ##
10700 ## ------------------------------- ##
10701 _ASBOX
10702 ) |
10703 sed "s/^/$as_me: WARNING: /" >&2
10704 ;;
10705 esac
10706 echo "$as_me:$LINENO: checking for locale.h" >&5
10707 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
10708 if test "${ac_cv_header_locale_h+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711 ac_cv_header_locale_h=$ac_header_preproc
10712 fi
10713 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
10714 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
10715
10716 fi
10717
10718
10719
10720 for ac_func in setlocale
10721 do
10722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10723 echo "$as_me:$LINENO: checking for $ac_func" >&5
10724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10725 if eval "test \"\${$as_ac_var+set}\" = set"; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728 cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h. */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10736 #define $ac_func innocuous_$ac_func
10737
10738 /* System header to define __stub macros and hopefully few prototypes,
10739 which can conflict with char $ac_func (); below.
10740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10741 <limits.h> exists even on freestanding compilers. */
10742
10743 #ifdef __STDC__
10744 # include <limits.h>
10745 #else
10746 # include <assert.h>
10747 #endif
10748
10749 #undef $ac_func
10750
10751 /* Override any gcc2 internal prototype to avoid an error. */
10752 #ifdef __cplusplus
10753 extern "C"
10754 {
10755 #endif
10756 /* We use char because int might match the return type of a gcc2
10757 builtin and then its argument prototype would still apply. */
10758 char $ac_func ();
10759 /* The GNU C library defines this for functions which it implements
10760 to always fail with ENOSYS. Some functions are actually named
10761 something starting with __ and the normal name is an alias. */
10762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10763 choke me
10764 #else
10765 char (*f) () = $ac_func;
10766 #endif
10767 #ifdef __cplusplus
10768 }
10769 #endif
10770
10771 int
10772 main ()
10773 {
10774 return f != $ac_func;
10775 ;
10776 return 0;
10777 }
10778 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10781 (eval $ac_link) 2>conftest.er1
10782 ac_status=$?
10783 grep -v '^ *+' conftest.er1 >conftest.err
10784 rm -f conftest.er1
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; } &&
10794 { ac_try='test -s conftest$ac_exeext'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 eval "$as_ac_var=yes"
10801 else
10802 echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10804
10805 eval "$as_ac_var=no"
10806 fi
10807 rm -f conftest.err conftest.$ac_objext \
10808 conftest$ac_exeext conftest.$ac_ext
10809 fi
10810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10812 if test `eval echo '${'$as_ac_var'}'` = yes; then
10813 cat >>confdefs.h <<_ACEOF
10814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10815 _ACEOF
10816
10817 fi
10818 done
10819
10820
10821 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
10822 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
10823 # Irix 4.0.5F has the header but not the library.
10824 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
10825 ac_have_func=yes
10826
10827 cat >>confdefs.h <<\_ACEOF
10828 #define SVR4 1
10829 _ACEOF
10830
10831 fi
10832
10833 if test $ac_have_func = no; then
10834 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
10835 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
10836 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
10837 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 fi
10840 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
10841 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
10842 else
10843 # Is the header compilable?
10844 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
10845 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
10846 cat >conftest.$ac_ext <<_ACEOF
10847 /* confdefs.h. */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 $ac_includes_default
10853 #include <inq_stats/cpustats.h>
10854 _ACEOF
10855 rm -f conftest.$ac_objext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10857 (eval $ac_compile) 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; } &&
10870 { ac_try='test -s conftest.$ac_objext'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10873 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; }; then
10876 ac_header_compiler=yes
10877 else
10878 echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10880
10881 ac_header_compiler=no
10882 fi
10883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10885 echo "${ECHO_T}$ac_header_compiler" >&6
10886
10887 # Is the header present?
10888 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
10889 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
10890 cat >conftest.$ac_ext <<_ACEOF
10891 /* confdefs.h. */
10892 _ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h. */
10896 #include <inq_stats/cpustats.h>
10897 _ACEOF
10898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10900 ac_status=$?
10901 grep -v '^ *+' conftest.er1 >conftest.err
10902 rm -f conftest.er1
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } >/dev/null; then
10906 if test -s conftest.err; then
10907 ac_cpp_err=$ac_c_preproc_warn_flag
10908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10909 else
10910 ac_cpp_err=
10911 fi
10912 else
10913 ac_cpp_err=yes
10914 fi
10915 if test -z "$ac_cpp_err"; then
10916 ac_header_preproc=yes
10917 else
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10920
10921 ac_header_preproc=no
10922 fi
10923 rm -f conftest.err conftest.$ac_ext
10924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10925 echo "${ECHO_T}$ac_header_preproc" >&6
10926
10927 # So? What about this header?
10928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10929 yes:no: )
10930 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
10931 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10932 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
10933 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
10934 ac_header_preproc=yes
10935 ;;
10936 no:yes:* )
10937 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
10938 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
10939 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
10940 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
10941 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
10942 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
10943 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
10944 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
10945 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
10946 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
10947 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
10948 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
10949 (
10950 cat <<\_ASBOX
10951 ## ------------------------------- ##
10952 ## Report this to bug-make (at] gnu.org ##
10953 ## ------------------------------- ##
10954 _ASBOX
10955 ) |
10956 sed "s/^/$as_me: WARNING: /" >&2
10957 ;;
10958 esac
10959 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
10960 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
10961 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
10965 fi
10966 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
10967 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
10968
10969 fi
10970 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
10971 ac_have_func=yes
10972
10973 cat >>confdefs.h <<\_ACEOF
10974 #define UMAX 1
10975 _ACEOF
10976
10977
10978 cat >>confdefs.h <<\_ACEOF
10979 #define UMAX4_3 1
10980 _ACEOF
10981
10982 fi
10983
10984
10985 fi
10986
10987 if test $ac_have_func = no; then
10988 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
10989 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
10990 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
10991 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 fi
10994 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
10995 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
10996 else
10997 # Is the header compilable?
10998 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
10999 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11000 cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h. */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 $ac_includes_default
11007 #include <sys/cpustats.h>
11008 _ACEOF
11009 rm -f conftest.$ac_objext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11011 (eval $ac_compile) 2>conftest.er1
11012 ac_status=$?
11013 grep -v '^ *+' conftest.er1 >conftest.err
11014 rm -f conftest.er1
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; } &&
11024 { ac_try='test -s conftest.$ac_objext'
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; }; then
11030 ac_header_compiler=yes
11031 else
11032 echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11034
11035 ac_header_compiler=no
11036 fi
11037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11039 echo "${ECHO_T}$ac_header_compiler" >&6
11040
11041 # Is the header present?
11042 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11043 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11044 cat >conftest.$ac_ext <<_ACEOF
11045 /* confdefs.h. */
11046 _ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11050 #include <sys/cpustats.h>
11051 _ACEOF
11052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11054 ac_status=$?
11055 grep -v '^ *+' conftest.er1 >conftest.err
11056 rm -f conftest.er1
11057 cat conftest.err >&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } >/dev/null; then
11060 if test -s conftest.err; then
11061 ac_cpp_err=$ac_c_preproc_warn_flag
11062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11063 else
11064 ac_cpp_err=
11065 fi
11066 else
11067 ac_cpp_err=yes
11068 fi
11069 if test -z "$ac_cpp_err"; then
11070 ac_header_preproc=yes
11071 else
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075 ac_header_preproc=no
11076 fi
11077 rm -f conftest.err conftest.$ac_ext
11078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11079 echo "${ECHO_T}$ac_header_preproc" >&6
11080
11081 # So? What about this header?
11082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11083 yes:no: )
11084 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11085 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11086 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
11087 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
11088 ac_header_preproc=yes
11089 ;;
11090 no:yes:* )
11091 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11092 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11094 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11095 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
11096 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
11098 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
11099 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11100 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
11101 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
11102 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
11103 (
11104 cat <<\_ASBOX
11105 ## ------------------------------- ##
11106 ## Report this to bug-make (at] gnu.org ##
11107 ## ------------------------------- ##
11108 _ASBOX
11109 ) |
11110 sed "s/^/$as_me: WARNING: /" >&2
11111 ;;
11112 esac
11113 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11114 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11115 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11116 echo $ECHO_N "(cached) $ECHO_C" >&6
11117 else
11118 ac_cv_header_sys_cpustats_h=$ac_header_preproc
11119 fi
11120 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11121 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11122
11123 fi
11124 if test $ac_cv_header_sys_cpustats_h = yes; then
11125 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
11126 #define UMAX 1
11127 _ACEOF
11128
11129 fi
11130
11131
11132 fi
11133
11134 if test $ac_have_func = no; then
11135
11136 for ac_header in mach/mach.h
11137 do
11138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11140 echo "$as_me:$LINENO: checking for $ac_header" >&5
11141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 fi
11145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11147 else
11148 # Is the header compilable?
11149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11151 cat >conftest.$ac_ext <<_ACEOF
11152 /* confdefs.h. */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h. */
11157 $ac_includes_default
11158 #include <$ac_header>
11159 _ACEOF
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; } &&
11175 { ac_try='test -s conftest.$ac_objext'
11176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177 (eval $ac_try) 2>&5
11178 ac_status=$?
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; }; then
11181 ac_header_compiler=yes
11182 else
11183 echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11185
11186 ac_header_compiler=no
11187 fi
11188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11190 echo "${ECHO_T}$ac_header_compiler" >&6
11191
11192 # Is the header present?
11193 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11195 cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h. */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11201 #include <$ac_header>
11202 _ACEOF
11203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11205 ac_status=$?
11206 grep -v '^ *+' conftest.er1 >conftest.err
11207 rm -f conftest.er1
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } >/dev/null; then
11211 if test -s conftest.err; then
11212 ac_cpp_err=$ac_c_preproc_warn_flag
11213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11214 else
11215 ac_cpp_err=
11216 fi
11217 else
11218 ac_cpp_err=yes
11219 fi
11220 if test -z "$ac_cpp_err"; then
11221 ac_header_preproc=yes
11222 else
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11225
11226 ac_header_preproc=no
11227 fi
11228 rm -f conftest.err conftest.$ac_ext
11229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11230 echo "${ECHO_T}$ac_header_preproc" >&6
11231
11232 # So? What about this header?
11233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11234 yes:no: )
11235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11239 ac_header_preproc=yes
11240 ;;
11241 no:yes:* )
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11245 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11249 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11254 (
11255 cat <<\_ASBOX
11256 ## ------------------------------- ##
11257 ## Report this to bug-make (at] gnu.org ##
11258 ## ------------------------------- ##
11259 _ASBOX
11260 ) |
11261 sed "s/^/$as_me: WARNING: /" >&2
11262 ;;
11263 esac
11264 echo "$as_me:$LINENO: checking for $ac_header" >&5
11265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 else
11269 eval "$as_ac_Header=\$ac_header_preproc"
11270 fi
11271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11273
11274 fi
11275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11276 cat >>confdefs.h <<_ACEOF
11277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11278 _ACEOF
11279
11280 fi
11281
11282 done
11283
11284 fi
11285
11286
11287 for ac_header in nlist.h
11288 do
11289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11291 echo "$as_me:$LINENO: checking for $ac_header" >&5
11292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 fi
11296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11298 else
11299 # Is the header compilable?
11300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 $ac_includes_default
11309 #include <$ac_header>
11310 _ACEOF
11311 rm -f conftest.$ac_objext
11312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11313 (eval $ac_compile) 2>conftest.er1
11314 ac_status=$?
11315 grep -v '^ *+' conftest.er1 >conftest.err
11316 rm -f conftest.er1
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
11320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11323 ac_status=$?
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; } &&
11326 { ac_try='test -s conftest.$ac_objext'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_header_compiler=yes
11333 else
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11336
11337 ac_header_compiler=no
11338 fi
11339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11341 echo "${ECHO_T}$ac_header_compiler" >&6
11342
11343 # Is the header present?
11344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h. */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 #include <$ac_header>
11353 _ACEOF
11354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11356 ac_status=$?
11357 grep -v '^ *+' conftest.er1 >conftest.err
11358 rm -f conftest.er1
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } >/dev/null; then
11362 if test -s conftest.err; then
11363 ac_cpp_err=$ac_c_preproc_warn_flag
11364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11365 else
11366 ac_cpp_err=
11367 fi
11368 else
11369 ac_cpp_err=yes
11370 fi
11371 if test -z "$ac_cpp_err"; then
11372 ac_header_preproc=yes
11373 else
11374 echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11376
11377 ac_header_preproc=no
11378 fi
11379 rm -f conftest.err conftest.$ac_ext
11380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11381 echo "${ECHO_T}$ac_header_preproc" >&6
11382
11383 # So? What about this header?
11384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11385 yes:no: )
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11390 ac_header_preproc=yes
11391 ;;
11392 no:yes:* )
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11405 (
11406 cat <<\_ASBOX
11407 ## ------------------------------- ##
11408 ## Report this to bug-make (at] gnu.org ##
11409 ## ------------------------------- ##
11410 _ASBOX
11411 ) |
11412 sed "s/^/$as_me: WARNING: /" >&2
11413 ;;
11414 esac
11415 echo "$as_me:$LINENO: checking for $ac_header" >&5
11416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 else
11420 eval "$as_ac_Header=\$ac_header_preproc"
11421 fi
11422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11424
11425 fi
11426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11427 cat >>confdefs.h <<_ACEOF
11428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11429 _ACEOF
11430 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
11431 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
11432 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 else
11435 cat >conftest.$ac_ext <<_ACEOF
11436 /* confdefs.h. */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11441 #include <nlist.h>
11442
11443 int
11444 main ()
11445 {
11446 static struct nlist ac_aggr;
11447 if (ac_aggr.n_un.n_name)
11448 return 0;
11449 ;
11450 return 0;
11451 }
11452 _ACEOF
11453 rm -f conftest.$ac_objext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455 (eval $ac_compile) 2>conftest.er1
11456 ac_status=$?
11457 grep -v '^ *+' conftest.er1 >conftest.err
11458 rm -f conftest.er1
11459 cat conftest.err >&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } &&
11462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464 (eval $ac_try) 2>&5
11465 ac_status=$?
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; } &&
11468 { ac_try='test -s conftest.$ac_objext'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; }; then
11474 ac_cv_member_struct_nlist_n_un_n_name=yes
11475 else
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11478
11479 cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h. */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 #include <nlist.h>
11486
11487 int
11488 main ()
11489 {
11490 static struct nlist ac_aggr;
11491 if (sizeof ac_aggr.n_un.n_name)
11492 return 0;
11493 ;
11494 return 0;
11495 }
11496 _ACEOF
11497 rm -f conftest.$ac_objext
11498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11499 (eval $ac_compile) 2>conftest.er1
11500 ac_status=$?
11501 grep -v '^ *+' conftest.er1 >conftest.err
11502 rm -f conftest.er1
11503 cat conftest.err >&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; } &&
11512 { ac_try='test -s conftest.$ac_objext'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 ac_cv_member_struct_nlist_n_un_n_name=yes
11519 else
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11522
11523 ac_cv_member_struct_nlist_n_un_n_name=no
11524 fi
11525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11526 fi
11527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11528 fi
11529 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
11530 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
11531 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
11532
11533 cat >>confdefs.h <<_ACEOF
11534 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11535 _ACEOF
11536
11537
11538 cat >>confdefs.h <<\_ACEOF
11539 #define NLIST_NAME_UNION 1
11540 _ACEOF
11541
11542 fi
11543
11544
11545 fi
11546
11547 done
11548
11549 fi
11550 done
11551
11552
11553 # Some definitions of getloadavg require that the program be installed setgid.
11554 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
11555 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
11556 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 else
11559 cat >conftest.$ac_ext <<_ACEOF
11560 /* confdefs.h. */
11561 _ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11565 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11566 #ifdef LDAV_PRIVILEGED
11567 Yowza Am I SETGID yet
11568 #endif
11569 _ACEOF
11570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11571 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
11572 ac_cv_func_getloadavg_setgid=yes
11573 else
11574 ac_cv_func_getloadavg_setgid=no
11575 fi
11576 rm -f conftest*
11577
11578 fi
11579 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
11580 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
11581 if test $ac_cv_func_getloadavg_setgid = yes; then
11582 NEED_SETGID=true
11583
11584 cat >>confdefs.h <<\_ACEOF
11585 #define GETLOADAVG_PRIVILEGED 1
11586 _ACEOF
11587
11588 else
11589 NEED_SETGID=false
11590 fi
11591
11592 if test $ac_cv_func_getloadavg_setgid = yes; then
11593 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
11594 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
11595 if test "${ac_cv_group_kmem+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11599 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11600 # If we got an error (system does not support symlinks), try without -L.
11601 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11602 ac_cv_group_kmem=`echo $ac_ls_output \
11603 | sed -ne 's/[ ][ ]*/ /g;
11604 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11605 / /s/.* //;p;'`
11606
11607 fi
11608 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
11609 echo "${ECHO_T}$ac_cv_group_kmem" >&6
11610 KMEM_GROUP=$ac_cv_group_kmem
11611 fi
11612 if test "x$ac_save_LIBS" = x; then
11613 GETLOADAVG_LIBS=$LIBS
11614 else
11615 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
11616 fi
11617 LIBS=$ac_save_LIBS
11618
11619
11620
11621 # AC_FUNC_GETLOADAVG is documented to set the NLIST_STRUCT value, but it
11622 # doesn't. So, we will.
11623
11624 if test "$ac_cv_header_nlist_h" = yes; then
11625 cat >conftest.$ac_ext <<_ACEOF
11626 /* confdefs.h. */
11627 _ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11631 #include <nlist.h>
11632 int
11633 main ()
11634 {
11635 struct nlist nl;
11636 nl.n_name = "string";
11637 return 0;
11638 ;
11639 return 0;
11640 }
11641 _ACEOF
11642 rm -f conftest.$ac_objext
11643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11644 (eval $ac_compile) 2>conftest.er1
11645 ac_status=$?
11646 grep -v '^ *+' conftest.er1 >conftest.err
11647 rm -f conftest.er1
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; } &&
11657 { ac_try='test -s conftest.$ac_objext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 make_cv_nlist_struct=yes
11664 else
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668 make_cv_nlist_struct=no
11669 fi
11670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11671 if test "$make_cv_nlist_struct" = yes; then
11672
11673 cat >>confdefs.h <<\_ACEOF
11674 #define NLIST_STRUCT 1
11675 _ACEOF
11676
11677 fi
11678 fi
11679
11680 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
11681 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
11682 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11684 else
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h. */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691 $ac_includes_default
11692 #include <signal.h>
11693 /* NetBSD declares sys_siglist in unistd.h. */
11694 #if HAVE_UNISTD_H
11695 # include <unistd.h>
11696 #endif
11697
11698
11699 int
11700 main ()
11701 {
11702 #ifndef sys_siglist
11703 char *p = (char *) sys_siglist;
11704 #endif
11705
11706 ;
11707 return 0;
11708 }
11709 _ACEOF
11710 rm -f conftest.$ac_objext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11712 (eval $ac_compile) 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; } &&
11725 { ac_try='test -s conftest.$ac_objext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 ac_cv_have_decl_sys_siglist=yes
11732 else
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11735
11736 ac_cv_have_decl_sys_siglist=no
11737 fi
11738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11739 fi
11740 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
11741 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
11742 if test $ac_cv_have_decl_sys_siglist = yes; then
11743
11744 cat >>confdefs.h <<_ACEOF
11745 #define HAVE_DECL_SYS_SIGLIST 1
11746 _ACEOF
11747
11748
11749 else
11750 cat >>confdefs.h <<_ACEOF
11751 #define HAVE_DECL_SYS_SIGLIST 0
11752 _ACEOF
11753
11754
11755 fi
11756 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
11757 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
11758 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 else
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h. */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 $ac_includes_default
11768 #include <signal.h>
11769 /* NetBSD declares sys_siglist in unistd.h. */
11770 #if HAVE_UNISTD_H
11771 # include <unistd.h>
11772 #endif
11773
11774
11775 int
11776 main ()
11777 {
11778 #ifndef _sys_siglist
11779 char *p = (char *) _sys_siglist;
11780 #endif
11781
11782 ;
11783 return 0;
11784 }
11785 _ACEOF
11786 rm -f conftest.$ac_objext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788 (eval $ac_compile) 2>conftest.er1
11789 ac_status=$?
11790 grep -v '^ *+' conftest.er1 >conftest.err
11791 rm -f conftest.er1
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
11795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; } &&
11801 { ac_try='test -s conftest.$ac_objext'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 ac_cv_have_decl__sys_siglist=yes
11808 else
11809 echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11811
11812 ac_cv_have_decl__sys_siglist=no
11813 fi
11814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11815 fi
11816 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
11817 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
11818 if test $ac_cv_have_decl__sys_siglist = yes; then
11819
11820 cat >>confdefs.h <<_ACEOF
11821 #define HAVE_DECL__SYS_SIGLIST 1
11822 _ACEOF
11823
11824
11825 else
11826 cat >>confdefs.h <<_ACEOF
11827 #define HAVE_DECL__SYS_SIGLIST 0
11828 _ACEOF
11829
11830
11831 fi
11832 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
11833 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
11834 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11836 else
11837 cat >conftest.$ac_ext <<_ACEOF
11838 /* confdefs.h. */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11843 $ac_includes_default
11844 #include <signal.h>
11845 /* NetBSD declares sys_siglist in unistd.h. */
11846 #if HAVE_UNISTD_H
11847 # include <unistd.h>
11848 #endif
11849
11850
11851 int
11852 main ()
11853 {
11854 #ifndef __sys_siglist
11855 char *p = (char *) __sys_siglist;
11856 #endif
11857
11858 ;
11859 return 0;
11860 }
11861 _ACEOF
11862 rm -f conftest.$ac_objext
11863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11864 (eval $ac_compile) 2>conftest.er1
11865 ac_status=$?
11866 grep -v '^ *+' conftest.er1 >conftest.err
11867 rm -f conftest.er1
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
11871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; } &&
11877 { ac_try='test -s conftest.$ac_objext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 ac_cv_have_decl___sys_siglist=yes
11884 else
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11887
11888 ac_cv_have_decl___sys_siglist=no
11889 fi
11890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11891 fi
11892 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
11893 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
11894 if test $ac_cv_have_decl___sys_siglist = yes; then
11895
11896 cat >>confdefs.h <<_ACEOF
11897 #define HAVE_DECL___SYS_SIGLIST 1
11898 _ACEOF
11899
11900
11901 else
11902 cat >>confdefs.h <<_ACEOF
11903 #define HAVE_DECL___SYS_SIGLIST 0
11904 _ACEOF
11905
11906
11907 fi
11908
11909
11910
11911
11912 # Check out the wait reality.
11913
11914 for ac_header in sys/wait.h
11915 do
11916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11918 echo "$as_me:$LINENO: checking for $ac_header" >&5
11919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 fi
11923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11925 else
11926 # Is the header compilable?
11927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 $ac_includes_default
11936 #include <$ac_header>
11937 _ACEOF
11938 rm -f conftest.$ac_objext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940 (eval $ac_compile) 2>conftest.er1
11941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try='test -s conftest.$ac_objext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 ac_header_compiler=yes
11960 else
11961 echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11963
11964 ac_header_compiler=no
11965 fi
11966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11968 echo "${ECHO_T}$ac_header_compiler" >&6
11969
11970 # Is the header present?
11971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11973 cat >conftest.$ac_ext <<_ACEOF
11974 /* confdefs.h. */
11975 _ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11979 #include <$ac_header>
11980 _ACEOF
11981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11983 ac_status=$?
11984 grep -v '^ *+' conftest.er1 >conftest.err
11985 rm -f conftest.er1
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } >/dev/null; then
11989 if test -s conftest.err; then
11990 ac_cpp_err=$ac_c_preproc_warn_flag
11991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11992 else
11993 ac_cpp_err=
11994 fi
11995 else
11996 ac_cpp_err=yes
11997 fi
11998 if test -z "$ac_cpp_err"; then
11999 ac_header_preproc=yes
12000 else
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12003
12004 ac_header_preproc=no
12005 fi
12006 rm -f conftest.err conftest.$ac_ext
12007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12008 echo "${ECHO_T}$ac_header_preproc" >&6
12009
12010 # So? What about this header?
12011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12012 yes:no: )
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12017 ac_header_preproc=yes
12018 ;;
12019 no:yes:* )
12020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12032 (
12033 cat <<\_ASBOX
12034 ## ------------------------------- ##
12035 ## Report this to bug-make (at] gnu.org ##
12036 ## ------------------------------- ##
12037 _ASBOX
12038 ) |
12039 sed "s/^/$as_me: WARNING: /" >&2
12040 ;;
12041 esac
12042 echo "$as_me:$LINENO: checking for $ac_header" >&5
12043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047 eval "$as_ac_Header=\$ac_header_preproc"
12048 fi
12049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12051
12052 fi
12053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12054 cat >>confdefs.h <<_ACEOF
12055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12056 _ACEOF
12057
12058 fi
12059
12060 done
12061
12062
12063
12064 for ac_func in waitpid wait3
12065 do
12066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12067 echo "$as_me:$LINENO: checking for $ac_func" >&5
12068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12069 if eval "test \"\${$as_ac_var+set}\" = set"; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 else
12072 cat >conftest.$ac_ext <<_ACEOF
12073 /* confdefs.h. */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12080 #define $ac_func innocuous_$ac_func
12081
12082 /* System header to define __stub macros and hopefully few prototypes,
12083 which can conflict with char $ac_func (); below.
12084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12085 <limits.h> exists even on freestanding compilers. */
12086
12087 #ifdef __STDC__
12088 # include <limits.h>
12089 #else
12090 # include <assert.h>
12091 #endif
12092
12093 #undef $ac_func
12094
12095 /* Override any gcc2 internal prototype to avoid an error. */
12096 #ifdef __cplusplus
12097 extern "C"
12098 {
12099 #endif
12100 /* We use char because int might match the return type of a gcc2
12101 builtin and then its argument prototype would still apply. */
12102 char $ac_func ();
12103 /* The GNU C library defines this for functions which it implements
12104 to always fail with ENOSYS. Some functions are actually named
12105 something starting with __ and the normal name is an alias. */
12106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12107 choke me
12108 #else
12109 char (*f) () = $ac_func;
12110 #endif
12111 #ifdef __cplusplus
12112 }
12113 #endif
12114
12115 int
12116 main ()
12117 {
12118 return f != $ac_func;
12119 ;
12120 return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12125 (eval $ac_link) 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; } &&
12138 { ac_try='test -s conftest$ac_exeext'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12144 eval "$as_ac_var=yes"
12145 else
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12148
12149 eval "$as_ac_var=no"
12150 fi
12151 rm -f conftest.err conftest.$ac_objext \
12152 conftest$ac_exeext conftest.$ac_ext
12153 fi
12154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12156 if test `eval echo '${'$as_ac_var'}'` = yes; then
12157 cat >>confdefs.h <<_ACEOF
12158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12159 _ACEOF
12160
12161 fi
12162 done
12163
12164 echo "$as_me:$LINENO: checking for union wait" >&5
12165 echo $ECHO_N "checking for union wait... $ECHO_C" >&6
12166 if test "${make_cv_union_wait+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 #include <sys/types.h>
12176 #include <sys/wait.h>
12177 int
12178 main ()
12179 {
12180 union wait status; int pid; pid = wait (&status);
12181 #ifdef WEXITSTATUS
12182 /* Some POSIXoid systems have both the new-style macros and the old
12183 union wait type, and they do not work together. If union wait
12184 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
12185 if (WEXITSTATUS (status) != 0) pid = -1;
12186 #ifdef WTERMSIG
12187 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
12188 -- blow chunks here --
12189 #endif
12190 #endif
12191 #ifdef HAVE_WAITPID
12192 /* Make sure union wait works with waitpid. */
12193 pid = waitpid (-1, &status, 0);
12194 #endif
12195
12196 ;
12197 return 0;
12198 }
12199 _ACEOF
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12202 (eval $ac_link) 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest$ac_exeext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 make_cv_union_wait=yes
12222 else
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226 make_cv_union_wait=no
12227 fi
12228 rm -f conftest.err conftest.$ac_objext \
12229 conftest$ac_exeext conftest.$ac_ext
12230 fi
12231
12232 if test "$make_cv_union_wait" = yes; then
12233
12234 cat >>confdefs.h <<\_ACEOF
12235 #define HAVE_UNION_WAIT 1
12236 _ACEOF
12237
12238 fi
12239 echo "$as_me:$LINENO: result: $make_cv_union_wait" >&5
12240 echo "${ECHO_T}$make_cv_union_wait" >&6
12241
12242
12243 # If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
12244 if test "$PATH_SEPARATOR" = ';'; then
12245
12246 cat >>confdefs.h <<\_ACEOF
12247 #define HAVE_DOS_PATHS 1
12248 _ACEOF
12249
12250 fi
12251
12252
12253 # See if the user wants to use pmake's "customs" distributed build capability
12254
12255 REMOTE=stub
12256 use_customs=false
12257
12258 # Check whether --with-customs or --without-customs was given.
12259 if test "${with_customs+set}" = set; then
12260 withval="$with_customs"
12261 case $withval in
12262 n|no) : ;;
12263 *) make_cppflags="$CPPFLAGS"
12264 case $withval in
12265 y|ye|yes) : ;;
12266 *) CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
12267 make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
12268 esac
12269
12270 cf_test_netlibs=no
12271 echo "$as_me:$LINENO: checking for network libraries" >&5
12272 echo $ECHO_N "checking for network libraries... $ECHO_C" >&6
12273 if test "${cf_cv_netlibs+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 else
12276
12277 echo "$as_me:$LINENO: result: working..." >&5
12278 echo "${ECHO_T}working..." >&6
12279 cf_cv_netlibs=""
12280 cf_test_netlibs=yes
12281
12282 for ac_func in gethostname
12283 do
12284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12285 echo "$as_me:$LINENO: checking for $ac_func" >&5
12286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12287 if eval "test \"\${$as_ac_var+set}\" = set"; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h. */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12298 #define $ac_func innocuous_$ac_func
12299
12300 /* System header to define __stub macros and hopefully few prototypes,
12301 which can conflict with char $ac_func (); below.
12302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12303 <limits.h> exists even on freestanding compilers. */
12304
12305 #ifdef __STDC__
12306 # include <limits.h>
12307 #else
12308 # include <assert.h>
12309 #endif
12310
12311 #undef $ac_func
12312
12313 /* Override any gcc2 internal prototype to avoid an error. */
12314 #ifdef __cplusplus
12315 extern "C"
12316 {
12317 #endif
12318 /* We use char because int might match the return type of a gcc2
12319 builtin and then its argument prototype would still apply. */
12320 char $ac_func ();
12321 /* The GNU C library defines this for functions which it implements
12322 to always fail with ENOSYS. Some functions are actually named
12323 something starting with __ and the normal name is an alias. */
12324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12325 choke me
12326 #else
12327 char (*f) () = $ac_func;
12328 #endif
12329 #ifdef __cplusplus
12330 }
12331 #endif
12332
12333 int
12334 main ()
12335 {
12336 return f != $ac_func;
12337 ;
12338 return 0;
12339 }
12340 _ACEOF
12341 rm -f conftest.$ac_objext conftest$ac_exeext
12342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12343 (eval $ac_link) 2>conftest.er1
12344 ac_status=$?
12345 grep -v '^ *+' conftest.er1 >conftest.err
12346 rm -f conftest.er1
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
12350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; } &&
12356 { ac_try='test -s conftest$ac_exeext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 eval "$as_ac_var=yes"
12363 else
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12366
12367 eval "$as_ac_var=no"
12368 fi
12369 rm -f conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12371 fi
12372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12374 if test `eval echo '${'$as_ac_var'}'` = yes; then
12375 cat >>confdefs.h <<_ACEOF
12376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12377 _ACEOF
12378
12379 else
12380
12381
12382 echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5
12383 echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6
12384 if test "${ac_cv_lib_nsl_gethostname+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387 ac_check_lib_save_LIBS=$LIBS
12388 LIBS="-lnsl $cf_cv_netlibs $LIBS"
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h. */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395
12396 /* Override any gcc2 internal prototype to avoid an error. */
12397 #ifdef __cplusplus
12398 extern "C"
12399 #endif
12400 /* We use char because int might match the return type of a gcc2
12401 builtin and then its argument prototype would still apply. */
12402 char gethostname ();
12403 int
12404 main ()
12405 {
12406 gethostname ();
12407 ;
12408 return 0;
12409 }
12410 _ACEOF
12411 rm -f conftest.$ac_objext conftest$ac_exeext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12413 (eval $ac_link) 2>conftest.er1
12414 ac_status=$?
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
12420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; } &&
12426 { ac_try='test -s conftest$ac_exeext'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; }; then
12432 ac_cv_lib_nsl_gethostname=yes
12433 else
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 ac_cv_lib_nsl_gethostname=no
12438 fi
12439 rm -f conftest.err conftest.$ac_objext \
12440 conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12442 fi
12443 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5
12444 echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6
12445 if test $ac_cv_lib_nsl_gethostname = yes; then
12446
12447
12448 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
12449
12450
12451 cat >>confdefs.h <<_ACEOF
12452 #define HAVE_$cf_tr_func 1
12453 _ACEOF
12454
12455 ac_cv_func_gethostname=yes
12456 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
12457 else
12458
12459 ac_cv_func_gethostname=unknown
12460 unset ac_cv_func_gethostname 2>/dev/null
12461
12462
12463 echo "$as_me:$LINENO: checking for gethostname in -lsocket" >&5
12464 echo $ECHO_N "checking for gethostname in -lsocket... $ECHO_C" >&6
12465 if test "${ac_cv_lib_socket_gethostname+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468 ac_check_lib_save_LIBS=$LIBS
12469 LIBS="-lsocket $cf_cv_netlibs $LIBS"
12470 cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h. */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476
12477 /* Override any gcc2 internal prototype to avoid an error. */
12478 #ifdef __cplusplus
12479 extern "C"
12480 #endif
12481 /* We use char because int might match the return type of a gcc2
12482 builtin and then its argument prototype would still apply. */
12483 char gethostname ();
12484 int
12485 main ()
12486 {
12487 gethostname ();
12488 ;
12489 return 0;
12490 }
12491 _ACEOF
12492 rm -f conftest.$ac_objext conftest$ac_exeext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12494 (eval $ac_link) 2>conftest.er1
12495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; } &&
12507 { ac_try='test -s conftest$ac_exeext'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; }; then
12513 ac_cv_lib_socket_gethostname=yes
12514 else
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12517
12518 ac_cv_lib_socket_gethostname=no
12519 fi
12520 rm -f conftest.err conftest.$ac_objext \
12521 conftest$ac_exeext conftest.$ac_ext
12522 LIBS=$ac_check_lib_save_LIBS
12523 fi
12524 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostname" >&5
12525 echo "${ECHO_T}$ac_cv_lib_socket_gethostname" >&6
12526 if test $ac_cv_lib_socket_gethostname = yes; then
12527
12528
12529 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
12530
12531
12532 cat >>confdefs.h <<_ACEOF
12533 #define HAVE_$cf_tr_func 1
12534 _ACEOF
12535
12536 ac_cv_func_gethostname=yes
12537 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
12538 else
12539
12540 ac_cv_func_gethostname=unknown
12541 unset ac_cv_func_gethostname 2>/dev/null
12542
12543 fi
12544
12545
12546 fi
12547
12548
12549 fi
12550 done
12551
12552 #
12553 # FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but
12554 # I don't know the entrypoints - 97/7/22 TD
12555 echo "$as_me:$LINENO: checking for main in -linet" >&5
12556 echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6
12557 if test "${ac_cv_lib_inet_main+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560 ac_check_lib_save_LIBS=$LIBS
12561 LIBS="-linet $LIBS"
12562 cat >conftest.$ac_ext <<_ACEOF
12563 /* confdefs.h. */
12564 _ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12568
12569
12570 int
12571 main ()
12572 {
12573 main ();
12574 ;
12575 return 0;
12576 }
12577 _ACEOF
12578 rm -f conftest.$ac_objext conftest$ac_exeext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12580 (eval $ac_link) 2>conftest.er1
12581 ac_status=$?
12582 grep -v '^ *+' conftest.er1 >conftest.err
12583 rm -f conftest.er1
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } &&
12587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest$ac_exeext'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12599 ac_cv_lib_inet_main=yes
12600 else
12601 echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12603
12604 ac_cv_lib_inet_main=no
12605 fi
12606 rm -f conftest.err conftest.$ac_objext \
12607 conftest$ac_exeext conftest.$ac_ext
12608 LIBS=$ac_check_lib_save_LIBS
12609 fi
12610 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
12611 echo "${ECHO_T}$ac_cv_lib_inet_main" >&6
12612 if test $ac_cv_lib_inet_main = yes; then
12613 cf_cv_netlibs="-linet $cf_cv_netlibs"
12614 fi
12615
12616 #
12617 if test "$ac_cv_func_lsocket" != no ; then
12618
12619 for ac_func in socket
12620 do
12621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12622 echo "$as_me:$LINENO: checking for $ac_func" >&5
12623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12624 if eval "test \"\${$as_ac_var+set}\" = set"; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 else
12627 cat >conftest.$ac_ext <<_ACEOF
12628 /* confdefs.h. */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12635 #define $ac_func innocuous_$ac_func
12636
12637 /* System header to define __stub macros and hopefully few prototypes,
12638 which can conflict with char $ac_func (); below.
12639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12640 <limits.h> exists even on freestanding compilers. */
12641
12642 #ifdef __STDC__
12643 # include <limits.h>
12644 #else
12645 # include <assert.h>
12646 #endif
12647
12648 #undef $ac_func
12649
12650 /* Override any gcc2 internal prototype to avoid an error. */
12651 #ifdef __cplusplus
12652 extern "C"
12653 {
12654 #endif
12655 /* We use char because int might match the return type of a gcc2
12656 builtin and then its argument prototype would still apply. */
12657 char $ac_func ();
12658 /* The GNU C library defines this for functions which it implements
12659 to always fail with ENOSYS. Some functions are actually named
12660 something starting with __ and the normal name is an alias. */
12661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12662 choke me
12663 #else
12664 char (*f) () = $ac_func;
12665 #endif
12666 #ifdef __cplusplus
12667 }
12668 #endif
12669
12670 int
12671 main ()
12672 {
12673 return f != $ac_func;
12674 ;
12675 return 0;
12676 }
12677 _ACEOF
12678 rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12680 (eval $ac_link) 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } &&
12687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689 (eval $ac_try) 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; } &&
12693 { ac_try='test -s conftest$ac_exeext'
12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695 (eval $ac_try) 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 eval "$as_ac_var=yes"
12700 else
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12703
12704 eval "$as_ac_var=no"
12705 fi
12706 rm -f conftest.err conftest.$ac_objext \
12707 conftest$ac_exeext conftest.$ac_ext
12708 fi
12709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12711 if test `eval echo '${'$as_ac_var'}'` = yes; then
12712 cat >>confdefs.h <<_ACEOF
12713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12714 _ACEOF
12715
12716 else
12717
12718
12719 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12720 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
12721 if test "${ac_cv_lib_socket_socket+set}" = set; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 else
12724 ac_check_lib_save_LIBS=$LIBS
12725 LIBS="-lsocket $cf_cv_netlibs $LIBS"
12726 cat >conftest.$ac_ext <<_ACEOF
12727 /* confdefs.h. */
12728 _ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12732
12733 /* Override any gcc2 internal prototype to avoid an error. */
12734 #ifdef __cplusplus
12735 extern "C"
12736 #endif
12737 /* We use char because int might match the return type of a gcc2
12738 builtin and then its argument prototype would still apply. */
12739 char socket ();
12740 int
12741 main ()
12742 {
12743 socket ();
12744 ;
12745 return 0;
12746 }
12747 _ACEOF
12748 rm -f conftest.$ac_objext conftest$ac_exeext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12750 (eval $ac_link) 2>conftest.er1
12751 ac_status=$?
12752 grep -v '^ *+' conftest.er1 >conftest.err
12753 rm -f conftest.er1
12754 cat conftest.err >&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } &&
12757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest$ac_exeext'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 ac_cv_lib_socket_socket=yes
12770 else
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12773
12774 ac_cv_lib_socket_socket=no
12775 fi
12776 rm -f conftest.err conftest.$ac_objext \
12777 conftest$ac_exeext conftest.$ac_ext
12778 LIBS=$ac_check_lib_save_LIBS
12779 fi
12780 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12781 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
12782 if test $ac_cv_lib_socket_socket = yes; then
12783
12784
12785 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
12786
12787
12788 cat >>confdefs.h <<_ACEOF
12789 #define HAVE_$cf_tr_func 1
12790 _ACEOF
12791
12792 ac_cv_func_socket=yes
12793 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
12794 else
12795
12796 ac_cv_func_socket=unknown
12797 unset ac_cv_func_socket 2>/dev/null
12798
12799
12800 echo "$as_me:$LINENO: checking for socket in -lbsd" >&5
12801 echo $ECHO_N "checking for socket in -lbsd... $ECHO_C" >&6
12802 if test "${ac_cv_lib_bsd_socket+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 else
12805 ac_check_lib_save_LIBS=$LIBS
12806 LIBS="-lbsd $cf_cv_netlibs $LIBS"
12807 cat >conftest.$ac_ext <<_ACEOF
12808 /* confdefs.h. */
12809 _ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h. */
12813
12814 /* Override any gcc2 internal prototype to avoid an error. */
12815 #ifdef __cplusplus
12816 extern "C"
12817 #endif
12818 /* We use char because int might match the return type of a gcc2
12819 builtin and then its argument prototype would still apply. */
12820 char socket ();
12821 int
12822 main ()
12823 {
12824 socket ();
12825 ;
12826 return 0;
12827 }
12828 _ACEOF
12829 rm -f conftest.$ac_objext conftest$ac_exeext
12830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12831 (eval $ac_link) 2>conftest.er1
12832 ac_status=$?
12833 grep -v '^ *+' conftest.er1 >conftest.err
12834 rm -f conftest.er1
12835 cat conftest.err >&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } &&
12838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; } &&
12844 { ac_try='test -s conftest$ac_exeext'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; }; then
12850 ac_cv_lib_bsd_socket=yes
12851 else
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12854
12855 ac_cv_lib_bsd_socket=no
12856 fi
12857 rm -f conftest.err conftest.$ac_objext \
12858 conftest$ac_exeext conftest.$ac_ext
12859 LIBS=$ac_check_lib_save_LIBS
12860 fi
12861 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_socket" >&5
12862 echo "${ECHO_T}$ac_cv_lib_bsd_socket" >&6
12863 if test $ac_cv_lib_bsd_socket = yes; then
12864
12865
12866 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
12867
12868
12869 cat >>confdefs.h <<_ACEOF
12870 #define HAVE_$cf_tr_func 1
12871 _ACEOF
12872
12873 ac_cv_func_socket=yes
12874 cf_cv_netlibs="-lbsd $cf_cv_netlibs"
12875 else
12876
12877 ac_cv_func_socket=unknown
12878 unset ac_cv_func_socket 2>/dev/null
12879
12880 fi
12881
12882
12883 fi
12884
12885
12886 fi
12887 done
12888
12889 fi
12890 #
12891
12892 for ac_func in gethostbyname
12893 do
12894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12895 echo "$as_me:$LINENO: checking for $ac_func" >&5
12896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12897 if eval "test \"\${$as_ac_var+set}\" = set"; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 else
12900 cat >conftest.$ac_ext <<_ACEOF
12901 /* confdefs.h. */
12902 _ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12908 #define $ac_func innocuous_$ac_func
12909
12910 /* System header to define __stub macros and hopefully few prototypes,
12911 which can conflict with char $ac_func (); below.
12912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12913 <limits.h> exists even on freestanding compilers. */
12914
12915 #ifdef __STDC__
12916 # include <limits.h>
12917 #else
12918 # include <assert.h>
12919 #endif
12920
12921 #undef $ac_func
12922
12923 /* Override any gcc2 internal prototype to avoid an error. */
12924 #ifdef __cplusplus
12925 extern "C"
12926 {
12927 #endif
12928 /* We use char because int might match the return type of a gcc2
12929 builtin and then its argument prototype would still apply. */
12930 char $ac_func ();
12931 /* The GNU C library defines this for functions which it implements
12932 to always fail with ENOSYS. Some functions are actually named
12933 something starting with __ and the normal name is an alias. */
12934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12935 choke me
12936 #else
12937 char (*f) () = $ac_func;
12938 #endif
12939 #ifdef __cplusplus
12940 }
12941 #endif
12942
12943 int
12944 main ()
12945 {
12946 return f != $ac_func;
12947 ;
12948 return 0;
12949 }
12950 _ACEOF
12951 rm -f conftest.$ac_objext conftest$ac_exeext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12953 (eval $ac_link) 2>conftest.er1
12954 ac_status=$?
12955 grep -v '^ *+' conftest.er1 >conftest.err
12956 rm -f conftest.er1
12957 cat conftest.err >&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; } &&
12966 { ac_try='test -s conftest$ac_exeext'
12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968 (eval $ac_try) 2>&5
12969 ac_status=$?
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
12972 eval "$as_ac_var=yes"
12973 else
12974 echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12976
12977 eval "$as_ac_var=no"
12978 fi
12979 rm -f conftest.err conftest.$ac_objext \
12980 conftest$ac_exeext conftest.$ac_ext
12981 fi
12982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12984 if test `eval echo '${'$as_ac_var'}'` = yes; then
12985 cat >>confdefs.h <<_ACEOF
12986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12987 _ACEOF
12988
12989 else
12990
12991
12992 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12993 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12994 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 else
12997 ac_check_lib_save_LIBS=$LIBS
12998 LIBS="-lnsl $cf_cv_netlibs $LIBS"
12999 cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h. */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005
13006 /* Override any gcc2 internal prototype to avoid an error. */
13007 #ifdef __cplusplus
13008 extern "C"
13009 #endif
13010 /* We use char because int might match the return type of a gcc2
13011 builtin and then its argument prototype would still apply. */
13012 char gethostbyname ();
13013 int
13014 main ()
13015 {
13016 gethostbyname ();
13017 ;
13018 return 0;
13019 }
13020 _ACEOF
13021 rm -f conftest.$ac_objext conftest$ac_exeext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13023 (eval $ac_link) 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
13030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; } &&
13036 { ac_try='test -s conftest$ac_exeext'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; }; then
13042 ac_cv_lib_nsl_gethostbyname=yes
13043 else
13044 echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13046
13047 ac_cv_lib_nsl_gethostbyname=no
13048 fi
13049 rm -f conftest.err conftest.$ac_objext \
13050 conftest$ac_exeext conftest.$ac_ext
13051 LIBS=$ac_check_lib_save_LIBS
13052 fi
13053 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
13054 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
13055 if test $ac_cv_lib_nsl_gethostbyname = yes; then
13056
13057
13058 cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
13059
13060
13061 cat >>confdefs.h <<_ACEOF
13062 #define HAVE_$cf_tr_func 1
13063 _ACEOF
13064
13065 ac_cv_func_gethostbyname=yes
13066 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
13067 else
13068
13069 ac_cv_func_gethostbyname=unknown
13070 unset ac_cv_func_gethostbyname 2>/dev/null
13071
13072 fi
13073
13074
13075 fi
13076 done
13077
13078 #
13079
13080 for ac_func in strcasecmp
13081 do
13082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13083 echo "$as_me:$LINENO: checking for $ac_func" >&5
13084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13085 if eval "test \"\${$as_ac_var+set}\" = set"; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13096 #define $ac_func innocuous_$ac_func
13097
13098 /* System header to define __stub macros and hopefully few prototypes,
13099 which can conflict with char $ac_func (); below.
13100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13101 <limits.h> exists even on freestanding compilers. */
13102
13103 #ifdef __STDC__
13104 # include <limits.h>
13105 #else
13106 # include <assert.h>
13107 #endif
13108
13109 #undef $ac_func
13110
13111 /* Override any gcc2 internal prototype to avoid an error. */
13112 #ifdef __cplusplus
13113 extern "C"
13114 {
13115 #endif
13116 /* We use char because int might match the return type of a gcc2
13117 builtin and then its argument prototype would still apply. */
13118 char $ac_func ();
13119 /* The GNU C library defines this for functions which it implements
13120 to always fail with ENOSYS. Some functions are actually named
13121 something starting with __ and the normal name is an alias. */
13122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13123 choke me
13124 #else
13125 char (*f) () = $ac_func;
13126 #endif
13127 #ifdef __cplusplus
13128 }
13129 #endif
13130
13131 int
13132 main ()
13133 {
13134 return f != $ac_func;
13135 ;
13136 return 0;
13137 }
13138 _ACEOF
13139 rm -f conftest.$ac_objext conftest$ac_exeext
13140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13141 (eval $ac_link) 2>conftest.er1
13142 ac_status=$?
13143 grep -v '^ *+' conftest.er1 >conftest.err
13144 rm -f conftest.er1
13145 cat conftest.err >&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } &&
13148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; } &&
13154 { ac_try='test -s conftest$ac_exeext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 eval "$as_ac_var=yes"
13161 else
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165 eval "$as_ac_var=no"
13166 fi
13167 rm -f conftest.err conftest.$ac_objext \
13168 conftest$ac_exeext conftest.$ac_ext
13169 fi
13170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13172 if test `eval echo '${'$as_ac_var'}'` = yes; then
13173 cat >>confdefs.h <<_ACEOF
13174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13175 _ACEOF
13176
13177 else
13178
13179
13180 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
13181 echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
13182 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185 ac_check_lib_save_LIBS=$LIBS
13186 LIBS="-lresolv $cf_cv_netlibs $LIBS"
13187 cat >conftest.$ac_ext <<_ACEOF
13188 /* confdefs.h. */
13189 _ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h. */
13193
13194 /* Override any gcc2 internal prototype to avoid an error. */
13195 #ifdef __cplusplus
13196 extern "C"
13197 #endif
13198 /* We use char because int might match the return type of a gcc2
13199 builtin and then its argument prototype would still apply. */
13200 char strcasecmp ();
13201 int
13202 main ()
13203 {
13204 strcasecmp ();
13205 ;
13206 return 0;
13207 }
13208 _ACEOF
13209 rm -f conftest.$ac_objext conftest$ac_exeext
13210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13211 (eval $ac_link) 2>conftest.er1
13212 ac_status=$?
13213 grep -v '^ *+' conftest.er1 >conftest.err
13214 rm -f conftest.er1
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } &&
13218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; } &&
13224 { ac_try='test -s conftest$ac_exeext'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 ac_cv_lib_resolv_strcasecmp=yes
13231 else
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13234
13235 ac_cv_lib_resolv_strcasecmp=no
13236 fi
13237 rm -f conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13239 LIBS=$ac_check_lib_save_LIBS
13240 fi
13241 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
13242 echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
13243 if test $ac_cv_lib_resolv_strcasecmp = yes; then
13244
13245
13246 cf_tr_func=`echo strcasecmp | tr '[a-z]' '[A-Z]'`
13247
13248
13249 cat >>confdefs.h <<_ACEOF
13250 #define HAVE_$cf_tr_func 1
13251 _ACEOF
13252
13253 ac_cv_func_strcasecmp=yes
13254 cf_cv_netlibs="-lresolv $cf_cv_netlibs"
13255 else
13256
13257 ac_cv_func_strcasecmp=unknown
13258 unset ac_cv_func_strcasecmp 2>/dev/null
13259
13260 fi
13261
13262
13263 fi
13264 done
13265
13266
13267 fi
13268
13269 LIBS="$LIBS $cf_cv_netlibs"
13270 test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
13271
13272 if test "${ac_cv_header_customs_h+set}" = set; then
13273 echo "$as_me:$LINENO: checking for customs.h" >&5
13274 echo $ECHO_N "checking for customs.h... $ECHO_C" >&6
13275 if test "${ac_cv_header_customs_h+set}" = set; then
13276 echo $ECHO_N "(cached) $ECHO_C" >&6
13277 fi
13278 echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5
13279 echo "${ECHO_T}$ac_cv_header_customs_h" >&6
13280 else
13281 # Is the header compilable?
13282 echo "$as_me:$LINENO: checking customs.h usability" >&5
13283 echo $ECHO_N "checking customs.h usability... $ECHO_C" >&6
13284 cat >conftest.$ac_ext <<_ACEOF
13285 /* confdefs.h. */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13290 $ac_includes_default
13291 #include <customs.h>
13292 _ACEOF
13293 rm -f conftest.$ac_objext
13294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13295 (eval $ac_compile) 2>conftest.er1
13296 ac_status=$?
13297 grep -v '^ *+' conftest.er1 >conftest.err
13298 rm -f conftest.er1
13299 cat conftest.err >&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } &&
13302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13305 ac_status=$?
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; } &&
13308 { ac_try='test -s conftest.$ac_objext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 ac_header_compiler=yes
13315 else
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13318
13319 ac_header_compiler=no
13320 fi
13321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13323 echo "${ECHO_T}$ac_header_compiler" >&6
13324
13325 # Is the header present?
13326 echo "$as_me:$LINENO: checking customs.h presence" >&5
13327 echo $ECHO_N "checking customs.h presence... $ECHO_C" >&6
13328 cat >conftest.$ac_ext <<_ACEOF
13329 /* confdefs.h. */
13330 _ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13334 #include <customs.h>
13335 _ACEOF
13336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13338 ac_status=$?
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } >/dev/null; then
13344 if test -s conftest.err; then
13345 ac_cpp_err=$ac_c_preproc_warn_flag
13346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13347 else
13348 ac_cpp_err=
13349 fi
13350 else
13351 ac_cpp_err=yes
13352 fi
13353 if test -z "$ac_cpp_err"; then
13354 ac_header_preproc=yes
13355 else
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13358
13359 ac_header_preproc=no
13360 fi
13361 rm -f conftest.err conftest.$ac_ext
13362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13363 echo "${ECHO_T}$ac_header_preproc" >&6
13364
13365 # So? What about this header?
13366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13367 yes:no: )
13368 { echo "$as_me:$LINENO: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&5
13369 echo "$as_me: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13370 { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the compiler's result" >&5
13371 echo "$as_me: WARNING: customs.h: proceeding with the compiler's result" >&2;}
13372 ac_header_preproc=yes
13373 ;;
13374 no:yes:* )
13375 { echo "$as_me:$LINENO: WARNING: customs.h: present but cannot be compiled" >&5
13376 echo "$as_me: WARNING: customs.h: present but cannot be compiled" >&2;}
13377 { echo "$as_me:$LINENO: WARNING: customs.h: check for missing prerequisite headers?" >&5
13378 echo "$as_me: WARNING: customs.h: check for missing prerequisite headers?" >&2;}
13379 { echo "$as_me:$LINENO: WARNING: customs.h: see the Autoconf documentation" >&5
13380 echo "$as_me: WARNING: customs.h: see the Autoconf documentation" >&2;}
13381 { echo "$as_me:$LINENO: WARNING: customs.h: section \"Present But Cannot Be Compiled\"" >&5
13382 echo "$as_me: WARNING: customs.h: section \"Present But Cannot Be Compiled\"" >&2;}
13383 { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the preprocessor's result" >&5
13384 echo "$as_me: WARNING: customs.h: proceeding with the preprocessor's result" >&2;}
13385 { echo "$as_me:$LINENO: WARNING: customs.h: in the future, the compiler will take precedence" >&5
13386 echo "$as_me: WARNING: customs.h: in the future, the compiler will take precedence" >&2;}
13387 (
13388 cat <<\_ASBOX
13389 ## ------------------------------- ##
13390 ## Report this to bug-make (at] gnu.org ##
13391 ## ------------------------------- ##
13392 _ASBOX
13393 ) |
13394 sed "s/^/$as_me: WARNING: /" >&2
13395 ;;
13396 esac
13397 echo "$as_me:$LINENO: checking for customs.h" >&5
13398 echo $ECHO_N "checking for customs.h... $ECHO_C" >&6
13399 if test "${ac_cv_header_customs_h+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 else
13402 ac_cv_header_customs_h=$ac_header_preproc
13403 fi
13404 echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5
13405 echo "${ECHO_T}$ac_cv_header_customs_h" >&6
13406
13407 fi
13408 if test $ac_cv_header_customs_h = yes; then
13409 use_customs=true
13410 REMOTE=cstms
13411 LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
13412 else
13413 with_customs=no
13414 CPPFLAGS="$make_cppflags" make_badcust=yes
13415 fi
13416
13417
13418 ;;
13419 esac
13420 fi;
13421 # Tell automake about this, so it can include the right .c files.
13422
13423
13424 if test "$use_customs" = true; then
13425 USE_CUSTOMS_TRUE=
13426 USE_CUSTOMS_FALSE='#'
13427 else
13428 USE_CUSTOMS_TRUE='#'
13429 USE_CUSTOMS_FALSE=
13430 fi
13431
13432
13433 # See if the user asked to handle case insensitive file systems.
13434
13435
13436
13437 # Check whether --enable-case-insensitive-file-system or --disable-case-insensitive-file-system was given.
13438 if test "${enable_case_insensitive_file_system+set}" = set; then
13439 enableval="$enable_case_insensitive_file_system"
13440 case_insensitive_fs="yes" cat >>confdefs.h <<\_ACEOF
13441 #define HAVE_CASE_INSENSITIVE_FS 1
13442 _ACEOF
13443
13444 else
13445 case_insensitive_fs="no"
13446 fi;
13447
13448 # See if we can handle the job server feature, and if the user wants it.
13449
13450 # Check whether --enable-job-server or --disable-job-server was given.
13451 if test "${enable_job_server+set}" = set; then
13452 enableval="$enable_job_server"
13453 make_cv_job_server="$enableval" user_job_server="$enableval"
13454 else
13455 make_cv_job_server="yes"
13456 fi;
13457
13458 has_wait_nohang=yes
13459 case "$ac_cv_func_waitpid/$ac_cv_func_wait3" in
13460 no/no) has_wait_nohang=no ;;
13461 esac
13462
13463 echo "$as_me:$LINENO: checking for SA_RESTART" >&5
13464 echo $ECHO_N "checking for SA_RESTART... $ECHO_C" >&6
13465 if test "${make_cv_sa_restart+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468
13469 cat >conftest.$ac_ext <<_ACEOF
13470 /* confdefs.h. */
13471 _ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13475 #include <signal.h>
13476 int
13477 main ()
13478 {
13479 return SA_RESTART;
13480 ;
13481 return 0;
13482 }
13483 _ACEOF
13484 rm -f conftest.$ac_objext
13485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13486 (eval $ac_compile) 2>conftest.er1
13487 ac_status=$?
13488 grep -v '^ *+' conftest.er1 >conftest.err
13489 rm -f conftest.er1
13490 cat conftest.err >&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } &&
13493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; } &&
13499 { ac_try='test -s conftest.$ac_objext'
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13502 ac_status=$?
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; }; then
13505 make_cv_sa_restart=yes
13506 else
13507 echo "$as_me: failed program was:" >&5
13508 sed 's/^/| /' conftest.$ac_ext >&5
13509
13510 make_cv_sa_restart=no
13511 fi
13512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13513 fi
13514 echo "$as_me:$LINENO: result: $make_cv_sa_restart" >&5
13515 echo "${ECHO_T}$make_cv_sa_restart" >&6
13516
13517 if test "$make_cv_sa_restart" != no; then
13518
13519 cat >>confdefs.h <<\_ACEOF
13520 #define HAVE_SA_RESTART 1
13521 _ACEOF
13522
13523 fi
13524
13525 # enable make_cv_sa_restart for OS/2 so that the jobserver will be enabled,
13526 # but do it after HAVE_SA_RESTART has been defined.
13527 case "$host_os" in
13528 os2*) make_cv_sa_restart=yes ;;
13529 esac
13530
13531 case "$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/$make_cv_job_server" in
13532 yes/yes/yes/yes/yes)
13533
13534 cat >>confdefs.h <<\_ACEOF
13535 #define MAKE_JOBSERVER 1
13536 _ACEOF
13537 ;;
13538 esac
13539
13540 # if we have both lstat() and readlink() then we can support symlink
13541 # timechecks.
13542 case "$ac_cv_func_lstat/$ac_cv_func_readlink" in
13543 yes/yes)
13544
13545 cat >>confdefs.h <<\_ACEOF
13546 #define MAKE_SYMLINKS 1
13547 _ACEOF
13548 ;;
13549 esac
13550
13551 # Find the SCCS commands, so we can include them in our default rules.
13552
13553 echo "$as_me:$LINENO: checking for location of SCCS get command" >&5
13554 echo $ECHO_N "checking for location of SCCS get command... $ECHO_C" >&6
13555 if test "${make_cv_path_sccs_get+set}" = set; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 else
13558
13559 if test -f /usr/sccs/get; then
13560 make_cv_path_sccs_get=/usr/sccs/get
13561 else
13562 make_cv_path_sccs_get=get
13563 fi
13564 fi
13565 echo "$as_me:$LINENO: result: $make_cv_path_sccs_get" >&5
13566 echo "${ECHO_T}$make_cv_path_sccs_get" >&6
13567
13568 cat >>confdefs.h <<_ACEOF
13569 #define SCCS_GET "$make_cv_path_sccs_get"
13570 _ACEOF
13571
13572
13573 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
13574 if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
13575 test -f s.conftest; then
13576 # We successfully created an SCCS file.
13577 echo "$as_me:$LINENO: checking if SCCS get command understands -G" >&5
13578 echo $ECHO_N "checking if SCCS get command understands -G... $ECHO_C" >&6
13579 if test "${make_cv_sys_get_minus_G+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13581 else
13582
13583 if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
13584 test -f conftoast; then
13585 make_cv_sys_get_minus_G=yes
13586 else
13587 make_cv_sys_get_minus_G=no
13588 fi
13589 fi
13590 echo "$as_me:$LINENO: result: $make_cv_sys_get_minus_G" >&5
13591 echo "${ECHO_T}$make_cv_sys_get_minus_G" >&6
13592 case "$make_cv_sys_get_minus_G" in
13593 yes)
13594 cat >>confdefs.h <<\_ACEOF
13595 #define SCCS_GET_MINUS_G 1
13596 _ACEOF
13597 ;;
13598 esac
13599 fi
13600 rm -f s.conftest conftoast
13601
13602 # Check the system to see if it provides GNU glob. If not, use our
13603 # local version.
13604
13605 echo "$as_me:$LINENO: checking if system libc has GNU glob" >&5
13606 echo $ECHO_N "checking if system libc has GNU glob... $ECHO_C" >&6
13607 if test "${make_cv_sys_gnu_glob+set}" = set; then
13608 echo $ECHO_N "(cached) $ECHO_C" >&6
13609 else
13610
13611 cat >conftest.$ac_ext <<_ACEOF
13612 /* confdefs.h. */
13613 _ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h. */
13617
13618 #include <features.h>
13619 #include <glob.h>
13620 #include <fnmatch.h>
13621
13622 #define GLOB_INTERFACE_VERSION 1
13623 #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
13624 # include <gnu-versions.h>
13625 # if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
13626 gnu glob
13627 # endif
13628 #endif
13629
13630 _ACEOF
13631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13632 $EGREP "gnu glob" >/dev/null 2>&1; then
13633 echo "$as_me:$LINENO: result: yes" >&5
13634 echo "${ECHO_T}yes" >&6
13635 make_cv_sys_gnu_glob=yes
13636 else
13637 echo "$as_me:$LINENO: result: no; using local copy" >&5
13638 echo "${ECHO_T}no; using local copy" >&6
13639 GLOBINC='-I$(srcdir)/glob'
13640 GLOBLIB=glob/libglob.a
13641 make_cv_sys_gnu_glob=no
13642 fi
13643 rm -f conftest*
13644
13645 fi
13646
13647 # Tell automake about this, so it can build the right .c files.
13648
13649
13650 if test "$make_cv_sys_gnu_glob" = no; then
13651 USE_LOCAL_GLOB_TRUE=
13652 USE_LOCAL_GLOB_FALSE='#'
13653 else
13654 USE_LOCAL_GLOB_TRUE='#'
13655 USE_LOCAL_GLOB_FALSE=
13656 fi
13657
13658
13659 # Let the makefile know what our build host is
13660
13661
13662 cat >>confdefs.h <<_ACEOF
13663 #define MAKE_HOST "$host"
13664 _ACEOF
13665
13666 MAKE_HOST="$host"
13667
13668
13669 w32_target_env=no
13670
13671
13672 if false; then
13673 WINDOWSENV_TRUE=
13674 WINDOWSENV_FALSE='#'
13675 else
13676 WINDOWSENV_TRUE='#'
13677 WINDOWSENV_FALSE=
13678 fi
13679
13680
13681 case "$host" in
13682 *-*-mingw32)
13683
13684
13685 if true; then
13686 WINDOWSENV_TRUE=
13687 WINDOWSENV_FALSE='#'
13688 else
13689 WINDOWSENV_TRUE='#'
13690 WINDOWSENV_FALSE=
13691 fi
13692
13693 w32_target_env=yes
13694
13695 cat >>confdefs.h <<\_ACEOF
13696 #define WINDOWS32 1
13697 _ACEOF
13698
13699
13700 cat >>confdefs.h <<\_ACEOF
13701 #define HAVE_DOS_PATHS 1
13702 _ACEOF
13703
13704 ;;
13705 esac
13706
13707 # Include the Maintainer's Makefile section, if it's here.
13708
13709 MAINT_MAKEFILE=/dev/null
13710 if test -r "$srcdir/maintMakefile"; then
13711 MAINT_MAKEFILE="$srcdir/maintMakefile"
13712 fi
13713
13714
13715 # Allow building with dmalloc
13716 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
13717 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
13718
13719 # Check whether --with-dmalloc or --without-dmalloc was given.
13720 if test "${with_dmalloc+set}" = set; then
13721 withval="$with_dmalloc"
13722 if test "$withval" = yes; then
13723 echo "$as_me:$LINENO: result: yes" >&5
13724 echo "${ECHO_T}yes" >&6
13725
13726 cat >>confdefs.h <<\_ACEOF
13727 #define WITH_DMALLOC 1
13728 _ACEOF
13729
13730 LIBS="$LIBS -ldmalloc"
13731 LDFLAGS="$LDFLAGS -g"
13732 else
13733 echo "$as_me:$LINENO: result: no" >&5
13734 echo "${ECHO_T}no" >&6
13735 fi
13736 else
13737 echo "$as_me:$LINENO: result: no" >&5
13738 echo "${ECHO_T}no" >&6
13739 fi;
13740
13741
13742 # Forcibly disable SET_MAKE. If it's set it breaks things like the test
13743 # scripts, etc.
13744 SET_MAKE=
13745
13746 # Sanity check and inform the user of what we found
13747
13748 case "$make_badcust" in
13749 yes) echo
13750 echo "WARNING: --with-customs specified but no customs.h could be found;"
13751 echo " disabling Customs support."
13752 echo ;;
13753 esac
13754
13755 case "$with_customs" in
13756 ""|n|no|y|ye|yes) ;;
13757 *) if test -f "$with_customs/lib/libcustoms.a"; then
13758 :
13759 else
13760 echo
13761 echo "WARNING: '$with_customs/lib' does not appear to contain the"
13762 echo " Customs library. You must build and install Customs"
13763 echo " before compiling GNU make."
13764 echo
13765 fi ;;
13766 esac
13767
13768 case "$has_wait_nohang" in
13769 no) echo
13770 echo "WARNING: Your system has neither waitpid() nor wait3()."
13771 echo " Without one of these, signal handling is unreliable."
13772 echo " You should be aware that running GNU make with -j"
13773 echo " could result in erratic behavior."
13774 echo ;;
13775 esac
13776
13777 case "$make_cv_job_server/$user_job_server" in
13778 no/yes) echo
13779 echo "WARNING: Make job server requires a POSIX-ish system that"
13780 echo " supports the pipe(), sigaction(), and either"
13781 echo " waitpid() or wait3() functions. Your system doesn't"
13782 echo " appear to provide one or more of those."
13783 echo " Disabling job server support."
13784 echo ;;
13785 esac
13786
13787
13788 # Specify what files are to be created.
13789 ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile w32/Makefile"
13790
13791
13792 # OK, do it!
13793
13794 cat >confcache <<\_ACEOF
13795 # This file is a shell script that caches the results of configure
13796 # tests run on this system so they can be shared between configure
13797 # scripts and configure runs, see configure's option --config-cache.
13798 # It is not useful on other systems. If it contains results you don't
13799 # want to keep, you may remove or edit it.
13800 #
13801 # config.status only pays attention to the cache file if you give it
13802 # the --recheck option to rerun configure.
13803 #
13804 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13805 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13806 # following values.
13807
13808 _ACEOF
13809
13810 # The following way of writing the cache mishandles newlines in values,
13811 # but we know of no workaround that is simple, portable, and efficient.
13812 # So, don't put newlines in cache variables' values.
13813 # Ultrix sh set writes to stderr and can't be redirected directly,
13814 # and sets the high bit in the cache file unless we assign to the vars.
13815 {
13816 (set) 2>&1 |
13817 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13818 *ac_space=\ *)
13819 # `set' does not quote correctly, so add quotes (double-quote
13820 # substitution turns \\\\ into \\, and sed turns \\ into \).
13821 sed -n \
13822 "s/'/'\\\\''/g;
13823 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13824 ;;
13825 *)
13826 # `set' quotes correctly as required by POSIX, so do not add quotes.
13827 sed -n \
13828 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13829 ;;
13830 esac;
13831 } |
13832 sed '
13833 t clear
13834 : clear
13835 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13836 t end
13837 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13838 : end' >>confcache
13839 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13840 if test -w $cache_file; then
13841 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13842 cat confcache >$cache_file
13843 else
13844 echo "not updating unwritable cache $cache_file"
13845 fi
13846 fi
13847 rm -f confcache
13848
13849 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13850 # Let make expand exec_prefix.
13851 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13852
13853 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13854 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13855 # trailing colons and then remove the whole line if VPATH becomes empty
13856 # (actually we leave an empty line to preserve line numbers).
13857 if test "x$srcdir" = x.; then
13858 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13859 s/:*\$(srcdir):*/:/;
13860 s/:*\${srcdir}:*/:/;
13861 s/:*@srcdir@:*/:/;
13862 s/^\([^=]*=[ ]*\):*/\1/;
13863 s/:*$//;
13864 s/^[^=]*=[ ]*$//;
13865 }'
13866 fi
13867
13868 DEFS=-DHAVE_CONFIG_H
13869
13870 ac_libobjs=
13871 ac_ltlibobjs=
13872 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13873 # 1. Remove the extension, and $U if already installed.
13874 ac_i=`echo "$ac_i" |
13875 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13876 # 2. Add them.
13877 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13878 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13879 done
13880 LIBOBJS=$ac_libobjs
13881
13882 LTLIBOBJS=$ac_ltlibobjs
13883
13884
13885 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13886 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13887 Usually this means the macro was only invoked conditionally." >&5
13888 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13889 Usually this means the macro was only invoked conditionally." >&2;}
13890 { (exit 1); exit 1; }; }
13891 fi
13892 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13893 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13894 Usually this means the macro was only invoked conditionally." >&5
13895 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13896 Usually this means the macro was only invoked conditionally." >&2;}
13897 { (exit 1); exit 1; }; }
13898 fi
13899 if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
13900 { { echo "$as_me:$LINENO: error: conditional \"USE_CUSTOMS\" was never defined.
13901 Usually this means the macro was only invoked conditionally." >&5
13902 echo "$as_me: error: conditional \"USE_CUSTOMS\" was never defined.
13903 Usually this means the macro was only invoked conditionally." >&2;}
13904 { (exit 1); exit 1; }; }
13905 fi
13906 if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then
13907 { { echo "$as_me:$LINENO: error: conditional \"USE_LOCAL_GLOB\" was never defined.
13908 Usually this means the macro was only invoked conditionally." >&5
13909 echo "$as_me: error: conditional \"USE_LOCAL_GLOB\" was never defined.
13910 Usually this means the macro was only invoked conditionally." >&2;}
13911 { (exit 1); exit 1; }; }
13912 fi
13913 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
13914 { { echo "$as_me:$LINENO: error: conditional \"WINDOWSENV\" was never defined.
13915 Usually this means the macro was only invoked conditionally." >&5
13916 echo "$as_me: error: conditional \"WINDOWSENV\" was never defined.
13917 Usually this means the macro was only invoked conditionally." >&2;}
13918 { (exit 1); exit 1; }; }
13919 fi
13920 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
13921 { { echo "$as_me:$LINENO: error: conditional \"WINDOWSENV\" was never defined.
13922 Usually this means the macro was only invoked conditionally." >&5
13923 echo "$as_me: error: conditional \"WINDOWSENV\" was never defined.
13924 Usually this means the macro was only invoked conditionally." >&2;}
13925 { (exit 1); exit 1; }; }
13926 fi
13927
13928 : ${CONFIG_STATUS=./config.status}
13929 ac_clean_files_save=$ac_clean_files
13930 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13931 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13932 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13933 cat >$CONFIG_STATUS <<_ACEOF
13934 #! $SHELL
13935 # Generated by $as_me.
13936 # Run this file to recreate the current configuration.
13937 # Compiler output produced by configure, useful for debugging
13938 # configure, is in config.log if it exists.
13939
13940 debug=false
13941 ac_cs_recheck=false
13942 ac_cs_silent=false
13943 SHELL=\${CONFIG_SHELL-$SHELL}
13944 _ACEOF
13945
13946 cat >>$CONFIG_STATUS <<\_ACEOF
13947 ## --------------------- ##
13948 ## M4sh Initialization. ##
13949 ## --------------------- ##
13950
13951 # Be Bourne compatible
13952 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13953 emulate sh
13954 NULLCMD=:
13955 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13956 # is contrary to our usage. Disable this feature.
13957 alias -g '${1+"$@"}'='"$@"'
13958 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13959 set -o posix
13960 fi
13961 DUALCASE=1; export DUALCASE # for MKS sh
13962
13963 # Support unset when possible.
13964 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13965 as_unset=unset
13966 else
13967 as_unset=false
13968 fi
13969
13970
13971 # Work around bugs in pre-3.0 UWIN ksh.
13972 $as_unset ENV MAIL MAILPATH
13973 PS1='$ '
13974 PS2='> '
13975 PS4='+ '
13976
13977 # NLS nuisances.
13978 for as_var in \
13979 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13980 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13981 LC_TELEPHONE LC_TIME
13982 do
13983 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13984 eval $as_var=C; export $as_var
13985 else
13986 $as_unset $as_var
13987 fi
13988 done
13989
13990 # Required to use basename.
13991 if expr a : '\(a\)' >/dev/null 2>&1; then
13992 as_expr=expr
13993 else
13994 as_expr=false
13995 fi
13996
13997 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13998 as_basename=basename
13999 else
14000 as_basename=false
14001 fi
14002
14003
14004 # Name of the executable.
14005 as_me=`$as_basename "$0" ||
14006 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14007 X"$0" : 'X\(//\)$' \| \
14008 X"$0" : 'X\(/\)$' \| \
14009 . : '\(.\)' 2>/dev/null ||
14010 echo X/"$0" |
14011 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14012 /^X\/\(\/\/\)$/{ s//\1/; q; }
14013 /^X\/\(\/\).*/{ s//\1/; q; }
14014 s/.*/./; q'`
14015
14016
14017 # PATH needs CR, and LINENO needs CR and PATH.
14018 # Avoid depending upon Character Ranges.
14019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14022 as_cr_digits='0123456789'
14023 as_cr_alnum=$as_cr_Letters$as_cr_digits
14024
14025 # The user is always right.
14026 if test "${PATH_SEPARATOR+set}" != set; then
14027 echo "#! /bin/sh" >conf$$.sh
14028 echo "exit 0" >>conf$$.sh
14029 chmod +x conf$$.sh
14030 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14031 PATH_SEPARATOR=';'
14032 else
14033 PATH_SEPARATOR=:
14034 fi
14035 rm -f conf$$.sh
14036 fi
14037
14038
14039 as_lineno_1=$LINENO
14040 as_lineno_2=$LINENO
14041 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14042 test "x$as_lineno_1" != "x$as_lineno_2" &&
14043 test "x$as_lineno_3" = "x$as_lineno_2" || {
14044 # Find who we are. Look in the path if we contain no path at all
14045 # relative or not.
14046 case $0 in
14047 *[\\/]* ) as_myself=$0 ;;
14048 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $PATH
14050 do
14051 IFS=$as_save_IFS
14052 test -z "$as_dir" && as_dir=.
14053 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14054 done
14055
14056 ;;
14057 esac
14058 # We did not find ourselves, most probably we were run as `sh COMMAND'
14059 # in which case we are not to be found in the path.
14060 if test "x$as_myself" = x; then
14061 as_myself=$0
14062 fi
14063 if test ! -f "$as_myself"; then
14064 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14065 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14066 { (exit 1); exit 1; }; }
14067 fi
14068 case $CONFIG_SHELL in
14069 '')
14070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14071 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14072 do
14073 IFS=$as_save_IFS
14074 test -z "$as_dir" && as_dir=.
14075 for as_base in sh bash ksh sh5; do
14076 case $as_dir in
14077 /*)
14078 if ("$as_dir/$as_base" -c '
14079 as_lineno_1=$LINENO
14080 as_lineno_2=$LINENO
14081 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14082 test "x$as_lineno_1" != "x$as_lineno_2" &&
14083 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14084 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14085 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14086 CONFIG_SHELL=$as_dir/$as_base
14087 export CONFIG_SHELL
14088 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14089 fi;;
14090 esac
14091 done
14092 done
14093 ;;
14094 esac
14095
14096 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14097 # uniformly replaced by the line number. The first 'sed' inserts a
14098 # line-number line before each line; the second 'sed' does the real
14099 # work. The second script uses 'N' to pair each line-number line
14100 # with the numbered line, and appends trailing '-' during
14101 # substitution so that $LINENO is not a special case at line end.
14102 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14103 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14104 sed '=' <$as_myself |
14105 sed '
14106 N
14107 s,$,-,
14108 : loop
14109 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14110 t loop
14111 s,-$,,
14112 s,^['$as_cr_digits']*\n,,
14113 ' >$as_me.lineno &&
14114 chmod +x $as_me.lineno ||
14115 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14116 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14117 { (exit 1); exit 1; }; }
14118
14119 # Don't try to exec as it changes $[0], causing all sort of problems
14120 # (the dirname of $[0] is not the place where we might find the
14121 # original and so on. Autoconf is especially sensible to this).
14122 . ./$as_me.lineno
14123 # Exit status is that of the last command.
14124 exit
14125 }
14126
14127
14128 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14129 *c*,-n*) ECHO_N= ECHO_C='
14130 ' ECHO_T=' ' ;;
14131 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14132 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14133 esac
14134
14135 if expr a : '\(a\)' >/dev/null 2>&1; then
14136 as_expr=expr
14137 else
14138 as_expr=false
14139 fi
14140
14141 rm -f conf$$ conf$$.exe conf$$.file
14142 echo >conf$$.file
14143 if ln -s conf$$.file conf$$ 2>/dev/null; then
14144 # We could just check for DJGPP; but this test a) works b) is more generic
14145 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14146 if test -f conf$$.exe; then
14147 # Don't use ln at all; we don't have any links
14148 as_ln_s='cp -p'
14149 else
14150 as_ln_s='ln -s'
14151 fi
14152 elif ln conf$$.file conf$$ 2>/dev/null; then
14153 as_ln_s=ln
14154 else
14155 as_ln_s='cp -p'
14156 fi
14157 rm -f conf$$ conf$$.exe conf$$.file
14158
14159 if mkdir -p . 2>/dev/null; then
14160 as_mkdir_p=:
14161 else
14162 test -d ./-p && rmdir ./-p
14163 as_mkdir_p=false
14164 fi
14165
14166 as_executable_p="test -f"
14167
14168 # Sed expression to map a string onto a valid CPP name.
14169 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14170
14171 # Sed expression to map a string onto a valid variable name.
14172 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14173
14174
14175 # IFS
14176 # We need space, tab and new line, in precisely that order.
14177 as_nl='
14178 '
14179 IFS=" $as_nl"
14180
14181 # CDPATH.
14182 $as_unset CDPATH
14183
14184 exec 6>&1
14185
14186 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14187 # report actual input values of CONFIG_FILES etc. instead of their
14188 # values after options handling. Logging --version etc. is OK.
14189 exec 5>>config.log
14190 {
14191 echo
14192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14193 ## Running $as_me. ##
14194 _ASBOX
14195 } >&5
14196 cat >&5 <<_CSEOF
14197
14198 This file was extended by GNU make $as_me 3.81, which was
14199 generated by GNU Autoconf 2.59. Invocation command line was
14200
14201 CONFIG_FILES = $CONFIG_FILES
14202 CONFIG_HEADERS = $CONFIG_HEADERS
14203 CONFIG_LINKS = $CONFIG_LINKS
14204 CONFIG_COMMANDS = $CONFIG_COMMANDS
14205 $ $0 $@
14206
14207 _CSEOF
14208 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14209 echo >&5
14210 _ACEOF
14211
14212 # Files that config.status was made for.
14213 if test -n "$ac_config_files"; then
14214 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14215 fi
14216
14217 if test -n "$ac_config_headers"; then
14218 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14219 fi
14220
14221 if test -n "$ac_config_links"; then
14222 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14223 fi
14224
14225 if test -n "$ac_config_commands"; then
14226 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14227 fi
14228
14229 cat >>$CONFIG_STATUS <<\_ACEOF
14230
14231 ac_cs_usage="\
14232 \`$as_me' instantiates files from templates according to the
14233 current configuration.
14234
14235 Usage: $0 [OPTIONS] [FILE]...
14236
14237 -h, --help print this help, then exit
14238 -V, --version print version number, then exit
14239 -q, --quiet do not print progress messages
14240 -d, --debug don't remove temporary files
14241 --recheck update $as_me by reconfiguring in the same conditions
14242 --file=FILE[:TEMPLATE]
14243 instantiate the configuration file FILE
14244 --header=FILE[:TEMPLATE]
14245 instantiate the configuration header FILE
14246
14247 Configuration files:
14248 $config_files
14249
14250 Configuration headers:
14251 $config_headers
14252
14253 Configuration commands:
14254 $config_commands
14255
14256 Report bugs to <bug-autoconf@gnu.org>."
14257 _ACEOF
14258
14259 cat >>$CONFIG_STATUS <<_ACEOF
14260 ac_cs_version="\\
14261 GNU make config.status 3.81
14262 configured by $0, generated by GNU Autoconf 2.59,
14263 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14264
14265 Copyright (C) 2003 Free Software Foundation, Inc.
14266 This config.status script is free software; the Free Software Foundation
14267 gives unlimited permission to copy, distribute and modify it."
14268 srcdir=$srcdir
14269 INSTALL="$INSTALL"
14270 _ACEOF
14271
14272 cat >>$CONFIG_STATUS <<\_ACEOF
14273 # If no file are specified by the user, then we need to provide default
14274 # value. By we need to know if files were specified by the user.
14275 ac_need_defaults=:
14276 while test $# != 0
14277 do
14278 case $1 in
14279 --*=*)
14280 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14281 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14282 ac_shift=:
14283 ;;
14284 -*)
14285 ac_option=$1
14286 ac_optarg=$2
14287 ac_shift=shift
14288 ;;
14289 *) # This is not an option, so the user has probably given explicit
14290 # arguments.
14291 ac_option=$1
14292 ac_need_defaults=false;;
14293 esac
14294
14295 case $ac_option in
14296 # Handling of the options.
14297 _ACEOF
14298 cat >>$CONFIG_STATUS <<\_ACEOF
14299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14300 ac_cs_recheck=: ;;
14301 --version | --vers* | -V )
14302 echo "$ac_cs_version"; exit 0 ;;
14303 --he | --h)
14304 # Conflict between --help and --header
14305 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14306 Try \`$0 --help' for more information." >&5
14307 echo "$as_me: error: ambiguous option: $1
14308 Try \`$0 --help' for more information." >&2;}
14309 { (exit 1); exit 1; }; };;
14310 --help | --hel | -h )
14311 echo "$ac_cs_usage"; exit 0 ;;
14312 --debug | --d* | -d )
14313 debug=: ;;
14314 --file | --fil | --fi | --f )
14315 $ac_shift
14316 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14317 ac_need_defaults=false;;
14318 --header | --heade | --head | --hea )
14319 $ac_shift
14320 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14321 ac_need_defaults=false;;
14322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14323 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14324 ac_cs_silent=: ;;
14325
14326 # This is an error.
14327 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14328 Try \`$0 --help' for more information." >&5
14329 echo "$as_me: error: unrecognized option: $1
14330 Try \`$0 --help' for more information." >&2;}
14331 { (exit 1); exit 1; }; } ;;
14332
14333 *) ac_config_targets="$ac_config_targets $1" ;;
14334
14335 esac
14336 shift
14337 done
14338
14339 ac_configure_extra_args=
14340
14341 if $ac_cs_silent; then
14342 exec 6>/dev/null
14343 ac_configure_extra_args="$ac_configure_extra_args --silent"
14344 fi
14345
14346 _ACEOF
14347 cat >>$CONFIG_STATUS <<_ACEOF
14348 if \$ac_cs_recheck; then
14349 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14350 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14351 fi
14352
14353 _ACEOF
14354
14355 cat >>$CONFIG_STATUS <<_ACEOF
14356 #
14357 # INIT-COMMANDS section.
14358 #
14359
14360 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14361 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14362 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14363 # from automake.
14364 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14365 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14366 LINGUAS="${LINGUAS-%UNSET%}"
14367
14368
14369 _ACEOF
14370
14371
14372
14373 cat >>$CONFIG_STATUS <<\_ACEOF
14374 for ac_config_target in $ac_config_targets
14375 do
14376 case "$ac_config_target" in
14377 # Handling of arguments.
14378 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14379 "glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
14380 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14381 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
14382 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14383 "w32/Makefile" ) CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
14384 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14385 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14386 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14387 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14388 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14389 { (exit 1); exit 1; }; };;
14390 esac
14391 done
14392
14393 # If the user did not use the arguments to specify the items to instantiate,
14394 # then the envvar interface is used. Set only those that are not.
14395 # We use the long form for the default assignment because of an extremely
14396 # bizarre bug on SunOS 4.1.3.
14397 if $ac_need_defaults; then
14398 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14399 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14400 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14401 fi
14402
14403 # Have a temporary directory for convenience. Make it in the build tree
14404 # simply because there is no reason to put it here, and in addition,
14405 # creating and moving files from /tmp can sometimes cause problems.
14406 # Create a temporary directory, and hook for its removal unless debugging.
14407 $debug ||
14408 {
14409 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14410 trap '{ (exit 1); exit 1; }' 1 2 13 15
14411 }
14412
14413 # Create a (secure) tmp directory for tmp files.
14414
14415 {
14416 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14417 test -n "$tmp" && test -d "$tmp"
14418 } ||
14419 {
14420 tmp=./confstat$$-$RANDOM
14421 (umask 077 && mkdir $tmp)
14422 } ||
14423 {
14424 echo "$me: cannot create a temporary directory in ." >&2
14425 { (exit 1); exit 1; }
14426 }
14427
14428 _ACEOF
14429
14430 cat >>$CONFIG_STATUS <<_ACEOF
14431
14432 #
14433 # CONFIG_FILES section.
14434 #
14435
14436 # No need to generate the scripts if there are no CONFIG_FILES.
14437 # This happens for instance when ./config.status config.h
14438 if test -n "\$CONFIG_FILES"; then
14439 # Protect against being on the right side of a sed subst in config.status.
14440 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14441 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14442 s,@SHELL@,$SHELL,;t t
14443 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14444 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14445 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14446 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14447 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14448 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14449 s,@exec_prefix@,$exec_prefix,;t t
14450 s,@prefix@,$prefix,;t t
14451 s,@program_transform_name@,$program_transform_name,;t t
14452 s,@bindir@,$bindir,;t t
14453 s,@sbindir@,$sbindir,;t t
14454 s,@libexecdir@,$libexecdir,;t t
14455 s,@datadir@,$datadir,;t t
14456 s,@sysconfdir@,$sysconfdir,;t t
14457 s,@sharedstatedir@,$sharedstatedir,;t t
14458 s,@localstatedir@,$localstatedir,;t t
14459 s,@libdir@,$libdir,;t t
14460 s,@includedir@,$includedir,;t t
14461 s,@oldincludedir@,$oldincludedir,;t t
14462 s,@infodir@,$infodir,;t t
14463 s,@mandir@,$mandir,;t t
14464 s,@build_alias@,$build_alias,;t t
14465 s,@host_alias@,$host_alias,;t t
14466 s,@target_alias@,$target_alias,;t t
14467 s,@DEFS@,$DEFS,;t t
14468 s,@ECHO_C@,$ECHO_C,;t t
14469 s,@ECHO_N@,$ECHO_N,;t t
14470 s,@ECHO_T@,$ECHO_T,;t t
14471 s,@LIBS@,$LIBS,;t t
14472 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14473 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14474 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14475 s,@CYGPATH_W@,$CYGPATH_W,;t t
14476 s,@PACKAGE@,$PACKAGE,;t t
14477 s,@VERSION@,$VERSION,;t t
14478 s,@ACLOCAL@,$ACLOCAL,;t t
14479 s,@AUTOCONF@,$AUTOCONF,;t t
14480 s,@AUTOMAKE@,$AUTOMAKE,;t t
14481 s,@AUTOHEADER@,$AUTOHEADER,;t t
14482 s,@MAKEINFO@,$MAKEINFO,;t t
14483 s,@install_sh@,$install_sh,;t t
14484 s,@STRIP@,$STRIP,;t t
14485 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14486 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14487 s,@mkdir_p@,$mkdir_p,;t t
14488 s,@AWK@,$AWK,;t t
14489 s,@SET_MAKE@,$SET_MAKE,;t t
14490 s,@am__leading_dot@,$am__leading_dot,;t t
14491 s,@AMTAR@,$AMTAR,;t t
14492 s,@am__tar@,$am__tar,;t t
14493 s,@am__untar@,$am__untar,;t t
14494 s,@CC@,$CC,;t t
14495 s,@CFLAGS@,$CFLAGS,;t t
14496 s,@LDFLAGS@,$LDFLAGS,;t t
14497 s,@CPPFLAGS@,$CPPFLAGS,;t t
14498 s,@ac_ct_CC@,$ac_ct_CC,;t t
14499 s,@EXEEXT@,$EXEEXT,;t t
14500 s,@OBJEXT@,$OBJEXT,;t t
14501 s,@DEPDIR@,$DEPDIR,;t t
14502 s,@am__include@,$am__include,;t t
14503 s,@am__quote@,$am__quote,;t t
14504 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14505 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14506 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14507 s,@CCDEPMODE@,$CCDEPMODE,;t t
14508 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14509 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14510 s,@RANLIB@,$RANLIB,;t t
14511 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14512 s,@CPP@,$CPP,;t t
14513 s,@AR@,$AR,;t t
14514 s,@PERL@,$PERL,;t t
14515 s,@build@,$build,;t t
14516 s,@build_cpu@,$build_cpu,;t t
14517 s,@build_vendor@,$build_vendor,;t t
14518 s,@build_os@,$build_os,;t t
14519 s,@host@,$host,;t t
14520 s,@host_cpu@,$host_cpu,;t t
14521 s,@host_vendor@,$host_vendor,;t t
14522 s,@host_os@,$host_os,;t t
14523 s,@EGREP@,$EGREP,;t t
14524 s,@U@,$U,;t t
14525 s,@ANSI2KNR@,$ANSI2KNR,;t t
14526 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14527 s,@USE_NLS@,$USE_NLS,;t t
14528 s,@MSGFMT@,$MSGFMT,;t t
14529 s,@GMSGFMT@,$GMSGFMT,;t t
14530 s,@XGETTEXT@,$XGETTEXT,;t t
14531 s,@MSGMERGE@,$MSGMERGE,;t t
14532 s,@LIBICONV@,$LIBICONV,;t t
14533 s,@LTLIBICONV@,$LTLIBICONV,;t t
14534 s,@INTLLIBS@,$INTLLIBS,;t t
14535 s,@LIBINTL@,$LIBINTL,;t t
14536 s,@LTLIBINTL@,$LTLIBINTL,;t t
14537 s,@POSUB@,$POSUB,;t t
14538 s,@ALLOCA@,$ALLOCA,;t t
14539 s,@LIBOBJS@,$LIBOBJS,;t t
14540 s,@NEED_SETGID@,$NEED_SETGID,;t t
14541 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
14542 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
14543 s,@REMOTE@,$REMOTE,;t t
14544 s,@USE_CUSTOMS_TRUE@,$USE_CUSTOMS_TRUE,;t t
14545 s,@USE_CUSTOMS_FALSE@,$USE_CUSTOMS_FALSE,;t t
14546 s,@GLOBINC@,$GLOBINC,;t t
14547 s,@GLOBLIB@,$GLOBLIB,;t t
14548 s,@USE_LOCAL_GLOB_TRUE@,$USE_LOCAL_GLOB_TRUE,;t t
14549 s,@USE_LOCAL_GLOB_FALSE@,$USE_LOCAL_GLOB_FALSE,;t t
14550 s,@MAKE_HOST@,$MAKE_HOST,;t t
14551 s,@WINDOWSENV_TRUE@,$WINDOWSENV_TRUE,;t t
14552 s,@WINDOWSENV_FALSE@,$WINDOWSENV_FALSE,;t t
14553 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14554 /@MAINT_MAKEFILE@/r $MAINT_MAKEFILE
14555 s,@MAINT_MAKEFILE@,,;t t
14556 CEOF
14557
14558 _ACEOF
14559
14560 cat >>$CONFIG_STATUS <<\_ACEOF
14561 # Split the substitutions into bite-sized pieces for seds with
14562 # small command number limits, like on Digital OSF/1 and HP-UX.
14563 ac_max_sed_lines=48
14564 ac_sed_frag=1 # Number of current file.
14565 ac_beg=1 # First line for current file.
14566 ac_end=$ac_max_sed_lines # Line after last line for current file.
14567 ac_more_lines=:
14568 ac_sed_cmds=
14569 while $ac_more_lines; do
14570 if test $ac_beg -gt 1; then
14571 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14572 else
14573 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14574 fi
14575 if test ! -s $tmp/subs.frag; then
14576 ac_more_lines=false
14577 else
14578 # The purpose of the label and of the branching condition is to
14579 # speed up the sed processing (if there are no `@' at all, there
14580 # is no need to browse any of the substitutions).
14581 # These are the two extra sed commands mentioned above.
14582 (echo ':t
14583 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14584 if test -z "$ac_sed_cmds"; then
14585 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14586 else
14587 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14588 fi
14589 ac_sed_frag=`expr $ac_sed_frag + 1`
14590 ac_beg=$ac_end
14591 ac_end=`expr $ac_end + $ac_max_sed_lines`
14592 fi
14593 done
14594 if test -z "$ac_sed_cmds"; then
14595 ac_sed_cmds=cat
14596 fi
14597 fi # test -n "$CONFIG_FILES"
14598
14599 _ACEOF
14600 cat >>$CONFIG_STATUS <<\_ACEOF
14601 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14602 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14603 case $ac_file in
14604 - | *:- | *:-:* ) # input from stdin
14605 cat >$tmp/stdin
14606 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14607 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14608 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14609 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14610 * ) ac_file_in=$ac_file.in ;;
14611 esac
14612
14613 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14614 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14616 X"$ac_file" : 'X\(//\)[^/]' \| \
14617 X"$ac_file" : 'X\(//\)$' \| \
14618 X"$ac_file" : 'X\(/\)' \| \
14619 . : '\(.\)' 2>/dev/null ||
14620 echo X"$ac_file" |
14621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14622 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14623 /^X\(\/\/\)$/{ s//\1/; q; }
14624 /^X\(\/\).*/{ s//\1/; q; }
14625 s/.*/./; q'`
14626 { if $as_mkdir_p; then
14627 mkdir -p "$ac_dir"
14628 else
14629 as_dir="$ac_dir"
14630 as_dirs=
14631 while test ! -d "$as_dir"; do
14632 as_dirs="$as_dir $as_dirs"
14633 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14635 X"$as_dir" : 'X\(//\)[^/]' \| \
14636 X"$as_dir" : 'X\(//\)$' \| \
14637 X"$as_dir" : 'X\(/\)' \| \
14638 . : '\(.\)' 2>/dev/null ||
14639 echo X"$as_dir" |
14640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14641 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14642 /^X\(\/\/\)$/{ s//\1/; q; }
14643 /^X\(\/\).*/{ s//\1/; q; }
14644 s/.*/./; q'`
14645 done
14646 test ! -n "$as_dirs" || mkdir $as_dirs
14647 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14648 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14649 { (exit 1); exit 1; }; }; }
14650
14651 ac_builddir=.
14652
14653 if test "$ac_dir" != .; then
14654 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14655 # A "../" for each directory in $ac_dir_suffix.
14656 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14657 else
14658 ac_dir_suffix= ac_top_builddir=
14659 fi
14660
14661 case $srcdir in
14662 .) # No --srcdir option. We are building in place.
14663 ac_srcdir=.
14664 if test -z "$ac_top_builddir"; then
14665 ac_top_srcdir=.
14666 else
14667 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14668 fi ;;
14669 [\\/]* | ?:[\\/]* ) # Absolute path.
14670 ac_srcdir=$srcdir$ac_dir_suffix;
14671 ac_top_srcdir=$srcdir ;;
14672 *) # Relative path.
14673 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14674 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14675 esac
14676
14677 # Do not use `cd foo && pwd` to compute absolute paths, because
14678 # the directories may not exist.
14679 case `pwd` in
14680 .) ac_abs_builddir="$ac_dir";;
14681 *)
14682 case "$ac_dir" in
14683 .) ac_abs_builddir=`pwd`;;
14684 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14685 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14686 esac;;
14687 esac
14688 case $ac_abs_builddir in
14689 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14690 *)
14691 case ${ac_top_builddir}. in
14692 .) ac_abs_top_builddir=$ac_abs_builddir;;
14693 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14694 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14695 esac;;
14696 esac
14697 case $ac_abs_builddir in
14698 .) ac_abs_srcdir=$ac_srcdir;;
14699 *)
14700 case $ac_srcdir in
14701 .) ac_abs_srcdir=$ac_abs_builddir;;
14702 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14703 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14704 esac;;
14705 esac
14706 case $ac_abs_builddir in
14707 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14708 *)
14709 case $ac_top_srcdir in
14710 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14711 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14712 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14713 esac;;
14714 esac
14715
14716
14717 case $INSTALL in
14718 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14719 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14720 esac
14721
14722 # Let's still pretend it is `configure' which instantiates (i.e., don't
14723 # use $as_me), people would be surprised to read:
14724 # /* config.h. Generated by config.status. */
14725 if test x"$ac_file" = x-; then
14726 configure_input=
14727 else
14728 configure_input="$ac_file. "
14729 fi
14730 configure_input=$configure_input"Generated from `echo $ac_file_in |
14731 sed 's,.*/,,'` by configure."
14732
14733 # First look for the input files in the build tree, otherwise in the
14734 # src tree.
14735 ac_file_inputs=`IFS=:
14736 for f in $ac_file_in; do
14737 case $f in
14738 -) echo $tmp/stdin ;;
14739 [\\/$]*)
14740 # Absolute (can't be DOS-style, as IFS=:)
14741 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14742 echo "$as_me: error: cannot find input file: $f" >&2;}
14743 { (exit 1); exit 1; }; }
14744 echo "$f";;
14745 *) # Relative
14746 if test -f "$f"; then
14747 # Build tree
14748 echo "$f"
14749 elif test -f "$srcdir/$f"; then
14750 # Source tree
14751 echo "$srcdir/$f"
14752 else
14753 # /dev/null tree
14754 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14755 echo "$as_me: error: cannot find input file: $f" >&2;}
14756 { (exit 1); exit 1; }; }
14757 fi;;
14758 esac
14759 done` || { (exit 1); exit 1; }
14760
14761 if test x"$ac_file" != x-; then
14762 { echo "$as_me:$LINENO: creating $ac_file" >&5
14763 echo "$as_me: creating $ac_file" >&6;}
14764 rm -f "$ac_file"
14765 fi
14766 _ACEOF
14767 cat >>$CONFIG_STATUS <<_ACEOF
14768 sed "$ac_vpsub
14769 $extrasub
14770 _ACEOF
14771 cat >>$CONFIG_STATUS <<\_ACEOF
14772 :t
14773 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14774 s,@configure_input@,$configure_input,;t t
14775 s,@srcdir@,$ac_srcdir,;t t
14776 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14777 s,@top_srcdir@,$ac_top_srcdir,;t t
14778 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14779 s,@builddir@,$ac_builddir,;t t
14780 s,@abs_builddir@,$ac_abs_builddir,;t t
14781 s,@top_builddir@,$ac_top_builddir,;t t
14782 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14783 s,@INSTALL@,$ac_INSTALL,;t t
14784 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14785 rm -f $tmp/stdin
14786 if test x"$ac_file" != x-; then
14787 mv $tmp/out $ac_file
14788 else
14789 cat $tmp/out
14790 rm -f $tmp/out
14791 fi
14792
14793 done
14794 _ACEOF
14795 cat >>$CONFIG_STATUS <<\_ACEOF
14796
14797 #
14798 # CONFIG_HEADER section.
14799 #
14800
14801 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14802 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14803 #
14804 # ac_d sets the value in "#define NAME VALUE" lines.
14805 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14806 ac_dB='[ ].*$,\1#\2'
14807 ac_dC=' '
14808 ac_dD=',;t'
14809 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14810 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14811 ac_uB='$,\1#\2define\3'
14812 ac_uC=' '
14813 ac_uD=',;t'
14814
14815 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14816 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14817 case $ac_file in
14818 - | *:- | *:-:* ) # input from stdin
14819 cat >$tmp/stdin
14820 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14821 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14822 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14823 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14824 * ) ac_file_in=$ac_file.in ;;
14825 esac
14826
14827 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14828 echo "$as_me: creating $ac_file" >&6;}
14829
14830 # First look for the input files in the build tree, otherwise in the
14831 # src tree.
14832 ac_file_inputs=`IFS=:
14833 for f in $ac_file_in; do
14834 case $f in
14835 -) echo $tmp/stdin ;;
14836 [\\/$]*)
14837 # Absolute (can't be DOS-style, as IFS=:)
14838 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14839 echo "$as_me: error: cannot find input file: $f" >&2;}
14840 { (exit 1); exit 1; }; }
14841 # Do quote $f, to prevent DOS paths from being IFS'd.
14842 echo "$f";;
14843 *) # Relative
14844 if test -f "$f"; then
14845 # Build tree
14846 echo "$f"
14847 elif test -f "$srcdir/$f"; then
14848 # Source tree
14849 echo "$srcdir/$f"
14850 else
14851 # /dev/null tree
14852 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14853 echo "$as_me: error: cannot find input file: $f" >&2;}
14854 { (exit 1); exit 1; }; }
14855 fi;;
14856 esac
14857 done` || { (exit 1); exit 1; }
14858 # Remove the trailing spaces.
14859 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14860
14861 _ACEOF
14862
14863 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14864 # `conftest.undefs', that substitutes the proper values into
14865 # config.h.in to produce config.h. The first handles `#define'
14866 # templates, and the second `#undef' templates.
14867 # And first: Protect against being on the right side of a sed subst in
14868 # config.status. Protect against being in an unquoted here document
14869 # in config.status.
14870 rm -f conftest.defines conftest.undefs
14871 # Using a here document instead of a string reduces the quoting nightmare.
14872 # Putting comments in sed scripts is not portable.
14873 #
14874 # `end' is used to avoid that the second main sed command (meant for
14875 # 0-ary CPP macros) applies to n-ary macro definitions.
14876 # See the Autoconf documentation for `clear'.
14877 cat >confdef2sed.sed <<\_ACEOF
14878 s/[\\&,]/\\&/g
14879 s,[\\$`],\\&,g
14880 t clear
14881 : clear
14882 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14883 t end
14884 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14885 : end
14886 _ACEOF
14887 # If some macros were called several times there might be several times
14888 # the same #defines, which is useless. Nevertheless, we may not want to
14889 # sort them, since we want the *last* AC-DEFINE to be honored.
14890 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14891 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14892 rm -f confdef2sed.sed
14893
14894 # This sed command replaces #undef with comments. This is necessary, for
14895 # example, in the case of _POSIX_SOURCE, which is predefined and required
14896 # on some systems where configure will not decide to define it.
14897 cat >>conftest.undefs <<\_ACEOF
14898 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14899 _ACEOF
14900
14901 # Break up conftest.defines because some shells have a limit on the size
14902 # of here documents, and old seds have small limits too (100 cmds).
14903 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14904 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14905 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14906 echo ' :' >>$CONFIG_STATUS
14907 rm -f conftest.tail
14908 while grep . conftest.defines >/dev/null
14909 do
14910 # Write a limited-size here document to $tmp/defines.sed.
14911 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14912 # Speed up: don't consider the non `#define' lines.
14913 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14914 # Work around the forget-to-reset-the-flag bug.
14915 echo 't clr' >>$CONFIG_STATUS
14916 echo ': clr' >>$CONFIG_STATUS
14917 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14918 echo 'CEOF
14919 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14920 rm -f $tmp/in
14921 mv $tmp/out $tmp/in
14922 ' >>$CONFIG_STATUS
14923 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14924 rm -f conftest.defines
14925 mv conftest.tail conftest.defines
14926 done
14927 rm -f conftest.defines
14928 echo ' fi # grep' >>$CONFIG_STATUS
14929 echo >>$CONFIG_STATUS
14930
14931 # Break up conftest.undefs because some shells have a limit on the size
14932 # of here documents, and old seds have small limits too (100 cmds).
14933 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14934 rm -f conftest.tail
14935 while grep . conftest.undefs >/dev/null
14936 do
14937 # Write a limited-size here document to $tmp/undefs.sed.
14938 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14939 # Speed up: don't consider the non `#undef'
14940 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14941 # Work around the forget-to-reset-the-flag bug.
14942 echo 't clr' >>$CONFIG_STATUS
14943 echo ': clr' >>$CONFIG_STATUS
14944 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14945 echo 'CEOF
14946 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14947 rm -f $tmp/in
14948 mv $tmp/out $tmp/in
14949 ' >>$CONFIG_STATUS
14950 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14951 rm -f conftest.undefs
14952 mv conftest.tail conftest.undefs
14953 done
14954 rm -f conftest.undefs
14955
14956 cat >>$CONFIG_STATUS <<\_ACEOF
14957 # Let's still pretend it is `configure' which instantiates (i.e., don't
14958 # use $as_me), people would be surprised to read:
14959 # /* config.h. Generated by config.status. */
14960 if test x"$ac_file" = x-; then
14961 echo "/* Generated by configure. */" >$tmp/config.h
14962 else
14963 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14964 fi
14965 cat $tmp/in >>$tmp/config.h
14966 rm -f $tmp/in
14967 if test x"$ac_file" != x-; then
14968 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14969 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14970 echo "$as_me: $ac_file is unchanged" >&6;}
14971 else
14972 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14973 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14974 X"$ac_file" : 'X\(//\)[^/]' \| \
14975 X"$ac_file" : 'X\(//\)$' \| \
14976 X"$ac_file" : 'X\(/\)' \| \
14977 . : '\(.\)' 2>/dev/null ||
14978 echo X"$ac_file" |
14979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14981 /^X\(\/\/\)$/{ s//\1/; q; }
14982 /^X\(\/\).*/{ s//\1/; q; }
14983 s/.*/./; q'`
14984 { if $as_mkdir_p; then
14985 mkdir -p "$ac_dir"
14986 else
14987 as_dir="$ac_dir"
14988 as_dirs=
14989 while test ! -d "$as_dir"; do
14990 as_dirs="$as_dir $as_dirs"
14991 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14993 X"$as_dir" : 'X\(//\)[^/]' \| \
14994 X"$as_dir" : 'X\(//\)$' \| \
14995 X"$as_dir" : 'X\(/\)' \| \
14996 . : '\(.\)' 2>/dev/null ||
14997 echo X"$as_dir" |
14998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15000 /^X\(\/\/\)$/{ s//\1/; q; }
15001 /^X\(\/\).*/{ s//\1/; q; }
15002 s/.*/./; q'`
15003 done
15004 test ! -n "$as_dirs" || mkdir $as_dirs
15005 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15006 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15007 { (exit 1); exit 1; }; }; }
15008
15009 rm -f $ac_file
15010 mv $tmp/config.h $ac_file
15011 fi
15012 else
15013 cat $tmp/config.h
15014 rm -f $tmp/config.h
15015 fi
15016 # Compute $ac_file's index in $config_headers.
15017 _am_stamp_count=1
15018 for _am_header in $config_headers :; do
15019 case $_am_header in
15020 $ac_file | $ac_file:* )
15021 break ;;
15022 * )
15023 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15024 esac
15025 done
15026 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15027 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15028 X$ac_file : 'X\(//\)[^/]' \| \
15029 X$ac_file : 'X\(//\)$' \| \
15030 X$ac_file : 'X\(/\)' \| \
15031 . : '\(.\)' 2>/dev/null ||
15032 echo X$ac_file |
15033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15034 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15035 /^X\(\/\/\)$/{ s//\1/; q; }
15036 /^X\(\/\).*/{ s//\1/; q; }
15037 s/.*/./; q'`/stamp-h$_am_stamp_count
15038 done
15039 _ACEOF
15040 cat >>$CONFIG_STATUS <<\_ACEOF
15041
15042 #
15043 # CONFIG_COMMANDS section.
15044 #
15045 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15046 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15047 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15048 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15049 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15050 X"$ac_dest" : 'X\(//\)[^/]' \| \
15051 X"$ac_dest" : 'X\(//\)$' \| \
15052 X"$ac_dest" : 'X\(/\)' \| \
15053 . : '\(.\)' 2>/dev/null ||
15054 echo X"$ac_dest" |
15055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15057 /^X\(\/\/\)$/{ s//\1/; q; }
15058 /^X\(\/\).*/{ s//\1/; q; }
15059 s/.*/./; q'`
15060 { if $as_mkdir_p; then
15061 mkdir -p "$ac_dir"
15062 else
15063 as_dir="$ac_dir"
15064 as_dirs=
15065 while test ! -d "$as_dir"; do
15066 as_dirs="$as_dir $as_dirs"
15067 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15069 X"$as_dir" : 'X\(//\)[^/]' \| \
15070 X"$as_dir" : 'X\(//\)$' \| \
15071 X"$as_dir" : 'X\(/\)' \| \
15072 . : '\(.\)' 2>/dev/null ||
15073 echo X"$as_dir" |
15074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15076 /^X\(\/\/\)$/{ s//\1/; q; }
15077 /^X\(\/\).*/{ s//\1/; q; }
15078 s/.*/./; q'`
15079 done
15080 test ! -n "$as_dirs" || mkdir $as_dirs
15081 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15082 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15083 { (exit 1); exit 1; }; }; }
15084
15085 ac_builddir=.
15086
15087 if test "$ac_dir" != .; then
15088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15089 # A "../" for each directory in $ac_dir_suffix.
15090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15091 else
15092 ac_dir_suffix= ac_top_builddir=
15093 fi
15094
15095 case $srcdir in
15096 .) # No --srcdir option. We are building in place.
15097 ac_srcdir=.
15098 if test -z "$ac_top_builddir"; then
15099 ac_top_srcdir=.
15100 else
15101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15102 fi ;;
15103 [\\/]* | ?:[\\/]* ) # Absolute path.
15104 ac_srcdir=$srcdir$ac_dir_suffix;
15105 ac_top_srcdir=$srcdir ;;
15106 *) # Relative path.
15107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15109 esac
15110
15111 # Do not use `cd foo && pwd` to compute absolute paths, because
15112 # the directories may not exist.
15113 case `pwd` in
15114 .) ac_abs_builddir="$ac_dir";;
15115 *)
15116 case "$ac_dir" in
15117 .) ac_abs_builddir=`pwd`;;
15118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15120 esac;;
15121 esac
15122 case $ac_abs_builddir in
15123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15124 *)
15125 case ${ac_top_builddir}. in
15126 .) ac_abs_top_builddir=$ac_abs_builddir;;
15127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15129 esac;;
15130 esac
15131 case $ac_abs_builddir in
15132 .) ac_abs_srcdir=$ac_srcdir;;
15133 *)
15134 case $ac_srcdir in
15135 .) ac_abs_srcdir=$ac_abs_builddir;;
15136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15138 esac;;
15139 esac
15140 case $ac_abs_builddir in
15141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15142 *)
15143 case $ac_top_srcdir in
15144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15147 esac;;
15148 esac
15149
15150
15151 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15152 echo "$as_me: executing $ac_dest commands" >&6;}
15153 case $ac_dest in
15154 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15155 # Strip MF so we end up with the name of the file.
15156 mf=`echo "$mf" | sed -e 's/:.*$//'`
15157 # Check whether this is an Automake generated Makefile or not.
15158 # We used to match only the files named `Makefile.in', but
15159 # some people rename them; so instead we look at the file content.
15160 # Grep'ing the first line is not enough: some people post-process
15161 # each Makefile.in and add a new line on top of each file to say so.
15162 # So let's grep whole file.
15163 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15164 dirpart=`(dirname "$mf") 2>/dev/null ||
15165 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15166 X"$mf" : 'X\(//\)[^/]' \| \
15167 X"$mf" : 'X\(//\)$' \| \
15168 X"$mf" : 'X\(/\)' \| \
15169 . : '\(.\)' 2>/dev/null ||
15170 echo X"$mf" |
15171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15173 /^X\(\/\/\)$/{ s//\1/; q; }
15174 /^X\(\/\).*/{ s//\1/; q; }
15175 s/.*/./; q'`
15176 else
15177 continue
15178 fi
15179 # Extract the definition of DEPDIR, am__include, and am__quote
15180 # from the Makefile without running `make'.
15181 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15182 test -z "$DEPDIR" && continue
15183 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15184 test -z "am__include" && continue
15185 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15186 # When using ansi2knr, U may be empty or an underscore; expand it
15187 U=`sed -n 's/^U = //p' < "$mf"`
15188 # Find all dependency output files, they are included files with
15189 # $(DEPDIR) in their names. We invoke sed twice because it is the
15190 # simplest approach to changing $(DEPDIR) to its actual value in the
15191 # expansion.
15192 for file in `sed -n "
15193 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15194 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15195 # Make sure the directory exists.
15196 test -f "$dirpart/$file" && continue
15197 fdir=`(dirname "$file") 2>/dev/null ||
15198 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15199 X"$file" : 'X\(//\)[^/]' \| \
15200 X"$file" : 'X\(//\)$' \| \
15201 X"$file" : 'X\(/\)' \| \
15202 . : '\(.\)' 2>/dev/null ||
15203 echo X"$file" |
15204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15206 /^X\(\/\/\)$/{ s//\1/; q; }
15207 /^X\(\/\).*/{ s//\1/; q; }
15208 s/.*/./; q'`
15209 { if $as_mkdir_p; then
15210 mkdir -p $dirpart/$fdir
15211 else
15212 as_dir=$dirpart/$fdir
15213 as_dirs=
15214 while test ! -d "$as_dir"; do
15215 as_dirs="$as_dir $as_dirs"
15216 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15218 X"$as_dir" : 'X\(//\)[^/]' \| \
15219 X"$as_dir" : 'X\(//\)$' \| \
15220 X"$as_dir" : 'X\(/\)' \| \
15221 . : '\(.\)' 2>/dev/null ||
15222 echo X"$as_dir" |
15223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15225 /^X\(\/\/\)$/{ s//\1/; q; }
15226 /^X\(\/\).*/{ s//\1/; q; }
15227 s/.*/./; q'`
15228 done
15229 test ! -n "$as_dirs" || mkdir $as_dirs
15230 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15231 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15232 { (exit 1); exit 1; }; }; }
15233
15234 # echo "creating $dirpart/$file"
15235 echo '# dummy' > "$dirpart/$file"
15236 done
15237 done
15238 ;;
15239 default-1 )
15240 for ac_file in $CONFIG_FILES; do
15241 # Support "outfile[:infile[:infile...]]"
15242 case "$ac_file" in
15243 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15244 esac
15245 # PO directories have a Makefile.in generated from Makefile.in.in.
15246 case "$ac_file" in */Makefile.in)
15247 # Adjust a relative srcdir.
15248 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15249 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15250 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15251 # In autoconf-2.13 it is called $ac_given_srcdir.
15252 # In autoconf-2.50 it is called $srcdir.
15253 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15254 case "$ac_given_srcdir" in
15255 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15256 /*) top_srcdir="$ac_given_srcdir" ;;
15257 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15258 esac
15259 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15260 rm -f "$ac_dir/POTFILES"
15261 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15262 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15263 POMAKEFILEDEPS="POTFILES.in"
15264 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15265 # on $ac_dir but don't depend on user-specified configuration
15266 # parameters.
15267 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15268 # The LINGUAS file contains the set of available languages.
15269 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15270 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15271 fi
15272 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15273 # Hide the ALL_LINGUAS assigment from automake.
15274 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15275 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15276 else
15277 # The set of available languages was given in configure.in.
15278 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15279 fi
15280 # Compute POFILES
15281 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15282 # Compute UPDATEPOFILES
15283 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15284 # Compute DUMMYPOFILES
15285 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15286 # Compute GMOFILES
15287 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15288 case "$ac_given_srcdir" in
15289 .) srcdirpre= ;;
15290 *) srcdirpre='$(srcdir)/' ;;
15291 esac
15292 POFILES=
15293 UPDATEPOFILES=
15294 DUMMYPOFILES=
15295 GMOFILES=
15296 for lang in $ALL_LINGUAS; do
15297 POFILES="$POFILES $srcdirpre$lang.po"
15298 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15299 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15300 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15301 done
15302 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15303 # environment variable.
15304 INST_LINGUAS=
15305 if test -n "$ALL_LINGUAS"; then
15306 for presentlang in $ALL_LINGUAS; do
15307 useit=no
15308 if test "%UNSET%" != "$LINGUAS"; then
15309 desiredlanguages="$LINGUAS"
15310 else
15311 desiredlanguages="$ALL_LINGUAS"
15312 fi
15313 for desiredlang in $desiredlanguages; do
15314 # Use the presentlang catalog if desiredlang is
15315 # a. equal to presentlang, or
15316 # b. a variant of presentlang (because in this case,
15317 # presentlang can be used as a fallback for messages
15318 # which are not translated in the desiredlang catalog).
15319 case "$desiredlang" in
15320 "$presentlang"*) useit=yes;;
15321 esac
15322 done
15323 if test $useit = yes; then
15324 INST_LINGUAS="$INST_LINGUAS $presentlang"
15325 fi
15326 done
15327 fi
15328 CATALOGS=
15329 if test -n "$INST_LINGUAS"; then
15330 for lang in $INST_LINGUAS; do
15331 CATALOGS="$CATALOGS $lang.gmo"
15332 done
15333 fi
15334 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15335 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15336 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15337 if test -f "$f"; then
15338 case "$f" in
15339 *.orig | *.bak | *~) ;;
15340 *) cat "$f" >> "$ac_dir/Makefile" ;;
15341 esac
15342 fi
15343 done
15344 fi
15345 ;;
15346 esac
15347 done ;;
15348 esac
15349 done
15350 _ACEOF
15351
15352 cat >>$CONFIG_STATUS <<\_ACEOF
15353
15354 { (exit 0); exit 0; }
15355 _ACEOF
15356 chmod +x $CONFIG_STATUS
15357 ac_clean_files=$ac_clean_files_save
15358
15359
15360 # configure is writing to config.log, and then calls config.status.
15361 # config.status does its own redirection, appending to config.log.
15362 # Unfortunately, on DOS this fails, as config.log is still kept open
15363 # by configure, so config.status won't be able to write to it; its
15364 # output is simply discarded. So we exec the FD to /dev/null,
15365 # effectively closing config.log, so it can be properly (re)opened and
15366 # appended to by config.status. When coming back to configure, we
15367 # need to make the FD available again.
15368 if test "$no_create" != yes; then
15369 ac_cs_success=:
15370 ac_config_status_args=
15371 test "$silent" = yes &&
15372 ac_config_status_args="$ac_config_status_args --quiet"
15373 exec 5>/dev/null
15374 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15375 exec 5>>config.log
15376 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15377 # would make configure fail if this is the last instruction.
15378 $ac_cs_success || { (exit 1); exit 1; }
15379 fi
15380
15381
15382 # We only generate the build.sh if we have a build.sh.in; we won't have
15383 # one before we've created a distribution.
15384 if test -f "$srcdir/build.sh.in"; then
15385 ./config.status --file build.sh
15386 chmod +x build.sh
15387 fi
15388
15389