* Makefile.def (flags_to_pass): Add CFLAGS_FOR_BUILD.
[binutils.git] / gprof / configure
blob6ae88b8a2cd488595d5f00570dc3b1eb7b103f66
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 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 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3343 lt_cv_file_magic_cmd='/usr/bin/file -L'
3344 case "$host_os" in
3345 rhapsody* | darwin1.012)
3346 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3348 *) # Darwin 1.3 on
3349 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3351 esac
3354 freebsd* | kfreebsd*-gnu)
3355 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3356 case $host_cpu in
3357 i*86 )
3358 # Not sure whether the presence of OpenBSD here was a mistake.
3359 # Let's accept both of them until this is cleared up.
3360 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3361 lt_cv_file_magic_cmd=/usr/bin/file
3362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3364 esac
3365 else
3366 lt_cv_deplibs_check_method=pass_all
3370 gnu*)
3371 lt_cv_deplibs_check_method=pass_all
3374 hpux10.20*|hpux11*)
3375 case $host_cpu in
3376 hppa*)
3377 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3378 lt_cv_file_magic_cmd=/usr/bin/file
3379 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3381 ia64*)
3382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3383 lt_cv_file_magic_cmd=/usr/bin/file
3384 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3386 esac
3389 irix5* | irix6*)
3390 case $host_os in
3391 irix5*)
3392 # this will be overridden with pass_all, but let us keep it just in case
3393 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3396 case $LD in
3397 *-32|*"-32 ") libmagic=32-bit;;
3398 *-n32|*"-n32 ") libmagic=N32;;
3399 *-64|*"-64 ") libmagic=64-bit;;
3400 *) libmagic=never-match;;
3401 esac
3402 # this will be overridden with pass_all, but let us keep it just in case
3403 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3405 esac
3406 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3407 lt_cv_deplibs_check_method=pass_all
3410 # This must be Linux ELF.
3411 linux-gnu*)
3412 case $host_cpu in
3413 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3414 lt_cv_deplibs_check_method=pass_all ;;
3416 # glibc up to 2.1.1 does not perform some relocations on ARM
3417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3418 esac
3419 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3422 netbsd* | knetbsd*-gnu)
3423 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3424 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3425 else
3426 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3430 newsos6)
3431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3432 lt_cv_file_magic_cmd=/usr/bin/file
3433 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3436 osf3* | osf4* | osf5*)
3437 # this will be overridden with pass_all, but let us keep it just in case
3438 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3439 lt_cv_file_magic_test_file=/shlib/libc.so
3440 lt_cv_deplibs_check_method=pass_all
3443 sco3.2v5*)
3444 lt_cv_deplibs_check_method=pass_all
3447 solaris*)
3448 lt_cv_deplibs_check_method=pass_all
3449 lt_cv_file_magic_test_file=/lib/libc.so
3452 sysv5uw[78]* | sysv4*uw2*)
3453 lt_cv_deplibs_check_method=pass_all
3456 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3457 case $host_vendor in
3458 ncr)
3459 lt_cv_deplibs_check_method=pass_all
3461 motorola)
3462 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]'
3463 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3465 esac
3467 esac
3470 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3471 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3472 file_magic_cmd=$lt_cv_file_magic_cmd
3473 deplibs_check_method=$lt_cv_deplibs_check_method
3478 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3480 # Only perform the check for file, if the check method requires it
3481 case $deplibs_check_method in
3482 file_magic*)
3483 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3484 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3485 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3486 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 else
3489 case $MAGIC_CMD in
3491 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3493 ?:/*)
3494 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3497 ac_save_MAGIC_CMD="$MAGIC_CMD"
3498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3499 ac_dummy="/usr/bin:$PATH"
3500 for ac_dir in $ac_dummy; do
3501 test -z "$ac_dir" && ac_dir=.
3502 if test -f $ac_dir/${ac_tool_prefix}file; then
3503 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3504 if test -n "$file_magic_test_file"; then
3505 case $deplibs_check_method in
3506 "file_magic "*)
3507 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3509 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3510 egrep "$file_magic_regex" > /dev/null; then
3512 else
3513 cat <<EOF 1>&2
3515 *** Warning: the command libtool uses to detect shared libraries,
3516 *** $file_magic_cmd, produces output that libtool cannot recognize.
3517 *** The result is that libtool may fail to recognize shared libraries
3518 *** as such. This will affect the creation of libtool libraries that
3519 *** depend on shared libraries, but programs linked with such libtool
3520 *** libraries will work regardless of this problem. Nevertheless, you
3521 *** may want to report the problem to your system manager and/or to
3522 *** bug-libtool@gnu.org
3525 fi ;;
3526 esac
3528 break
3530 done
3531 IFS="$ac_save_ifs"
3532 MAGIC_CMD="$ac_save_MAGIC_CMD"
3534 esac
3537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3538 if test -n "$MAGIC_CMD"; then
3539 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3540 echo "${ECHO_T}$MAGIC_CMD" >&6
3541 else
3542 echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6
3546 if test -z "$lt_cv_path_MAGIC_CMD"; then
3547 if test -n "$ac_tool_prefix"; then
3548 echo "$as_me:$LINENO: checking for file" >&5
3549 echo $ECHO_N "checking for file... $ECHO_C" >&6
3550 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553 case $MAGIC_CMD in
3555 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3557 ?:/*)
3558 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3561 ac_save_MAGIC_CMD="$MAGIC_CMD"
3562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3563 ac_dummy="/usr/bin:$PATH"
3564 for ac_dir in $ac_dummy; do
3565 test -z "$ac_dir" && ac_dir=.
3566 if test -f $ac_dir/file; then
3567 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3568 if test -n "$file_magic_test_file"; then
3569 case $deplibs_check_method in
3570 "file_magic "*)
3571 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3572 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3573 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3574 egrep "$file_magic_regex" > /dev/null; then
3576 else
3577 cat <<EOF 1>&2
3579 *** Warning: the command libtool uses to detect shared libraries,
3580 *** $file_magic_cmd, produces output that libtool cannot recognize.
3581 *** The result is that libtool may fail to recognize shared libraries
3582 *** as such. This will affect the creation of libtool libraries that
3583 *** depend on shared libraries, but programs linked with such libtool
3584 *** libraries will work regardless of this problem. Nevertheless, you
3585 *** may want to report the problem to your system manager and/or to
3586 *** bug-libtool@gnu.org
3589 fi ;;
3590 esac
3592 break
3594 done
3595 IFS="$ac_save_ifs"
3596 MAGIC_CMD="$ac_save_MAGIC_CMD"
3598 esac
3601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3602 if test -n "$MAGIC_CMD"; then
3603 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3604 echo "${ECHO_T}$MAGIC_CMD" >&6
3605 else
3606 echo "$as_me:$LINENO: result: no" >&5
3607 echo "${ECHO_T}no" >&6
3610 else
3611 MAGIC_CMD=:
3617 esac
3619 if test -n "$ac_tool_prefix"; then
3620 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3621 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3622 echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624 if test "${ac_cv_prog_RANLIB+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627 if test -n "$RANLIB"; then
3628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3633 IFS=$as_save_IFS
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 break 2
3641 done
3642 done
3646 RANLIB=$ac_cv_prog_RANLIB
3647 if test -n "$RANLIB"; then
3648 echo "$as_me:$LINENO: result: $RANLIB" >&5
3649 echo "${ECHO_T}$RANLIB" >&6
3650 else
3651 echo "$as_me:$LINENO: result: no" >&5
3652 echo "${ECHO_T}no" >&6
3656 if test -z "$ac_cv_prog_RANLIB"; then
3657 ac_ct_RANLIB=$RANLIB
3658 # Extract the first word of "ranlib", so it can be a program name with args.
3659 set dummy ranlib; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665 if test -n "$ac_ct_RANLIB"; then
3666 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675 ac_cv_prog_ac_ct_RANLIB="ranlib"
3676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 break 2
3679 done
3680 done
3682 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3685 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3686 if test -n "$ac_ct_RANLIB"; then
3687 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3688 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3689 else
3690 echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3694 RANLIB=$ac_ct_RANLIB
3695 else
3696 RANLIB="$ac_cv_prog_RANLIB"
3699 if test -n "$ac_tool_prefix"; then
3700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3701 set dummy ${ac_tool_prefix}strip; ac_word=$2
3702 echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704 if test "${ac_cv_prog_STRIP+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707 if test -n "$STRIP"; then
3708 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3721 done
3722 done
3726 STRIP=$ac_cv_prog_STRIP
3727 if test -n "$STRIP"; then
3728 echo "$as_me:$LINENO: result: $STRIP" >&5
3729 echo "${ECHO_T}$STRIP" >&6
3730 else
3731 echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3736 if test -z "$ac_cv_prog_STRIP"; then
3737 ac_ct_STRIP=$STRIP
3738 # Extract the first word of "strip", so it can be a program name with args.
3739 set dummy strip; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745 if test -n "$ac_ct_STRIP"; then
3746 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3747 else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755 ac_cv_prog_ac_ct_STRIP="strip"
3756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 break 2
3759 done
3760 done
3762 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3765 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3766 if test -n "$ac_ct_STRIP"; then
3767 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3768 echo "${ECHO_T}$ac_ct_STRIP" >&6
3769 else
3770 echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3774 STRIP=$ac_ct_STRIP
3775 else
3776 STRIP="$ac_cv_prog_STRIP"
3780 # Check for any special flags to pass to ltconfig.
3781 libtool_flags="--cache-file=$cache_file"
3782 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3783 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3784 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3785 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3786 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3789 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3790 if test "${enable_libtool_lock+set}" = set; then
3791 enableval="$enable_libtool_lock"
3794 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3795 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3798 # Check whether --with-pic or --without-pic was given.
3799 if test "${with_pic+set}" = set; then
3800 withval="$with_pic"
3801 pic_mode="$withval"
3802 else
3803 pic_mode=default
3805 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3806 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3808 # Some flags need to be propagated to the compiler or linker for good
3809 # libtool support.
3810 case $host in
3811 *-*-irix6*)
3812 # Find out which ABI we are using.
3813 echo '#line 3813 "configure"' > conftest.$ac_ext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815 (eval $ac_compile) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; then
3819 if test "$lt_cv_prog_gnu_ld" = yes; then
3820 case `/usr/bin/file conftest.$ac_objext` in
3821 *32-bit*)
3822 LD="${LD-ld} -melf32bsmip"
3824 *N32*)
3825 LD="${LD-ld} -melf32bmipn32"
3827 *64-bit*)
3828 LD="${LD-ld} -melf64bmip"
3830 esac
3831 else
3832 case `/usr/bin/file conftest.$ac_objext` in
3833 *32-bit*)
3834 LD="${LD-ld} -32"
3836 *N32*)
3837 LD="${LD-ld} -n32"
3839 *64-bit*)
3840 LD="${LD-ld} -64"
3842 esac
3845 rm -rf conftest*
3848 ia64-*-hpux*)
3849 # Find out which ABI we are using.
3850 echo 'int i;' > conftest.$ac_ext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852 (eval $ac_compile) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; then
3856 case "`/usr/bin/file conftest.o`" in
3857 *ELF-32*)
3858 HPUX_IA64_MODE="32"
3860 *ELF-64*)
3861 HPUX_IA64_MODE="64"
3863 esac
3865 rm -rf conftest*
3868 *-*-sco3.2v5*)
3869 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3870 SAVE_CFLAGS="$CFLAGS"
3871 CFLAGS="$CFLAGS -belf"
3872 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3873 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3874 if test "${lt_cv_cc_needs_belf+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3879 ac_ext=c
3880 ac_cpp='$CPP $CPPFLAGS'
3881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885 cat >conftest.$ac_ext <<_ACEOF
3886 /* confdefs.h. */
3887 _ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3893 main ()
3897 return 0;
3899 _ACEOF
3900 rm -f conftest.$ac_objext conftest$ac_exeext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902 (eval $ac_link) 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } &&
3909 { ac_try='test -z "$ac_c_werror_flag"
3910 || test ! -s conftest.err'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 (eval $ac_try) 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; } &&
3916 { ac_try='test -s conftest$ac_exeext'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; }; then
3922 lt_cv_cc_needs_belf=yes
3923 else
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 lt_cv_cc_needs_belf=no
3929 rm -f conftest.err conftest.$ac_objext \
3930 conftest$ac_exeext conftest.$ac_ext
3931 ac_ext=c
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3939 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3940 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3941 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3942 CFLAGS="$SAVE_CFLAGS"
3947 esac
3950 # Save cache, so that ltconfig can load it
3951 cat >confcache <<\_ACEOF
3952 # This file is a shell script that caches the results of configure
3953 # tests run on this system so they can be shared between configure
3954 # scripts and configure runs, see configure's option --config-cache.
3955 # It is not useful on other systems. If it contains results you don't
3956 # want to keep, you may remove or edit it.
3958 # config.status only pays attention to the cache file if you give it
3959 # the --recheck option to rerun configure.
3961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3963 # following values.
3965 _ACEOF
3967 # The following way of writing the cache mishandles newlines in values,
3968 # but we know of no workaround that is simple, portable, and efficient.
3969 # So, don't put newlines in cache variables' values.
3970 # Ultrix sh set writes to stderr and can't be redirected directly,
3971 # and sets the high bit in the cache file unless we assign to the vars.
3973 (set) 2>&1 |
3974 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3975 *ac_space=\ *)
3976 # `set' does not quote correctly, so add quotes (double-quote
3977 # substitution turns \\\\ into \\, and sed turns \\ into \).
3978 sed -n \
3979 "s/'/'\\\\''/g;
3980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3983 # `set' quotes correctly as required by POSIX, so do not add quotes.
3984 sed -n \
3985 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3987 esac;
3989 sed '
3990 t clear
3991 : clear
3992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3993 t end
3994 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3995 : end' >>confcache
3996 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3997 if test -w $cache_file; then
3998 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3999 cat confcache >$cache_file
4000 else
4001 echo "not updating unwritable cache $cache_file"
4004 rm -f confcache
4006 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4007 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4008 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4009 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4010 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4011 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4012 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4013 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4014 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4015 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4016 echo "$as_me: error: libtool configure failed" >&2;}
4017 { (exit 1); exit 1; }; }
4019 # Reload cache, that may have been modified by ltconfig
4020 if test -r "$cache_file"; then
4021 # Some versions of bash will fail to source /dev/null (special
4022 # files actually), so we avoid doing that.
4023 if test -f "$cache_file"; then
4024 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4025 echo "$as_me: loading cache $cache_file" >&6;}
4026 case $cache_file in
4027 [\\/]* | ?:[\\/]* ) . $cache_file;;
4028 *) . ./$cache_file;;
4029 esac
4031 else
4032 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4033 echo "$as_me: creating cache $cache_file" >&6;}
4034 >$cache_file
4038 # This can be used to rebuild libtool when needed
4039 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4041 # Always use our own libtool.
4042 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4044 # Redirect the config.log output again, so that the ltconfig log is not
4045 # clobbered by the next message.
4046 exec 5>>./config.log
4054 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
4057 ac_ext=c
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062 if test -n "$ac_tool_prefix"; then
4063 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4064 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4065 echo "$as_me:$LINENO: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067 if test "${ac_cv_prog_CC+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070 if test -n "$CC"; then
4071 ac_cv_prog_CC="$CC" # Let the user override the test.
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4080 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 break 2
4084 done
4085 done
4089 CC=$ac_cv_prog_CC
4090 if test -n "$CC"; then
4091 echo "$as_me:$LINENO: result: $CC" >&5
4092 echo "${ECHO_T}$CC" >&6
4093 else
4094 echo "$as_me:$LINENO: result: no" >&5
4095 echo "${ECHO_T}no" >&6
4099 if test -z "$ac_cv_prog_CC"; then
4100 ac_ct_CC=$CC
4101 # Extract the first word of "gcc", so it can be a program name with args.
4102 set dummy gcc; ac_word=$2
4103 echo "$as_me:$LINENO: checking for $ac_word" >&5
4104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108 if test -n "$ac_ct_CC"; then
4109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4110 else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4118 ac_cv_prog_ac_ct_CC="gcc"
4119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 break 2
4122 done
4123 done
4127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4128 if test -n "$ac_ct_CC"; then
4129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4130 echo "${ECHO_T}$ac_ct_CC" >&6
4131 else
4132 echo "$as_me:$LINENO: result: no" >&5
4133 echo "${ECHO_T}no" >&6
4136 CC=$ac_ct_CC
4137 else
4138 CC="$ac_cv_prog_CC"
4141 if test -z "$CC"; then
4142 if test -n "$ac_tool_prefix"; then
4143 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4144 set dummy ${ac_tool_prefix}cc; ac_word=$2
4145 echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_prog_CC+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 if test -n "$CC"; then
4151 ac_cv_prog_CC="$CC" # Let the user override the test.
4152 else
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4160 ac_cv_prog_CC="${ac_tool_prefix}cc"
4161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 break 2
4164 done
4165 done
4169 CC=$ac_cv_prog_CC
4170 if test -n "$CC"; then
4171 echo "$as_me:$LINENO: result: $CC" >&5
4172 echo "${ECHO_T}$CC" >&6
4173 else
4174 echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4179 if test -z "$ac_cv_prog_CC"; then
4180 ac_ct_CC=$CC
4181 # Extract the first word of "cc", so it can be a program name with args.
4182 set dummy cc; ac_word=$2
4183 echo "$as_me:$LINENO: checking for $ac_word" >&5
4184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188 if test -n "$ac_ct_CC"; then
4189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4198 ac_cv_prog_ac_ct_CC="cc"
4199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 break 2
4202 done
4203 done
4207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4208 if test -n "$ac_ct_CC"; then
4209 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4210 echo "${ECHO_T}$ac_ct_CC" >&6
4211 else
4212 echo "$as_me:$LINENO: result: no" >&5
4213 echo "${ECHO_T}no" >&6
4216 CC=$ac_ct_CC
4217 else
4218 CC="$ac_cv_prog_CC"
4222 if test -z "$CC"; then
4223 # Extract the first word of "cc", so it can be a program name with args.
4224 set dummy cc; ac_word=$2
4225 echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4227 if test "${ac_cv_prog_CC+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230 if test -n "$CC"; then
4231 ac_cv_prog_CC="$CC" # Let the user override the test.
4232 else
4233 ac_prog_rejected=no
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4242 ac_prog_rejected=yes
4243 continue
4245 ac_cv_prog_CC="cc"
4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4249 done
4250 done
4252 if test $ac_prog_rejected = yes; then
4253 # We found a bogon in the path, so make sure we never use it.
4254 set dummy $ac_cv_prog_CC
4255 shift
4256 if test $# != 0; then
4257 # We chose a different compiler from the bogus one.
4258 # However, it has the same basename, so the bogon will be chosen
4259 # first if we set CC to just the basename; use the full file name.
4260 shift
4261 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4266 CC=$ac_cv_prog_CC
4267 if test -n "$CC"; then
4268 echo "$as_me:$LINENO: result: $CC" >&5
4269 echo "${ECHO_T}$CC" >&6
4270 else
4271 echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6
4276 if test -z "$CC"; then
4277 if test -n "$ac_tool_prefix"; then
4278 for ac_prog in cl
4280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4282 echo "$as_me:$LINENO: checking for $ac_word" >&5
4283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4284 if test "${ac_cv_prog_CC+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287 if test -n "$CC"; then
4288 ac_cv_prog_CC="$CC" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4297 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4301 done
4302 done
4306 CC=$ac_cv_prog_CC
4307 if test -n "$CC"; then
4308 echo "$as_me:$LINENO: result: $CC" >&5
4309 echo "${ECHO_T}$CC" >&6
4310 else
4311 echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6
4315 test -n "$CC" && break
4316 done
4318 if test -z "$CC"; then
4319 ac_ct_CC=$CC
4320 for ac_prog in cl
4322 # Extract the first word of "$ac_prog", so it can be a program name with args.
4323 set dummy $ac_prog; ac_word=$2
4324 echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4326 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329 if test -n "$ac_ct_CC"; then
4330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4339 ac_cv_prog_ac_ct_CC="$ac_prog"
4340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4343 done
4344 done
4348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4349 if test -n "$ac_ct_CC"; then
4350 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4351 echo "${ECHO_T}$ac_ct_CC" >&6
4352 else
4353 echo "$as_me:$LINENO: result: no" >&5
4354 echo "${ECHO_T}no" >&6
4357 test -n "$ac_ct_CC" && break
4358 done
4360 CC=$ac_ct_CC
4366 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4367 See \`config.log' for more details." >&5
4368 echo "$as_me: error: no acceptable C compiler found in \$PATH
4369 See \`config.log' for more details." >&2;}
4370 { (exit 1); exit 1; }; }
4372 # Provide some information about the compiler.
4373 echo "$as_me:$LINENO:" \
4374 "checking for C compiler version" >&5
4375 ac_compiler=`set X $ac_compile; echo $2`
4376 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4377 (eval $ac_compiler --version </dev/null >&5) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }
4381 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4382 (eval $ac_compiler -v </dev/null >&5) 2>&5
4383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }
4386 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4387 (eval $ac_compiler -V </dev/null >&5) 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }
4392 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h. */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4405 main ()
4407 #ifndef __GNUC__
4408 choke me
4409 #endif
4412 return 0;
4414 _ACEOF
4415 rm -f conftest.$ac_objext
4416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -z "$ac_c_werror_flag"
4425 || test ! -s conftest.err'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 (eval $ac_try) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; } &&
4431 { ac_try='test -s conftest.$ac_objext'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_compiler_gnu=yes
4438 else
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4442 ac_compiler_gnu=no
4444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4448 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4450 GCC=`test $ac_compiler_gnu = yes && echo yes`
4451 ac_test_CFLAGS=${CFLAGS+set}
4452 ac_save_CFLAGS=$CFLAGS
4453 CFLAGS="-g"
4454 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4456 if test "${ac_cv_prog_cc_g+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 cat >conftest.$ac_ext <<_ACEOF
4460 /* confdefs.h. */
4461 _ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4467 main ()
4471 return 0;
4473 _ACEOF
4474 rm -f conftest.$ac_objext
4475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4476 (eval $ac_compile) 2>conftest.er1
4477 ac_status=$?
4478 grep -v '^ *+' conftest.er1 >conftest.err
4479 rm -f conftest.er1
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -z "$ac_c_werror_flag"
4484 || test ! -s conftest.err'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; } &&
4490 { ac_try='test -s conftest.$ac_objext'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 (eval $ac_try) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; }; then
4496 ac_cv_prog_cc_g=yes
4497 else
4498 echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4501 ac_cv_prog_cc_g=no
4503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4505 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4506 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4507 if test "$ac_test_CFLAGS" = set; then
4508 CFLAGS=$ac_save_CFLAGS
4509 elif test $ac_cv_prog_cc_g = yes; then
4510 if test "$GCC" = yes; then
4511 CFLAGS="-g -O2"
4512 else
4513 CFLAGS="-g"
4515 else
4516 if test "$GCC" = yes; then
4517 CFLAGS="-O2"
4518 else
4519 CFLAGS=
4522 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4523 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4524 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527 ac_cv_prog_cc_stdc=no
4528 ac_save_CC=$CC
4529 cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h. */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 #include <stdarg.h>
4536 #include <stdio.h>
4537 #include <sys/types.h>
4538 #include <sys/stat.h>
4539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4540 struct buf { int x; };
4541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4542 static char *e (p, i)
4543 char **p;
4544 int i;
4546 return p[i];
4548 static char *f (char * (*g) (char **, int), char **p, ...)
4550 char *s;
4551 va_list v;
4552 va_start (v,p);
4553 s = g (p, va_arg (v,int));
4554 va_end (v);
4555 return s;
4558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4559 function prototypes and stuff, but not '\xHH' hex character constants.
4560 These don't provoke an error unfortunately, instead are silently treated
4561 as 'x'. The following induces an error, until -std1 is added to get
4562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4563 array size at least. It's necessary to write '\x00'==0 to get something
4564 that's true only with -std1. */
4565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4567 int test (int i, double x);
4568 struct s1 {int (*f) (int a);};
4569 struct s2 {int (*f) (double a);};
4570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4571 int argc;
4572 char **argv;
4574 main ()
4576 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4578 return 0;
4580 _ACEOF
4581 # Don't try gcc -ansi; that turns off useful extensions and
4582 # breaks some systems' header files.
4583 # AIX -qlanglvl=ansi
4584 # Ultrix and OSF/1 -std1
4585 # HP-UX 10.20 and later -Ae
4586 # HP-UX older versions -Aa -D_HPUX_SOURCE
4587 # SVR4 -Xc -D__EXTENSIONS__
4588 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4590 CC="$ac_save_CC $ac_arg"
4591 rm -f conftest.$ac_objext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>conftest.er1
4594 ac_status=$?
4595 grep -v '^ *+' conftest.er1 >conftest.err
4596 rm -f conftest.er1
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -z "$ac_c_werror_flag"
4601 || test ! -s conftest.err'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 ac_cv_prog_cc_stdc=$ac_arg
4614 break
4615 else
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4620 rm -f conftest.err conftest.$ac_objext
4621 done
4622 rm -f conftest.$ac_ext conftest.$ac_objext
4623 CC=$ac_save_CC
4627 case "x$ac_cv_prog_cc_stdc" in
4628 x|xno)
4629 echo "$as_me:$LINENO: result: none needed" >&5
4630 echo "${ECHO_T}none needed" >&6 ;;
4632 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4633 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4634 CC="$CC $ac_cv_prog_cc_stdc" ;;
4635 esac
4637 # Some people use a C++ compiler to compile C. Since we use `exit',
4638 # in C++ we need to declare it. In case someone uses the same compiler
4639 # for both compiling C and C++ we need to have the C++ compiler decide
4640 # the declaration of exit, since it's the most demanding environment.
4641 cat >conftest.$ac_ext <<_ACEOF
4642 #ifndef __cplusplus
4643 choke me
4644 #endif
4645 _ACEOF
4646 rm -f conftest.$ac_objext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4648 (eval $ac_compile) 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -z "$ac_c_werror_flag"
4656 || test ! -s conftest.err'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; } &&
4662 { ac_try='test -s conftest.$ac_objext'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; }; then
4668 for ac_declaration in \
4669 '' \
4670 'extern "C" void std::exit (int) throw (); using std::exit;' \
4671 'extern "C" void std::exit (int); using std::exit;' \
4672 'extern "C" void exit (int) throw ();' \
4673 'extern "C" void exit (int);' \
4674 'void exit (int);'
4676 cat >conftest.$ac_ext <<_ACEOF
4677 /* confdefs.h. */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 $ac_declaration
4683 #include <stdlib.h>
4685 main ()
4687 exit (42);
4689 return 0;
4691 _ACEOF
4692 rm -f conftest.$ac_objext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694 (eval $ac_compile) 2>conftest.er1
4695 ac_status=$?
4696 grep -v '^ *+' conftest.er1 >conftest.err
4697 rm -f conftest.er1
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -z "$ac_c_werror_flag"
4702 || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try='test -s conftest.$ac_objext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4715 else
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4719 continue
4721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4722 cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h. */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 $ac_declaration
4730 main ()
4732 exit (42);
4734 return 0;
4736 _ACEOF
4737 rm -f conftest.$ac_objext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739 (eval $ac_compile) 2>conftest.er1
4740 ac_status=$?
4741 grep -v '^ *+' conftest.er1 >conftest.err
4742 rm -f conftest.er1
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -z "$ac_c_werror_flag"
4747 || test ! -s conftest.err'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest.$ac_objext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 break
4760 else
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4766 done
4767 rm -f conftest*
4768 if test -n "$ac_declaration"; then
4769 echo '#ifdef __cplusplus' >>confdefs.h
4770 echo $ac_declaration >>confdefs.h
4771 echo '#endif' >>confdefs.h
4774 else
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4780 ac_ext=c
4781 ac_cpp='$CPP $CPPFLAGS'
4782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786 # Find a good install program. We prefer a C program (faster),
4787 # so one script is as good as another. But avoid the broken or
4788 # incompatible versions:
4789 # SysV /etc/install, /usr/sbin/install
4790 # SunOS /usr/etc/install
4791 # IRIX /sbin/install
4792 # AIX /bin/install
4793 # AmigaOS /C/install, which installs bootblocks on floppy discs
4794 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4795 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4796 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4797 # OS/2's system install, which has a completely different semantic
4798 # ./install, which can be erroneously created by make from ./install.sh.
4799 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4800 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4801 if test -z "$INSTALL"; then
4802 if test "${ac_cv_path_install+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4808 IFS=$as_save_IFS
4809 test -z "$as_dir" && as_dir=.
4810 # Account for people who put trailing slashes in PATH elements.
4811 case $as_dir/ in
4812 ./ | .// | /cC/* | \
4813 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4814 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4815 /usr/ucb/* ) ;;
4817 # OSF1 and SCO ODT 3.0 have their own names for install.
4818 # Don't use installbsd from OSF since it installs stuff as root
4819 # by default.
4820 for ac_prog in ginstall scoinst install; do
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4823 if test $ac_prog = install &&
4824 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4825 # AIX install. It has an incompatible calling convention.
4827 elif test $ac_prog = install &&
4828 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4829 # program-specific install script used by HP pwplus--don't use.
4831 else
4832 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4833 break 3
4836 done
4837 done
4839 esac
4840 done
4844 if test "${ac_cv_path_install+set}" = set; then
4845 INSTALL=$ac_cv_path_install
4846 else
4847 # As a last resort, use the slow shell script. We don't cache a
4848 # path for INSTALL within a source directory, because that will
4849 # break other packages using the cache if that directory is
4850 # removed, or if the path is relative.
4851 INSTALL=$ac_install_sh
4854 echo "$as_me:$LINENO: result: $INSTALL" >&5
4855 echo "${ECHO_T}$INSTALL" >&6
4857 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4858 # It thinks the first close brace ends the variable substitution.
4859 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4861 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4863 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4867 for ac_func in setmode
4869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4870 echo "$as_me:$LINENO: checking for $ac_func" >&5
4871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4872 if eval "test \"\${$as_ac_var+set}\" = set"; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875 cat >conftest.$ac_ext <<_ACEOF
4876 /* confdefs.h. */
4877 _ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4883 #define $ac_func innocuous_$ac_func
4885 /* System header to define __stub macros and hopefully few prototypes,
4886 which can conflict with char $ac_func (); below.
4887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4888 <limits.h> exists even on freestanding compilers. */
4890 #ifdef __STDC__
4891 # include <limits.h>
4892 #else
4893 # include <assert.h>
4894 #endif
4896 #undef $ac_func
4898 /* Override any gcc2 internal prototype to avoid an error. */
4899 #ifdef __cplusplus
4900 extern "C"
4902 #endif
4903 /* We use char because int might match the return type of a gcc2
4904 builtin and then its argument prototype would still apply. */
4905 char $ac_func ();
4906 /* The GNU C library defines this for functions which it implements
4907 to always fail with ENOSYS. Some functions are actually named
4908 something starting with __ and the normal name is an alias. */
4909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4910 choke me
4911 #else
4912 char (*f) () = $ac_func;
4913 #endif
4914 #ifdef __cplusplus
4916 #endif
4919 main ()
4921 return f != $ac_func;
4923 return 0;
4925 _ACEOF
4926 rm -f conftest.$ac_objext conftest$ac_exeext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4928 (eval $ac_link) 2>conftest.er1
4929 ac_status=$?
4930 grep -v '^ *+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try='test -z "$ac_c_werror_flag"
4936 || test ! -s conftest.err'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; } &&
4942 { ac_try='test -s conftest$ac_exeext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 eval "$as_ac_var=yes"
4949 else
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4953 eval "$as_ac_var=no"
4955 rm -f conftest.err conftest.$ac_objext \
4956 conftest$ac_exeext conftest.$ac_ext
4958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4960 if test `eval echo '${'$as_ac_var'}'` = yes; then
4961 cat >>confdefs.h <<_ACEOF
4962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4963 _ACEOF
4966 done
4969 ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw"
4970 if test -n "$ac_tool_prefix"; then
4971 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4972 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4973 echo "$as_me:$LINENO: checking for $ac_word" >&5
4974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4975 if test "${ac_cv_prog_RANLIB+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 if test -n "$RANLIB"; then
4979 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4992 done
4993 done
4997 RANLIB=$ac_cv_prog_RANLIB
4998 if test -n "$RANLIB"; then
4999 echo "$as_me:$LINENO: result: $RANLIB" >&5
5000 echo "${ECHO_T}$RANLIB" >&6
5001 else
5002 echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6
5007 if test -z "$ac_cv_prog_RANLIB"; then
5008 ac_ct_RANLIB=$RANLIB
5009 # Extract the first word of "ranlib", so it can be a program name with args.
5010 set dummy ranlib; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016 if test -n "$ac_ct_RANLIB"; then
5017 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_ac_ct_RANLIB="ranlib"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5030 done
5031 done
5033 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5036 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5037 if test -n "$ac_ct_RANLIB"; then
5038 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5039 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5040 else
5041 echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6
5045 RANLIB=$ac_ct_RANLIB
5046 else
5047 RANLIB="$ac_cv_prog_RANLIB"
5050 ac_ext=c
5051 ac_cpp='$CPP $CPPFLAGS'
5052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5056 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5057 # On Suns, sometimes $CPP names a directory.
5058 if test -n "$CPP" && test -d "$CPP"; then
5059 CPP=
5061 if test -z "$CPP"; then
5062 if test "${ac_cv_prog_CPP+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065 # Double quotes because CPP needs to be expanded
5066 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5068 ac_preproc_ok=false
5069 for ac_c_preproc_warn_flag in '' yes
5071 # Use a header file that comes with gcc, so configuring glibc
5072 # with a fresh cross-compiler works.
5073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5074 # <limits.h> exists even on freestanding compilers.
5075 # On the NeXT, cc -E runs the code through the compiler's parser,
5076 # not just through cpp. "Syntax error" is here to catch this case.
5077 cat >conftest.$ac_ext <<_ACEOF
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #ifdef __STDC__
5084 # include <limits.h>
5085 #else
5086 # include <assert.h>
5087 #endif
5088 Syntax error
5089 _ACEOF
5090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } >/dev/null; then
5098 if test -s conftest.err; then
5099 ac_cpp_err=$ac_c_preproc_warn_flag
5100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5101 else
5102 ac_cpp_err=
5104 else
5105 ac_cpp_err=yes
5107 if test -z "$ac_cpp_err"; then
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 # Broken: fails on valid input.
5114 continue
5116 rm -f conftest.err conftest.$ac_ext
5118 # OK, works on sane cases. Now check whether non-existent headers
5119 # can be detected and how.
5120 cat >conftest.$ac_ext <<_ACEOF
5121 /* confdefs.h. */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5126 #include <ac_nonexistent.h>
5127 _ACEOF
5128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } >/dev/null; then
5136 if test -s conftest.err; then
5137 ac_cpp_err=$ac_c_preproc_warn_flag
5138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5139 else
5140 ac_cpp_err=
5142 else
5143 ac_cpp_err=yes
5145 if test -z "$ac_cpp_err"; then
5146 # Broken: success on invalid input.
5147 continue
5148 else
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152 # Passes both tests.
5153 ac_preproc_ok=:
5154 break
5156 rm -f conftest.err conftest.$ac_ext
5158 done
5159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5160 rm -f conftest.err conftest.$ac_ext
5161 if $ac_preproc_ok; then
5162 break
5165 done
5166 ac_cv_prog_CPP=$CPP
5169 CPP=$ac_cv_prog_CPP
5170 else
5171 ac_cv_prog_CPP=$CPP
5173 echo "$as_me:$LINENO: result: $CPP" >&5
5174 echo "${ECHO_T}$CPP" >&6
5175 ac_preproc_ok=false
5176 for ac_c_preproc_warn_flag in '' yes
5178 # Use a header file that comes with gcc, so configuring glibc
5179 # with a fresh cross-compiler works.
5180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5181 # <limits.h> exists even on freestanding compilers.
5182 # On the NeXT, cc -E runs the code through the compiler's parser,
5183 # not just through cpp. "Syntax error" is here to catch this case.
5184 cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h. */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 #ifdef __STDC__
5191 # include <limits.h>
5192 #else
5193 # include <assert.h>
5194 #endif
5195 Syntax error
5196 _ACEOF
5197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5199 ac_status=$?
5200 grep -v '^ *+' conftest.er1 >conftest.err
5201 rm -f conftest.er1
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } >/dev/null; then
5205 if test -s conftest.err; then
5206 ac_cpp_err=$ac_c_preproc_warn_flag
5207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5208 else
5209 ac_cpp_err=
5211 else
5212 ac_cpp_err=yes
5214 if test -z "$ac_cpp_err"; then
5216 else
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5220 # Broken: fails on valid input.
5221 continue
5223 rm -f conftest.err conftest.$ac_ext
5225 # OK, works on sane cases. Now check whether non-existent headers
5226 # can be detected and how.
5227 cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 #include <ac_nonexistent.h>
5234 _ACEOF
5235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } >/dev/null; then
5243 if test -s conftest.err; then
5244 ac_cpp_err=$ac_c_preproc_warn_flag
5245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5246 else
5247 ac_cpp_err=
5249 else
5250 ac_cpp_err=yes
5252 if test -z "$ac_cpp_err"; then
5253 # Broken: success on invalid input.
5254 continue
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 # Passes both tests.
5260 ac_preproc_ok=:
5261 break
5263 rm -f conftest.err conftest.$ac_ext
5265 done
5266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5267 rm -f conftest.err conftest.$ac_ext
5268 if $ac_preproc_ok; then
5270 else
5271 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5272 See \`config.log' for more details." >&5
5273 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5274 See \`config.log' for more details." >&2;}
5275 { (exit 1); exit 1; }; }
5278 ac_ext=c
5279 ac_cpp='$CPP $CPPFLAGS'
5280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5285 echo "$as_me:$LINENO: checking for egrep" >&5
5286 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5287 if test "${ac_cv_prog_egrep+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5291 then ac_cv_prog_egrep='grep -E'
5292 else ac_cv_prog_egrep='egrep'
5295 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5296 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5297 EGREP=$ac_cv_prog_egrep
5300 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5301 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5302 if test "${ac_cv_header_stdc+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305 cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h. */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 #include <stdlib.h>
5312 #include <stdarg.h>
5313 #include <string.h>
5314 #include <float.h>
5317 main ()
5321 return 0;
5323 _ACEOF
5324 rm -f conftest.$ac_objext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5326 (eval $ac_compile) 2>conftest.er1
5327 ac_status=$?
5328 grep -v '^ *+' conftest.er1 >conftest.err
5329 rm -f conftest.er1
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } &&
5333 { ac_try='test -z "$ac_c_werror_flag"
5334 || test ! -s conftest.err'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 (eval $ac_try) 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; } &&
5340 { ac_try='test -s conftest.$ac_objext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 (eval $ac_try) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_cv_header_stdc=yes
5347 else
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5351 ac_cv_header_stdc=no
5353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5355 if test $ac_cv_header_stdc = yes; then
5356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5357 cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h. */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5363 #include <string.h>
5365 _ACEOF
5366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5367 $EGREP "memchr" >/dev/null 2>&1; then
5369 else
5370 ac_cv_header_stdc=no
5372 rm -f conftest*
5376 if test $ac_cv_header_stdc = yes; then
5377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5378 cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h. */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 #include <stdlib.h>
5386 _ACEOF
5387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5388 $EGREP "free" >/dev/null 2>&1; then
5390 else
5391 ac_cv_header_stdc=no
5393 rm -f conftest*
5397 if test $ac_cv_header_stdc = yes; then
5398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5399 if test "$cross_compiling" = yes; then
5401 else
5402 cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h. */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 #include <ctype.h>
5409 #if ((' ' & 0x0FF) == 0x020)
5410 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5411 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5412 #else
5413 # define ISLOWER(c) \
5414 (('a' <= (c) && (c) <= 'i') \
5415 || ('j' <= (c) && (c) <= 'r') \
5416 || ('s' <= (c) && (c) <= 'z'))
5417 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5418 #endif
5420 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5422 main ()
5424 int i;
5425 for (i = 0; i < 256; i++)
5426 if (XOR (islower (i), ISLOWER (i))
5427 || toupper (i) != TOUPPER (i))
5428 exit(2);
5429 exit (0);
5431 _ACEOF
5432 rm -f conftest$ac_exeext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5434 (eval $ac_link) 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 (eval $ac_try) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5444 else
5445 echo "$as_me: program exited with status $ac_status" >&5
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5449 ( exit $ac_status )
5450 ac_cv_header_stdc=no
5452 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5456 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5457 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5458 if test $ac_cv_header_stdc = yes; then
5460 cat >>confdefs.h <<\_ACEOF
5461 #define STDC_HEADERS 1
5462 _ACEOF
5466 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5467 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5468 if test "${ac_cv_c_const+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471 cat >conftest.$ac_ext <<_ACEOF
5472 /* confdefs.h. */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5479 main ()
5481 /* FIXME: Include the comments suggested by Paul. */
5482 #ifndef __cplusplus
5483 /* Ultrix mips cc rejects this. */
5484 typedef int charset[2];
5485 const charset x;
5486 /* SunOS 4.1.1 cc rejects this. */
5487 char const *const *ccp;
5488 char **p;
5489 /* NEC SVR4.0.2 mips cc rejects this. */
5490 struct point {int x, y;};
5491 static struct point const zero = {0,0};
5492 /* AIX XL C 1.02.0.0 rejects this.
5493 It does not let you subtract one const X* pointer from another in
5494 an arm of an if-expression whose if-part is not a constant
5495 expression */
5496 const char *g = "string";
5497 ccp = &g + (g ? g-g : 0);
5498 /* HPUX 7.0 cc rejects these. */
5499 ++ccp;
5500 p = (char**) ccp;
5501 ccp = (char const *const *) p;
5502 { /* SCO 3.2v4 cc rejects this. */
5503 char *t;
5504 char const *s = 0 ? (char *) 0 : (char const *) 0;
5506 *t++ = 0;
5508 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5509 int x[] = {25, 17};
5510 const int *foo = &x[0];
5511 ++foo;
5513 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5514 typedef const int *iptr;
5515 iptr p = 0;
5516 ++p;
5518 { /* AIX XL C 1.02.0.0 rejects this saying
5519 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5520 struct s { int j; const int *ap[3]; };
5521 struct s *b; b->j = 5;
5523 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5524 const int foo = 10;
5526 #endif
5529 return 0;
5531 _ACEOF
5532 rm -f conftest.$ac_objext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5534 (eval $ac_compile) 2>conftest.er1
5535 ac_status=$?
5536 grep -v '^ *+' conftest.er1 >conftest.err
5537 rm -f conftest.er1
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -z "$ac_c_werror_flag"
5542 || test ! -s conftest.err'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 (eval $ac_try) 2>&5
5545 ac_status=$?
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; } &&
5548 { ac_try='test -s conftest.$ac_objext'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 (eval $ac_try) 2>&5
5551 ac_status=$?
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 ac_cv_c_const=yes
5555 else
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5559 ac_cv_c_const=no
5561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5563 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5564 echo "${ECHO_T}$ac_cv_c_const" >&6
5565 if test $ac_cv_c_const = no; then
5567 cat >>confdefs.h <<\_ACEOF
5568 #define const
5569 _ACEOF
5573 echo "$as_me:$LINENO: checking for inline" >&5
5574 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5575 if test "${ac_cv_c_inline+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578 ac_cv_c_inline=no
5579 for ac_kw in inline __inline__ __inline; do
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 #ifndef __cplusplus
5587 typedef int foo_t;
5588 static $ac_kw foo_t static_foo () {return 0; }
5589 $ac_kw foo_t foo () {return 0; }
5590 #endif
5592 _ACEOF
5593 rm -f conftest.$ac_objext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595 (eval $ac_compile) 2>conftest.er1
5596 ac_status=$?
5597 grep -v '^ *+' conftest.er1 >conftest.err
5598 rm -f conftest.er1
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -z "$ac_c_werror_flag"
5603 || test ! -s conftest.err'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 (eval $ac_try) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; } &&
5609 { ac_try='test -s conftest.$ac_objext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 (eval $ac_try) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_c_inline=$ac_kw; break
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5622 done
5625 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5626 echo "${ECHO_T}$ac_cv_c_inline" >&6
5629 case $ac_cv_c_inline in
5630 inline | yes) ;;
5632 case $ac_cv_c_inline in
5633 no) ac_val=;;
5634 *) ac_val=$ac_cv_c_inline;;
5635 esac
5636 cat >>confdefs.h <<_ACEOF
5637 #ifndef __cplusplus
5638 #define inline $ac_val
5639 #endif
5640 _ACEOF
5642 esac
5644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5654 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5655 inttypes.h stdint.h unistd.h
5657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5658 echo "$as_me:$LINENO: checking for $ac_header" >&5
5659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 $ac_includes_default
5671 #include <$ac_header>
5672 _ACEOF
5673 rm -f conftest.$ac_objext
5674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5675 (eval $ac_compile) 2>conftest.er1
5676 ac_status=$?
5677 grep -v '^ *+' conftest.er1 >conftest.err
5678 rm -f conftest.er1
5679 cat conftest.err >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } &&
5682 { ac_try='test -z "$ac_c_werror_flag"
5683 || test ! -s conftest.err'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 (eval $ac_try) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; } &&
5689 { ac_try='test -s conftest.$ac_objext'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 (eval $ac_try) 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5695 eval "$as_ac_Header=yes"
5696 else
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5700 eval "$as_ac_Header=no"
5702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5707 cat >>confdefs.h <<_ACEOF
5708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5709 _ACEOF
5713 done
5716 echo "$as_me:$LINENO: checking for off_t" >&5
5717 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5718 if test "${ac_cv_type_off_t+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721 cat >conftest.$ac_ext <<_ACEOF
5722 /* confdefs.h. */
5723 _ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5727 $ac_includes_default
5729 main ()
5731 if ((off_t *) 0)
5732 return 0;
5733 if (sizeof (off_t))
5734 return 0;
5736 return 0;
5738 _ACEOF
5739 rm -f conftest.$ac_objext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5741 (eval $ac_compile) 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } &&
5748 { ac_try='test -z "$ac_c_werror_flag"
5749 || test ! -s conftest.err'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 (eval $ac_try) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; } &&
5755 { ac_try='test -s conftest.$ac_objext'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 (eval $ac_try) 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; }; then
5761 ac_cv_type_off_t=yes
5762 else
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5766 ac_cv_type_off_t=no
5768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5770 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5771 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5772 if test $ac_cv_type_off_t = yes; then
5774 else
5776 cat >>confdefs.h <<_ACEOF
5777 #define off_t long
5778 _ACEOF
5782 echo "$as_me:$LINENO: checking for size_t" >&5
5783 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5784 if test "${ac_cv_type_size_t+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 $ac_includes_default
5795 main ()
5797 if ((size_t *) 0)
5798 return 0;
5799 if (sizeof (size_t))
5800 return 0;
5802 return 0;
5804 _ACEOF
5805 rm -f conftest.$ac_objext
5806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5807 (eval $ac_compile) 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } &&
5814 { ac_try='test -z "$ac_c_werror_flag"
5815 || test ! -s conftest.err'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 (eval $ac_try) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; } &&
5821 { ac_try='test -s conftest.$ac_objext'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; }; then
5827 ac_cv_type_size_t=yes
5828 else
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5832 ac_cv_type_size_t=no
5834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5836 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5837 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5838 if test $ac_cv_type_size_t = yes; then
5840 else
5842 cat >>confdefs.h <<_ACEOF
5843 #define size_t unsigned
5844 _ACEOF
5848 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5849 # for constant arguments. Useless!
5850 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5851 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5852 if test "${ac_cv_working_alloca_h+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h. */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <alloca.h>
5863 main ()
5865 char *p = (char *) alloca (2 * sizeof (int));
5867 return 0;
5869 _ACEOF
5870 rm -f conftest.$ac_objext conftest$ac_exeext
5871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5872 (eval $ac_link) 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } &&
5879 { ac_try='test -z "$ac_c_werror_flag"
5880 || test ! -s conftest.err'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; } &&
5886 { ac_try='test -s conftest$ac_exeext'
5887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 (eval $ac_try) 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5892 ac_cv_working_alloca_h=yes
5893 else
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5897 ac_cv_working_alloca_h=no
5899 rm -f conftest.err conftest.$ac_objext \
5900 conftest$ac_exeext conftest.$ac_ext
5902 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5903 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5904 if test $ac_cv_working_alloca_h = yes; then
5906 cat >>confdefs.h <<\_ACEOF
5907 #define HAVE_ALLOCA_H 1
5908 _ACEOF
5912 echo "$as_me:$LINENO: checking for alloca" >&5
5913 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5914 if test "${ac_cv_func_alloca_works+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917 cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h. */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5923 #ifdef __GNUC__
5924 # define alloca __builtin_alloca
5925 #else
5926 # ifdef _MSC_VER
5927 # include <malloc.h>
5928 # define alloca _alloca
5929 # else
5930 # if HAVE_ALLOCA_H
5931 # include <alloca.h>
5932 # else
5933 # ifdef _AIX
5934 #pragma alloca
5935 # else
5936 # ifndef alloca /* predefined by HP cc +Olibcalls */
5937 char *alloca ();
5938 # endif
5939 # endif
5940 # endif
5941 # endif
5942 #endif
5945 main ()
5947 char *p = (char *) alloca (1);
5949 return 0;
5951 _ACEOF
5952 rm -f conftest.$ac_objext conftest$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954 (eval $ac_link) 2>conftest.er1
5955 ac_status=$?
5956 grep -v '^ *+' conftest.er1 >conftest.err
5957 rm -f conftest.er1
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } &&
5961 { ac_try='test -z "$ac_c_werror_flag"
5962 || test ! -s conftest.err'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; } &&
5968 { ac_try='test -s conftest$ac_exeext'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 (eval $ac_try) 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5974 ac_cv_func_alloca_works=yes
5975 else
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5979 ac_cv_func_alloca_works=no
5981 rm -f conftest.err conftest.$ac_objext \
5982 conftest$ac_exeext conftest.$ac_ext
5984 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5985 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5987 if test $ac_cv_func_alloca_works = yes; then
5989 cat >>confdefs.h <<\_ACEOF
5990 #define HAVE_ALLOCA 1
5991 _ACEOF
5993 else
5994 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5995 # that cause trouble. Some versions do not even contain alloca or
5996 # contain a buggy version. If you still want to use their alloca,
5997 # use ar to extract alloca.o from them instead of compiling alloca.c.
5999 ALLOCA=alloca.$ac_objext
6001 cat >>confdefs.h <<\_ACEOF
6002 #define C_ALLOCA 1
6003 _ACEOF
6006 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6007 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6008 if test "${ac_cv_os_cray+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011 cat >conftest.$ac_ext <<_ACEOF
6012 /* confdefs.h. */
6013 _ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h. */
6017 #if defined(CRAY) && ! defined(CRAY2)
6018 webecray
6019 #else
6020 wenotbecray
6021 #endif
6023 _ACEOF
6024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6025 $EGREP "webecray" >/dev/null 2>&1; then
6026 ac_cv_os_cray=yes
6027 else
6028 ac_cv_os_cray=no
6030 rm -f conftest*
6033 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6034 echo "${ECHO_T}$ac_cv_os_cray" >&6
6035 if test $ac_cv_os_cray = yes; then
6036 for ac_func in _getb67 GETB67 getb67; do
6037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6038 echo "$as_me:$LINENO: checking for $ac_func" >&5
6039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6040 if eval "test \"\${$as_ac_var+set}\" = set"; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h. */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6051 #define $ac_func innocuous_$ac_func
6053 /* System header to define __stub macros and hopefully few prototypes,
6054 which can conflict with char $ac_func (); below.
6055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6056 <limits.h> exists even on freestanding compilers. */
6058 #ifdef __STDC__
6059 # include <limits.h>
6060 #else
6061 # include <assert.h>
6062 #endif
6064 #undef $ac_func
6066 /* Override any gcc2 internal prototype to avoid an error. */
6067 #ifdef __cplusplus
6068 extern "C"
6070 #endif
6071 /* We use char because int might match the return type of a gcc2
6072 builtin and then its argument prototype would still apply. */
6073 char $ac_func ();
6074 /* The GNU C library defines this for functions which it implements
6075 to always fail with ENOSYS. Some functions are actually named
6076 something starting with __ and the normal name is an alias. */
6077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6078 choke me
6079 #else
6080 char (*f) () = $ac_func;
6081 #endif
6082 #ifdef __cplusplus
6084 #endif
6087 main ()
6089 return f != $ac_func;
6091 return 0;
6093 _ACEOF
6094 rm -f conftest.$ac_objext conftest$ac_exeext
6095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6096 (eval $ac_link) 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } &&
6103 { ac_try='test -z "$ac_c_werror_flag"
6104 || test ! -s conftest.err'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest$ac_exeext'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 (eval $ac_try) 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 eval "$as_ac_var=yes"
6117 else
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6121 eval "$as_ac_var=no"
6123 rm -f conftest.err conftest.$ac_objext \
6124 conftest$ac_exeext conftest.$ac_ext
6126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6128 if test `eval echo '${'$as_ac_var'}'` = yes; then
6130 cat >>confdefs.h <<_ACEOF
6131 #define CRAY_STACKSEG_END $ac_func
6132 _ACEOF
6134 break
6137 done
6140 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6141 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6142 if test "${ac_cv_c_stack_direction+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145 if test "$cross_compiling" = yes; then
6146 ac_cv_c_stack_direction=0
6147 else
6148 cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h. */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6155 find_stack_direction ()
6157 static char *addr = 0;
6158 auto char dummy;
6159 if (addr == 0)
6161 addr = &dummy;
6162 return find_stack_direction ();
6164 else
6165 return (&dummy > addr) ? 1 : -1;
6169 main ()
6171 exit (find_stack_direction () < 0);
6173 _ACEOF
6174 rm -f conftest$ac_exeext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6176 (eval $ac_link) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_c_stack_direction=1
6186 else
6187 echo "$as_me: program exited with status $ac_status" >&5
6188 echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6191 ( exit $ac_status )
6192 ac_cv_c_stack_direction=-1
6194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6197 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6198 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6200 cat >>confdefs.h <<_ACEOF
6201 #define STACK_DIRECTION $ac_cv_c_stack_direction
6202 _ACEOF
6209 for ac_header in stdlib.h unistd.h
6211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6213 echo "$as_me:$LINENO: checking for $ac_header" >&5
6214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6220 else
6221 # Is the header compilable?
6222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6224 cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h. */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 $ac_includes_default
6231 #include <$ac_header>
6232 _ACEOF
6233 rm -f conftest.$ac_objext
6234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6235 (eval $ac_compile) 2>conftest.er1
6236 ac_status=$?
6237 grep -v '^ *+' conftest.er1 >conftest.err
6238 rm -f conftest.er1
6239 cat conftest.err >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } &&
6242 { ac_try='test -z "$ac_c_werror_flag"
6243 || test ! -s conftest.err'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 (eval $ac_try) 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; } &&
6249 { ac_try='test -s conftest.$ac_objext'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 (eval $ac_try) 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 ac_header_compiler=yes
6256 else
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6260 ac_header_compiler=no
6262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6264 echo "${ECHO_T}$ac_header_compiler" >&6
6266 # Is the header present?
6267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 #include <$ac_header>
6276 _ACEOF
6277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } >/dev/null; then
6285 if test -s conftest.err; then
6286 ac_cpp_err=$ac_c_preproc_warn_flag
6287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6288 else
6289 ac_cpp_err=
6291 else
6292 ac_cpp_err=yes
6294 if test -z "$ac_cpp_err"; then
6295 ac_header_preproc=yes
6296 else
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6300 ac_header_preproc=no
6302 rm -f conftest.err conftest.$ac_ext
6303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6304 echo "${ECHO_T}$ac_header_preproc" >&6
6306 # So? What about this header?
6307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6308 yes:no: )
6309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6313 ac_header_preproc=yes
6315 no:yes:* )
6316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6329 cat <<\_ASBOX
6330 ## ------------------------------------------ ##
6331 ## Report this to the AC_PACKAGE_NAME lists. ##
6332 ## ------------------------------------------ ##
6333 _ASBOX
6335 sed "s/^/$as_me: WARNING: /" >&2
6337 esac
6338 echo "$as_me:$LINENO: checking for $ac_header" >&5
6339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343 eval "$as_ac_Header=\$ac_header_preproc"
6345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6350 cat >>confdefs.h <<_ACEOF
6351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6352 _ACEOF
6356 done
6359 for ac_func in getpagesize
6361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6362 echo "$as_me:$LINENO: checking for $ac_func" >&5
6363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6364 if eval "test \"\${$as_ac_var+set}\" = set"; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367 cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h. */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6375 #define $ac_func innocuous_$ac_func
6377 /* System header to define __stub macros and hopefully few prototypes,
6378 which can conflict with char $ac_func (); below.
6379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6380 <limits.h> exists even on freestanding compilers. */
6382 #ifdef __STDC__
6383 # include <limits.h>
6384 #else
6385 # include <assert.h>
6386 #endif
6388 #undef $ac_func
6390 /* Override any gcc2 internal prototype to avoid an error. */
6391 #ifdef __cplusplus
6392 extern "C"
6394 #endif
6395 /* We use char because int might match the return type of a gcc2
6396 builtin and then its argument prototype would still apply. */
6397 char $ac_func ();
6398 /* The GNU C library defines this for functions which it implements
6399 to always fail with ENOSYS. Some functions are actually named
6400 something starting with __ and the normal name is an alias. */
6401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6402 choke me
6403 #else
6404 char (*f) () = $ac_func;
6405 #endif
6406 #ifdef __cplusplus
6408 #endif
6411 main ()
6413 return f != $ac_func;
6415 return 0;
6417 _ACEOF
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6420 (eval $ac_link) 2>conftest.er1
6421 ac_status=$?
6422 grep -v '^ *+' conftest.er1 >conftest.err
6423 rm -f conftest.er1
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try='test -z "$ac_c_werror_flag"
6428 || test ! -s conftest.err'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 (eval $ac_try) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; } &&
6434 { ac_try='test -s conftest$ac_exeext'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 (eval $ac_try) 2>&5
6437 ac_status=$?
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }; then
6440 eval "$as_ac_var=yes"
6441 else
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6445 eval "$as_ac_var=no"
6447 rm -f conftest.err conftest.$ac_objext \
6448 conftest$ac_exeext conftest.$ac_ext
6450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6452 if test `eval echo '${'$as_ac_var'}'` = yes; then
6453 cat >>confdefs.h <<_ACEOF
6454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6455 _ACEOF
6458 done
6460 echo "$as_me:$LINENO: checking for working mmap" >&5
6461 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6462 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 if test "$cross_compiling" = yes; then
6466 ac_cv_func_mmap_fixed_mapped=no
6467 else
6468 cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h. */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 $ac_includes_default
6475 /* malloc might have been renamed as rpl_malloc. */
6476 #undef malloc
6478 /* Thanks to Mike Haertel and Jim Avera for this test.
6479 Here is a matrix of mmap possibilities:
6480 mmap private not fixed
6481 mmap private fixed at somewhere currently unmapped
6482 mmap private fixed at somewhere already mapped
6483 mmap shared not fixed
6484 mmap shared fixed at somewhere currently unmapped
6485 mmap shared fixed at somewhere already mapped
6486 For private mappings, we should verify that changes cannot be read()
6487 back from the file, nor mmap's back from the file at a different
6488 address. (There have been systems where private was not correctly
6489 implemented like the infamous i386 svr4.0, and systems where the
6490 VM page cache was not coherent with the file system buffer cache
6491 like early versions of FreeBSD and possibly contemporary NetBSD.)
6492 For shared mappings, we should conversely verify that changes get
6493 propagated back to all the places they're supposed to be.
6495 Grep wants private fixed already mapped.
6496 The main things grep needs to know about mmap are:
6497 * does it exist and is it safe to write into the mmap'd area
6498 * how to use it (BSD variants) */
6500 #include <fcntl.h>
6501 #include <sys/mman.h>
6503 #if !STDC_HEADERS && !HAVE_STDLIB_H
6504 char *malloc ();
6505 #endif
6507 /* This mess was copied from the GNU getpagesize.h. */
6508 #if !HAVE_GETPAGESIZE
6509 /* Assume that all systems that can run configure have sys/param.h. */
6510 # if !HAVE_SYS_PARAM_H
6511 # define HAVE_SYS_PARAM_H 1
6512 # endif
6514 # ifdef _SC_PAGESIZE
6515 # define getpagesize() sysconf(_SC_PAGESIZE)
6516 # else /* no _SC_PAGESIZE */
6517 # if HAVE_SYS_PARAM_H
6518 # include <sys/param.h>
6519 # ifdef EXEC_PAGESIZE
6520 # define getpagesize() EXEC_PAGESIZE
6521 # else /* no EXEC_PAGESIZE */
6522 # ifdef NBPG
6523 # define getpagesize() NBPG * CLSIZE
6524 # ifndef CLSIZE
6525 # define CLSIZE 1
6526 # endif /* no CLSIZE */
6527 # else /* no NBPG */
6528 # ifdef NBPC
6529 # define getpagesize() NBPC
6530 # else /* no NBPC */
6531 # ifdef PAGESIZE
6532 # define getpagesize() PAGESIZE
6533 # endif /* PAGESIZE */
6534 # endif /* no NBPC */
6535 # endif /* no NBPG */
6536 # endif /* no EXEC_PAGESIZE */
6537 # else /* no HAVE_SYS_PARAM_H */
6538 # define getpagesize() 8192 /* punt totally */
6539 # endif /* no HAVE_SYS_PARAM_H */
6540 # endif /* no _SC_PAGESIZE */
6542 #endif /* no HAVE_GETPAGESIZE */
6545 main ()
6547 char *data, *data2, *data3;
6548 int i, pagesize;
6549 int fd;
6551 pagesize = getpagesize ();
6553 /* First, make a file with some known garbage in it. */
6554 data = (char *) malloc (pagesize);
6555 if (!data)
6556 exit (1);
6557 for (i = 0; i < pagesize; ++i)
6558 *(data + i) = rand ();
6559 umask (0);
6560 fd = creat ("conftest.mmap", 0600);
6561 if (fd < 0)
6562 exit (1);
6563 if (write (fd, data, pagesize) != pagesize)
6564 exit (1);
6565 close (fd);
6567 /* Next, try to mmap the file at a fixed address which already has
6568 something else allocated at it. If we can, also make sure that
6569 we see the same garbage. */
6570 fd = open ("conftest.mmap", O_RDWR);
6571 if (fd < 0)
6572 exit (1);
6573 data2 = (char *) malloc (2 * pagesize);
6574 if (!data2)
6575 exit (1);
6576 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6577 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6578 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6579 exit (1);
6580 for (i = 0; i < pagesize; ++i)
6581 if (*(data + i) != *(data2 + i))
6582 exit (1);
6584 /* Finally, make sure that changes to the mapped area do not
6585 percolate back to the file as seen by read(). (This is a bug on
6586 some variants of i386 svr4.0.) */
6587 for (i = 0; i < pagesize; ++i)
6588 *(data2 + i) = *(data2 + i) + 1;
6589 data3 = (char *) malloc (pagesize);
6590 if (!data3)
6591 exit (1);
6592 if (read (fd, data3, pagesize) != pagesize)
6593 exit (1);
6594 for (i = 0; i < pagesize; ++i)
6595 if (*(data + i) != *(data3 + i))
6596 exit (1);
6597 close (fd);
6598 exit (0);
6600 _ACEOF
6601 rm -f conftest$ac_exeext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6603 (eval $ac_link) 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
6612 ac_cv_func_mmap_fixed_mapped=yes
6613 else
6614 echo "$as_me: program exited with status $ac_status" >&5
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6618 ( exit $ac_status )
6619 ac_cv_func_mmap_fixed_mapped=no
6621 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6624 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6625 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6626 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6628 cat >>confdefs.h <<\_ACEOF
6629 #define HAVE_MMAP 1
6630 _ACEOF
6633 rm -f conftest.mmap
6645 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6646 unistd.h values.h sys/param.h
6648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6650 echo "$as_me:$LINENO: checking for $ac_header" >&5
6651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6657 else
6658 # Is the header compilable?
6659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6661 cat >conftest.$ac_ext <<_ACEOF
6662 /* confdefs.h. */
6663 _ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h. */
6667 $ac_includes_default
6668 #include <$ac_header>
6669 _ACEOF
6670 rm -f conftest.$ac_objext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6672 (eval $ac_compile) 2>conftest.er1
6673 ac_status=$?
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try='test -z "$ac_c_werror_flag"
6680 || test ! -s conftest.err'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 (eval $ac_try) 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; } &&
6686 { ac_try='test -s conftest.$ac_objext'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 (eval $ac_try) 2>&5
6689 ac_status=$?
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; }; then
6692 ac_header_compiler=yes
6693 else
6694 echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6697 ac_header_compiler=no
6699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6701 echo "${ECHO_T}$ac_header_compiler" >&6
6703 # Is the header present?
6704 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6706 cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h. */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <$ac_header>
6713 _ACEOF
6714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6716 ac_status=$?
6717 grep -v '^ *+' conftest.er1 >conftest.err
6718 rm -f conftest.er1
6719 cat conftest.err >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } >/dev/null; then
6722 if test -s conftest.err; then
6723 ac_cpp_err=$ac_c_preproc_warn_flag
6724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6725 else
6726 ac_cpp_err=
6728 else
6729 ac_cpp_err=yes
6731 if test -z "$ac_cpp_err"; then
6732 ac_header_preproc=yes
6733 else
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6737 ac_header_preproc=no
6739 rm -f conftest.err conftest.$ac_ext
6740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6741 echo "${ECHO_T}$ac_header_preproc" >&6
6743 # So? What about this header?
6744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6745 yes:no: )
6746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6750 ac_header_preproc=yes
6752 no:yes:* )
6753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6760 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6766 cat <<\_ASBOX
6767 ## ------------------------------------------ ##
6768 ## Report this to the AC_PACKAGE_NAME lists. ##
6769 ## ------------------------------------------ ##
6770 _ASBOX
6772 sed "s/^/$as_me: WARNING: /" >&2
6774 esac
6775 echo "$as_me:$LINENO: checking for $ac_header" >&5
6776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 eval "$as_ac_Header=\$ac_header_preproc"
6782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6787 cat >>confdefs.h <<_ACEOF
6788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6789 _ACEOF
6793 done
6805 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6806 __argz_count __argz_stringify __argz_next
6808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6809 echo "$as_me:$LINENO: checking for $ac_func" >&5
6810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6811 if eval "test \"\${$as_ac_var+set}\" = set"; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814 cat >conftest.$ac_ext <<_ACEOF
6815 /* confdefs.h. */
6816 _ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h. */
6820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6822 #define $ac_func innocuous_$ac_func
6824 /* System header to define __stub macros and hopefully few prototypes,
6825 which can conflict with char $ac_func (); below.
6826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6827 <limits.h> exists even on freestanding compilers. */
6829 #ifdef __STDC__
6830 # include <limits.h>
6831 #else
6832 # include <assert.h>
6833 #endif
6835 #undef $ac_func
6837 /* Override any gcc2 internal prototype to avoid an error. */
6838 #ifdef __cplusplus
6839 extern "C"
6841 #endif
6842 /* We use char because int might match the return type of a gcc2
6843 builtin and then its argument prototype would still apply. */
6844 char $ac_func ();
6845 /* The GNU C library defines this for functions which it implements
6846 to always fail with ENOSYS. Some functions are actually named
6847 something starting with __ and the normal name is an alias. */
6848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6849 choke me
6850 #else
6851 char (*f) () = $ac_func;
6852 #endif
6853 #ifdef __cplusplus
6855 #endif
6858 main ()
6860 return f != $ac_func;
6862 return 0;
6864 _ACEOF
6865 rm -f conftest.$ac_objext conftest$ac_exeext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6867 (eval $ac_link) 2>conftest.er1
6868 ac_status=$?
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } &&
6874 { ac_try='test -z "$ac_c_werror_flag"
6875 || test ! -s conftest.err'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; } &&
6881 { ac_try='test -s conftest$ac_exeext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 eval "$as_ac_var=yes"
6888 else
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6892 eval "$as_ac_var=no"
6894 rm -f conftest.err conftest.$ac_objext \
6895 conftest$ac_exeext conftest.$ac_ext
6897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6899 if test `eval echo '${'$as_ac_var'}'` = yes; then
6900 cat >>confdefs.h <<_ACEOF
6901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6902 _ACEOF
6905 done
6908 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6910 for ac_func in stpcpy
6912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6913 echo "$as_me:$LINENO: checking for $ac_func" >&5
6914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6915 if eval "test \"\${$as_ac_var+set}\" = set"; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918 cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h. */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6926 #define $ac_func innocuous_$ac_func
6928 /* System header to define __stub macros and hopefully few prototypes,
6929 which can conflict with char $ac_func (); below.
6930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6931 <limits.h> exists even on freestanding compilers. */
6933 #ifdef __STDC__
6934 # include <limits.h>
6935 #else
6936 # include <assert.h>
6937 #endif
6939 #undef $ac_func
6941 /* Override any gcc2 internal prototype to avoid an error. */
6942 #ifdef __cplusplus
6943 extern "C"
6945 #endif
6946 /* We use char because int might match the return type of a gcc2
6947 builtin and then its argument prototype would still apply. */
6948 char $ac_func ();
6949 /* The GNU C library defines this for functions which it implements
6950 to always fail with ENOSYS. Some functions are actually named
6951 something starting with __ and the normal name is an alias. */
6952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6953 choke me
6954 #else
6955 char (*f) () = $ac_func;
6956 #endif
6957 #ifdef __cplusplus
6959 #endif
6962 main ()
6964 return f != $ac_func;
6966 return 0;
6968 _ACEOF
6969 rm -f conftest.$ac_objext conftest$ac_exeext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6971 (eval $ac_link) 2>conftest.er1
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -z "$ac_c_werror_flag"
6979 || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
6985 { ac_try='test -s conftest$ac_exeext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 eval "$as_ac_var=yes"
6992 else
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6996 eval "$as_ac_var=no"
6998 rm -f conftest.err conftest.$ac_objext \
6999 conftest$ac_exeext conftest.$ac_ext
7001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7003 if test `eval echo '${'$as_ac_var'}'` = yes; then
7004 cat >>confdefs.h <<_ACEOF
7005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7006 _ACEOF
7009 done
7012 if test "${ac_cv_func_stpcpy}" = "yes"; then
7014 cat >>confdefs.h <<\_ACEOF
7015 #define HAVE_STPCPY 1
7016 _ACEOF
7020 if test $ac_cv_header_locale_h = yes; then
7021 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7022 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7023 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026 cat >conftest.$ac_ext <<_ACEOF
7027 /* confdefs.h. */
7028 _ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 #include <locale.h>
7034 main ()
7036 return LC_MESSAGES
7038 return 0;
7040 _ACEOF
7041 rm -f conftest.$ac_objext conftest$ac_exeext
7042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7043 (eval $ac_link) 2>conftest.er1
7044 ac_status=$?
7045 grep -v '^ *+' conftest.er1 >conftest.err
7046 rm -f conftest.er1
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try='test -z "$ac_c_werror_flag"
7051 || test ! -s conftest.err'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; } &&
7057 { ac_try='test -s conftest$ac_exeext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 (eval $ac_try) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7063 am_cv_val_LC_MESSAGES=yes
7064 else
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 am_cv_val_LC_MESSAGES=no
7070 rm -f conftest.err conftest.$ac_objext \
7071 conftest$ac_exeext conftest.$ac_ext
7073 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7074 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7075 if test $am_cv_val_LC_MESSAGES = yes; then
7077 cat >>confdefs.h <<\_ACEOF
7078 #define HAVE_LC_MESSAGES 1
7079 _ACEOF
7083 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7084 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7085 # Check whether --enable-nls or --disable-nls was given.
7086 if test "${enable_nls+set}" = set; then
7087 enableval="$enable_nls"
7088 USE_NLS=$enableval
7089 else
7090 USE_NLS=yes
7092 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7093 echo "${ECHO_T}$USE_NLS" >&6
7096 USE_INCLUDED_LIBINTL=no
7098 if test "$USE_NLS" = "yes"; then
7099 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7100 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7102 # Check whether --with-included-gettext or --without-included-gettext was given.
7103 if test "${with_included_gettext+set}" = set; then
7104 withval="$with_included_gettext"
7105 nls_cv_force_use_gnu_gettext=$withval
7106 else
7107 nls_cv_force_use_gnu_gettext=no
7109 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7110 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7112 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7113 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7114 nls_cv_header_intl=
7115 nls_cv_header_libgt=
7116 CATOBJEXT=
7118 if test "${ac_cv_header_libintl_h+set}" = set; then
7119 echo "$as_me:$LINENO: checking for libintl.h" >&5
7120 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7121 if test "${ac_cv_header_libintl_h+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7125 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7126 else
7127 # Is the header compilable?
7128 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7129 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7130 cat >conftest.$ac_ext <<_ACEOF
7131 /* confdefs.h. */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 $ac_includes_default
7137 #include <libintl.h>
7138 _ACEOF
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141 (eval $ac_compile) 2>conftest.er1
7142 ac_status=$?
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try='test -z "$ac_c_werror_flag"
7149 || test ! -s conftest.err'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try='test -s conftest.$ac_objext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_header_compiler=yes
7162 else
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7166 ac_header_compiler=no
7168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7170 echo "${ECHO_T}$ac_header_compiler" >&6
7172 # Is the header present?
7173 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7174 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 #include <libintl.h>
7182 _ACEOF
7183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7185 ac_status=$?
7186 grep -v '^ *+' conftest.er1 >conftest.err
7187 rm -f conftest.er1
7188 cat conftest.err >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } >/dev/null; then
7191 if test -s conftest.err; then
7192 ac_cpp_err=$ac_c_preproc_warn_flag
7193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7194 else
7195 ac_cpp_err=
7197 else
7198 ac_cpp_err=yes
7200 if test -z "$ac_cpp_err"; then
7201 ac_header_preproc=yes
7202 else
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7206 ac_header_preproc=no
7208 rm -f conftest.err conftest.$ac_ext
7209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7210 echo "${ECHO_T}$ac_header_preproc" >&6
7212 # So? What about this header?
7213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7214 yes:no: )
7215 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7216 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7217 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7218 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7219 ac_header_preproc=yes
7221 no:yes:* )
7222 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7223 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7224 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7225 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7226 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7227 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7228 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7229 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7230 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7231 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7232 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7233 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7235 cat <<\_ASBOX
7236 ## ------------------------------------------ ##
7237 ## Report this to the AC_PACKAGE_NAME lists. ##
7238 ## ------------------------------------------ ##
7239 _ASBOX
7241 sed "s/^/$as_me: WARNING: /" >&2
7243 esac
7244 echo "$as_me:$LINENO: checking for libintl.h" >&5
7245 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7246 if test "${ac_cv_header_libintl_h+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249 ac_cv_header_libintl_h=$ac_header_preproc
7251 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7252 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7255 if test $ac_cv_header_libintl_h = yes; then
7256 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7257 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7258 if test "${gt_cv_func_gettext_libc+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261 cat >conftest.$ac_ext <<_ACEOF
7262 /* confdefs.h. */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267 #include <libintl.h>
7269 main ()
7271 return (int) gettext ("")
7273 return 0;
7275 _ACEOF
7276 rm -f conftest.$ac_objext conftest$ac_exeext
7277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7278 (eval $ac_link) 2>conftest.er1
7279 ac_status=$?
7280 grep -v '^ *+' conftest.er1 >conftest.err
7281 rm -f conftest.er1
7282 cat conftest.err >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try='test -z "$ac_c_werror_flag"
7286 || test ! -s conftest.err'
7287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 (eval $ac_try) 2>&5
7289 ac_status=$?
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); }; } &&
7292 { ac_try='test -s conftest$ac_exeext'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 (eval $ac_try) 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7298 gt_cv_func_gettext_libc=yes
7299 else
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 gt_cv_func_gettext_libc=no
7305 rm -f conftest.err conftest.$ac_objext \
7306 conftest$ac_exeext conftest.$ac_ext
7308 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7309 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7311 if test "$gt_cv_func_gettext_libc" != "yes"; then
7312 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7313 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7314 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 else
7317 ac_check_lib_save_LIBS=$LIBS
7318 LIBS="-lintl $LIBS"
7319 cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h. */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7326 /* Override any gcc2 internal prototype to avoid an error. */
7327 #ifdef __cplusplus
7328 extern "C"
7329 #endif
7330 /* We use char because int might match the return type of a gcc2
7331 builtin and then its argument prototype would still apply. */
7332 char bindtextdomain ();
7334 main ()
7336 bindtextdomain ();
7338 return 0;
7340 _ACEOF
7341 rm -f conftest.$ac_objext conftest$ac_exeext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7343 (eval $ac_link) 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try='test -z "$ac_c_werror_flag"
7351 || test ! -s conftest.err'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 (eval $ac_try) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; } &&
7357 { ac_try='test -s conftest$ac_exeext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 (eval $ac_try) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_cv_lib_intl_bindtextdomain=yes
7364 else
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7368 ac_cv_lib_intl_bindtextdomain=no
7370 rm -f conftest.err conftest.$ac_objext \
7371 conftest$ac_exeext conftest.$ac_ext
7372 LIBS=$ac_check_lib_save_LIBS
7374 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7375 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7376 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7377 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7378 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7379 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h. */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7390 main ()
7392 return (int) gettext ("")
7394 return 0;
7396 _ACEOF
7397 rm -f conftest.$ac_objext conftest$ac_exeext
7398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7399 (eval $ac_link) 2>conftest.er1
7400 ac_status=$?
7401 grep -v '^ *+' conftest.er1 >conftest.err
7402 rm -f conftest.er1
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } &&
7406 { ac_try='test -z "$ac_c_werror_flag"
7407 || test ! -s conftest.err'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 (eval $ac_try) 2>&5
7410 ac_status=$?
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; } &&
7413 { ac_try='test -s conftest$ac_exeext'
7414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 (eval $ac_try) 2>&5
7416 ac_status=$?
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; }; then
7419 gt_cv_func_gettext_libintl=yes
7420 else
7421 echo "$as_me: failed program was:" >&5
7422 sed 's/^/| /' conftest.$ac_ext >&5
7424 gt_cv_func_gettext_libintl=no
7426 rm -f conftest.err conftest.$ac_objext \
7427 conftest$ac_exeext conftest.$ac_ext
7429 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7430 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7435 if test "$gt_cv_func_gettext_libc" = "yes" \
7436 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7438 cat >>confdefs.h <<\_ACEOF
7439 #define HAVE_GETTEXT 1
7440 _ACEOF
7442 # Extract the first word of "msgfmt", so it can be a program name with args.
7443 set dummy msgfmt; ac_word=$2
7444 echo "$as_me:$LINENO: checking for $ac_word" >&5
7445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7446 if test "${ac_cv_path_MSGFMT+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449 case "$MSGFMT" in
7451 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7455 for ac_dir in $PATH; do
7456 test -z "$ac_dir" && ac_dir=.
7457 if test -f $ac_dir/$ac_word; then
7458 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7459 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7460 break
7463 done
7464 IFS="$ac_save_ifs"
7465 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7467 esac
7469 MSGFMT="$ac_cv_path_MSGFMT"
7470 if test -n "$MSGFMT"; then
7471 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7472 echo "${ECHO_T}$MSGFMT" >&6
7473 else
7474 echo "$as_me:$LINENO: result: no" >&5
7475 echo "${ECHO_T}no" >&6
7477 if test "$MSGFMT" != "no"; then
7479 for ac_func in dcgettext
7481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7482 echo "$as_me:$LINENO: checking for $ac_func" >&5
7483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7484 if eval "test \"\${$as_ac_var+set}\" = set"; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487 cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h. */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7495 #define $ac_func innocuous_$ac_func
7497 /* System header to define __stub macros and hopefully few prototypes,
7498 which can conflict with char $ac_func (); below.
7499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7500 <limits.h> exists even on freestanding compilers. */
7502 #ifdef __STDC__
7503 # include <limits.h>
7504 #else
7505 # include <assert.h>
7506 #endif
7508 #undef $ac_func
7510 /* Override any gcc2 internal prototype to avoid an error. */
7511 #ifdef __cplusplus
7512 extern "C"
7514 #endif
7515 /* We use char because int might match the return type of a gcc2
7516 builtin and then its argument prototype would still apply. */
7517 char $ac_func ();
7518 /* The GNU C library defines this for functions which it implements
7519 to always fail with ENOSYS. Some functions are actually named
7520 something starting with __ and the normal name is an alias. */
7521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7522 choke me
7523 #else
7524 char (*f) () = $ac_func;
7525 #endif
7526 #ifdef __cplusplus
7528 #endif
7531 main ()
7533 return f != $ac_func;
7535 return 0;
7537 _ACEOF
7538 rm -f conftest.$ac_objext conftest$ac_exeext
7539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7540 (eval $ac_link) 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try='test -z "$ac_c_werror_flag"
7548 || test ! -s conftest.err'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; } &&
7554 { ac_try='test -s conftest$ac_exeext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 eval "$as_ac_var=yes"
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7565 eval "$as_ac_var=no"
7567 rm -f conftest.err conftest.$ac_objext \
7568 conftest$ac_exeext conftest.$ac_ext
7570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7572 if test `eval echo '${'$as_ac_var'}'` = yes; then
7573 cat >>confdefs.h <<_ACEOF
7574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7575 _ACEOF
7578 done
7580 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7581 set dummy gmsgfmt; ac_word=$2
7582 echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7584 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 case $GMSGFMT in
7588 [\\/]* | ?:[\\/]*)
7589 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7603 done
7604 done
7606 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7608 esac
7610 GMSGFMT=$ac_cv_path_GMSGFMT
7612 if test -n "$GMSGFMT"; then
7613 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7614 echo "${ECHO_T}$GMSGFMT" >&6
7615 else
7616 echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6
7620 # Extract the first word of "xgettext", so it can be a program name with args.
7621 set dummy xgettext; ac_word=$2
7622 echo "$as_me:$LINENO: checking for $ac_word" >&5
7623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7624 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627 case "$XGETTEXT" in
7629 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7633 for ac_dir in $PATH; do
7634 test -z "$ac_dir" && ac_dir=.
7635 if test -f $ac_dir/$ac_word; then
7636 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7637 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7638 break
7641 done
7642 IFS="$ac_save_ifs"
7643 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7645 esac
7647 XGETTEXT="$ac_cv_path_XGETTEXT"
7648 if test -n "$XGETTEXT"; then
7649 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7650 echo "${ECHO_T}$XGETTEXT" >&6
7651 else
7652 echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6
7656 cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h. */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7664 main ()
7666 extern int _nl_msg_cat_cntr;
7667 return _nl_msg_cat_cntr
7669 return 0;
7671 _ACEOF
7672 rm -f conftest.$ac_objext conftest$ac_exeext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7674 (eval $ac_link) 2>conftest.er1
7675 ac_status=$?
7676 grep -v '^ *+' conftest.er1 >conftest.err
7677 rm -f conftest.er1
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try='test -z "$ac_c_werror_flag"
7682 || test ! -s conftest.err'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 (eval $ac_try) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; } &&
7688 { ac_try='test -s conftest$ac_exeext'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 (eval $ac_try) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7694 CATOBJEXT=.gmo
7695 DATADIRNAME=share
7696 else
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7700 CATOBJEXT=.mo
7701 DATADIRNAME=lib
7703 rm -f conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
7705 INSTOBJEXT=.mo
7714 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7715 # Neither gettext nor catgets in included in the C library.
7716 # Fall back on GNU gettext library (assuming it is present).
7717 nls_cv_use_gnu_gettext=yes
7721 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7722 INTLOBJS="\$(GETTOBJS)"
7723 # Extract the first word of "msgfmt", so it can be a program name with args.
7724 set dummy msgfmt; ac_word=$2
7725 echo "$as_me:$LINENO: checking for $ac_word" >&5
7726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7727 if test "${ac_cv_path_MSGFMT+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730 case "$MSGFMT" in
7732 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7736 for ac_dir in $PATH; do
7737 test -z "$ac_dir" && ac_dir=.
7738 if test -f $ac_dir/$ac_word; then
7739 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7740 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7741 break
7744 done
7745 IFS="$ac_save_ifs"
7746 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7748 esac
7750 MSGFMT="$ac_cv_path_MSGFMT"
7751 if test -n "$MSGFMT"; then
7752 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7753 echo "${ECHO_T}$MSGFMT" >&6
7754 else
7755 echo "$as_me:$LINENO: result: no" >&5
7756 echo "${ECHO_T}no" >&6
7759 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7760 set dummy gmsgfmt; ac_word=$2
7761 echo "$as_me:$LINENO: checking for $ac_word" >&5
7762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7763 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 else
7766 case $GMSGFMT in
7767 [\\/]* | ?:[\\/]*)
7768 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7782 done
7783 done
7785 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7787 esac
7789 GMSGFMT=$ac_cv_path_GMSGFMT
7791 if test -n "$GMSGFMT"; then
7792 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7793 echo "${ECHO_T}$GMSGFMT" >&6
7794 else
7795 echo "$as_me:$LINENO: result: no" >&5
7796 echo "${ECHO_T}no" >&6
7799 # Extract the first word of "xgettext", so it can be a program name with args.
7800 set dummy xgettext; ac_word=$2
7801 echo "$as_me:$LINENO: checking for $ac_word" >&5
7802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7803 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806 case "$XGETTEXT" in
7808 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7812 for ac_dir in $PATH; do
7813 test -z "$ac_dir" && ac_dir=.
7814 if test -f $ac_dir/$ac_word; then
7815 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7816 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7817 break
7820 done
7821 IFS="$ac_save_ifs"
7822 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7824 esac
7826 XGETTEXT="$ac_cv_path_XGETTEXT"
7827 if test -n "$XGETTEXT"; then
7828 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7829 echo "${ECHO_T}$XGETTEXT" >&6
7830 else
7831 echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6
7836 USE_INCLUDED_LIBINTL=yes
7837 CATOBJEXT=.gmo
7838 INSTOBJEXT=.mo
7839 DATADIRNAME=share
7840 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7841 INTLLIBS=$INTLDEPS
7842 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7843 nls_cv_header_intl=libintl.h
7844 nls_cv_header_libgt=libgettext.h
7847 if test "$XGETTEXT" != ":"; then
7848 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7850 else
7851 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7852 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7853 XGETTEXT=":"
7857 # We need to process the po/ directory.
7858 POSUB=po
7859 else
7860 DATADIRNAME=share
7861 nls_cv_header_intl=libintl.h
7862 nls_cv_header_libgt=libgettext.h
7865 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7866 # because some of the sources are only built for this goal.
7867 if test "$PACKAGE" = gettext; then
7868 USE_NLS=yes
7869 USE_INCLUDED_LIBINTL=yes
7872 for lang in $ALL_LINGUAS; do
7873 GMOFILES="$GMOFILES $lang.gmo"
7874 POFILES="$POFILES $lang.po"
7875 done
7888 if test "x$CATOBJEXT" != "x"; then
7890 cat >>confdefs.h <<\_ACEOF
7891 #define ENABLE_NLS 1
7892 _ACEOF
7897 if test "x$CATOBJEXT" != "x"; then
7898 if test "x$ALL_LINGUAS" = "x"; then
7899 LINGUAS=
7900 else
7901 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7902 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7903 NEW_LINGUAS=
7904 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7905 case "$ALL_LINGUAS" in
7906 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7907 esac
7908 done
7909 LINGUAS=$NEW_LINGUAS
7910 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7911 echo "${ECHO_T}$LINGUAS" >&6
7914 if test -n "$LINGUAS"; then
7915 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7919 if test $ac_cv_header_locale_h = yes; then
7920 INCLUDE_LOCALE_H="#include <locale.h>"
7921 else
7922 INCLUDE_LOCALE_H="\
7923 /* The system does not provide the header <locale.h>. Take care yourself. */"
7927 if test -f $srcdir/po2tbl.sed.in; then
7928 if test "$CATOBJEXT" = ".cat"; then
7929 if test "${ac_cv_header_linux_version_h+set}" = set; then
7930 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7931 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7932 if test "${ac_cv_header_linux_version_h+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7935 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7936 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7937 else
7938 # Is the header compilable?
7939 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7940 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 $ac_includes_default
7948 #include <linux/version.h>
7949 _ACEOF
7950 rm -f conftest.$ac_objext
7951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7952 (eval $ac_compile) 2>conftest.er1
7953 ac_status=$?
7954 grep -v '^ *+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -z "$ac_c_werror_flag"
7960 || test ! -s conftest.err'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 (eval $ac_try) 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; } &&
7966 { ac_try='test -s conftest.$ac_objext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 ac_header_compiler=yes
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 ac_header_compiler=no
7979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7981 echo "${ECHO_T}$ac_header_compiler" >&6
7983 # Is the header present?
7984 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7985 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7986 cat >conftest.$ac_ext <<_ACEOF
7987 /* confdefs.h. */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7992 #include <linux/version.h>
7993 _ACEOF
7994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7996 ac_status=$?
7997 grep -v '^ *+' conftest.er1 >conftest.err
7998 rm -f conftest.er1
7999 cat conftest.err >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } >/dev/null; then
8002 if test -s conftest.err; then
8003 ac_cpp_err=$ac_c_preproc_warn_flag
8004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8005 else
8006 ac_cpp_err=
8008 else
8009 ac_cpp_err=yes
8011 if test -z "$ac_cpp_err"; then
8012 ac_header_preproc=yes
8013 else
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8017 ac_header_preproc=no
8019 rm -f conftest.err conftest.$ac_ext
8020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8021 echo "${ECHO_T}$ac_header_preproc" >&6
8023 # So? What about this header?
8024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8025 yes:no: )
8026 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8027 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8028 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8029 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8030 ac_header_preproc=yes
8032 no:yes:* )
8033 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8034 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8035 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8036 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8037 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8038 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8039 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8040 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8041 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8042 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8043 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8044 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8046 cat <<\_ASBOX
8047 ## ------------------------------------------ ##
8048 ## Report this to the AC_PACKAGE_NAME lists. ##
8049 ## ------------------------------------------ ##
8050 _ASBOX
8052 sed "s/^/$as_me: WARNING: /" >&2
8054 esac
8055 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8056 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8057 if test "${ac_cv_header_linux_version_h+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 else
8060 ac_cv_header_linux_version_h=$ac_header_preproc
8062 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8063 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8066 if test $ac_cv_header_linux_version_h = yes; then
8067 msgformat=linux
8068 else
8069 msgformat=xopen
8074 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8076 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8077 $srcdir/po2tbl.sed.in > po2tbl.sed
8080 if test "$PACKAGE" = "gettext"; then
8081 GT_NO="#NO#"
8082 GT_YES=
8083 else
8084 GT_NO=
8085 GT_YES="#YES#"
8090 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8096 if test -f $srcdir/po/POTFILES.in; then
8097 test -d po || mkdir po
8098 if test "x$srcdir" != "x."; then
8099 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8100 posrcprefix="$srcdir/"
8101 else
8102 posrcprefix="../$srcdir/"
8104 else
8105 posrcprefix="../"
8107 rm -f po/POTFILES
8108 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8109 < $srcdir/po/POTFILES.in > po/POTFILES
8113 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8114 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8115 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8116 if test "${enable_maintainer_mode+set}" = set; then
8117 enableval="$enable_maintainer_mode"
8118 USE_MAINTAINER_MODE=$enableval
8119 else
8120 USE_MAINTAINER_MODE=no
8122 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8123 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8126 if test $USE_MAINTAINER_MODE = yes; then
8127 MAINTAINER_MODE_TRUE=
8128 MAINTAINER_MODE_FALSE='#'
8129 else
8130 MAINTAINER_MODE_TRUE='#'
8131 MAINTAINER_MODE_FALSE=
8134 MAINT=$MAINTAINER_MODE_TRUE
8140 for ac_header in sys/gmon_out.h
8142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8144 echo "$as_me:$LINENO: checking for $ac_header" >&5
8145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8151 else
8152 # Is the header compilable?
8153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8155 cat >conftest.$ac_ext <<_ACEOF
8156 /* confdefs.h. */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8161 $ac_includes_default
8162 #include <$ac_header>
8163 _ACEOF
8164 rm -f conftest.$ac_objext
8165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8166 (eval $ac_compile) 2>conftest.er1
8167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } &&
8173 { ac_try='test -z "$ac_c_werror_flag"
8174 || test ! -s conftest.err'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 (eval $ac_try) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; } &&
8180 { ac_try='test -s conftest.$ac_objext'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 (eval $ac_try) 2>&5
8183 ac_status=$?
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 ac_header_compiler=yes
8187 else
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8191 ac_header_compiler=no
8193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8195 echo "${ECHO_T}$ac_header_compiler" >&6
8197 # Is the header present?
8198 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8200 cat >conftest.$ac_ext <<_ACEOF
8201 /* confdefs.h. */
8202 _ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8206 #include <$ac_header>
8207 _ACEOF
8208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } >/dev/null; then
8216 if test -s conftest.err; then
8217 ac_cpp_err=$ac_c_preproc_warn_flag
8218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8219 else
8220 ac_cpp_err=
8222 else
8223 ac_cpp_err=yes
8225 if test -z "$ac_cpp_err"; then
8226 ac_header_preproc=yes
8227 else
8228 echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8231 ac_header_preproc=no
8233 rm -f conftest.err conftest.$ac_ext
8234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8235 echo "${ECHO_T}$ac_header_preproc" >&6
8237 # So? What about this header?
8238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8239 yes:no: )
8240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8244 ac_header_preproc=yes
8246 no:yes:* )
8247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8260 cat <<\_ASBOX
8261 ## ------------------------------------------ ##
8262 ## Report this to the AC_PACKAGE_NAME lists. ##
8263 ## ------------------------------------------ ##
8264 _ASBOX
8266 sed "s/^/$as_me: WARNING: /" >&2
8268 esac
8269 echo "$as_me:$LINENO: checking for $ac_header" >&5
8270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274 eval "$as_ac_Header=\$ac_header_preproc"
8276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8281 cat >>confdefs.h <<_ACEOF
8282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8283 _ACEOF
8287 done
8290 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
8291 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
8292 if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295 cat >conftest.$ac_ext <<_ACEOF
8296 /* confdefs.h. */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8301 #include <unistd.h>
8303 main ()
8305 extern int getopt (int, char *const*, const char *);
8307 return 0;
8309 _ACEOF
8310 rm -f conftest.$ac_objext
8311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8312 (eval $ac_compile) 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -z "$ac_c_werror_flag"
8320 || test ! -s conftest.err'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; } &&
8326 { ac_try='test -s conftest.$ac_objext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 gprof_cv_decl_getopt_unistd_h=yes
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8337 gprof_cv_decl_getopt_unistd_h=no
8339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8342 echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
8343 echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6
8344 if test $gprof_cv_decl_getopt_unistd_h = yes; then
8346 cat >>confdefs.h <<\_ACEOF
8347 #define HAVE_DECL_GETOPT 1
8348 _ACEOF
8353 WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
8355 # Check whether --enable-werror or --disable-werror was given.
8356 if test "${enable_werror+set}" = set; then
8357 enableval="$enable_werror"
8358 case "${enableval}" in
8359 yes | y) ERROR_ON_WARNING="yes" ;;
8360 no | n) ERROR_ON_WARNING="no" ;;
8361 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
8362 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
8363 { (exit 1); exit 1; }; } ;;
8364 esac
8367 # Enable -Werror by default when using gcc
8368 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
8369 ERROR_ON_WARNING=yes
8372 NO_WERROR=
8373 if test "${ERROR_ON_WARNING}" = yes ; then
8374 WARN_CFLAGS="$WARN_CFLAGS -Werror"
8375 NO_WERROR="-Wno-error"
8378 # Check whether --enable-build-warnings or --disable-build-warnings was given.
8379 if test "${enable_build_warnings+set}" = set; then
8380 enableval="$enable_build_warnings"
8381 case "${enableval}" in
8382 yes) ;;
8383 no) WARN_CFLAGS="-w";;
8384 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8385 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
8386 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8387 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
8388 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8389 esac
8392 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
8393 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
8400 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
8402 ac_config_commands="$ac_config_commands default"
8404 cat >confcache <<\_ACEOF
8405 # This file is a shell script that caches the results of configure
8406 # tests run on this system so they can be shared between configure
8407 # scripts and configure runs, see configure's option --config-cache.
8408 # It is not useful on other systems. If it contains results you don't
8409 # want to keep, you may remove or edit it.
8411 # config.status only pays attention to the cache file if you give it
8412 # the --recheck option to rerun configure.
8414 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8415 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8416 # following values.
8418 _ACEOF
8420 # The following way of writing the cache mishandles newlines in values,
8421 # but we know of no workaround that is simple, portable, and efficient.
8422 # So, don't put newlines in cache variables' values.
8423 # Ultrix sh set writes to stderr and can't be redirected directly,
8424 # and sets the high bit in the cache file unless we assign to the vars.
8426 (set) 2>&1 |
8427 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8428 *ac_space=\ *)
8429 # `set' does not quote correctly, so add quotes (double-quote
8430 # substitution turns \\\\ into \\, and sed turns \\ into \).
8431 sed -n \
8432 "s/'/'\\\\''/g;
8433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8436 # `set' quotes correctly as required by POSIX, so do not add quotes.
8437 sed -n \
8438 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8440 esac;
8442 sed '
8443 t clear
8444 : clear
8445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8446 t end
8447 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8448 : end' >>confcache
8449 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8450 if test -w $cache_file; then
8451 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8452 cat confcache >$cache_file
8453 else
8454 echo "not updating unwritable cache $cache_file"
8457 rm -f confcache
8459 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8460 # Let make expand exec_prefix.
8461 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8463 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8464 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8465 # trailing colons and then remove the whole line if VPATH becomes empty
8466 # (actually we leave an empty line to preserve line numbers).
8467 if test "x$srcdir" = x.; then
8468 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8469 s/:*\$(srcdir):*/:/;
8470 s/:*\${srcdir}:*/:/;
8471 s/:*@srcdir@:*/:/;
8472 s/^\([^=]*=[ ]*\):*/\1/;
8473 s/:*$//;
8474 s/^[^=]*=[ ]*$//;
8478 DEFS=-DHAVE_CONFIG_H
8480 ac_libobjs=
8481 ac_ltlibobjs=
8482 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8483 # 1. Remove the extension, and $U if already installed.
8484 ac_i=`echo "$ac_i" |
8485 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8486 # 2. Add them.
8487 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8488 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8489 done
8490 LIBOBJS=$ac_libobjs
8492 LTLIBOBJS=$ac_ltlibobjs
8495 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8496 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8497 Usually this means the macro was only invoked conditionally." >&5
8498 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8499 Usually this means the macro was only invoked conditionally." >&2;}
8500 { (exit 1); exit 1; }; }
8502 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8503 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8504 Usually this means the macro was only invoked conditionally." >&5
8505 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8506 Usually this means the macro was only invoked conditionally." >&2;}
8507 { (exit 1); exit 1; }; }
8509 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8510 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8511 Usually this means the macro was only invoked conditionally." >&5
8512 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8513 Usually this means the macro was only invoked conditionally." >&2;}
8514 { (exit 1); exit 1; }; }
8517 : ${CONFIG_STATUS=./config.status}
8518 ac_clean_files_save=$ac_clean_files
8519 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8520 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8521 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8522 cat >$CONFIG_STATUS <<_ACEOF
8523 #! $SHELL
8524 # Generated by $as_me.
8525 # Run this file to recreate the current configuration.
8526 # Compiler output produced by configure, useful for debugging
8527 # configure, is in config.log if it exists.
8529 debug=false
8530 ac_cs_recheck=false
8531 ac_cs_silent=false
8532 SHELL=\${CONFIG_SHELL-$SHELL}
8533 _ACEOF
8535 cat >>$CONFIG_STATUS <<\_ACEOF
8536 ## --------------------- ##
8537 ## M4sh Initialization. ##
8538 ## --------------------- ##
8540 # Be Bourne compatible
8541 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8542 emulate sh
8543 NULLCMD=:
8544 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8545 # is contrary to our usage. Disable this feature.
8546 alias -g '${1+"$@"}'='"$@"'
8547 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8548 set -o posix
8550 DUALCASE=1; export DUALCASE # for MKS sh
8552 # Support unset when possible.
8553 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8554 as_unset=unset
8555 else
8556 as_unset=false
8560 # Work around bugs in pre-3.0 UWIN ksh.
8561 $as_unset ENV MAIL MAILPATH
8562 PS1='$ '
8563 PS2='> '
8564 PS4='+ '
8566 # NLS nuisances.
8567 for as_var in \
8568 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8569 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8570 LC_TELEPHONE LC_TIME
8572 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8573 eval $as_var=C; export $as_var
8574 else
8575 $as_unset $as_var
8577 done
8579 # Required to use basename.
8580 if expr a : '\(a\)' >/dev/null 2>&1; then
8581 as_expr=expr
8582 else
8583 as_expr=false
8586 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8587 as_basename=basename
8588 else
8589 as_basename=false
8593 # Name of the executable.
8594 as_me=`$as_basename "$0" ||
8595 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8596 X"$0" : 'X\(//\)$' \| \
8597 X"$0" : 'X\(/\)$' \| \
8598 . : '\(.\)' 2>/dev/null ||
8599 echo X/"$0" |
8600 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8601 /^X\/\(\/\/\)$/{ s//\1/; q; }
8602 /^X\/\(\/\).*/{ s//\1/; q; }
8603 s/.*/./; q'`
8606 # PATH needs CR, and LINENO needs CR and PATH.
8607 # Avoid depending upon Character Ranges.
8608 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8609 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8610 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8611 as_cr_digits='0123456789'
8612 as_cr_alnum=$as_cr_Letters$as_cr_digits
8614 # The user is always right.
8615 if test "${PATH_SEPARATOR+set}" != set; then
8616 echo "#! /bin/sh" >conf$$.sh
8617 echo "exit 0" >>conf$$.sh
8618 chmod +x conf$$.sh
8619 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8620 PATH_SEPARATOR=';'
8621 else
8622 PATH_SEPARATOR=:
8624 rm -f conf$$.sh
8628 as_lineno_1=$LINENO
8629 as_lineno_2=$LINENO
8630 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8631 test "x$as_lineno_1" != "x$as_lineno_2" &&
8632 test "x$as_lineno_3" = "x$as_lineno_2" || {
8633 # Find who we are. Look in the path if we contain no path at all
8634 # relative or not.
8635 case $0 in
8636 *[\\/]* ) as_myself=$0 ;;
8637 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638 for as_dir in $PATH
8640 IFS=$as_save_IFS
8641 test -z "$as_dir" && as_dir=.
8642 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8643 done
8646 esac
8647 # We did not find ourselves, most probably we were run as `sh COMMAND'
8648 # in which case we are not to be found in the path.
8649 if test "x$as_myself" = x; then
8650 as_myself=$0
8652 if test ! -f "$as_myself"; then
8653 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8654 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8655 { (exit 1); exit 1; }; }
8657 case $CONFIG_SHELL in
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
8664 for as_base in sh bash ksh sh5; do
8665 case $as_dir in
8667 if ("$as_dir/$as_base" -c '
8668 as_lineno_1=$LINENO
8669 as_lineno_2=$LINENO
8670 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8671 test "x$as_lineno_1" != "x$as_lineno_2" &&
8672 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8673 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8674 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8675 CONFIG_SHELL=$as_dir/$as_base
8676 export CONFIG_SHELL
8677 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8678 fi;;
8679 esac
8680 done
8681 done
8683 esac
8685 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8686 # uniformly replaced by the line number. The first 'sed' inserts a
8687 # line-number line before each line; the second 'sed' does the real
8688 # work. The second script uses 'N' to pair each line-number line
8689 # with the numbered line, and appends trailing '-' during
8690 # substitution so that $LINENO is not a special case at line end.
8691 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8692 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8693 sed '=' <$as_myself |
8694 sed '
8696 s,$,-,
8697 : loop
8698 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8699 t loop
8700 s,-$,,
8701 s,^['$as_cr_digits']*\n,,
8702 ' >$as_me.lineno &&
8703 chmod +x $as_me.lineno ||
8704 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8705 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8706 { (exit 1); exit 1; }; }
8708 # Don't try to exec as it changes $[0], causing all sort of problems
8709 # (the dirname of $[0] is not the place where we might find the
8710 # original and so on. Autoconf is especially sensible to this).
8711 . ./$as_me.lineno
8712 # Exit status is that of the last command.
8713 exit
8717 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8718 *c*,-n*) ECHO_N= ECHO_C='
8719 ' ECHO_T=' ' ;;
8720 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8721 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8722 esac
8724 if expr a : '\(a\)' >/dev/null 2>&1; then
8725 as_expr=expr
8726 else
8727 as_expr=false
8730 rm -f conf$$ conf$$.exe conf$$.file
8731 echo >conf$$.file
8732 if ln -s conf$$.file conf$$ 2>/dev/null; then
8733 # We could just check for DJGPP; but this test a) works b) is more generic
8734 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8735 if test -f conf$$.exe; then
8736 # Don't use ln at all; we don't have any links
8737 as_ln_s='cp -p'
8738 else
8739 as_ln_s='ln -s'
8741 elif ln conf$$.file conf$$ 2>/dev/null; then
8742 as_ln_s=ln
8743 else
8744 as_ln_s='cp -p'
8746 rm -f conf$$ conf$$.exe conf$$.file
8748 if mkdir -p . 2>/dev/null; then
8749 as_mkdir_p=:
8750 else
8751 test -d ./-p && rmdir ./-p
8752 as_mkdir_p=false
8755 as_executable_p="test -f"
8757 # Sed expression to map a string onto a valid CPP name.
8758 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8760 # Sed expression to map a string onto a valid variable name.
8761 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8764 # IFS
8765 # We need space, tab and new line, in precisely that order.
8766 as_nl='
8768 IFS=" $as_nl"
8770 # CDPATH.
8771 $as_unset CDPATH
8773 exec 6>&1
8775 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8776 # report actual input values of CONFIG_FILES etc. instead of their
8777 # values after options handling. Logging --version etc. is OK.
8778 exec 5>>config.log
8780 echo
8781 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8782 ## Running $as_me. ##
8783 _ASBOX
8784 } >&5
8785 cat >&5 <<_CSEOF
8787 This file was extended by $as_me, which was
8788 generated by GNU Autoconf 2.59. Invocation command line was
8790 CONFIG_FILES = $CONFIG_FILES
8791 CONFIG_HEADERS = $CONFIG_HEADERS
8792 CONFIG_LINKS = $CONFIG_LINKS
8793 CONFIG_COMMANDS = $CONFIG_COMMANDS
8794 $ $0 $@
8796 _CSEOF
8797 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8798 echo >&5
8799 _ACEOF
8801 # Files that config.status was made for.
8802 if test -n "$ac_config_files"; then
8803 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8806 if test -n "$ac_config_headers"; then
8807 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8810 if test -n "$ac_config_links"; then
8811 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8814 if test -n "$ac_config_commands"; then
8815 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8818 cat >>$CONFIG_STATUS <<\_ACEOF
8820 ac_cs_usage="\
8821 \`$as_me' instantiates files from templates according to the
8822 current configuration.
8824 Usage: $0 [OPTIONS] [FILE]...
8826 -h, --help print this help, then exit
8827 -V, --version print version number, then exit
8828 -q, --quiet do not print progress messages
8829 -d, --debug don't remove temporary files
8830 --recheck update $as_me by reconfiguring in the same conditions
8831 --file=FILE[:TEMPLATE]
8832 instantiate the configuration file FILE
8833 --header=FILE[:TEMPLATE]
8834 instantiate the configuration header FILE
8836 Configuration files:
8837 $config_files
8839 Configuration headers:
8840 $config_headers
8842 Configuration commands:
8843 $config_commands
8845 Report bugs to <bug-autoconf@gnu.org>."
8846 _ACEOF
8848 cat >>$CONFIG_STATUS <<_ACEOF
8849 ac_cs_version="\\
8850 config.status
8851 configured by $0, generated by GNU Autoconf 2.59,
8852 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8854 Copyright (C) 2003 Free Software Foundation, Inc.
8855 This config.status script is free software; the Free Software Foundation
8856 gives unlimited permission to copy, distribute and modify it."
8857 srcdir=$srcdir
8858 INSTALL="$INSTALL"
8859 _ACEOF
8861 cat >>$CONFIG_STATUS <<\_ACEOF
8862 # If no file are specified by the user, then we need to provide default
8863 # value. By we need to know if files were specified by the user.
8864 ac_need_defaults=:
8865 while test $# != 0
8867 case $1 in
8868 --*=*)
8869 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8870 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8871 ac_shift=:
8874 ac_option=$1
8875 ac_optarg=$2
8876 ac_shift=shift
8878 *) # This is not an option, so the user has probably given explicit
8879 # arguments.
8880 ac_option=$1
8881 ac_need_defaults=false;;
8882 esac
8884 case $ac_option in
8885 # Handling of the options.
8886 _ACEOF
8887 cat >>$CONFIG_STATUS <<\_ACEOF
8888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8889 ac_cs_recheck=: ;;
8890 --version | --vers* | -V )
8891 echo "$ac_cs_version"; exit 0 ;;
8892 --he | --h)
8893 # Conflict between --help and --header
8894 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8895 Try \`$0 --help' for more information." >&5
8896 echo "$as_me: error: ambiguous option: $1
8897 Try \`$0 --help' for more information." >&2;}
8898 { (exit 1); exit 1; }; };;
8899 --help | --hel | -h )
8900 echo "$ac_cs_usage"; exit 0 ;;
8901 --debug | --d* | -d )
8902 debug=: ;;
8903 --file | --fil | --fi | --f )
8904 $ac_shift
8905 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8906 ac_need_defaults=false;;
8907 --header | --heade | --head | --hea )
8908 $ac_shift
8909 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8910 ac_need_defaults=false;;
8911 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8912 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8913 ac_cs_silent=: ;;
8915 # This is an error.
8916 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8917 Try \`$0 --help' for more information." >&5
8918 echo "$as_me: error: unrecognized option: $1
8919 Try \`$0 --help' for more information." >&2;}
8920 { (exit 1); exit 1; }; } ;;
8922 *) ac_config_targets="$ac_config_targets $1" ;;
8924 esac
8925 shift
8926 done
8928 ac_configure_extra_args=
8930 if $ac_cs_silent; then
8931 exec 6>/dev/null
8932 ac_configure_extra_args="$ac_configure_extra_args --silent"
8935 _ACEOF
8936 cat >>$CONFIG_STATUS <<_ACEOF
8937 if \$ac_cs_recheck; then
8938 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8939 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8942 _ACEOF
8944 cat >>$CONFIG_STATUS <<_ACEOF
8946 # INIT-COMMANDS section.
8949 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8952 _ACEOF
8956 cat >>$CONFIG_STATUS <<\_ACEOF
8957 for ac_config_target in $ac_config_targets
8959 case "$ac_config_target" in
8960 # Handling of arguments.
8961 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8962 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8963 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8964 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8965 "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
8966 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8967 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8968 { (exit 1); exit 1; }; };;
8969 esac
8970 done
8972 # If the user did not use the arguments to specify the items to instantiate,
8973 # then the envvar interface is used. Set only those that are not.
8974 # We use the long form for the default assignment because of an extremely
8975 # bizarre bug on SunOS 4.1.3.
8976 if $ac_need_defaults; then
8977 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8978 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8979 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8982 # Have a temporary directory for convenience. Make it in the build tree
8983 # simply because there is no reason to put it here, and in addition,
8984 # creating and moving files from /tmp can sometimes cause problems.
8985 # Create a temporary directory, and hook for its removal unless debugging.
8986 $debug ||
8988 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8989 trap '{ (exit 1); exit 1; }' 1 2 13 15
8992 # Create a (secure) tmp directory for tmp files.
8995 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8996 test -n "$tmp" && test -d "$tmp"
8997 } ||
8999 tmp=./confstat$$-$RANDOM
9000 (umask 077 && mkdir $tmp)
9001 } ||
9003 echo "$me: cannot create a temporary directory in ." >&2
9004 { (exit 1); exit 1; }
9007 _ACEOF
9009 cat >>$CONFIG_STATUS <<_ACEOF
9012 # CONFIG_FILES section.
9015 # No need to generate the scripts if there are no CONFIG_FILES.
9016 # This happens for instance when ./config.status config.h
9017 if test -n "\$CONFIG_FILES"; then
9018 # Protect against being on the right side of a sed subst in config.status.
9019 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9020 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9021 s,@SHELL@,$SHELL,;t t
9022 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9023 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9024 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9025 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9026 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9027 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9028 s,@exec_prefix@,$exec_prefix,;t t
9029 s,@prefix@,$prefix,;t t
9030 s,@program_transform_name@,$program_transform_name,;t t
9031 s,@bindir@,$bindir,;t t
9032 s,@sbindir@,$sbindir,;t t
9033 s,@libexecdir@,$libexecdir,;t t
9034 s,@datadir@,$datadir,;t t
9035 s,@sysconfdir@,$sysconfdir,;t t
9036 s,@sharedstatedir@,$sharedstatedir,;t t
9037 s,@localstatedir@,$localstatedir,;t t
9038 s,@libdir@,$libdir,;t t
9039 s,@includedir@,$includedir,;t t
9040 s,@oldincludedir@,$oldincludedir,;t t
9041 s,@infodir@,$infodir,;t t
9042 s,@mandir@,$mandir,;t t
9043 s,@build_alias@,$build_alias,;t t
9044 s,@host_alias@,$host_alias,;t t
9045 s,@target_alias@,$target_alias,;t t
9046 s,@DEFS@,$DEFS,;t t
9047 s,@ECHO_C@,$ECHO_C,;t t
9048 s,@ECHO_N@,$ECHO_N,;t t
9049 s,@ECHO_T@,$ECHO_T,;t t
9050 s,@LIBS@,$LIBS,;t t
9051 s,@build@,$build,;t t
9052 s,@build_cpu@,$build_cpu,;t t
9053 s,@build_vendor@,$build_vendor,;t t
9054 s,@build_os@,$build_os,;t t
9055 s,@host@,$host,;t t
9056 s,@host_cpu@,$host_cpu,;t t
9057 s,@host_vendor@,$host_vendor,;t t
9058 s,@host_os@,$host_os,;t t
9059 s,@target@,$target,;t t
9060 s,@target_cpu@,$target_cpu,;t t
9061 s,@target_vendor@,$target_vendor,;t t
9062 s,@target_os@,$target_os,;t t
9063 s,@CC@,$CC,;t t
9064 s,@CFLAGS@,$CFLAGS,;t t
9065 s,@LDFLAGS@,$LDFLAGS,;t t
9066 s,@CPPFLAGS@,$CPPFLAGS,;t t
9067 s,@ac_ct_CC@,$ac_ct_CC,;t t
9068 s,@EXEEXT@,$EXEEXT,;t t
9069 s,@OBJEXT@,$OBJEXT,;t t
9070 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9071 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9072 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9073 s,@CYGPATH_W@,$CYGPATH_W,;t t
9074 s,@PACKAGE@,$PACKAGE,;t t
9075 s,@VERSION@,$VERSION,;t t
9076 s,@ACLOCAL@,$ACLOCAL,;t t
9077 s,@AUTOCONF@,$AUTOCONF,;t t
9078 s,@AUTOMAKE@,$AUTOMAKE,;t t
9079 s,@AUTOHEADER@,$AUTOHEADER,;t t
9080 s,@MAKEINFO@,$MAKEINFO,;t t
9081 s,@install_sh@,$install_sh,;t t
9082 s,@STRIP@,$STRIP,;t t
9083 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9084 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9085 s,@mkdir_p@,$mkdir_p,;t t
9086 s,@AWK@,$AWK,;t t
9087 s,@SET_MAKE@,$SET_MAKE,;t t
9088 s,@am__leading_dot@,$am__leading_dot,;t t
9089 s,@AMTAR@,$AMTAR,;t t
9090 s,@am__tar@,$am__tar,;t t
9091 s,@am__untar@,$am__untar,;t t
9092 s,@DEPDIR@,$DEPDIR,;t t
9093 s,@am__include@,$am__include,;t t
9094 s,@am__quote@,$am__quote,;t t
9095 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9096 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9097 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9098 s,@CCDEPMODE@,$CCDEPMODE,;t t
9099 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9100 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9101 s,@LN_S@,$LN_S,;t t
9102 s,@RANLIB@,$RANLIB,;t t
9103 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9104 s,@LIBTOOL@,$LIBTOOL,;t t
9105 s,@CPP@,$CPP,;t t
9106 s,@EGREP@,$EGREP,;t t
9107 s,@ALLOCA@,$ALLOCA,;t t
9108 s,@USE_NLS@,$USE_NLS,;t t
9109 s,@MSGFMT@,$MSGFMT,;t t
9110 s,@GMSGFMT@,$GMSGFMT,;t t
9111 s,@XGETTEXT@,$XGETTEXT,;t t
9112 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9113 s,@CATALOGS@,$CATALOGS,;t t
9114 s,@CATOBJEXT@,$CATOBJEXT,;t t
9115 s,@DATADIRNAME@,$DATADIRNAME,;t t
9116 s,@GMOFILES@,$GMOFILES,;t t
9117 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9118 s,@INTLDEPS@,$INTLDEPS,;t t
9119 s,@INTLLIBS@,$INTLLIBS,;t t
9120 s,@INTLOBJS@,$INTLOBJS,;t t
9121 s,@POFILES@,$POFILES,;t t
9122 s,@POSUB@,$POSUB,;t t
9123 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9124 s,@GT_NO@,$GT_NO,;t t
9125 s,@GT_YES@,$GT_YES,;t t
9126 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9127 s,@l@,$l,;t t
9128 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9129 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9130 s,@MAINT@,$MAINT,;t t
9131 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9132 s,@NO_WERROR@,$NO_WERROR,;t t
9133 s,@LIBOBJS@,$LIBOBJS,;t t
9134 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9135 CEOF
9137 _ACEOF
9139 cat >>$CONFIG_STATUS <<\_ACEOF
9140 # Split the substitutions into bite-sized pieces for seds with
9141 # small command number limits, like on Digital OSF/1 and HP-UX.
9142 ac_max_sed_lines=48
9143 ac_sed_frag=1 # Number of current file.
9144 ac_beg=1 # First line for current file.
9145 ac_end=$ac_max_sed_lines # Line after last line for current file.
9146 ac_more_lines=:
9147 ac_sed_cmds=
9148 while $ac_more_lines; do
9149 if test $ac_beg -gt 1; then
9150 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9151 else
9152 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9154 if test ! -s $tmp/subs.frag; then
9155 ac_more_lines=false
9156 else
9157 # The purpose of the label and of the branching condition is to
9158 # speed up the sed processing (if there are no `@' at all, there
9159 # is no need to browse any of the substitutions).
9160 # These are the two extra sed commands mentioned above.
9161 (echo ':t
9162 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9163 if test -z "$ac_sed_cmds"; then
9164 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9165 else
9166 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9168 ac_sed_frag=`expr $ac_sed_frag + 1`
9169 ac_beg=$ac_end
9170 ac_end=`expr $ac_end + $ac_max_sed_lines`
9172 done
9173 if test -z "$ac_sed_cmds"; then
9174 ac_sed_cmds=cat
9176 fi # test -n "$CONFIG_FILES"
9178 _ACEOF
9179 cat >>$CONFIG_STATUS <<\_ACEOF
9180 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9181 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9182 case $ac_file in
9183 - | *:- | *:-:* ) # input from stdin
9184 cat >$tmp/stdin
9185 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9186 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9187 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9188 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9189 * ) ac_file_in=$ac_file.in ;;
9190 esac
9192 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9193 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9194 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9195 X"$ac_file" : 'X\(//\)[^/]' \| \
9196 X"$ac_file" : 'X\(//\)$' \| \
9197 X"$ac_file" : 'X\(/\)' \| \
9198 . : '\(.\)' 2>/dev/null ||
9199 echo X"$ac_file" |
9200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9202 /^X\(\/\/\)$/{ s//\1/; q; }
9203 /^X\(\/\).*/{ s//\1/; q; }
9204 s/.*/./; q'`
9205 { if $as_mkdir_p; then
9206 mkdir -p "$ac_dir"
9207 else
9208 as_dir="$ac_dir"
9209 as_dirs=
9210 while test ! -d "$as_dir"; do
9211 as_dirs="$as_dir $as_dirs"
9212 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9214 X"$as_dir" : 'X\(//\)[^/]' \| \
9215 X"$as_dir" : 'X\(//\)$' \| \
9216 X"$as_dir" : 'X\(/\)' \| \
9217 . : '\(.\)' 2>/dev/null ||
9218 echo X"$as_dir" |
9219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9220 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9221 /^X\(\/\/\)$/{ s//\1/; q; }
9222 /^X\(\/\).*/{ s//\1/; q; }
9223 s/.*/./; q'`
9224 done
9225 test ! -n "$as_dirs" || mkdir $as_dirs
9226 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9227 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9228 { (exit 1); exit 1; }; }; }
9230 ac_builddir=.
9232 if test "$ac_dir" != .; then
9233 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9234 # A "../" for each directory in $ac_dir_suffix.
9235 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9236 else
9237 ac_dir_suffix= ac_top_builddir=
9240 case $srcdir in
9241 .) # No --srcdir option. We are building in place.
9242 ac_srcdir=.
9243 if test -z "$ac_top_builddir"; then
9244 ac_top_srcdir=.
9245 else
9246 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9247 fi ;;
9248 [\\/]* | ?:[\\/]* ) # Absolute path.
9249 ac_srcdir=$srcdir$ac_dir_suffix;
9250 ac_top_srcdir=$srcdir ;;
9251 *) # Relative path.
9252 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9253 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9254 esac
9256 # Do not use `cd foo && pwd` to compute absolute paths, because
9257 # the directories may not exist.
9258 case `pwd` in
9259 .) ac_abs_builddir="$ac_dir";;
9261 case "$ac_dir" in
9262 .) ac_abs_builddir=`pwd`;;
9263 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9264 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9265 esac;;
9266 esac
9267 case $ac_abs_builddir in
9268 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9270 case ${ac_top_builddir}. in
9271 .) ac_abs_top_builddir=$ac_abs_builddir;;
9272 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9273 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9274 esac;;
9275 esac
9276 case $ac_abs_builddir in
9277 .) ac_abs_srcdir=$ac_srcdir;;
9279 case $ac_srcdir in
9280 .) ac_abs_srcdir=$ac_abs_builddir;;
9281 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9282 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9283 esac;;
9284 esac
9285 case $ac_abs_builddir in
9286 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9288 case $ac_top_srcdir in
9289 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9290 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9291 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9292 esac;;
9293 esac
9296 case $INSTALL in
9297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9298 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9299 esac
9301 if test x"$ac_file" != x-; then
9302 { echo "$as_me:$LINENO: creating $ac_file" >&5
9303 echo "$as_me: creating $ac_file" >&6;}
9304 rm -f "$ac_file"
9306 # Let's still pretend it is `configure' which instantiates (i.e., don't
9307 # use $as_me), people would be surprised to read:
9308 # /* config.h. Generated by config.status. */
9309 if test x"$ac_file" = x-; then
9310 configure_input=
9311 else
9312 configure_input="$ac_file. "
9314 configure_input=$configure_input"Generated from `echo $ac_file_in |
9315 sed 's,.*/,,'` by configure."
9317 # First look for the input files in the build tree, otherwise in the
9318 # src tree.
9319 ac_file_inputs=`IFS=:
9320 for f in $ac_file_in; do
9321 case $f in
9322 -) echo $tmp/stdin ;;
9323 [\\/$]*)
9324 # Absolute (can't be DOS-style, as IFS=:)
9325 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9326 echo "$as_me: error: cannot find input file: $f" >&2;}
9327 { (exit 1); exit 1; }; }
9328 echo "$f";;
9329 *) # Relative
9330 if test -f "$f"; then
9331 # Build tree
9332 echo "$f"
9333 elif test -f "$srcdir/$f"; then
9334 # Source tree
9335 echo "$srcdir/$f"
9336 else
9337 # /dev/null tree
9338 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9339 echo "$as_me: error: cannot find input file: $f" >&2;}
9340 { (exit 1); exit 1; }; }
9341 fi;;
9342 esac
9343 done` || { (exit 1); exit 1; }
9344 _ACEOF
9345 cat >>$CONFIG_STATUS <<_ACEOF
9346 sed "$ac_vpsub
9347 $extrasub
9348 _ACEOF
9349 cat >>$CONFIG_STATUS <<\_ACEOF
9351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9352 s,@configure_input@,$configure_input,;t t
9353 s,@srcdir@,$ac_srcdir,;t t
9354 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9355 s,@top_srcdir@,$ac_top_srcdir,;t t
9356 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9357 s,@builddir@,$ac_builddir,;t t
9358 s,@abs_builddir@,$ac_abs_builddir,;t t
9359 s,@top_builddir@,$ac_top_builddir,;t t
9360 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9361 s,@INSTALL@,$ac_INSTALL,;t t
9362 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9363 rm -f $tmp/stdin
9364 if test x"$ac_file" != x-; then
9365 mv $tmp/out $ac_file
9366 else
9367 cat $tmp/out
9368 rm -f $tmp/out
9371 done
9372 _ACEOF
9373 cat >>$CONFIG_STATUS <<\_ACEOF
9376 # CONFIG_HEADER section.
9379 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9380 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9382 # ac_d sets the value in "#define NAME VALUE" lines.
9383 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9384 ac_dB='[ ].*$,\1#\2'
9385 ac_dC=' '
9386 ac_dD=',;t'
9387 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9388 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9389 ac_uB='$,\1#\2define\3'
9390 ac_uC=' '
9391 ac_uD=',;t'
9393 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9394 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9395 case $ac_file in
9396 - | *:- | *:-:* ) # input from stdin
9397 cat >$tmp/stdin
9398 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9399 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9400 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9401 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9402 * ) ac_file_in=$ac_file.in ;;
9403 esac
9405 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9406 echo "$as_me: creating $ac_file" >&6;}
9408 # First look for the input files in the build tree, otherwise in the
9409 # src tree.
9410 ac_file_inputs=`IFS=:
9411 for f in $ac_file_in; do
9412 case $f in
9413 -) echo $tmp/stdin ;;
9414 [\\/$]*)
9415 # Absolute (can't be DOS-style, as IFS=:)
9416 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9417 echo "$as_me: error: cannot find input file: $f" >&2;}
9418 { (exit 1); exit 1; }; }
9419 # Do quote $f, to prevent DOS paths from being IFS'd.
9420 echo "$f";;
9421 *) # Relative
9422 if test -f "$f"; then
9423 # Build tree
9424 echo "$f"
9425 elif test -f "$srcdir/$f"; then
9426 # Source tree
9427 echo "$srcdir/$f"
9428 else
9429 # /dev/null tree
9430 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9431 echo "$as_me: error: cannot find input file: $f" >&2;}
9432 { (exit 1); exit 1; }; }
9433 fi;;
9434 esac
9435 done` || { (exit 1); exit 1; }
9436 # Remove the trailing spaces.
9437 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9439 _ACEOF
9441 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9442 # `conftest.undefs', that substitutes the proper values into
9443 # config.h.in to produce config.h. The first handles `#define'
9444 # templates, and the second `#undef' templates.
9445 # And first: Protect against being on the right side of a sed subst in
9446 # config.status. Protect against being in an unquoted here document
9447 # in config.status.
9448 rm -f conftest.defines conftest.undefs
9449 # Using a here document instead of a string reduces the quoting nightmare.
9450 # Putting comments in sed scripts is not portable.
9452 # `end' is used to avoid that the second main sed command (meant for
9453 # 0-ary CPP macros) applies to n-ary macro definitions.
9454 # See the Autoconf documentation for `clear'.
9455 cat >confdef2sed.sed <<\_ACEOF
9456 s/[\\&,]/\\&/g
9457 s,[\\$`],\\&,g
9458 t clear
9459 : clear
9460 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9461 t end
9462 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9463 : end
9464 _ACEOF
9465 # If some macros were called several times there might be several times
9466 # the same #defines, which is useless. Nevertheless, we may not want to
9467 # sort them, since we want the *last* AC-DEFINE to be honored.
9468 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9469 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9470 rm -f confdef2sed.sed
9472 # This sed command replaces #undef with comments. This is necessary, for
9473 # example, in the case of _POSIX_SOURCE, which is predefined and required
9474 # on some systems where configure will not decide to define it.
9475 cat >>conftest.undefs <<\_ACEOF
9476 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9477 _ACEOF
9479 # Break up conftest.defines because some shells have a limit on the size
9480 # of here documents, and old seds have small limits too (100 cmds).
9481 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9482 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9483 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9484 echo ' :' >>$CONFIG_STATUS
9485 rm -f conftest.tail
9486 while grep . conftest.defines >/dev/null
9488 # Write a limited-size here document to $tmp/defines.sed.
9489 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9490 # Speed up: don't consider the non `#define' lines.
9491 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9492 # Work around the forget-to-reset-the-flag bug.
9493 echo 't clr' >>$CONFIG_STATUS
9494 echo ': clr' >>$CONFIG_STATUS
9495 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9496 echo 'CEOF
9497 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9498 rm -f $tmp/in
9499 mv $tmp/out $tmp/in
9500 ' >>$CONFIG_STATUS
9501 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9502 rm -f conftest.defines
9503 mv conftest.tail conftest.defines
9504 done
9505 rm -f conftest.defines
9506 echo ' fi # grep' >>$CONFIG_STATUS
9507 echo >>$CONFIG_STATUS
9509 # Break up conftest.undefs because some shells have a limit on the size
9510 # of here documents, and old seds have small limits too (100 cmds).
9511 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9512 rm -f conftest.tail
9513 while grep . conftest.undefs >/dev/null
9515 # Write a limited-size here document to $tmp/undefs.sed.
9516 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9517 # Speed up: don't consider the non `#undef'
9518 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9519 # Work around the forget-to-reset-the-flag bug.
9520 echo 't clr' >>$CONFIG_STATUS
9521 echo ': clr' >>$CONFIG_STATUS
9522 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9523 echo 'CEOF
9524 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9525 rm -f $tmp/in
9526 mv $tmp/out $tmp/in
9527 ' >>$CONFIG_STATUS
9528 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9529 rm -f conftest.undefs
9530 mv conftest.tail conftest.undefs
9531 done
9532 rm -f conftest.undefs
9534 cat >>$CONFIG_STATUS <<\_ACEOF
9535 # Let's still pretend it is `configure' which instantiates (i.e., don't
9536 # use $as_me), people would be surprised to read:
9537 # /* config.h. Generated by config.status. */
9538 if test x"$ac_file" = x-; then
9539 echo "/* Generated by configure. */" >$tmp/config.h
9540 else
9541 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9543 cat $tmp/in >>$tmp/config.h
9544 rm -f $tmp/in
9545 if test x"$ac_file" != x-; then
9546 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9547 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9548 echo "$as_me: $ac_file is unchanged" >&6;}
9549 else
9550 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9551 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9552 X"$ac_file" : 'X\(//\)[^/]' \| \
9553 X"$ac_file" : 'X\(//\)$' \| \
9554 X"$ac_file" : 'X\(/\)' \| \
9555 . : '\(.\)' 2>/dev/null ||
9556 echo X"$ac_file" |
9557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9559 /^X\(\/\/\)$/{ s//\1/; q; }
9560 /^X\(\/\).*/{ s//\1/; q; }
9561 s/.*/./; q'`
9562 { if $as_mkdir_p; then
9563 mkdir -p "$ac_dir"
9564 else
9565 as_dir="$ac_dir"
9566 as_dirs=
9567 while test ! -d "$as_dir"; do
9568 as_dirs="$as_dir $as_dirs"
9569 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9571 X"$as_dir" : 'X\(//\)[^/]' \| \
9572 X"$as_dir" : 'X\(//\)$' \| \
9573 X"$as_dir" : 'X\(/\)' \| \
9574 . : '\(.\)' 2>/dev/null ||
9575 echo X"$as_dir" |
9576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9578 /^X\(\/\/\)$/{ s//\1/; q; }
9579 /^X\(\/\).*/{ s//\1/; q; }
9580 s/.*/./; q'`
9581 done
9582 test ! -n "$as_dirs" || mkdir $as_dirs
9583 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9584 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9585 { (exit 1); exit 1; }; }; }
9587 rm -f $ac_file
9588 mv $tmp/config.h $ac_file
9590 else
9591 cat $tmp/config.h
9592 rm -f $tmp/config.h
9594 # Compute $ac_file's index in $config_headers.
9595 _am_stamp_count=1
9596 for _am_header in $config_headers :; do
9597 case $_am_header in
9598 $ac_file | $ac_file:* )
9599 break ;;
9601 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9602 esac
9603 done
9604 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9605 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9606 X$ac_file : 'X\(//\)[^/]' \| \
9607 X$ac_file : 'X\(//\)$' \| \
9608 X$ac_file : 'X\(/\)' \| \
9609 . : '\(.\)' 2>/dev/null ||
9610 echo X$ac_file |
9611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9613 /^X\(\/\/\)$/{ s//\1/; q; }
9614 /^X\(\/\).*/{ s//\1/; q; }
9615 s/.*/./; q'`/stamp-h$_am_stamp_count
9616 done
9617 _ACEOF
9618 cat >>$CONFIG_STATUS <<\_ACEOF
9621 # CONFIG_COMMANDS section.
9623 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9624 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9625 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9626 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9627 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9628 X"$ac_dest" : 'X\(//\)[^/]' \| \
9629 X"$ac_dest" : 'X\(//\)$' \| \
9630 X"$ac_dest" : 'X\(/\)' \| \
9631 . : '\(.\)' 2>/dev/null ||
9632 echo X"$ac_dest" |
9633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9635 /^X\(\/\/\)$/{ s//\1/; q; }
9636 /^X\(\/\).*/{ s//\1/; q; }
9637 s/.*/./; q'`
9638 { if $as_mkdir_p; then
9639 mkdir -p "$ac_dir"
9640 else
9641 as_dir="$ac_dir"
9642 as_dirs=
9643 while test ! -d "$as_dir"; do
9644 as_dirs="$as_dir $as_dirs"
9645 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9647 X"$as_dir" : 'X\(//\)[^/]' \| \
9648 X"$as_dir" : 'X\(//\)$' \| \
9649 X"$as_dir" : 'X\(/\)' \| \
9650 . : '\(.\)' 2>/dev/null ||
9651 echo X"$as_dir" |
9652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9654 /^X\(\/\/\)$/{ s//\1/; q; }
9655 /^X\(\/\).*/{ s//\1/; q; }
9656 s/.*/./; q'`
9657 done
9658 test ! -n "$as_dirs" || mkdir $as_dirs
9659 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9660 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9661 { (exit 1); exit 1; }; }; }
9663 ac_builddir=.
9665 if test "$ac_dir" != .; then
9666 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9667 # A "../" for each directory in $ac_dir_suffix.
9668 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9669 else
9670 ac_dir_suffix= ac_top_builddir=
9673 case $srcdir in
9674 .) # No --srcdir option. We are building in place.
9675 ac_srcdir=.
9676 if test -z "$ac_top_builddir"; then
9677 ac_top_srcdir=.
9678 else
9679 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9680 fi ;;
9681 [\\/]* | ?:[\\/]* ) # Absolute path.
9682 ac_srcdir=$srcdir$ac_dir_suffix;
9683 ac_top_srcdir=$srcdir ;;
9684 *) # Relative path.
9685 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9686 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9687 esac
9689 # Do not use `cd foo && pwd` to compute absolute paths, because
9690 # the directories may not exist.
9691 case `pwd` in
9692 .) ac_abs_builddir="$ac_dir";;
9694 case "$ac_dir" in
9695 .) ac_abs_builddir=`pwd`;;
9696 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9697 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9698 esac;;
9699 esac
9700 case $ac_abs_builddir in
9701 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9703 case ${ac_top_builddir}. in
9704 .) ac_abs_top_builddir=$ac_abs_builddir;;
9705 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9706 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9707 esac;;
9708 esac
9709 case $ac_abs_builddir in
9710 .) ac_abs_srcdir=$ac_srcdir;;
9712 case $ac_srcdir in
9713 .) ac_abs_srcdir=$ac_abs_builddir;;
9714 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9715 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9716 esac;;
9717 esac
9718 case $ac_abs_builddir in
9719 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9721 case $ac_top_srcdir in
9722 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9723 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9724 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9725 esac;;
9726 esac
9729 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9730 echo "$as_me: executing $ac_dest commands" >&6;}
9731 case $ac_dest in
9732 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9733 # Strip MF so we end up with the name of the file.
9734 mf=`echo "$mf" | sed -e 's/:.*$//'`
9735 # Check whether this is an Automake generated Makefile or not.
9736 # We used to match only the files named `Makefile.in', but
9737 # some people rename them; so instead we look at the file content.
9738 # Grep'ing the first line is not enough: some people post-process
9739 # each Makefile.in and add a new line on top of each file to say so.
9740 # So let's grep whole file.
9741 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9742 dirpart=`(dirname "$mf") 2>/dev/null ||
9743 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9744 X"$mf" : 'X\(//\)[^/]' \| \
9745 X"$mf" : 'X\(//\)$' \| \
9746 X"$mf" : 'X\(/\)' \| \
9747 . : '\(.\)' 2>/dev/null ||
9748 echo X"$mf" |
9749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9751 /^X\(\/\/\)$/{ s//\1/; q; }
9752 /^X\(\/\).*/{ s//\1/; q; }
9753 s/.*/./; q'`
9754 else
9755 continue
9757 # Extract the definition of DEPDIR, am__include, and am__quote
9758 # from the Makefile without running `make'.
9759 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9760 test -z "$DEPDIR" && continue
9761 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9762 test -z "am__include" && continue
9763 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9764 # When using ansi2knr, U may be empty or an underscore; expand it
9765 U=`sed -n 's/^U = //p' < "$mf"`
9766 # Find all dependency output files, they are included files with
9767 # $(DEPDIR) in their names. We invoke sed twice because it is the
9768 # simplest approach to changing $(DEPDIR) to its actual value in the
9769 # expansion.
9770 for file in `sed -n "
9771 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9772 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9773 # Make sure the directory exists.
9774 test -f "$dirpart/$file" && continue
9775 fdir=`(dirname "$file") 2>/dev/null ||
9776 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9777 X"$file" : 'X\(//\)[^/]' \| \
9778 X"$file" : 'X\(//\)$' \| \
9779 X"$file" : 'X\(/\)' \| \
9780 . : '\(.\)' 2>/dev/null ||
9781 echo X"$file" |
9782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9784 /^X\(\/\/\)$/{ s//\1/; q; }
9785 /^X\(\/\).*/{ s//\1/; q; }
9786 s/.*/./; q'`
9787 { if $as_mkdir_p; then
9788 mkdir -p $dirpart/$fdir
9789 else
9790 as_dir=$dirpart/$fdir
9791 as_dirs=
9792 while test ! -d "$as_dir"; do
9793 as_dirs="$as_dir $as_dirs"
9794 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9796 X"$as_dir" : 'X\(//\)[^/]' \| \
9797 X"$as_dir" : 'X\(//\)$' \| \
9798 X"$as_dir" : 'X\(/\)' \| \
9799 . : '\(.\)' 2>/dev/null ||
9800 echo X"$as_dir" |
9801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9803 /^X\(\/\/\)$/{ s//\1/; q; }
9804 /^X\(\/\).*/{ s//\1/; q; }
9805 s/.*/./; q'`
9806 done
9807 test ! -n "$as_dirs" || mkdir $as_dirs
9808 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9809 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9810 { (exit 1); exit 1; }; }; }
9812 # echo "creating $dirpart/$file"
9813 echo '# dummy' > "$dirpart/$file"
9814 done
9815 done
9817 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
9818 esac
9819 done
9820 _ACEOF
9822 cat >>$CONFIG_STATUS <<\_ACEOF
9824 { (exit 0); exit 0; }
9825 _ACEOF
9826 chmod +x $CONFIG_STATUS
9827 ac_clean_files=$ac_clean_files_save
9830 # configure is writing to config.log, and then calls config.status.
9831 # config.status does its own redirection, appending to config.log.
9832 # Unfortunately, on DOS this fails, as config.log is still kept open
9833 # by configure, so config.status won't be able to write to it; its
9834 # output is simply discarded. So we exec the FD to /dev/null,
9835 # effectively closing config.log, so it can be properly (re)opened and
9836 # appended to by config.status. When coming back to configure, we
9837 # need to make the FD available again.
9838 if test "$no_create" != yes; then
9839 ac_cs_success=:
9840 ac_config_status_args=
9841 test "$silent" = yes &&
9842 ac_config_status_args="$ac_config_status_args --quiet"
9843 exec 5>/dev/null
9844 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9845 exec 5>>config.log
9846 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9847 # would make configure fail if this is the last instruction.
9848 $ac_cs_success || { (exit 1); exit 1; }