bfd/
[binutils.git] / gprof / configure
blob6fbd68f288bc2857cec354cab22d8b992dd32b16
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 USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CPP EGREP WARN_CFLAGS NO_WERROR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --disable-nls do not use Native Language Support
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-werror treat compile warnings as errors
863 --enable-build-warnings enable build-time compiler warnings
865 Optional Packages:
866 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
867 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
868 --with-gnu-ld assume the C compiler uses GNU ld default=no
869 --with-pic try to use only PIC/non-PIC objects default=use both
871 Some influential environment variables:
872 CC C compiler command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
878 CPP C preprocessor
880 Use these variables to override the choices made by `configure' or to help
881 it to find libraries and programs with nonstandard names/locations.
883 _ACEOF
886 if test "$ac_init_help" = "recursive"; then
887 # If there are subdirs, report their specific --help.
888 ac_popdir=`pwd`
889 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
890 test -d $ac_dir || continue
891 ac_builddir=.
893 if test "$ac_dir" != .; then
894 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
895 # A "../" for each directory in $ac_dir_suffix.
896 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
897 else
898 ac_dir_suffix= ac_top_builddir=
901 case $srcdir in
902 .) # No --srcdir option. We are building in place.
903 ac_srcdir=.
904 if test -z "$ac_top_builddir"; then
905 ac_top_srcdir=.
906 else
907 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
908 fi ;;
909 [\\/]* | ?:[\\/]* ) # Absolute path.
910 ac_srcdir=$srcdir$ac_dir_suffix;
911 ac_top_srcdir=$srcdir ;;
912 *) # Relative path.
913 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
914 ac_top_srcdir=$ac_top_builddir$srcdir ;;
915 esac
917 # Do not use `cd foo && pwd` to compute absolute paths, because
918 # the directories may not exist.
919 case `pwd` in
920 .) ac_abs_builddir="$ac_dir";;
922 case "$ac_dir" in
923 .) ac_abs_builddir=`pwd`;;
924 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
925 *) ac_abs_builddir=`pwd`/"$ac_dir";;
926 esac;;
927 esac
928 case $ac_abs_builddir in
929 .) ac_abs_top_builddir=${ac_top_builddir}.;;
931 case ${ac_top_builddir}. in
932 .) ac_abs_top_builddir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
934 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_srcdir=$ac_srcdir;;
940 case $ac_srcdir in
941 .) ac_abs_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
943 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
944 esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_top_srcdir=$ac_top_srcdir;;
949 case $ac_top_srcdir in
950 .) ac_abs_top_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
952 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
953 esac;;
954 esac
956 cd $ac_dir
957 # Check for guested configure; otherwise get Cygnus style configure.
958 if test -f $ac_srcdir/configure.gnu; then
959 echo
960 $SHELL $ac_srcdir/configure.gnu --help=recursive
961 elif test -f $ac_srcdir/configure; then
962 echo
963 $SHELL $ac_srcdir/configure --help=recursive
964 elif test -f $ac_srcdir/configure.ac ||
965 test -f $ac_srcdir/configure.in; then
966 echo
967 $ac_configure --help
968 else
969 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
971 cd $ac_popdir
972 done
975 test -n "$ac_init_help" && exit 0
976 if $ac_init_version; then
977 cat <<\_ACEOF
979 Copyright (C) 2003 Free Software Foundation, Inc.
980 This configure script is free software; the Free Software Foundation
981 gives unlimited permission to copy, distribute and modify it.
982 _ACEOF
983 exit 0
985 exec 5>config.log
986 cat >&5 <<_ACEOF
987 This file contains any messages produced by compilers while
988 running configure, to aid debugging if configure makes a mistake.
990 It was created by $as_me, which was
991 generated by GNU Autoconf 2.59. Invocation command line was
993 $ $0 $@
995 _ACEOF
997 cat <<_ASUNAME
998 ## --------- ##
999 ## Platform. ##
1000 ## --------- ##
1002 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1003 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1004 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1005 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1006 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1008 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1009 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1011 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1012 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1013 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1014 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1015 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1016 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1017 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1019 _ASUNAME
1021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1022 for as_dir in $PATH
1024 IFS=$as_save_IFS
1025 test -z "$as_dir" && as_dir=.
1026 echo "PATH: $as_dir"
1027 done
1029 } >&5
1031 cat >&5 <<_ACEOF
1034 ## ----------- ##
1035 ## Core tests. ##
1036 ## ----------- ##
1038 _ACEOF
1041 # Keep a trace of the command line.
1042 # Strip out --no-create and --no-recursion so they do not pile up.
1043 # Strip out --silent because we don't want to record it for future runs.
1044 # Also quote any args containing shell meta-characters.
1045 # Make two passes to allow for proper duplicate-argument suppression.
1046 ac_configure_args=
1047 ac_configure_args0=
1048 ac_configure_args1=
1049 ac_sep=
1050 ac_must_keep_next=false
1051 for ac_pass in 1 2
1053 for ac_arg
1055 case $ac_arg in
1056 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 continue ;;
1060 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1061 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062 esac
1063 case $ac_pass in
1064 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1066 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1067 if test $ac_must_keep_next = true; then
1068 ac_must_keep_next=false # Got value, back to normal.
1069 else
1070 case $ac_arg in
1071 *=* | --config-cache | -C | -disable-* | --disable-* \
1072 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1073 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1074 | -with-* | --with-* | -without-* | --without-* | --x)
1075 case "$ac_configure_args0 " in
1076 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077 esac
1079 -* ) ac_must_keep_next=true ;;
1080 esac
1082 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1083 # Get rid of the leading space.
1084 ac_sep=" "
1086 esac
1087 done
1088 done
1089 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1090 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1092 # When interrupted or exit'd, cleanup temporary files, and complete
1093 # config.log. We remove comments because anyway the quotes in there
1094 # would cause problems or look ugly.
1095 # WARNING: Be sure not to use single quotes in there, as some shells,
1096 # such as our DU 5.0 friend, will then `close' the trap.
1097 trap 'exit_status=$?
1098 # Save into config.log some information that might help in debugging.
1100 echo
1102 cat <<\_ASBOX
1103 ## ---------------- ##
1104 ## Cache variables. ##
1105 ## ---------------- ##
1106 _ASBOX
1107 echo
1108 # The following way of writing the cache mishandles newlines in values,
1110 (set) 2>&1 |
1111 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112 *ac_space=\ *)
1113 sed -n \
1114 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118 sed -n \
1119 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1121 esac;
1123 echo
1125 cat <<\_ASBOX
1126 ## ----------------- ##
1127 ## Output variables. ##
1128 ## ----------------- ##
1129 _ASBOX
1130 echo
1131 for ac_var in $ac_subst_vars
1133 eval ac_val=$`echo $ac_var`
1134 echo "$ac_var='"'"'$ac_val'"'"'"
1135 done | sort
1136 echo
1138 if test -n "$ac_subst_files"; then
1139 cat <<\_ASBOX
1140 ## ------------- ##
1141 ## Output files. ##
1142 ## ------------- ##
1143 _ASBOX
1144 echo
1145 for ac_var in $ac_subst_files
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1149 done | sort
1150 echo
1153 if test -s confdefs.h; then
1154 cat <<\_ASBOX
1155 ## ----------- ##
1156 ## confdefs.h. ##
1157 ## ----------- ##
1158 _ASBOX
1159 echo
1160 sed "/^$/d" confdefs.h | sort
1161 echo
1163 test "$ac_signal" != 0 &&
1164 echo "$as_me: caught signal $ac_signal"
1165 echo "$as_me: exit $exit_status"
1166 } >&5
1167 rm -f core *.core &&
1168 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169 exit $exit_status
1171 for ac_signal in 1 2 13 15; do
1172 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1173 done
1174 ac_signal=0
1176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1177 rm -rf conftest* confdefs.h
1178 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179 echo >confdefs.h
1181 # Predefined preprocessor variables.
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_NAME "$PACKAGE_NAME"
1185 _ACEOF
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1190 _ACEOF
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1195 _ACEOF
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_STRING "$PACKAGE_STRING"
1200 _ACEOF
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1205 _ACEOF
1208 # Let the site file select an alternate cache file if it wants to.
1209 # Prefer explicitly selected file to automatically selected ones.
1210 if test -z "$CONFIG_SITE"; then
1211 if test "x$prefix" != xNONE; then
1212 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1213 else
1214 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217 for ac_site_file in $CONFIG_SITE; do
1218 if test -r "$ac_site_file"; then
1219 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1220 echo "$as_me: loading site script $ac_site_file" >&6;}
1221 sed 's/^/| /' "$ac_site_file" >&5
1222 . "$ac_site_file"
1224 done
1226 if test -r "$cache_file"; then
1227 # Some versions of bash will fail to source /dev/null (special
1228 # files actually), so we avoid doing that.
1229 if test -f "$cache_file"; then
1230 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1231 echo "$as_me: loading cache $cache_file" >&6;}
1232 case $cache_file in
1233 [\\/]* | ?:[\\/]* ) . $cache_file;;
1234 *) . ./$cache_file;;
1235 esac
1237 else
1238 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1239 echo "$as_me: creating cache $cache_file" >&6;}
1240 >$cache_file
1243 # Check that the precious variables saved in the cache have kept the same
1244 # value.
1245 ac_cache_corrupted=false
1246 for ac_var in `(set) 2>&1 |
1247 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1248 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1249 eval ac_new_set=\$ac_env_${ac_var}_set
1250 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1251 eval ac_new_val="\$ac_env_${ac_var}_value"
1252 case $ac_old_set,$ac_new_set in
1253 set,)
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1257 ,set)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,);;
1263 if test "x$ac_old_val" != "x$ac_new_val"; then
1264 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1265 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1266 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1267 echo "$as_me: former value: $ac_old_val" >&2;}
1268 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1269 echo "$as_me: current value: $ac_new_val" >&2;}
1270 ac_cache_corrupted=:
1271 fi;;
1272 esac
1273 # Pass precious variables to config.status.
1274 if test "$ac_new_set" = set; then
1275 case $ac_new_val in
1276 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1278 *) ac_arg=$ac_var=$ac_new_val ;;
1279 esac
1280 case " $ac_configure_args " in
1281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1282 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1283 esac
1285 done
1286 if $ac_cache_corrupted; then
1287 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1288 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1289 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1290 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1291 { (exit 1); exit 1; }; }
1294 ac_ext=c
1295 ac_cpp='$CPP $CPPFLAGS'
1296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1320 ac_aux_dir=
1321 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1322 if test -f $ac_dir/install-sh; then
1323 ac_aux_dir=$ac_dir
1324 ac_install_sh="$ac_aux_dir/install-sh -c"
1325 break
1326 elif test -f $ac_dir/install.sh; then
1327 ac_aux_dir=$ac_dir
1328 ac_install_sh="$ac_aux_dir/install.sh -c"
1329 break
1330 elif test -f $ac_dir/shtool; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/shtool install -c"
1333 break
1335 done
1336 if test -z "$ac_aux_dir"; then
1337 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1338 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1339 { (exit 1); exit 1; }; }
1341 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1342 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1343 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1345 # Make sure we can run config.sub.
1346 $ac_config_sub sun4 >/dev/null 2>&1 ||
1347 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1348 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1349 { (exit 1); exit 1; }; }
1351 echo "$as_me:$LINENO: checking build system type" >&5
1352 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1353 if test "${ac_cv_build+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1355 else
1356 ac_cv_build_alias=$build_alias
1357 test -z "$ac_cv_build_alias" &&
1358 ac_cv_build_alias=`$ac_config_guess`
1359 test -z "$ac_cv_build_alias" &&
1360 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1361 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1362 { (exit 1); exit 1; }; }
1363 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1364 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1365 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1366 { (exit 1); exit 1; }; }
1369 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1370 echo "${ECHO_T}$ac_cv_build" >&6
1371 build=$ac_cv_build
1372 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1373 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1374 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377 echo "$as_me:$LINENO: checking host system type" >&5
1378 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1379 if test "${ac_cv_host+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 else
1382 ac_cv_host_alias=$host_alias
1383 test -z "$ac_cv_host_alias" &&
1384 ac_cv_host_alias=$ac_cv_build_alias
1385 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1386 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1387 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1388 { (exit 1); exit 1; }; }
1391 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1392 echo "${ECHO_T}$ac_cv_host" >&6
1393 host=$ac_cv_host
1394 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1395 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1396 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399 echo "$as_me:$LINENO: checking target system type" >&5
1400 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1401 if test "${ac_cv_target+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404 ac_cv_target_alias=$target_alias
1405 test "x$ac_cv_target_alias" = "x" &&
1406 ac_cv_target_alias=$ac_cv_host_alias
1407 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1408 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1409 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1410 { (exit 1); exit 1; }; }
1413 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1414 echo "${ECHO_T}$ac_cv_target" >&6
1415 target=$ac_cv_target
1416 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1417 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1418 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421 # The aliases save the names the user supplied, while $host etc.
1422 # will get canonicalized.
1423 test -n "$target_alias" &&
1424 test "$program_prefix$program_suffix$program_transform_name" = \
1425 NONENONEs,x,x, &&
1426 program_prefix=${target_alias}-
1427 ac_ext=c
1428 ac_cpp='$CPP $CPPFLAGS'
1429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1432 if test -n "$ac_tool_prefix"; then
1433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1434 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1435 echo "$as_me:$LINENO: checking for $ac_word" >&5
1436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1437 if test "${ac_cv_prog_CC+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440 if test -n "$CC"; then
1441 ac_cv_prog_CC="$CC" # Let the user override the test.
1442 else
1443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444 for as_dir in $PATH
1446 IFS=$as_save_IFS
1447 test -z "$as_dir" && as_dir=.
1448 for ac_exec_ext in '' $ac_executable_extensions; do
1449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1450 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1452 break 2
1454 done
1455 done
1459 CC=$ac_cv_prog_CC
1460 if test -n "$CC"; then
1461 echo "$as_me:$LINENO: result: $CC" >&5
1462 echo "${ECHO_T}$CC" >&6
1463 else
1464 echo "$as_me:$LINENO: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1469 if test -z "$ac_cv_prog_CC"; then
1470 ac_ct_CC=$CC
1471 # Extract the first word of "gcc", so it can be a program name with args.
1472 set dummy gcc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 else
1478 if test -n "$ac_ct_CC"; then
1479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1480 else
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 ac_cv_prog_ac_ct_CC="gcc"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 break 2
1492 done
1493 done
1497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1498 if test -n "$ac_ct_CC"; then
1499 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1500 echo "${ECHO_T}$ac_ct_CC" >&6
1501 else
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1506 CC=$ac_ct_CC
1507 else
1508 CC="$ac_cv_prog_CC"
1511 if test -z "$CC"; then
1512 if test -n "$ac_tool_prefix"; then
1513 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1514 set dummy ${ac_tool_prefix}cc; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_CC+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1519 else
1520 if test -n "$CC"; then
1521 ac_cv_prog_CC="$CC" # Let the user override the test.
1522 else
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 for as_dir in $PATH
1526 IFS=$as_save_IFS
1527 test -z "$as_dir" && as_dir=.
1528 for ac_exec_ext in '' $ac_executable_extensions; do
1529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530 ac_cv_prog_CC="${ac_tool_prefix}cc"
1531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532 break 2
1534 done
1535 done
1539 CC=$ac_cv_prog_CC
1540 if test -n "$CC"; then
1541 echo "$as_me:$LINENO: result: $CC" >&5
1542 echo "${ECHO_T}$CC" >&6
1543 else
1544 echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1549 if test -z "$ac_cv_prog_CC"; then
1550 ac_ct_CC=$CC
1551 # Extract the first word of "cc", so it can be a program name with args.
1552 set dummy cc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 else
1558 if test -n "$ac_ct_CC"; then
1559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1560 else
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1564 IFS=$as_save_IFS
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 ac_cv_prog_ac_ct_CC="cc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 break 2
1572 done
1573 done
1577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1578 if test -n "$ac_ct_CC"; then
1579 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1580 echo "${ECHO_T}$ac_ct_CC" >&6
1581 else
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1586 CC=$ac_ct_CC
1587 else
1588 CC="$ac_cv_prog_CC"
1592 if test -z "$CC"; then
1593 # Extract the first word of "cc", so it can be a program name with args.
1594 set dummy cc; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1602 else
1603 ac_prog_rejected=no
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 for as_dir in $PATH
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
1609 for ac_exec_ext in '' $ac_executable_extensions; do
1610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1611 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1612 ac_prog_rejected=yes
1613 continue
1615 ac_cv_prog_CC="cc"
1616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617 break 2
1619 done
1620 done
1622 if test $ac_prog_rejected = yes; then
1623 # We found a bogon in the path, so make sure we never use it.
1624 set dummy $ac_cv_prog_CC
1625 shift
1626 if test $# != 0; then
1627 # We chose a different compiler from the bogus one.
1628 # However, it has the same basename, so the bogon will be chosen
1629 # first if we set CC to just the basename; use the full file name.
1630 shift
1631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1636 CC=$ac_cv_prog_CC
1637 if test -n "$CC"; then
1638 echo "$as_me:$LINENO: result: $CC" >&5
1639 echo "${ECHO_T}$CC" >&6
1640 else
1641 echo "$as_me:$LINENO: result: no" >&5
1642 echo "${ECHO_T}no" >&6
1646 if test -z "$CC"; then
1647 if test -n "$ac_tool_prefix"; then
1648 for ac_prog in cl
1650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_CC+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 else
1657 if test -n "$CC"; then
1658 ac_cv_prog_CC="$CC" # Let the user override the test.
1659 else
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 for as_dir in $PATH
1663 IFS=$as_save_IFS
1664 test -z "$as_dir" && as_dir=.
1665 for ac_exec_ext in '' $ac_executable_extensions; do
1666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 break 2
1671 done
1672 done
1676 CC=$ac_cv_prog_CC
1677 if test -n "$CC"; then
1678 echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1680 else
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1685 test -n "$CC" && break
1686 done
1688 if test -z "$CC"; then
1689 ac_ct_CC=$CC
1690 for ac_prog in cl
1692 # Extract the first word of "$ac_prog", so it can be a program name with args.
1693 set dummy $ac_prog; ac_word=$2
1694 echo "$as_me:$LINENO: checking for $ac_word" >&5
1695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1696 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1697 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 else
1699 if test -n "$ac_ct_CC"; then
1700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1701 else
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 for as_dir in $PATH
1705 IFS=$as_save_IFS
1706 test -z "$as_dir" && as_dir=.
1707 for ac_exec_ext in '' $ac_executable_extensions; do
1708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1709 ac_cv_prog_ac_ct_CC="$ac_prog"
1710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711 break 2
1713 done
1714 done
1718 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1719 if test -n "$ac_ct_CC"; then
1720 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1721 echo "${ECHO_T}$ac_ct_CC" >&6
1722 else
1723 echo "$as_me:$LINENO: result: no" >&5
1724 echo "${ECHO_T}no" >&6
1727 test -n "$ac_ct_CC" && break
1728 done
1730 CC=$ac_ct_CC
1736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1737 See \`config.log' for more details." >&5
1738 echo "$as_me: error: no acceptable C compiler found in \$PATH
1739 See \`config.log' for more details." >&2;}
1740 { (exit 1); exit 1; }; }
1742 # Provide some information about the compiler.
1743 echo "$as_me:$LINENO:" \
1744 "checking for C compiler version" >&5
1745 ac_compiler=`set X $ac_compile; echo $2`
1746 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1747 (eval $ac_compiler --version </dev/null >&5) 2>&5
1748 ac_status=$?
1749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1750 (exit $ac_status); }
1751 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1752 (eval $ac_compiler -v </dev/null >&5) 2>&5
1753 ac_status=$?
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }
1756 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1757 (eval $ac_compiler -V </dev/null >&5) 2>&5
1758 ac_status=$?
1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 (exit $ac_status); }
1762 cat >conftest.$ac_ext <<_ACEOF
1763 /* confdefs.h. */
1764 _ACEOF
1765 cat confdefs.h >>conftest.$ac_ext
1766 cat >>conftest.$ac_ext <<_ACEOF
1767 /* end confdefs.h. */
1770 main ()
1774 return 0;
1776 _ACEOF
1777 ac_clean_files_save=$ac_clean_files
1778 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1779 # Try to create an executable without -o first, disregard a.out.
1780 # It will help us diagnose broken compilers, and finding out an intuition
1781 # of exeext.
1782 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1783 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1784 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1785 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1786 (eval $ac_link_default) 2>&5
1787 ac_status=$?
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }; then
1790 # Find the output, starting from the most likely. This scheme is
1791 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1792 # resort.
1794 # Be careful to initialize this variable, since it used to be cached.
1795 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1796 ac_cv_exeext=
1797 # b.out is created by i960 compilers.
1798 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1800 test -f "$ac_file" || continue
1801 case $ac_file in
1802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1804 conftest.$ac_ext )
1805 # This is the source file.
1807 [ab].out )
1808 # We found the default executable, but exeext='' is most
1809 # certainly right.
1810 break;;
1811 *.* )
1812 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1813 # FIXME: I believe we export ac_cv_exeext for Libtool,
1814 # but it would be cool to find out if it's true. Does anybody
1815 # maintain Libtool? --akim.
1816 export ac_cv_exeext
1817 break;;
1819 break;;
1820 esac
1821 done
1822 else
1823 echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1827 See \`config.log' for more details." >&5
1828 echo "$as_me: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&2;}
1830 { (exit 77); exit 77; }; }
1833 ac_exeext=$ac_cv_exeext
1834 echo "$as_me:$LINENO: result: $ac_file" >&5
1835 echo "${ECHO_T}$ac_file" >&6
1837 # Check the compiler produces executables we can run. If not, either
1838 # the compiler is broken, or we cross compile.
1839 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1840 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1841 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1842 # If not cross compiling, check that we can run a simple program.
1843 if test "$cross_compiling" != yes; then
1844 if { ac_try='./$ac_file'
1845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1846 (eval $ac_try) 2>&5
1847 ac_status=$?
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }; }; then
1850 cross_compiling=no
1851 else
1852 if test "$cross_compiling" = maybe; then
1853 cross_compiling=yes
1854 else
1855 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1856 If you meant to cross compile, use \`--host'.
1857 See \`config.log' for more details." >&5
1858 echo "$as_me: error: cannot run C compiled programs.
1859 If you meant to cross compile, use \`--host'.
1860 See \`config.log' for more details." >&2;}
1861 { (exit 1); exit 1; }; }
1865 echo "$as_me:$LINENO: result: yes" >&5
1866 echo "${ECHO_T}yes" >&6
1868 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1869 ac_clean_files=$ac_clean_files_save
1870 # Check the compiler produces executables we can run. If not, either
1871 # the compiler is broken, or we cross compile.
1872 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1873 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1874 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1875 echo "${ECHO_T}$cross_compiling" >&6
1877 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1878 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1880 (eval $ac_link) 2>&5
1881 ac_status=$?
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; then
1884 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1885 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1886 # work properly (i.e., refer to `conftest.exe'), while it won't with
1887 # `rm'.
1888 for ac_file in conftest.exe conftest conftest.*; do
1889 test -f "$ac_file" || continue
1890 case $ac_file in
1891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1892 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1893 export ac_cv_exeext
1894 break;;
1895 * ) break;;
1896 esac
1897 done
1898 else
1899 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1900 See \`config.log' for more details." >&5
1901 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1902 See \`config.log' for more details." >&2;}
1903 { (exit 1); exit 1; }; }
1906 rm -f conftest$ac_cv_exeext
1907 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1908 echo "${ECHO_T}$ac_cv_exeext" >&6
1910 rm -f conftest.$ac_ext
1911 EXEEXT=$ac_cv_exeext
1912 ac_exeext=$EXEEXT
1913 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1914 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1915 if test "${ac_cv_objext+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918 cat >conftest.$ac_ext <<_ACEOF
1919 /* confdefs.h. */
1920 _ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1926 main ()
1930 return 0;
1932 _ACEOF
1933 rm -f conftest.o conftest.obj
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; then
1939 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1940 case $ac_file in
1941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1942 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1943 break;;
1944 esac
1945 done
1946 else
1947 echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1950 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&2;}
1954 { (exit 1); exit 1; }; }
1957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1959 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1960 echo "${ECHO_T}$ac_cv_objext" >&6
1961 OBJEXT=$ac_cv_objext
1962 ac_objext=$OBJEXT
1963 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1964 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1965 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968 cat >conftest.$ac_ext <<_ACEOF
1969 /* confdefs.h. */
1970 _ACEOF
1971 cat confdefs.h >>conftest.$ac_ext
1972 cat >>conftest.$ac_ext <<_ACEOF
1973 /* end confdefs.h. */
1976 main ()
1978 #ifndef __GNUC__
1979 choke me
1980 #endif
1983 return 0;
1985 _ACEOF
1986 rm -f conftest.$ac_objext
1987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1988 (eval $ac_compile) 2>conftest.er1
1989 ac_status=$?
1990 grep -v '^ *+' conftest.er1 >conftest.err
1991 rm -f conftest.er1
1992 cat conftest.err >&5
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); } &&
1995 { ac_try='test -z "$ac_c_werror_flag"
1996 || test ! -s conftest.err'
1997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998 (eval $ac_try) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; } &&
2002 { ac_try='test -s conftest.$ac_objext'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
2008 ac_compiler_gnu=yes
2009 else
2010 echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2013 ac_compiler_gnu=no
2015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2016 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2019 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2020 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2021 GCC=`test $ac_compiler_gnu = yes && echo yes`
2022 ac_test_CFLAGS=${CFLAGS+set}
2023 ac_save_CFLAGS=$CFLAGS
2024 CFLAGS="-g"
2025 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2026 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2027 if test "${ac_cv_prog_cc_g+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030 cat >conftest.$ac_ext <<_ACEOF
2031 /* confdefs.h. */
2032 _ACEOF
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h. */
2038 main ()
2042 return 0;
2044 _ACEOF
2045 rm -f conftest.$ac_objext
2046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2047 (eval $ac_compile) 2>conftest.er1
2048 ac_status=$?
2049 grep -v '^ *+' conftest.er1 >conftest.err
2050 rm -f conftest.er1
2051 cat conftest.err >&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); } &&
2054 { ac_try='test -z "$ac_c_werror_flag"
2055 || test ! -s conftest.err'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 (eval $ac_try) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; } &&
2061 { ac_try='test -s conftest.$ac_objext'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; }; then
2067 ac_cv_prog_cc_g=yes
2068 else
2069 echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2072 ac_cv_prog_cc_g=no
2074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2077 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2078 if test "$ac_test_CFLAGS" = set; then
2079 CFLAGS=$ac_save_CFLAGS
2080 elif test $ac_cv_prog_cc_g = yes; then
2081 if test "$GCC" = yes; then
2082 CFLAGS="-g -O2"
2083 else
2084 CFLAGS="-g"
2086 else
2087 if test "$GCC" = yes; then
2088 CFLAGS="-O2"
2089 else
2090 CFLAGS=
2093 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2094 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2095 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098 ac_cv_prog_cc_stdc=no
2099 ac_save_CC=$CC
2100 cat >conftest.$ac_ext <<_ACEOF
2101 /* confdefs.h. */
2102 _ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2106 #include <stdarg.h>
2107 #include <stdio.h>
2108 #include <sys/types.h>
2109 #include <sys/stat.h>
2110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2111 struct buf { int x; };
2112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2113 static char *e (p, i)
2114 char **p;
2115 int i;
2117 return p[i];
2119 static char *f (char * (*g) (char **, int), char **p, ...)
2121 char *s;
2122 va_list v;
2123 va_start (v,p);
2124 s = g (p, va_arg (v,int));
2125 va_end (v);
2126 return s;
2129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2130 function prototypes and stuff, but not '\xHH' hex character constants.
2131 These don't provoke an error unfortunately, instead are silently treated
2132 as 'x'. The following induces an error, until -std1 is added to get
2133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2134 array size at least. It's necessary to write '\x00'==0 to get something
2135 that's true only with -std1. */
2136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2138 int test (int i, double x);
2139 struct s1 {int (*f) (int a);};
2140 struct s2 {int (*f) (double a);};
2141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2142 int argc;
2143 char **argv;
2145 main ()
2147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2149 return 0;
2151 _ACEOF
2152 # Don't try gcc -ansi; that turns off useful extensions and
2153 # breaks some systems' header files.
2154 # AIX -qlanglvl=ansi
2155 # Ultrix and OSF/1 -std1
2156 # HP-UX 10.20 and later -Ae
2157 # HP-UX older versions -Aa -D_HPUX_SOURCE
2158 # SVR4 -Xc -D__EXTENSIONS__
2159 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2161 CC="$ac_save_CC $ac_arg"
2162 rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>conftest.er1
2165 ac_status=$?
2166 grep -v '^ *+' conftest.er1 >conftest.err
2167 rm -f conftest.er1
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -z "$ac_c_werror_flag"
2172 || test ! -s conftest.err'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 (eval $ac_try) 2>&5
2175 ac_status=$?
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; } &&
2178 { ac_try='test -s conftest.$ac_objext'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; }; then
2184 ac_cv_prog_cc_stdc=$ac_arg
2185 break
2186 else
2187 echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2191 rm -f conftest.err conftest.$ac_objext
2192 done
2193 rm -f conftest.$ac_ext conftest.$ac_objext
2194 CC=$ac_save_CC
2198 case "x$ac_cv_prog_cc_stdc" in
2199 x|xno)
2200 echo "$as_me:$LINENO: result: none needed" >&5
2201 echo "${ECHO_T}none needed" >&6 ;;
2203 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2204 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2205 CC="$CC $ac_cv_prog_cc_stdc" ;;
2206 esac
2208 # Some people use a C++ compiler to compile C. Since we use `exit',
2209 # in C++ we need to declare it. In case someone uses the same compiler
2210 # for both compiling C and C++ we need to have the C++ compiler decide
2211 # the declaration of exit, since it's the most demanding environment.
2212 cat >conftest.$ac_ext <<_ACEOF
2213 #ifndef __cplusplus
2214 choke me
2215 #endif
2216 _ACEOF
2217 rm -f conftest.$ac_objext
2218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2219 (eval $ac_compile) 2>conftest.er1
2220 ac_status=$?
2221 grep -v '^ *+' conftest.er1 >conftest.err
2222 rm -f conftest.er1
2223 cat conftest.err >&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); } &&
2226 { ac_try='test -z "$ac_c_werror_flag"
2227 || test ! -s conftest.err'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 (eval $ac_try) 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; } &&
2233 { ac_try='test -s conftest.$ac_objext'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2239 for ac_declaration in \
2240 '' \
2241 'extern "C" void std::exit (int) throw (); using std::exit;' \
2242 'extern "C" void std::exit (int); using std::exit;' \
2243 'extern "C" void exit (int) throw ();' \
2244 'extern "C" void exit (int);' \
2245 'void exit (int);'
2247 cat >conftest.$ac_ext <<_ACEOF
2248 /* confdefs.h. */
2249 _ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h. */
2253 $ac_declaration
2254 #include <stdlib.h>
2256 main ()
2258 exit (42);
2260 return 0;
2262 _ACEOF
2263 rm -f conftest.$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 (eval $ac_compile) 2>conftest.er1
2266 ac_status=$?
2267 grep -v '^ *+' conftest.er1 >conftest.err
2268 rm -f conftest.er1
2269 cat conftest.err >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); } &&
2272 { ac_try='test -z "$ac_c_werror_flag"
2273 || test ! -s conftest.err'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; } &&
2279 { ac_try='test -s conftest.$ac_objext'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; }; then
2286 else
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2290 continue
2292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293 cat >conftest.$ac_ext <<_ACEOF
2294 /* confdefs.h. */
2295 _ACEOF
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h. */
2299 $ac_declaration
2301 main ()
2303 exit (42);
2305 return 0;
2307 _ACEOF
2308 rm -f conftest.$ac_objext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>conftest.er1
2311 ac_status=$?
2312 grep -v '^ *+' conftest.er1 >conftest.err
2313 rm -f conftest.er1
2314 cat conftest.err >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -z "$ac_c_werror_flag"
2318 || test ! -s conftest.err'
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320 (eval $ac_try) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; } &&
2324 { ac_try='test -s conftest.$ac_objext'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 (eval $ac_try) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; }; then
2330 break
2331 else
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2337 done
2338 rm -f conftest*
2339 if test -n "$ac_declaration"; then
2340 echo '#ifdef __cplusplus' >>confdefs.h
2341 echo $ac_declaration >>confdefs.h
2342 echo '#endif' >>confdefs.h
2345 else
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351 ac_ext=c
2352 ac_cpp='$CPP $CPPFLAGS'
2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2359 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2360 if test "${ac_cv_search_strerror+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363 ac_func_search_save_LIBS=$LIBS
2364 ac_cv_search_strerror=no
2365 cat >conftest.$ac_ext <<_ACEOF
2366 /* confdefs.h. */
2367 _ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2372 /* Override any gcc2 internal prototype to avoid an error. */
2373 #ifdef __cplusplus
2374 extern "C"
2375 #endif
2376 /* We use char because int might match the return type of a gcc2
2377 builtin and then its argument prototype would still apply. */
2378 char strerror ();
2380 main ()
2382 strerror ();
2384 return 0;
2386 _ACEOF
2387 rm -f conftest.$ac_objext conftest$ac_exeext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2389 (eval $ac_link) 2>conftest.er1
2390 ac_status=$?
2391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag"
2397 || test ! -s conftest.err'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; } &&
2403 { ac_try='test -s conftest$ac_exeext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2409 ac_cv_search_strerror="none required"
2410 else
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2415 rm -f conftest.err conftest.$ac_objext \
2416 conftest$ac_exeext conftest.$ac_ext
2417 if test "$ac_cv_search_strerror" = no; then
2418 for ac_lib in cposix; do
2419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2420 cat >conftest.$ac_ext <<_ACEOF
2421 /* confdefs.h. */
2422 _ACEOF
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h. */
2427 /* Override any gcc2 internal prototype to avoid an error. */
2428 #ifdef __cplusplus
2429 extern "C"
2430 #endif
2431 /* We use char because int might match the return type of a gcc2
2432 builtin and then its argument prototype would still apply. */
2433 char strerror ();
2435 main ()
2437 strerror ();
2439 return 0;
2441 _ACEOF
2442 rm -f conftest.$ac_objext conftest$ac_exeext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2444 (eval $ac_link) 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_c_werror_flag"
2452 || test ! -s conftest.err'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; } &&
2458 { ac_try='test -s conftest$ac_exeext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2464 ac_cv_search_strerror="-l$ac_lib"
2465 break
2466 else
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2471 rm -f conftest.err conftest.$ac_objext \
2472 conftest$ac_exeext conftest.$ac_ext
2473 done
2475 LIBS=$ac_func_search_save_LIBS
2477 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2478 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2479 if test "$ac_cv_search_strerror" != no; then
2480 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2485 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2486 am__api_version="1.9"
2487 # Find a good install program. We prefer a C program (faster),
2488 # so one script is as good as another. But avoid the broken or
2489 # incompatible versions:
2490 # SysV /etc/install, /usr/sbin/install
2491 # SunOS /usr/etc/install
2492 # IRIX /sbin/install
2493 # AIX /bin/install
2494 # AmigaOS /C/install, which installs bootblocks on floppy discs
2495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2498 # OS/2's system install, which has a completely different semantic
2499 # ./install, which can be erroneously created by make from ./install.sh.
2500 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2501 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2502 if test -z "$INSTALL"; then
2503 if test "${ac_cv_path_install+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 # Account for people who put trailing slashes in PATH elements.
2512 case $as_dir/ in
2513 ./ | .// | /cC/* | \
2514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2515 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2516 /usr/ucb/* ) ;;
2518 # OSF1 and SCO ODT 3.0 have their own names for install.
2519 # Don't use installbsd from OSF since it installs stuff as root
2520 # by default.
2521 for ac_prog in ginstall scoinst install; do
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2524 if test $ac_prog = install &&
2525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526 # AIX install. It has an incompatible calling convention.
2528 elif test $ac_prog = install &&
2529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530 # program-specific install script used by HP pwplus--don't use.
2532 else
2533 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2534 break 3
2537 done
2538 done
2540 esac
2541 done
2545 if test "${ac_cv_path_install+set}" = set; then
2546 INSTALL=$ac_cv_path_install
2547 else
2548 # As a last resort, use the slow shell script. We don't cache a
2549 # path for INSTALL within a source directory, because that will
2550 # break other packages using the cache if that directory is
2551 # removed, or if the path is relative.
2552 INSTALL=$ac_install_sh
2555 echo "$as_me:$LINENO: result: $INSTALL" >&5
2556 echo "${ECHO_T}$INSTALL" >&6
2558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2559 # It thinks the first close brace ends the variable substitution.
2560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2566 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2567 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2568 # Just in case
2569 sleep 1
2570 echo timestamp > conftest.file
2571 # Do `set' in a subshell so we don't clobber the current shell's
2572 # arguments. Must try -L first in case configure is actually a
2573 # symlink; some systems play weird games with the mod time of symlinks
2574 # (eg FreeBSD returns the mod time of the symlink's containing
2575 # directory).
2576 if (
2577 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2578 if test "$*" = "X"; then
2579 # -L didn't work.
2580 set X `ls -t $srcdir/configure conftest.file`
2582 rm -f conftest.file
2583 if test "$*" != "X $srcdir/configure conftest.file" \
2584 && test "$*" != "X conftest.file $srcdir/configure"; then
2586 # If neither matched, then we have a broken ls. This can happen
2587 # if, for instance, CONFIG_SHELL is bash and it inherits a
2588 # broken ls alias from the environment. This has actually
2589 # happened. Such a system could not be considered "sane".
2590 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2591 alias in your environment" >&5
2592 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2593 alias in your environment" >&2;}
2594 { (exit 1); exit 1; }; }
2597 test "$2" = conftest.file
2599 then
2600 # Ok.
2602 else
2603 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2604 Check your system clock" >&5
2605 echo "$as_me: error: newly created file is older than distributed files!
2606 Check your system clock" >&2;}
2607 { (exit 1); exit 1; }; }
2609 echo "$as_me:$LINENO: result: yes" >&5
2610 echo "${ECHO_T}yes" >&6
2611 test "$program_prefix" != NONE &&
2612 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2613 # Use a double $ so make ignores it.
2614 test "$program_suffix" != NONE &&
2615 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2616 # Double any \ or $. echo might interpret backslashes.
2617 # By default was `s,x,x', remove it if useless.
2618 cat <<\_ACEOF >conftest.sed
2619 s/[\\$]/&&/g;s/;s,x,x,$//
2620 _ACEOF
2621 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2622 rm conftest.sed
2624 # expand $ac_aux_dir to an absolute path
2625 am_aux_dir=`cd $ac_aux_dir && pwd`
2627 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2628 # Use eval to expand $SHELL
2629 if eval "$MISSING --run true"; then
2630 am_missing_run="$MISSING --run "
2631 else
2632 am_missing_run=
2633 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2634 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2637 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2638 # We used to keeping the `.' as first argument, in order to
2639 # allow $(mkdir_p) to be used without argument. As in
2640 # $(mkdir_p) $(somedir)
2641 # where $(somedir) is conditionally defined. However this is wrong
2642 # for two reasons:
2643 # 1. if the package is installed by a user who cannot write `.'
2644 # make install will fail,
2645 # 2. the above comment should most certainly read
2646 # $(mkdir_p) $(DESTDIR)$(somedir)
2647 # so it does not work when $(somedir) is undefined and
2648 # $(DESTDIR) is not.
2649 # To support the latter case, we have to write
2650 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2651 # so the `.' trick is pointless.
2652 mkdir_p='mkdir -p --'
2653 else
2654 # On NextStep and OpenStep, the `mkdir' command does not
2655 # recognize any option. It will interpret all options as
2656 # directories to create, and then abort because `.' already
2657 # exists.
2658 for d in ./-p ./--version;
2660 test -d $d && rmdir $d
2661 done
2662 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2663 if test -f "$ac_aux_dir/mkinstalldirs"; then
2664 mkdir_p='$(mkinstalldirs)'
2665 else
2666 mkdir_p='$(install_sh) -d'
2670 for ac_prog in gawk mawk nawk awk
2672 # Extract the first word of "$ac_prog", so it can be a program name with args.
2673 set dummy $ac_prog; ac_word=$2
2674 echo "$as_me:$LINENO: checking for $ac_word" >&5
2675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2676 if test "${ac_cv_prog_AWK+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679 if test -n "$AWK"; then
2680 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 ac_cv_prog_AWK="$ac_prog"
2690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 break 2
2693 done
2694 done
2698 AWK=$ac_cv_prog_AWK
2699 if test -n "$AWK"; then
2700 echo "$as_me:$LINENO: result: $AWK" >&5
2701 echo "${ECHO_T}$AWK" >&6
2702 else
2703 echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6
2707 test -n "$AWK" && break
2708 done
2710 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2711 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2712 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2713 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716 cat >conftest.make <<\_ACEOF
2717 all:
2718 @echo 'ac_maketemp="$(MAKE)"'
2719 _ACEOF
2720 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2721 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2722 if test -n "$ac_maketemp"; then
2723 eval ac_cv_prog_make_${ac_make}_set=yes
2724 else
2725 eval ac_cv_prog_make_${ac_make}_set=no
2727 rm -f conftest.make
2729 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2730 echo "$as_me:$LINENO: result: yes" >&5
2731 echo "${ECHO_T}yes" >&6
2732 SET_MAKE=
2733 else
2734 echo "$as_me:$LINENO: result: no" >&5
2735 echo "${ECHO_T}no" >&6
2736 SET_MAKE="MAKE=${MAKE-make}"
2739 rm -rf .tst 2>/dev/null
2740 mkdir .tst 2>/dev/null
2741 if test -d .tst; then
2742 am__leading_dot=.
2743 else
2744 am__leading_dot=_
2746 rmdir .tst 2>/dev/null
2748 DEPDIR="${am__leading_dot}deps"
2750 ac_config_commands="$ac_config_commands depfiles"
2753 am_make=${MAKE-make}
2754 cat > confinc << 'END'
2755 am__doit:
2756 @echo done
2757 .PHONY: am__doit
2759 # If we don't find an include directive, just comment out the code.
2760 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2761 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2762 am__include="#"
2763 am__quote=
2764 _am_result=none
2765 # First try GNU make style include.
2766 echo "include confinc" > confmf
2767 # We grep out `Entering directory' and `Leaving directory'
2768 # messages which can occur if `w' ends up in MAKEFLAGS.
2769 # In particular we don't look at `^make:' because GNU make might
2770 # be invoked under some other name (usually "gmake"), in which
2771 # case it prints its new name instead of `make'.
2772 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2773 am__include=include
2774 am__quote=
2775 _am_result=GNU
2777 # Now try BSD make style include.
2778 if test "$am__include" = "#"; then
2779 echo '.include "confinc"' > confmf
2780 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2781 am__include=.include
2782 am__quote="\""
2783 _am_result=BSD
2788 echo "$as_me:$LINENO: result: $_am_result" >&5
2789 echo "${ECHO_T}$_am_result" >&6
2790 rm -f confinc confmf
2792 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2793 if test "${enable_dependency_tracking+set}" = set; then
2794 enableval="$enable_dependency_tracking"
2797 if test "x$enable_dependency_tracking" != xno; then
2798 am_depcomp="$ac_aux_dir/depcomp"
2799 AMDEPBACKSLASH='\'
2803 if test "x$enable_dependency_tracking" != xno; then
2804 AMDEP_TRUE=
2805 AMDEP_FALSE='#'
2806 else
2807 AMDEP_TRUE='#'
2808 AMDEP_FALSE=
2813 # test to see if srcdir already configured
2814 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2815 test -f $srcdir/config.status; then
2816 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2817 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2818 { (exit 1); exit 1; }; }
2821 # test whether we have cygpath
2822 if test -z "$CYGPATH_W"; then
2823 if (cygpath --version) >/dev/null 2>/dev/null; then
2824 CYGPATH_W='cygpath -w'
2825 else
2826 CYGPATH_W=echo
2831 # Define the identity of the package.
2832 PACKAGE=gprof
2833 VERSION=${BFD_VERSION}
2836 cat >>confdefs.h <<_ACEOF
2837 #define PACKAGE "$PACKAGE"
2838 _ACEOF
2841 cat >>confdefs.h <<_ACEOF
2842 #define VERSION "$VERSION"
2843 _ACEOF
2845 # Some tools Automake needs.
2847 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2850 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2853 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2856 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2859 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2861 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2863 # Installed binaries are usually stripped using `strip' when the user
2864 # run `make install-strip'. However `strip' might not be the right
2865 # tool to use in cross-compilation environments, therefore Automake
2866 # will honor the `STRIP' environment variable to overrule this program.
2867 if test "$cross_compiling" != no; then
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}strip; ac_word=$2
2871 echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873 if test "${ac_cv_prog_STRIP+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876 if test -n "$STRIP"; then
2877 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2890 done
2891 done
2895 STRIP=$ac_cv_prog_STRIP
2896 if test -n "$STRIP"; then
2897 echo "$as_me:$LINENO: result: $STRIP" >&5
2898 echo "${ECHO_T}$STRIP" >&6
2899 else
2900 echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2905 if test -z "$ac_cv_prog_STRIP"; then
2906 ac_ct_STRIP=$STRIP
2907 # Extract the first word of "strip", so it can be a program name with args.
2908 set dummy strip; ac_word=$2
2909 echo "$as_me:$LINENO: checking for $ac_word" >&5
2910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2911 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914 if test -n "$ac_ct_STRIP"; then
2915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924 ac_cv_prog_ac_ct_STRIP="strip"
2925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2928 done
2929 done
2931 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2934 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2935 if test -n "$ac_ct_STRIP"; then
2936 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2937 echo "${ECHO_T}$ac_ct_STRIP" >&6
2938 else
2939 echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6
2943 STRIP=$ac_ct_STRIP
2944 else
2945 STRIP="$ac_cv_prog_STRIP"
2949 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2951 # We need awk for the "check" target. The system "awk" is bad on
2952 # some platforms.
2953 # Always define AMTAR for backward compatibility.
2955 AMTAR=${AMTAR-"${am_missing_run}tar"}
2957 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2962 depcc="$CC" am_compiler_list=
2964 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2965 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2966 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2970 # We make a subdir and do the tests there. Otherwise we can end up
2971 # making bogus files that we don't know about and never remove. For
2972 # instance it was reported that on HP-UX the gcc test will end up
2973 # making a dummy file named `D' -- because `-MD' means `put the output
2974 # in D'.
2975 mkdir conftest.dir
2976 # Copy depcomp to subdir because otherwise we won't find it if we're
2977 # using a relative directory.
2978 cp "$am_depcomp" conftest.dir
2979 cd conftest.dir
2980 # We will build objects and dependencies in a subdirectory because
2981 # it helps to detect inapplicable dependency modes. For instance
2982 # both Tru64's cc and ICC support -MD to output dependencies as a
2983 # side effect of compilation, but ICC will put the dependencies in
2984 # the current directory while Tru64 will put them in the object
2985 # directory.
2986 mkdir sub
2988 am_cv_CC_dependencies_compiler_type=none
2989 if test "$am_compiler_list" = ""; then
2990 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2992 for depmode in $am_compiler_list; do
2993 # Setup a source with many dependencies, because some compilers
2994 # like to wrap large dependency lists on column 80 (with \), and
2995 # we should not choose a depcomp mode which is confused by this.
2997 # We need to recreate these files for each test, as the compiler may
2998 # overwrite some of them when testing with obscure command lines.
2999 # This happens at least with the AIX C compiler.
3000 : > sub/conftest.c
3001 for i in 1 2 3 4 5 6; do
3002 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3003 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3004 # Solaris 8's {/usr,}/bin/sh.
3005 touch sub/conftst$i.h
3006 done
3007 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3009 case $depmode in
3010 nosideeffect)
3011 # after this tag, mechanisms are not by side-effect, so they'll
3012 # only be used when explicitly requested
3013 if test "x$enable_dependency_tracking" = xyes; then
3014 continue
3015 else
3016 break
3019 none) break ;;
3020 esac
3021 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3022 # mode. It turns out that the SunPro C++ compiler does not properly
3023 # handle `-M -o', and we need to detect this.
3024 if depmode=$depmode \
3025 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3026 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3027 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3028 >/dev/null 2>conftest.err &&
3029 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3030 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3031 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3032 # icc doesn't choke on unknown options, it will just issue warnings
3033 # or remarks (even with -Werror). So we grep stderr for any message
3034 # that says an option was ignored or not supported.
3035 # When given -MP, icc 7.0 and 7.1 complain thusly:
3036 # icc: Command line warning: ignoring option '-M'; no argument required
3037 # The diagnosis changed in icc 8.0:
3038 # icc: Command line remark: option '-MP' not supported
3039 if (grep 'ignoring option' conftest.err ||
3040 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3041 am_cv_CC_dependencies_compiler_type=$depmode
3042 break
3045 done
3047 cd ..
3048 rm -rf conftest.dir
3049 else
3050 am_cv_CC_dependencies_compiler_type=none
3054 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3055 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3056 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3061 test "x$enable_dependency_tracking" != xno \
3062 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3063 am__fastdepCC_TRUE=
3064 am__fastdepCC_FALSE='#'
3065 else
3066 am__fastdepCC_TRUE='#'
3067 am__fastdepCC_FALSE=
3073 # Check whether --enable-shared or --disable-shared was given.
3074 if test "${enable_shared+set}" = set; then
3075 enableval="$enable_shared"
3076 p=${PACKAGE-default}
3077 case $enableval in
3078 yes) enable_shared=yes ;;
3079 no) enable_shared=no ;;
3081 enable_shared=no
3082 # Look at the argument we got. We use all the common list separators.
3083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3084 for pkg in $enableval; do
3085 if test "X$pkg" = "X$p"; then
3086 enable_shared=yes
3088 done
3089 IFS="$ac_save_ifs"
3091 esac
3092 else
3093 enable_shared=yes
3095 # Check whether --enable-static or --disable-static was given.
3096 if test "${enable_static+set}" = set; then
3097 enableval="$enable_static"
3098 p=${PACKAGE-default}
3099 case $enableval in
3100 yes) enable_static=yes ;;
3101 no) enable_static=no ;;
3103 enable_static=no
3104 # Look at the argument we got. We use all the common list separators.
3105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3106 for pkg in $enableval; do
3107 if test "X$pkg" = "X$p"; then
3108 enable_static=yes
3110 done
3111 IFS="$ac_save_ifs"
3113 esac
3114 else
3115 enable_static=yes
3117 # Check whether --enable-fast-install or --disable-fast-install was given.
3118 if test "${enable_fast_install+set}" = set; then
3119 enableval="$enable_fast_install"
3120 p=${PACKAGE-default}
3121 case $enableval in
3122 yes) enable_fast_install=yes ;;
3123 no) enable_fast_install=no ;;
3125 enable_fast_install=no
3126 # Look at the argument we got. We use all the common list separators.
3127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3128 for pkg in $enableval; do
3129 if test "X$pkg" = "X$p"; then
3130 enable_fast_install=yes
3132 done
3133 IFS="$ac_save_ifs"
3135 esac
3136 else
3137 enable_fast_install=yes
3140 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3141 if test "${with_gnu_ld+set}" = set; then
3142 withval="$with_gnu_ld"
3143 test "$withval" = no || with_gnu_ld=yes
3144 else
3145 with_gnu_ld=no
3147 ac_prog=ld
3148 if test "$GCC" = yes; then
3149 # Check if gcc -print-prog-name=ld gives a path.
3150 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3151 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3152 case $host in
3153 *-*-mingw*)
3154 # gcc leaves a trailing carriage return which upsets mingw
3155 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3157 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3158 esac
3159 case $ac_prog in
3160 # Accept absolute paths.
3161 [\\/]* | [A-Za-z]:[\\/]*)
3162 re_direlt='/[^/][^/]*/\.\./'
3163 # Canonicalize the path of ld
3164 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3165 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3166 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3167 done
3168 test -z "$LD" && LD="$ac_prog"
3171 # If it fails, then pretend we aren't using GCC.
3172 ac_prog=ld
3175 # If it is relative, then search for the first ld in PATH.
3176 with_gnu_ld=unknown
3178 esac
3179 elif test "$with_gnu_ld" = yes; then
3180 echo "$as_me:$LINENO: checking for GNU ld" >&5
3181 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3182 else
3183 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3184 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3186 if test "${lt_cv_path_LD+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189 if test -z "$LD"; then
3190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3191 for ac_dir in $PATH; do
3192 test -z "$ac_dir" && ac_dir=.
3193 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3194 lt_cv_path_LD="$ac_dir/$ac_prog"
3195 # Check to see if the program is GNU ld. I'd rather use --version,
3196 # but apparently some GNU ld's only accept -v.
3197 # Break only if it was the GNU/non-GNU ld that we prefer.
3198 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3199 test "$with_gnu_ld" != no && break
3200 else
3201 test "$with_gnu_ld" != yes && break
3204 done
3205 IFS="$ac_save_ifs"
3206 else
3207 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3211 LD="$lt_cv_path_LD"
3212 if test -n "$LD"; then
3213 echo "$as_me:$LINENO: result: $LD" >&5
3214 echo "${ECHO_T}$LD" >&6
3215 else
3216 echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6
3219 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3220 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3221 { (exit 1); exit 1; }; }
3222 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3223 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3224 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3228 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3229 lt_cv_prog_gnu_ld=yes
3230 else
3231 lt_cv_prog_gnu_ld=no
3234 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3235 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3236 with_gnu_ld=$lt_cv_prog_gnu_ld
3239 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3240 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3241 if test "${lt_cv_ld_reload_flag+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244 lt_cv_ld_reload_flag='-r'
3246 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3247 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3248 reload_flag=$lt_cv_ld_reload_flag
3249 test -n "$reload_flag" && reload_flag=" $reload_flag"
3251 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3252 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3253 if test "${lt_cv_path_NM+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 if test -n "$NM"; then
3257 # Let the user override the test.
3258 lt_cv_path_NM="$NM"
3259 else
3260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3261 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3262 test -z "$ac_dir" && ac_dir=.
3263 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3264 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3265 # Check to see if the nm accepts a BSD-compat flag.
3266 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3267 # nm: unknown option "B" ignored
3268 # Tru64's nm complains that /dev/null is an invalid object file
3269 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3270 lt_cv_path_NM="$tmp_nm -B"
3271 break
3272 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3273 lt_cv_path_NM="$tmp_nm -p"
3274 break
3275 else
3276 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3277 continue # so that we can try to find one that supports BSD flags
3280 done
3281 IFS="$ac_save_ifs"
3282 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3286 NM="$lt_cv_path_NM"
3287 echo "$as_me:$LINENO: result: $NM" >&5
3288 echo "${ECHO_T}$NM" >&6
3290 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3291 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3292 LN_S=$as_ln_s
3293 if test "$LN_S" = "ln -s"; then
3294 echo "$as_me:$LINENO: result: yes" >&5
3295 echo "${ECHO_T}yes" >&6
3296 else
3297 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3298 echo "${ECHO_T}no, using $LN_S" >&6
3301 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3302 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3303 if test "${lt_cv_deplibs_check_method+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306 lt_cv_file_magic_cmd='$MAGIC_CMD'
3307 lt_cv_file_magic_test_file=
3308 lt_cv_deplibs_check_method='unknown'
3309 # Need to set the preceding variable on all platforms that support
3310 # interlibrary dependencies.
3311 # 'none' -- dependencies not supported.
3312 # `unknown' -- same as none, but documents that we really don't know.
3313 # 'pass_all' -- all dependencies passed with no checks.
3314 # 'test_compile' -- check by making test program.
3315 # 'file_magic [regex]' -- check by looking for files in library path
3316 # which responds to the $file_magic_cmd with a given egrep regex.
3317 # If you have `file' or equivalent on your system and you're not sure
3318 # whether `pass_all' will *always* work, you probably want this one.
3320 case $host_os in
3321 aix*)
3322 lt_cv_deplibs_check_method=pass_all
3325 beos*)
3326 lt_cv_deplibs_check_method=pass_all
3329 bsdi4*)
3330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3331 lt_cv_file_magic_cmd='/usr/bin/file -L'
3332 lt_cv_file_magic_test_file=/shlib/libc.so
3335 cygwin* | mingw* |pw32*)
3336 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3337 lt_cv_file_magic_cmd='$OBJDUMP -f'
3340 darwin* | rhapsody*)
3341 # this will be overwritten by pass_all, but leave it in just in case
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
3352 lt_cv_deplibs_check_method=pass_all
3355 freebsd* | kfreebsd*-gnu)
3356 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3357 case $host_cpu in
3358 i*86 )
3359 # Not sure whether the presence of OpenBSD here was a mistake.
3360 # Let's accept both of them until this is cleared up.
3361 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3362 lt_cv_file_magic_cmd=/usr/bin/file
3363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3365 esac
3366 else
3367 lt_cv_deplibs_check_method=pass_all
3371 gnu*)
3372 lt_cv_deplibs_check_method=pass_all
3375 hpux10.20*|hpux11*)
3376 case $host_cpu in
3377 hppa*)
3378 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3379 lt_cv_file_magic_cmd=/usr/bin/file
3380 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3382 ia64*)
3383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3384 lt_cv_file_magic_cmd=/usr/bin/file
3385 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3387 esac
3390 irix5* | irix6*)
3391 case $host_os in
3392 irix5*)
3393 # this will be overridden with pass_all, but let us keep it just in case
3394 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3397 case $LD in
3398 *-32|*"-32 ") libmagic=32-bit;;
3399 *-n32|*"-n32 ") libmagic=N32;;
3400 *-64|*"-64 ") libmagic=64-bit;;
3401 *) libmagic=never-match;;
3402 esac
3403 # this will be overridden with pass_all, but let us keep it just in case
3404 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3406 esac
3407 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3408 lt_cv_deplibs_check_method=pass_all
3411 # This must be Linux ELF.
3412 linux-gnu*)
3413 lt_cv_deplibs_check_method=pass_all
3416 netbsd* | knetbsd*-gnu)
3417 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3418 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3419 else
3420 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3424 newsos6)
3425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3426 lt_cv_file_magic_cmd=/usr/bin/file
3427 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3430 osf3* | osf4* | osf5*)
3431 # this will be overridden with pass_all, but let us keep it just in case
3432 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3433 lt_cv_file_magic_test_file=/shlib/libc.so
3434 lt_cv_deplibs_check_method=pass_all
3437 sco3.2v5*)
3438 lt_cv_deplibs_check_method=pass_all
3441 solaris*)
3442 lt_cv_deplibs_check_method=pass_all
3443 lt_cv_file_magic_test_file=/lib/libc.so
3446 sysv5uw[78]* | sysv4*uw2*)
3447 lt_cv_deplibs_check_method=pass_all
3450 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3451 case $host_vendor in
3452 ncr)
3453 lt_cv_deplibs_check_method=pass_all
3455 motorola)
3456 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]'
3457 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3459 esac
3461 esac
3464 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3465 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3466 file_magic_cmd=$lt_cv_file_magic_cmd
3467 deplibs_check_method=$lt_cv_deplibs_check_method
3472 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3474 # find the maximum length of command line arguments
3475 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3476 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3477 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3481 teststring="ABCD"
3483 case $build_os in
3484 msdosdjgpp*)
3485 # On DJGPP, this test can blow up pretty badly due to problems in libc
3486 # (any single argument exceeding 2000 bytes causes a buffer overrun
3487 # during glob expansion). Even if it were fixed, the result of this
3488 # check would be larger than it should be.
3489 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3492 cygwin* | mingw*)
3493 # On Win9x/ME, this test blows up -- it succeeds, but takes
3494 # about 5 minutes as the teststring grows exponentially.
3495 # Worse, since 9x/ME are not pre-emptively multitasking,
3496 # you end up with a "frozen" computer, even though with patience
3497 # the test eventually succeeds (with a max line length of 256k).
3498 # Instead, let's just punt: use the minimum linelength reported by
3499 # all of the supported platforms: 8192 (on NT/2K/XP).
3500 lt_cv_sys_max_cmd_len=8192;
3503 amigaos*)
3504 # On AmigaOS with pdksh, this test takes hours, literally.
3505 # So we just punt and use a minimum line length of 8192.
3506 lt_cv_sys_max_cmd_len=8192;
3509 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3510 # This has been around since 386BSD, at least. Likely further.
3511 if test -x /sbin/sysctl; then
3512 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3513 elif test -x /usr/sbin/sysctl; then
3514 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3515 else
3516 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3518 # And add a safety zone
3519 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3522 esac
3526 if test -n "$lt_cv_sys_max_cmd_len" ; then
3527 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3528 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3529 else
3530 echo "$as_me:$LINENO: result: none" >&5
3531 echo "${ECHO_T}none" >&6
3535 # Only perform the check for file, if the check method requires it
3536 case $deplibs_check_method in
3537 file_magic*)
3538 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3539 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3540 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3541 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544 case $MAGIC_CMD in
3546 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3548 ?:/*)
3549 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3552 ac_save_MAGIC_CMD="$MAGIC_CMD"
3553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3554 ac_dummy="/usr/bin:$PATH"
3555 for ac_dir in $ac_dummy; do
3556 test -z "$ac_dir" && ac_dir=.
3557 if test -f $ac_dir/${ac_tool_prefix}file; then
3558 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3559 if test -n "$file_magic_test_file"; then
3560 case $deplibs_check_method in
3561 "file_magic "*)
3562 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3564 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3565 egrep "$file_magic_regex" > /dev/null; then
3567 else
3568 cat <<EOF 1>&2
3570 *** Warning: the command libtool uses to detect shared libraries,
3571 *** $file_magic_cmd, produces output that libtool cannot recognize.
3572 *** The result is that libtool may fail to recognize shared libraries
3573 *** as such. This will affect the creation of libtool libraries that
3574 *** depend on shared libraries, but programs linked with such libtool
3575 *** libraries will work regardless of this problem. Nevertheless, you
3576 *** may want to report the problem to your system manager and/or to
3577 *** bug-libtool@gnu.org
3580 fi ;;
3581 esac
3583 break
3585 done
3586 IFS="$ac_save_ifs"
3587 MAGIC_CMD="$ac_save_MAGIC_CMD"
3589 esac
3592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3593 if test -n "$MAGIC_CMD"; then
3594 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3595 echo "${ECHO_T}$MAGIC_CMD" >&6
3596 else
3597 echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3601 if test -z "$lt_cv_path_MAGIC_CMD"; then
3602 if test -n "$ac_tool_prefix"; then
3603 echo "$as_me:$LINENO: checking for file" >&5
3604 echo $ECHO_N "checking for file... $ECHO_C" >&6
3605 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 case $MAGIC_CMD in
3610 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3612 ?:/*)
3613 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3616 ac_save_MAGIC_CMD="$MAGIC_CMD"
3617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3618 ac_dummy="/usr/bin:$PATH"
3619 for ac_dir in $ac_dummy; do
3620 test -z "$ac_dir" && ac_dir=.
3621 if test -f $ac_dir/file; then
3622 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3623 if test -n "$file_magic_test_file"; then
3624 case $deplibs_check_method in
3625 "file_magic "*)
3626 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3628 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3629 egrep "$file_magic_regex" > /dev/null; then
3631 else
3632 cat <<EOF 1>&2
3634 *** Warning: the command libtool uses to detect shared libraries,
3635 *** $file_magic_cmd, produces output that libtool cannot recognize.
3636 *** The result is that libtool may fail to recognize shared libraries
3637 *** as such. This will affect the creation of libtool libraries that
3638 *** depend on shared libraries, but programs linked with such libtool
3639 *** libraries will work regardless of this problem. Nevertheless, you
3640 *** may want to report the problem to your system manager and/or to
3641 *** bug-libtool@gnu.org
3644 fi ;;
3645 esac
3647 break
3649 done
3650 IFS="$ac_save_ifs"
3651 MAGIC_CMD="$ac_save_MAGIC_CMD"
3653 esac
3656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3657 if test -n "$MAGIC_CMD"; then
3658 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3659 echo "${ECHO_T}$MAGIC_CMD" >&6
3660 else
3661 echo "$as_me:$LINENO: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3665 else
3666 MAGIC_CMD=:
3672 esac
3674 if test -n "$ac_tool_prefix"; then
3675 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3676 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3677 echo "$as_me:$LINENO: checking for $ac_word" >&5
3678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3679 if test "${ac_cv_prog_RANLIB+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682 if test -n "$RANLIB"; then
3683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3692 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 break 2
3696 done
3697 done
3701 RANLIB=$ac_cv_prog_RANLIB
3702 if test -n "$RANLIB"; then
3703 echo "$as_me:$LINENO: result: $RANLIB" >&5
3704 echo "${ECHO_T}$RANLIB" >&6
3705 else
3706 echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3711 if test -z "$ac_cv_prog_RANLIB"; then
3712 ac_ct_RANLIB=$RANLIB
3713 # Extract the first word of "ranlib", so it can be a program name with args.
3714 set dummy ranlib; ac_word=$2
3715 echo "$as_me:$LINENO: checking for $ac_word" >&5
3716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3717 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720 if test -n "$ac_ct_RANLIB"; then
3721 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3722 else
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3730 ac_cv_prog_ac_ct_RANLIB="ranlib"
3731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 break 2
3734 done
3735 done
3737 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3740 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3741 if test -n "$ac_ct_RANLIB"; then
3742 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3743 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3744 else
3745 echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3749 RANLIB=$ac_ct_RANLIB
3750 else
3751 RANLIB="$ac_cv_prog_RANLIB"
3754 if test -n "$ac_tool_prefix"; then
3755 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3756 set dummy ${ac_tool_prefix}strip; ac_word=$2
3757 echo "$as_me:$LINENO: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3759 if test "${ac_cv_prog_STRIP+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 if test -n "$STRIP"; then
3763 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3772 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 break 2
3776 done
3777 done
3781 STRIP=$ac_cv_prog_STRIP
3782 if test -n "$STRIP"; then
3783 echo "$as_me:$LINENO: result: $STRIP" >&5
3784 echo "${ECHO_T}$STRIP" >&6
3785 else
3786 echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3791 if test -z "$ac_cv_prog_STRIP"; then
3792 ac_ct_STRIP=$STRIP
3793 # Extract the first word of "strip", so it can be a program name with args.
3794 set dummy strip; ac_word=$2
3795 echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 if test -n "$ac_ct_STRIP"; then
3801 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_ac_ct_STRIP="strip"
3811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 break 2
3814 done
3815 done
3817 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3820 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3821 if test -n "$ac_ct_STRIP"; then
3822 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3823 echo "${ECHO_T}$ac_ct_STRIP" >&6
3824 else
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3829 STRIP=$ac_ct_STRIP
3830 else
3831 STRIP="$ac_cv_prog_STRIP"
3835 # Check for any special flags to pass to ltconfig.
3836 libtool_flags="--cache-file=$cache_file"
3837 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3838 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3839 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3840 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3841 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3844 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3845 if test "${enable_libtool_lock+set}" = set; then
3846 enableval="$enable_libtool_lock"
3849 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3850 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3853 # Check whether --with-pic or --without-pic was given.
3854 if test "${with_pic+set}" = set; then
3855 withval="$with_pic"
3856 pic_mode="$withval"
3857 else
3858 pic_mode=default
3860 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3861 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3863 # Some flags need to be propagated to the compiler or linker for good
3864 # libtool support.
3865 case $host in
3866 *-*-irix6*)
3867 # Find out which ABI we are using.
3868 echo '#line 3868 "configure"' > conftest.$ac_ext
3869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3870 (eval $ac_compile) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; then
3874 if test "$lt_cv_prog_gnu_ld" = yes; then
3875 case `/usr/bin/file conftest.$ac_objext` in
3876 *32-bit*)
3877 LD="${LD-ld} -melf32bsmip"
3879 *N32*)
3880 LD="${LD-ld} -melf32bmipn32"
3882 *64-bit*)
3883 LD="${LD-ld} -melf64bmip"
3885 esac
3886 else
3887 case `/usr/bin/file conftest.$ac_objext` in
3888 *32-bit*)
3889 LD="${LD-ld} -32"
3891 *N32*)
3892 LD="${LD-ld} -n32"
3894 *64-bit*)
3895 LD="${LD-ld} -64"
3897 esac
3900 rm -rf conftest*
3903 ia64-*-hpux*)
3904 # Find out which ABI we are using.
3905 echo 'int i;' > conftest.$ac_ext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>&5
3908 ac_status=$?
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); }; then
3911 case "`/usr/bin/file conftest.o`" in
3912 *ELF-32*)
3913 HPUX_IA64_MODE="32"
3915 *ELF-64*)
3916 HPUX_IA64_MODE="64"
3918 esac
3920 rm -rf conftest*
3923 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3924 # Find out which ABI we are using.
3925 echo 'int i;' > conftest.$ac_ext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3927 (eval $ac_compile) 2>&5
3928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); }; then
3931 case "`/usr/bin/file conftest.o`" in
3932 *32-bit*)
3933 case $host in
3934 x86_64-*linux*)
3935 LD="${LD-ld} -m elf_i386"
3937 ppc64-*linux*|powerpc64-*linux*)
3938 LD="${LD-ld} -m elf32ppclinux"
3940 s390x-*linux*)
3941 LD="${LD-ld} -m elf_s390"
3943 sparc64-*linux*)
3944 LD="${LD-ld} -m elf32_sparc"
3946 esac
3948 *64-bit*)
3949 case $host in
3950 x86_64-*linux*)
3951 LD="${LD-ld} -m elf_x86_64"
3953 ppc*-*linux*|powerpc*-*linux*)
3954 LD="${LD-ld} -m elf64ppc"
3956 s390*-*linux*)
3957 LD="${LD-ld} -m elf64_s390"
3959 sparc*-*linux*)
3960 LD="${LD-ld} -m elf64_sparc"
3962 esac
3964 esac
3966 rm -rf conftest*
3969 *-*-sco3.2v5*)
3970 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3971 SAVE_CFLAGS="$CFLAGS"
3972 CFLAGS="$CFLAGS -belf"
3973 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3974 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3975 if test "${lt_cv_cc_needs_belf+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3980 ac_ext=c
3981 ac_cpp='$CPP $CPPFLAGS'
3982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986 cat >conftest.$ac_ext <<_ACEOF
3987 /* confdefs.h. */
3988 _ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
3994 main ()
3998 return 0;
4000 _ACEOF
4001 rm -f conftest.$ac_objext conftest$ac_exeext
4002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4003 (eval $ac_link) 2>conftest.er1
4004 ac_status=$?
4005 grep -v '^ *+' conftest.er1 >conftest.err
4006 rm -f conftest.er1
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
4010 { ac_try='test -z "$ac_c_werror_flag"
4011 || test ! -s conftest.err'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; } &&
4017 { ac_try='test -s conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 lt_cv_cc_needs_belf=yes
4024 else
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4028 lt_cv_cc_needs_belf=no
4030 rm -f conftest.err conftest.$ac_objext \
4031 conftest$ac_exeext conftest.$ac_ext
4032 ac_ext=c
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4040 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4041 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4042 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4043 CFLAGS="$SAVE_CFLAGS"
4048 esac
4051 # Save cache, so that ltconfig can load it
4052 cat >confcache <<\_ACEOF
4053 # This file is a shell script that caches the results of configure
4054 # tests run on this system so they can be shared between configure
4055 # scripts and configure runs, see configure's option --config-cache.
4056 # It is not useful on other systems. If it contains results you don't
4057 # want to keep, you may remove or edit it.
4059 # config.status only pays attention to the cache file if you give it
4060 # the --recheck option to rerun configure.
4062 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4063 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4064 # following values.
4066 _ACEOF
4068 # The following way of writing the cache mishandles newlines in values,
4069 # but we know of no workaround that is simple, portable, and efficient.
4070 # So, don't put newlines in cache variables' values.
4071 # Ultrix sh set writes to stderr and can't be redirected directly,
4072 # and sets the high bit in the cache file unless we assign to the vars.
4074 (set) 2>&1 |
4075 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4076 *ac_space=\ *)
4077 # `set' does not quote correctly, so add quotes (double-quote
4078 # substitution turns \\\\ into \\, and sed turns \\ into \).
4079 sed -n \
4080 "s/'/'\\\\''/g;
4081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4084 # `set' quotes correctly as required by POSIX, so do not add quotes.
4085 sed -n \
4086 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4088 esac;
4090 sed '
4091 t clear
4092 : clear
4093 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4094 t end
4095 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4096 : end' >>confcache
4097 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4098 if test -w $cache_file; then
4099 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4100 cat confcache >$cache_file
4101 else
4102 echo "not updating unwritable cache $cache_file"
4105 rm -f confcache
4107 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4108 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4109 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4110 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4111 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4112 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4113 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4114 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4115 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4116 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4117 echo "$as_me: error: libtool configure failed" >&2;}
4118 { (exit 1); exit 1; }; }
4120 # Reload cache, that may have been modified by ltconfig
4121 if test -r "$cache_file"; then
4122 # Some versions of bash will fail to source /dev/null (special
4123 # files actually), so we avoid doing that.
4124 if test -f "$cache_file"; then
4125 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4126 echo "$as_me: loading cache $cache_file" >&6;}
4127 case $cache_file in
4128 [\\/]* | ?:[\\/]* ) . $cache_file;;
4129 *) . ./$cache_file;;
4130 esac
4132 else
4133 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4134 echo "$as_me: creating cache $cache_file" >&6;}
4135 >$cache_file
4139 # This can be used to rebuild libtool when needed
4140 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4142 # Always use our own libtool.
4143 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4145 # Redirect the config.log output again, so that the ltconfig log is not
4146 # clobbered by the next message.
4147 exec 5>>./config.log
4155 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
4158 ac_ext=c
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4165 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4166 echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4168 if test "${ac_cv_prog_CC+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4185 done
4186 done
4190 CC=$ac_cv_prog_CC
4191 if test -n "$CC"; then
4192 echo "$as_me:$LINENO: result: $CC" >&5
4193 echo "${ECHO_T}$CC" >&6
4194 else
4195 echo "$as_me:$LINENO: result: no" >&5
4196 echo "${ECHO_T}no" >&6
4200 if test -z "$ac_cv_prog_CC"; then
4201 ac_ct_CC=$CC
4202 # Extract the first word of "gcc", so it can be a program name with args.
4203 set dummy gcc; ac_word=$2
4204 echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4206 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209 if test -n "$ac_ct_CC"; then
4210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219 ac_cv_prog_ac_ct_CC="gcc"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4223 done
4224 done
4228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4229 if test -n "$ac_ct_CC"; then
4230 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4231 echo "${ECHO_T}$ac_ct_CC" >&6
4232 else
4233 echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6
4237 CC=$ac_ct_CC
4238 else
4239 CC="$ac_cv_prog_CC"
4242 if test -z "$CC"; then
4243 if test -n "$ac_tool_prefix"; then
4244 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4245 set dummy ${ac_tool_prefix}cc; ac_word=$2
4246 echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4248 if test "${ac_cv_prog_CC+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 if test -n "$CC"; then
4252 ac_cv_prog_CC="$CC" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261 ac_cv_prog_CC="${ac_tool_prefix}cc"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4265 done
4266 done
4270 CC=$ac_cv_prog_CC
4271 if test -n "$CC"; then
4272 echo "$as_me:$LINENO: result: $CC" >&5
4273 echo "${ECHO_T}$CC" >&6
4274 else
4275 echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6
4280 if test -z "$ac_cv_prog_CC"; then
4281 ac_ct_CC=$CC
4282 # Extract the first word of "cc", so it can be a program name with args.
4283 set dummy cc; ac_word=$2
4284 echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 if test -n "$ac_ct_CC"; then
4290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_ac_ct_CC="cc"
4300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4303 done
4304 done
4308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4309 if test -n "$ac_ct_CC"; then
4310 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4311 echo "${ECHO_T}$ac_ct_CC" >&6
4312 else
4313 echo "$as_me:$LINENO: result: no" >&5
4314 echo "${ECHO_T}no" >&6
4317 CC=$ac_ct_CC
4318 else
4319 CC="$ac_cv_prog_CC"
4323 if test -z "$CC"; then
4324 # Extract the first word of "cc", so it can be a program name with args.
4325 set dummy cc; ac_word=$2
4326 echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4328 if test "${ac_cv_prog_CC+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331 if test -n "$CC"; then
4332 ac_cv_prog_CC="$CC" # Let the user override the test.
4333 else
4334 ac_prog_rejected=no
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4343 ac_prog_rejected=yes
4344 continue
4346 ac_cv_prog_CC="cc"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4350 done
4351 done
4353 if test $ac_prog_rejected = yes; then
4354 # We found a bogon in the path, so make sure we never use it.
4355 set dummy $ac_cv_prog_CC
4356 shift
4357 if test $# != 0; then
4358 # We chose a different compiler from the bogus one.
4359 # However, it has the same basename, so the bogon will be chosen
4360 # first if we set CC to just the basename; use the full file name.
4361 shift
4362 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4367 CC=$ac_cv_prog_CC
4368 if test -n "$CC"; then
4369 echo "$as_me:$LINENO: result: $CC" >&5
4370 echo "${ECHO_T}$CC" >&6
4371 else
4372 echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6
4377 if test -z "$CC"; then
4378 if test -n "$ac_tool_prefix"; then
4379 for ac_prog in cl
4381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4383 echo "$as_me:$LINENO: checking for $ac_word" >&5
4384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4385 if test "${ac_cv_prog_CC+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388 if test -n "$CC"; then
4389 ac_cv_prog_CC="$CC" # Let the user override the test.
4390 else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4398 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4402 done
4403 done
4407 CC=$ac_cv_prog_CC
4408 if test -n "$CC"; then
4409 echo "$as_me:$LINENO: result: $CC" >&5
4410 echo "${ECHO_T}$CC" >&6
4411 else
4412 echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6
4416 test -n "$CC" && break
4417 done
4419 if test -z "$CC"; then
4420 ac_ct_CC=$CC
4421 for ac_prog in cl
4423 # Extract the first word of "$ac_prog", so it can be a program name with args.
4424 set dummy $ac_prog; ac_word=$2
4425 echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 if test -n "$ac_ct_CC"; then
4431 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_ac_ct_CC="$ac_prog"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4444 done
4445 done
4449 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4450 if test -n "$ac_ct_CC"; then
4451 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4452 echo "${ECHO_T}$ac_ct_CC" >&6
4453 else
4454 echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4458 test -n "$ac_ct_CC" && break
4459 done
4461 CC=$ac_ct_CC
4467 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4468 See \`config.log' for more details." >&5
4469 echo "$as_me: error: no acceptable C compiler found in \$PATH
4470 See \`config.log' for more details." >&2;}
4471 { (exit 1); exit 1; }; }
4473 # Provide some information about the compiler.
4474 echo "$as_me:$LINENO:" \
4475 "checking for C compiler version" >&5
4476 ac_compiler=`set X $ac_compile; echo $2`
4477 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4478 (eval $ac_compiler --version </dev/null >&5) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }
4482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4483 (eval $ac_compiler -v </dev/null >&5) 2>&5
4484 ac_status=$?
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }
4487 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4488 (eval $ac_compiler -V </dev/null >&5) 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }
4493 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4494 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4495 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 cat >conftest.$ac_ext <<_ACEOF
4499 /* confdefs.h. */
4500 _ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4506 main ()
4508 #ifndef __GNUC__
4509 choke me
4510 #endif
4513 return 0;
4515 _ACEOF
4516 rm -f conftest.$ac_objext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>conftest.er1
4519 ac_status=$?
4520 grep -v '^ *+' conftest.er1 >conftest.err
4521 rm -f conftest.er1
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest.$ac_objext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 ac_compiler_gnu=yes
4539 else
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4543 ac_compiler_gnu=no
4545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4549 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4550 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4551 GCC=`test $ac_compiler_gnu = yes && echo yes`
4552 ac_test_CFLAGS=${CFLAGS+set}
4553 ac_save_CFLAGS=$CFLAGS
4554 CFLAGS="-g"
4555 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4556 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4557 if test "${ac_cv_prog_cc_g+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560 cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h. */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4568 main ()
4572 return 0;
4574 _ACEOF
4575 rm -f conftest.$ac_objext
4576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4577 (eval $ac_compile) 2>conftest.er1
4578 ac_status=$?
4579 grep -v '^ *+' conftest.er1 >conftest.err
4580 rm -f conftest.er1
4581 cat conftest.err >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } &&
4584 { ac_try='test -z "$ac_c_werror_flag"
4585 || test ! -s conftest.err'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 (eval $ac_try) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; } &&
4591 { ac_try='test -s conftest.$ac_objext'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_cv_prog_cc_g=yes
4598 else
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4602 ac_cv_prog_cc_g=no
4604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4606 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4607 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4608 if test "$ac_test_CFLAGS" = set; then
4609 CFLAGS=$ac_save_CFLAGS
4610 elif test $ac_cv_prog_cc_g = yes; then
4611 if test "$GCC" = yes; then
4612 CFLAGS="-g -O2"
4613 else
4614 CFLAGS="-g"
4616 else
4617 if test "$GCC" = yes; then
4618 CFLAGS="-O2"
4619 else
4620 CFLAGS=
4623 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4624 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4625 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628 ac_cv_prog_cc_stdc=no
4629 ac_save_CC=$CC
4630 cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h. */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 #include <stdarg.h>
4637 #include <stdio.h>
4638 #include <sys/types.h>
4639 #include <sys/stat.h>
4640 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4641 struct buf { int x; };
4642 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4643 static char *e (p, i)
4644 char **p;
4645 int i;
4647 return p[i];
4649 static char *f (char * (*g) (char **, int), char **p, ...)
4651 char *s;
4652 va_list v;
4653 va_start (v,p);
4654 s = g (p, va_arg (v,int));
4655 va_end (v);
4656 return s;
4659 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4660 function prototypes and stuff, but not '\xHH' hex character constants.
4661 These don't provoke an error unfortunately, instead are silently treated
4662 as 'x'. The following induces an error, until -std1 is added to get
4663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4664 array size at least. It's necessary to write '\x00'==0 to get something
4665 that's true only with -std1. */
4666 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4668 int test (int i, double x);
4669 struct s1 {int (*f) (int a);};
4670 struct s2 {int (*f) (double a);};
4671 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4672 int argc;
4673 char **argv;
4675 main ()
4677 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4679 return 0;
4681 _ACEOF
4682 # Don't try gcc -ansi; that turns off useful extensions and
4683 # breaks some systems' header files.
4684 # AIX -qlanglvl=ansi
4685 # Ultrix and OSF/1 -std1
4686 # HP-UX 10.20 and later -Ae
4687 # HP-UX older versions -Aa -D_HPUX_SOURCE
4688 # SVR4 -Xc -D__EXTENSIONS__
4689 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4691 CC="$ac_save_CC $ac_arg"
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
4714 ac_cv_prog_cc_stdc=$ac_arg
4715 break
4716 else
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4721 rm -f conftest.err conftest.$ac_objext
4722 done
4723 rm -f conftest.$ac_ext conftest.$ac_objext
4724 CC=$ac_save_CC
4728 case "x$ac_cv_prog_cc_stdc" in
4729 x|xno)
4730 echo "$as_me:$LINENO: result: none needed" >&5
4731 echo "${ECHO_T}none needed" >&6 ;;
4733 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4734 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4735 CC="$CC $ac_cv_prog_cc_stdc" ;;
4736 esac
4738 # Some people use a C++ compiler to compile C. Since we use `exit',
4739 # in C++ we need to declare it. In case someone uses the same compiler
4740 # for both compiling C and C++ we need to have the C++ compiler decide
4741 # the declaration of exit, since it's the most demanding environment.
4742 cat >conftest.$ac_ext <<_ACEOF
4743 #ifndef __cplusplus
4744 choke me
4745 #endif
4746 _ACEOF
4747 rm -f conftest.$ac_objext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749 (eval $ac_compile) 2>conftest.er1
4750 ac_status=$?
4751 grep -v '^ *+' conftest.er1 >conftest.err
4752 rm -f conftest.er1
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } &&
4756 { ac_try='test -z "$ac_c_werror_flag"
4757 || test ! -s conftest.err'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; } &&
4763 { ac_try='test -s conftest.$ac_objext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 for ac_declaration in \
4770 '' \
4771 'extern "C" void std::exit (int) throw (); using std::exit;' \
4772 'extern "C" void std::exit (int); using std::exit;' \
4773 'extern "C" void exit (int) throw ();' \
4774 'extern "C" void exit (int);' \
4775 'void exit (int);'
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h. */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 $ac_declaration
4784 #include <stdlib.h>
4786 main ()
4788 exit (42);
4790 return 0;
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4795 (eval $ac_compile) 2>conftest.er1
4796 ac_status=$?
4797 grep -v '^ *+' conftest.er1 >conftest.err
4798 rm -f conftest.er1
4799 cat conftest.err >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try='test -z "$ac_c_werror_flag"
4803 || test ! -s conftest.err'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; } &&
4809 { ac_try='test -s conftest.$ac_objext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4816 else
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4820 continue
4822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4823 cat >conftest.$ac_ext <<_ACEOF
4824 /* confdefs.h. */
4825 _ACEOF
4826 cat confdefs.h >>conftest.$ac_ext
4827 cat >>conftest.$ac_ext <<_ACEOF
4828 /* end confdefs.h. */
4829 $ac_declaration
4831 main ()
4833 exit (42);
4835 return 0;
4837 _ACEOF
4838 rm -f conftest.$ac_objext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4840 (eval $ac_compile) 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } &&
4847 { ac_try='test -z "$ac_c_werror_flag"
4848 || test ! -s conftest.err'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 (eval $ac_try) 2>&5
4851 ac_status=$?
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; } &&
4854 { ac_try='test -s conftest.$ac_objext'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
4860 break
4861 else
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4867 done
4868 rm -f conftest*
4869 if test -n "$ac_declaration"; then
4870 echo '#ifdef __cplusplus' >>confdefs.h
4871 echo $ac_declaration >>confdefs.h
4872 echo '#endif' >>confdefs.h
4875 else
4876 echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4881 ac_ext=c
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887 # Find a good install program. We prefer a C program (faster),
4888 # so one script is as good as another. But avoid the broken or
4889 # incompatible versions:
4890 # SysV /etc/install, /usr/sbin/install
4891 # SunOS /usr/etc/install
4892 # IRIX /sbin/install
4893 # AIX /bin/install
4894 # AmigaOS /C/install, which installs bootblocks on floppy discs
4895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4898 # OS/2's system install, which has a completely different semantic
4899 # ./install, which can be erroneously created by make from ./install.sh.
4900 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4902 if test -z "$INSTALL"; then
4903 if test "${ac_cv_path_install+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 # Account for people who put trailing slashes in PATH elements.
4912 case $as_dir/ in
4913 ./ | .// | /cC/* | \
4914 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4915 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4916 /usr/ucb/* ) ;;
4918 # OSF1 and SCO ODT 3.0 have their own names for install.
4919 # Don't use installbsd from OSF since it installs stuff as root
4920 # by default.
4921 for ac_prog in ginstall scoinst install; do
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4924 if test $ac_prog = install &&
4925 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4926 # AIX install. It has an incompatible calling convention.
4928 elif test $ac_prog = install &&
4929 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4930 # program-specific install script used by HP pwplus--don't use.
4932 else
4933 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4934 break 3
4937 done
4938 done
4940 esac
4941 done
4945 if test "${ac_cv_path_install+set}" = set; then
4946 INSTALL=$ac_cv_path_install
4947 else
4948 # As a last resort, use the slow shell script. We don't cache a
4949 # path for INSTALL within a source directory, because that will
4950 # break other packages using the cache if that directory is
4951 # removed, or if the path is relative.
4952 INSTALL=$ac_install_sh
4955 echo "$as_me:$LINENO: result: $INSTALL" >&5
4956 echo "${ECHO_T}$INSTALL" >&6
4958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4959 # It thinks the first close brace ends the variable substitution.
4960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4968 for ac_func in setmode
4970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4971 echo "$as_me:$LINENO: checking for $ac_func" >&5
4972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4973 if eval "test \"\${$as_ac_var+set}\" = set"; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4984 #define $ac_func innocuous_$ac_func
4986 /* System header to define __stub macros and hopefully few prototypes,
4987 which can conflict with char $ac_func (); below.
4988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4989 <limits.h> exists even on freestanding compilers. */
4991 #ifdef __STDC__
4992 # include <limits.h>
4993 #else
4994 # include <assert.h>
4995 #endif
4997 #undef $ac_func
4999 /* Override any gcc2 internal prototype to avoid an error. */
5000 #ifdef __cplusplus
5001 extern "C"
5003 #endif
5004 /* We use char because int might match the return type of a gcc2
5005 builtin and then its argument prototype would still apply. */
5006 char $ac_func ();
5007 /* The GNU C library defines this for functions which it implements
5008 to always fail with ENOSYS. Some functions are actually named
5009 something starting with __ and the normal name is an alias. */
5010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5011 choke me
5012 #else
5013 char (*f) () = $ac_func;
5014 #endif
5015 #ifdef __cplusplus
5017 #endif
5020 main ()
5022 return f != $ac_func;
5024 return 0;
5026 _ACEOF
5027 rm -f conftest.$ac_objext conftest$ac_exeext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029 (eval $ac_link) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest$ac_exeext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 eval "$as_ac_var=yes"
5050 else
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 eval "$as_ac_var=no"
5056 rm -f conftest.err conftest.$ac_objext \
5057 conftest$ac_exeext conftest.$ac_ext
5059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5061 if test `eval echo '${'$as_ac_var'}'` = yes; then
5062 cat >>confdefs.h <<_ACEOF
5063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5064 _ACEOF
5067 done
5070 ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga"
5071 # If we haven't got the data from the intl directory,
5072 # assume NLS is disabled.
5073 USE_NLS=no
5074 LIBINTL=
5075 LIBINTL_DEP=
5076 INCINTL=
5077 XGETTEXT=
5078 GMSGFMT=
5079 POSUB=
5080 if test -f ../intl/config.intl; then
5081 . ../intl/config.intl
5083 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5084 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5085 if test x"$USE_NLS" != xyes; then
5086 echo "$as_me:$LINENO: result: no" >&5
5087 echo "${ECHO_T}no" >&6
5088 else
5089 echo "$as_me:$LINENO: result: yes" >&5
5090 echo "${ECHO_T}yes" >&6
5092 cat >>confdefs.h <<\_ACEOF
5093 #define ENABLE_NLS 1
5094 _ACEOF
5097 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5098 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5099 # Look for .po and .gmo files in the source directory.
5100 CATALOGS=
5101 XLINGUAS=
5102 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5103 # If there aren't any .gmo files the shell will give us the
5104 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5105 # weeded out.
5106 case "$cat" in *\**)
5107 continue;;
5108 esac
5109 # The quadruple backslash is collapsed to a double backslash
5110 # by the backticks, then collapsed again by the double quotes,
5111 # leaving us with one backslash in the sed expression (right
5112 # before the dot that mustn't act as a wildcard).
5113 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5114 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5115 # The user is allowed to set LINGUAS to a list of languages to
5116 # install catalogs for. If it's empty that means "all of them."
5117 if test "x$LINGUAS" = x; then
5118 CATALOGS="$CATALOGS $cat"
5119 XLINGUAS="$XLINGUAS $lang"
5120 else
5121 case "$LINGUAS" in *$lang*)
5122 CATALOGS="$CATALOGS $cat"
5123 XLINGUAS="$XLINGUAS $lang"
5125 esac
5127 done
5128 LINGUAS="$XLINGUAS"
5129 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5130 echo "${ECHO_T}$LINGUAS" >&6
5133 DATADIRNAME=share
5135 INSTOBJEXT=.mo
5137 GENCAT=gencat
5139 CATOBJEXT=.gmo
5143 MKINSTALLDIRS=
5144 if test -n "$ac_aux_dir"; then
5145 case "$ac_aux_dir" in
5146 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5147 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5148 esac
5150 if test -z "$MKINSTALLDIRS"; then
5151 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5156 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5157 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5158 # Check whether --enable-nls or --disable-nls was given.
5159 if test "${enable_nls+set}" = set; then
5160 enableval="$enable_nls"
5161 USE_NLS=$enableval
5162 else
5163 USE_NLS=yes
5165 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5166 echo "${ECHO_T}$USE_NLS" >&6
5173 # Prepare PATH_SEPARATOR.
5174 # The user is always right.
5175 if test "${PATH_SEPARATOR+set}" != set; then
5176 echo "#! /bin/sh" >conf$$.sh
5177 echo "exit 0" >>conf$$.sh
5178 chmod +x conf$$.sh
5179 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5180 PATH_SEPARATOR=';'
5181 else
5182 PATH_SEPARATOR=:
5184 rm -f conf$$.sh
5187 # Find out how to test for executable files. Don't use a zero-byte file,
5188 # as systems may use methods other than mode bits to determine executability.
5189 cat >conf$$.file <<_ASEOF
5190 #! /bin/sh
5191 exit 0
5192 _ASEOF
5193 chmod +x conf$$.file
5194 if test -x conf$$.file >/dev/null 2>&1; then
5195 ac_executable_p="test -x"
5196 else
5197 ac_executable_p="test -f"
5199 rm -f conf$$.file
5201 # Extract the first word of "msgfmt", so it can be a program name with args.
5202 set dummy msgfmt; ac_word=$2
5203 echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5205 if test "${ac_cv_path_MSGFMT+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 case "$MSGFMT" in
5209 [\\/]* | ?:[\\/]*)
5210 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5213 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5214 for ac_dir in $PATH; do
5215 IFS="$ac_save_IFS"
5216 test -z "$ac_dir" && ac_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5219 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5220 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5221 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5222 break 2
5225 done
5226 done
5227 IFS="$ac_save_IFS"
5228 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5230 esac
5232 MSGFMT="$ac_cv_path_MSGFMT"
5233 if test "$MSGFMT" != ":"; then
5234 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5235 echo "${ECHO_T}$MSGFMT" >&6
5236 else
5237 echo "$as_me:$LINENO: result: no" >&5
5238 echo "${ECHO_T}no" >&6
5241 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5242 set dummy gmsgfmt; ac_word=$2
5243 echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5245 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 case $GMSGFMT in
5249 [\\/]* | ?:[\\/]*)
5250 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5264 done
5265 done
5267 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5269 esac
5271 GMSGFMT=$ac_cv_path_GMSGFMT
5273 if test -n "$GMSGFMT"; then
5274 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5275 echo "${ECHO_T}$GMSGFMT" >&6
5276 else
5277 echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6
5283 # Prepare PATH_SEPARATOR.
5284 # The user is always right.
5285 if test "${PATH_SEPARATOR+set}" != set; then
5286 echo "#! /bin/sh" >conf$$.sh
5287 echo "exit 0" >>conf$$.sh
5288 chmod +x conf$$.sh
5289 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5290 PATH_SEPARATOR=';'
5291 else
5292 PATH_SEPARATOR=:
5294 rm -f conf$$.sh
5297 # Find out how to test for executable files. Don't use a zero-byte file,
5298 # as systems may use methods other than mode bits to determine executability.
5299 cat >conf$$.file <<_ASEOF
5300 #! /bin/sh
5301 exit 0
5302 _ASEOF
5303 chmod +x conf$$.file
5304 if test -x conf$$.file >/dev/null 2>&1; then
5305 ac_executable_p="test -x"
5306 else
5307 ac_executable_p="test -f"
5309 rm -f conf$$.file
5311 # Extract the first word of "xgettext", so it can be a program name with args.
5312 set dummy xgettext; ac_word=$2
5313 echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5315 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318 case "$XGETTEXT" in
5319 [\\/]* | ?:[\\/]*)
5320 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5323 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5324 for ac_dir in $PATH; do
5325 IFS="$ac_save_IFS"
5326 test -z "$ac_dir" && ac_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5329 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5330 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5331 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5332 break 2
5335 done
5336 done
5337 IFS="$ac_save_IFS"
5338 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5340 esac
5342 XGETTEXT="$ac_cv_path_XGETTEXT"
5343 if test "$XGETTEXT" != ":"; then
5344 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5345 echo "${ECHO_T}$XGETTEXT" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5351 rm -f messages.po
5354 # Prepare PATH_SEPARATOR.
5355 # The user is always right.
5356 if test "${PATH_SEPARATOR+set}" != set; then
5357 echo "#! /bin/sh" >conf$$.sh
5358 echo "exit 0" >>conf$$.sh
5359 chmod +x conf$$.sh
5360 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5361 PATH_SEPARATOR=';'
5362 else
5363 PATH_SEPARATOR=:
5365 rm -f conf$$.sh
5368 # Find out how to test for executable files. Don't use a zero-byte file,
5369 # as systems may use methods other than mode bits to determine executability.
5370 cat >conf$$.file <<_ASEOF
5371 #! /bin/sh
5372 exit 0
5373 _ASEOF
5374 chmod +x conf$$.file
5375 if test -x conf$$.file >/dev/null 2>&1; then
5376 ac_executable_p="test -x"
5377 else
5378 ac_executable_p="test -f"
5380 rm -f conf$$.file
5382 # Extract the first word of "msgmerge", so it can be a program name with args.
5383 set dummy msgmerge; ac_word=$2
5384 echo "$as_me:$LINENO: checking for $ac_word" >&5
5385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5386 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 case "$MSGMERGE" in
5390 [\\/]* | ?:[\\/]*)
5391 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5394 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5395 for ac_dir in $PATH; do
5396 IFS="$ac_save_IFS"
5397 test -z "$ac_dir" && ac_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5400 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5401 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5402 break 2
5405 done
5406 done
5407 IFS="$ac_save_IFS"
5408 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5410 esac
5412 MSGMERGE="$ac_cv_path_MSGMERGE"
5413 if test "$MSGMERGE" != ":"; then
5414 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5415 echo "${ECHO_T}$MSGMERGE" >&6
5416 else
5417 echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6
5422 if test "$GMSGFMT" != ":"; then
5423 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5424 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5426 else
5427 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5428 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5429 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5430 GMSGFMT=":"
5434 if test "$XGETTEXT" != ":"; then
5435 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5436 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5438 else
5439 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5440 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5441 XGETTEXT=":"
5443 rm -f messages.po
5446 ac_config_commands="$ac_config_commands default-1"
5450 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5451 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5452 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5453 if test "${enable_maintainer_mode+set}" = set; then
5454 enableval="$enable_maintainer_mode"
5455 USE_MAINTAINER_MODE=$enableval
5456 else
5457 USE_MAINTAINER_MODE=no
5459 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5460 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5463 if test $USE_MAINTAINER_MODE = yes; then
5464 MAINTAINER_MODE_TRUE=
5465 MAINTAINER_MODE_FALSE='#'
5466 else
5467 MAINTAINER_MODE_TRUE='#'
5468 MAINTAINER_MODE_FALSE=
5471 MAINT=$MAINTAINER_MODE_TRUE
5476 ac_ext=c
5477 ac_cpp='$CPP $CPPFLAGS'
5478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5482 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5483 # On Suns, sometimes $CPP names a directory.
5484 if test -n "$CPP" && test -d "$CPP"; then
5485 CPP=
5487 if test -z "$CPP"; then
5488 if test "${ac_cv_prog_CPP+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491 # Double quotes because CPP needs to be expanded
5492 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5494 ac_preproc_ok=false
5495 for ac_c_preproc_warn_flag in '' yes
5497 # Use a header file that comes with gcc, so configuring glibc
5498 # with a fresh cross-compiler works.
5499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5500 # <limits.h> exists even on freestanding compilers.
5501 # On the NeXT, cc -E runs the code through the compiler's parser,
5502 # not just through cpp. "Syntax error" is here to catch this case.
5503 cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h. */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509 #ifdef __STDC__
5510 # include <limits.h>
5511 #else
5512 # include <assert.h>
5513 #endif
5514 Syntax error
5515 _ACEOF
5516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } >/dev/null; then
5524 if test -s conftest.err; then
5525 ac_cpp_err=$ac_c_preproc_warn_flag
5526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5527 else
5528 ac_cpp_err=
5530 else
5531 ac_cpp_err=yes
5533 if test -z "$ac_cpp_err"; then
5535 else
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 # Broken: fails on valid input.
5540 continue
5542 rm -f conftest.err conftest.$ac_ext
5544 # OK, works on sane cases. Now check whether non-existent headers
5545 # can be detected and how.
5546 cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h. */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 #include <ac_nonexistent.h>
5553 _ACEOF
5554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5556 ac_status=$?
5557 grep -v '^ *+' conftest.er1 >conftest.err
5558 rm -f conftest.er1
5559 cat conftest.err >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } >/dev/null; then
5562 if test -s conftest.err; then
5563 ac_cpp_err=$ac_c_preproc_warn_flag
5564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5565 else
5566 ac_cpp_err=
5568 else
5569 ac_cpp_err=yes
5571 if test -z "$ac_cpp_err"; then
5572 # Broken: success on invalid input.
5573 continue
5574 else
5575 echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5578 # Passes both tests.
5579 ac_preproc_ok=:
5580 break
5582 rm -f conftest.err conftest.$ac_ext
5584 done
5585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5586 rm -f conftest.err conftest.$ac_ext
5587 if $ac_preproc_ok; then
5588 break
5591 done
5592 ac_cv_prog_CPP=$CPP
5595 CPP=$ac_cv_prog_CPP
5596 else
5597 ac_cv_prog_CPP=$CPP
5599 echo "$as_me:$LINENO: result: $CPP" >&5
5600 echo "${ECHO_T}$CPP" >&6
5601 ac_preproc_ok=false
5602 for ac_c_preproc_warn_flag in '' yes
5604 # Use a header file that comes with gcc, so configuring glibc
5605 # with a fresh cross-compiler works.
5606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5607 # <limits.h> exists even on freestanding compilers.
5608 # On the NeXT, cc -E runs the code through the compiler's parser,
5609 # not just through cpp. "Syntax error" is here to catch this case.
5610 cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h. */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5616 #ifdef __STDC__
5617 # include <limits.h>
5618 #else
5619 # include <assert.h>
5620 #endif
5621 Syntax error
5622 _ACEOF
5623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } >/dev/null; then
5631 if test -s conftest.err; then
5632 ac_cpp_err=$ac_c_preproc_warn_flag
5633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5634 else
5635 ac_cpp_err=
5637 else
5638 ac_cpp_err=yes
5640 if test -z "$ac_cpp_err"; then
5642 else
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5646 # Broken: fails on valid input.
5647 continue
5649 rm -f conftest.err conftest.$ac_ext
5651 # OK, works on sane cases. Now check whether non-existent headers
5652 # can be detected and how.
5653 cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h. */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 #include <ac_nonexistent.h>
5660 _ACEOF
5661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } >/dev/null; then
5669 if test -s conftest.err; then
5670 ac_cpp_err=$ac_c_preproc_warn_flag
5671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5672 else
5673 ac_cpp_err=
5675 else
5676 ac_cpp_err=yes
5678 if test -z "$ac_cpp_err"; then
5679 # Broken: success on invalid input.
5680 continue
5681 else
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 # Passes both tests.
5686 ac_preproc_ok=:
5687 break
5689 rm -f conftest.err conftest.$ac_ext
5691 done
5692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5693 rm -f conftest.err conftest.$ac_ext
5694 if $ac_preproc_ok; then
5696 else
5697 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5698 See \`config.log' for more details." >&5
5699 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5700 See \`config.log' for more details." >&2;}
5701 { (exit 1); exit 1; }; }
5704 ac_ext=c
5705 ac_cpp='$CPP $CPPFLAGS'
5706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5711 echo "$as_me:$LINENO: checking for egrep" >&5
5712 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5713 if test "${ac_cv_prog_egrep+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5717 then ac_cv_prog_egrep='grep -E'
5718 else ac_cv_prog_egrep='egrep'
5721 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5722 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5723 EGREP=$ac_cv_prog_egrep
5726 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5727 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5728 if test "${ac_cv_header_stdc+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h. */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 #include <stdlib.h>
5738 #include <stdarg.h>
5739 #include <string.h>
5740 #include <float.h>
5743 main ()
5747 return 0;
5749 _ACEOF
5750 rm -f conftest.$ac_objext
5751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5752 (eval $ac_compile) 2>conftest.er1
5753 ac_status=$?
5754 grep -v '^ *+' conftest.er1 >conftest.err
5755 rm -f conftest.er1
5756 cat conftest.err >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } &&
5759 { ac_try='test -z "$ac_c_werror_flag"
5760 || test ! -s conftest.err'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 (eval $ac_try) 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; } &&
5766 { ac_try='test -s conftest.$ac_objext'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 (eval $ac_try) 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; }; then
5772 ac_cv_header_stdc=yes
5773 else
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777 ac_cv_header_stdc=no
5779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5781 if test $ac_cv_header_stdc = yes; then
5782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 #include <string.h>
5791 _ACEOF
5792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5793 $EGREP "memchr" >/dev/null 2>&1; then
5795 else
5796 ac_cv_header_stdc=no
5798 rm -f conftest*
5802 if test $ac_cv_header_stdc = yes; then
5803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <stdlib.h>
5812 _ACEOF
5813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5814 $EGREP "free" >/dev/null 2>&1; then
5816 else
5817 ac_cv_header_stdc=no
5819 rm -f conftest*
5823 if test $ac_cv_header_stdc = yes; then
5824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5825 if test "$cross_compiling" = yes; then
5827 else
5828 cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h. */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 #include <ctype.h>
5835 #if ((' ' & 0x0FF) == 0x020)
5836 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5837 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5838 #else
5839 # define ISLOWER(c) \
5840 (('a' <= (c) && (c) <= 'i') \
5841 || ('j' <= (c) && (c) <= 'r') \
5842 || ('s' <= (c) && (c) <= 'z'))
5843 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5844 #endif
5846 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5848 main ()
5850 int i;
5851 for (i = 0; i < 256; i++)
5852 if (XOR (islower (i), ISLOWER (i))
5853 || toupper (i) != TOUPPER (i))
5854 exit(2);
5855 exit (0);
5857 _ACEOF
5858 rm -f conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5870 else
5871 echo "$as_me: program exited with status $ac_status" >&5
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5875 ( exit $ac_status )
5876 ac_cv_header_stdc=no
5878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5882 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5883 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5884 if test $ac_cv_header_stdc = yes; then
5886 cat >>confdefs.h <<\_ACEOF
5887 #define STDC_HEADERS 1
5888 _ACEOF
5892 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5902 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5903 inttypes.h stdint.h unistd.h
5905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5906 echo "$as_me:$LINENO: checking for $ac_header" >&5
5907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911 cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h. */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 $ac_includes_default
5919 #include <$ac_header>
5920 _ACEOF
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923 (eval $ac_compile) 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -z "$ac_c_werror_flag"
5931 || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 eval "$as_ac_Header=yes"
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 eval "$as_ac_Header=no"
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5955 cat >>confdefs.h <<_ACEOF
5956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5957 _ACEOF
5961 done
5965 for ac_header in sys/gmon_out.h
5967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5969 echo "$as_me:$LINENO: checking for $ac_header" >&5
5970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5976 else
5977 # Is the header compilable?
5978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 $ac_includes_default
5987 #include <$ac_header>
5988 _ACEOF
5989 rm -f conftest.$ac_objext
5990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991 (eval $ac_compile) 2>conftest.er1
5992 ac_status=$?
5993 grep -v '^ *+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } &&
5998 { ac_try='test -z "$ac_c_werror_flag"
5999 || test ! -s conftest.err'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; } &&
6005 { ac_try='test -s conftest.$ac_objext'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 (eval $ac_try) 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 ac_header_compiler=yes
6012 else
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6016 ac_header_compiler=no
6018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6020 echo "${ECHO_T}$ac_header_compiler" >&6
6022 # Is the header present?
6023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6025 cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h. */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 #include <$ac_header>
6032 _ACEOF
6033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } >/dev/null; then
6041 if test -s conftest.err; then
6042 ac_cpp_err=$ac_c_preproc_warn_flag
6043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6044 else
6045 ac_cpp_err=
6047 else
6048 ac_cpp_err=yes
6050 if test -z "$ac_cpp_err"; then
6051 ac_header_preproc=yes
6052 else
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6056 ac_header_preproc=no
6058 rm -f conftest.err conftest.$ac_ext
6059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6060 echo "${ECHO_T}$ac_header_preproc" >&6
6062 # So? What about this header?
6063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6064 yes:no: )
6065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6069 ac_header_preproc=yes
6071 no:yes:* )
6072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6085 cat <<\_ASBOX
6086 ## ------------------------------------------ ##
6087 ## Report this to the AC_PACKAGE_NAME lists. ##
6088 ## ------------------------------------------ ##
6089 _ASBOX
6091 sed "s/^/$as_me: WARNING: /" >&2
6093 esac
6094 echo "$as_me:$LINENO: checking for $ac_header" >&5
6095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099 eval "$as_ac_Header=\$ac_header_preproc"
6101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6106 cat >>confdefs.h <<_ACEOF
6107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6108 _ACEOF
6112 done
6115 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
6116 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
6117 if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h. */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 #include <unistd.h>
6128 main ()
6130 extern int getopt (int, char *const*, const char *);
6132 return 0;
6134 _ACEOF
6135 rm -f conftest.$ac_objext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6137 (eval $ac_compile) 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
6144 { ac_try='test -z "$ac_c_werror_flag"
6145 || test ! -s conftest.err'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; } &&
6151 { ac_try='test -s conftest.$ac_objext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 gprof_cv_decl_getopt_unistd_h=yes
6158 else
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6162 gprof_cv_decl_getopt_unistd_h=no
6164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6167 echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
6168 echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6
6169 if test $gprof_cv_decl_getopt_unistd_h = yes; then
6171 cat >>confdefs.h <<\_ACEOF
6172 #define HAVE_DECL_GETOPT 1
6173 _ACEOF
6178 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
6180 # Check whether --enable-werror or --disable-werror was given.
6181 if test "${enable_werror+set}" = set; then
6182 enableval="$enable_werror"
6183 case "${enableval}" in
6184 yes | y) ERROR_ON_WARNING="yes" ;;
6185 no | n) ERROR_ON_WARNING="no" ;;
6186 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
6187 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
6188 { (exit 1); exit 1; }; } ;;
6189 esac
6192 # Enable -Werror by default when using gcc
6193 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
6194 ERROR_ON_WARNING=yes
6197 NO_WERROR=
6198 if test "${ERROR_ON_WARNING}" = yes ; then
6199 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
6200 NO_WERROR="-Wno-error"
6203 if test "${GCC}" = yes ; then
6204 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
6207 # Check whether --enable-build-warnings or --disable-build-warnings was given.
6208 if test "${enable_build_warnings+set}" = set; then
6209 enableval="$enable_build_warnings"
6210 case "${enableval}" in
6211 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
6212 no) if test "${GCC}" = yes ; then
6213 WARN_CFLAGS="-w"
6214 fi;;
6215 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6216 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6217 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6218 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
6219 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6220 esac
6223 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
6224 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6235 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
6237 cat >confcache <<\_ACEOF
6238 # This file is a shell script that caches the results of configure
6239 # tests run on this system so they can be shared between configure
6240 # scripts and configure runs, see configure's option --config-cache.
6241 # It is not useful on other systems. If it contains results you don't
6242 # want to keep, you may remove or edit it.
6244 # config.status only pays attention to the cache file if you give it
6245 # the --recheck option to rerun configure.
6247 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6248 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6249 # following values.
6251 _ACEOF
6253 # The following way of writing the cache mishandles newlines in values,
6254 # but we know of no workaround that is simple, portable, and efficient.
6255 # So, don't put newlines in cache variables' values.
6256 # Ultrix sh set writes to stderr and can't be redirected directly,
6257 # and sets the high bit in the cache file unless we assign to the vars.
6259 (set) 2>&1 |
6260 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6261 *ac_space=\ *)
6262 # `set' does not quote correctly, so add quotes (double-quote
6263 # substitution turns \\\\ into \\, and sed turns \\ into \).
6264 sed -n \
6265 "s/'/'\\\\''/g;
6266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6269 # `set' quotes correctly as required by POSIX, so do not add quotes.
6270 sed -n \
6271 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6273 esac;
6275 sed '
6276 t clear
6277 : clear
6278 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6279 t end
6280 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6281 : end' >>confcache
6282 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6283 if test -w $cache_file; then
6284 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6285 cat confcache >$cache_file
6286 else
6287 echo "not updating unwritable cache $cache_file"
6290 rm -f confcache
6292 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6293 # Let make expand exec_prefix.
6294 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6296 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6297 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6298 # trailing colons and then remove the whole line if VPATH becomes empty
6299 # (actually we leave an empty line to preserve line numbers).
6300 if test "x$srcdir" = x.; then
6301 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6302 s/:*\$(srcdir):*/:/;
6303 s/:*\${srcdir}:*/:/;
6304 s/:*@srcdir@:*/:/;
6305 s/^\([^=]*=[ ]*\):*/\1/;
6306 s/:*$//;
6307 s/^[^=]*=[ ]*$//;
6311 DEFS=-DHAVE_CONFIG_H
6313 ac_libobjs=
6314 ac_ltlibobjs=
6315 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6316 # 1. Remove the extension, and $U if already installed.
6317 ac_i=`echo "$ac_i" |
6318 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6319 # 2. Add them.
6320 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6321 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6322 done
6323 LIBOBJS=$ac_libobjs
6325 LTLIBOBJS=$ac_ltlibobjs
6328 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6329 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6330 Usually this means the macro was only invoked conditionally." >&5
6331 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6332 Usually this means the macro was only invoked conditionally." >&2;}
6333 { (exit 1); exit 1; }; }
6335 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6336 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6337 Usually this means the macro was only invoked conditionally." >&5
6338 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6339 Usually this means the macro was only invoked conditionally." >&2;}
6340 { (exit 1); exit 1; }; }
6342 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6343 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6344 Usually this means the macro was only invoked conditionally." >&5
6345 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6346 Usually this means the macro was only invoked conditionally." >&2;}
6347 { (exit 1); exit 1; }; }
6350 : ${CONFIG_STATUS=./config.status}
6351 ac_clean_files_save=$ac_clean_files
6352 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6353 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6354 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6355 cat >$CONFIG_STATUS <<_ACEOF
6356 #! $SHELL
6357 # Generated by $as_me.
6358 # Run this file to recreate the current configuration.
6359 # Compiler output produced by configure, useful for debugging
6360 # configure, is in config.log if it exists.
6362 debug=false
6363 ac_cs_recheck=false
6364 ac_cs_silent=false
6365 SHELL=\${CONFIG_SHELL-$SHELL}
6366 _ACEOF
6368 cat >>$CONFIG_STATUS <<\_ACEOF
6369 ## --------------------- ##
6370 ## M4sh Initialization. ##
6371 ## --------------------- ##
6373 # Be Bourne compatible
6374 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6375 emulate sh
6376 NULLCMD=:
6377 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6378 # is contrary to our usage. Disable this feature.
6379 alias -g '${1+"$@"}'='"$@"'
6380 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6381 set -o posix
6383 DUALCASE=1; export DUALCASE # for MKS sh
6385 # Support unset when possible.
6386 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6387 as_unset=unset
6388 else
6389 as_unset=false
6393 # Work around bugs in pre-3.0 UWIN ksh.
6394 $as_unset ENV MAIL MAILPATH
6395 PS1='$ '
6396 PS2='> '
6397 PS4='+ '
6399 # NLS nuisances.
6400 for as_var in \
6401 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6402 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6403 LC_TELEPHONE LC_TIME
6405 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6406 eval $as_var=C; export $as_var
6407 else
6408 $as_unset $as_var
6410 done
6412 # Required to use basename.
6413 if expr a : '\(a\)' >/dev/null 2>&1; then
6414 as_expr=expr
6415 else
6416 as_expr=false
6419 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6420 as_basename=basename
6421 else
6422 as_basename=false
6426 # Name of the executable.
6427 as_me=`$as_basename "$0" ||
6428 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6429 X"$0" : 'X\(//\)$' \| \
6430 X"$0" : 'X\(/\)$' \| \
6431 . : '\(.\)' 2>/dev/null ||
6432 echo X/"$0" |
6433 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6434 /^X\/\(\/\/\)$/{ s//\1/; q; }
6435 /^X\/\(\/\).*/{ s//\1/; q; }
6436 s/.*/./; q'`
6439 # PATH needs CR, and LINENO needs CR and PATH.
6440 # Avoid depending upon Character Ranges.
6441 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6442 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6443 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6444 as_cr_digits='0123456789'
6445 as_cr_alnum=$as_cr_Letters$as_cr_digits
6447 # The user is always right.
6448 if test "${PATH_SEPARATOR+set}" != set; then
6449 echo "#! /bin/sh" >conf$$.sh
6450 echo "exit 0" >>conf$$.sh
6451 chmod +x conf$$.sh
6452 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6453 PATH_SEPARATOR=';'
6454 else
6455 PATH_SEPARATOR=:
6457 rm -f conf$$.sh
6461 as_lineno_1=$LINENO
6462 as_lineno_2=$LINENO
6463 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6464 test "x$as_lineno_1" != "x$as_lineno_2" &&
6465 test "x$as_lineno_3" = "x$as_lineno_2" || {
6466 # Find who we are. Look in the path if we contain no path at all
6467 # relative or not.
6468 case $0 in
6469 *[\\/]* ) as_myself=$0 ;;
6470 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6476 done
6479 esac
6480 # We did not find ourselves, most probably we were run as `sh COMMAND'
6481 # in which case we are not to be found in the path.
6482 if test "x$as_myself" = x; then
6483 as_myself=$0
6485 if test ! -f "$as_myself"; then
6486 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6487 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6488 { (exit 1); exit 1; }; }
6490 case $CONFIG_SHELL in
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for as_base in sh bash ksh sh5; do
6498 case $as_dir in
6500 if ("$as_dir/$as_base" -c '
6501 as_lineno_1=$LINENO
6502 as_lineno_2=$LINENO
6503 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6504 test "x$as_lineno_1" != "x$as_lineno_2" &&
6505 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6506 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6507 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6508 CONFIG_SHELL=$as_dir/$as_base
6509 export CONFIG_SHELL
6510 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6511 fi;;
6512 esac
6513 done
6514 done
6516 esac
6518 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6519 # uniformly replaced by the line number. The first 'sed' inserts a
6520 # line-number line before each line; the second 'sed' does the real
6521 # work. The second script uses 'N' to pair each line-number line
6522 # with the numbered line, and appends trailing '-' during
6523 # substitution so that $LINENO is not a special case at line end.
6524 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6525 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6526 sed '=' <$as_myself |
6527 sed '
6529 s,$,-,
6530 : loop
6531 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6532 t loop
6533 s,-$,,
6534 s,^['$as_cr_digits']*\n,,
6535 ' >$as_me.lineno &&
6536 chmod +x $as_me.lineno ||
6537 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6538 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6539 { (exit 1); exit 1; }; }
6541 # Don't try to exec as it changes $[0], causing all sort of problems
6542 # (the dirname of $[0] is not the place where we might find the
6543 # original and so on. Autoconf is especially sensible to this).
6544 . ./$as_me.lineno
6545 # Exit status is that of the last command.
6546 exit
6550 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6551 *c*,-n*) ECHO_N= ECHO_C='
6552 ' ECHO_T=' ' ;;
6553 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6554 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6555 esac
6557 if expr a : '\(a\)' >/dev/null 2>&1; then
6558 as_expr=expr
6559 else
6560 as_expr=false
6563 rm -f conf$$ conf$$.exe conf$$.file
6564 echo >conf$$.file
6565 if ln -s conf$$.file conf$$ 2>/dev/null; then
6566 # We could just check for DJGPP; but this test a) works b) is more generic
6567 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6568 if test -f conf$$.exe; then
6569 # Don't use ln at all; we don't have any links
6570 as_ln_s='cp -p'
6571 else
6572 as_ln_s='ln -s'
6574 elif ln conf$$.file conf$$ 2>/dev/null; then
6575 as_ln_s=ln
6576 else
6577 as_ln_s='cp -p'
6579 rm -f conf$$ conf$$.exe conf$$.file
6581 if mkdir -p . 2>/dev/null; then
6582 as_mkdir_p=:
6583 else
6584 test -d ./-p && rmdir ./-p
6585 as_mkdir_p=false
6588 as_executable_p="test -f"
6590 # Sed expression to map a string onto a valid CPP name.
6591 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6593 # Sed expression to map a string onto a valid variable name.
6594 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6597 # IFS
6598 # We need space, tab and new line, in precisely that order.
6599 as_nl='
6601 IFS=" $as_nl"
6603 # CDPATH.
6604 $as_unset CDPATH
6606 exec 6>&1
6608 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6609 # report actual input values of CONFIG_FILES etc. instead of their
6610 # values after options handling. Logging --version etc. is OK.
6611 exec 5>>config.log
6613 echo
6614 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6615 ## Running $as_me. ##
6616 _ASBOX
6617 } >&5
6618 cat >&5 <<_CSEOF
6620 This file was extended by $as_me, which was
6621 generated by GNU Autoconf 2.59. Invocation command line was
6623 CONFIG_FILES = $CONFIG_FILES
6624 CONFIG_HEADERS = $CONFIG_HEADERS
6625 CONFIG_LINKS = $CONFIG_LINKS
6626 CONFIG_COMMANDS = $CONFIG_COMMANDS
6627 $ $0 $@
6629 _CSEOF
6630 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6631 echo >&5
6632 _ACEOF
6634 # Files that config.status was made for.
6635 if test -n "$ac_config_files"; then
6636 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6639 if test -n "$ac_config_headers"; then
6640 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6643 if test -n "$ac_config_links"; then
6644 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6647 if test -n "$ac_config_commands"; then
6648 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6651 cat >>$CONFIG_STATUS <<\_ACEOF
6653 ac_cs_usage="\
6654 \`$as_me' instantiates files from templates according to the
6655 current configuration.
6657 Usage: $0 [OPTIONS] [FILE]...
6659 -h, --help print this help, then exit
6660 -V, --version print version number, then exit
6661 -q, --quiet do not print progress messages
6662 -d, --debug don't remove temporary files
6663 --recheck update $as_me by reconfiguring in the same conditions
6664 --file=FILE[:TEMPLATE]
6665 instantiate the configuration file FILE
6666 --header=FILE[:TEMPLATE]
6667 instantiate the configuration header FILE
6669 Configuration files:
6670 $config_files
6672 Configuration headers:
6673 $config_headers
6675 Configuration commands:
6676 $config_commands
6678 Report bugs to <bug-autoconf@gnu.org>."
6679 _ACEOF
6681 cat >>$CONFIG_STATUS <<_ACEOF
6682 ac_cs_version="\\
6683 config.status
6684 configured by $0, generated by GNU Autoconf 2.59,
6685 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6687 Copyright (C) 2003 Free Software Foundation, Inc.
6688 This config.status script is free software; the Free Software Foundation
6689 gives unlimited permission to copy, distribute and modify it."
6690 srcdir=$srcdir
6691 INSTALL="$INSTALL"
6692 _ACEOF
6694 cat >>$CONFIG_STATUS <<\_ACEOF
6695 # If no file are specified by the user, then we need to provide default
6696 # value. By we need to know if files were specified by the user.
6697 ac_need_defaults=:
6698 while test $# != 0
6700 case $1 in
6701 --*=*)
6702 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6703 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6704 ac_shift=:
6707 ac_option=$1
6708 ac_optarg=$2
6709 ac_shift=shift
6711 *) # This is not an option, so the user has probably given explicit
6712 # arguments.
6713 ac_option=$1
6714 ac_need_defaults=false;;
6715 esac
6717 case $ac_option in
6718 # Handling of the options.
6719 _ACEOF
6720 cat >>$CONFIG_STATUS <<\_ACEOF
6721 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6722 ac_cs_recheck=: ;;
6723 --version | --vers* | -V )
6724 echo "$ac_cs_version"; exit 0 ;;
6725 --he | --h)
6726 # Conflict between --help and --header
6727 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6728 Try \`$0 --help' for more information." >&5
6729 echo "$as_me: error: ambiguous option: $1
6730 Try \`$0 --help' for more information." >&2;}
6731 { (exit 1); exit 1; }; };;
6732 --help | --hel | -h )
6733 echo "$ac_cs_usage"; exit 0 ;;
6734 --debug | --d* | -d )
6735 debug=: ;;
6736 --file | --fil | --fi | --f )
6737 $ac_shift
6738 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6739 ac_need_defaults=false;;
6740 --header | --heade | --head | --hea )
6741 $ac_shift
6742 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6743 ac_need_defaults=false;;
6744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6745 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6746 ac_cs_silent=: ;;
6748 # This is an error.
6749 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6750 Try \`$0 --help' for more information." >&5
6751 echo "$as_me: error: unrecognized option: $1
6752 Try \`$0 --help' for more information." >&2;}
6753 { (exit 1); exit 1; }; } ;;
6755 *) ac_config_targets="$ac_config_targets $1" ;;
6757 esac
6758 shift
6759 done
6761 ac_configure_extra_args=
6763 if $ac_cs_silent; then
6764 exec 6>/dev/null
6765 ac_configure_extra_args="$ac_configure_extra_args --silent"
6768 _ACEOF
6769 cat >>$CONFIG_STATUS <<_ACEOF
6770 if \$ac_cs_recheck; then
6771 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6772 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6775 _ACEOF
6777 cat >>$CONFIG_STATUS <<_ACEOF
6779 # INIT-COMMANDS section.
6782 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6783 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
6784 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
6785 # from automake.
6786 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
6787 # Capture the value of LINGUAS because we need it to compute CATALOGS.
6788 LINGUAS="${LINGUAS-%UNSET%}"
6791 _ACEOF
6795 cat >>$CONFIG_STATUS <<\_ACEOF
6796 for ac_config_target in $ac_config_targets
6798 case "$ac_config_target" in
6799 # Handling of arguments.
6800 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6801 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
6802 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6803 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6804 "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
6805 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6806 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6807 { (exit 1); exit 1; }; };;
6808 esac
6809 done
6811 # If the user did not use the arguments to specify the items to instantiate,
6812 # then the envvar interface is used. Set only those that are not.
6813 # We use the long form for the default assignment because of an extremely
6814 # bizarre bug on SunOS 4.1.3.
6815 if $ac_need_defaults; then
6816 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6817 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6818 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6821 # Have a temporary directory for convenience. Make it in the build tree
6822 # simply because there is no reason to put it here, and in addition,
6823 # creating and moving files from /tmp can sometimes cause problems.
6824 # Create a temporary directory, and hook for its removal unless debugging.
6825 $debug ||
6827 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6828 trap '{ (exit 1); exit 1; }' 1 2 13 15
6831 # Create a (secure) tmp directory for tmp files.
6834 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6835 test -n "$tmp" && test -d "$tmp"
6836 } ||
6838 tmp=./confstat$$-$RANDOM
6839 (umask 077 && mkdir $tmp)
6840 } ||
6842 echo "$me: cannot create a temporary directory in ." >&2
6843 { (exit 1); exit 1; }
6846 _ACEOF
6848 cat >>$CONFIG_STATUS <<_ACEOF
6851 # CONFIG_FILES section.
6854 # No need to generate the scripts if there are no CONFIG_FILES.
6855 # This happens for instance when ./config.status config.h
6856 if test -n "\$CONFIG_FILES"; then
6857 # Protect against being on the right side of a sed subst in config.status.
6858 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6859 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6860 s,@SHELL@,$SHELL,;t t
6861 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6862 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6863 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6864 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6865 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6866 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6867 s,@exec_prefix@,$exec_prefix,;t t
6868 s,@prefix@,$prefix,;t t
6869 s,@program_transform_name@,$program_transform_name,;t t
6870 s,@bindir@,$bindir,;t t
6871 s,@sbindir@,$sbindir,;t t
6872 s,@libexecdir@,$libexecdir,;t t
6873 s,@datadir@,$datadir,;t t
6874 s,@sysconfdir@,$sysconfdir,;t t
6875 s,@sharedstatedir@,$sharedstatedir,;t t
6876 s,@localstatedir@,$localstatedir,;t t
6877 s,@libdir@,$libdir,;t t
6878 s,@includedir@,$includedir,;t t
6879 s,@oldincludedir@,$oldincludedir,;t t
6880 s,@infodir@,$infodir,;t t
6881 s,@mandir@,$mandir,;t t
6882 s,@build_alias@,$build_alias,;t t
6883 s,@host_alias@,$host_alias,;t t
6884 s,@target_alias@,$target_alias,;t t
6885 s,@DEFS@,$DEFS,;t t
6886 s,@ECHO_C@,$ECHO_C,;t t
6887 s,@ECHO_N@,$ECHO_N,;t t
6888 s,@ECHO_T@,$ECHO_T,;t t
6889 s,@LIBS@,$LIBS,;t t
6890 s,@build@,$build,;t t
6891 s,@build_cpu@,$build_cpu,;t t
6892 s,@build_vendor@,$build_vendor,;t t
6893 s,@build_os@,$build_os,;t t
6894 s,@host@,$host,;t t
6895 s,@host_cpu@,$host_cpu,;t t
6896 s,@host_vendor@,$host_vendor,;t t
6897 s,@host_os@,$host_os,;t t
6898 s,@target@,$target,;t t
6899 s,@target_cpu@,$target_cpu,;t t
6900 s,@target_vendor@,$target_vendor,;t t
6901 s,@target_os@,$target_os,;t t
6902 s,@CC@,$CC,;t t
6903 s,@CFLAGS@,$CFLAGS,;t t
6904 s,@LDFLAGS@,$LDFLAGS,;t t
6905 s,@CPPFLAGS@,$CPPFLAGS,;t t
6906 s,@ac_ct_CC@,$ac_ct_CC,;t t
6907 s,@EXEEXT@,$EXEEXT,;t t
6908 s,@OBJEXT@,$OBJEXT,;t t
6909 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6910 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6911 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6912 s,@CYGPATH_W@,$CYGPATH_W,;t t
6913 s,@PACKAGE@,$PACKAGE,;t t
6914 s,@VERSION@,$VERSION,;t t
6915 s,@ACLOCAL@,$ACLOCAL,;t t
6916 s,@AUTOCONF@,$AUTOCONF,;t t
6917 s,@AUTOMAKE@,$AUTOMAKE,;t t
6918 s,@AUTOHEADER@,$AUTOHEADER,;t t
6919 s,@MAKEINFO@,$MAKEINFO,;t t
6920 s,@install_sh@,$install_sh,;t t
6921 s,@STRIP@,$STRIP,;t t
6922 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6923 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6924 s,@mkdir_p@,$mkdir_p,;t t
6925 s,@AWK@,$AWK,;t t
6926 s,@SET_MAKE@,$SET_MAKE,;t t
6927 s,@am__leading_dot@,$am__leading_dot,;t t
6928 s,@AMTAR@,$AMTAR,;t t
6929 s,@am__tar@,$am__tar,;t t
6930 s,@am__untar@,$am__untar,;t t
6931 s,@DEPDIR@,$DEPDIR,;t t
6932 s,@am__include@,$am__include,;t t
6933 s,@am__quote@,$am__quote,;t t
6934 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6935 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6936 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6937 s,@CCDEPMODE@,$CCDEPMODE,;t t
6938 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6939 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6940 s,@LN_S@,$LN_S,;t t
6941 s,@RANLIB@,$RANLIB,;t t
6942 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6943 s,@LIBTOOL@,$LIBTOOL,;t t
6944 s,@USE_NLS@,$USE_NLS,;t t
6945 s,@LIBINTL@,$LIBINTL,;t t
6946 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
6947 s,@INCINTL@,$INCINTL,;t t
6948 s,@XGETTEXT@,$XGETTEXT,;t t
6949 s,@GMSGFMT@,$GMSGFMT,;t t
6950 s,@POSUB@,$POSUB,;t t
6951 s,@CATALOGS@,$CATALOGS,;t t
6952 s,@DATADIRNAME@,$DATADIRNAME,;t t
6953 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6954 s,@GENCAT@,$GENCAT,;t t
6955 s,@CATOBJEXT@,$CATOBJEXT,;t t
6956 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
6957 s,@MSGFMT@,$MSGFMT,;t t
6958 s,@MSGMERGE@,$MSGMERGE,;t t
6959 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6960 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6961 s,@MAINT@,$MAINT,;t t
6962 s,@CPP@,$CPP,;t t
6963 s,@EGREP@,$EGREP,;t t
6964 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6965 s,@NO_WERROR@,$NO_WERROR,;t t
6966 s,@datarootdir@,$datarootdir,;t t
6967 s,@docdir@,$docdir,;t t
6968 s,@htmldir@,$htmldir,;t t
6969 s,@LIBOBJS@,$LIBOBJS,;t t
6970 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6971 CEOF
6973 _ACEOF
6975 cat >>$CONFIG_STATUS <<\_ACEOF
6976 # Split the substitutions into bite-sized pieces for seds with
6977 # small command number limits, like on Digital OSF/1 and HP-UX.
6978 ac_max_sed_lines=48
6979 ac_sed_frag=1 # Number of current file.
6980 ac_beg=1 # First line for current file.
6981 ac_end=$ac_max_sed_lines # Line after last line for current file.
6982 ac_more_lines=:
6983 ac_sed_cmds=
6984 while $ac_more_lines; do
6985 if test $ac_beg -gt 1; then
6986 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6987 else
6988 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6990 if test ! -s $tmp/subs.frag; then
6991 ac_more_lines=false
6992 else
6993 # The purpose of the label and of the branching condition is to
6994 # speed up the sed processing (if there are no `@' at all, there
6995 # is no need to browse any of the substitutions).
6996 # These are the two extra sed commands mentioned above.
6997 (echo ':t
6998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6999 if test -z "$ac_sed_cmds"; then
7000 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7001 else
7002 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7004 ac_sed_frag=`expr $ac_sed_frag + 1`
7005 ac_beg=$ac_end
7006 ac_end=`expr $ac_end + $ac_max_sed_lines`
7008 done
7009 if test -z "$ac_sed_cmds"; then
7010 ac_sed_cmds=cat
7012 fi # test -n "$CONFIG_FILES"
7014 _ACEOF
7015 cat >>$CONFIG_STATUS <<\_ACEOF
7016 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7017 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7018 case $ac_file in
7019 - | *:- | *:-:* ) # input from stdin
7020 cat >$tmp/stdin
7021 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7022 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7023 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7024 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7025 * ) ac_file_in=$ac_file.in ;;
7026 esac
7028 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7029 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7030 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7031 X"$ac_file" : 'X\(//\)[^/]' \| \
7032 X"$ac_file" : 'X\(//\)$' \| \
7033 X"$ac_file" : 'X\(/\)' \| \
7034 . : '\(.\)' 2>/dev/null ||
7035 echo X"$ac_file" |
7036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7038 /^X\(\/\/\)$/{ s//\1/; q; }
7039 /^X\(\/\).*/{ s//\1/; q; }
7040 s/.*/./; q'`
7041 { if $as_mkdir_p; then
7042 mkdir -p "$ac_dir"
7043 else
7044 as_dir="$ac_dir"
7045 as_dirs=
7046 while test ! -d "$as_dir"; do
7047 as_dirs="$as_dir $as_dirs"
7048 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7050 X"$as_dir" : 'X\(//\)[^/]' \| \
7051 X"$as_dir" : 'X\(//\)$' \| \
7052 X"$as_dir" : 'X\(/\)' \| \
7053 . : '\(.\)' 2>/dev/null ||
7054 echo X"$as_dir" |
7055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7057 /^X\(\/\/\)$/{ s//\1/; q; }
7058 /^X\(\/\).*/{ s//\1/; q; }
7059 s/.*/./; q'`
7060 done
7061 test ! -n "$as_dirs" || mkdir $as_dirs
7062 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7063 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7064 { (exit 1); exit 1; }; }; }
7066 ac_builddir=.
7068 if test "$ac_dir" != .; then
7069 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7070 # A "../" for each directory in $ac_dir_suffix.
7071 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7072 else
7073 ac_dir_suffix= ac_top_builddir=
7076 case $srcdir in
7077 .) # No --srcdir option. We are building in place.
7078 ac_srcdir=.
7079 if test -z "$ac_top_builddir"; then
7080 ac_top_srcdir=.
7081 else
7082 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7083 fi ;;
7084 [\\/]* | ?:[\\/]* ) # Absolute path.
7085 ac_srcdir=$srcdir$ac_dir_suffix;
7086 ac_top_srcdir=$srcdir ;;
7087 *) # Relative path.
7088 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7089 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7090 esac
7092 # Do not use `cd foo && pwd` to compute absolute paths, because
7093 # the directories may not exist.
7094 case `pwd` in
7095 .) ac_abs_builddir="$ac_dir";;
7097 case "$ac_dir" in
7098 .) ac_abs_builddir=`pwd`;;
7099 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7100 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7101 esac;;
7102 esac
7103 case $ac_abs_builddir in
7104 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7106 case ${ac_top_builddir}. in
7107 .) ac_abs_top_builddir=$ac_abs_builddir;;
7108 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7109 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7110 esac;;
7111 esac
7112 case $ac_abs_builddir in
7113 .) ac_abs_srcdir=$ac_srcdir;;
7115 case $ac_srcdir in
7116 .) ac_abs_srcdir=$ac_abs_builddir;;
7117 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7118 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7119 esac;;
7120 esac
7121 case $ac_abs_builddir in
7122 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7124 case $ac_top_srcdir in
7125 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7126 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7127 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7128 esac;;
7129 esac
7132 case $INSTALL in
7133 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7134 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7135 esac
7137 if test x"$ac_file" != x-; then
7138 { echo "$as_me:$LINENO: creating $ac_file" >&5
7139 echo "$as_me: creating $ac_file" >&6;}
7140 rm -f "$ac_file"
7142 # Let's still pretend it is `configure' which instantiates (i.e., don't
7143 # use $as_me), people would be surprised to read:
7144 # /* config.h. Generated by config.status. */
7145 if test x"$ac_file" = x-; then
7146 configure_input=
7147 else
7148 configure_input="$ac_file. "
7150 configure_input=$configure_input"Generated from `echo $ac_file_in |
7151 sed 's,.*/,,'` by configure."
7153 # First look for the input files in the build tree, otherwise in the
7154 # src tree.
7155 ac_file_inputs=`IFS=:
7156 for f in $ac_file_in; do
7157 case $f in
7158 -) echo $tmp/stdin ;;
7159 [\\/$]*)
7160 # Absolute (can't be DOS-style, as IFS=:)
7161 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7162 echo "$as_me: error: cannot find input file: $f" >&2;}
7163 { (exit 1); exit 1; }; }
7164 echo "$f";;
7165 *) # Relative
7166 if test -f "$f"; then
7167 # Build tree
7168 echo "$f"
7169 elif test -f "$srcdir/$f"; then
7170 # Source tree
7171 echo "$srcdir/$f"
7172 else
7173 # /dev/null tree
7174 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7175 echo "$as_me: error: cannot find input file: $f" >&2;}
7176 { (exit 1); exit 1; }; }
7177 fi;;
7178 esac
7179 done` || { (exit 1); exit 1; }
7180 _ACEOF
7181 cat >>$CONFIG_STATUS <<_ACEOF
7182 sed "$ac_vpsub
7183 $extrasub
7184 _ACEOF
7185 cat >>$CONFIG_STATUS <<\_ACEOF
7187 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7188 s,@configure_input@,$configure_input,;t t
7189 s,@srcdir@,$ac_srcdir,;t t
7190 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7191 s,@top_srcdir@,$ac_top_srcdir,;t t
7192 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7193 s,@builddir@,$ac_builddir,;t t
7194 s,@abs_builddir@,$ac_abs_builddir,;t t
7195 s,@top_builddir@,$ac_top_builddir,;t t
7196 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7197 s,@INSTALL@,$ac_INSTALL,;t t
7198 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7199 rm -f $tmp/stdin
7200 if test x"$ac_file" != x-; then
7201 mv $tmp/out $ac_file
7202 else
7203 cat $tmp/out
7204 rm -f $tmp/out
7207 done
7208 _ACEOF
7209 cat >>$CONFIG_STATUS <<\_ACEOF
7212 # CONFIG_HEADER section.
7215 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7216 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7218 # ac_d sets the value in "#define NAME VALUE" lines.
7219 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7220 ac_dB='[ ].*$,\1#\2'
7221 ac_dC=' '
7222 ac_dD=',;t'
7223 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7224 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7225 ac_uB='$,\1#\2define\3'
7226 ac_uC=' '
7227 ac_uD=',;t'
7229 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7230 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7231 case $ac_file in
7232 - | *:- | *:-:* ) # input from stdin
7233 cat >$tmp/stdin
7234 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7235 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7236 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7237 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7238 * ) ac_file_in=$ac_file.in ;;
7239 esac
7241 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7242 echo "$as_me: creating $ac_file" >&6;}
7244 # First look for the input files in the build tree, otherwise in the
7245 # src tree.
7246 ac_file_inputs=`IFS=:
7247 for f in $ac_file_in; do
7248 case $f in
7249 -) echo $tmp/stdin ;;
7250 [\\/$]*)
7251 # Absolute (can't be DOS-style, as IFS=:)
7252 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7253 echo "$as_me: error: cannot find input file: $f" >&2;}
7254 { (exit 1); exit 1; }; }
7255 # Do quote $f, to prevent DOS paths from being IFS'd.
7256 echo "$f";;
7257 *) # Relative
7258 if test -f "$f"; then
7259 # Build tree
7260 echo "$f"
7261 elif test -f "$srcdir/$f"; then
7262 # Source tree
7263 echo "$srcdir/$f"
7264 else
7265 # /dev/null tree
7266 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7267 echo "$as_me: error: cannot find input file: $f" >&2;}
7268 { (exit 1); exit 1; }; }
7269 fi;;
7270 esac
7271 done` || { (exit 1); exit 1; }
7272 # Remove the trailing spaces.
7273 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7275 _ACEOF
7277 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7278 # `conftest.undefs', that substitutes the proper values into
7279 # config.h.in to produce config.h. The first handles `#define'
7280 # templates, and the second `#undef' templates.
7281 # And first: Protect against being on the right side of a sed subst in
7282 # config.status. Protect against being in an unquoted here document
7283 # in config.status.
7284 rm -f conftest.defines conftest.undefs
7285 # Using a here document instead of a string reduces the quoting nightmare.
7286 # Putting comments in sed scripts is not portable.
7288 # `end' is used to avoid that the second main sed command (meant for
7289 # 0-ary CPP macros) applies to n-ary macro definitions.
7290 # See the Autoconf documentation for `clear'.
7291 cat >confdef2sed.sed <<\_ACEOF
7292 s/[\\&,]/\\&/g
7293 s,[\\$`],\\&,g
7294 t clear
7295 : clear
7296 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7297 t end
7298 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7299 : end
7300 _ACEOF
7301 # If some macros were called several times there might be several times
7302 # the same #defines, which is useless. Nevertheless, we may not want to
7303 # sort them, since we want the *last* AC-DEFINE to be honored.
7304 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7305 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7306 rm -f confdef2sed.sed
7308 # This sed command replaces #undef with comments. This is necessary, for
7309 # example, in the case of _POSIX_SOURCE, which is predefined and required
7310 # on some systems where configure will not decide to define it.
7311 cat >>conftest.undefs <<\_ACEOF
7312 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7313 _ACEOF
7315 # Break up conftest.defines because some shells have a limit on the size
7316 # of here documents, and old seds have small limits too (100 cmds).
7317 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7318 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7319 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7320 echo ' :' >>$CONFIG_STATUS
7321 rm -f conftest.tail
7322 while grep . conftest.defines >/dev/null
7324 # Write a limited-size here document to $tmp/defines.sed.
7325 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7326 # Speed up: don't consider the non `#define' lines.
7327 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7328 # Work around the forget-to-reset-the-flag bug.
7329 echo 't clr' >>$CONFIG_STATUS
7330 echo ': clr' >>$CONFIG_STATUS
7331 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7332 echo 'CEOF
7333 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7334 rm -f $tmp/in
7335 mv $tmp/out $tmp/in
7336 ' >>$CONFIG_STATUS
7337 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7338 rm -f conftest.defines
7339 mv conftest.tail conftest.defines
7340 done
7341 rm -f conftest.defines
7342 echo ' fi # grep' >>$CONFIG_STATUS
7343 echo >>$CONFIG_STATUS
7345 # Break up conftest.undefs because some shells have a limit on the size
7346 # of here documents, and old seds have small limits too (100 cmds).
7347 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7348 rm -f conftest.tail
7349 while grep . conftest.undefs >/dev/null
7351 # Write a limited-size here document to $tmp/undefs.sed.
7352 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7353 # Speed up: don't consider the non `#undef'
7354 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7355 # Work around the forget-to-reset-the-flag bug.
7356 echo 't clr' >>$CONFIG_STATUS
7357 echo ': clr' >>$CONFIG_STATUS
7358 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7359 echo 'CEOF
7360 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7361 rm -f $tmp/in
7362 mv $tmp/out $tmp/in
7363 ' >>$CONFIG_STATUS
7364 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7365 rm -f conftest.undefs
7366 mv conftest.tail conftest.undefs
7367 done
7368 rm -f conftest.undefs
7370 cat >>$CONFIG_STATUS <<\_ACEOF
7371 # Let's still pretend it is `configure' which instantiates (i.e., don't
7372 # use $as_me), people would be surprised to read:
7373 # /* config.h. Generated by config.status. */
7374 if test x"$ac_file" = x-; then
7375 echo "/* Generated by configure. */" >$tmp/config.h
7376 else
7377 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7379 cat $tmp/in >>$tmp/config.h
7380 rm -f $tmp/in
7381 if test x"$ac_file" != x-; then
7382 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7383 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7384 echo "$as_me: $ac_file is unchanged" >&6;}
7385 else
7386 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7388 X"$ac_file" : 'X\(//\)[^/]' \| \
7389 X"$ac_file" : 'X\(//\)$' \| \
7390 X"$ac_file" : 'X\(/\)' \| \
7391 . : '\(.\)' 2>/dev/null ||
7392 echo X"$ac_file" |
7393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7395 /^X\(\/\/\)$/{ s//\1/; q; }
7396 /^X\(\/\).*/{ s//\1/; q; }
7397 s/.*/./; q'`
7398 { if $as_mkdir_p; then
7399 mkdir -p "$ac_dir"
7400 else
7401 as_dir="$ac_dir"
7402 as_dirs=
7403 while test ! -d "$as_dir"; do
7404 as_dirs="$as_dir $as_dirs"
7405 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7407 X"$as_dir" : 'X\(//\)[^/]' \| \
7408 X"$as_dir" : 'X\(//\)$' \| \
7409 X"$as_dir" : 'X\(/\)' \| \
7410 . : '\(.\)' 2>/dev/null ||
7411 echo X"$as_dir" |
7412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7414 /^X\(\/\/\)$/{ s//\1/; q; }
7415 /^X\(\/\).*/{ s//\1/; q; }
7416 s/.*/./; q'`
7417 done
7418 test ! -n "$as_dirs" || mkdir $as_dirs
7419 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7420 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7421 { (exit 1); exit 1; }; }; }
7423 rm -f $ac_file
7424 mv $tmp/config.h $ac_file
7426 else
7427 cat $tmp/config.h
7428 rm -f $tmp/config.h
7430 # Compute $ac_file's index in $config_headers.
7431 _am_stamp_count=1
7432 for _am_header in $config_headers :; do
7433 case $_am_header in
7434 $ac_file | $ac_file:* )
7435 break ;;
7437 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7438 esac
7439 done
7440 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7441 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7442 X$ac_file : 'X\(//\)[^/]' \| \
7443 X$ac_file : 'X\(//\)$' \| \
7444 X$ac_file : 'X\(/\)' \| \
7445 . : '\(.\)' 2>/dev/null ||
7446 echo X$ac_file |
7447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7449 /^X\(\/\/\)$/{ s//\1/; q; }
7450 /^X\(\/\).*/{ s//\1/; q; }
7451 s/.*/./; q'`/stamp-h$_am_stamp_count
7452 done
7453 _ACEOF
7454 cat >>$CONFIG_STATUS <<\_ACEOF
7457 # CONFIG_COMMANDS section.
7459 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7460 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7461 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7462 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7463 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7464 X"$ac_dest" : 'X\(//\)[^/]' \| \
7465 X"$ac_dest" : 'X\(//\)$' \| \
7466 X"$ac_dest" : 'X\(/\)' \| \
7467 . : '\(.\)' 2>/dev/null ||
7468 echo X"$ac_dest" |
7469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7470 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7471 /^X\(\/\/\)$/{ s//\1/; q; }
7472 /^X\(\/\).*/{ s//\1/; q; }
7473 s/.*/./; q'`
7474 { if $as_mkdir_p; then
7475 mkdir -p "$ac_dir"
7476 else
7477 as_dir="$ac_dir"
7478 as_dirs=
7479 while test ! -d "$as_dir"; do
7480 as_dirs="$as_dir $as_dirs"
7481 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7482 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7483 X"$as_dir" : 'X\(//\)[^/]' \| \
7484 X"$as_dir" : 'X\(//\)$' \| \
7485 X"$as_dir" : 'X\(/\)' \| \
7486 . : '\(.\)' 2>/dev/null ||
7487 echo X"$as_dir" |
7488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7490 /^X\(\/\/\)$/{ s//\1/; q; }
7491 /^X\(\/\).*/{ s//\1/; q; }
7492 s/.*/./; q'`
7493 done
7494 test ! -n "$as_dirs" || mkdir $as_dirs
7495 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7496 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7497 { (exit 1); exit 1; }; }; }
7499 ac_builddir=.
7501 if test "$ac_dir" != .; then
7502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7503 # A "../" for each directory in $ac_dir_suffix.
7504 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7505 else
7506 ac_dir_suffix= ac_top_builddir=
7509 case $srcdir in
7510 .) # No --srcdir option. We are building in place.
7511 ac_srcdir=.
7512 if test -z "$ac_top_builddir"; then
7513 ac_top_srcdir=.
7514 else
7515 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7516 fi ;;
7517 [\\/]* | ?:[\\/]* ) # Absolute path.
7518 ac_srcdir=$srcdir$ac_dir_suffix;
7519 ac_top_srcdir=$srcdir ;;
7520 *) # Relative path.
7521 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7522 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7523 esac
7525 # Do not use `cd foo && pwd` to compute absolute paths, because
7526 # the directories may not exist.
7527 case `pwd` in
7528 .) ac_abs_builddir="$ac_dir";;
7530 case "$ac_dir" in
7531 .) ac_abs_builddir=`pwd`;;
7532 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7533 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7534 esac;;
7535 esac
7536 case $ac_abs_builddir in
7537 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7539 case ${ac_top_builddir}. in
7540 .) ac_abs_top_builddir=$ac_abs_builddir;;
7541 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7542 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7543 esac;;
7544 esac
7545 case $ac_abs_builddir in
7546 .) ac_abs_srcdir=$ac_srcdir;;
7548 case $ac_srcdir in
7549 .) ac_abs_srcdir=$ac_abs_builddir;;
7550 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7551 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7552 esac;;
7553 esac
7554 case $ac_abs_builddir in
7555 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7557 case $ac_top_srcdir in
7558 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7559 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7560 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7561 esac;;
7562 esac
7565 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7566 echo "$as_me: executing $ac_dest commands" >&6;}
7567 case $ac_dest in
7568 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7569 # Strip MF so we end up with the name of the file.
7570 mf=`echo "$mf" | sed -e 's/:.*$//'`
7571 # Check whether this is an Automake generated Makefile or not.
7572 # We used to match only the files named `Makefile.in', but
7573 # some people rename them; so instead we look at the file content.
7574 # Grep'ing the first line is not enough: some people post-process
7575 # each Makefile.in and add a new line on top of each file to say so.
7576 # So let's grep whole file.
7577 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7578 dirpart=`(dirname "$mf") 2>/dev/null ||
7579 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7580 X"$mf" : 'X\(//\)[^/]' \| \
7581 X"$mf" : 'X\(//\)$' \| \
7582 X"$mf" : 'X\(/\)' \| \
7583 . : '\(.\)' 2>/dev/null ||
7584 echo X"$mf" |
7585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7586 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7587 /^X\(\/\/\)$/{ s//\1/; q; }
7588 /^X\(\/\).*/{ s//\1/; q; }
7589 s/.*/./; q'`
7590 else
7591 continue
7593 # Extract the definition of DEPDIR, am__include, and am__quote
7594 # from the Makefile without running `make'.
7595 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7596 test -z "$DEPDIR" && continue
7597 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7598 test -z "am__include" && continue
7599 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7600 # When using ansi2knr, U may be empty or an underscore; expand it
7601 U=`sed -n 's/^U = //p' < "$mf"`
7602 # Find all dependency output files, they are included files with
7603 # $(DEPDIR) in their names. We invoke sed twice because it is the
7604 # simplest approach to changing $(DEPDIR) to its actual value in the
7605 # expansion.
7606 for file in `sed -n "
7607 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7608 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7609 # Make sure the directory exists.
7610 test -f "$dirpart/$file" && continue
7611 fdir=`(dirname "$file") 2>/dev/null ||
7612 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7613 X"$file" : 'X\(//\)[^/]' \| \
7614 X"$file" : 'X\(//\)$' \| \
7615 X"$file" : 'X\(/\)' \| \
7616 . : '\(.\)' 2>/dev/null ||
7617 echo X"$file" |
7618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7619 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7620 /^X\(\/\/\)$/{ s//\1/; q; }
7621 /^X\(\/\).*/{ s//\1/; q; }
7622 s/.*/./; q'`
7623 { if $as_mkdir_p; then
7624 mkdir -p $dirpart/$fdir
7625 else
7626 as_dir=$dirpart/$fdir
7627 as_dirs=
7628 while test ! -d "$as_dir"; do
7629 as_dirs="$as_dir $as_dirs"
7630 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7631 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7632 X"$as_dir" : 'X\(//\)[^/]' \| \
7633 X"$as_dir" : 'X\(//\)$' \| \
7634 X"$as_dir" : 'X\(/\)' \| \
7635 . : '\(.\)' 2>/dev/null ||
7636 echo X"$as_dir" |
7637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7638 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7639 /^X\(\/\/\)$/{ s//\1/; q; }
7640 /^X\(\/\).*/{ s//\1/; q; }
7641 s/.*/./; q'`
7642 done
7643 test ! -n "$as_dirs" || mkdir $as_dirs
7644 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7645 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7646 { (exit 1); exit 1; }; }; }
7648 # echo "creating $dirpart/$file"
7649 echo '# dummy' > "$dirpart/$file"
7650 done
7651 done
7653 default-1 )
7654 for ac_file in $CONFIG_FILES; do
7655 # Support "outfile[:infile[:infile...]]"
7656 case "$ac_file" in
7657 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7658 esac
7659 # PO directories have a Makefile.in generated from Makefile.in.in.
7660 case "$ac_file" in */Makefile.in)
7661 # Adjust a relative srcdir.
7662 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7663 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
7664 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7665 # In autoconf-2.13 it is called $ac_given_srcdir.
7666 # In autoconf-2.50 it is called $srcdir.
7667 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7668 case "$ac_given_srcdir" in
7669 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7670 /*) top_srcdir="$ac_given_srcdir" ;;
7671 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
7672 esac
7673 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7674 rm -f "$ac_dir/POTFILES"
7675 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7676 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
7677 POMAKEFILEDEPS="POTFILES.in"
7678 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
7679 # on $ac_dir but don't depend on user-specified configuration
7680 # parameters.
7681 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
7682 # The LINGUAS file contains the set of available languages.
7683 if test -n "$OBSOLETE_ALL_LINGUAS"; then
7684 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
7686 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
7687 # Hide the ALL_LINGUAS assigment from automake.
7688 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
7689 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
7690 else
7691 # The set of available languages was given in configure.in.
7692 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
7694 case "$ac_given_srcdir" in
7695 .) srcdirpre= ;;
7696 *) srcdirpre='$(srcdir)/' ;;
7697 esac
7698 POFILES=
7699 GMOFILES=
7700 UPDATEPOFILES=
7701 DUMMYPOFILES=
7702 for lang in $ALL_LINGUAS; do
7703 POFILES="$POFILES $srcdirpre$lang.po"
7704 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
7705 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
7706 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
7707 done
7708 # CATALOGS depends on both $ac_dir and the user's LINGUAS
7709 # environment variable.
7710 INST_LINGUAS=
7711 if test -n "$ALL_LINGUAS"; then
7712 for presentlang in $ALL_LINGUAS; do
7713 useit=no
7714 if test "%UNSET%" != "$LINGUAS"; then
7715 desiredlanguages="$LINGUAS"
7716 else
7717 desiredlanguages="$ALL_LINGUAS"
7719 for desiredlang in $desiredlanguages; do
7720 # Use the presentlang catalog if desiredlang is
7721 # a. equal to presentlang, or
7722 # b. a variant of presentlang (because in this case,
7723 # presentlang can be used as a fallback for messages
7724 # which are not translated in the desiredlang catalog).
7725 case "$desiredlang" in
7726 "$presentlang"*) useit=yes;;
7727 esac
7728 done
7729 if test $useit = yes; then
7730 INST_LINGUAS="$INST_LINGUAS $presentlang"
7732 done
7734 CATALOGS=
7735 if test -n "$INST_LINGUAS"; then
7736 for lang in $INST_LINGUAS; do
7737 CATALOGS="$CATALOGS $lang.gmo"
7738 done
7740 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7741 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7742 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
7743 if test -f "$f"; then
7744 case "$f" in
7745 *.orig | *.bak | *~) ;;
7746 *) cat "$f" >> "$ac_dir/Makefile" ;;
7747 esac
7749 done
7752 esac
7753 done ;;
7754 esac
7755 done
7756 _ACEOF
7758 cat >>$CONFIG_STATUS <<\_ACEOF
7760 { (exit 0); exit 0; }
7761 _ACEOF
7762 chmod +x $CONFIG_STATUS
7763 ac_clean_files=$ac_clean_files_save
7766 # configure is writing to config.log, and then calls config.status.
7767 # config.status does its own redirection, appending to config.log.
7768 # Unfortunately, on DOS this fails, as config.log is still kept open
7769 # by configure, so config.status won't be able to write to it; its
7770 # output is simply discarded. So we exec the FD to /dev/null,
7771 # effectively closing config.log, so it can be properly (re)opened and
7772 # appended to by config.status. When coming back to configure, we
7773 # need to make the FD available again.
7774 if test "$no_create" != yes; then
7775 ac_cs_success=:
7776 ac_config_status_args=
7777 test "$silent" = yes &&
7778 ac_config_status_args="$ac_config_status_args --quiet"
7779 exec 5>/dev/null
7780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7781 exec 5>>config.log
7782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7783 # would make configure fail if this is the last instruction.
7784 $ac_cs_success || { (exit 1); exit 1; }