* config.sub, config.guess: Update from upstream sources.
[binutils.git] / gprof / configure
blobcfbb91586e8ab1822e78575df0b409aeaad0fb37
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="gprof.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT WARN_CFLAGS NO_WERROR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --disable-nls do not use Native Language Support
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-werror treat compile warnings as errors
863 --enable-build-warnings enable build-time compiler warnings
865 Optional Packages:
866 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
867 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
868 --with-gnu-ld assume the C compiler uses GNU ld default=no
869 --with-pic try to use only PIC/non-PIC objects default=use both
870 --with-included-gettext use the GNU gettext library included here
872 Some influential environment variables:
873 CC C compiler command
874 CFLAGS C compiler flags
875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
876 nonstandard directory <lib dir>
877 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
878 headers in a nonstandard directory <include dir>
879 CPP C preprocessor
881 Use these variables to override the choices made by `configure' or to help
882 it to find libraries and programs with nonstandard names/locations.
884 _ACEOF
887 if test "$ac_init_help" = "recursive"; then
888 # If there are subdirs, report their specific --help.
889 ac_popdir=`pwd`
890 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891 test -d $ac_dir || continue
892 ac_builddir=.
894 if test "$ac_dir" != .; then
895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
896 # A "../" for each directory in $ac_dir_suffix.
897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898 else
899 ac_dir_suffix= ac_top_builddir=
902 case $srcdir in
903 .) # No --srcdir option. We are building in place.
904 ac_srcdir=.
905 if test -z "$ac_top_builddir"; then
906 ac_top_srcdir=.
907 else
908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
909 fi ;;
910 [\\/]* | ?:[\\/]* ) # Absolute path.
911 ac_srcdir=$srcdir$ac_dir_suffix;
912 ac_top_srcdir=$srcdir ;;
913 *) # Relative path.
914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
916 esac
918 # Do not use `cd foo && pwd` to compute absolute paths, because
919 # the directories may not exist.
920 case `pwd` in
921 .) ac_abs_builddir="$ac_dir";;
923 case "$ac_dir" in
924 .) ac_abs_builddir=`pwd`;;
925 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
926 *) ac_abs_builddir=`pwd`/"$ac_dir";;
927 esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_top_builddir=${ac_top_builddir}.;;
932 case ${ac_top_builddir}. in
933 .) ac_abs_top_builddir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
935 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
936 esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_srcdir=$ac_srcdir;;
941 case $ac_srcdir in
942 .) ac_abs_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
944 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
945 esac;;
946 esac
947 case $ac_abs_builddir in
948 .) ac_abs_top_srcdir=$ac_top_srcdir;;
950 case $ac_top_srcdir in
951 .) ac_abs_top_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
953 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
954 esac;;
955 esac
957 cd $ac_dir
958 # Check for guested configure; otherwise get Cygnus style configure.
959 if test -f $ac_srcdir/configure.gnu; then
960 echo
961 $SHELL $ac_srcdir/configure.gnu --help=recursive
962 elif test -f $ac_srcdir/configure; then
963 echo
964 $SHELL $ac_srcdir/configure --help=recursive
965 elif test -f $ac_srcdir/configure.ac ||
966 test -f $ac_srcdir/configure.in; then
967 echo
968 $ac_configure --help
969 else
970 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 cd $ac_popdir
973 done
976 test -n "$ac_init_help" && exit 0
977 if $ac_init_version; then
978 cat <<\_ACEOF
980 Copyright (C) 2003 Free Software Foundation, Inc.
981 This configure script is free software; the Free Software Foundation
982 gives unlimited permission to copy, distribute and modify it.
983 _ACEOF
984 exit 0
986 exec 5>config.log
987 cat >&5 <<_ACEOF
988 This file contains any messages produced by compilers while
989 running configure, to aid debugging if configure makes a mistake.
991 It was created by $as_me, which was
992 generated by GNU Autoconf 2.59. Invocation command line was
994 $ $0 $@
996 _ACEOF
998 cat <<_ASUNAME
999 ## --------- ##
1000 ## Platform. ##
1001 ## --------- ##
1003 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1004 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1005 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1006 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1007 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1010 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1012 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1013 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1014 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1015 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1016 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1017 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1018 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020 _ASUNAME
1022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 for as_dir in $PATH
1025 IFS=$as_save_IFS
1026 test -z "$as_dir" && as_dir=.
1027 echo "PATH: $as_dir"
1028 done
1030 } >&5
1032 cat >&5 <<_ACEOF
1035 ## ----------- ##
1036 ## Core tests. ##
1037 ## ----------- ##
1039 _ACEOF
1042 # Keep a trace of the command line.
1043 # Strip out --no-create and --no-recursion so they do not pile up.
1044 # Strip out --silent because we don't want to record it for future runs.
1045 # Also quote any args containing shell meta-characters.
1046 # Make two passes to allow for proper duplicate-argument suppression.
1047 ac_configure_args=
1048 ac_configure_args0=
1049 ac_configure_args1=
1050 ac_sep=
1051 ac_must_keep_next=false
1052 for ac_pass in 1 2
1054 for ac_arg
1056 case $ac_arg in
1057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1060 continue ;;
1061 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1062 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1063 esac
1064 case $ac_pass in
1065 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1068 if test $ac_must_keep_next = true; then
1069 ac_must_keep_next=false # Got value, back to normal.
1070 else
1071 case $ac_arg in
1072 *=* | --config-cache | -C | -disable-* | --disable-* \
1073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1075 | -with-* | --with-* | -without-* | --without-* | --x)
1076 case "$ac_configure_args0 " in
1077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1078 esac
1080 -* ) ac_must_keep_next=true ;;
1081 esac
1083 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1084 # Get rid of the leading space.
1085 ac_sep=" "
1087 esac
1088 done
1089 done
1090 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1091 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093 # When interrupted or exit'd, cleanup temporary files, and complete
1094 # config.log. We remove comments because anyway the quotes in there
1095 # would cause problems or look ugly.
1096 # WARNING: Be sure not to use single quotes in there, as some shells,
1097 # such as our DU 5.0 friend, will then `close' the trap.
1098 trap 'exit_status=$?
1099 # Save into config.log some information that might help in debugging.
1101 echo
1103 cat <<\_ASBOX
1104 ## ---------------- ##
1105 ## Cache variables. ##
1106 ## ---------------- ##
1107 _ASBOX
1108 echo
1109 # The following way of writing the cache mishandles newlines in values,
1111 (set) 2>&1 |
1112 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1113 *ac_space=\ *)
1114 sed -n \
1115 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119 sed -n \
1120 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 esac;
1124 echo
1126 cat <<\_ASBOX
1127 ## ----------------- ##
1128 ## Output variables. ##
1129 ## ----------------- ##
1130 _ASBOX
1131 echo
1132 for ac_var in $ac_subst_vars
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1136 done | sort
1137 echo
1139 if test -n "$ac_subst_files"; then
1140 cat <<\_ASBOX
1141 ## ------------- ##
1142 ## Output files. ##
1143 ## ------------- ##
1144 _ASBOX
1145 echo
1146 for ac_var in $ac_subst_files
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1150 done | sort
1151 echo
1154 if test -s confdefs.h; then
1155 cat <<\_ASBOX
1156 ## ----------- ##
1157 ## confdefs.h. ##
1158 ## ----------- ##
1159 _ASBOX
1160 echo
1161 sed "/^$/d" confdefs.h | sort
1162 echo
1164 test "$ac_signal" != 0 &&
1165 echo "$as_me: caught signal $ac_signal"
1166 echo "$as_me: exit $exit_status"
1167 } >&5
1168 rm -f core *.core &&
1169 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1170 exit $exit_status
1172 for ac_signal in 1 2 13 15; do
1173 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1174 done
1175 ac_signal=0
1177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1178 rm -rf conftest* confdefs.h
1179 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1180 echo >confdefs.h
1182 # Predefined preprocessor variables.
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_NAME "$PACKAGE_NAME"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_STRING "$PACKAGE_STRING"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1206 _ACEOF
1209 # Let the site file select an alternate cache file if it wants to.
1210 # Prefer explicitly selected file to automatically selected ones.
1211 if test -z "$CONFIG_SITE"; then
1212 if test "x$prefix" != xNONE; then
1213 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1214 else
1215 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218 for ac_site_file in $CONFIG_SITE; do
1219 if test -r "$ac_site_file"; then
1220 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1221 echo "$as_me: loading site script $ac_site_file" >&6;}
1222 sed 's/^/| /' "$ac_site_file" >&5
1223 . "$ac_site_file"
1225 done
1227 if test -r "$cache_file"; then
1228 # Some versions of bash will fail to source /dev/null (special
1229 # files actually), so we avoid doing that.
1230 if test -f "$cache_file"; then
1231 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1232 echo "$as_me: loading cache $cache_file" >&6;}
1233 case $cache_file in
1234 [\\/]* | ?:[\\/]* ) . $cache_file;;
1235 *) . ./$cache_file;;
1236 esac
1238 else
1239 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1240 echo "$as_me: creating cache $cache_file" >&6;}
1241 >$cache_file
1244 # Check that the precious variables saved in the cache have kept the same
1245 # value.
1246 ac_cache_corrupted=false
1247 for ac_var in `(set) 2>&1 |
1248 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1249 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1250 eval ac_new_set=\$ac_env_${ac_var}_set
1251 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1252 eval ac_new_val="\$ac_env_${ac_var}_value"
1253 case $ac_old_set,$ac_new_set in
1254 set,)
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1257 ac_cache_corrupted=: ;;
1258 ,set)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,);;
1264 if test "x$ac_old_val" != "x$ac_new_val"; then
1265 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1266 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1267 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1268 echo "$as_me: former value: $ac_old_val" >&2;}
1269 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1270 echo "$as_me: current value: $ac_new_val" >&2;}
1271 ac_cache_corrupted=:
1272 fi;;
1273 esac
1274 # Pass precious variables to config.status.
1275 if test "$ac_new_set" = set; then
1276 case $ac_new_val in
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1279 *) ac_arg=$ac_var=$ac_new_val ;;
1280 esac
1281 case " $ac_configure_args " in
1282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1283 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284 esac
1286 done
1287 if $ac_cache_corrupted; then
1288 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1289 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1290 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1291 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1292 { (exit 1); exit 1; }; }
1295 ac_ext=c
1296 ac_cpp='$CPP $CPPFLAGS'
1297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1321 ac_aux_dir=
1322 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1323 if test -f $ac_dir/install-sh; then
1324 ac_aux_dir=$ac_dir
1325 ac_install_sh="$ac_aux_dir/install-sh -c"
1326 break
1327 elif test -f $ac_dir/install.sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install.sh -c"
1330 break
1331 elif test -f $ac_dir/shtool; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/shtool install -c"
1334 break
1336 done
1337 if test -z "$ac_aux_dir"; then
1338 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1339 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1340 { (exit 1); exit 1; }; }
1342 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1343 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1344 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346 # Make sure we can run config.sub.
1347 $ac_config_sub sun4 >/dev/null 2>&1 ||
1348 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1349 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1350 { (exit 1); exit 1; }; }
1352 echo "$as_me:$LINENO: checking build system type" >&5
1353 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1354 if test "${ac_cv_build+set}" = set; then
1355 echo $ECHO_N "(cached) $ECHO_C" >&6
1356 else
1357 ac_cv_build_alias=$build_alias
1358 test -z "$ac_cv_build_alias" &&
1359 ac_cv_build_alias=`$ac_config_guess`
1360 test -z "$ac_cv_build_alias" &&
1361 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1362 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1363 { (exit 1); exit 1; }; }
1364 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1366 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1367 { (exit 1); exit 1; }; }
1370 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1371 echo "${ECHO_T}$ac_cv_build" >&6
1372 build=$ac_cv_build
1373 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378 echo "$as_me:$LINENO: checking host system type" >&5
1379 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1380 if test "${ac_cv_host+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1382 else
1383 ac_cv_host_alias=$host_alias
1384 test -z "$ac_cv_host_alias" &&
1385 ac_cv_host_alias=$ac_cv_build_alias
1386 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1387 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1388 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1389 { (exit 1); exit 1; }; }
1392 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1393 echo "${ECHO_T}$ac_cv_host" >&6
1394 host=$ac_cv_host
1395 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 echo "$as_me:$LINENO: checking target system type" >&5
1401 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1402 if test "${ac_cv_target+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 else
1405 ac_cv_target_alias=$target_alias
1406 test "x$ac_cv_target_alias" = "x" &&
1407 ac_cv_target_alias=$ac_cv_host_alias
1408 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1415 echo "${ECHO_T}$ac_cv_target" >&6
1416 target=$ac_cv_target
1417 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 # The aliases save the names the user supplied, while $host etc.
1423 # will get canonicalized.
1424 test -n "$target_alias" &&
1425 test "$program_prefix$program_suffix$program_transform_name" = \
1426 NONENONEs,x,x, &&
1427 program_prefix=${target_alias}-
1428 ac_ext=c
1429 ac_cpp='$CPP $CPPFLAGS'
1430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1433 if test -n "$ac_tool_prefix"; then
1434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441 if test -n "$CC"; then
1442 ac_cv_prog_CC="$CC" # Let the user override the test.
1443 else
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 for as_dir in $PATH
1447 IFS=$as_save_IFS
1448 test -z "$as_dir" && as_dir=.
1449 for ac_exec_ext in '' $ac_executable_extensions; do
1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453 break 2
1455 done
1456 done
1460 CC=$ac_cv_prog_CC
1461 if test -n "$CC"; then
1462 echo "$as_me:$LINENO: result: $CC" >&5
1463 echo "${ECHO_T}$CC" >&6
1464 else
1465 echo "$as_me:$LINENO: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1470 if test -z "$ac_cv_prog_CC"; then
1471 ac_ct_CC=$CC
1472 # Extract the first word of "gcc", so it can be a program name with args.
1473 set dummy gcc; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479 if test -n "$ac_ct_CC"; then
1480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1481 else
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_ac_ct_CC="gcc"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 break 2
1493 done
1494 done
1498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1499 if test -n "$ac_ct_CC"; then
1500 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1501 echo "${ECHO_T}$ac_ct_CC" >&6
1502 else
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1507 CC=$ac_ct_CC
1508 else
1509 CC="$ac_cv_prog_CC"
1512 if test -z "$CC"; then
1513 if test -n "$ac_tool_prefix"; then
1514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1515 set dummy ${ac_tool_prefix}cc; ac_word=$2
1516 echo "$as_me:$LINENO: checking for $ac_word" >&5
1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518 if test "${ac_cv_prog_CC+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521 if test -n "$CC"; then
1522 ac_cv_prog_CC="$CC" # Let the user override the test.
1523 else
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 for as_dir in $PATH
1527 IFS=$as_save_IFS
1528 test -z "$as_dir" && as_dir=.
1529 for ac_exec_ext in '' $ac_executable_extensions; do
1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531 ac_cv_prog_CC="${ac_tool_prefix}cc"
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533 break 2
1535 done
1536 done
1540 CC=$ac_cv_prog_CC
1541 if test -n "$CC"; then
1542 echo "$as_me:$LINENO: result: $CC" >&5
1543 echo "${ECHO_T}$CC" >&6
1544 else
1545 echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1550 if test -z "$ac_cv_prog_CC"; then
1551 ac_ct_CC=$CC
1552 # Extract the first word of "cc", so it can be a program name with args.
1553 set dummy cc; ac_word=$2
1554 echo "$as_me:$LINENO: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559 if test -n "$ac_ct_CC"; then
1560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1561 else
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1565 IFS=$as_save_IFS
1566 test -z "$as_dir" && as_dir=.
1567 for ac_exec_ext in '' $ac_executable_extensions; do
1568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569 ac_cv_prog_ac_ct_CC="cc"
1570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 break 2
1573 done
1574 done
1578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1579 if test -n "$ac_ct_CC"; then
1580 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1581 echo "${ECHO_T}$ac_ct_CC" >&6
1582 else
1583 echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1587 CC=$ac_ct_CC
1588 else
1589 CC="$ac_cv_prog_CC"
1593 if test -z "$CC"; then
1594 # Extract the first word of "cc", so it can be a program name with args.
1595 set dummy cc; ac_word=$2
1596 echo "$as_me:$LINENO: checking for $ac_word" >&5
1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598 if test "${ac_cv_prog_CC+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 else
1601 if test -n "$CC"; then
1602 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 else
1604 ac_prog_rejected=no
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1613 ac_prog_rejected=yes
1614 continue
1616 ac_cv_prog_CC="cc"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 break 2
1620 done
1621 done
1623 if test $ac_prog_rejected = yes; then
1624 # We found a bogon in the path, so make sure we never use it.
1625 set dummy $ac_cv_prog_CC
1626 shift
1627 if test $# != 0; then
1628 # We chose a different compiler from the bogus one.
1629 # However, it has the same basename, so the bogon will be chosen
1630 # first if we set CC to just the basename; use the full file name.
1631 shift
1632 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1637 CC=$ac_cv_prog_CC
1638 if test -n "$CC"; then
1639 echo "$as_me:$LINENO: result: $CC" >&5
1640 echo "${ECHO_T}$CC" >&6
1641 else
1642 echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1647 if test -z "$CC"; then
1648 if test -n "$ac_tool_prefix"; then
1649 for ac_prog in cl
1651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658 if test -n "$CC"; then
1659 ac_cv_prog_CC="$CC" # Let the user override the test.
1660 else
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1664 IFS=$as_save_IFS
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 break 2
1672 done
1673 done
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1686 test -n "$CC" && break
1687 done
1689 if test -z "$CC"; then
1690 ac_ct_CC=$CC
1691 for ac_prog in cl
1693 # Extract the first word of "$ac_prog", so it can be a program name with args.
1694 set dummy $ac_prog; ac_word=$2
1695 echo "$as_me:$LINENO: checking for $ac_word" >&5
1696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1699 else
1700 if test -n "$ac_ct_CC"; then
1701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1702 else
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 for as_dir in $PATH
1706 IFS=$as_save_IFS
1707 test -z "$as_dir" && as_dir=.
1708 for ac_exec_ext in '' $ac_executable_extensions; do
1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710 ac_cv_prog_ac_ct_CC="$ac_prog"
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 break 2
1714 done
1715 done
1719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720 if test -n "$ac_ct_CC"; then
1721 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722 echo "${ECHO_T}$ac_ct_CC" >&6
1723 else
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1728 test -n "$ac_ct_CC" && break
1729 done
1731 CC=$ac_ct_CC
1737 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1738 See \`config.log' for more details." >&5
1739 echo "$as_me: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&2;}
1741 { (exit 1); exit 1; }; }
1743 # Provide some information about the compiler.
1744 echo "$as_me:$LINENO:" \
1745 "checking for C compiler version" >&5
1746 ac_compiler=`set X $ac_compile; echo $2`
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1748 (eval $ac_compiler --version </dev/null >&5) 2>&5
1749 ac_status=$?
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1753 (eval $ac_compiler -v </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1758 (eval $ac_compiler -V </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1763 cat >conftest.$ac_ext <<_ACEOF
1764 /* confdefs.h. */
1765 _ACEOF
1766 cat confdefs.h >>conftest.$ac_ext
1767 cat >>conftest.$ac_ext <<_ACEOF
1768 /* end confdefs.h. */
1771 main ()
1775 return 0;
1777 _ACEOF
1778 ac_clean_files_save=$ac_clean_files
1779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1780 # Try to create an executable without -o first, disregard a.out.
1781 # It will help us diagnose broken compilers, and finding out an intuition
1782 # of exeext.
1783 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1786 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1787 (eval $ac_link_default) 2>&5
1788 ac_status=$?
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; then
1791 # Find the output, starting from the most likely. This scheme is
1792 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1793 # resort.
1795 # Be careful to initialize this variable, since it used to be cached.
1796 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1797 ac_cv_exeext=
1798 # b.out is created by i960 compilers.
1799 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801 test -f "$ac_file" || continue
1802 case $ac_file in
1803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1805 conftest.$ac_ext )
1806 # This is the source file.
1808 [ab].out )
1809 # We found the default executable, but exeext='' is most
1810 # certainly right.
1811 break;;
1812 *.* )
1813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814 # FIXME: I believe we export ac_cv_exeext for Libtool,
1815 # but it would be cool to find out if it's true. Does anybody
1816 # maintain Libtool? --akim.
1817 export ac_cv_exeext
1818 break;;
1820 break;;
1821 esac
1822 done
1823 else
1824 echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&2;}
1831 { (exit 77); exit 77; }; }
1834 ac_exeext=$ac_cv_exeext
1835 echo "$as_me:$LINENO: result: $ac_file" >&5
1836 echo "${ECHO_T}$ac_file" >&6
1838 # Check the compiler produces executables we can run. If not, either
1839 # the compiler is broken, or we cross compile.
1840 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1841 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1842 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1843 # If not cross compiling, check that we can run a simple program.
1844 if test "$cross_compiling" != yes; then
1845 if { ac_try='./$ac_file'
1846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847 (eval $ac_try) 2>&5
1848 ac_status=$?
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }; }; then
1851 cross_compiling=no
1852 else
1853 if test "$cross_compiling" = maybe; then
1854 cross_compiling=yes
1855 else
1856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1857 If you meant to cross compile, use \`--host'.
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&2;}
1862 { (exit 1); exit 1; }; }
1866 echo "$as_me:$LINENO: result: yes" >&5
1867 echo "${ECHO_T}yes" >&6
1869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1870 ac_clean_files=$ac_clean_files_save
1871 # Check the compiler produces executables we can run. If not, either
1872 # the compiler is broken, or we cross compile.
1873 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1875 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1876 echo "${ECHO_T}$cross_compiling" >&6
1878 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1881 (eval $ac_link) 2>&5
1882 ac_status=$?
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }; then
1885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1886 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1887 # work properly (i.e., refer to `conftest.exe'), while it won't with
1888 # `rm'.
1889 for ac_file in conftest.exe conftest conftest.*; do
1890 test -f "$ac_file" || continue
1891 case $ac_file in
1892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1894 export ac_cv_exeext
1895 break;;
1896 * ) break;;
1897 esac
1898 done
1899 else
1900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&5
1902 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&2;}
1904 { (exit 1); exit 1; }; }
1907 rm -f conftest$ac_cv_exeext
1908 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1909 echo "${ECHO_T}$ac_cv_exeext" >&6
1911 rm -f conftest.$ac_ext
1912 EXEEXT=$ac_cv_exeext
1913 ac_exeext=$EXEEXT
1914 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1915 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1916 if test "${ac_cv_objext+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919 cat >conftest.$ac_ext <<_ACEOF
1920 /* confdefs.h. */
1921 _ACEOF
1922 cat confdefs.h >>conftest.$ac_ext
1923 cat >>conftest.$ac_ext <<_ACEOF
1924 /* end confdefs.h. */
1927 main ()
1931 return 0;
1933 _ACEOF
1934 rm -f conftest.o conftest.obj
1935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936 (eval $ac_compile) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; then
1940 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1941 case $ac_file in
1942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1944 break;;
1945 esac
1946 done
1947 else
1948 echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1952 See \`config.log' for more details." >&5
1953 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1961 echo "${ECHO_T}$ac_cv_objext" >&6
1962 OBJEXT=$ac_cv_objext
1963 ac_objext=$OBJEXT
1964 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1965 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969 cat >conftest.$ac_ext <<_ACEOF
1970 /* confdefs.h. */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1977 main ()
1979 #ifndef __GNUC__
1980 choke me
1981 #endif
1984 return 0;
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1990 ac_status=$?
1991 grep -v '^ *+' conftest.er1 >conftest.err
1992 rm -f conftest.er1
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -z "$ac_c_werror_flag"
1997 || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2009 ac_compiler_gnu=yes
2010 else
2011 echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2014 ac_compiler_gnu=no
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2020 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022 GCC=`test $ac_compiler_gnu = yes && echo yes`
2023 ac_test_CFLAGS=${CFLAGS+set}
2024 ac_save_CFLAGS=$CFLAGS
2025 CFLAGS="-g"
2026 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028 if test "${ac_cv_prog_cc_g+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 cat >conftest.$ac_ext <<_ACEOF
2032 /* confdefs.h. */
2033 _ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h. */
2039 main ()
2043 return 0;
2045 _ACEOF
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>conftest.er1
2049 ac_status=$?
2050 grep -v '^ *+' conftest.er1 >conftest.err
2051 rm -f conftest.er1
2052 cat conftest.err >&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
2055 { ac_try='test -z "$ac_c_werror_flag"
2056 || test ! -s conftest.err'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 (eval $ac_try) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; } &&
2062 { ac_try='test -s conftest.$ac_objext'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; }; then
2068 ac_cv_prog_cc_g=yes
2069 else
2070 echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2073 ac_cv_prog_cc_g=no
2075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2077 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2078 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2079 if test "$ac_test_CFLAGS" = set; then
2080 CFLAGS=$ac_save_CFLAGS
2081 elif test $ac_cv_prog_cc_g = yes; then
2082 if test "$GCC" = yes; then
2083 CFLAGS="-g -O2"
2084 else
2085 CFLAGS="-g"
2087 else
2088 if test "$GCC" = yes; then
2089 CFLAGS="-O2"
2090 else
2091 CFLAGS=
2094 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2095 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2096 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 ac_cv_prog_cc_stdc=no
2100 ac_save_CC=$CC
2101 cat >conftest.$ac_ext <<_ACEOF
2102 /* confdefs.h. */
2103 _ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2107 #include <stdarg.h>
2108 #include <stdio.h>
2109 #include <sys/types.h>
2110 #include <sys/stat.h>
2111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2112 struct buf { int x; };
2113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2114 static char *e (p, i)
2115 char **p;
2116 int i;
2118 return p[i];
2120 static char *f (char * (*g) (char **, int), char **p, ...)
2122 char *s;
2123 va_list v;
2124 va_start (v,p);
2125 s = g (p, va_arg (v,int));
2126 va_end (v);
2127 return s;
2130 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2131 function prototypes and stuff, but not '\xHH' hex character constants.
2132 These don't provoke an error unfortunately, instead are silently treated
2133 as 'x'. The following induces an error, until -std1 is added to get
2134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2135 array size at least. It's necessary to write '\x00'==0 to get something
2136 that's true only with -std1. */
2137 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2139 int test (int i, double x);
2140 struct s1 {int (*f) (int a);};
2141 struct s2 {int (*f) (double a);};
2142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2143 int argc;
2144 char **argv;
2146 main ()
2148 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2150 return 0;
2152 _ACEOF
2153 # Don't try gcc -ansi; that turns off useful extensions and
2154 # breaks some systems' header files.
2155 # AIX -qlanglvl=ansi
2156 # Ultrix and OSF/1 -std1
2157 # HP-UX 10.20 and later -Ae
2158 # HP-UX older versions -Aa -D_HPUX_SOURCE
2159 # SVR4 -Xc -D__EXTENSIONS__
2160 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2162 CC="$ac_save_CC $ac_arg"
2163 rm -f conftest.$ac_objext
2164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165 (eval $ac_compile) 2>conftest.er1
2166 ac_status=$?
2167 grep -v '^ *+' conftest.er1 >conftest.err
2168 rm -f conftest.er1
2169 cat conftest.err >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); } &&
2172 { ac_try='test -z "$ac_c_werror_flag"
2173 || test ! -s conftest.err'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 (eval $ac_try) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; } &&
2179 { ac_try='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2185 ac_cv_prog_cc_stdc=$ac_arg
2186 break
2187 else
2188 echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2192 rm -f conftest.err conftest.$ac_objext
2193 done
2194 rm -f conftest.$ac_ext conftest.$ac_objext
2195 CC=$ac_save_CC
2199 case "x$ac_cv_prog_cc_stdc" in
2200 x|xno)
2201 echo "$as_me:$LINENO: result: none needed" >&5
2202 echo "${ECHO_T}none needed" >&6 ;;
2204 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2205 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2206 CC="$CC $ac_cv_prog_cc_stdc" ;;
2207 esac
2209 # Some people use a C++ compiler to compile C. Since we use `exit',
2210 # in C++ we need to declare it. In case someone uses the same compiler
2211 # for both compiling C and C++ we need to have the C++ compiler decide
2212 # the declaration of exit, since it's the most demanding environment.
2213 cat >conftest.$ac_ext <<_ACEOF
2214 #ifndef __cplusplus
2215 choke me
2216 #endif
2217 _ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>conftest.er1
2221 ac_status=$?
2222 grep -v '^ *+' conftest.er1 >conftest.err
2223 rm -f conftest.er1
2224 cat conftest.err >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); } &&
2227 { ac_try='test -z "$ac_c_werror_flag"
2228 || test ! -s conftest.err'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; } &&
2234 { ac_try='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 for ac_declaration in \
2241 '' \
2242 'extern "C" void std::exit (int) throw (); using std::exit;' \
2243 'extern "C" void std::exit (int); using std::exit;' \
2244 'extern "C" void exit (int) throw ();' \
2245 'extern "C" void exit (int);' \
2246 'void exit (int);'
2248 cat >conftest.$ac_ext <<_ACEOF
2249 /* confdefs.h. */
2250 _ACEOF
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h. */
2254 $ac_declaration
2255 #include <stdlib.h>
2257 main ()
2259 exit (42);
2261 return 0;
2263 _ACEOF
2264 rm -f conftest.$ac_objext
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>conftest.er1
2267 ac_status=$?
2268 grep -v '^ *+' conftest.er1 >conftest.err
2269 rm -f conftest.er1
2270 cat conftest.err >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -z "$ac_c_werror_flag"
2274 || test ! -s conftest.err'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2287 else
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2291 continue
2293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294 cat >conftest.$ac_ext <<_ACEOF
2295 /* confdefs.h. */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2300 $ac_declaration
2302 main ()
2304 exit (42);
2306 return 0;
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2312 ac_status=$?
2313 grep -v '^ *+' conftest.er1 >conftest.err
2314 rm -f conftest.er1
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -z "$ac_c_werror_flag"
2319 || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 break
2332 else
2333 echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2338 done
2339 rm -f conftest*
2340 if test -n "$ac_declaration"; then
2341 echo '#ifdef __cplusplus' >>confdefs.h
2342 echo $ac_declaration >>confdefs.h
2343 echo '#endif' >>confdefs.h
2346 else
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_ext=c
2353 ac_cpp='$CPP $CPPFLAGS'
2354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2360 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2361 if test "${ac_cv_search_strerror+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364 ac_func_search_save_LIBS=$LIBS
2365 ac_cv_search_strerror=no
2366 cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h. */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2373 /* Override any gcc2 internal prototype to avoid an error. */
2374 #ifdef __cplusplus
2375 extern "C"
2376 #endif
2377 /* We use char because int might match the return type of a gcc2
2378 builtin and then its argument prototype would still apply. */
2379 char strerror ();
2381 main ()
2383 strerror ();
2385 return 0;
2387 _ACEOF
2388 rm -f conftest.$ac_objext conftest$ac_exeext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2390 (eval $ac_link) 2>conftest.er1
2391 ac_status=$?
2392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -z "$ac_c_werror_flag"
2398 || test ! -s conftest.err'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; } &&
2404 { ac_try='test -s conftest$ac_exeext'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2410 ac_cv_search_strerror="none required"
2411 else
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2416 rm -f conftest.err conftest.$ac_objext \
2417 conftest$ac_exeext conftest.$ac_ext
2418 if test "$ac_cv_search_strerror" = no; then
2419 for ac_lib in cposix; do
2420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2421 cat >conftest.$ac_ext <<_ACEOF
2422 /* confdefs.h. */
2423 _ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h. */
2428 /* Override any gcc2 internal prototype to avoid an error. */
2429 #ifdef __cplusplus
2430 extern "C"
2431 #endif
2432 /* We use char because int might match the return type of a gcc2
2433 builtin and then its argument prototype would still apply. */
2434 char strerror ();
2436 main ()
2438 strerror ();
2440 return 0;
2442 _ACEOF
2443 rm -f conftest.$ac_objext conftest$ac_exeext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2445 (eval $ac_link) 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest$ac_exeext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 ac_cv_search_strerror="-l$ac_lib"
2466 break
2467 else
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2472 rm -f conftest.err conftest.$ac_objext \
2473 conftest$ac_exeext conftest.$ac_ext
2474 done
2476 LIBS=$ac_func_search_save_LIBS
2478 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2479 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2480 if test "$ac_cv_search_strerror" != no; then
2481 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2486 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2487 am__api_version="1.9"
2488 # Find a good install program. We prefer a C program (faster),
2489 # so one script is as good as another. But avoid the broken or
2490 # incompatible versions:
2491 # SysV /etc/install, /usr/sbin/install
2492 # SunOS /usr/etc/install
2493 # IRIX /sbin/install
2494 # AIX /bin/install
2495 # AmigaOS /C/install, which installs bootblocks on floppy discs
2496 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2497 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2498 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2499 # OS/2's system install, which has a completely different semantic
2500 # ./install, which can be erroneously created by make from ./install.sh.
2501 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2502 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2503 if test -z "$INSTALL"; then
2504 if test "${ac_cv_path_install+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 # Account for people who put trailing slashes in PATH elements.
2513 case $as_dir/ in
2514 ./ | .// | /cC/* | \
2515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2516 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2517 /usr/ucb/* ) ;;
2519 # OSF1 and SCO ODT 3.0 have their own names for install.
2520 # Don't use installbsd from OSF since it installs stuff as root
2521 # by default.
2522 for ac_prog in ginstall scoinst install; do
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2525 if test $ac_prog = install &&
2526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527 # AIX install. It has an incompatible calling convention.
2529 elif test $ac_prog = install &&
2530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # program-specific install script used by HP pwplus--don't use.
2533 else
2534 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2535 break 3
2538 done
2539 done
2541 esac
2542 done
2546 if test "${ac_cv_path_install+set}" = set; then
2547 INSTALL=$ac_cv_path_install
2548 else
2549 # As a last resort, use the slow shell script. We don't cache a
2550 # path for INSTALL within a source directory, because that will
2551 # break other packages using the cache if that directory is
2552 # removed, or if the path is relative.
2553 INSTALL=$ac_install_sh
2556 echo "$as_me:$LINENO: result: $INSTALL" >&5
2557 echo "${ECHO_T}$INSTALL" >&6
2559 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2560 # It thinks the first close brace ends the variable substitution.
2561 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2563 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2565 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2567 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2568 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2569 # Just in case
2570 sleep 1
2571 echo timestamp > conftest.file
2572 # Do `set' in a subshell so we don't clobber the current shell's
2573 # arguments. Must try -L first in case configure is actually a
2574 # symlink; some systems play weird games with the mod time of symlinks
2575 # (eg FreeBSD returns the mod time of the symlink's containing
2576 # directory).
2577 if (
2578 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2579 if test "$*" = "X"; then
2580 # -L didn't work.
2581 set X `ls -t $srcdir/configure conftest.file`
2583 rm -f conftest.file
2584 if test "$*" != "X $srcdir/configure conftest.file" \
2585 && test "$*" != "X conftest.file $srcdir/configure"; then
2587 # If neither matched, then we have a broken ls. This can happen
2588 # if, for instance, CONFIG_SHELL is bash and it inherits a
2589 # broken ls alias from the environment. This has actually
2590 # happened. Such a system could not be considered "sane".
2591 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2592 alias in your environment" >&5
2593 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2594 alias in your environment" >&2;}
2595 { (exit 1); exit 1; }; }
2598 test "$2" = conftest.file
2600 then
2601 # Ok.
2603 else
2604 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2605 Check your system clock" >&5
2606 echo "$as_me: error: newly created file is older than distributed files!
2607 Check your system clock" >&2;}
2608 { (exit 1); exit 1; }; }
2610 echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6
2612 test "$program_prefix" != NONE &&
2613 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2614 # Use a double $ so make ignores it.
2615 test "$program_suffix" != NONE &&
2616 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2617 # Double any \ or $. echo might interpret backslashes.
2618 # By default was `s,x,x', remove it if useless.
2619 cat <<\_ACEOF >conftest.sed
2620 s/[\\$]/&&/g;s/;s,x,x,$//
2621 _ACEOF
2622 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2623 rm conftest.sed
2625 # expand $ac_aux_dir to an absolute path
2626 am_aux_dir=`cd $ac_aux_dir && pwd`
2628 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2629 # Use eval to expand $SHELL
2630 if eval "$MISSING --run true"; then
2631 am_missing_run="$MISSING --run "
2632 else
2633 am_missing_run=
2634 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2635 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2638 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2639 # We used to keeping the `.' as first argument, in order to
2640 # allow $(mkdir_p) to be used without argument. As in
2641 # $(mkdir_p) $(somedir)
2642 # where $(somedir) is conditionally defined. However this is wrong
2643 # for two reasons:
2644 # 1. if the package is installed by a user who cannot write `.'
2645 # make install will fail,
2646 # 2. the above comment should most certainly read
2647 # $(mkdir_p) $(DESTDIR)$(somedir)
2648 # so it does not work when $(somedir) is undefined and
2649 # $(DESTDIR) is not.
2650 # To support the latter case, we have to write
2651 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2652 # so the `.' trick is pointless.
2653 mkdir_p='mkdir -p --'
2654 else
2655 # On NextStep and OpenStep, the `mkdir' command does not
2656 # recognize any option. It will interpret all options as
2657 # directories to create, and then abort because `.' already
2658 # exists.
2659 for d in ./-p ./--version;
2661 test -d $d && rmdir $d
2662 done
2663 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2664 if test -f "$ac_aux_dir/mkinstalldirs"; then
2665 mkdir_p='$(mkinstalldirs)'
2666 else
2667 mkdir_p='$(install_sh) -d'
2671 for ac_prog in gawk mawk nawk awk
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674 set dummy $ac_prog; ac_word=$2
2675 echo "$as_me:$LINENO: checking for $ac_word" >&5
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2677 if test "${ac_cv_prog_AWK+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680 if test -n "$AWK"; then
2681 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690 ac_cv_prog_AWK="$ac_prog"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2694 done
2695 done
2699 AWK=$ac_cv_prog_AWK
2700 if test -n "$AWK"; then
2701 echo "$as_me:$LINENO: result: $AWK" >&5
2702 echo "${ECHO_T}$AWK" >&6
2703 else
2704 echo "$as_me:$LINENO: result: no" >&5
2705 echo "${ECHO_T}no" >&6
2708 test -n "$AWK" && break
2709 done
2711 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2713 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2714 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 else
2717 cat >conftest.make <<\_ACEOF
2718 all:
2719 @echo 'ac_maketemp="$(MAKE)"'
2720 _ACEOF
2721 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2722 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2723 if test -n "$ac_maketemp"; then
2724 eval ac_cv_prog_make_${ac_make}_set=yes
2725 else
2726 eval ac_cv_prog_make_${ac_make}_set=no
2728 rm -f conftest.make
2730 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2731 echo "$as_me:$LINENO: result: yes" >&5
2732 echo "${ECHO_T}yes" >&6
2733 SET_MAKE=
2734 else
2735 echo "$as_me:$LINENO: result: no" >&5
2736 echo "${ECHO_T}no" >&6
2737 SET_MAKE="MAKE=${MAKE-make}"
2740 rm -rf .tst 2>/dev/null
2741 mkdir .tst 2>/dev/null
2742 if test -d .tst; then
2743 am__leading_dot=.
2744 else
2745 am__leading_dot=_
2747 rmdir .tst 2>/dev/null
2749 DEPDIR="${am__leading_dot}deps"
2751 ac_config_commands="$ac_config_commands depfiles"
2754 am_make=${MAKE-make}
2755 cat > confinc << 'END'
2756 am__doit:
2757 @echo done
2758 .PHONY: am__doit
2760 # If we don't find an include directive, just comment out the code.
2761 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2762 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2763 am__include="#"
2764 am__quote=
2765 _am_result=none
2766 # First try GNU make style include.
2767 echo "include confinc" > confmf
2768 # We grep out `Entering directory' and `Leaving directory'
2769 # messages which can occur if `w' ends up in MAKEFLAGS.
2770 # In particular we don't look at `^make:' because GNU make might
2771 # be invoked under some other name (usually "gmake"), in which
2772 # case it prints its new name instead of `make'.
2773 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2774 am__include=include
2775 am__quote=
2776 _am_result=GNU
2778 # Now try BSD make style include.
2779 if test "$am__include" = "#"; then
2780 echo '.include "confinc"' > confmf
2781 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2782 am__include=.include
2783 am__quote="\""
2784 _am_result=BSD
2789 echo "$as_me:$LINENO: result: $_am_result" >&5
2790 echo "${ECHO_T}$_am_result" >&6
2791 rm -f confinc confmf
2793 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2794 if test "${enable_dependency_tracking+set}" = set; then
2795 enableval="$enable_dependency_tracking"
2798 if test "x$enable_dependency_tracking" != xno; then
2799 am_depcomp="$ac_aux_dir/depcomp"
2800 AMDEPBACKSLASH='\'
2804 if test "x$enable_dependency_tracking" != xno; then
2805 AMDEP_TRUE=
2806 AMDEP_FALSE='#'
2807 else
2808 AMDEP_TRUE='#'
2809 AMDEP_FALSE=
2814 # test to see if srcdir already configured
2815 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2816 test -f $srcdir/config.status; then
2817 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2818 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2819 { (exit 1); exit 1; }; }
2822 # test whether we have cygpath
2823 if test -z "$CYGPATH_W"; then
2824 if (cygpath --version) >/dev/null 2>/dev/null; then
2825 CYGPATH_W='cygpath -w'
2826 else
2827 CYGPATH_W=echo
2832 # Define the identity of the package.
2833 PACKAGE=gprof
2834 VERSION=${BFD_VERSION}
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE "$PACKAGE"
2839 _ACEOF
2842 cat >>confdefs.h <<_ACEOF
2843 #define VERSION "$VERSION"
2844 _ACEOF
2846 # Some tools Automake needs.
2848 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2851 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2854 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2857 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2860 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2862 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2864 # Installed binaries are usually stripped using `strip' when the user
2865 # run `make install-strip'. However `strip' might not be the right
2866 # tool to use in cross-compilation environments, therefore Automake
2867 # will honor the `STRIP' environment variable to overrule this program.
2868 if test "$cross_compiling" != no; then
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2871 set dummy ${ac_tool_prefix}strip; ac_word=$2
2872 echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874 if test "${ac_cv_prog_STRIP+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 if test -n "$STRIP"; then
2878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2891 done
2892 done
2896 STRIP=$ac_cv_prog_STRIP
2897 if test -n "$STRIP"; then
2898 echo "$as_me:$LINENO: result: $STRIP" >&5
2899 echo "${ECHO_T}$STRIP" >&6
2900 else
2901 echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6
2906 if test -z "$ac_cv_prog_STRIP"; then
2907 ac_ct_STRIP=$STRIP
2908 # Extract the first word of "strip", so it can be a program name with args.
2909 set dummy strip; ac_word=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 if test -n "$ac_ct_STRIP"; then
2916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_ac_ct_STRIP="strip"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2929 done
2930 done
2932 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2935 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2936 if test -n "$ac_ct_STRIP"; then
2937 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2938 echo "${ECHO_T}$ac_ct_STRIP" >&6
2939 else
2940 echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6
2944 STRIP=$ac_ct_STRIP
2945 else
2946 STRIP="$ac_cv_prog_STRIP"
2950 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2952 # We need awk for the "check" target. The system "awk" is bad on
2953 # some platforms.
2954 # Always define AMTAR for backward compatibility.
2956 AMTAR=${AMTAR-"${am_missing_run}tar"}
2958 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2963 depcc="$CC" am_compiler_list=
2965 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2966 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2967 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2971 # We make a subdir and do the tests there. Otherwise we can end up
2972 # making bogus files that we don't know about and never remove. For
2973 # instance it was reported that on HP-UX the gcc test will end up
2974 # making a dummy file named `D' -- because `-MD' means `put the output
2975 # in D'.
2976 mkdir conftest.dir
2977 # Copy depcomp to subdir because otherwise we won't find it if we're
2978 # using a relative directory.
2979 cp "$am_depcomp" conftest.dir
2980 cd conftest.dir
2981 # We will build objects and dependencies in a subdirectory because
2982 # it helps to detect inapplicable dependency modes. For instance
2983 # both Tru64's cc and ICC support -MD to output dependencies as a
2984 # side effect of compilation, but ICC will put the dependencies in
2985 # the current directory while Tru64 will put them in the object
2986 # directory.
2987 mkdir sub
2989 am_cv_CC_dependencies_compiler_type=none
2990 if test "$am_compiler_list" = ""; then
2991 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2993 for depmode in $am_compiler_list; do
2994 # Setup a source with many dependencies, because some compilers
2995 # like to wrap large dependency lists on column 80 (with \), and
2996 # we should not choose a depcomp mode which is confused by this.
2998 # We need to recreate these files for each test, as the compiler may
2999 # overwrite some of them when testing with obscure command lines.
3000 # This happens at least with the AIX C compiler.
3001 : > sub/conftest.c
3002 for i in 1 2 3 4 5 6; do
3003 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3004 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3005 # Solaris 8's {/usr,}/bin/sh.
3006 touch sub/conftst$i.h
3007 done
3008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3010 case $depmode in
3011 nosideeffect)
3012 # after this tag, mechanisms are not by side-effect, so they'll
3013 # only be used when explicitly requested
3014 if test "x$enable_dependency_tracking" = xyes; then
3015 continue
3016 else
3017 break
3020 none) break ;;
3021 esac
3022 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3023 # mode. It turns out that the SunPro C++ compiler does not properly
3024 # handle `-M -o', and we need to detect this.
3025 if depmode=$depmode \
3026 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3027 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3028 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3029 >/dev/null 2>conftest.err &&
3030 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3031 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3032 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3033 # icc doesn't choke on unknown options, it will just issue warnings
3034 # or remarks (even with -Werror). So we grep stderr for any message
3035 # that says an option was ignored or not supported.
3036 # When given -MP, icc 7.0 and 7.1 complain thusly:
3037 # icc: Command line warning: ignoring option '-M'; no argument required
3038 # The diagnosis changed in icc 8.0:
3039 # icc: Command line remark: option '-MP' not supported
3040 if (grep 'ignoring option' conftest.err ||
3041 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3042 am_cv_CC_dependencies_compiler_type=$depmode
3043 break
3046 done
3048 cd ..
3049 rm -rf conftest.dir
3050 else
3051 am_cv_CC_dependencies_compiler_type=none
3055 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3056 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3057 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3062 test "x$enable_dependency_tracking" != xno \
3063 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3064 am__fastdepCC_TRUE=
3065 am__fastdepCC_FALSE='#'
3066 else
3067 am__fastdepCC_TRUE='#'
3068 am__fastdepCC_FALSE=
3074 # Check whether --enable-shared or --disable-shared was given.
3075 if test "${enable_shared+set}" = set; then
3076 enableval="$enable_shared"
3077 p=${PACKAGE-default}
3078 case $enableval in
3079 yes) enable_shared=yes ;;
3080 no) enable_shared=no ;;
3082 enable_shared=no
3083 # Look at the argument we got. We use all the common list separators.
3084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3085 for pkg in $enableval; do
3086 if test "X$pkg" = "X$p"; then
3087 enable_shared=yes
3089 done
3090 IFS="$ac_save_ifs"
3092 esac
3093 else
3094 enable_shared=yes
3096 # Check whether --enable-static or --disable-static was given.
3097 if test "${enable_static+set}" = set; then
3098 enableval="$enable_static"
3099 p=${PACKAGE-default}
3100 case $enableval in
3101 yes) enable_static=yes ;;
3102 no) enable_static=no ;;
3104 enable_static=no
3105 # Look at the argument we got. We use all the common list separators.
3106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3107 for pkg in $enableval; do
3108 if test "X$pkg" = "X$p"; then
3109 enable_static=yes
3111 done
3112 IFS="$ac_save_ifs"
3114 esac
3115 else
3116 enable_static=yes
3118 # Check whether --enable-fast-install or --disable-fast-install was given.
3119 if test "${enable_fast_install+set}" = set; then
3120 enableval="$enable_fast_install"
3121 p=${PACKAGE-default}
3122 case $enableval in
3123 yes) enable_fast_install=yes ;;
3124 no) enable_fast_install=no ;;
3126 enable_fast_install=no
3127 # Look at the argument we got. We use all the common list separators.
3128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3129 for pkg in $enableval; do
3130 if test "X$pkg" = "X$p"; then
3131 enable_fast_install=yes
3133 done
3134 IFS="$ac_save_ifs"
3136 esac
3137 else
3138 enable_fast_install=yes
3141 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3142 if test "${with_gnu_ld+set}" = set; then
3143 withval="$with_gnu_ld"
3144 test "$withval" = no || with_gnu_ld=yes
3145 else
3146 with_gnu_ld=no
3148 ac_prog=ld
3149 if test "$GCC" = yes; then
3150 # Check if gcc -print-prog-name=ld gives a path.
3151 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3152 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3153 case $host in
3154 *-*-mingw*)
3155 # gcc leaves a trailing carriage return which upsets mingw
3156 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3158 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3159 esac
3160 case $ac_prog in
3161 # Accept absolute paths.
3162 [\\/]* | [A-Za-z]:[\\/]*)
3163 re_direlt='/[^/][^/]*/\.\./'
3164 # Canonicalize the path of ld
3165 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3166 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3167 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3168 done
3169 test -z "$LD" && LD="$ac_prog"
3172 # If it fails, then pretend we aren't using GCC.
3173 ac_prog=ld
3176 # If it is relative, then search for the first ld in PATH.
3177 with_gnu_ld=unknown
3179 esac
3180 elif test "$with_gnu_ld" = yes; then
3181 echo "$as_me:$LINENO: checking for GNU ld" >&5
3182 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3183 else
3184 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3185 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3187 if test "${lt_cv_path_LD+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190 if test -z "$LD"; then
3191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3192 for ac_dir in $PATH; do
3193 test -z "$ac_dir" && ac_dir=.
3194 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3195 lt_cv_path_LD="$ac_dir/$ac_prog"
3196 # Check to see if the program is GNU ld. I'd rather use --version,
3197 # but apparently some GNU ld's only accept -v.
3198 # Break only if it was the GNU/non-GNU ld that we prefer.
3199 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3200 test "$with_gnu_ld" != no && break
3201 else
3202 test "$with_gnu_ld" != yes && break
3205 done
3206 IFS="$ac_save_ifs"
3207 else
3208 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3212 LD="$lt_cv_path_LD"
3213 if test -n "$LD"; then
3214 echo "$as_me:$LINENO: result: $LD" >&5
3215 echo "${ECHO_T}$LD" >&6
3216 else
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3220 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3221 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3222 { (exit 1); exit 1; }; }
3223 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3224 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3225 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3229 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3230 lt_cv_prog_gnu_ld=yes
3231 else
3232 lt_cv_prog_gnu_ld=no
3235 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3236 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3237 with_gnu_ld=$lt_cv_prog_gnu_ld
3240 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3241 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3242 if test "${lt_cv_ld_reload_flag+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245 lt_cv_ld_reload_flag='-r'
3247 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3248 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3249 reload_flag=$lt_cv_ld_reload_flag
3250 test -n "$reload_flag" && reload_flag=" $reload_flag"
3252 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3253 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3254 if test "${lt_cv_path_NM+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257 if test -n "$NM"; then
3258 # Let the user override the test.
3259 lt_cv_path_NM="$NM"
3260 else
3261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3262 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3263 test -z "$ac_dir" && ac_dir=.
3264 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3265 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3266 # Check to see if the nm accepts a BSD-compat flag.
3267 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3268 # nm: unknown option "B" ignored
3269 # Tru64's nm complains that /dev/null is an invalid object file
3270 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3271 lt_cv_path_NM="$tmp_nm -B"
3272 break
3273 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3274 lt_cv_path_NM="$tmp_nm -p"
3275 break
3276 else
3277 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3278 continue # so that we can try to find one that supports BSD flags
3281 done
3282 IFS="$ac_save_ifs"
3283 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3287 NM="$lt_cv_path_NM"
3288 echo "$as_me:$LINENO: result: $NM" >&5
3289 echo "${ECHO_T}$NM" >&6
3291 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3292 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3293 LN_S=$as_ln_s
3294 if test "$LN_S" = "ln -s"; then
3295 echo "$as_me:$LINENO: result: yes" >&5
3296 echo "${ECHO_T}yes" >&6
3297 else
3298 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3299 echo "${ECHO_T}no, using $LN_S" >&6
3302 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3303 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3304 if test "${lt_cv_deplibs_check_method+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 lt_cv_file_magic_cmd='$MAGIC_CMD'
3308 lt_cv_file_magic_test_file=
3309 lt_cv_deplibs_check_method='unknown'
3310 # Need to set the preceding variable on all platforms that support
3311 # interlibrary dependencies.
3312 # 'none' -- dependencies not supported.
3313 # `unknown' -- same as none, but documents that we really don't know.
3314 # 'pass_all' -- all dependencies passed with no checks.
3315 # 'test_compile' -- check by making test program.
3316 # 'file_magic [regex]' -- check by looking for files in library path
3317 # which responds to the $file_magic_cmd with a given egrep regex.
3318 # If you have `file' or equivalent on your system and you're not sure
3319 # whether `pass_all' will *always* work, you probably want this one.
3321 case $host_os in
3322 aix*)
3323 lt_cv_deplibs_check_method=pass_all
3326 beos*)
3327 lt_cv_deplibs_check_method=pass_all
3330 bsdi4*)
3331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3332 lt_cv_file_magic_cmd='/usr/bin/file -L'
3333 lt_cv_file_magic_test_file=/shlib/libc.so
3336 cygwin* | mingw* |pw32*)
3337 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3338 lt_cv_file_magic_cmd='$OBJDUMP -f'
3341 darwin* | rhapsody*)
3342 # this will be overwritten by pass_all, but leave it in just in case
3343 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3344 lt_cv_file_magic_cmd='/usr/bin/file -L'
3345 case "$host_os" in
3346 rhapsody* | darwin1.012)
3347 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3349 *) # Darwin 1.3 on
3350 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3352 esac
3353 lt_cv_deplibs_check_method=pass_all
3356 freebsd* | kfreebsd*-gnu)
3357 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3358 case $host_cpu in
3359 i*86 )
3360 # Not sure whether the presence of OpenBSD here was a mistake.
3361 # Let's accept both of them until this is cleared up.
3362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3363 lt_cv_file_magic_cmd=/usr/bin/file
3364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3366 esac
3367 else
3368 lt_cv_deplibs_check_method=pass_all
3372 gnu*)
3373 lt_cv_deplibs_check_method=pass_all
3376 hpux10.20*|hpux11*)
3377 case $host_cpu in
3378 hppa*)
3379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3380 lt_cv_file_magic_cmd=/usr/bin/file
3381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3383 ia64*)
3384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3385 lt_cv_file_magic_cmd=/usr/bin/file
3386 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3388 esac
3391 irix5* | irix6*)
3392 case $host_os in
3393 irix5*)
3394 # this will be overridden with pass_all, but let us keep it just in case
3395 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3398 case $LD in
3399 *-32|*"-32 ") libmagic=32-bit;;
3400 *-n32|*"-n32 ") libmagic=N32;;
3401 *-64|*"-64 ") libmagic=64-bit;;
3402 *) libmagic=never-match;;
3403 esac
3404 # this will be overridden with pass_all, but let us keep it just in case
3405 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3407 esac
3408 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3409 lt_cv_deplibs_check_method=pass_all
3412 # This must be Linux ELF.
3413 linux-gnu*)
3414 lt_cv_deplibs_check_method=pass_all
3417 netbsd* | knetbsd*-gnu)
3418 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3419 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3420 else
3421 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3425 newsos6)
3426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3427 lt_cv_file_magic_cmd=/usr/bin/file
3428 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3431 osf3* | osf4* | osf5*)
3432 # this will be overridden with pass_all, but let us keep it just in case
3433 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3434 lt_cv_file_magic_test_file=/shlib/libc.so
3435 lt_cv_deplibs_check_method=pass_all
3438 sco3.2v5*)
3439 lt_cv_deplibs_check_method=pass_all
3442 solaris*)
3443 lt_cv_deplibs_check_method=pass_all
3444 lt_cv_file_magic_test_file=/lib/libc.so
3447 sysv5uw[78]* | sysv4*uw2*)
3448 lt_cv_deplibs_check_method=pass_all
3451 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3452 case $host_vendor in
3453 ncr)
3454 lt_cv_deplibs_check_method=pass_all
3456 motorola)
3457 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3458 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3460 esac
3462 esac
3465 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3466 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3467 file_magic_cmd=$lt_cv_file_magic_cmd
3468 deplibs_check_method=$lt_cv_deplibs_check_method
3473 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3475 # find the maximum length of command line arguments
3476 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3477 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3478 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3482 teststring="ABCD"
3484 case $build_os in
3485 msdosdjgpp*)
3486 # On DJGPP, this test can blow up pretty badly due to problems in libc
3487 # (any single argument exceeding 2000 bytes causes a buffer overrun
3488 # during glob expansion). Even if it were fixed, the result of this
3489 # check would be larger than it should be.
3490 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3493 cygwin* | mingw*)
3494 # On Win9x/ME, this test blows up -- it succeeds, but takes
3495 # about 5 minutes as the teststring grows exponentially.
3496 # Worse, since 9x/ME are not pre-emptively multitasking,
3497 # you end up with a "frozen" computer, even though with patience
3498 # the test eventually succeeds (with a max line length of 256k).
3499 # Instead, let's just punt: use the minimum linelength reported by
3500 # all of the supported platforms: 8192 (on NT/2K/XP).
3501 lt_cv_sys_max_cmd_len=8192;
3504 amigaos*)
3505 # On AmigaOS with pdksh, this test takes hours, literally.
3506 # So we just punt and use a minimum line length of 8192.
3507 lt_cv_sys_max_cmd_len=8192;
3510 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3511 # This has been around since 386BSD, at least. Likely further.
3512 if test -x /sbin/sysctl; then
3513 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3514 elif test -x /usr/sbin/sysctl; then
3515 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3516 else
3517 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3519 # And add a safety zone
3520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3523 esac
3527 if test -n "$lt_cv_sys_max_cmd_len" ; then
3528 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3529 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3530 else
3531 echo "$as_me:$LINENO: result: none" >&5
3532 echo "${ECHO_T}none" >&6
3536 # Only perform the check for file, if the check method requires it
3537 case $deplibs_check_method in
3538 file_magic*)
3539 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3540 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3541 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3542 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 case $MAGIC_CMD in
3547 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3549 ?:/*)
3550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3553 ac_save_MAGIC_CMD="$MAGIC_CMD"
3554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3555 ac_dummy="/usr/bin:$PATH"
3556 for ac_dir in $ac_dummy; do
3557 test -z "$ac_dir" && ac_dir=.
3558 if test -f $ac_dir/${ac_tool_prefix}file; then
3559 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3560 if test -n "$file_magic_test_file"; then
3561 case $deplibs_check_method in
3562 "file_magic "*)
3563 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3565 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3566 egrep "$file_magic_regex" > /dev/null; then
3568 else
3569 cat <<EOF 1>&2
3571 *** Warning: the command libtool uses to detect shared libraries,
3572 *** $file_magic_cmd, produces output that libtool cannot recognize.
3573 *** The result is that libtool may fail to recognize shared libraries
3574 *** as such. This will affect the creation of libtool libraries that
3575 *** depend on shared libraries, but programs linked with such libtool
3576 *** libraries will work regardless of this problem. Nevertheless, you
3577 *** may want to report the problem to your system manager and/or to
3578 *** bug-libtool@gnu.org
3581 fi ;;
3582 esac
3584 break
3586 done
3587 IFS="$ac_save_ifs"
3588 MAGIC_CMD="$ac_save_MAGIC_CMD"
3590 esac
3593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3594 if test -n "$MAGIC_CMD"; then
3595 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3596 echo "${ECHO_T}$MAGIC_CMD" >&6
3597 else
3598 echo "$as_me:$LINENO: result: no" >&5
3599 echo "${ECHO_T}no" >&6
3602 if test -z "$lt_cv_path_MAGIC_CMD"; then
3603 if test -n "$ac_tool_prefix"; then
3604 echo "$as_me:$LINENO: checking for file" >&5
3605 echo $ECHO_N "checking for file... $ECHO_C" >&6
3606 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 case $MAGIC_CMD in
3611 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3613 ?:/*)
3614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3617 ac_save_MAGIC_CMD="$MAGIC_CMD"
3618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3619 ac_dummy="/usr/bin:$PATH"
3620 for ac_dir in $ac_dummy; do
3621 test -z "$ac_dir" && ac_dir=.
3622 if test -f $ac_dir/file; then
3623 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3624 if test -n "$file_magic_test_file"; then
3625 case $deplibs_check_method in
3626 "file_magic "*)
3627 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3630 egrep "$file_magic_regex" > /dev/null; then
3632 else
3633 cat <<EOF 1>&2
3635 *** Warning: the command libtool uses to detect shared libraries,
3636 *** $file_magic_cmd, produces output that libtool cannot recognize.
3637 *** The result is that libtool may fail to recognize shared libraries
3638 *** as such. This will affect the creation of libtool libraries that
3639 *** depend on shared libraries, but programs linked with such libtool
3640 *** libraries will work regardless of this problem. Nevertheless, you
3641 *** may want to report the problem to your system manager and/or to
3642 *** bug-libtool@gnu.org
3645 fi ;;
3646 esac
3648 break
3650 done
3651 IFS="$ac_save_ifs"
3652 MAGIC_CMD="$ac_save_MAGIC_CMD"
3654 esac
3657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3658 if test -n "$MAGIC_CMD"; then
3659 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3660 echo "${ECHO_T}$MAGIC_CMD" >&6
3661 else
3662 echo "$as_me:$LINENO: result: no" >&5
3663 echo "${ECHO_T}no" >&6
3666 else
3667 MAGIC_CMD=:
3673 esac
3675 if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3678 echo "$as_me:$LINENO: checking for $ac_word" >&5
3679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3680 if test "${ac_cv_prog_RANLIB+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683 if test -n "$RANLIB"; then
3684 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3697 done
3698 done
3702 RANLIB=$ac_cv_prog_RANLIB
3703 if test -n "$RANLIB"; then
3704 echo "$as_me:$LINENO: result: $RANLIB" >&5
3705 echo "${ECHO_T}$RANLIB" >&6
3706 else
3707 echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6
3712 if test -z "$ac_cv_prog_RANLIB"; then
3713 ac_ct_RANLIB=$RANLIB
3714 # Extract the first word of "ranlib", so it can be a program name with args.
3715 set dummy ranlib; ac_word=$2
3716 echo "$as_me:$LINENO: checking for $ac_word" >&5
3717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3718 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721 if test -n "$ac_ct_RANLIB"; then
3722 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3723 else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3731 ac_cv_prog_ac_ct_RANLIB="ranlib"
3732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 break 2
3735 done
3736 done
3738 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3741 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3742 if test -n "$ac_ct_RANLIB"; then
3743 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3744 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3745 else
3746 echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3750 RANLIB=$ac_ct_RANLIB
3751 else
3752 RANLIB="$ac_cv_prog_RANLIB"
3755 if test -n "$ac_tool_prefix"; then
3756 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}strip; ac_word=$2
3758 echo "$as_me:$LINENO: checking for $ac_word" >&5
3759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3760 if test "${ac_cv_prog_STRIP+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763 if test -n "$STRIP"; then
3764 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 break 2
3777 done
3778 done
3782 STRIP=$ac_cv_prog_STRIP
3783 if test -n "$STRIP"; then
3784 echo "$as_me:$LINENO: result: $STRIP" >&5
3785 echo "${ECHO_T}$STRIP" >&6
3786 else
3787 echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6
3792 if test -z "$ac_cv_prog_STRIP"; then
3793 ac_ct_STRIP=$STRIP
3794 # Extract the first word of "strip", so it can be a program name with args.
3795 set dummy strip; ac_word=$2
3796 echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801 if test -n "$ac_ct_STRIP"; then
3802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_ac_ct_STRIP="strip"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3815 done
3816 done
3818 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3822 if test -n "$ac_ct_STRIP"; then
3823 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3824 echo "${ECHO_T}$ac_ct_STRIP" >&6
3825 else
3826 echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6
3830 STRIP=$ac_ct_STRIP
3831 else
3832 STRIP="$ac_cv_prog_STRIP"
3836 # Check for any special flags to pass to ltconfig.
3837 libtool_flags="--cache-file=$cache_file"
3838 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3839 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3840 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3841 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3842 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3845 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3846 if test "${enable_libtool_lock+set}" = set; then
3847 enableval="$enable_libtool_lock"
3850 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3851 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3854 # Check whether --with-pic or --without-pic was given.
3855 if test "${with_pic+set}" = set; then
3856 withval="$with_pic"
3857 pic_mode="$withval"
3858 else
3859 pic_mode=default
3861 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3862 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3864 # Some flags need to be propagated to the compiler or linker for good
3865 # libtool support.
3866 case $host in
3867 *-*-irix6*)
3868 # Find out which ABI we are using.
3869 echo '#line 3869 "configure"' > conftest.$ac_ext
3870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3871 (eval $ac_compile) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; then
3875 if test "$lt_cv_prog_gnu_ld" = yes; then
3876 case `/usr/bin/file conftest.$ac_objext` in
3877 *32-bit*)
3878 LD="${LD-ld} -melf32bsmip"
3880 *N32*)
3881 LD="${LD-ld} -melf32bmipn32"
3883 *64-bit*)
3884 LD="${LD-ld} -melf64bmip"
3886 esac
3887 else
3888 case `/usr/bin/file conftest.$ac_objext` in
3889 *32-bit*)
3890 LD="${LD-ld} -32"
3892 *N32*)
3893 LD="${LD-ld} -n32"
3895 *64-bit*)
3896 LD="${LD-ld} -64"
3898 esac
3901 rm -rf conftest*
3904 ia64-*-hpux*)
3905 # Find out which ABI we are using.
3906 echo 'int i;' > conftest.$ac_ext
3907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908 (eval $ac_compile) 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; then
3912 case "`/usr/bin/file conftest.o`" in
3913 *ELF-32*)
3914 HPUX_IA64_MODE="32"
3916 *ELF-64*)
3917 HPUX_IA64_MODE="64"
3919 esac
3921 rm -rf conftest*
3924 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3925 # Find out which ABI we are using.
3926 echo 'int i;' > conftest.$ac_ext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928 (eval $ac_compile) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; then
3932 case "`/usr/bin/file conftest.o`" in
3933 *32-bit*)
3934 case $host in
3935 x86_64-*linux*)
3936 LD="${LD-ld} -m elf_i386"
3938 ppc64-*linux*|powerpc64-*linux*)
3939 LD="${LD-ld} -m elf32ppclinux"
3941 s390x-*linux*)
3942 LD="${LD-ld} -m elf_s390"
3944 sparc64-*linux*)
3945 LD="${LD-ld} -m elf32_sparc"
3947 esac
3949 *64-bit*)
3950 case $host in
3951 x86_64-*linux*)
3952 LD="${LD-ld} -m elf_x86_64"
3954 ppc*-*linux*|powerpc*-*linux*)
3955 LD="${LD-ld} -m elf64ppc"
3957 s390*-*linux*)
3958 LD="${LD-ld} -m elf64_s390"
3960 sparc*-*linux*)
3961 LD="${LD-ld} -m elf64_sparc"
3963 esac
3965 esac
3967 rm -rf conftest*
3970 *-*-sco3.2v5*)
3971 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3972 SAVE_CFLAGS="$CFLAGS"
3973 CFLAGS="$CFLAGS -belf"
3974 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3975 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3976 if test "${lt_cv_cc_needs_belf+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3995 main ()
3999 return 0;
4001 _ACEOF
4002 rm -f conftest.$ac_objext conftest$ac_exeext
4003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4004 (eval $ac_link) 2>conftest.er1
4005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } &&
4011 { ac_try='test -z "$ac_c_werror_flag"
4012 || test ! -s conftest.err'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 (eval $ac_try) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; } &&
4018 { ac_try='test -s conftest$ac_exeext'
4019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 (eval $ac_try) 2>&5
4021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4024 lt_cv_cc_needs_belf=yes
4025 else
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 lt_cv_cc_needs_belf=no
4031 rm -f conftest.err conftest.$ac_objext \
4032 conftest$ac_exeext conftest.$ac_ext
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4041 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4042 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4043 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4044 CFLAGS="$SAVE_CFLAGS"
4049 esac
4052 # Save cache, so that ltconfig can load it
4053 cat >confcache <<\_ACEOF
4054 # This file is a shell script that caches the results of configure
4055 # tests run on this system so they can be shared between configure
4056 # scripts and configure runs, see configure's option --config-cache.
4057 # It is not useful on other systems. If it contains results you don't
4058 # want to keep, you may remove or edit it.
4060 # config.status only pays attention to the cache file if you give it
4061 # the --recheck option to rerun configure.
4063 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4064 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4065 # following values.
4067 _ACEOF
4069 # The following way of writing the cache mishandles newlines in values,
4070 # but we know of no workaround that is simple, portable, and efficient.
4071 # So, don't put newlines in cache variables' values.
4072 # Ultrix sh set writes to stderr and can't be redirected directly,
4073 # and sets the high bit in the cache file unless we assign to the vars.
4075 (set) 2>&1 |
4076 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4077 *ac_space=\ *)
4078 # `set' does not quote correctly, so add quotes (double-quote
4079 # substitution turns \\\\ into \\, and sed turns \\ into \).
4080 sed -n \
4081 "s/'/'\\\\''/g;
4082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4085 # `set' quotes correctly as required by POSIX, so do not add quotes.
4086 sed -n \
4087 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4089 esac;
4091 sed '
4092 t clear
4093 : clear
4094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4095 t end
4096 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4097 : end' >>confcache
4098 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4099 if test -w $cache_file; then
4100 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4101 cat confcache >$cache_file
4102 else
4103 echo "not updating unwritable cache $cache_file"
4106 rm -f confcache
4108 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4109 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4110 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4111 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4112 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4113 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4114 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4115 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4116 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4117 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4118 echo "$as_me: error: libtool configure failed" >&2;}
4119 { (exit 1); exit 1; }; }
4121 # Reload cache, that may have been modified by ltconfig
4122 if test -r "$cache_file"; then
4123 # Some versions of bash will fail to source /dev/null (special
4124 # files actually), so we avoid doing that.
4125 if test -f "$cache_file"; then
4126 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4127 echo "$as_me: loading cache $cache_file" >&6;}
4128 case $cache_file in
4129 [\\/]* | ?:[\\/]* ) . $cache_file;;
4130 *) . ./$cache_file;;
4131 esac
4133 else
4134 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4135 echo "$as_me: creating cache $cache_file" >&6;}
4136 >$cache_file
4140 # This can be used to rebuild libtool when needed
4141 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4143 # Always use our own libtool.
4144 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4146 # Redirect the config.log output again, so that the ltconfig log is not
4147 # clobbered by the next message.
4148 exec 5>>./config.log
4156 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
4159 ac_ext=c
4160 ac_cpp='$CPP $CPPFLAGS'
4161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4166 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4167 echo "$as_me:$LINENO: checking for $ac_word" >&5
4168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4169 if test "${ac_cv_prog_CC+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172 if test -n "$CC"; then
4173 ac_cv_prog_CC="$CC" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4186 done
4187 done
4191 CC=$ac_cv_prog_CC
4192 if test -n "$CC"; then
4193 echo "$as_me:$LINENO: result: $CC" >&5
4194 echo "${ECHO_T}$CC" >&6
4195 else
4196 echo "$as_me:$LINENO: result: no" >&5
4197 echo "${ECHO_T}no" >&6
4201 if test -z "$ac_cv_prog_CC"; then
4202 ac_ct_CC=$CC
4203 # Extract the first word of "gcc", so it can be a program name with args.
4204 set dummy gcc; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210 if test -n "$ac_ct_CC"; then
4211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_ac_ct_CC="gcc"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4224 done
4225 done
4229 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4230 if test -n "$ac_ct_CC"; then
4231 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4232 echo "${ECHO_T}$ac_ct_CC" >&6
4233 else
4234 echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6
4238 CC=$ac_ct_CC
4239 else
4240 CC="$ac_cv_prog_CC"
4243 if test -z "$CC"; then
4244 if test -n "$ac_tool_prefix"; then
4245 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4246 set dummy ${ac_tool_prefix}cc; ac_word=$2
4247 echo "$as_me:$LINENO: checking for $ac_word" >&5
4248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4249 if test "${ac_cv_prog_CC+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 else
4252 if test -n "$CC"; then
4253 ac_cv_prog_CC="$CC" # Let the user override the test.
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262 ac_cv_prog_CC="${ac_tool_prefix}cc"
4263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 break 2
4266 done
4267 done
4271 CC=$ac_cv_prog_CC
4272 if test -n "$CC"; then
4273 echo "$as_me:$LINENO: result: $CC" >&5
4274 echo "${ECHO_T}$CC" >&6
4275 else
4276 echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4281 if test -z "$ac_cv_prog_CC"; then
4282 ac_ct_CC=$CC
4283 # Extract the first word of "cc", so it can be a program name with args.
4284 set dummy cc; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 if test -n "$ac_ct_CC"; then
4291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_ac_ct_CC="cc"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4304 done
4305 done
4309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4310 if test -n "$ac_ct_CC"; then
4311 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4312 echo "${ECHO_T}$ac_ct_CC" >&6
4313 else
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4318 CC=$ac_ct_CC
4319 else
4320 CC="$ac_cv_prog_CC"
4324 if test -z "$CC"; then
4325 # Extract the first word of "cc", so it can be a program name with args.
4326 set dummy cc; 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_prog_CC+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 if test -n "$CC"; then
4333 ac_cv_prog_CC="$CC" # Let the user override the test.
4334 else
4335 ac_prog_rejected=no
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4343 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4344 ac_prog_rejected=yes
4345 continue
4347 ac_cv_prog_CC="cc"
4348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4351 done
4352 done
4354 if test $ac_prog_rejected = yes; then
4355 # We found a bogon in the path, so make sure we never use it.
4356 set dummy $ac_cv_prog_CC
4357 shift
4358 if test $# != 0; then
4359 # We chose a different compiler from the bogus one.
4360 # However, it has the same basename, so the bogon will be chosen
4361 # first if we set CC to just the basename; use the full file name.
4362 shift
4363 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4368 CC=$ac_cv_prog_CC
4369 if test -n "$CC"; then
4370 echo "$as_me:$LINENO: result: $CC" >&5
4371 echo "${ECHO_T}$CC" >&6
4372 else
4373 echo "$as_me:$LINENO: result: no" >&5
4374 echo "${ECHO_T}no" >&6
4378 if test -z "$CC"; then
4379 if test -n "$ac_tool_prefix"; then
4380 for ac_prog in cl
4382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4384 echo "$as_me:$LINENO: checking for $ac_word" >&5
4385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4386 if test "${ac_cv_prog_CC+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389 if test -n "$CC"; then
4390 ac_cv_prog_CC="$CC" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4403 done
4404 done
4408 CC=$ac_cv_prog_CC
4409 if test -n "$CC"; then
4410 echo "$as_me:$LINENO: result: $CC" >&5
4411 echo "${ECHO_T}$CC" >&6
4412 else
4413 echo "$as_me:$LINENO: result: no" >&5
4414 echo "${ECHO_T}no" >&6
4417 test -n "$CC" && break
4418 done
4420 if test -z "$CC"; then
4421 ac_ct_CC=$CC
4422 for ac_prog in cl
4424 # Extract the first word of "$ac_prog", so it can be a program name with args.
4425 set dummy $ac_prog; ac_word=$2
4426 echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431 if test -n "$ac_ct_CC"; then
4432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441 ac_cv_prog_ac_ct_CC="$ac_prog"
4442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 break 2
4445 done
4446 done
4450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4451 if test -n "$ac_ct_CC"; then
4452 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4453 echo "${ECHO_T}$ac_ct_CC" >&6
4454 else
4455 echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4459 test -n "$ac_ct_CC" && break
4460 done
4462 CC=$ac_ct_CC
4468 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4469 See \`config.log' for more details." >&5
4470 echo "$as_me: error: no acceptable C compiler found in \$PATH
4471 See \`config.log' for more details." >&2;}
4472 { (exit 1); exit 1; }; }
4474 # Provide some information about the compiler.
4475 echo "$as_me:$LINENO:" \
4476 "checking for C compiler version" >&5
4477 ac_compiler=`set X $ac_compile; echo $2`
4478 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4479 (eval $ac_compiler --version </dev/null >&5) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }
4483 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4484 (eval $ac_compiler -v </dev/null >&5) 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }
4488 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4489 (eval $ac_compiler -V </dev/null >&5) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }
4494 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4495 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4496 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499 cat >conftest.$ac_ext <<_ACEOF
4500 /* confdefs.h. */
4501 _ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4507 main ()
4509 #ifndef __GNUC__
4510 choke me
4511 #endif
4514 return 0;
4516 _ACEOF
4517 rm -f conftest.$ac_objext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4519 (eval $ac_compile) 2>conftest.er1
4520 ac_status=$?
4521 grep -v '^ *+' conftest.er1 >conftest.err
4522 rm -f conftest.er1
4523 cat conftest.err >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } &&
4526 { ac_try='test -z "$ac_c_werror_flag"
4527 || test ! -s conftest.err'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 (eval $ac_try) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; } &&
4533 { ac_try='test -s conftest.$ac_objext'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 (eval $ac_try) 2>&5
4536 ac_status=$?
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4539 ac_compiler_gnu=yes
4540 else
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4544 ac_compiler_gnu=no
4546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4547 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4550 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4551 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4552 GCC=`test $ac_compiler_gnu = yes && echo yes`
4553 ac_test_CFLAGS=${CFLAGS+set}
4554 ac_save_CFLAGS=$CFLAGS
4555 CFLAGS="-g"
4556 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4557 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4558 if test "${ac_cv_prog_cc_g+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h. */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4569 main ()
4573 return 0;
4575 _ACEOF
4576 rm -f conftest.$ac_objext
4577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4578 (eval $ac_compile) 2>conftest.er1
4579 ac_status=$?
4580 grep -v '^ *+' conftest.er1 >conftest.err
4581 rm -f conftest.er1
4582 cat conftest.err >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } &&
4585 { ac_try='test -z "$ac_c_werror_flag"
4586 || test ! -s conftest.err'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; } &&
4592 { ac_try='test -s conftest.$ac_objext'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; }; then
4598 ac_cv_prog_cc_g=yes
4599 else
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4603 ac_cv_prog_cc_g=no
4605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4607 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4608 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4609 if test "$ac_test_CFLAGS" = set; then
4610 CFLAGS=$ac_save_CFLAGS
4611 elif test $ac_cv_prog_cc_g = yes; then
4612 if test "$GCC" = yes; then
4613 CFLAGS="-g -O2"
4614 else
4615 CFLAGS="-g"
4617 else
4618 if test "$GCC" = yes; then
4619 CFLAGS="-O2"
4620 else
4621 CFLAGS=
4624 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4625 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4626 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629 ac_cv_prog_cc_stdc=no
4630 ac_save_CC=$CC
4631 cat >conftest.$ac_ext <<_ACEOF
4632 /* confdefs.h. */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 #include <stdarg.h>
4638 #include <stdio.h>
4639 #include <sys/types.h>
4640 #include <sys/stat.h>
4641 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4642 struct buf { int x; };
4643 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4644 static char *e (p, i)
4645 char **p;
4646 int i;
4648 return p[i];
4650 static char *f (char * (*g) (char **, int), char **p, ...)
4652 char *s;
4653 va_list v;
4654 va_start (v,p);
4655 s = g (p, va_arg (v,int));
4656 va_end (v);
4657 return s;
4660 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4661 function prototypes and stuff, but not '\xHH' hex character constants.
4662 These don't provoke an error unfortunately, instead are silently treated
4663 as 'x'. The following induces an error, until -std1 is added to get
4664 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4665 array size at least. It's necessary to write '\x00'==0 to get something
4666 that's true only with -std1. */
4667 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4669 int test (int i, double x);
4670 struct s1 {int (*f) (int a);};
4671 struct s2 {int (*f) (double a);};
4672 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4673 int argc;
4674 char **argv;
4676 main ()
4678 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4680 return 0;
4682 _ACEOF
4683 # Don't try gcc -ansi; that turns off useful extensions and
4684 # breaks some systems' header files.
4685 # AIX -qlanglvl=ansi
4686 # Ultrix and OSF/1 -std1
4687 # HP-UX 10.20 and later -Ae
4688 # HP-UX older versions -Aa -D_HPUX_SOURCE
4689 # SVR4 -Xc -D__EXTENSIONS__
4690 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4692 CC="$ac_save_CC $ac_arg"
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>conftest.er1
4696 ac_status=$?
4697 grep -v '^ *+' conftest.er1 >conftest.err
4698 rm -f conftest.er1
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try='test -z "$ac_c_werror_flag"
4703 || test ! -s conftest.err'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 (eval $ac_try) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; } &&
4709 { ac_try='test -s conftest.$ac_objext'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 (eval $ac_try) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; }; then
4715 ac_cv_prog_cc_stdc=$ac_arg
4716 break
4717 else
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4722 rm -f conftest.err conftest.$ac_objext
4723 done
4724 rm -f conftest.$ac_ext conftest.$ac_objext
4725 CC=$ac_save_CC
4729 case "x$ac_cv_prog_cc_stdc" in
4730 x|xno)
4731 echo "$as_me:$LINENO: result: none needed" >&5
4732 echo "${ECHO_T}none needed" >&6 ;;
4734 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4735 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4736 CC="$CC $ac_cv_prog_cc_stdc" ;;
4737 esac
4739 # Some people use a C++ compiler to compile C. Since we use `exit',
4740 # in C++ we need to declare it. In case someone uses the same compiler
4741 # for both compiling C and C++ we need to have the C++ compiler decide
4742 # the declaration of exit, since it's the most demanding environment.
4743 cat >conftest.$ac_ext <<_ACEOF
4744 #ifndef __cplusplus
4745 choke me
4746 #endif
4747 _ACEOF
4748 rm -f conftest.$ac_objext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750 (eval $ac_compile) 2>conftest.er1
4751 ac_status=$?
4752 grep -v '^ *+' conftest.er1 >conftest.err
4753 rm -f conftest.er1
4754 cat conftest.err >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } &&
4757 { ac_try='test -z "$ac_c_werror_flag"
4758 || test ! -s conftest.err'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 (eval $ac_try) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; } &&
4764 { ac_try='test -s conftest.$ac_objext'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 (eval $ac_try) 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; }; then
4770 for ac_declaration in \
4771 '' \
4772 'extern "C" void std::exit (int) throw (); using std::exit;' \
4773 'extern "C" void std::exit (int); using std::exit;' \
4774 'extern "C" void exit (int) throw ();' \
4775 'extern "C" void exit (int);' \
4776 'void exit (int);'
4778 cat >conftest.$ac_ext <<_ACEOF
4779 /* confdefs.h. */
4780 _ACEOF
4781 cat confdefs.h >>conftest.$ac_ext
4782 cat >>conftest.$ac_ext <<_ACEOF
4783 /* end confdefs.h. */
4784 $ac_declaration
4785 #include <stdlib.h>
4787 main ()
4789 exit (42);
4791 return 0;
4793 _ACEOF
4794 rm -f conftest.$ac_objext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796 (eval $ac_compile) 2>conftest.er1
4797 ac_status=$?
4798 grep -v '^ *+' conftest.er1 >conftest.err
4799 rm -f conftest.er1
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -z "$ac_c_werror_flag"
4804 || test ! -s conftest.err'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 (eval $ac_try) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; } &&
4810 { ac_try='test -s conftest.$ac_objext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4817 else
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4821 continue
4823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4824 cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h. */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 $ac_declaration
4832 main ()
4834 exit (42);
4836 return 0;
4838 _ACEOF
4839 rm -f conftest.$ac_objext
4840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4841 (eval $ac_compile) 2>conftest.er1
4842 ac_status=$?
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
4848 { ac_try='test -z "$ac_c_werror_flag"
4849 || test ! -s conftest.err'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; } &&
4855 { ac_try='test -s conftest.$ac_objext'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 (eval $ac_try) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4861 break
4862 else
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4868 done
4869 rm -f conftest*
4870 if test -n "$ac_declaration"; then
4871 echo '#ifdef __cplusplus' >>confdefs.h
4872 echo $ac_declaration >>confdefs.h
4873 echo '#endif' >>confdefs.h
4876 else
4877 echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4882 ac_ext=c
4883 ac_cpp='$CPP $CPPFLAGS'
4884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888 # Find a good install program. We prefer a C program (faster),
4889 # so one script is as good as another. But avoid the broken or
4890 # incompatible versions:
4891 # SysV /etc/install, /usr/sbin/install
4892 # SunOS /usr/etc/install
4893 # IRIX /sbin/install
4894 # AIX /bin/install
4895 # AmigaOS /C/install, which installs bootblocks on floppy discs
4896 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4897 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4898 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4899 # OS/2's system install, which has a completely different semantic
4900 # ./install, which can be erroneously created by make from ./install.sh.
4901 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4902 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4903 if test -z "$INSTALL"; then
4904 if test "${ac_cv_path_install+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
4912 # Account for people who put trailing slashes in PATH elements.
4913 case $as_dir/ in
4914 ./ | .// | /cC/* | \
4915 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4916 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4917 /usr/ucb/* ) ;;
4919 # OSF1 and SCO ODT 3.0 have their own names for install.
4920 # Don't use installbsd from OSF since it installs stuff as root
4921 # by default.
4922 for ac_prog in ginstall scoinst install; do
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4925 if test $ac_prog = install &&
4926 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4927 # AIX install. It has an incompatible calling convention.
4929 elif test $ac_prog = install &&
4930 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4931 # program-specific install script used by HP pwplus--don't use.
4933 else
4934 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4935 break 3
4938 done
4939 done
4941 esac
4942 done
4946 if test "${ac_cv_path_install+set}" = set; then
4947 INSTALL=$ac_cv_path_install
4948 else
4949 # As a last resort, use the slow shell script. We don't cache a
4950 # path for INSTALL within a source directory, because that will
4951 # break other packages using the cache if that directory is
4952 # removed, or if the path is relative.
4953 INSTALL=$ac_install_sh
4956 echo "$as_me:$LINENO: result: $INSTALL" >&5
4957 echo "${ECHO_T}$INSTALL" >&6
4959 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4960 # It thinks the first close brace ends the variable substitution.
4961 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4963 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4965 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4969 for ac_func in setmode
4971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4972 echo "$as_me:$LINENO: checking for $ac_func" >&5
4973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4974 if eval "test \"\${$as_ac_var+set}\" = set"; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977 cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h. */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4985 #define $ac_func innocuous_$ac_func
4987 /* System header to define __stub macros and hopefully few prototypes,
4988 which can conflict with char $ac_func (); below.
4989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4990 <limits.h> exists even on freestanding compilers. */
4992 #ifdef __STDC__
4993 # include <limits.h>
4994 #else
4995 # include <assert.h>
4996 #endif
4998 #undef $ac_func
5000 /* Override any gcc2 internal prototype to avoid an error. */
5001 #ifdef __cplusplus
5002 extern "C"
5004 #endif
5005 /* We use char because int might match the return type of a gcc2
5006 builtin and then its argument prototype would still apply. */
5007 char $ac_func ();
5008 /* The GNU C library defines this for functions which it implements
5009 to always fail with ENOSYS. Some functions are actually named
5010 something starting with __ and the normal name is an alias. */
5011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5012 choke me
5013 #else
5014 char (*f) () = $ac_func;
5015 #endif
5016 #ifdef __cplusplus
5018 #endif
5021 main ()
5023 return f != $ac_func;
5025 return 0;
5027 _ACEOF
5028 rm -f conftest.$ac_objext conftest$ac_exeext
5029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5030 (eval $ac_link) 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -z "$ac_c_werror_flag"
5038 || test ! -s conftest.err'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; } &&
5044 { ac_try='test -s conftest$ac_exeext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 (eval $ac_try) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 eval "$as_ac_var=yes"
5051 else
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 eval "$as_ac_var=no"
5057 rm -f conftest.err conftest.$ac_objext \
5058 conftest$ac_exeext conftest.$ac_ext
5060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5062 if test `eval echo '${'$as_ac_var'}'` = yes; then
5063 cat >>confdefs.h <<_ACEOF
5064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5065 _ACEOF
5068 done
5071 ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga"
5072 if test -n "$ac_tool_prefix"; then
5073 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5074 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5075 echo "$as_me:$LINENO: checking for $ac_word" >&5
5076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5077 if test "${ac_cv_prog_RANLIB+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080 if test -n "$RANLIB"; then
5081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5082 else
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5086 IFS=$as_save_IFS
5087 test -z "$as_dir" && as_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 break 2
5094 done
5095 done
5099 RANLIB=$ac_cv_prog_RANLIB
5100 if test -n "$RANLIB"; then
5101 echo "$as_me:$LINENO: result: $RANLIB" >&5
5102 echo "${ECHO_T}$RANLIB" >&6
5103 else
5104 echo "$as_me:$LINENO: result: no" >&5
5105 echo "${ECHO_T}no" >&6
5109 if test -z "$ac_cv_prog_RANLIB"; then
5110 ac_ct_RANLIB=$RANLIB
5111 # Extract the first word of "ranlib", so it can be a program name with args.
5112 set dummy ranlib; ac_word=$2
5113 echo "$as_me:$LINENO: checking for $ac_word" >&5
5114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5115 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118 if test -n "$ac_ct_RANLIB"; then
5119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128 ac_cv_prog_ac_ct_RANLIB="ranlib"
5129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5132 done
5133 done
5135 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5138 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5139 if test -n "$ac_ct_RANLIB"; then
5140 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5141 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5142 else
5143 echo "$as_me:$LINENO: result: no" >&5
5144 echo "${ECHO_T}no" >&6
5147 RANLIB=$ac_ct_RANLIB
5148 else
5149 RANLIB="$ac_cv_prog_RANLIB"
5152 ac_ext=c
5153 ac_cpp='$CPP $CPPFLAGS'
5154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5157 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5158 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5159 # On Suns, sometimes $CPP names a directory.
5160 if test -n "$CPP" && test -d "$CPP"; then
5161 CPP=
5163 if test -z "$CPP"; then
5164 if test "${ac_cv_prog_CPP+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167 # Double quotes because CPP needs to be expanded
5168 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5170 ac_preproc_ok=false
5171 for ac_c_preproc_warn_flag in '' yes
5173 # Use a header file that comes with gcc, so configuring glibc
5174 # with a fresh cross-compiler works.
5175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5176 # <limits.h> exists even on freestanding compilers.
5177 # On the NeXT, cc -E runs the code through the compiler's parser,
5178 # not just through cpp. "Syntax error" is here to catch this case.
5179 cat >conftest.$ac_ext <<_ACEOF
5180 /* confdefs.h. */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5185 #ifdef __STDC__
5186 # include <limits.h>
5187 #else
5188 # include <assert.h>
5189 #endif
5190 Syntax error
5191 _ACEOF
5192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5194 ac_status=$?
5195 grep -v '^ *+' conftest.er1 >conftest.err
5196 rm -f conftest.er1
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } >/dev/null; then
5200 if test -s conftest.err; then
5201 ac_cpp_err=$ac_c_preproc_warn_flag
5202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5203 else
5204 ac_cpp_err=
5206 else
5207 ac_cpp_err=yes
5209 if test -z "$ac_cpp_err"; then
5211 else
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5215 # Broken: fails on valid input.
5216 continue
5218 rm -f conftest.err conftest.$ac_ext
5220 # OK, works on sane cases. Now check whether non-existent headers
5221 # can be detected and how.
5222 cat >conftest.$ac_ext <<_ACEOF
5223 /* confdefs.h. */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5228 #include <ac_nonexistent.h>
5229 _ACEOF
5230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } >/dev/null; then
5238 if test -s conftest.err; then
5239 ac_cpp_err=$ac_c_preproc_warn_flag
5240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5241 else
5242 ac_cpp_err=
5244 else
5245 ac_cpp_err=yes
5247 if test -z "$ac_cpp_err"; then
5248 # Broken: success on invalid input.
5249 continue
5250 else
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5254 # Passes both tests.
5255 ac_preproc_ok=:
5256 break
5258 rm -f conftest.err conftest.$ac_ext
5260 done
5261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5262 rm -f conftest.err conftest.$ac_ext
5263 if $ac_preproc_ok; then
5264 break
5267 done
5268 ac_cv_prog_CPP=$CPP
5271 CPP=$ac_cv_prog_CPP
5272 else
5273 ac_cv_prog_CPP=$CPP
5275 echo "$as_me:$LINENO: result: $CPP" >&5
5276 echo "${ECHO_T}$CPP" >&6
5277 ac_preproc_ok=false
5278 for ac_c_preproc_warn_flag in '' yes
5280 # Use a header file that comes with gcc, so configuring glibc
5281 # with a fresh cross-compiler works.
5282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5283 # <limits.h> exists even on freestanding compilers.
5284 # On the NeXT, cc -E runs the code through the compiler's parser,
5285 # not just through cpp. "Syntax error" is here to catch this case.
5286 cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h. */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292 #ifdef __STDC__
5293 # include <limits.h>
5294 #else
5295 # include <assert.h>
5296 #endif
5297 Syntax error
5298 _ACEOF
5299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } >/dev/null; then
5307 if test -s conftest.err; then
5308 ac_cpp_err=$ac_c_preproc_warn_flag
5309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5310 else
5311 ac_cpp_err=
5313 else
5314 ac_cpp_err=yes
5316 if test -z "$ac_cpp_err"; then
5318 else
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5322 # Broken: fails on valid input.
5323 continue
5325 rm -f conftest.err conftest.$ac_ext
5327 # OK, works on sane cases. Now check whether non-existent headers
5328 # can be detected and how.
5329 cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h. */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 #include <ac_nonexistent.h>
5336 _ACEOF
5337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } >/dev/null; then
5345 if test -s conftest.err; then
5346 ac_cpp_err=$ac_c_preproc_warn_flag
5347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5348 else
5349 ac_cpp_err=
5351 else
5352 ac_cpp_err=yes
5354 if test -z "$ac_cpp_err"; then
5355 # Broken: success on invalid input.
5356 continue
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 # Passes both tests.
5362 ac_preproc_ok=:
5363 break
5365 rm -f conftest.err conftest.$ac_ext
5367 done
5368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5369 rm -f conftest.err conftest.$ac_ext
5370 if $ac_preproc_ok; then
5372 else
5373 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5374 See \`config.log' for more details." >&5
5375 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5376 See \`config.log' for more details." >&2;}
5377 { (exit 1); exit 1; }; }
5380 ac_ext=c
5381 ac_cpp='$CPP $CPPFLAGS'
5382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387 echo "$as_me:$LINENO: checking for egrep" >&5
5388 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5389 if test "${ac_cv_prog_egrep+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5393 then ac_cv_prog_egrep='grep -E'
5394 else ac_cv_prog_egrep='egrep'
5397 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5398 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5399 EGREP=$ac_cv_prog_egrep
5402 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5403 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5404 if test "${ac_cv_header_stdc+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413 #include <stdlib.h>
5414 #include <stdarg.h>
5415 #include <string.h>
5416 #include <float.h>
5419 main ()
5423 return 0;
5425 _ACEOF
5426 rm -f conftest.$ac_objext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5428 (eval $ac_compile) 2>conftest.er1
5429 ac_status=$?
5430 grep -v '^ *+' conftest.er1 >conftest.err
5431 rm -f conftest.er1
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } &&
5435 { ac_try='test -z "$ac_c_werror_flag"
5436 || test ! -s conftest.err'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 (eval $ac_try) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; } &&
5442 { ac_try='test -s conftest.$ac_objext'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 (eval $ac_try) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5448 ac_cv_header_stdc=yes
5449 else
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5453 ac_cv_header_stdc=no
5455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5457 if test $ac_cv_header_stdc = yes; then
5458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5459 cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h. */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 #include <string.h>
5467 _ACEOF
5468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5469 $EGREP "memchr" >/dev/null 2>&1; then
5471 else
5472 ac_cv_header_stdc=no
5474 rm -f conftest*
5478 if test $ac_cv_header_stdc = yes; then
5479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5480 cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h. */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 #include <stdlib.h>
5488 _ACEOF
5489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5490 $EGREP "free" >/dev/null 2>&1; then
5492 else
5493 ac_cv_header_stdc=no
5495 rm -f conftest*
5499 if test $ac_cv_header_stdc = yes; then
5500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5501 if test "$cross_compiling" = yes; then
5503 else
5504 cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h. */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 #include <ctype.h>
5511 #if ((' ' & 0x0FF) == 0x020)
5512 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5513 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5514 #else
5515 # define ISLOWER(c) \
5516 (('a' <= (c) && (c) <= 'i') \
5517 || ('j' <= (c) && (c) <= 'r') \
5518 || ('s' <= (c) && (c) <= 'z'))
5519 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5520 #endif
5522 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5524 main ()
5526 int i;
5527 for (i = 0; i < 256; i++)
5528 if (XOR (islower (i), ISLOWER (i))
5529 || toupper (i) != TOUPPER (i))
5530 exit(2);
5531 exit (0);
5533 _ACEOF
5534 rm -f conftest$ac_exeext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536 (eval $ac_link) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 (eval $ac_try) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5546 else
5547 echo "$as_me: program exited with status $ac_status" >&5
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5551 ( exit $ac_status )
5552 ac_cv_header_stdc=no
5554 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5558 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5559 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5560 if test $ac_cv_header_stdc = yes; then
5562 cat >>confdefs.h <<\_ACEOF
5563 #define STDC_HEADERS 1
5564 _ACEOF
5568 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5569 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5570 if test "${ac_cv_c_const+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5581 main ()
5583 /* FIXME: Include the comments suggested by Paul. */
5584 #ifndef __cplusplus
5585 /* Ultrix mips cc rejects this. */
5586 typedef int charset[2];
5587 const charset x;
5588 /* SunOS 4.1.1 cc rejects this. */
5589 char const *const *ccp;
5590 char **p;
5591 /* NEC SVR4.0.2 mips cc rejects this. */
5592 struct point {int x, y;};
5593 static struct point const zero = {0,0};
5594 /* AIX XL C 1.02.0.0 rejects this.
5595 It does not let you subtract one const X* pointer from another in
5596 an arm of an if-expression whose if-part is not a constant
5597 expression */
5598 const char *g = "string";
5599 ccp = &g + (g ? g-g : 0);
5600 /* HPUX 7.0 cc rejects these. */
5601 ++ccp;
5602 p = (char**) ccp;
5603 ccp = (char const *const *) p;
5604 { /* SCO 3.2v4 cc rejects this. */
5605 char *t;
5606 char const *s = 0 ? (char *) 0 : (char const *) 0;
5608 *t++ = 0;
5610 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5611 int x[] = {25, 17};
5612 const int *foo = &x[0];
5613 ++foo;
5615 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5616 typedef const int *iptr;
5617 iptr p = 0;
5618 ++p;
5620 { /* AIX XL C 1.02.0.0 rejects this saying
5621 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5622 struct s { int j; const int *ap[3]; };
5623 struct s *b; b->j = 5;
5625 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5626 const int foo = 10;
5628 #endif
5631 return 0;
5633 _ACEOF
5634 rm -f conftest.$ac_objext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636 (eval $ac_compile) 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try='test -z "$ac_c_werror_flag"
5644 || test ! -s conftest.err'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 (eval $ac_try) 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; } &&
5650 { ac_try='test -s conftest.$ac_objext'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
5656 ac_cv_c_const=yes
5657 else
5658 echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5661 ac_cv_c_const=no
5663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5665 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5666 echo "${ECHO_T}$ac_cv_c_const" >&6
5667 if test $ac_cv_c_const = no; then
5669 cat >>confdefs.h <<\_ACEOF
5670 #define const
5671 _ACEOF
5675 echo "$as_me:$LINENO: checking for inline" >&5
5676 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5677 if test "${ac_cv_c_inline+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680 ac_cv_c_inline=no
5681 for ac_kw in inline __inline__ __inline; do
5682 cat >conftest.$ac_ext <<_ACEOF
5683 /* confdefs.h. */
5684 _ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 #ifndef __cplusplus
5689 typedef int foo_t;
5690 static $ac_kw foo_t static_foo () {return 0; }
5691 $ac_kw foo_t foo () {return 0; }
5692 #endif
5694 _ACEOF
5695 rm -f conftest.$ac_objext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5697 (eval $ac_compile) 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } &&
5704 { ac_try='test -z "$ac_c_werror_flag"
5705 || test ! -s conftest.err'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 (eval $ac_try) 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; } &&
5711 { ac_try='test -s conftest.$ac_objext'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_c_inline=$ac_kw; break
5718 else
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5724 done
5727 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5728 echo "${ECHO_T}$ac_cv_c_inline" >&6
5731 case $ac_cv_c_inline in
5732 inline | yes) ;;
5734 case $ac_cv_c_inline in
5735 no) ac_val=;;
5736 *) ac_val=$ac_cv_c_inline;;
5737 esac
5738 cat >>confdefs.h <<_ACEOF
5739 #ifndef __cplusplus
5740 #define inline $ac_val
5741 #endif
5742 _ACEOF
5744 esac
5746 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5756 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5757 inttypes.h stdint.h unistd.h
5759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5760 echo "$as_me:$LINENO: checking for $ac_header" >&5
5761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765 cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h. */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 $ac_includes_default
5773 #include <$ac_header>
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777 (eval $ac_compile) 2>conftest.er1
5778 ac_status=$?
5779 grep -v '^ *+' conftest.er1 >conftest.err
5780 rm -f conftest.er1
5781 cat conftest.err >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } &&
5784 { ac_try='test -z "$ac_c_werror_flag"
5785 || test ! -s conftest.err'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 (eval $ac_try) 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; } &&
5791 { ac_try='test -s conftest.$ac_objext'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 (eval $ac_try) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
5797 eval "$as_ac_Header=yes"
5798 else
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5802 eval "$as_ac_Header=no"
5804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5809 cat >>confdefs.h <<_ACEOF
5810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5811 _ACEOF
5815 done
5818 echo "$as_me:$LINENO: checking for off_t" >&5
5819 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5820 if test "${ac_cv_type_off_t+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5831 main ()
5833 if ((off_t *) 0)
5834 return 0;
5835 if (sizeof (off_t))
5836 return 0;
5838 return 0;
5840 _ACEOF
5841 rm -f conftest.$ac_objext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 (eval $ac_try) 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_cv_type_off_t=yes
5864 else
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5868 ac_cv_type_off_t=no
5870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5873 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5874 if test $ac_cv_type_off_t = yes; then
5876 else
5878 cat >>confdefs.h <<_ACEOF
5879 #define off_t long
5880 _ACEOF
5884 echo "$as_me:$LINENO: checking for size_t" >&5
5885 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5886 if test "${ac_cv_type_size_t+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h. */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 $ac_includes_default
5897 main ()
5899 if ((size_t *) 0)
5900 return 0;
5901 if (sizeof (size_t))
5902 return 0;
5904 return 0;
5906 _ACEOF
5907 rm -f conftest.$ac_objext
5908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5909 (eval $ac_compile) 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try='test -z "$ac_c_werror_flag"
5917 || test ! -s conftest.err'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 (eval $ac_try) 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try='test -s conftest.$ac_objext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_type_size_t=yes
5930 else
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5934 ac_cv_type_size_t=no
5936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5938 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5939 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5940 if test $ac_cv_type_size_t = yes; then
5942 else
5944 cat >>confdefs.h <<_ACEOF
5945 #define size_t unsigned
5946 _ACEOF
5950 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5951 # for constant arguments. Useless!
5952 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5953 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5954 if test "${ac_cv_working_alloca_h+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h. */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 #include <alloca.h>
5965 main ()
5967 char *p = (char *) alloca (2 * sizeof (int));
5969 return 0;
5971 _ACEOF
5972 rm -f conftest.$ac_objext conftest$ac_exeext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5974 (eval $ac_link) 2>conftest.er1
5975 ac_status=$?
5976 grep -v '^ *+' conftest.er1 >conftest.err
5977 rm -f conftest.er1
5978 cat conftest.err >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } &&
5981 { ac_try='test -z "$ac_c_werror_flag"
5982 || test ! -s conftest.err'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 (eval $ac_try) 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; } &&
5988 { ac_try='test -s conftest$ac_exeext'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 (eval $ac_try) 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; }; then
5994 ac_cv_working_alloca_h=yes
5995 else
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 ac_cv_working_alloca_h=no
6001 rm -f conftest.err conftest.$ac_objext \
6002 conftest$ac_exeext conftest.$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6005 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6006 if test $ac_cv_working_alloca_h = yes; then
6008 cat >>confdefs.h <<\_ACEOF
6009 #define HAVE_ALLOCA_H 1
6010 _ACEOF
6014 echo "$as_me:$LINENO: checking for alloca" >&5
6015 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6016 if test "${ac_cv_func_alloca_works+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019 cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h. */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6025 #ifdef __GNUC__
6026 # define alloca __builtin_alloca
6027 #else
6028 # ifdef _MSC_VER
6029 # include <malloc.h>
6030 # define alloca _alloca
6031 # else
6032 # if HAVE_ALLOCA_H
6033 # include <alloca.h>
6034 # else
6035 # ifdef _AIX
6036 #pragma alloca
6037 # else
6038 # ifndef alloca /* predefined by HP cc +Olibcalls */
6039 char *alloca ();
6040 # endif
6041 # endif
6042 # endif
6043 # endif
6044 #endif
6047 main ()
6049 char *p = (char *) alloca (1);
6051 return 0;
6053 _ACEOF
6054 rm -f conftest.$ac_objext conftest$ac_exeext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056 (eval $ac_link) 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } &&
6063 { ac_try='test -z "$ac_c_werror_flag"
6064 || test ! -s conftest.err'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 (eval $ac_try) 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; } &&
6070 { ac_try='test -s conftest$ac_exeext'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 (eval $ac_try) 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 ac_cv_func_alloca_works=yes
6077 else
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6081 ac_cv_func_alloca_works=no
6083 rm -f conftest.err conftest.$ac_objext \
6084 conftest$ac_exeext conftest.$ac_ext
6086 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6087 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6089 if test $ac_cv_func_alloca_works = yes; then
6091 cat >>confdefs.h <<\_ACEOF
6092 #define HAVE_ALLOCA 1
6093 _ACEOF
6095 else
6096 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6097 # that cause trouble. Some versions do not even contain alloca or
6098 # contain a buggy version. If you still want to use their alloca,
6099 # use ar to extract alloca.o from them instead of compiling alloca.c.
6101 ALLOCA=alloca.$ac_objext
6103 cat >>confdefs.h <<\_ACEOF
6104 #define C_ALLOCA 1
6105 _ACEOF
6108 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6109 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6110 if test "${ac_cv_os_cray+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h. */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6119 #if defined(CRAY) && ! defined(CRAY2)
6120 webecray
6121 #else
6122 wenotbecray
6123 #endif
6125 _ACEOF
6126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127 $EGREP "webecray" >/dev/null 2>&1; then
6128 ac_cv_os_cray=yes
6129 else
6130 ac_cv_os_cray=no
6132 rm -f conftest*
6135 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6136 echo "${ECHO_T}$ac_cv_os_cray" >&6
6137 if test $ac_cv_os_cray = yes; then
6138 for ac_func in _getb67 GETB67 getb67; do
6139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6140 echo "$as_me:$LINENO: checking for $ac_func" >&5
6141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6142 if eval "test \"\${$as_ac_var+set}\" = set"; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145 cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h. */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6153 #define $ac_func innocuous_$ac_func
6155 /* System header to define __stub macros and hopefully few prototypes,
6156 which can conflict with char $ac_func (); below.
6157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6158 <limits.h> exists even on freestanding compilers. */
6160 #ifdef __STDC__
6161 # include <limits.h>
6162 #else
6163 # include <assert.h>
6164 #endif
6166 #undef $ac_func
6168 /* Override any gcc2 internal prototype to avoid an error. */
6169 #ifdef __cplusplus
6170 extern "C"
6172 #endif
6173 /* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6175 char $ac_func ();
6176 /* The GNU C library defines this for functions which it implements
6177 to always fail with ENOSYS. Some functions are actually named
6178 something starting with __ and the normal name is an alias. */
6179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6180 choke me
6181 #else
6182 char (*f) () = $ac_func;
6183 #endif
6184 #ifdef __cplusplus
6186 #endif
6189 main ()
6191 return f != $ac_func;
6193 return 0;
6195 _ACEOF
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198 (eval $ac_link) 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"
6206 || test ! -s conftest.err'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 (eval $ac_try) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; } &&
6212 { ac_try='test -s conftest$ac_exeext'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 eval "$as_ac_var=yes"
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 eval "$as_ac_var=no"
6225 rm -f conftest.err conftest.$ac_objext \
6226 conftest$ac_exeext conftest.$ac_ext
6228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6230 if test `eval echo '${'$as_ac_var'}'` = yes; then
6232 cat >>confdefs.h <<_ACEOF
6233 #define CRAY_STACKSEG_END $ac_func
6234 _ACEOF
6236 break
6239 done
6242 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6243 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6244 if test "${ac_cv_c_stack_direction+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247 if test "$cross_compiling" = yes; then
6248 ac_cv_c_stack_direction=0
6249 else
6250 cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h. */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6257 find_stack_direction ()
6259 static char *addr = 0;
6260 auto char dummy;
6261 if (addr == 0)
6263 addr = &dummy;
6264 return find_stack_direction ();
6266 else
6267 return (&dummy > addr) ? 1 : -1;
6271 main ()
6273 exit (find_stack_direction () < 0);
6275 _ACEOF
6276 rm -f conftest$ac_exeext
6277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6278 (eval $ac_link) 2>&5
6279 ac_status=$?
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
6287 ac_cv_c_stack_direction=1
6288 else
6289 echo "$as_me: program exited with status $ac_status" >&5
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6293 ( exit $ac_status )
6294 ac_cv_c_stack_direction=-1
6296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6299 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6300 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6302 cat >>confdefs.h <<_ACEOF
6303 #define STACK_DIRECTION $ac_cv_c_stack_direction
6304 _ACEOF
6311 for ac_header in stdlib.h unistd.h
6313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6315 echo "$as_me:$LINENO: checking for $ac_header" >&5
6316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6322 else
6323 # Is the header compilable?
6324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6326 cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h. */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 $ac_includes_default
6333 #include <$ac_header>
6334 _ACEOF
6335 rm -f conftest.$ac_objext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>conftest.er1
6338 ac_status=$?
6339 grep -v '^ *+' conftest.er1 >conftest.err
6340 rm -f conftest.er1
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } &&
6344 { ac_try='test -z "$ac_c_werror_flag"
6345 || test ! -s conftest.err'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 (eval $ac_try) 2>&5
6348 ac_status=$?
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; } &&
6351 { ac_try='test -s conftest.$ac_objext'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 (eval $ac_try) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; }; then
6357 ac_header_compiler=yes
6358 else
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 ac_header_compiler=no
6364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6366 echo "${ECHO_T}$ac_header_compiler" >&6
6368 # Is the header present?
6369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6371 cat >conftest.$ac_ext <<_ACEOF
6372 /* confdefs.h. */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 #include <$ac_header>
6378 _ACEOF
6379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6381 ac_status=$?
6382 grep -v '^ *+' conftest.er1 >conftest.err
6383 rm -f conftest.er1
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } >/dev/null; then
6387 if test -s conftest.err; then
6388 ac_cpp_err=$ac_c_preproc_warn_flag
6389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6390 else
6391 ac_cpp_err=
6393 else
6394 ac_cpp_err=yes
6396 if test -z "$ac_cpp_err"; then
6397 ac_header_preproc=yes
6398 else
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6402 ac_header_preproc=no
6404 rm -f conftest.err conftest.$ac_ext
6405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6406 echo "${ECHO_T}$ac_header_preproc" >&6
6408 # So? What about this header?
6409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6410 yes:no: )
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6415 ac_header_preproc=yes
6417 no:yes:* )
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6431 cat <<\_ASBOX
6432 ## ------------------------------------------ ##
6433 ## Report this to the AC_PACKAGE_NAME lists. ##
6434 ## ------------------------------------------ ##
6435 _ASBOX
6437 sed "s/^/$as_me: WARNING: /" >&2
6439 esac
6440 echo "$as_me:$LINENO: checking for $ac_header" >&5
6441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 else
6445 eval "$as_ac_Header=\$ac_header_preproc"
6447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6452 cat >>confdefs.h <<_ACEOF
6453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6454 _ACEOF
6458 done
6461 for ac_func in getpagesize
6463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6464 echo "$as_me:$LINENO: checking for $ac_func" >&5
6465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6466 if eval "test \"\${$as_ac_var+set}\" = set"; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469 cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6477 #define $ac_func innocuous_$ac_func
6479 /* System header to define __stub macros and hopefully few prototypes,
6480 which can conflict with char $ac_func (); below.
6481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6482 <limits.h> exists even on freestanding compilers. */
6484 #ifdef __STDC__
6485 # include <limits.h>
6486 #else
6487 # include <assert.h>
6488 #endif
6490 #undef $ac_func
6492 /* Override any gcc2 internal prototype to avoid an error. */
6493 #ifdef __cplusplus
6494 extern "C"
6496 #endif
6497 /* We use char because int might match the return type of a gcc2
6498 builtin and then its argument prototype would still apply. */
6499 char $ac_func ();
6500 /* The GNU C library defines this for functions which it implements
6501 to always fail with ENOSYS. Some functions are actually named
6502 something starting with __ and the normal name is an alias. */
6503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6504 choke me
6505 #else
6506 char (*f) () = $ac_func;
6507 #endif
6508 #ifdef __cplusplus
6510 #endif
6513 main ()
6515 return f != $ac_func;
6517 return 0;
6519 _ACEOF
6520 rm -f conftest.$ac_objext conftest$ac_exeext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522 (eval $ac_link) 2>conftest.er1
6523 ac_status=$?
6524 grep -v '^ *+' conftest.er1 >conftest.err
6525 rm -f conftest.er1
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -z "$ac_c_werror_flag"
6530 || test ! -s conftest.err'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest$ac_exeext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 (eval $ac_try) 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 eval "$as_ac_var=yes"
6543 else
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6547 eval "$as_ac_var=no"
6549 rm -f conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
6552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6554 if test `eval echo '${'$as_ac_var'}'` = yes; then
6555 cat >>confdefs.h <<_ACEOF
6556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6557 _ACEOF
6560 done
6562 echo "$as_me:$LINENO: checking for working mmap" >&5
6563 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6564 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567 if test "$cross_compiling" = yes; then
6568 ac_cv_func_mmap_fixed_mapped=no
6569 else
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h. */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 $ac_includes_default
6577 /* malloc might have been renamed as rpl_malloc. */
6578 #undef malloc
6580 /* Thanks to Mike Haertel and Jim Avera for this test.
6581 Here is a matrix of mmap possibilities:
6582 mmap private not fixed
6583 mmap private fixed at somewhere currently unmapped
6584 mmap private fixed at somewhere already mapped
6585 mmap shared not fixed
6586 mmap shared fixed at somewhere currently unmapped
6587 mmap shared fixed at somewhere already mapped
6588 For private mappings, we should verify that changes cannot be read()
6589 back from the file, nor mmap's back from the file at a different
6590 address. (There have been systems where private was not correctly
6591 implemented like the infamous i386 svr4.0, and systems where the
6592 VM page cache was not coherent with the file system buffer cache
6593 like early versions of FreeBSD and possibly contemporary NetBSD.)
6594 For shared mappings, we should conversely verify that changes get
6595 propagated back to all the places they're supposed to be.
6597 Grep wants private fixed already mapped.
6598 The main things grep needs to know about mmap are:
6599 * does it exist and is it safe to write into the mmap'd area
6600 * how to use it (BSD variants) */
6602 #include <fcntl.h>
6603 #include <sys/mman.h>
6605 #if !STDC_HEADERS && !HAVE_STDLIB_H
6606 char *malloc ();
6607 #endif
6609 /* This mess was copied from the GNU getpagesize.h. */
6610 #if !HAVE_GETPAGESIZE
6611 /* Assume that all systems that can run configure have sys/param.h. */
6612 # if !HAVE_SYS_PARAM_H
6613 # define HAVE_SYS_PARAM_H 1
6614 # endif
6616 # ifdef _SC_PAGESIZE
6617 # define getpagesize() sysconf(_SC_PAGESIZE)
6618 # else /* no _SC_PAGESIZE */
6619 # if HAVE_SYS_PARAM_H
6620 # include <sys/param.h>
6621 # ifdef EXEC_PAGESIZE
6622 # define getpagesize() EXEC_PAGESIZE
6623 # else /* no EXEC_PAGESIZE */
6624 # ifdef NBPG
6625 # define getpagesize() NBPG * CLSIZE
6626 # ifndef CLSIZE
6627 # define CLSIZE 1
6628 # endif /* no CLSIZE */
6629 # else /* no NBPG */
6630 # ifdef NBPC
6631 # define getpagesize() NBPC
6632 # else /* no NBPC */
6633 # ifdef PAGESIZE
6634 # define getpagesize() PAGESIZE
6635 # endif /* PAGESIZE */
6636 # endif /* no NBPC */
6637 # endif /* no NBPG */
6638 # endif /* no EXEC_PAGESIZE */
6639 # else /* no HAVE_SYS_PARAM_H */
6640 # define getpagesize() 8192 /* punt totally */
6641 # endif /* no HAVE_SYS_PARAM_H */
6642 # endif /* no _SC_PAGESIZE */
6644 #endif /* no HAVE_GETPAGESIZE */
6647 main ()
6649 char *data, *data2, *data3;
6650 int i, pagesize;
6651 int fd;
6653 pagesize = getpagesize ();
6655 /* First, make a file with some known garbage in it. */
6656 data = (char *) malloc (pagesize);
6657 if (!data)
6658 exit (1);
6659 for (i = 0; i < pagesize; ++i)
6660 *(data + i) = rand ();
6661 umask (0);
6662 fd = creat ("conftest.mmap", 0600);
6663 if (fd < 0)
6664 exit (1);
6665 if (write (fd, data, pagesize) != pagesize)
6666 exit (1);
6667 close (fd);
6669 /* Next, try to mmap the file at a fixed address which already has
6670 something else allocated at it. If we can, also make sure that
6671 we see the same garbage. */
6672 fd = open ("conftest.mmap", O_RDWR);
6673 if (fd < 0)
6674 exit (1);
6675 data2 = (char *) malloc (2 * pagesize);
6676 if (!data2)
6677 exit (1);
6678 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6679 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6680 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6681 exit (1);
6682 for (i = 0; i < pagesize; ++i)
6683 if (*(data + i) != *(data2 + i))
6684 exit (1);
6686 /* Finally, make sure that changes to the mapped area do not
6687 percolate back to the file as seen by read(). (This is a bug on
6688 some variants of i386 svr4.0.) */
6689 for (i = 0; i < pagesize; ++i)
6690 *(data2 + i) = *(data2 + i) + 1;
6691 data3 = (char *) malloc (pagesize);
6692 if (!data3)
6693 exit (1);
6694 if (read (fd, data3, pagesize) != pagesize)
6695 exit (1);
6696 for (i = 0; i < pagesize; ++i)
6697 if (*(data + i) != *(data3 + i))
6698 exit (1);
6699 close (fd);
6700 exit (0);
6702 _ACEOF
6703 rm -f conftest$ac_exeext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705 (eval $ac_link) 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710 (eval $ac_try) 2>&5
6711 ac_status=$?
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; }; then
6714 ac_cv_func_mmap_fixed_mapped=yes
6715 else
6716 echo "$as_me: program exited with status $ac_status" >&5
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 ( exit $ac_status )
6721 ac_cv_func_mmap_fixed_mapped=no
6723 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6726 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6727 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6728 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6730 cat >>confdefs.h <<\_ACEOF
6731 #define HAVE_MMAP 1
6732 _ACEOF
6735 rm -f conftest.mmap
6747 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6748 unistd.h values.h sys/param.h
6750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6752 echo "$as_me:$LINENO: checking for $ac_header" >&5
6753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6759 else
6760 # Is the header compilable?
6761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 $ac_includes_default
6770 #include <$ac_header>
6771 _ACEOF
6772 rm -f conftest.$ac_objext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774 (eval $ac_compile) 2>conftest.er1
6775 ac_status=$?
6776 grep -v '^ *+' conftest.er1 >conftest.err
6777 rm -f conftest.er1
6778 cat conftest.err >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } &&
6781 { ac_try='test -z "$ac_c_werror_flag"
6782 || test ! -s conftest.err'
6783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784 (eval $ac_try) 2>&5
6785 ac_status=$?
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); }; } &&
6788 { ac_try='test -s conftest.$ac_objext'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790 (eval $ac_try) 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; }; then
6794 ac_header_compiler=yes
6795 else
6796 echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6799 ac_header_compiler=no
6801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6803 echo "${ECHO_T}$ac_header_compiler" >&6
6805 # Is the header present?
6806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #include <$ac_header>
6815 _ACEOF
6816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6818 ac_status=$?
6819 grep -v '^ *+' conftest.er1 >conftest.err
6820 rm -f conftest.er1
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } >/dev/null; then
6824 if test -s conftest.err; then
6825 ac_cpp_err=$ac_c_preproc_warn_flag
6826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6827 else
6828 ac_cpp_err=
6830 else
6831 ac_cpp_err=yes
6833 if test -z "$ac_cpp_err"; then
6834 ac_header_preproc=yes
6835 else
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 ac_header_preproc=no
6841 rm -f conftest.err conftest.$ac_ext
6842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6843 echo "${ECHO_T}$ac_header_preproc" >&6
6845 # So? What about this header?
6846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6847 yes:no: )
6848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6852 ac_header_preproc=yes
6854 no:yes:* )
6855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6868 cat <<\_ASBOX
6869 ## ------------------------------------------ ##
6870 ## Report this to the AC_PACKAGE_NAME lists. ##
6871 ## ------------------------------------------ ##
6872 _ASBOX
6874 sed "s/^/$as_me: WARNING: /" >&2
6876 esac
6877 echo "$as_me:$LINENO: checking for $ac_header" >&5
6878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882 eval "$as_ac_Header=\$ac_header_preproc"
6884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6889 cat >>confdefs.h <<_ACEOF
6890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6891 _ACEOF
6895 done
6907 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6908 __argz_count __argz_stringify __argz_next
6910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6911 echo "$as_me:$LINENO: checking for $ac_func" >&5
6912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6913 if eval "test \"\${$as_ac_var+set}\" = set"; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916 cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h. */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6924 #define $ac_func innocuous_$ac_func
6926 /* System header to define __stub macros and hopefully few prototypes,
6927 which can conflict with char $ac_func (); below.
6928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6929 <limits.h> exists even on freestanding compilers. */
6931 #ifdef __STDC__
6932 # include <limits.h>
6933 #else
6934 # include <assert.h>
6935 #endif
6937 #undef $ac_func
6939 /* Override any gcc2 internal prototype to avoid an error. */
6940 #ifdef __cplusplus
6941 extern "C"
6943 #endif
6944 /* We use char because int might match the return type of a gcc2
6945 builtin and then its argument prototype would still apply. */
6946 char $ac_func ();
6947 /* The GNU C library defines this for functions which it implements
6948 to always fail with ENOSYS. Some functions are actually named
6949 something starting with __ and the normal name is an alias. */
6950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6951 choke me
6952 #else
6953 char (*f) () = $ac_func;
6954 #endif
6955 #ifdef __cplusplus
6957 #endif
6960 main ()
6962 return f != $ac_func;
6964 return 0;
6966 _ACEOF
6967 rm -f conftest.$ac_objext conftest$ac_exeext
6968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6969 (eval $ac_link) 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
6976 { ac_try='test -z "$ac_c_werror_flag"
6977 || test ! -s conftest.err'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; } &&
6983 { ac_try='test -s conftest$ac_exeext'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
6989 eval "$as_ac_var=yes"
6990 else
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 eval "$as_ac_var=no"
6996 rm -f conftest.err conftest.$ac_objext \
6997 conftest$ac_exeext conftest.$ac_ext
6999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7001 if test `eval echo '${'$as_ac_var'}'` = yes; then
7002 cat >>confdefs.h <<_ACEOF
7003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7004 _ACEOF
7007 done
7010 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7012 for ac_func in stpcpy
7014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7015 echo "$as_me:$LINENO: checking for $ac_func" >&5
7016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7017 if eval "test \"\${$as_ac_var+set}\" = set"; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7028 #define $ac_func innocuous_$ac_func
7030 /* System header to define __stub macros and hopefully few prototypes,
7031 which can conflict with char $ac_func (); below.
7032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7033 <limits.h> exists even on freestanding compilers. */
7035 #ifdef __STDC__
7036 # include <limits.h>
7037 #else
7038 # include <assert.h>
7039 #endif
7041 #undef $ac_func
7043 /* Override any gcc2 internal prototype to avoid an error. */
7044 #ifdef __cplusplus
7045 extern "C"
7047 #endif
7048 /* We use char because int might match the return type of a gcc2
7049 builtin and then its argument prototype would still apply. */
7050 char $ac_func ();
7051 /* The GNU C library defines this for functions which it implements
7052 to always fail with ENOSYS. Some functions are actually named
7053 something starting with __ and the normal name is an alias. */
7054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7055 choke me
7056 #else
7057 char (*f) () = $ac_func;
7058 #endif
7059 #ifdef __cplusplus
7061 #endif
7064 main ()
7066 return f != $ac_func;
7068 return 0;
7070 _ACEOF
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7073 (eval $ac_link) 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } &&
7080 { ac_try='test -z "$ac_c_werror_flag"
7081 || test ! -s conftest.err'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 (eval $ac_try) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; } &&
7087 { ac_try='test -s conftest$ac_exeext'
7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 (eval $ac_try) 2>&5
7090 ac_status=$?
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; }; then
7093 eval "$as_ac_var=yes"
7094 else
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7098 eval "$as_ac_var=no"
7100 rm -f conftest.err conftest.$ac_objext \
7101 conftest$ac_exeext conftest.$ac_ext
7103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7105 if test `eval echo '${'$as_ac_var'}'` = yes; then
7106 cat >>confdefs.h <<_ACEOF
7107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7108 _ACEOF
7111 done
7114 if test "${ac_cv_func_stpcpy}" = "yes"; then
7116 cat >>confdefs.h <<\_ACEOF
7117 #define HAVE_STPCPY 1
7118 _ACEOF
7122 if test $ac_cv_header_locale_h = yes; then
7123 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7124 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7125 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128 cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h. */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 #include <locale.h>
7136 main ()
7138 return LC_MESSAGES
7140 return 0;
7142 _ACEOF
7143 rm -f conftest.$ac_objext conftest$ac_exeext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7145 (eval $ac_link) 2>conftest.er1
7146 ac_status=$?
7147 grep -v '^ *+' conftest.er1 >conftest.err
7148 rm -f conftest.er1
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try='test -z "$ac_c_werror_flag"
7153 || test ! -s conftest.err'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 (eval $ac_try) 2>&5
7156 ac_status=$?
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; } &&
7159 { ac_try='test -s conftest$ac_exeext'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 (eval $ac_try) 2>&5
7162 ac_status=$?
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7165 am_cv_val_LC_MESSAGES=yes
7166 else
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7170 am_cv_val_LC_MESSAGES=no
7172 rm -f conftest.err conftest.$ac_objext \
7173 conftest$ac_exeext conftest.$ac_ext
7175 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7176 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7177 if test $am_cv_val_LC_MESSAGES = yes; then
7179 cat >>confdefs.h <<\_ACEOF
7180 #define HAVE_LC_MESSAGES 1
7181 _ACEOF
7185 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7186 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7187 # Check whether --enable-nls or --disable-nls was given.
7188 if test "${enable_nls+set}" = set; then
7189 enableval="$enable_nls"
7190 USE_NLS=$enableval
7191 else
7192 USE_NLS=yes
7194 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7195 echo "${ECHO_T}$USE_NLS" >&6
7198 USE_INCLUDED_LIBINTL=no
7200 if test "$USE_NLS" = "yes"; then
7201 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7202 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7204 # Check whether --with-included-gettext or --without-included-gettext was given.
7205 if test "${with_included_gettext+set}" = set; then
7206 withval="$with_included_gettext"
7207 nls_cv_force_use_gnu_gettext=$withval
7208 else
7209 nls_cv_force_use_gnu_gettext=no
7211 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7212 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7214 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7215 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7216 nls_cv_header_intl=
7217 nls_cv_header_libgt=
7218 CATOBJEXT=
7220 if test "${ac_cv_header_libintl_h+set}" = set; then
7221 echo "$as_me:$LINENO: checking for libintl.h" >&5
7222 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7223 if test "${ac_cv_header_libintl_h+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7227 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7228 else
7229 # Is the header compilable?
7230 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7231 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7232 cat >conftest.$ac_ext <<_ACEOF
7233 /* confdefs.h. */
7234 _ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7238 $ac_includes_default
7239 #include <libintl.h>
7240 _ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243 (eval $ac_compile) 2>conftest.er1
7244 ac_status=$?
7245 grep -v '^ *+' conftest.er1 >conftest.err
7246 rm -f conftest.er1
7247 cat conftest.err >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } &&
7250 { ac_try='test -z "$ac_c_werror_flag"
7251 || test ! -s conftest.err'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 (eval $ac_try) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; } &&
7257 { ac_try='test -s conftest.$ac_objext'
7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 (eval $ac_try) 2>&5
7260 ac_status=$?
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7263 ac_header_compiler=yes
7264 else
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7268 ac_header_compiler=no
7270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7272 echo "${ECHO_T}$ac_header_compiler" >&6
7274 # Is the header present?
7275 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7276 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7277 cat >conftest.$ac_ext <<_ACEOF
7278 /* confdefs.h. */
7279 _ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7283 #include <libintl.h>
7284 _ACEOF
7285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7287 ac_status=$?
7288 grep -v '^ *+' conftest.er1 >conftest.err
7289 rm -f conftest.er1
7290 cat conftest.err >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } >/dev/null; then
7293 if test -s conftest.err; then
7294 ac_cpp_err=$ac_c_preproc_warn_flag
7295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7296 else
7297 ac_cpp_err=
7299 else
7300 ac_cpp_err=yes
7302 if test -z "$ac_cpp_err"; then
7303 ac_header_preproc=yes
7304 else
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 ac_header_preproc=no
7310 rm -f conftest.err conftest.$ac_ext
7311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7312 echo "${ECHO_T}$ac_header_preproc" >&6
7314 # So? What about this header?
7315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7316 yes:no: )
7317 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7318 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7319 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7320 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7321 ac_header_preproc=yes
7323 no:yes:* )
7324 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7325 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7326 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7327 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7328 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7329 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7330 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7331 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7332 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7333 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7334 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7335 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7337 cat <<\_ASBOX
7338 ## ------------------------------------------ ##
7339 ## Report this to the AC_PACKAGE_NAME lists. ##
7340 ## ------------------------------------------ ##
7341 _ASBOX
7343 sed "s/^/$as_me: WARNING: /" >&2
7345 esac
7346 echo "$as_me:$LINENO: checking for libintl.h" >&5
7347 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7348 if test "${ac_cv_header_libintl_h+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351 ac_cv_header_libintl_h=$ac_header_preproc
7353 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7354 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7357 if test $ac_cv_header_libintl_h = yes; then
7358 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7359 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7360 if test "${gt_cv_func_gettext_libc+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363 cat >conftest.$ac_ext <<_ACEOF
7364 /* confdefs.h. */
7365 _ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7369 #include <libintl.h>
7371 main ()
7373 return (int) gettext ("")
7375 return 0;
7377 _ACEOF
7378 rm -f conftest.$ac_objext conftest$ac_exeext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7380 (eval $ac_link) 2>conftest.er1
7381 ac_status=$?
7382 grep -v '^ *+' conftest.er1 >conftest.err
7383 rm -f conftest.er1
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } &&
7387 { ac_try='test -z "$ac_c_werror_flag"
7388 || test ! -s conftest.err'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 (eval $ac_try) 2>&5
7391 ac_status=$?
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; } &&
7394 { ac_try='test -s conftest$ac_exeext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 (eval $ac_try) 2>&5
7397 ac_status=$?
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 gt_cv_func_gettext_libc=yes
7401 else
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 gt_cv_func_gettext_libc=no
7407 rm -f conftest.err conftest.$ac_objext \
7408 conftest$ac_exeext conftest.$ac_ext
7410 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7411 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7413 if test "$gt_cv_func_gettext_libc" != "yes"; then
7414 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7415 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7416 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419 ac_check_lib_save_LIBS=$LIBS
7420 LIBS="-lintl $LIBS"
7421 cat >conftest.$ac_ext <<_ACEOF
7422 /* confdefs.h. */
7423 _ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7428 /* Override any gcc2 internal prototype to avoid an error. */
7429 #ifdef __cplusplus
7430 extern "C"
7431 #endif
7432 /* We use char because int might match the return type of a gcc2
7433 builtin and then its argument prototype would still apply. */
7434 char bindtextdomain ();
7436 main ()
7438 bindtextdomain ();
7440 return 0;
7442 _ACEOF
7443 rm -f conftest.$ac_objext conftest$ac_exeext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7445 (eval $ac_link) 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try='test -z "$ac_c_werror_flag"
7453 || test ! -s conftest.err'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 (eval $ac_try) 2>&5
7456 ac_status=$?
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; } &&
7459 { ac_try='test -s conftest$ac_exeext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 (eval $ac_try) 2>&5
7462 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7465 ac_cv_lib_intl_bindtextdomain=yes
7466 else
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 ac_cv_lib_intl_bindtextdomain=no
7472 rm -f conftest.err conftest.$ac_objext \
7473 conftest$ac_exeext conftest.$ac_ext
7474 LIBS=$ac_check_lib_save_LIBS
7476 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7477 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7478 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7479 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7480 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7481 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484 cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h. */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7492 main ()
7494 return (int) gettext ("")
7496 return 0;
7498 _ACEOF
7499 rm -f conftest.$ac_objext conftest$ac_exeext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7501 (eval $ac_link) 2>conftest.er1
7502 ac_status=$?
7503 grep -v '^ *+' conftest.er1 >conftest.err
7504 rm -f conftest.er1
7505 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try='test -z "$ac_c_werror_flag"
7509 || test ! -s conftest.err'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 (eval $ac_try) 2>&5
7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; } &&
7515 { ac_try='test -s conftest$ac_exeext'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; }; then
7521 gt_cv_func_gettext_libintl=yes
7522 else
7523 echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7526 gt_cv_func_gettext_libintl=no
7528 rm -f conftest.err conftest.$ac_objext \
7529 conftest$ac_exeext conftest.$ac_ext
7531 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7532 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7537 if test "$gt_cv_func_gettext_libc" = "yes" \
7538 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7540 cat >>confdefs.h <<\_ACEOF
7541 #define HAVE_GETTEXT 1
7542 _ACEOF
7544 # Extract the first word of "msgfmt", so it can be a program name with args.
7545 set dummy msgfmt; ac_word=$2
7546 echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7548 if test "${ac_cv_path_MSGFMT+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551 case "$MSGFMT" in
7553 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7557 for ac_dir in $PATH; do
7558 test -z "$ac_dir" && ac_dir=.
7559 if test -f $ac_dir/$ac_word; then
7560 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7561 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7562 break
7565 done
7566 IFS="$ac_save_ifs"
7567 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7569 esac
7571 MSGFMT="$ac_cv_path_MSGFMT"
7572 if test -n "$MSGFMT"; then
7573 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7574 echo "${ECHO_T}$MSGFMT" >&6
7575 else
7576 echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6
7579 if test "$MSGFMT" != "no"; then
7581 for ac_func in dcgettext
7583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7584 echo "$as_me:$LINENO: checking for $ac_func" >&5
7585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7586 if eval "test \"\${$as_ac_var+set}\" = set"; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h. */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7597 #define $ac_func innocuous_$ac_func
7599 /* System header to define __stub macros and hopefully few prototypes,
7600 which can conflict with char $ac_func (); below.
7601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7602 <limits.h> exists even on freestanding compilers. */
7604 #ifdef __STDC__
7605 # include <limits.h>
7606 #else
7607 # include <assert.h>
7608 #endif
7610 #undef $ac_func
7612 /* Override any gcc2 internal prototype to avoid an error. */
7613 #ifdef __cplusplus
7614 extern "C"
7616 #endif
7617 /* We use char because int might match the return type of a gcc2
7618 builtin and then its argument prototype would still apply. */
7619 char $ac_func ();
7620 /* The GNU C library defines this for functions which it implements
7621 to always fail with ENOSYS. Some functions are actually named
7622 something starting with __ and the normal name is an alias. */
7623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7624 choke me
7625 #else
7626 char (*f) () = $ac_func;
7627 #endif
7628 #ifdef __cplusplus
7630 #endif
7633 main ()
7635 return f != $ac_func;
7637 return 0;
7639 _ACEOF
7640 rm -f conftest.$ac_objext conftest$ac_exeext
7641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7642 (eval $ac_link) 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"
7650 || test ! -s conftest.err'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 (eval $ac_try) 2>&5
7653 ac_status=$?
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; } &&
7656 { ac_try='test -s conftest$ac_exeext'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7662 eval "$as_ac_var=yes"
7663 else
7664 echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.$ac_ext >&5
7667 eval "$as_ac_var=no"
7669 rm -f conftest.err conftest.$ac_objext \
7670 conftest$ac_exeext conftest.$ac_ext
7672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7674 if test `eval echo '${'$as_ac_var'}'` = yes; then
7675 cat >>confdefs.h <<_ACEOF
7676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7677 _ACEOF
7680 done
7682 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7683 set dummy gmsgfmt; ac_word=$2
7684 echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7686 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689 case $GMSGFMT in
7690 [\\/]* | ?:[\\/]*)
7691 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7697 IFS=$as_save_IFS
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 break 2
7705 done
7706 done
7708 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7710 esac
7712 GMSGFMT=$ac_cv_path_GMSGFMT
7714 if test -n "$GMSGFMT"; then
7715 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7716 echo "${ECHO_T}$GMSGFMT" >&6
7717 else
7718 echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6
7722 # Extract the first word of "xgettext", so it can be a program name with args.
7723 set dummy xgettext; ac_word=$2
7724 echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7726 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729 case "$XGETTEXT" in
7731 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7735 for ac_dir in $PATH; do
7736 test -z "$ac_dir" && ac_dir=.
7737 if test -f $ac_dir/$ac_word; then
7738 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7739 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7740 break
7743 done
7744 IFS="$ac_save_ifs"
7745 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7747 esac
7749 XGETTEXT="$ac_cv_path_XGETTEXT"
7750 if test -n "$XGETTEXT"; then
7751 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7752 echo "${ECHO_T}$XGETTEXT" >&6
7753 else
7754 echo "$as_me:$LINENO: result: no" >&5
7755 echo "${ECHO_T}no" >&6
7758 cat >conftest.$ac_ext <<_ACEOF
7759 /* confdefs.h. */
7760 _ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7766 main ()
7768 extern int _nl_msg_cat_cntr;
7769 return _nl_msg_cat_cntr
7771 return 0;
7773 _ACEOF
7774 rm -f conftest.$ac_objext conftest$ac_exeext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7776 (eval $ac_link) 2>conftest.er1
7777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try='test -z "$ac_c_werror_flag"
7784 || test ! -s conftest.err'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 (eval $ac_try) 2>&5
7787 ac_status=$?
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; } &&
7790 { ac_try='test -s conftest$ac_exeext'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 (eval $ac_try) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; }; then
7796 CATOBJEXT=.gmo
7797 DATADIRNAME=share
7798 else
7799 echo "$as_me: failed program was:" >&5
7800 sed 's/^/| /' conftest.$ac_ext >&5
7802 CATOBJEXT=.mo
7803 DATADIRNAME=lib
7805 rm -f conftest.err conftest.$ac_objext \
7806 conftest$ac_exeext conftest.$ac_ext
7807 INSTOBJEXT=.mo
7816 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7817 # Neither gettext nor catgets in included in the C library.
7818 # Fall back on GNU gettext library (assuming it is present).
7819 nls_cv_use_gnu_gettext=yes
7823 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7824 INTLOBJS="\$(GETTOBJS)"
7825 # Extract the first word of "msgfmt", so it can be a program name with args.
7826 set dummy msgfmt; ac_word=$2
7827 echo "$as_me:$LINENO: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7829 if test "${ac_cv_path_MSGFMT+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 case "$MSGFMT" in
7834 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7838 for ac_dir in $PATH; do
7839 test -z "$ac_dir" && ac_dir=.
7840 if test -f $ac_dir/$ac_word; then
7841 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7842 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7843 break
7846 done
7847 IFS="$ac_save_ifs"
7848 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7850 esac
7852 MSGFMT="$ac_cv_path_MSGFMT"
7853 if test -n "$MSGFMT"; then
7854 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7855 echo "${ECHO_T}$MSGFMT" >&6
7856 else
7857 echo "$as_me:$LINENO: result: no" >&5
7858 echo "${ECHO_T}no" >&6
7861 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7862 set dummy gmsgfmt; ac_word=$2
7863 echo "$as_me:$LINENO: checking for $ac_word" >&5
7864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7865 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868 case $GMSGFMT in
7869 [\\/]* | ?:[\\/]*)
7870 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7880 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7884 done
7885 done
7887 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7889 esac
7891 GMSGFMT=$ac_cv_path_GMSGFMT
7893 if test -n "$GMSGFMT"; then
7894 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7895 echo "${ECHO_T}$GMSGFMT" >&6
7896 else
7897 echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6
7901 # Extract the first word of "xgettext", so it can be a program name with args.
7902 set dummy xgettext; ac_word=$2
7903 echo "$as_me:$LINENO: checking for $ac_word" >&5
7904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7905 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908 case "$XGETTEXT" in
7910 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7914 for ac_dir in $PATH; do
7915 test -z "$ac_dir" && ac_dir=.
7916 if test -f $ac_dir/$ac_word; then
7917 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7918 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7919 break
7922 done
7923 IFS="$ac_save_ifs"
7924 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7926 esac
7928 XGETTEXT="$ac_cv_path_XGETTEXT"
7929 if test -n "$XGETTEXT"; then
7930 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7931 echo "${ECHO_T}$XGETTEXT" >&6
7932 else
7933 echo "$as_me:$LINENO: result: no" >&5
7934 echo "${ECHO_T}no" >&6
7938 USE_INCLUDED_LIBINTL=yes
7939 CATOBJEXT=.gmo
7940 INSTOBJEXT=.mo
7941 DATADIRNAME=share
7942 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7943 INTLLIBS=$INTLDEPS
7944 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7945 nls_cv_header_intl=libintl.h
7946 nls_cv_header_libgt=libgettext.h
7949 if test "$XGETTEXT" != ":"; then
7950 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7952 else
7953 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7954 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7955 XGETTEXT=":"
7959 # We need to process the po/ directory.
7960 POSUB=po
7961 else
7962 DATADIRNAME=share
7963 nls_cv_header_intl=libintl.h
7964 nls_cv_header_libgt=libgettext.h
7967 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7968 # because some of the sources are only built for this goal.
7969 if test "$PACKAGE" = gettext; then
7970 USE_NLS=yes
7971 USE_INCLUDED_LIBINTL=yes
7974 for lang in $ALL_LINGUAS; do
7975 GMOFILES="$GMOFILES $lang.gmo"
7976 POFILES="$POFILES $lang.po"
7977 done
7990 if test "x$CATOBJEXT" != "x"; then
7992 cat >>confdefs.h <<\_ACEOF
7993 #define ENABLE_NLS 1
7994 _ACEOF
7999 if test "x$CATOBJEXT" != "x"; then
8000 if test "x$ALL_LINGUAS" = "x"; then
8001 LINGUAS=
8002 else
8003 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8004 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8005 NEW_LINGUAS=
8006 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8007 case "$ALL_LINGUAS" in
8008 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8009 esac
8010 done
8011 LINGUAS=$NEW_LINGUAS
8012 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8013 echo "${ECHO_T}$LINGUAS" >&6
8016 if test -n "$LINGUAS"; then
8017 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8021 if test $ac_cv_header_locale_h = yes; then
8022 INCLUDE_LOCALE_H="#include <locale.h>"
8023 else
8024 INCLUDE_LOCALE_H="\
8025 /* The system does not provide the header <locale.h>. Take care yourself. */"
8029 if test -f $srcdir/po2tbl.sed.in; then
8030 if test "$CATOBJEXT" = ".cat"; then
8031 if test "${ac_cv_header_linux_version_h+set}" = set; then
8032 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8033 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8034 if test "${ac_cv_header_linux_version_h+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8038 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8039 else
8040 # Is the header compilable?
8041 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8042 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8043 cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h. */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8049 $ac_includes_default
8050 #include <linux/version.h>
8051 _ACEOF
8052 rm -f conftest.$ac_objext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8054 (eval $ac_compile) 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -z "$ac_c_werror_flag"
8062 || test ! -s conftest.err'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 (eval $ac_try) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; } &&
8068 { ac_try='test -s conftest.$ac_objext'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 (eval $ac_try) 2>&5
8071 ac_status=$?
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8074 ac_header_compiler=yes
8075 else
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8079 ac_header_compiler=no
8081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8083 echo "${ECHO_T}$ac_header_compiler" >&6
8085 # Is the header present?
8086 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8087 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8088 cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h. */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 #include <linux/version.h>
8095 _ACEOF
8096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } >/dev/null; then
8104 if test -s conftest.err; then
8105 ac_cpp_err=$ac_c_preproc_warn_flag
8106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8107 else
8108 ac_cpp_err=
8110 else
8111 ac_cpp_err=yes
8113 if test -z "$ac_cpp_err"; then
8114 ac_header_preproc=yes
8115 else
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 ac_header_preproc=no
8121 rm -f conftest.err conftest.$ac_ext
8122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8123 echo "${ECHO_T}$ac_header_preproc" >&6
8125 # So? What about this header?
8126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8127 yes:no: )
8128 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8129 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8130 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8131 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8132 ac_header_preproc=yes
8134 no:yes:* )
8135 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8136 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8137 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8138 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8139 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8140 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8141 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8142 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8143 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8144 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8145 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8146 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8148 cat <<\_ASBOX
8149 ## ------------------------------------------ ##
8150 ## Report this to the AC_PACKAGE_NAME lists. ##
8151 ## ------------------------------------------ ##
8152 _ASBOX
8154 sed "s/^/$as_me: WARNING: /" >&2
8156 esac
8157 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8158 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8159 if test "${ac_cv_header_linux_version_h+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162 ac_cv_header_linux_version_h=$ac_header_preproc
8164 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8165 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8168 if test $ac_cv_header_linux_version_h = yes; then
8169 msgformat=linux
8170 else
8171 msgformat=xopen
8176 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8178 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8179 $srcdir/po2tbl.sed.in > po2tbl.sed
8182 if test "$PACKAGE" = "gettext"; then
8183 GT_NO="#NO#"
8184 GT_YES=
8185 else
8186 GT_NO=
8187 GT_YES="#YES#"
8192 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8198 if test -f $srcdir/po/POTFILES.in; then
8199 test -d po || mkdir po
8200 if test "x$srcdir" != "x."; then
8201 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8202 posrcprefix="$srcdir/"
8203 else
8204 posrcprefix="../$srcdir/"
8206 else
8207 posrcprefix="../"
8209 rm -f po/POTFILES
8210 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8211 < $srcdir/po/POTFILES.in > po/POTFILES
8215 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8216 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8217 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8218 if test "${enable_maintainer_mode+set}" = set; then
8219 enableval="$enable_maintainer_mode"
8220 USE_MAINTAINER_MODE=$enableval
8221 else
8222 USE_MAINTAINER_MODE=no
8224 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8225 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8228 if test $USE_MAINTAINER_MODE = yes; then
8229 MAINTAINER_MODE_TRUE=
8230 MAINTAINER_MODE_FALSE='#'
8231 else
8232 MAINTAINER_MODE_TRUE='#'
8233 MAINTAINER_MODE_FALSE=
8236 MAINT=$MAINTAINER_MODE_TRUE
8242 for ac_header in sys/gmon_out.h
8244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8246 echo "$as_me:$LINENO: checking for $ac_header" >&5
8247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8253 else
8254 # Is the header compilable?
8255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8257 cat >conftest.$ac_ext <<_ACEOF
8258 /* confdefs.h. */
8259 _ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8263 $ac_includes_default
8264 #include <$ac_header>
8265 _ACEOF
8266 rm -f conftest.$ac_objext
8267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8268 (eval $ac_compile) 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try='test -z "$ac_c_werror_flag"
8276 || test ! -s conftest.err'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 (eval $ac_try) 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; } &&
8282 { ac_try='test -s conftest.$ac_objext'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 (eval $ac_try) 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
8288 ac_header_compiler=yes
8289 else
8290 echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8293 ac_header_compiler=no
8295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8297 echo "${ECHO_T}$ac_header_compiler" >&6
8299 # Is the header present?
8300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8302 cat >conftest.$ac_ext <<_ACEOF
8303 /* confdefs.h. */
8304 _ACEOF
8305 cat confdefs.h >>conftest.$ac_ext
8306 cat >>conftest.$ac_ext <<_ACEOF
8307 /* end confdefs.h. */
8308 #include <$ac_header>
8309 _ACEOF
8310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8312 ac_status=$?
8313 grep -v '^ *+' conftest.er1 >conftest.err
8314 rm -f conftest.er1
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } >/dev/null; then
8318 if test -s conftest.err; then
8319 ac_cpp_err=$ac_c_preproc_warn_flag
8320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8321 else
8322 ac_cpp_err=
8324 else
8325 ac_cpp_err=yes
8327 if test -z "$ac_cpp_err"; then
8328 ac_header_preproc=yes
8329 else
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8333 ac_header_preproc=no
8335 rm -f conftest.err conftest.$ac_ext
8336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8337 echo "${ECHO_T}$ac_header_preproc" >&6
8339 # So? What about this header?
8340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8341 yes:no: )
8342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8346 ac_header_preproc=yes
8348 no:yes:* )
8349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8362 cat <<\_ASBOX
8363 ## ------------------------------------------ ##
8364 ## Report this to the AC_PACKAGE_NAME lists. ##
8365 ## ------------------------------------------ ##
8366 _ASBOX
8368 sed "s/^/$as_me: WARNING: /" >&2
8370 esac
8371 echo "$as_me:$LINENO: checking for $ac_header" >&5
8372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376 eval "$as_ac_Header=\$ac_header_preproc"
8378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8383 cat >>confdefs.h <<_ACEOF
8384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8385 _ACEOF
8389 done
8392 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
8393 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
8394 if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397 cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h. */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8403 #include <unistd.h>
8405 main ()
8407 extern int getopt (int, char *const*, const char *);
8409 return 0;
8411 _ACEOF
8412 rm -f conftest.$ac_objext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8414 (eval $ac_compile) 2>conftest.er1
8415 ac_status=$?
8416 grep -v '^ *+' conftest.er1 >conftest.err
8417 rm -f conftest.er1
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try='test -z "$ac_c_werror_flag"
8422 || test ! -s conftest.err'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 (eval $ac_try) 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } &&
8428 { ac_try='test -s conftest.$ac_objext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430 (eval $ac_try) 2>&5
8431 ac_status=$?
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 gprof_cv_decl_getopt_unistd_h=yes
8435 else
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8439 gprof_cv_decl_getopt_unistd_h=no
8441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8444 echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
8445 echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6
8446 if test $gprof_cv_decl_getopt_unistd_h = yes; then
8448 cat >>confdefs.h <<\_ACEOF
8449 #define HAVE_DECL_GETOPT 1
8450 _ACEOF
8455 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
8457 # Check whether --enable-werror or --disable-werror was given.
8458 if test "${enable_werror+set}" = set; then
8459 enableval="$enable_werror"
8460 case "${enableval}" in
8461 yes | y) ERROR_ON_WARNING="yes" ;;
8462 no | n) ERROR_ON_WARNING="no" ;;
8463 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
8464 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
8465 { (exit 1); exit 1; }; } ;;
8466 esac
8469 # Enable -Werror by default when using gcc
8470 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
8471 ERROR_ON_WARNING=yes
8474 NO_WERROR=
8475 if test "${ERROR_ON_WARNING}" = yes ; then
8476 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
8477 NO_WERROR="-Wno-error"
8480 if test "${GCC}" = yes ; then
8481 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
8484 # Check whether --enable-build-warnings or --disable-build-warnings was given.
8485 if test "${enable_build_warnings+set}" = set; then
8486 enableval="$enable_build_warnings"
8487 case "${enableval}" in
8488 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
8489 no) if test "${GCC}" = yes ; then
8490 WARN_CFLAGS="-w"
8491 fi;;
8492 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8493 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
8494 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8495 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
8496 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8497 esac
8500 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
8501 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
8512 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
8514 ac_config_commands="$ac_config_commands default"
8516 cat >confcache <<\_ACEOF
8517 # This file is a shell script that caches the results of configure
8518 # tests run on this system so they can be shared between configure
8519 # scripts and configure runs, see configure's option --config-cache.
8520 # It is not useful on other systems. If it contains results you don't
8521 # want to keep, you may remove or edit it.
8523 # config.status only pays attention to the cache file if you give it
8524 # the --recheck option to rerun configure.
8526 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8527 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8528 # following values.
8530 _ACEOF
8532 # The following way of writing the cache mishandles newlines in values,
8533 # but we know of no workaround that is simple, portable, and efficient.
8534 # So, don't put newlines in cache variables' values.
8535 # Ultrix sh set writes to stderr and can't be redirected directly,
8536 # and sets the high bit in the cache file unless we assign to the vars.
8538 (set) 2>&1 |
8539 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8540 *ac_space=\ *)
8541 # `set' does not quote correctly, so add quotes (double-quote
8542 # substitution turns \\\\ into \\, and sed turns \\ into \).
8543 sed -n \
8544 "s/'/'\\\\''/g;
8545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8548 # `set' quotes correctly as required by POSIX, so do not add quotes.
8549 sed -n \
8550 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8552 esac;
8554 sed '
8555 t clear
8556 : clear
8557 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8558 t end
8559 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8560 : end' >>confcache
8561 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8562 if test -w $cache_file; then
8563 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8564 cat confcache >$cache_file
8565 else
8566 echo "not updating unwritable cache $cache_file"
8569 rm -f confcache
8571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8572 # Let make expand exec_prefix.
8573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8575 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8576 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8577 # trailing colons and then remove the whole line if VPATH becomes empty
8578 # (actually we leave an empty line to preserve line numbers).
8579 if test "x$srcdir" = x.; then
8580 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8581 s/:*\$(srcdir):*/:/;
8582 s/:*\${srcdir}:*/:/;
8583 s/:*@srcdir@:*/:/;
8584 s/^\([^=]*=[ ]*\):*/\1/;
8585 s/:*$//;
8586 s/^[^=]*=[ ]*$//;
8590 DEFS=-DHAVE_CONFIG_H
8592 ac_libobjs=
8593 ac_ltlibobjs=
8594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8595 # 1. Remove the extension, and $U if already installed.
8596 ac_i=`echo "$ac_i" |
8597 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8598 # 2. Add them.
8599 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8600 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8601 done
8602 LIBOBJS=$ac_libobjs
8604 LTLIBOBJS=$ac_ltlibobjs
8607 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8608 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8609 Usually this means the macro was only invoked conditionally." >&5
8610 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8611 Usually this means the macro was only invoked conditionally." >&2;}
8612 { (exit 1); exit 1; }; }
8614 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8615 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8616 Usually this means the macro was only invoked conditionally." >&5
8617 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8618 Usually this means the macro was only invoked conditionally." >&2;}
8619 { (exit 1); exit 1; }; }
8621 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8622 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8623 Usually this means the macro was only invoked conditionally." >&5
8624 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8625 Usually this means the macro was only invoked conditionally." >&2;}
8626 { (exit 1); exit 1; }; }
8629 : ${CONFIG_STATUS=./config.status}
8630 ac_clean_files_save=$ac_clean_files
8631 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8632 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8633 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8634 cat >$CONFIG_STATUS <<_ACEOF
8635 #! $SHELL
8636 # Generated by $as_me.
8637 # Run this file to recreate the current configuration.
8638 # Compiler output produced by configure, useful for debugging
8639 # configure, is in config.log if it exists.
8641 debug=false
8642 ac_cs_recheck=false
8643 ac_cs_silent=false
8644 SHELL=\${CONFIG_SHELL-$SHELL}
8645 _ACEOF
8647 cat >>$CONFIG_STATUS <<\_ACEOF
8648 ## --------------------- ##
8649 ## M4sh Initialization. ##
8650 ## --------------------- ##
8652 # Be Bourne compatible
8653 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8654 emulate sh
8655 NULLCMD=:
8656 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8657 # is contrary to our usage. Disable this feature.
8658 alias -g '${1+"$@"}'='"$@"'
8659 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8660 set -o posix
8662 DUALCASE=1; export DUALCASE # for MKS sh
8664 # Support unset when possible.
8665 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8666 as_unset=unset
8667 else
8668 as_unset=false
8672 # Work around bugs in pre-3.0 UWIN ksh.
8673 $as_unset ENV MAIL MAILPATH
8674 PS1='$ '
8675 PS2='> '
8676 PS4='+ '
8678 # NLS nuisances.
8679 for as_var in \
8680 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8681 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8682 LC_TELEPHONE LC_TIME
8684 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8685 eval $as_var=C; export $as_var
8686 else
8687 $as_unset $as_var
8689 done
8691 # Required to use basename.
8692 if expr a : '\(a\)' >/dev/null 2>&1; then
8693 as_expr=expr
8694 else
8695 as_expr=false
8698 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8699 as_basename=basename
8700 else
8701 as_basename=false
8705 # Name of the executable.
8706 as_me=`$as_basename "$0" ||
8707 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8708 X"$0" : 'X\(//\)$' \| \
8709 X"$0" : 'X\(/\)$' \| \
8710 . : '\(.\)' 2>/dev/null ||
8711 echo X/"$0" |
8712 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8713 /^X\/\(\/\/\)$/{ s//\1/; q; }
8714 /^X\/\(\/\).*/{ s//\1/; q; }
8715 s/.*/./; q'`
8718 # PATH needs CR, and LINENO needs CR and PATH.
8719 # Avoid depending upon Character Ranges.
8720 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8721 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8722 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8723 as_cr_digits='0123456789'
8724 as_cr_alnum=$as_cr_Letters$as_cr_digits
8726 # The user is always right.
8727 if test "${PATH_SEPARATOR+set}" != set; then
8728 echo "#! /bin/sh" >conf$$.sh
8729 echo "exit 0" >>conf$$.sh
8730 chmod +x conf$$.sh
8731 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8732 PATH_SEPARATOR=';'
8733 else
8734 PATH_SEPARATOR=:
8736 rm -f conf$$.sh
8740 as_lineno_1=$LINENO
8741 as_lineno_2=$LINENO
8742 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8743 test "x$as_lineno_1" != "x$as_lineno_2" &&
8744 test "x$as_lineno_3" = "x$as_lineno_2" || {
8745 # Find who we are. Look in the path if we contain no path at all
8746 # relative or not.
8747 case $0 in
8748 *[\\/]* ) as_myself=$0 ;;
8749 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750 for as_dir in $PATH
8752 IFS=$as_save_IFS
8753 test -z "$as_dir" && as_dir=.
8754 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8755 done
8758 esac
8759 # We did not find ourselves, most probably we were run as `sh COMMAND'
8760 # in which case we are not to be found in the path.
8761 if test "x$as_myself" = x; then
8762 as_myself=$0
8764 if test ! -f "$as_myself"; then
8765 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8766 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8767 { (exit 1); exit 1; }; }
8769 case $CONFIG_SHELL in
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
8776 for as_base in sh bash ksh sh5; do
8777 case $as_dir in
8779 if ("$as_dir/$as_base" -c '
8780 as_lineno_1=$LINENO
8781 as_lineno_2=$LINENO
8782 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8783 test "x$as_lineno_1" != "x$as_lineno_2" &&
8784 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8785 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8786 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8787 CONFIG_SHELL=$as_dir/$as_base
8788 export CONFIG_SHELL
8789 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8790 fi;;
8791 esac
8792 done
8793 done
8795 esac
8797 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8798 # uniformly replaced by the line number. The first 'sed' inserts a
8799 # line-number line before each line; the second 'sed' does the real
8800 # work. The second script uses 'N' to pair each line-number line
8801 # with the numbered line, and appends trailing '-' during
8802 # substitution so that $LINENO is not a special case at line end.
8803 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8804 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8805 sed '=' <$as_myself |
8806 sed '
8808 s,$,-,
8809 : loop
8810 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8811 t loop
8812 s,-$,,
8813 s,^['$as_cr_digits']*\n,,
8814 ' >$as_me.lineno &&
8815 chmod +x $as_me.lineno ||
8816 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8817 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8818 { (exit 1); exit 1; }; }
8820 # Don't try to exec as it changes $[0], causing all sort of problems
8821 # (the dirname of $[0] is not the place where we might find the
8822 # original and so on. Autoconf is especially sensible to this).
8823 . ./$as_me.lineno
8824 # Exit status is that of the last command.
8825 exit
8829 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8830 *c*,-n*) ECHO_N= ECHO_C='
8831 ' ECHO_T=' ' ;;
8832 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8833 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8834 esac
8836 if expr a : '\(a\)' >/dev/null 2>&1; then
8837 as_expr=expr
8838 else
8839 as_expr=false
8842 rm -f conf$$ conf$$.exe conf$$.file
8843 echo >conf$$.file
8844 if ln -s conf$$.file conf$$ 2>/dev/null; then
8845 # We could just check for DJGPP; but this test a) works b) is more generic
8846 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8847 if test -f conf$$.exe; then
8848 # Don't use ln at all; we don't have any links
8849 as_ln_s='cp -p'
8850 else
8851 as_ln_s='ln -s'
8853 elif ln conf$$.file conf$$ 2>/dev/null; then
8854 as_ln_s=ln
8855 else
8856 as_ln_s='cp -p'
8858 rm -f conf$$ conf$$.exe conf$$.file
8860 if mkdir -p . 2>/dev/null; then
8861 as_mkdir_p=:
8862 else
8863 test -d ./-p && rmdir ./-p
8864 as_mkdir_p=false
8867 as_executable_p="test -f"
8869 # Sed expression to map a string onto a valid CPP name.
8870 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8872 # Sed expression to map a string onto a valid variable name.
8873 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8876 # IFS
8877 # We need space, tab and new line, in precisely that order.
8878 as_nl='
8880 IFS=" $as_nl"
8882 # CDPATH.
8883 $as_unset CDPATH
8885 exec 6>&1
8887 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8888 # report actual input values of CONFIG_FILES etc. instead of their
8889 # values after options handling. Logging --version etc. is OK.
8890 exec 5>>config.log
8892 echo
8893 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8894 ## Running $as_me. ##
8895 _ASBOX
8896 } >&5
8897 cat >&5 <<_CSEOF
8899 This file was extended by $as_me, which was
8900 generated by GNU Autoconf 2.59. Invocation command line was
8902 CONFIG_FILES = $CONFIG_FILES
8903 CONFIG_HEADERS = $CONFIG_HEADERS
8904 CONFIG_LINKS = $CONFIG_LINKS
8905 CONFIG_COMMANDS = $CONFIG_COMMANDS
8906 $ $0 $@
8908 _CSEOF
8909 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8910 echo >&5
8911 _ACEOF
8913 # Files that config.status was made for.
8914 if test -n "$ac_config_files"; then
8915 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8918 if test -n "$ac_config_headers"; then
8919 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8922 if test -n "$ac_config_links"; then
8923 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8926 if test -n "$ac_config_commands"; then
8927 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8930 cat >>$CONFIG_STATUS <<\_ACEOF
8932 ac_cs_usage="\
8933 \`$as_me' instantiates files from templates according to the
8934 current configuration.
8936 Usage: $0 [OPTIONS] [FILE]...
8938 -h, --help print this help, then exit
8939 -V, --version print version number, then exit
8940 -q, --quiet do not print progress messages
8941 -d, --debug don't remove temporary files
8942 --recheck update $as_me by reconfiguring in the same conditions
8943 --file=FILE[:TEMPLATE]
8944 instantiate the configuration file FILE
8945 --header=FILE[:TEMPLATE]
8946 instantiate the configuration header FILE
8948 Configuration files:
8949 $config_files
8951 Configuration headers:
8952 $config_headers
8954 Configuration commands:
8955 $config_commands
8957 Report bugs to <bug-autoconf@gnu.org>."
8958 _ACEOF
8960 cat >>$CONFIG_STATUS <<_ACEOF
8961 ac_cs_version="\\
8962 config.status
8963 configured by $0, generated by GNU Autoconf 2.59,
8964 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8966 Copyright (C) 2003 Free Software Foundation, Inc.
8967 This config.status script is free software; the Free Software Foundation
8968 gives unlimited permission to copy, distribute and modify it."
8969 srcdir=$srcdir
8970 INSTALL="$INSTALL"
8971 _ACEOF
8973 cat >>$CONFIG_STATUS <<\_ACEOF
8974 # If no file are specified by the user, then we need to provide default
8975 # value. By we need to know if files were specified by the user.
8976 ac_need_defaults=:
8977 while test $# != 0
8979 case $1 in
8980 --*=*)
8981 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8982 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8983 ac_shift=:
8986 ac_option=$1
8987 ac_optarg=$2
8988 ac_shift=shift
8990 *) # This is not an option, so the user has probably given explicit
8991 # arguments.
8992 ac_option=$1
8993 ac_need_defaults=false;;
8994 esac
8996 case $ac_option in
8997 # Handling of the options.
8998 _ACEOF
8999 cat >>$CONFIG_STATUS <<\_ACEOF
9000 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9001 ac_cs_recheck=: ;;
9002 --version | --vers* | -V )
9003 echo "$ac_cs_version"; exit 0 ;;
9004 --he | --h)
9005 # Conflict between --help and --header
9006 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9007 Try \`$0 --help' for more information." >&5
9008 echo "$as_me: error: ambiguous option: $1
9009 Try \`$0 --help' for more information." >&2;}
9010 { (exit 1); exit 1; }; };;
9011 --help | --hel | -h )
9012 echo "$ac_cs_usage"; exit 0 ;;
9013 --debug | --d* | -d )
9014 debug=: ;;
9015 --file | --fil | --fi | --f )
9016 $ac_shift
9017 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9018 ac_need_defaults=false;;
9019 --header | --heade | --head | --hea )
9020 $ac_shift
9021 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9022 ac_need_defaults=false;;
9023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9024 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9025 ac_cs_silent=: ;;
9027 # This is an error.
9028 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9029 Try \`$0 --help' for more information." >&5
9030 echo "$as_me: error: unrecognized option: $1
9031 Try \`$0 --help' for more information." >&2;}
9032 { (exit 1); exit 1; }; } ;;
9034 *) ac_config_targets="$ac_config_targets $1" ;;
9036 esac
9037 shift
9038 done
9040 ac_configure_extra_args=
9042 if $ac_cs_silent; then
9043 exec 6>/dev/null
9044 ac_configure_extra_args="$ac_configure_extra_args --silent"
9047 _ACEOF
9048 cat >>$CONFIG_STATUS <<_ACEOF
9049 if \$ac_cs_recheck; then
9050 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9051 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9054 _ACEOF
9056 cat >>$CONFIG_STATUS <<_ACEOF
9058 # INIT-COMMANDS section.
9061 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9064 _ACEOF
9068 cat >>$CONFIG_STATUS <<\_ACEOF
9069 for ac_config_target in $ac_config_targets
9071 case "$ac_config_target" in
9072 # Handling of arguments.
9073 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9074 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9075 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9076 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9077 "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
9078 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9079 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9080 { (exit 1); exit 1; }; };;
9081 esac
9082 done
9084 # If the user did not use the arguments to specify the items to instantiate,
9085 # then the envvar interface is used. Set only those that are not.
9086 # We use the long form for the default assignment because of an extremely
9087 # bizarre bug on SunOS 4.1.3.
9088 if $ac_need_defaults; then
9089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9090 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9091 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9094 # Have a temporary directory for convenience. Make it in the build tree
9095 # simply because there is no reason to put it here, and in addition,
9096 # creating and moving files from /tmp can sometimes cause problems.
9097 # Create a temporary directory, and hook for its removal unless debugging.
9098 $debug ||
9100 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9101 trap '{ (exit 1); exit 1; }' 1 2 13 15
9104 # Create a (secure) tmp directory for tmp files.
9107 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9108 test -n "$tmp" && test -d "$tmp"
9109 } ||
9111 tmp=./confstat$$-$RANDOM
9112 (umask 077 && mkdir $tmp)
9113 } ||
9115 echo "$me: cannot create a temporary directory in ." >&2
9116 { (exit 1); exit 1; }
9119 _ACEOF
9121 cat >>$CONFIG_STATUS <<_ACEOF
9124 # CONFIG_FILES section.
9127 # No need to generate the scripts if there are no CONFIG_FILES.
9128 # This happens for instance when ./config.status config.h
9129 if test -n "\$CONFIG_FILES"; then
9130 # Protect against being on the right side of a sed subst in config.status.
9131 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9132 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9133 s,@SHELL@,$SHELL,;t t
9134 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9135 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9136 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9137 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9138 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9139 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9140 s,@exec_prefix@,$exec_prefix,;t t
9141 s,@prefix@,$prefix,;t t
9142 s,@program_transform_name@,$program_transform_name,;t t
9143 s,@bindir@,$bindir,;t t
9144 s,@sbindir@,$sbindir,;t t
9145 s,@libexecdir@,$libexecdir,;t t
9146 s,@datadir@,$datadir,;t t
9147 s,@sysconfdir@,$sysconfdir,;t t
9148 s,@sharedstatedir@,$sharedstatedir,;t t
9149 s,@localstatedir@,$localstatedir,;t t
9150 s,@libdir@,$libdir,;t t
9151 s,@includedir@,$includedir,;t t
9152 s,@oldincludedir@,$oldincludedir,;t t
9153 s,@infodir@,$infodir,;t t
9154 s,@mandir@,$mandir,;t t
9155 s,@build_alias@,$build_alias,;t t
9156 s,@host_alias@,$host_alias,;t t
9157 s,@target_alias@,$target_alias,;t t
9158 s,@DEFS@,$DEFS,;t t
9159 s,@ECHO_C@,$ECHO_C,;t t
9160 s,@ECHO_N@,$ECHO_N,;t t
9161 s,@ECHO_T@,$ECHO_T,;t t
9162 s,@LIBS@,$LIBS,;t t
9163 s,@build@,$build,;t t
9164 s,@build_cpu@,$build_cpu,;t t
9165 s,@build_vendor@,$build_vendor,;t t
9166 s,@build_os@,$build_os,;t t
9167 s,@host@,$host,;t t
9168 s,@host_cpu@,$host_cpu,;t t
9169 s,@host_vendor@,$host_vendor,;t t
9170 s,@host_os@,$host_os,;t t
9171 s,@target@,$target,;t t
9172 s,@target_cpu@,$target_cpu,;t t
9173 s,@target_vendor@,$target_vendor,;t t
9174 s,@target_os@,$target_os,;t t
9175 s,@CC@,$CC,;t t
9176 s,@CFLAGS@,$CFLAGS,;t t
9177 s,@LDFLAGS@,$LDFLAGS,;t t
9178 s,@CPPFLAGS@,$CPPFLAGS,;t t
9179 s,@ac_ct_CC@,$ac_ct_CC,;t t
9180 s,@EXEEXT@,$EXEEXT,;t t
9181 s,@OBJEXT@,$OBJEXT,;t t
9182 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9183 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9184 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9185 s,@CYGPATH_W@,$CYGPATH_W,;t t
9186 s,@PACKAGE@,$PACKAGE,;t t
9187 s,@VERSION@,$VERSION,;t t
9188 s,@ACLOCAL@,$ACLOCAL,;t t
9189 s,@AUTOCONF@,$AUTOCONF,;t t
9190 s,@AUTOMAKE@,$AUTOMAKE,;t t
9191 s,@AUTOHEADER@,$AUTOHEADER,;t t
9192 s,@MAKEINFO@,$MAKEINFO,;t t
9193 s,@install_sh@,$install_sh,;t t
9194 s,@STRIP@,$STRIP,;t t
9195 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9196 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9197 s,@mkdir_p@,$mkdir_p,;t t
9198 s,@AWK@,$AWK,;t t
9199 s,@SET_MAKE@,$SET_MAKE,;t t
9200 s,@am__leading_dot@,$am__leading_dot,;t t
9201 s,@AMTAR@,$AMTAR,;t t
9202 s,@am__tar@,$am__tar,;t t
9203 s,@am__untar@,$am__untar,;t t
9204 s,@DEPDIR@,$DEPDIR,;t t
9205 s,@am__include@,$am__include,;t t
9206 s,@am__quote@,$am__quote,;t t
9207 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9208 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9209 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9210 s,@CCDEPMODE@,$CCDEPMODE,;t t
9211 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9212 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9213 s,@LN_S@,$LN_S,;t t
9214 s,@RANLIB@,$RANLIB,;t t
9215 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9216 s,@LIBTOOL@,$LIBTOOL,;t t
9217 s,@CPP@,$CPP,;t t
9218 s,@EGREP@,$EGREP,;t t
9219 s,@ALLOCA@,$ALLOCA,;t t
9220 s,@USE_NLS@,$USE_NLS,;t t
9221 s,@MSGFMT@,$MSGFMT,;t t
9222 s,@GMSGFMT@,$GMSGFMT,;t t
9223 s,@XGETTEXT@,$XGETTEXT,;t t
9224 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9225 s,@CATALOGS@,$CATALOGS,;t t
9226 s,@CATOBJEXT@,$CATOBJEXT,;t t
9227 s,@DATADIRNAME@,$DATADIRNAME,;t t
9228 s,@GMOFILES@,$GMOFILES,;t t
9229 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9230 s,@INTLDEPS@,$INTLDEPS,;t t
9231 s,@INTLLIBS@,$INTLLIBS,;t t
9232 s,@INTLOBJS@,$INTLOBJS,;t t
9233 s,@POFILES@,$POFILES,;t t
9234 s,@POSUB@,$POSUB,;t t
9235 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9236 s,@GT_NO@,$GT_NO,;t t
9237 s,@GT_YES@,$GT_YES,;t t
9238 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9239 s,@l@,$l,;t t
9240 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9241 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9242 s,@MAINT@,$MAINT,;t t
9243 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9244 s,@NO_WERROR@,$NO_WERROR,;t t
9245 s,@datarootdir@,$datarootdir,;t t
9246 s,@docdir@,$docdir,;t t
9247 s,@htmldir@,$htmldir,;t t
9248 s,@LIBOBJS@,$LIBOBJS,;t t
9249 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9250 CEOF
9252 _ACEOF
9254 cat >>$CONFIG_STATUS <<\_ACEOF
9255 # Split the substitutions into bite-sized pieces for seds with
9256 # small command number limits, like on Digital OSF/1 and HP-UX.
9257 ac_max_sed_lines=48
9258 ac_sed_frag=1 # Number of current file.
9259 ac_beg=1 # First line for current file.
9260 ac_end=$ac_max_sed_lines # Line after last line for current file.
9261 ac_more_lines=:
9262 ac_sed_cmds=
9263 while $ac_more_lines; do
9264 if test $ac_beg -gt 1; then
9265 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9266 else
9267 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9269 if test ! -s $tmp/subs.frag; then
9270 ac_more_lines=false
9271 else
9272 # The purpose of the label and of the branching condition is to
9273 # speed up the sed processing (if there are no `@' at all, there
9274 # is no need to browse any of the substitutions).
9275 # These are the two extra sed commands mentioned above.
9276 (echo ':t
9277 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9278 if test -z "$ac_sed_cmds"; then
9279 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9280 else
9281 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9283 ac_sed_frag=`expr $ac_sed_frag + 1`
9284 ac_beg=$ac_end
9285 ac_end=`expr $ac_end + $ac_max_sed_lines`
9287 done
9288 if test -z "$ac_sed_cmds"; then
9289 ac_sed_cmds=cat
9291 fi # test -n "$CONFIG_FILES"
9293 _ACEOF
9294 cat >>$CONFIG_STATUS <<\_ACEOF
9295 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9296 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9297 case $ac_file in
9298 - | *:- | *:-:* ) # input from stdin
9299 cat >$tmp/stdin
9300 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9302 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9304 * ) ac_file_in=$ac_file.in ;;
9305 esac
9307 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9308 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9310 X"$ac_file" : 'X\(//\)[^/]' \| \
9311 X"$ac_file" : 'X\(//\)$' \| \
9312 X"$ac_file" : 'X\(/\)' \| \
9313 . : '\(.\)' 2>/dev/null ||
9314 echo X"$ac_file" |
9315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9317 /^X\(\/\/\)$/{ s//\1/; q; }
9318 /^X\(\/\).*/{ s//\1/; q; }
9319 s/.*/./; q'`
9320 { if $as_mkdir_p; then
9321 mkdir -p "$ac_dir"
9322 else
9323 as_dir="$ac_dir"
9324 as_dirs=
9325 while test ! -d "$as_dir"; do
9326 as_dirs="$as_dir $as_dirs"
9327 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9329 X"$as_dir" : 'X\(//\)[^/]' \| \
9330 X"$as_dir" : 'X\(//\)$' \| \
9331 X"$as_dir" : 'X\(/\)' \| \
9332 . : '\(.\)' 2>/dev/null ||
9333 echo X"$as_dir" |
9334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9336 /^X\(\/\/\)$/{ s//\1/; q; }
9337 /^X\(\/\).*/{ s//\1/; q; }
9338 s/.*/./; q'`
9339 done
9340 test ! -n "$as_dirs" || mkdir $as_dirs
9341 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9342 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9343 { (exit 1); exit 1; }; }; }
9345 ac_builddir=.
9347 if test "$ac_dir" != .; then
9348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9349 # A "../" for each directory in $ac_dir_suffix.
9350 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9351 else
9352 ac_dir_suffix= ac_top_builddir=
9355 case $srcdir in
9356 .) # No --srcdir option. We are building in place.
9357 ac_srcdir=.
9358 if test -z "$ac_top_builddir"; then
9359 ac_top_srcdir=.
9360 else
9361 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9362 fi ;;
9363 [\\/]* | ?:[\\/]* ) # Absolute path.
9364 ac_srcdir=$srcdir$ac_dir_suffix;
9365 ac_top_srcdir=$srcdir ;;
9366 *) # Relative path.
9367 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9368 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9369 esac
9371 # Do not use `cd foo && pwd` to compute absolute paths, because
9372 # the directories may not exist.
9373 case `pwd` in
9374 .) ac_abs_builddir="$ac_dir";;
9376 case "$ac_dir" in
9377 .) ac_abs_builddir=`pwd`;;
9378 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9379 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9380 esac;;
9381 esac
9382 case $ac_abs_builddir in
9383 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9385 case ${ac_top_builddir}. in
9386 .) ac_abs_top_builddir=$ac_abs_builddir;;
9387 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9388 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9389 esac;;
9390 esac
9391 case $ac_abs_builddir in
9392 .) ac_abs_srcdir=$ac_srcdir;;
9394 case $ac_srcdir in
9395 .) ac_abs_srcdir=$ac_abs_builddir;;
9396 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9397 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9398 esac;;
9399 esac
9400 case $ac_abs_builddir in
9401 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9403 case $ac_top_srcdir in
9404 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9405 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9406 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9407 esac;;
9408 esac
9411 case $INSTALL in
9412 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9413 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9414 esac
9416 if test x"$ac_file" != x-; then
9417 { echo "$as_me:$LINENO: creating $ac_file" >&5
9418 echo "$as_me: creating $ac_file" >&6;}
9419 rm -f "$ac_file"
9421 # Let's still pretend it is `configure' which instantiates (i.e., don't
9422 # use $as_me), people would be surprised to read:
9423 # /* config.h. Generated by config.status. */
9424 if test x"$ac_file" = x-; then
9425 configure_input=
9426 else
9427 configure_input="$ac_file. "
9429 configure_input=$configure_input"Generated from `echo $ac_file_in |
9430 sed 's,.*/,,'` by configure."
9432 # First look for the input files in the build tree, otherwise in the
9433 # src tree.
9434 ac_file_inputs=`IFS=:
9435 for f in $ac_file_in; do
9436 case $f in
9437 -) echo $tmp/stdin ;;
9438 [\\/$]*)
9439 # Absolute (can't be DOS-style, as IFS=:)
9440 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9441 echo "$as_me: error: cannot find input file: $f" >&2;}
9442 { (exit 1); exit 1; }; }
9443 echo "$f";;
9444 *) # Relative
9445 if test -f "$f"; then
9446 # Build tree
9447 echo "$f"
9448 elif test -f "$srcdir/$f"; then
9449 # Source tree
9450 echo "$srcdir/$f"
9451 else
9452 # /dev/null tree
9453 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9454 echo "$as_me: error: cannot find input file: $f" >&2;}
9455 { (exit 1); exit 1; }; }
9456 fi;;
9457 esac
9458 done` || { (exit 1); exit 1; }
9459 _ACEOF
9460 cat >>$CONFIG_STATUS <<_ACEOF
9461 sed "$ac_vpsub
9462 $extrasub
9463 _ACEOF
9464 cat >>$CONFIG_STATUS <<\_ACEOF
9466 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9467 s,@configure_input@,$configure_input,;t t
9468 s,@srcdir@,$ac_srcdir,;t t
9469 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9470 s,@top_srcdir@,$ac_top_srcdir,;t t
9471 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9472 s,@builddir@,$ac_builddir,;t t
9473 s,@abs_builddir@,$ac_abs_builddir,;t t
9474 s,@top_builddir@,$ac_top_builddir,;t t
9475 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9476 s,@INSTALL@,$ac_INSTALL,;t t
9477 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9478 rm -f $tmp/stdin
9479 if test x"$ac_file" != x-; then
9480 mv $tmp/out $ac_file
9481 else
9482 cat $tmp/out
9483 rm -f $tmp/out
9486 done
9487 _ACEOF
9488 cat >>$CONFIG_STATUS <<\_ACEOF
9491 # CONFIG_HEADER section.
9494 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9495 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9497 # ac_d sets the value in "#define NAME VALUE" lines.
9498 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9499 ac_dB='[ ].*$,\1#\2'
9500 ac_dC=' '
9501 ac_dD=',;t'
9502 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9503 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9504 ac_uB='$,\1#\2define\3'
9505 ac_uC=' '
9506 ac_uD=',;t'
9508 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9509 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9510 case $ac_file in
9511 - | *:- | *:-:* ) # input from stdin
9512 cat >$tmp/stdin
9513 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9514 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9515 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9516 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9517 * ) ac_file_in=$ac_file.in ;;
9518 esac
9520 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9521 echo "$as_me: creating $ac_file" >&6;}
9523 # First look for the input files in the build tree, otherwise in the
9524 # src tree.
9525 ac_file_inputs=`IFS=:
9526 for f in $ac_file_in; do
9527 case $f in
9528 -) echo $tmp/stdin ;;
9529 [\\/$]*)
9530 # Absolute (can't be DOS-style, as IFS=:)
9531 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9532 echo "$as_me: error: cannot find input file: $f" >&2;}
9533 { (exit 1); exit 1; }; }
9534 # Do quote $f, to prevent DOS paths from being IFS'd.
9535 echo "$f";;
9536 *) # Relative
9537 if test -f "$f"; then
9538 # Build tree
9539 echo "$f"
9540 elif test -f "$srcdir/$f"; then
9541 # Source tree
9542 echo "$srcdir/$f"
9543 else
9544 # /dev/null tree
9545 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9546 echo "$as_me: error: cannot find input file: $f" >&2;}
9547 { (exit 1); exit 1; }; }
9548 fi;;
9549 esac
9550 done` || { (exit 1); exit 1; }
9551 # Remove the trailing spaces.
9552 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9554 _ACEOF
9556 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9557 # `conftest.undefs', that substitutes the proper values into
9558 # config.h.in to produce config.h. The first handles `#define'
9559 # templates, and the second `#undef' templates.
9560 # And first: Protect against being on the right side of a sed subst in
9561 # config.status. Protect against being in an unquoted here document
9562 # in config.status.
9563 rm -f conftest.defines conftest.undefs
9564 # Using a here document instead of a string reduces the quoting nightmare.
9565 # Putting comments in sed scripts is not portable.
9567 # `end' is used to avoid that the second main sed command (meant for
9568 # 0-ary CPP macros) applies to n-ary macro definitions.
9569 # See the Autoconf documentation for `clear'.
9570 cat >confdef2sed.sed <<\_ACEOF
9571 s/[\\&,]/\\&/g
9572 s,[\\$`],\\&,g
9573 t clear
9574 : clear
9575 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9576 t end
9577 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9578 : end
9579 _ACEOF
9580 # If some macros were called several times there might be several times
9581 # the same #defines, which is useless. Nevertheless, we may not want to
9582 # sort them, since we want the *last* AC-DEFINE to be honored.
9583 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9584 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9585 rm -f confdef2sed.sed
9587 # This sed command replaces #undef with comments. This is necessary, for
9588 # example, in the case of _POSIX_SOURCE, which is predefined and required
9589 # on some systems where configure will not decide to define it.
9590 cat >>conftest.undefs <<\_ACEOF
9591 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9592 _ACEOF
9594 # Break up conftest.defines because some shells have a limit on the size
9595 # of here documents, and old seds have small limits too (100 cmds).
9596 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9597 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9598 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9599 echo ' :' >>$CONFIG_STATUS
9600 rm -f conftest.tail
9601 while grep . conftest.defines >/dev/null
9603 # Write a limited-size here document to $tmp/defines.sed.
9604 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9605 # Speed up: don't consider the non `#define' lines.
9606 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9607 # Work around the forget-to-reset-the-flag bug.
9608 echo 't clr' >>$CONFIG_STATUS
9609 echo ': clr' >>$CONFIG_STATUS
9610 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9611 echo 'CEOF
9612 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9613 rm -f $tmp/in
9614 mv $tmp/out $tmp/in
9615 ' >>$CONFIG_STATUS
9616 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9617 rm -f conftest.defines
9618 mv conftest.tail conftest.defines
9619 done
9620 rm -f conftest.defines
9621 echo ' fi # grep' >>$CONFIG_STATUS
9622 echo >>$CONFIG_STATUS
9624 # Break up conftest.undefs because some shells have a limit on the size
9625 # of here documents, and old seds have small limits too (100 cmds).
9626 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9627 rm -f conftest.tail
9628 while grep . conftest.undefs >/dev/null
9630 # Write a limited-size here document to $tmp/undefs.sed.
9631 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9632 # Speed up: don't consider the non `#undef'
9633 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9634 # Work around the forget-to-reset-the-flag bug.
9635 echo 't clr' >>$CONFIG_STATUS
9636 echo ': clr' >>$CONFIG_STATUS
9637 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9638 echo 'CEOF
9639 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9640 rm -f $tmp/in
9641 mv $tmp/out $tmp/in
9642 ' >>$CONFIG_STATUS
9643 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9644 rm -f conftest.undefs
9645 mv conftest.tail conftest.undefs
9646 done
9647 rm -f conftest.undefs
9649 cat >>$CONFIG_STATUS <<\_ACEOF
9650 # Let's still pretend it is `configure' which instantiates (i.e., don't
9651 # use $as_me), people would be surprised to read:
9652 # /* config.h. Generated by config.status. */
9653 if test x"$ac_file" = x-; then
9654 echo "/* Generated by configure. */" >$tmp/config.h
9655 else
9656 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9658 cat $tmp/in >>$tmp/config.h
9659 rm -f $tmp/in
9660 if test x"$ac_file" != x-; then
9661 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9662 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9663 echo "$as_me: $ac_file is unchanged" >&6;}
9664 else
9665 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9666 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9667 X"$ac_file" : 'X\(//\)[^/]' \| \
9668 X"$ac_file" : 'X\(//\)$' \| \
9669 X"$ac_file" : 'X\(/\)' \| \
9670 . : '\(.\)' 2>/dev/null ||
9671 echo X"$ac_file" |
9672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9673 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9674 /^X\(\/\/\)$/{ s//\1/; q; }
9675 /^X\(\/\).*/{ s//\1/; q; }
9676 s/.*/./; q'`
9677 { if $as_mkdir_p; then
9678 mkdir -p "$ac_dir"
9679 else
9680 as_dir="$ac_dir"
9681 as_dirs=
9682 while test ! -d "$as_dir"; do
9683 as_dirs="$as_dir $as_dirs"
9684 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9685 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9686 X"$as_dir" : 'X\(//\)[^/]' \| \
9687 X"$as_dir" : 'X\(//\)$' \| \
9688 X"$as_dir" : 'X\(/\)' \| \
9689 . : '\(.\)' 2>/dev/null ||
9690 echo X"$as_dir" |
9691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9692 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9693 /^X\(\/\/\)$/{ s//\1/; q; }
9694 /^X\(\/\).*/{ s//\1/; q; }
9695 s/.*/./; q'`
9696 done
9697 test ! -n "$as_dirs" || mkdir $as_dirs
9698 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9699 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9700 { (exit 1); exit 1; }; }; }
9702 rm -f $ac_file
9703 mv $tmp/config.h $ac_file
9705 else
9706 cat $tmp/config.h
9707 rm -f $tmp/config.h
9709 # Compute $ac_file's index in $config_headers.
9710 _am_stamp_count=1
9711 for _am_header in $config_headers :; do
9712 case $_am_header in
9713 $ac_file | $ac_file:* )
9714 break ;;
9716 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9717 esac
9718 done
9719 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9720 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9721 X$ac_file : 'X\(//\)[^/]' \| \
9722 X$ac_file : 'X\(//\)$' \| \
9723 X$ac_file : 'X\(/\)' \| \
9724 . : '\(.\)' 2>/dev/null ||
9725 echo X$ac_file |
9726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9727 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9728 /^X\(\/\/\)$/{ s//\1/; q; }
9729 /^X\(\/\).*/{ s//\1/; q; }
9730 s/.*/./; q'`/stamp-h$_am_stamp_count
9731 done
9732 _ACEOF
9733 cat >>$CONFIG_STATUS <<\_ACEOF
9736 # CONFIG_COMMANDS section.
9738 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9739 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9740 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9741 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9742 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9743 X"$ac_dest" : 'X\(//\)[^/]' \| \
9744 X"$ac_dest" : 'X\(//\)$' \| \
9745 X"$ac_dest" : 'X\(/\)' \| \
9746 . : '\(.\)' 2>/dev/null ||
9747 echo X"$ac_dest" |
9748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9750 /^X\(\/\/\)$/{ s//\1/; q; }
9751 /^X\(\/\).*/{ s//\1/; q; }
9752 s/.*/./; q'`
9753 { if $as_mkdir_p; then
9754 mkdir -p "$ac_dir"
9755 else
9756 as_dir="$ac_dir"
9757 as_dirs=
9758 while test ! -d "$as_dir"; do
9759 as_dirs="$as_dir $as_dirs"
9760 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9762 X"$as_dir" : 'X\(//\)[^/]' \| \
9763 X"$as_dir" : 'X\(//\)$' \| \
9764 X"$as_dir" : 'X\(/\)' \| \
9765 . : '\(.\)' 2>/dev/null ||
9766 echo X"$as_dir" |
9767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9769 /^X\(\/\/\)$/{ s//\1/; q; }
9770 /^X\(\/\).*/{ s//\1/; q; }
9771 s/.*/./; q'`
9772 done
9773 test ! -n "$as_dirs" || mkdir $as_dirs
9774 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9775 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9776 { (exit 1); exit 1; }; }; }
9778 ac_builddir=.
9780 if test "$ac_dir" != .; then
9781 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9782 # A "../" for each directory in $ac_dir_suffix.
9783 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9784 else
9785 ac_dir_suffix= ac_top_builddir=
9788 case $srcdir in
9789 .) # No --srcdir option. We are building in place.
9790 ac_srcdir=.
9791 if test -z "$ac_top_builddir"; then
9792 ac_top_srcdir=.
9793 else
9794 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9795 fi ;;
9796 [\\/]* | ?:[\\/]* ) # Absolute path.
9797 ac_srcdir=$srcdir$ac_dir_suffix;
9798 ac_top_srcdir=$srcdir ;;
9799 *) # Relative path.
9800 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9801 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9802 esac
9804 # Do not use `cd foo && pwd` to compute absolute paths, because
9805 # the directories may not exist.
9806 case `pwd` in
9807 .) ac_abs_builddir="$ac_dir";;
9809 case "$ac_dir" in
9810 .) ac_abs_builddir=`pwd`;;
9811 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9812 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9813 esac;;
9814 esac
9815 case $ac_abs_builddir in
9816 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9818 case ${ac_top_builddir}. in
9819 .) ac_abs_top_builddir=$ac_abs_builddir;;
9820 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9821 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9822 esac;;
9823 esac
9824 case $ac_abs_builddir in
9825 .) ac_abs_srcdir=$ac_srcdir;;
9827 case $ac_srcdir in
9828 .) ac_abs_srcdir=$ac_abs_builddir;;
9829 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9830 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9831 esac;;
9832 esac
9833 case $ac_abs_builddir in
9834 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9836 case $ac_top_srcdir in
9837 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9838 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9839 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9840 esac;;
9841 esac
9844 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9845 echo "$as_me: executing $ac_dest commands" >&6;}
9846 case $ac_dest in
9847 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9848 # Strip MF so we end up with the name of the file.
9849 mf=`echo "$mf" | sed -e 's/:.*$//'`
9850 # Check whether this is an Automake generated Makefile or not.
9851 # We used to match only the files named `Makefile.in', but
9852 # some people rename them; so instead we look at the file content.
9853 # Grep'ing the first line is not enough: some people post-process
9854 # each Makefile.in and add a new line on top of each file to say so.
9855 # So let's grep whole file.
9856 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9857 dirpart=`(dirname "$mf") 2>/dev/null ||
9858 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9859 X"$mf" : 'X\(//\)[^/]' \| \
9860 X"$mf" : 'X\(//\)$' \| \
9861 X"$mf" : 'X\(/\)' \| \
9862 . : '\(.\)' 2>/dev/null ||
9863 echo X"$mf" |
9864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9866 /^X\(\/\/\)$/{ s//\1/; q; }
9867 /^X\(\/\).*/{ s//\1/; q; }
9868 s/.*/./; q'`
9869 else
9870 continue
9872 # Extract the definition of DEPDIR, am__include, and am__quote
9873 # from the Makefile without running `make'.
9874 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9875 test -z "$DEPDIR" && continue
9876 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9877 test -z "am__include" && continue
9878 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9879 # When using ansi2knr, U may be empty or an underscore; expand it
9880 U=`sed -n 's/^U = //p' < "$mf"`
9881 # Find all dependency output files, they are included files with
9882 # $(DEPDIR) in their names. We invoke sed twice because it is the
9883 # simplest approach to changing $(DEPDIR) to its actual value in the
9884 # expansion.
9885 for file in `sed -n "
9886 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9887 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9888 # Make sure the directory exists.
9889 test -f "$dirpart/$file" && continue
9890 fdir=`(dirname "$file") 2>/dev/null ||
9891 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9892 X"$file" : 'X\(//\)[^/]' \| \
9893 X"$file" : 'X\(//\)$' \| \
9894 X"$file" : 'X\(/\)' \| \
9895 . : '\(.\)' 2>/dev/null ||
9896 echo X"$file" |
9897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9898 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9899 /^X\(\/\/\)$/{ s//\1/; q; }
9900 /^X\(\/\).*/{ s//\1/; q; }
9901 s/.*/./; q'`
9902 { if $as_mkdir_p; then
9903 mkdir -p $dirpart/$fdir
9904 else
9905 as_dir=$dirpart/$fdir
9906 as_dirs=
9907 while test ! -d "$as_dir"; do
9908 as_dirs="$as_dir $as_dirs"
9909 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9910 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9911 X"$as_dir" : 'X\(//\)[^/]' \| \
9912 X"$as_dir" : 'X\(//\)$' \| \
9913 X"$as_dir" : 'X\(/\)' \| \
9914 . : '\(.\)' 2>/dev/null ||
9915 echo X"$as_dir" |
9916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9917 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9918 /^X\(\/\/\)$/{ s//\1/; q; }
9919 /^X\(\/\).*/{ s//\1/; q; }
9920 s/.*/./; q'`
9921 done
9922 test ! -n "$as_dirs" || mkdir $as_dirs
9923 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9924 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9925 { (exit 1); exit 1; }; }; }
9927 # echo "creating $dirpart/$file"
9928 echo '# dummy' > "$dirpart/$file"
9929 done
9930 done
9932 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
9933 esac
9934 done
9935 _ACEOF
9937 cat >>$CONFIG_STATUS <<\_ACEOF
9939 { (exit 0); exit 0; }
9940 _ACEOF
9941 chmod +x $CONFIG_STATUS
9942 ac_clean_files=$ac_clean_files_save
9945 # configure is writing to config.log, and then calls config.status.
9946 # config.status does its own redirection, appending to config.log.
9947 # Unfortunately, on DOS this fails, as config.log is still kept open
9948 # by configure, so config.status won't be able to write to it; its
9949 # output is simply discarded. So we exec the FD to /dev/null,
9950 # effectively closing config.log, so it can be properly (re)opened and
9951 # appended to by config.status. When coming back to configure, we
9952 # need to make the FD available again.
9953 if test "$no_create" != yes; then
9954 ac_cs_success=:
9955 ac_config_status_args=
9956 test "$silent" = yes &&
9957 ac_config_status_args="$ac_config_status_args --quiet"
9958 exec 5>/dev/null
9959 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9960 exec 5>>config.log
9961 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9962 # would make configure fail if this is the last instruction.
9963 $ac_cs_success || { (exit 1); exit 1; }