* ld-elf/header.d: Allow arbitrary lines between "Program Header"
[binutils.git] / gprof / configure
blob8eda958c9eb9d567fde666e06d95921dec58ab33
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 GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE 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 ms"
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=
5081 if test -f ../intl/config.intl; then
5082 . ../intl/config.intl
5084 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5085 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5086 if test x"$USE_NLS" != xyes; then
5087 echo "$as_me:$LINENO: result: no" >&5
5088 echo "${ECHO_T}no" >&6
5089 else
5090 echo "$as_me:$LINENO: result: yes" >&5
5091 echo "${ECHO_T}yes" >&6
5093 cat >>confdefs.h <<\_ACEOF
5094 #define ENABLE_NLS 1
5095 _ACEOF
5098 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5099 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5100 # Look for .po and .gmo files in the source directory.
5101 CATALOGS=
5102 XLINGUAS=
5103 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5104 # If there aren't any .gmo files the shell will give us the
5105 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5106 # weeded out.
5107 case "$cat" in *\**)
5108 continue;;
5109 esac
5110 # The quadruple backslash is collapsed to a double backslash
5111 # by the backticks, then collapsed again by the double quotes,
5112 # leaving us with one backslash in the sed expression (right
5113 # before the dot that mustn't act as a wildcard).
5114 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5115 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5116 # The user is allowed to set LINGUAS to a list of languages to
5117 # install catalogs for. If it's empty that means "all of them."
5118 if test "x$LINGUAS" = x; then
5119 CATALOGS="$CATALOGS $cat"
5120 XLINGUAS="$XLINGUAS $lang"
5121 else
5122 case "$LINGUAS" in *$lang*)
5123 CATALOGS="$CATALOGS $cat"
5124 XLINGUAS="$XLINGUAS $lang"
5126 esac
5128 done
5129 LINGUAS="$XLINGUAS"
5130 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5131 echo "${ECHO_T}$LINGUAS" >&6
5134 DATADIRNAME=share
5136 INSTOBJEXT=.mo
5138 GENCAT=gencat
5140 CATOBJEXT=.gmo
5144 MKINSTALLDIRS=
5145 if test -n "$ac_aux_dir"; then
5146 case "$ac_aux_dir" in
5147 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5148 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5149 esac
5151 if test -z "$MKINSTALLDIRS"; then
5152 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5157 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5158 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5159 # Check whether --enable-nls or --disable-nls was given.
5160 if test "${enable_nls+set}" = set; then
5161 enableval="$enable_nls"
5162 USE_NLS=$enableval
5163 else
5164 USE_NLS=yes
5166 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5167 echo "${ECHO_T}$USE_NLS" >&6
5174 # Prepare PATH_SEPARATOR.
5175 # The user is always right.
5176 if test "${PATH_SEPARATOR+set}" != set; then
5177 echo "#! /bin/sh" >conf$$.sh
5178 echo "exit 0" >>conf$$.sh
5179 chmod +x conf$$.sh
5180 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5181 PATH_SEPARATOR=';'
5182 else
5183 PATH_SEPARATOR=:
5185 rm -f conf$$.sh
5188 # Find out how to test for executable files. Don't use a zero-byte file,
5189 # as systems may use methods other than mode bits to determine executability.
5190 cat >conf$$.file <<_ASEOF
5191 #! /bin/sh
5192 exit 0
5193 _ASEOF
5194 chmod +x conf$$.file
5195 if test -x conf$$.file >/dev/null 2>&1; then
5196 ac_executable_p="test -x"
5197 else
5198 ac_executable_p="test -f"
5200 rm -f conf$$.file
5202 # Extract the first word of "msgfmt", so it can be a program name with args.
5203 set dummy msgfmt; ac_word=$2
5204 echo "$as_me:$LINENO: checking for $ac_word" >&5
5205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5206 if test "${ac_cv_path_MSGFMT+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209 case "$MSGFMT" in
5210 [\\/]* | ?:[\\/]*)
5211 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5214 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5215 for ac_dir in $PATH; do
5216 IFS="$ac_save_IFS"
5217 test -z "$ac_dir" && ac_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5220 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5221 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5222 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5223 break 2
5226 done
5227 done
5228 IFS="$ac_save_IFS"
5229 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5231 esac
5233 MSGFMT="$ac_cv_path_MSGFMT"
5234 if test "$MSGFMT" != ":"; then
5235 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5236 echo "${ECHO_T}$MSGFMT" >&6
5237 else
5238 echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5242 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5243 set dummy gmsgfmt; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 case $GMSGFMT in
5250 [\\/]* | ?:[\\/]*)
5251 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5265 done
5266 done
5268 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5270 esac
5272 GMSGFMT=$ac_cv_path_GMSGFMT
5274 if test -n "$GMSGFMT"; then
5275 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5276 echo "${ECHO_T}$GMSGFMT" >&6
5277 else
5278 echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6
5284 # Prepare PATH_SEPARATOR.
5285 # The user is always right.
5286 if test "${PATH_SEPARATOR+set}" != set; then
5287 echo "#! /bin/sh" >conf$$.sh
5288 echo "exit 0" >>conf$$.sh
5289 chmod +x conf$$.sh
5290 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5291 PATH_SEPARATOR=';'
5292 else
5293 PATH_SEPARATOR=:
5295 rm -f conf$$.sh
5298 # Find out how to test for executable files. Don't use a zero-byte file,
5299 # as systems may use methods other than mode bits to determine executability.
5300 cat >conf$$.file <<_ASEOF
5301 #! /bin/sh
5302 exit 0
5303 _ASEOF
5304 chmod +x conf$$.file
5305 if test -x conf$$.file >/dev/null 2>&1; then
5306 ac_executable_p="test -x"
5307 else
5308 ac_executable_p="test -f"
5310 rm -f conf$$.file
5312 # Extract the first word of "xgettext", so it can be a program name with args.
5313 set dummy xgettext; ac_word=$2
5314 echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 case "$XGETTEXT" in
5320 [\\/]* | ?:[\\/]*)
5321 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5324 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5325 for ac_dir in $PATH; do
5326 IFS="$ac_save_IFS"
5327 test -z "$ac_dir" && ac_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5330 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5331 (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
5332 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5333 break 2
5336 done
5337 done
5338 IFS="$ac_save_IFS"
5339 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5341 esac
5343 XGETTEXT="$ac_cv_path_XGETTEXT"
5344 if test "$XGETTEXT" != ":"; then
5345 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5346 echo "${ECHO_T}$XGETTEXT" >&6
5347 else
5348 echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5352 rm -f messages.po
5355 # Prepare PATH_SEPARATOR.
5356 # The user is always right.
5357 if test "${PATH_SEPARATOR+set}" != set; then
5358 echo "#! /bin/sh" >conf$$.sh
5359 echo "exit 0" >>conf$$.sh
5360 chmod +x conf$$.sh
5361 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5362 PATH_SEPARATOR=';'
5363 else
5364 PATH_SEPARATOR=:
5366 rm -f conf$$.sh
5369 # Find out how to test for executable files. Don't use a zero-byte file,
5370 # as systems may use methods other than mode bits to determine executability.
5371 cat >conf$$.file <<_ASEOF
5372 #! /bin/sh
5373 exit 0
5374 _ASEOF
5375 chmod +x conf$$.file
5376 if test -x conf$$.file >/dev/null 2>&1; then
5377 ac_executable_p="test -x"
5378 else
5379 ac_executable_p="test -f"
5381 rm -f conf$$.file
5383 # Extract the first word of "msgmerge", so it can be a program name with args.
5384 set dummy msgmerge; ac_word=$2
5385 echo "$as_me:$LINENO: checking for $ac_word" >&5
5386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5387 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390 case "$MSGMERGE" in
5391 [\\/]* | ?:[\\/]*)
5392 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5395 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5396 for ac_dir in $PATH; do
5397 IFS="$ac_save_IFS"
5398 test -z "$ac_dir" && ac_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5401 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5402 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5403 break 2
5406 done
5407 done
5408 IFS="$ac_save_IFS"
5409 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5411 esac
5413 MSGMERGE="$ac_cv_path_MSGMERGE"
5414 if test "$MSGMERGE" != ":"; then
5415 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5416 echo "${ECHO_T}$MSGMERGE" >&6
5417 else
5418 echo "$as_me:$LINENO: result: no" >&5
5419 echo "${ECHO_T}no" >&6
5423 if test "$GMSGFMT" != ":"; then
5424 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5425 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5427 else
5428 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5429 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5430 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5431 GMSGFMT=":"
5435 if test "$XGETTEXT" != ":"; then
5436 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5437 (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
5439 else
5440 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5441 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5442 XGETTEXT=":"
5444 rm -f messages.po
5447 ac_config_commands="$ac_config_commands default-1"
5451 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5452 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5453 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5454 if test "${enable_maintainer_mode+set}" = set; then
5455 enableval="$enable_maintainer_mode"
5456 USE_MAINTAINER_MODE=$enableval
5457 else
5458 USE_MAINTAINER_MODE=no
5460 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5461 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5464 if test $USE_MAINTAINER_MODE = yes; then
5465 MAINTAINER_MODE_TRUE=
5466 MAINTAINER_MODE_FALSE='#'
5467 else
5468 MAINTAINER_MODE_TRUE='#'
5469 MAINTAINER_MODE_FALSE=
5472 MAINT=$MAINTAINER_MODE_TRUE
5477 if false; then
5478 GENINSRC_NEVER_TRUE=
5479 GENINSRC_NEVER_FALSE='#'
5480 else
5481 GENINSRC_NEVER_TRUE='#'
5482 GENINSRC_NEVER_FALSE=
5487 ac_ext=c
5488 ac_cpp='$CPP $CPPFLAGS'
5489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5492 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5493 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5494 # On Suns, sometimes $CPP names a directory.
5495 if test -n "$CPP" && test -d "$CPP"; then
5496 CPP=
5498 if test -z "$CPP"; then
5499 if test "${ac_cv_prog_CPP+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502 # Double quotes because CPP needs to be expanded
5503 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5505 ac_preproc_ok=false
5506 for ac_c_preproc_warn_flag in '' yes
5508 # Use a header file that comes with gcc, so configuring glibc
5509 # with a fresh cross-compiler works.
5510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5511 # <limits.h> exists even on freestanding compilers.
5512 # On the NeXT, cc -E runs the code through the compiler's parser,
5513 # not just through cpp. "Syntax error" is here to catch this case.
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 #ifdef __STDC__
5521 # include <limits.h>
5522 #else
5523 # include <assert.h>
5524 #endif
5525 Syntax error
5526 _ACEOF
5527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5529 ac_status=$?
5530 grep -v '^ *+' conftest.er1 >conftest.err
5531 rm -f conftest.er1
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } >/dev/null; then
5535 if test -s conftest.err; then
5536 ac_cpp_err=$ac_c_preproc_warn_flag
5537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5538 else
5539 ac_cpp_err=
5541 else
5542 ac_cpp_err=yes
5544 if test -z "$ac_cpp_err"; then
5546 else
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 # Broken: fails on valid input.
5551 continue
5553 rm -f conftest.err conftest.$ac_ext
5555 # OK, works on sane cases. Now check whether non-existent headers
5556 # can be detected and how.
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h. */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 #include <ac_nonexistent.h>
5564 _ACEOF
5565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5567 ac_status=$?
5568 grep -v '^ *+' conftest.er1 >conftest.err
5569 rm -f conftest.er1
5570 cat conftest.err >&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } >/dev/null; then
5573 if test -s conftest.err; then
5574 ac_cpp_err=$ac_c_preproc_warn_flag
5575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5576 else
5577 ac_cpp_err=
5579 else
5580 ac_cpp_err=yes
5582 if test -z "$ac_cpp_err"; then
5583 # Broken: success on invalid input.
5584 continue
5585 else
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5589 # Passes both tests.
5590 ac_preproc_ok=:
5591 break
5593 rm -f conftest.err conftest.$ac_ext
5595 done
5596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5597 rm -f conftest.err conftest.$ac_ext
5598 if $ac_preproc_ok; then
5599 break
5602 done
5603 ac_cv_prog_CPP=$CPP
5606 CPP=$ac_cv_prog_CPP
5607 else
5608 ac_cv_prog_CPP=$CPP
5610 echo "$as_me:$LINENO: result: $CPP" >&5
5611 echo "${ECHO_T}$CPP" >&6
5612 ac_preproc_ok=false
5613 for ac_c_preproc_warn_flag in '' yes
5615 # Use a header file that comes with gcc, so configuring glibc
5616 # with a fresh cross-compiler works.
5617 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5618 # <limits.h> exists even on freestanding compilers.
5619 # On the NeXT, cc -E runs the code through the compiler's parser,
5620 # not just through cpp. "Syntax error" is here to catch this case.
5621 cat >conftest.$ac_ext <<_ACEOF
5622 /* confdefs.h. */
5623 _ACEOF
5624 cat confdefs.h >>conftest.$ac_ext
5625 cat >>conftest.$ac_ext <<_ACEOF
5626 /* end confdefs.h. */
5627 #ifdef __STDC__
5628 # include <limits.h>
5629 #else
5630 # include <assert.h>
5631 #endif
5632 Syntax error
5633 _ACEOF
5634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5636 ac_status=$?
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } >/dev/null; then
5642 if test -s conftest.err; then
5643 ac_cpp_err=$ac_c_preproc_warn_flag
5644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5645 else
5646 ac_cpp_err=
5648 else
5649 ac_cpp_err=yes
5651 if test -z "$ac_cpp_err"; then
5653 else
5654 echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5657 # Broken: fails on valid input.
5658 continue
5660 rm -f conftest.err conftest.$ac_ext
5662 # OK, works on sane cases. Now check whether non-existent headers
5663 # can be detected and how.
5664 cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h. */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 #include <ac_nonexistent.h>
5671 _ACEOF
5672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5674 ac_status=$?
5675 grep -v '^ *+' conftest.er1 >conftest.err
5676 rm -f conftest.er1
5677 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } >/dev/null; then
5680 if test -s conftest.err; then
5681 ac_cpp_err=$ac_c_preproc_warn_flag
5682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5683 else
5684 ac_cpp_err=
5686 else
5687 ac_cpp_err=yes
5689 if test -z "$ac_cpp_err"; then
5690 # Broken: success on invalid input.
5691 continue
5692 else
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5696 # Passes both tests.
5697 ac_preproc_ok=:
5698 break
5700 rm -f conftest.err conftest.$ac_ext
5702 done
5703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5704 rm -f conftest.err conftest.$ac_ext
5705 if $ac_preproc_ok; then
5707 else
5708 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5709 See \`config.log' for more details." >&5
5710 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5711 See \`config.log' for more details." >&2;}
5712 { (exit 1); exit 1; }; }
5715 ac_ext=c
5716 ac_cpp='$CPP $CPPFLAGS'
5717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5722 echo "$as_me:$LINENO: checking for egrep" >&5
5723 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5724 if test "${ac_cv_prog_egrep+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5728 then ac_cv_prog_egrep='grep -E'
5729 else ac_cv_prog_egrep='egrep'
5732 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5733 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5734 EGREP=$ac_cv_prog_egrep
5737 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5738 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5739 if test "${ac_cv_header_stdc+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742 cat >conftest.$ac_ext <<_ACEOF
5743 /* confdefs.h. */
5744 _ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5748 #include <stdlib.h>
5749 #include <stdarg.h>
5750 #include <string.h>
5751 #include <float.h>
5754 main ()
5758 return 0;
5760 _ACEOF
5761 rm -f conftest.$ac_objext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763 (eval $ac_compile) 2>conftest.er1
5764 ac_status=$?
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try='test -z "$ac_c_werror_flag"
5771 || test ! -s conftest.err'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 (eval $ac_try) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; } &&
5777 { ac_try='test -s conftest.$ac_objext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 (eval $ac_try) 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5783 ac_cv_header_stdc=yes
5784 else
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5788 ac_cv_header_stdc=no
5790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5792 if test $ac_cv_header_stdc = yes; then
5793 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h. */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 #include <string.h>
5802 _ACEOF
5803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5804 $EGREP "memchr" >/dev/null 2>&1; then
5806 else
5807 ac_cv_header_stdc=no
5809 rm -f conftest*
5813 if test $ac_cv_header_stdc = yes; then
5814 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 #include <stdlib.h>
5823 _ACEOF
5824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5825 $EGREP "free" >/dev/null 2>&1; then
5827 else
5828 ac_cv_header_stdc=no
5830 rm -f conftest*
5834 if test $ac_cv_header_stdc = yes; then
5835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5836 if test "$cross_compiling" = yes; then
5838 else
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 #include <ctype.h>
5846 #if ((' ' & 0x0FF) == 0x020)
5847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5849 #else
5850 # define ISLOWER(c) \
5851 (('a' <= (c) && (c) <= 'i') \
5852 || ('j' <= (c) && (c) <= 'r') \
5853 || ('s' <= (c) && (c) <= 'z'))
5854 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5855 #endif
5857 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5859 main ()
5861 int i;
5862 for (i = 0; i < 256; i++)
5863 if (XOR (islower (i), ISLOWER (i))
5864 || toupper (i) != TOUPPER (i))
5865 exit(2);
5866 exit (0);
5868 _ACEOF
5869 rm -f conftest$ac_exeext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5871 (eval $ac_link) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5881 else
5882 echo "$as_me: program exited with status $ac_status" >&5
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5886 ( exit $ac_status )
5887 ac_cv_header_stdc=no
5889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5893 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5894 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5895 if test $ac_cv_header_stdc = yes; then
5897 cat >>confdefs.h <<\_ACEOF
5898 #define STDC_HEADERS 1
5899 _ACEOF
5903 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5913 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5914 inttypes.h stdint.h unistd.h
5916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5917 echo "$as_me:$LINENO: checking for $ac_header" >&5
5918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922 cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h. */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 $ac_includes_default
5930 #include <$ac_header>
5931 _ACEOF
5932 rm -f conftest.$ac_objext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934 (eval $ac_compile) 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -z "$ac_c_werror_flag"
5942 || test ! -s conftest.err'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 (eval $ac_try) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest.$ac_objext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 (eval $ac_try) 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5954 eval "$as_ac_Header=yes"
5955 else
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 eval "$as_ac_Header=no"
5961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5966 cat >>confdefs.h <<_ACEOF
5967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5968 _ACEOF
5972 done
5976 for ac_header in sys/gmon_out.h
5978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980 echo "$as_me:$LINENO: checking for $ac_header" >&5
5981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5987 else
5988 # Is the header compilable?
5989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h. */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 $ac_includes_default
5998 #include <$ac_header>
5999 _ACEOF
6000 rm -f conftest.$ac_objext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002 (eval $ac_compile) 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } &&
6009 { ac_try='test -z "$ac_c_werror_flag"
6010 || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest.$ac_objext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_header_compiler=yes
6023 else
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 ac_header_compiler=no
6029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6031 echo "${ECHO_T}$ac_header_compiler" >&6
6033 # Is the header present?
6034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6036 cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h. */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 #include <$ac_header>
6043 _ACEOF
6044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } >/dev/null; then
6052 if test -s conftest.err; then
6053 ac_cpp_err=$ac_c_preproc_warn_flag
6054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6055 else
6056 ac_cpp_err=
6058 else
6059 ac_cpp_err=yes
6061 if test -z "$ac_cpp_err"; then
6062 ac_header_preproc=yes
6063 else
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6067 ac_header_preproc=no
6069 rm -f conftest.err conftest.$ac_ext
6070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6071 echo "${ECHO_T}$ac_header_preproc" >&6
6073 # So? What about this header?
6074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6075 yes:no: )
6076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6080 ac_header_preproc=yes
6082 no:yes:* )
6083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6096 cat <<\_ASBOX
6097 ## ------------------------------------------ ##
6098 ## Report this to the AC_PACKAGE_NAME lists. ##
6099 ## ------------------------------------------ ##
6100 _ASBOX
6102 sed "s/^/$as_me: WARNING: /" >&2
6104 esac
6105 echo "$as_me:$LINENO: checking for $ac_header" >&5
6106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110 eval "$as_ac_Header=\$ac_header_preproc"
6112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6117 cat >>confdefs.h <<_ACEOF
6118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6119 _ACEOF
6123 done
6126 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
6127 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
6128 if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131 cat >conftest.$ac_ext <<_ACEOF
6132 /* confdefs.h. */
6133 _ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6137 #include <unistd.h>
6139 main ()
6141 extern int getopt (int, char *const*, const char *);
6143 return 0;
6145 _ACEOF
6146 rm -f conftest.$ac_objext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 (eval $ac_compile) 2>conftest.er1
6149 ac_status=$?
6150 grep -v '^ *+' conftest.er1 >conftest.err
6151 rm -f conftest.er1
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try='test -z "$ac_c_werror_flag"
6156 || test ! -s conftest.err'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try='test -s conftest.$ac_objext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 (eval $ac_try) 2>&5
6165 ac_status=$?
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 gprof_cv_decl_getopt_unistd_h=yes
6169 else
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 gprof_cv_decl_getopt_unistd_h=no
6175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6178 echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
6179 echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6
6180 if test $gprof_cv_decl_getopt_unistd_h = yes; then
6182 cat >>confdefs.h <<\_ACEOF
6183 #define HAVE_DECL_GETOPT 1
6184 _ACEOF
6189 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
6191 # Check whether --enable-werror or --disable-werror was given.
6192 if test "${enable_werror+set}" = set; then
6193 enableval="$enable_werror"
6194 case "${enableval}" in
6195 yes | y) ERROR_ON_WARNING="yes" ;;
6196 no | n) ERROR_ON_WARNING="no" ;;
6197 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
6198 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
6199 { (exit 1); exit 1; }; } ;;
6200 esac
6203 # Enable -Werror by default when using gcc
6204 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
6205 ERROR_ON_WARNING=yes
6208 NO_WERROR=
6209 if test "${ERROR_ON_WARNING}" = yes ; then
6210 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
6211 NO_WERROR="-Wno-error"
6214 if test "${GCC}" = yes ; then
6215 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
6218 # Check whether --enable-build-warnings or --disable-build-warnings was given.
6219 if test "${enable_build_warnings+set}" = set; then
6220 enableval="$enable_build_warnings"
6221 case "${enableval}" in
6222 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
6223 no) if test "${GCC}" = yes ; then
6224 WARN_CFLAGS="-w"
6225 fi;;
6226 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6227 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6228 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6229 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
6230 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6231 esac
6234 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
6235 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6246 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
6248 cat >confcache <<\_ACEOF
6249 # This file is a shell script that caches the results of configure
6250 # tests run on this system so they can be shared between configure
6251 # scripts and configure runs, see configure's option --config-cache.
6252 # It is not useful on other systems. If it contains results you don't
6253 # want to keep, you may remove or edit it.
6255 # config.status only pays attention to the cache file if you give it
6256 # the --recheck option to rerun configure.
6258 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6259 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6260 # following values.
6262 _ACEOF
6264 # The following way of writing the cache mishandles newlines in values,
6265 # but we know of no workaround that is simple, portable, and efficient.
6266 # So, don't put newlines in cache variables' values.
6267 # Ultrix sh set writes to stderr and can't be redirected directly,
6268 # and sets the high bit in the cache file unless we assign to the vars.
6270 (set) 2>&1 |
6271 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6272 *ac_space=\ *)
6273 # `set' does not quote correctly, so add quotes (double-quote
6274 # substitution turns \\\\ into \\, and sed turns \\ into \).
6275 sed -n \
6276 "s/'/'\\\\''/g;
6277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6280 # `set' quotes correctly as required by POSIX, so do not add quotes.
6281 sed -n \
6282 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6284 esac;
6286 sed '
6287 t clear
6288 : clear
6289 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6290 t end
6291 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6292 : end' >>confcache
6293 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6294 if test -w $cache_file; then
6295 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6296 cat confcache >$cache_file
6297 else
6298 echo "not updating unwritable cache $cache_file"
6301 rm -f confcache
6303 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6304 # Let make expand exec_prefix.
6305 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6307 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6308 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6309 # trailing colons and then remove the whole line if VPATH becomes empty
6310 # (actually we leave an empty line to preserve line numbers).
6311 if test "x$srcdir" = x.; then
6312 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6313 s/:*\$(srcdir):*/:/;
6314 s/:*\${srcdir}:*/:/;
6315 s/:*@srcdir@:*/:/;
6316 s/^\([^=]*=[ ]*\):*/\1/;
6317 s/:*$//;
6318 s/^[^=]*=[ ]*$//;
6322 DEFS=-DHAVE_CONFIG_H
6324 ac_libobjs=
6325 ac_ltlibobjs=
6326 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6327 # 1. Remove the extension, and $U if already installed.
6328 ac_i=`echo "$ac_i" |
6329 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6330 # 2. Add them.
6331 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6332 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6333 done
6334 LIBOBJS=$ac_libobjs
6336 LTLIBOBJS=$ac_ltlibobjs
6339 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6340 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6341 Usually this means the macro was only invoked conditionally." >&5
6342 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6343 Usually this means the macro was only invoked conditionally." >&2;}
6344 { (exit 1); exit 1; }; }
6346 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6347 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6348 Usually this means the macro was only invoked conditionally." >&5
6349 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6350 Usually this means the macro was only invoked conditionally." >&2;}
6351 { (exit 1); exit 1; }; }
6353 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6354 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6355 Usually this means the macro was only invoked conditionally." >&5
6356 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6357 Usually this means the macro was only invoked conditionally." >&2;}
6358 { (exit 1); exit 1; }; }
6360 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
6361 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
6362 Usually this means the macro was only invoked conditionally." >&5
6363 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
6364 Usually this means the macro was only invoked conditionally." >&2;}
6365 { (exit 1); exit 1; }; }
6368 : ${CONFIG_STATUS=./config.status}
6369 ac_clean_files_save=$ac_clean_files
6370 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6371 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6372 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6373 cat >$CONFIG_STATUS <<_ACEOF
6374 #! $SHELL
6375 # Generated by $as_me.
6376 # Run this file to recreate the current configuration.
6377 # Compiler output produced by configure, useful for debugging
6378 # configure, is in config.log if it exists.
6380 debug=false
6381 ac_cs_recheck=false
6382 ac_cs_silent=false
6383 SHELL=\${CONFIG_SHELL-$SHELL}
6384 _ACEOF
6386 cat >>$CONFIG_STATUS <<\_ACEOF
6387 ## --------------------- ##
6388 ## M4sh Initialization. ##
6389 ## --------------------- ##
6391 # Be Bourne compatible
6392 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6393 emulate sh
6394 NULLCMD=:
6395 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6396 # is contrary to our usage. Disable this feature.
6397 alias -g '${1+"$@"}'='"$@"'
6398 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6399 set -o posix
6401 DUALCASE=1; export DUALCASE # for MKS sh
6403 # Support unset when possible.
6404 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6405 as_unset=unset
6406 else
6407 as_unset=false
6411 # Work around bugs in pre-3.0 UWIN ksh.
6412 $as_unset ENV MAIL MAILPATH
6413 PS1='$ '
6414 PS2='> '
6415 PS4='+ '
6417 # NLS nuisances.
6418 for as_var in \
6419 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6420 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6421 LC_TELEPHONE LC_TIME
6423 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6424 eval $as_var=C; export $as_var
6425 else
6426 $as_unset $as_var
6428 done
6430 # Required to use basename.
6431 if expr a : '\(a\)' >/dev/null 2>&1; then
6432 as_expr=expr
6433 else
6434 as_expr=false
6437 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6438 as_basename=basename
6439 else
6440 as_basename=false
6444 # Name of the executable.
6445 as_me=`$as_basename "$0" ||
6446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6447 X"$0" : 'X\(//\)$' \| \
6448 X"$0" : 'X\(/\)$' \| \
6449 . : '\(.\)' 2>/dev/null ||
6450 echo X/"$0" |
6451 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6452 /^X\/\(\/\/\)$/{ s//\1/; q; }
6453 /^X\/\(\/\).*/{ s//\1/; q; }
6454 s/.*/./; q'`
6457 # PATH needs CR, and LINENO needs CR and PATH.
6458 # Avoid depending upon Character Ranges.
6459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6462 as_cr_digits='0123456789'
6463 as_cr_alnum=$as_cr_Letters$as_cr_digits
6465 # The user is always right.
6466 if test "${PATH_SEPARATOR+set}" != set; then
6467 echo "#! /bin/sh" >conf$$.sh
6468 echo "exit 0" >>conf$$.sh
6469 chmod +x conf$$.sh
6470 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6471 PATH_SEPARATOR=';'
6472 else
6473 PATH_SEPARATOR=:
6475 rm -f conf$$.sh
6479 as_lineno_1=$LINENO
6480 as_lineno_2=$LINENO
6481 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6482 test "x$as_lineno_1" != "x$as_lineno_2" &&
6483 test "x$as_lineno_3" = "x$as_lineno_2" || {
6484 # Find who we are. Look in the path if we contain no path at all
6485 # relative or not.
6486 case $0 in
6487 *[\\/]* ) as_myself=$0 ;;
6488 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6494 done
6497 esac
6498 # We did not find ourselves, most probably we were run as `sh COMMAND'
6499 # in which case we are not to be found in the path.
6500 if test "x$as_myself" = x; then
6501 as_myself=$0
6503 if test ! -f "$as_myself"; then
6504 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6505 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6506 { (exit 1); exit 1; }; }
6508 case $CONFIG_SHELL in
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for as_base in sh bash ksh sh5; do
6516 case $as_dir in
6518 if ("$as_dir/$as_base" -c '
6519 as_lineno_1=$LINENO
6520 as_lineno_2=$LINENO
6521 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6522 test "x$as_lineno_1" != "x$as_lineno_2" &&
6523 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6524 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6525 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6526 CONFIG_SHELL=$as_dir/$as_base
6527 export CONFIG_SHELL
6528 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6529 fi;;
6530 esac
6531 done
6532 done
6534 esac
6536 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6537 # uniformly replaced by the line number. The first 'sed' inserts a
6538 # line-number line before each line; the second 'sed' does the real
6539 # work. The second script uses 'N' to pair each line-number line
6540 # with the numbered line, and appends trailing '-' during
6541 # substitution so that $LINENO is not a special case at line end.
6542 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6543 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6544 sed '=' <$as_myself |
6545 sed '
6547 s,$,-,
6548 : loop
6549 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6550 t loop
6551 s,-$,,
6552 s,^['$as_cr_digits']*\n,,
6553 ' >$as_me.lineno &&
6554 chmod +x $as_me.lineno ||
6555 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6556 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6557 { (exit 1); exit 1; }; }
6559 # Don't try to exec as it changes $[0], causing all sort of problems
6560 # (the dirname of $[0] is not the place where we might find the
6561 # original and so on. Autoconf is especially sensible to this).
6562 . ./$as_me.lineno
6563 # Exit status is that of the last command.
6564 exit
6568 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6569 *c*,-n*) ECHO_N= ECHO_C='
6570 ' ECHO_T=' ' ;;
6571 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6572 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6573 esac
6575 if expr a : '\(a\)' >/dev/null 2>&1; then
6576 as_expr=expr
6577 else
6578 as_expr=false
6581 rm -f conf$$ conf$$.exe conf$$.file
6582 echo >conf$$.file
6583 if ln -s conf$$.file conf$$ 2>/dev/null; then
6584 # We could just check for DJGPP; but this test a) works b) is more generic
6585 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6586 if test -f conf$$.exe; then
6587 # Don't use ln at all; we don't have any links
6588 as_ln_s='cp -p'
6589 else
6590 as_ln_s='ln -s'
6592 elif ln conf$$.file conf$$ 2>/dev/null; then
6593 as_ln_s=ln
6594 else
6595 as_ln_s='cp -p'
6597 rm -f conf$$ conf$$.exe conf$$.file
6599 if mkdir -p . 2>/dev/null; then
6600 as_mkdir_p=:
6601 else
6602 test -d ./-p && rmdir ./-p
6603 as_mkdir_p=false
6606 as_executable_p="test -f"
6608 # Sed expression to map a string onto a valid CPP name.
6609 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6611 # Sed expression to map a string onto a valid variable name.
6612 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6615 # IFS
6616 # We need space, tab and new line, in precisely that order.
6617 as_nl='
6619 IFS=" $as_nl"
6621 # CDPATH.
6622 $as_unset CDPATH
6624 exec 6>&1
6626 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6627 # report actual input values of CONFIG_FILES etc. instead of their
6628 # values after options handling. Logging --version etc. is OK.
6629 exec 5>>config.log
6631 echo
6632 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6633 ## Running $as_me. ##
6634 _ASBOX
6635 } >&5
6636 cat >&5 <<_CSEOF
6638 This file was extended by $as_me, which was
6639 generated by GNU Autoconf 2.59. Invocation command line was
6641 CONFIG_FILES = $CONFIG_FILES
6642 CONFIG_HEADERS = $CONFIG_HEADERS
6643 CONFIG_LINKS = $CONFIG_LINKS
6644 CONFIG_COMMANDS = $CONFIG_COMMANDS
6645 $ $0 $@
6647 _CSEOF
6648 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6649 echo >&5
6650 _ACEOF
6652 # Files that config.status was made for.
6653 if test -n "$ac_config_files"; then
6654 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6657 if test -n "$ac_config_headers"; then
6658 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6661 if test -n "$ac_config_links"; then
6662 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6665 if test -n "$ac_config_commands"; then
6666 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6669 cat >>$CONFIG_STATUS <<\_ACEOF
6671 ac_cs_usage="\
6672 \`$as_me' instantiates files from templates according to the
6673 current configuration.
6675 Usage: $0 [OPTIONS] [FILE]...
6677 -h, --help print this help, then exit
6678 -V, --version print version number, then exit
6679 -q, --quiet do not print progress messages
6680 -d, --debug don't remove temporary files
6681 --recheck update $as_me by reconfiguring in the same conditions
6682 --file=FILE[:TEMPLATE]
6683 instantiate the configuration file FILE
6684 --header=FILE[:TEMPLATE]
6685 instantiate the configuration header FILE
6687 Configuration files:
6688 $config_files
6690 Configuration headers:
6691 $config_headers
6693 Configuration commands:
6694 $config_commands
6696 Report bugs to <bug-autoconf@gnu.org>."
6697 _ACEOF
6699 cat >>$CONFIG_STATUS <<_ACEOF
6700 ac_cs_version="\\
6701 config.status
6702 configured by $0, generated by GNU Autoconf 2.59,
6703 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6705 Copyright (C) 2003 Free Software Foundation, Inc.
6706 This config.status script is free software; the Free Software Foundation
6707 gives unlimited permission to copy, distribute and modify it."
6708 srcdir=$srcdir
6709 INSTALL="$INSTALL"
6710 _ACEOF
6712 cat >>$CONFIG_STATUS <<\_ACEOF
6713 # If no file are specified by the user, then we need to provide default
6714 # value. By we need to know if files were specified by the user.
6715 ac_need_defaults=:
6716 while test $# != 0
6718 case $1 in
6719 --*=*)
6720 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6721 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6722 ac_shift=:
6725 ac_option=$1
6726 ac_optarg=$2
6727 ac_shift=shift
6729 *) # This is not an option, so the user has probably given explicit
6730 # arguments.
6731 ac_option=$1
6732 ac_need_defaults=false;;
6733 esac
6735 case $ac_option in
6736 # Handling of the options.
6737 _ACEOF
6738 cat >>$CONFIG_STATUS <<\_ACEOF
6739 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6740 ac_cs_recheck=: ;;
6741 --version | --vers* | -V )
6742 echo "$ac_cs_version"; exit 0 ;;
6743 --he | --h)
6744 # Conflict between --help and --header
6745 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6746 Try \`$0 --help' for more information." >&5
6747 echo "$as_me: error: ambiguous option: $1
6748 Try \`$0 --help' for more information." >&2;}
6749 { (exit 1); exit 1; }; };;
6750 --help | --hel | -h )
6751 echo "$ac_cs_usage"; exit 0 ;;
6752 --debug | --d* | -d )
6753 debug=: ;;
6754 --file | --fil | --fi | --f )
6755 $ac_shift
6756 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6757 ac_need_defaults=false;;
6758 --header | --heade | --head | --hea )
6759 $ac_shift
6760 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6761 ac_need_defaults=false;;
6762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6763 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6764 ac_cs_silent=: ;;
6766 # This is an error.
6767 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6768 Try \`$0 --help' for more information." >&5
6769 echo "$as_me: error: unrecognized option: $1
6770 Try \`$0 --help' for more information." >&2;}
6771 { (exit 1); exit 1; }; } ;;
6773 *) ac_config_targets="$ac_config_targets $1" ;;
6775 esac
6776 shift
6777 done
6779 ac_configure_extra_args=
6781 if $ac_cs_silent; then
6782 exec 6>/dev/null
6783 ac_configure_extra_args="$ac_configure_extra_args --silent"
6786 _ACEOF
6787 cat >>$CONFIG_STATUS <<_ACEOF
6788 if \$ac_cs_recheck; then
6789 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6790 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6793 _ACEOF
6795 cat >>$CONFIG_STATUS <<_ACEOF
6797 # INIT-COMMANDS section.
6800 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6801 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
6802 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
6803 # from automake.
6804 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
6805 # Capture the value of LINGUAS because we need it to compute CATALOGS.
6806 LINGUAS="${LINGUAS-%UNSET%}"
6809 _ACEOF
6813 cat >>$CONFIG_STATUS <<\_ACEOF
6814 for ac_config_target in $ac_config_targets
6816 case "$ac_config_target" in
6817 # Handling of arguments.
6818 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6819 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
6820 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6821 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6822 "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
6823 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6824 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6825 { (exit 1); exit 1; }; };;
6826 esac
6827 done
6829 # If the user did not use the arguments to specify the items to instantiate,
6830 # then the envvar interface is used. Set only those that are not.
6831 # We use the long form for the default assignment because of an extremely
6832 # bizarre bug on SunOS 4.1.3.
6833 if $ac_need_defaults; then
6834 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6835 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6836 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6839 # Have a temporary directory for convenience. Make it in the build tree
6840 # simply because there is no reason to put it here, and in addition,
6841 # creating and moving files from /tmp can sometimes cause problems.
6842 # Create a temporary directory, and hook for its removal unless debugging.
6843 $debug ||
6845 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6846 trap '{ (exit 1); exit 1; }' 1 2 13 15
6849 # Create a (secure) tmp directory for tmp files.
6852 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6853 test -n "$tmp" && test -d "$tmp"
6854 } ||
6856 tmp=./confstat$$-$RANDOM
6857 (umask 077 && mkdir $tmp)
6858 } ||
6860 echo "$me: cannot create a temporary directory in ." >&2
6861 { (exit 1); exit 1; }
6864 _ACEOF
6866 cat >>$CONFIG_STATUS <<_ACEOF
6869 # CONFIG_FILES section.
6872 # No need to generate the scripts if there are no CONFIG_FILES.
6873 # This happens for instance when ./config.status config.h
6874 if test -n "\$CONFIG_FILES"; then
6875 # Protect against being on the right side of a sed subst in config.status.
6876 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6877 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6878 s,@SHELL@,$SHELL,;t t
6879 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6880 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6881 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6882 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6883 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6884 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6885 s,@exec_prefix@,$exec_prefix,;t t
6886 s,@prefix@,$prefix,;t t
6887 s,@program_transform_name@,$program_transform_name,;t t
6888 s,@bindir@,$bindir,;t t
6889 s,@sbindir@,$sbindir,;t t
6890 s,@libexecdir@,$libexecdir,;t t
6891 s,@datadir@,$datadir,;t t
6892 s,@sysconfdir@,$sysconfdir,;t t
6893 s,@sharedstatedir@,$sharedstatedir,;t t
6894 s,@localstatedir@,$localstatedir,;t t
6895 s,@libdir@,$libdir,;t t
6896 s,@includedir@,$includedir,;t t
6897 s,@oldincludedir@,$oldincludedir,;t t
6898 s,@infodir@,$infodir,;t t
6899 s,@mandir@,$mandir,;t t
6900 s,@build_alias@,$build_alias,;t t
6901 s,@host_alias@,$host_alias,;t t
6902 s,@target_alias@,$target_alias,;t t
6903 s,@DEFS@,$DEFS,;t t
6904 s,@ECHO_C@,$ECHO_C,;t t
6905 s,@ECHO_N@,$ECHO_N,;t t
6906 s,@ECHO_T@,$ECHO_T,;t t
6907 s,@LIBS@,$LIBS,;t t
6908 s,@build@,$build,;t t
6909 s,@build_cpu@,$build_cpu,;t t
6910 s,@build_vendor@,$build_vendor,;t t
6911 s,@build_os@,$build_os,;t t
6912 s,@host@,$host,;t t
6913 s,@host_cpu@,$host_cpu,;t t
6914 s,@host_vendor@,$host_vendor,;t t
6915 s,@host_os@,$host_os,;t t
6916 s,@target@,$target,;t t
6917 s,@target_cpu@,$target_cpu,;t t
6918 s,@target_vendor@,$target_vendor,;t t
6919 s,@target_os@,$target_os,;t t
6920 s,@CC@,$CC,;t t
6921 s,@CFLAGS@,$CFLAGS,;t t
6922 s,@LDFLAGS@,$LDFLAGS,;t t
6923 s,@CPPFLAGS@,$CPPFLAGS,;t t
6924 s,@ac_ct_CC@,$ac_ct_CC,;t t
6925 s,@EXEEXT@,$EXEEXT,;t t
6926 s,@OBJEXT@,$OBJEXT,;t t
6927 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6928 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6929 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6930 s,@CYGPATH_W@,$CYGPATH_W,;t t
6931 s,@PACKAGE@,$PACKAGE,;t t
6932 s,@VERSION@,$VERSION,;t t
6933 s,@ACLOCAL@,$ACLOCAL,;t t
6934 s,@AUTOCONF@,$AUTOCONF,;t t
6935 s,@AUTOMAKE@,$AUTOMAKE,;t t
6936 s,@AUTOHEADER@,$AUTOHEADER,;t t
6937 s,@MAKEINFO@,$MAKEINFO,;t t
6938 s,@install_sh@,$install_sh,;t t
6939 s,@STRIP@,$STRIP,;t t
6940 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6941 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6942 s,@mkdir_p@,$mkdir_p,;t t
6943 s,@AWK@,$AWK,;t t
6944 s,@SET_MAKE@,$SET_MAKE,;t t
6945 s,@am__leading_dot@,$am__leading_dot,;t t
6946 s,@AMTAR@,$AMTAR,;t t
6947 s,@am__tar@,$am__tar,;t t
6948 s,@am__untar@,$am__untar,;t t
6949 s,@DEPDIR@,$DEPDIR,;t t
6950 s,@am__include@,$am__include,;t t
6951 s,@am__quote@,$am__quote,;t t
6952 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6953 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6954 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6955 s,@CCDEPMODE@,$CCDEPMODE,;t t
6956 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6957 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6958 s,@LN_S@,$LN_S,;t t
6959 s,@RANLIB@,$RANLIB,;t t
6960 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6961 s,@LIBTOOL@,$LIBTOOL,;t t
6962 s,@USE_NLS@,$USE_NLS,;t t
6963 s,@LIBINTL@,$LIBINTL,;t t
6964 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
6965 s,@INCINTL@,$INCINTL,;t t
6966 s,@XGETTEXT@,$XGETTEXT,;t t
6967 s,@GMSGFMT@,$GMSGFMT,;t t
6968 s,@POSUB@,$POSUB,;t t
6969 s,@CATALOGS@,$CATALOGS,;t t
6970 s,@DATADIRNAME@,$DATADIRNAME,;t t
6971 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6972 s,@GENCAT@,$GENCAT,;t t
6973 s,@CATOBJEXT@,$CATOBJEXT,;t t
6974 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
6975 s,@MSGFMT@,$MSGFMT,;t t
6976 s,@MSGMERGE@,$MSGMERGE,;t t
6977 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6978 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6979 s,@MAINT@,$MAINT,;t t
6980 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
6981 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
6982 s,@CPP@,$CPP,;t t
6983 s,@EGREP@,$EGREP,;t t
6984 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6985 s,@NO_WERROR@,$NO_WERROR,;t t
6986 s,@datarootdir@,$datarootdir,;t t
6987 s,@docdir@,$docdir,;t t
6988 s,@htmldir@,$htmldir,;t t
6989 s,@LIBOBJS@,$LIBOBJS,;t t
6990 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6991 CEOF
6993 _ACEOF
6995 cat >>$CONFIG_STATUS <<\_ACEOF
6996 # Split the substitutions into bite-sized pieces for seds with
6997 # small command number limits, like on Digital OSF/1 and HP-UX.
6998 ac_max_sed_lines=48
6999 ac_sed_frag=1 # Number of current file.
7000 ac_beg=1 # First line for current file.
7001 ac_end=$ac_max_sed_lines # Line after last line for current file.
7002 ac_more_lines=:
7003 ac_sed_cmds=
7004 while $ac_more_lines; do
7005 if test $ac_beg -gt 1; then
7006 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7007 else
7008 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7010 if test ! -s $tmp/subs.frag; then
7011 ac_more_lines=false
7012 else
7013 # The purpose of the label and of the branching condition is to
7014 # speed up the sed processing (if there are no `@' at all, there
7015 # is no need to browse any of the substitutions).
7016 # These are the two extra sed commands mentioned above.
7017 (echo ':t
7018 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7019 if test -z "$ac_sed_cmds"; then
7020 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7021 else
7022 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7024 ac_sed_frag=`expr $ac_sed_frag + 1`
7025 ac_beg=$ac_end
7026 ac_end=`expr $ac_end + $ac_max_sed_lines`
7028 done
7029 if test -z "$ac_sed_cmds"; then
7030 ac_sed_cmds=cat
7032 fi # test -n "$CONFIG_FILES"
7034 _ACEOF
7035 cat >>$CONFIG_STATUS <<\_ACEOF
7036 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7037 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7038 case $ac_file in
7039 - | *:- | *:-:* ) # input from stdin
7040 cat >$tmp/stdin
7041 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7042 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7043 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7044 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7045 * ) ac_file_in=$ac_file.in ;;
7046 esac
7048 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7049 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7050 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7051 X"$ac_file" : 'X\(//\)[^/]' \| \
7052 X"$ac_file" : 'X\(//\)$' \| \
7053 X"$ac_file" : 'X\(/\)' \| \
7054 . : '\(.\)' 2>/dev/null ||
7055 echo X"$ac_file" |
7056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7058 /^X\(\/\/\)$/{ s//\1/; q; }
7059 /^X\(\/\).*/{ s//\1/; q; }
7060 s/.*/./; q'`
7061 { if $as_mkdir_p; then
7062 mkdir -p "$ac_dir"
7063 else
7064 as_dir="$ac_dir"
7065 as_dirs=
7066 while test ! -d "$as_dir"; do
7067 as_dirs="$as_dir $as_dirs"
7068 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7069 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7070 X"$as_dir" : 'X\(//\)[^/]' \| \
7071 X"$as_dir" : 'X\(//\)$' \| \
7072 X"$as_dir" : 'X\(/\)' \| \
7073 . : '\(.\)' 2>/dev/null ||
7074 echo X"$as_dir" |
7075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7077 /^X\(\/\/\)$/{ s//\1/; q; }
7078 /^X\(\/\).*/{ s//\1/; q; }
7079 s/.*/./; q'`
7080 done
7081 test ! -n "$as_dirs" || mkdir $as_dirs
7082 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7083 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7084 { (exit 1); exit 1; }; }; }
7086 ac_builddir=.
7088 if test "$ac_dir" != .; then
7089 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7090 # A "../" for each directory in $ac_dir_suffix.
7091 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7092 else
7093 ac_dir_suffix= ac_top_builddir=
7096 case $srcdir in
7097 .) # No --srcdir option. We are building in place.
7098 ac_srcdir=.
7099 if test -z "$ac_top_builddir"; then
7100 ac_top_srcdir=.
7101 else
7102 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7103 fi ;;
7104 [\\/]* | ?:[\\/]* ) # Absolute path.
7105 ac_srcdir=$srcdir$ac_dir_suffix;
7106 ac_top_srcdir=$srcdir ;;
7107 *) # Relative path.
7108 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7109 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7110 esac
7112 # Do not use `cd foo && pwd` to compute absolute paths, because
7113 # the directories may not exist.
7114 case `pwd` in
7115 .) ac_abs_builddir="$ac_dir";;
7117 case "$ac_dir" in
7118 .) ac_abs_builddir=`pwd`;;
7119 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7120 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7121 esac;;
7122 esac
7123 case $ac_abs_builddir in
7124 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7126 case ${ac_top_builddir}. in
7127 .) ac_abs_top_builddir=$ac_abs_builddir;;
7128 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7129 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7130 esac;;
7131 esac
7132 case $ac_abs_builddir in
7133 .) ac_abs_srcdir=$ac_srcdir;;
7135 case $ac_srcdir in
7136 .) ac_abs_srcdir=$ac_abs_builddir;;
7137 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7138 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7139 esac;;
7140 esac
7141 case $ac_abs_builddir in
7142 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7144 case $ac_top_srcdir in
7145 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7146 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7147 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7148 esac;;
7149 esac
7152 case $INSTALL in
7153 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7154 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7155 esac
7157 if test x"$ac_file" != x-; then
7158 { echo "$as_me:$LINENO: creating $ac_file" >&5
7159 echo "$as_me: creating $ac_file" >&6;}
7160 rm -f "$ac_file"
7162 # Let's still pretend it is `configure' which instantiates (i.e., don't
7163 # use $as_me), people would be surprised to read:
7164 # /* config.h. Generated by config.status. */
7165 if test x"$ac_file" = x-; then
7166 configure_input=
7167 else
7168 configure_input="$ac_file. "
7170 configure_input=$configure_input"Generated from `echo $ac_file_in |
7171 sed 's,.*/,,'` by configure."
7173 # First look for the input files in the build tree, otherwise in the
7174 # src tree.
7175 ac_file_inputs=`IFS=:
7176 for f in $ac_file_in; do
7177 case $f in
7178 -) echo $tmp/stdin ;;
7179 [\\/$]*)
7180 # Absolute (can't be DOS-style, as IFS=:)
7181 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7182 echo "$as_me: error: cannot find input file: $f" >&2;}
7183 { (exit 1); exit 1; }; }
7184 echo "$f";;
7185 *) # Relative
7186 if test -f "$f"; then
7187 # Build tree
7188 echo "$f"
7189 elif test -f "$srcdir/$f"; then
7190 # Source tree
7191 echo "$srcdir/$f"
7192 else
7193 # /dev/null tree
7194 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7195 echo "$as_me: error: cannot find input file: $f" >&2;}
7196 { (exit 1); exit 1; }; }
7197 fi;;
7198 esac
7199 done` || { (exit 1); exit 1; }
7200 _ACEOF
7201 cat >>$CONFIG_STATUS <<_ACEOF
7202 sed "$ac_vpsub
7203 $extrasub
7204 _ACEOF
7205 cat >>$CONFIG_STATUS <<\_ACEOF
7207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7208 s,@configure_input@,$configure_input,;t t
7209 s,@srcdir@,$ac_srcdir,;t t
7210 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7211 s,@top_srcdir@,$ac_top_srcdir,;t t
7212 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7213 s,@builddir@,$ac_builddir,;t t
7214 s,@abs_builddir@,$ac_abs_builddir,;t t
7215 s,@top_builddir@,$ac_top_builddir,;t t
7216 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7217 s,@INSTALL@,$ac_INSTALL,;t t
7218 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7219 rm -f $tmp/stdin
7220 if test x"$ac_file" != x-; then
7221 mv $tmp/out $ac_file
7222 else
7223 cat $tmp/out
7224 rm -f $tmp/out
7227 done
7228 _ACEOF
7229 cat >>$CONFIG_STATUS <<\_ACEOF
7232 # CONFIG_HEADER section.
7235 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7236 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7238 # ac_d sets the value in "#define NAME VALUE" lines.
7239 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7240 ac_dB='[ ].*$,\1#\2'
7241 ac_dC=' '
7242 ac_dD=',;t'
7243 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7244 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7245 ac_uB='$,\1#\2define\3'
7246 ac_uC=' '
7247 ac_uD=',;t'
7249 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7250 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7251 case $ac_file in
7252 - | *:- | *:-:* ) # input from stdin
7253 cat >$tmp/stdin
7254 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7255 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7256 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7258 * ) ac_file_in=$ac_file.in ;;
7259 esac
7261 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7262 echo "$as_me: creating $ac_file" >&6;}
7264 # First look for the input files in the build tree, otherwise in the
7265 # src tree.
7266 ac_file_inputs=`IFS=:
7267 for f in $ac_file_in; do
7268 case $f in
7269 -) echo $tmp/stdin ;;
7270 [\\/$]*)
7271 # Absolute (can't be DOS-style, as IFS=:)
7272 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7273 echo "$as_me: error: cannot find input file: $f" >&2;}
7274 { (exit 1); exit 1; }; }
7275 # Do quote $f, to prevent DOS paths from being IFS'd.
7276 echo "$f";;
7277 *) # Relative
7278 if test -f "$f"; then
7279 # Build tree
7280 echo "$f"
7281 elif test -f "$srcdir/$f"; then
7282 # Source tree
7283 echo "$srcdir/$f"
7284 else
7285 # /dev/null tree
7286 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7287 echo "$as_me: error: cannot find input file: $f" >&2;}
7288 { (exit 1); exit 1; }; }
7289 fi;;
7290 esac
7291 done` || { (exit 1); exit 1; }
7292 # Remove the trailing spaces.
7293 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7295 _ACEOF
7297 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7298 # `conftest.undefs', that substitutes the proper values into
7299 # config.h.in to produce config.h. The first handles `#define'
7300 # templates, and the second `#undef' templates.
7301 # And first: Protect against being on the right side of a sed subst in
7302 # config.status. Protect against being in an unquoted here document
7303 # in config.status.
7304 rm -f conftest.defines conftest.undefs
7305 # Using a here document instead of a string reduces the quoting nightmare.
7306 # Putting comments in sed scripts is not portable.
7308 # `end' is used to avoid that the second main sed command (meant for
7309 # 0-ary CPP macros) applies to n-ary macro definitions.
7310 # See the Autoconf documentation for `clear'.
7311 cat >confdef2sed.sed <<\_ACEOF
7312 s/[\\&,]/\\&/g
7313 s,[\\$`],\\&,g
7314 t clear
7315 : clear
7316 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7317 t end
7318 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7319 : end
7320 _ACEOF
7321 # If some macros were called several times there might be several times
7322 # the same #defines, which is useless. Nevertheless, we may not want to
7323 # sort them, since we want the *last* AC-DEFINE to be honored.
7324 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7325 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7326 rm -f confdef2sed.sed
7328 # This sed command replaces #undef with comments. This is necessary, for
7329 # example, in the case of _POSIX_SOURCE, which is predefined and required
7330 # on some systems where configure will not decide to define it.
7331 cat >>conftest.undefs <<\_ACEOF
7332 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7333 _ACEOF
7335 # Break up conftest.defines because some shells have a limit on the size
7336 # of here documents, and old seds have small limits too (100 cmds).
7337 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7338 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7339 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7340 echo ' :' >>$CONFIG_STATUS
7341 rm -f conftest.tail
7342 while grep . conftest.defines >/dev/null
7344 # Write a limited-size here document to $tmp/defines.sed.
7345 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7346 # Speed up: don't consider the non `#define' lines.
7347 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7348 # Work around the forget-to-reset-the-flag bug.
7349 echo 't clr' >>$CONFIG_STATUS
7350 echo ': clr' >>$CONFIG_STATUS
7351 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7352 echo 'CEOF
7353 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7354 rm -f $tmp/in
7355 mv $tmp/out $tmp/in
7356 ' >>$CONFIG_STATUS
7357 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7358 rm -f conftest.defines
7359 mv conftest.tail conftest.defines
7360 done
7361 rm -f conftest.defines
7362 echo ' fi # grep' >>$CONFIG_STATUS
7363 echo >>$CONFIG_STATUS
7365 # Break up conftest.undefs because some shells have a limit on the size
7366 # of here documents, and old seds have small limits too (100 cmds).
7367 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7368 rm -f conftest.tail
7369 while grep . conftest.undefs >/dev/null
7371 # Write a limited-size here document to $tmp/undefs.sed.
7372 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7373 # Speed up: don't consider the non `#undef'
7374 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7375 # Work around the forget-to-reset-the-flag bug.
7376 echo 't clr' >>$CONFIG_STATUS
7377 echo ': clr' >>$CONFIG_STATUS
7378 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7379 echo 'CEOF
7380 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7381 rm -f $tmp/in
7382 mv $tmp/out $tmp/in
7383 ' >>$CONFIG_STATUS
7384 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7385 rm -f conftest.undefs
7386 mv conftest.tail conftest.undefs
7387 done
7388 rm -f conftest.undefs
7390 cat >>$CONFIG_STATUS <<\_ACEOF
7391 # Let's still pretend it is `configure' which instantiates (i.e., don't
7392 # use $as_me), people would be surprised to read:
7393 # /* config.h. Generated by config.status. */
7394 if test x"$ac_file" = x-; then
7395 echo "/* Generated by configure. */" >$tmp/config.h
7396 else
7397 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7399 cat $tmp/in >>$tmp/config.h
7400 rm -f $tmp/in
7401 if test x"$ac_file" != x-; then
7402 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7403 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7404 echo "$as_me: $ac_file is unchanged" >&6;}
7405 else
7406 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7407 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7408 X"$ac_file" : 'X\(//\)[^/]' \| \
7409 X"$ac_file" : 'X\(//\)$' \| \
7410 X"$ac_file" : 'X\(/\)' \| \
7411 . : '\(.\)' 2>/dev/null ||
7412 echo X"$ac_file" |
7413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7415 /^X\(\/\/\)$/{ s//\1/; q; }
7416 /^X\(\/\).*/{ s//\1/; q; }
7417 s/.*/./; q'`
7418 { if $as_mkdir_p; then
7419 mkdir -p "$ac_dir"
7420 else
7421 as_dir="$ac_dir"
7422 as_dirs=
7423 while test ! -d "$as_dir"; do
7424 as_dirs="$as_dir $as_dirs"
7425 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7427 X"$as_dir" : 'X\(//\)[^/]' \| \
7428 X"$as_dir" : 'X\(//\)$' \| \
7429 X"$as_dir" : 'X\(/\)' \| \
7430 . : '\(.\)' 2>/dev/null ||
7431 echo X"$as_dir" |
7432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7434 /^X\(\/\/\)$/{ s//\1/; q; }
7435 /^X\(\/\).*/{ s//\1/; q; }
7436 s/.*/./; q'`
7437 done
7438 test ! -n "$as_dirs" || mkdir $as_dirs
7439 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7440 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7441 { (exit 1); exit 1; }; }; }
7443 rm -f $ac_file
7444 mv $tmp/config.h $ac_file
7446 else
7447 cat $tmp/config.h
7448 rm -f $tmp/config.h
7450 # Compute $ac_file's index in $config_headers.
7451 _am_stamp_count=1
7452 for _am_header in $config_headers :; do
7453 case $_am_header in
7454 $ac_file | $ac_file:* )
7455 break ;;
7457 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7458 esac
7459 done
7460 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7461 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7462 X$ac_file : 'X\(//\)[^/]' \| \
7463 X$ac_file : 'X\(//\)$' \| \
7464 X$ac_file : 'X\(/\)' \| \
7465 . : '\(.\)' 2>/dev/null ||
7466 echo X$ac_file |
7467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7469 /^X\(\/\/\)$/{ s//\1/; q; }
7470 /^X\(\/\).*/{ s//\1/; q; }
7471 s/.*/./; q'`/stamp-h$_am_stamp_count
7472 done
7473 _ACEOF
7474 cat >>$CONFIG_STATUS <<\_ACEOF
7477 # CONFIG_COMMANDS section.
7479 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7480 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7481 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7482 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7483 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7484 X"$ac_dest" : 'X\(//\)[^/]' \| \
7485 X"$ac_dest" : 'X\(//\)$' \| \
7486 X"$ac_dest" : 'X\(/\)' \| \
7487 . : '\(.\)' 2>/dev/null ||
7488 echo X"$ac_dest" |
7489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7491 /^X\(\/\/\)$/{ s//\1/; q; }
7492 /^X\(\/\).*/{ s//\1/; q; }
7493 s/.*/./; q'`
7494 { if $as_mkdir_p; then
7495 mkdir -p "$ac_dir"
7496 else
7497 as_dir="$ac_dir"
7498 as_dirs=
7499 while test ! -d "$as_dir"; do
7500 as_dirs="$as_dir $as_dirs"
7501 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7503 X"$as_dir" : 'X\(//\)[^/]' \| \
7504 X"$as_dir" : 'X\(//\)$' \| \
7505 X"$as_dir" : 'X\(/\)' \| \
7506 . : '\(.\)' 2>/dev/null ||
7507 echo X"$as_dir" |
7508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7510 /^X\(\/\/\)$/{ s//\1/; q; }
7511 /^X\(\/\).*/{ s//\1/; q; }
7512 s/.*/./; q'`
7513 done
7514 test ! -n "$as_dirs" || mkdir $as_dirs
7515 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7516 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7517 { (exit 1); exit 1; }; }; }
7519 ac_builddir=.
7521 if test "$ac_dir" != .; then
7522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7523 # A "../" for each directory in $ac_dir_suffix.
7524 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7525 else
7526 ac_dir_suffix= ac_top_builddir=
7529 case $srcdir in
7530 .) # No --srcdir option. We are building in place.
7531 ac_srcdir=.
7532 if test -z "$ac_top_builddir"; then
7533 ac_top_srcdir=.
7534 else
7535 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7536 fi ;;
7537 [\\/]* | ?:[\\/]* ) # Absolute path.
7538 ac_srcdir=$srcdir$ac_dir_suffix;
7539 ac_top_srcdir=$srcdir ;;
7540 *) # Relative path.
7541 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7542 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7543 esac
7545 # Do not use `cd foo && pwd` to compute absolute paths, because
7546 # the directories may not exist.
7547 case `pwd` in
7548 .) ac_abs_builddir="$ac_dir";;
7550 case "$ac_dir" in
7551 .) ac_abs_builddir=`pwd`;;
7552 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7553 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7554 esac;;
7555 esac
7556 case $ac_abs_builddir in
7557 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7559 case ${ac_top_builddir}. in
7560 .) ac_abs_top_builddir=$ac_abs_builddir;;
7561 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7562 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7563 esac;;
7564 esac
7565 case $ac_abs_builddir in
7566 .) ac_abs_srcdir=$ac_srcdir;;
7568 case $ac_srcdir in
7569 .) ac_abs_srcdir=$ac_abs_builddir;;
7570 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7571 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7572 esac;;
7573 esac
7574 case $ac_abs_builddir in
7575 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7577 case $ac_top_srcdir in
7578 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7579 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7580 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7581 esac;;
7582 esac
7585 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7586 echo "$as_me: executing $ac_dest commands" >&6;}
7587 case $ac_dest in
7588 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7589 # Strip MF so we end up with the name of the file.
7590 mf=`echo "$mf" | sed -e 's/:.*$//'`
7591 # Check whether this is an Automake generated Makefile or not.
7592 # We used to match only the files named `Makefile.in', but
7593 # some people rename them; so instead we look at the file content.
7594 # Grep'ing the first line is not enough: some people post-process
7595 # each Makefile.in and add a new line on top of each file to say so.
7596 # So let's grep whole file.
7597 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7598 dirpart=`(dirname "$mf") 2>/dev/null ||
7599 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7600 X"$mf" : 'X\(//\)[^/]' \| \
7601 X"$mf" : 'X\(//\)$' \| \
7602 X"$mf" : 'X\(/\)' \| \
7603 . : '\(.\)' 2>/dev/null ||
7604 echo X"$mf" |
7605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7607 /^X\(\/\/\)$/{ s//\1/; q; }
7608 /^X\(\/\).*/{ s//\1/; q; }
7609 s/.*/./; q'`
7610 else
7611 continue
7613 # Extract the definition of DEPDIR, am__include, and am__quote
7614 # from the Makefile without running `make'.
7615 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7616 test -z "$DEPDIR" && continue
7617 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7618 test -z "am__include" && continue
7619 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7620 # When using ansi2knr, U may be empty or an underscore; expand it
7621 U=`sed -n 's/^U = //p' < "$mf"`
7622 # Find all dependency output files, they are included files with
7623 # $(DEPDIR) in their names. We invoke sed twice because it is the
7624 # simplest approach to changing $(DEPDIR) to its actual value in the
7625 # expansion.
7626 for file in `sed -n "
7627 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7628 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7629 # Make sure the directory exists.
7630 test -f "$dirpart/$file" && continue
7631 fdir=`(dirname "$file") 2>/dev/null ||
7632 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7633 X"$file" : 'X\(//\)[^/]' \| \
7634 X"$file" : 'X\(//\)$' \| \
7635 X"$file" : 'X\(/\)' \| \
7636 . : '\(.\)' 2>/dev/null ||
7637 echo X"$file" |
7638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7639 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7640 /^X\(\/\/\)$/{ s//\1/; q; }
7641 /^X\(\/\).*/{ s//\1/; q; }
7642 s/.*/./; q'`
7643 { if $as_mkdir_p; then
7644 mkdir -p $dirpart/$fdir
7645 else
7646 as_dir=$dirpart/$fdir
7647 as_dirs=
7648 while test ! -d "$as_dir"; do
7649 as_dirs="$as_dir $as_dirs"
7650 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7651 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7652 X"$as_dir" : 'X\(//\)[^/]' \| \
7653 X"$as_dir" : 'X\(//\)$' \| \
7654 X"$as_dir" : 'X\(/\)' \| \
7655 . : '\(.\)' 2>/dev/null ||
7656 echo X"$as_dir" |
7657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7659 /^X\(\/\/\)$/{ s//\1/; q; }
7660 /^X\(\/\).*/{ s//\1/; q; }
7661 s/.*/./; q'`
7662 done
7663 test ! -n "$as_dirs" || mkdir $as_dirs
7664 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7665 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7666 { (exit 1); exit 1; }; }; }
7668 # echo "creating $dirpart/$file"
7669 echo '# dummy' > "$dirpart/$file"
7670 done
7671 done
7673 default-1 )
7674 for ac_file in $CONFIG_FILES; do
7675 # Support "outfile[:infile[:infile...]]"
7676 case "$ac_file" in
7677 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7678 esac
7679 # PO directories have a Makefile.in generated from Makefile.in.in.
7680 case "$ac_file" in */Makefile.in)
7681 # Adjust a relative srcdir.
7682 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7683 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
7684 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7685 # In autoconf-2.13 it is called $ac_given_srcdir.
7686 # In autoconf-2.50 it is called $srcdir.
7687 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7688 case "$ac_given_srcdir" in
7689 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7690 /*) top_srcdir="$ac_given_srcdir" ;;
7691 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
7692 esac
7693 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7694 rm -f "$ac_dir/POTFILES"
7695 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7696 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
7697 POMAKEFILEDEPS="POTFILES.in"
7698 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
7699 # on $ac_dir but don't depend on user-specified configuration
7700 # parameters.
7701 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
7702 # The LINGUAS file contains the set of available languages.
7703 if test -n "$OBSOLETE_ALL_LINGUAS"; then
7704 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
7706 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
7707 # Hide the ALL_LINGUAS assigment from automake.
7708 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
7709 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
7710 else
7711 # The set of available languages was given in configure.in.
7712 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
7714 case "$ac_given_srcdir" in
7715 .) srcdirpre= ;;
7716 *) srcdirpre='$(srcdir)/' ;;
7717 esac
7718 POFILES=
7719 GMOFILES=
7720 UPDATEPOFILES=
7721 DUMMYPOFILES=
7722 for lang in $ALL_LINGUAS; do
7723 POFILES="$POFILES $srcdirpre$lang.po"
7724 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
7725 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
7726 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
7727 done
7728 # CATALOGS depends on both $ac_dir and the user's LINGUAS
7729 # environment variable.
7730 INST_LINGUAS=
7731 if test -n "$ALL_LINGUAS"; then
7732 for presentlang in $ALL_LINGUAS; do
7733 useit=no
7734 if test "%UNSET%" != "$LINGUAS"; then
7735 desiredlanguages="$LINGUAS"
7736 else
7737 desiredlanguages="$ALL_LINGUAS"
7739 for desiredlang in $desiredlanguages; do
7740 # Use the presentlang catalog if desiredlang is
7741 # a. equal to presentlang, or
7742 # b. a variant of presentlang (because in this case,
7743 # presentlang can be used as a fallback for messages
7744 # which are not translated in the desiredlang catalog).
7745 case "$desiredlang" in
7746 "$presentlang"*) useit=yes;;
7747 esac
7748 done
7749 if test $useit = yes; then
7750 INST_LINGUAS="$INST_LINGUAS $presentlang"
7752 done
7754 CATALOGS=
7755 if test -n "$INST_LINGUAS"; then
7756 for lang in $INST_LINGUAS; do
7757 CATALOGS="$CATALOGS $lang.gmo"
7758 done
7760 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7761 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"
7762 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
7763 if test -f "$f"; then
7764 case "$f" in
7765 *.orig | *.bak | *~) ;;
7766 *) cat "$f" >> "$ac_dir/Makefile" ;;
7767 esac
7769 done
7772 esac
7773 done ;;
7774 esac
7775 done
7776 _ACEOF
7778 cat >>$CONFIG_STATUS <<\_ACEOF
7780 { (exit 0); exit 0; }
7781 _ACEOF
7782 chmod +x $CONFIG_STATUS
7783 ac_clean_files=$ac_clean_files_save
7786 # configure is writing to config.log, and then calls config.status.
7787 # config.status does its own redirection, appending to config.log.
7788 # Unfortunately, on DOS this fails, as config.log is still kept open
7789 # by configure, so config.status won't be able to write to it; its
7790 # output is simply discarded. So we exec the FD to /dev/null,
7791 # effectively closing config.log, so it can be properly (re)opened and
7792 # appended to by config.status. When coming back to configure, we
7793 # need to make the FD available again.
7794 if test "$no_create" != yes; then
7795 ac_cs_success=:
7796 ac_config_status_args=
7797 test "$silent" = yes &&
7798 ac_config_status_args="$ac_config_status_args --quiet"
7799 exec 5>/dev/null
7800 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7801 exec 5>>config.log
7802 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7803 # would make configure fail if this is the last instruction.
7804 $ac_cs_success || { (exit 1); exit 1; }