]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/configure
* configure.ac: Add igen to v850 build.
[thirdparty/binutils-gdb.git] / sim / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
b7026657 3# Generated by GNU Autoconf 2.59.
c906108c 4#
b7026657 5# Copyright (C) 2003 Free Software Foundation, Inc.
c906108c
SS
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
b7026657
AC
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
137 /*)
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
152done
153;;
154 esac
155
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 '
166 N
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; }; }
177
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
184}
185
186
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
c906108c 224
b7026657
AC
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
c906108c 254ac_default_prefix=/usr/local
b7026657
AC
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
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}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="Makefile.in"
275ac_subdirs_all="$ac_subdirs_all arm"
f6bcefef 276ac_subdirs_all="$ac_subdirs_all cris"
b7026657
AC
277ac_subdirs_all="$ac_subdirs_all d10v"
278ac_subdirs_all="$ac_subdirs_all frv"
279ac_subdirs_all="$ac_subdirs_all h8300"
edece237 280ac_subdirs_all="$ac_subdirs_all iq2000"
b7026657
AC
281ac_subdirs_all="$ac_subdirs_all m32r"
282ac_subdirs_all="$ac_subdirs_all m68hc11"
283ac_subdirs_all="$ac_subdirs_all mcore"
284ac_subdirs_all="$ac_subdirs_all mips"
285ac_subdirs_all="$ac_subdirs_all mn10300"
21bc7567 286ac_subdirs_all="$ac_subdirs_all sh64"
b7026657
AC
287ac_subdirs_all="$ac_subdirs_all sh"
288ac_subdirs_all="$ac_subdirs_all ppc"
289ac_subdirs_all="$ac_subdirs_all v850"
b7026657
AC
290ac_subdirs_all="$ac_subdirs_all testsuite"
291ac_subdirs_all="$ac_subdirs_all common"
292ac_subdirs_all="$ac_subdirs_all igen"
293ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR ac_ct_AR RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os HDEFINES CC_FOR_BUILD subdirs LIBOBJS LTLIBOBJS'
294ac_subst_files=''
c906108c
SS
295
296# Initialize some variables set by options.
b7026657
AC
297ac_init_help=
298ac_init_version=false
c906108c
SS
299# The variables have the same names as the options, with
300# dashes changed to underlines.
b7026657 301cache_file=/dev/null
c906108c 302exec_prefix=NONE
c906108c 303no_create=
c906108c
SS
304no_recursion=
305prefix=NONE
306program_prefix=NONE
307program_suffix=NONE
308program_transform_name=s,x,x,
309silent=
310site=
311srcdir=
c906108c
SS
312verbose=
313x_includes=NONE
314x_libraries=NONE
b7026657
AC
315
316# Installation directory options.
317# These are left unexpanded so users can "make install exec_prefix=/foo"
318# and all the variables that are supposed to be based on exec_prefix
319# by default will actually change.
320# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
321bindir='${exec_prefix}/bin'
322sbindir='${exec_prefix}/sbin'
323libexecdir='${exec_prefix}/libexec'
324datadir='${prefix}/share'
325sysconfdir='${prefix}/etc'
326sharedstatedir='${prefix}/com'
327localstatedir='${prefix}/var'
328libdir='${exec_prefix}/lib'
329includedir='${prefix}/include'
330oldincludedir='/usr/include'
331infodir='${prefix}/info'
332mandir='${prefix}/man'
333
c906108c
SS
334ac_prev=
335for ac_option
336do
c906108c
SS
337 # If the previous option needs an argument, assign it.
338 if test -n "$ac_prev"; then
339 eval "$ac_prev=\$ac_option"
340 ac_prev=
341 continue
342 fi
343
b7026657 344 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
345
346 # Accept the important Cygnus configure options, so we can diagnose typos.
347
b7026657 348 case $ac_option in
c906108c
SS
349
350 -bindir | --bindir | --bindi | --bind | --bin | --bi)
351 ac_prev=bindir ;;
352 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 353 bindir=$ac_optarg ;;
c906108c
SS
354
355 -build | --build | --buil | --bui | --bu)
b7026657 356 ac_prev=build_alias ;;
c906108c 357 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 358 build_alias=$ac_optarg ;;
c906108c
SS
359
360 -cache-file | --cache-file | --cache-fil | --cache-fi \
361 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
362 ac_prev=cache_file ;;
363 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
364 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
365 cache_file=$ac_optarg ;;
366
367 --config-cache | -C)
368 cache_file=config.cache ;;
c906108c
SS
369
370 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
371 ac_prev=datadir ;;
372 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
373 | --da=*)
b7026657 374 datadir=$ac_optarg ;;
c906108c
SS
375
376 -disable-* | --disable-*)
b7026657 377 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 378 # Reject names that are not valid shell variable names.
b7026657
AC
379 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
380 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
381 { (exit 1); exit 1; }; }
382 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
383 eval "enable_$ac_feature=no" ;;
c906108c
SS
384
385 -enable-* | --enable-*)
b7026657 386 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 387 # Reject names that are not valid shell variable names.
b7026657
AC
388 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390 { (exit 1); exit 1; }; }
391 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392 case $ac_option in
393 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
394 *) ac_optarg=yes ;;
395 esac
b7026657 396 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
397
398 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
399 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
400 | --exec | --exe | --ex)
401 ac_prev=exec_prefix ;;
402 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
403 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
404 | --exec=* | --exe=* | --ex=*)
b7026657 405 exec_prefix=$ac_optarg ;;
c906108c
SS
406
407 -gas | --gas | --ga | --g)
408 # Obsolete; use --with-gas.
409 with_gas=yes ;;
410
b7026657
AC
411 -help | --help | --hel | --he | -h)
412 ac_init_help=long ;;
413 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
414 ac_init_help=recursive ;;
415 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
416 ac_init_help=short ;;
c906108c
SS
417
418 -host | --host | --hos | --ho)
b7026657 419 ac_prev=host_alias ;;
c906108c 420 -host=* | --host=* | --hos=* | --ho=*)
b7026657 421 host_alias=$ac_optarg ;;
c906108c
SS
422
423 -includedir | --includedir | --includedi | --included | --include \
424 | --includ | --inclu | --incl | --inc)
425 ac_prev=includedir ;;
426 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
427 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 428 includedir=$ac_optarg ;;
c906108c
SS
429
430 -infodir | --infodir | --infodi | --infod | --info | --inf)
431 ac_prev=infodir ;;
432 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 433 infodir=$ac_optarg ;;
c906108c
SS
434
435 -libdir | --libdir | --libdi | --libd)
436 ac_prev=libdir ;;
437 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 438 libdir=$ac_optarg ;;
c906108c
SS
439
440 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
441 | --libexe | --libex | --libe)
442 ac_prev=libexecdir ;;
443 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
444 | --libexe=* | --libex=* | --libe=*)
b7026657 445 libexecdir=$ac_optarg ;;
c906108c
SS
446
447 -localstatedir | --localstatedir | --localstatedi | --localstated \
448 | --localstate | --localstat | --localsta | --localst \
449 | --locals | --local | --loca | --loc | --lo)
450 ac_prev=localstatedir ;;
451 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
452 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
453 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
b7026657 454 localstatedir=$ac_optarg ;;
c906108c
SS
455
456 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
457 ac_prev=mandir ;;
458 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 459 mandir=$ac_optarg ;;
c906108c
SS
460
461 -nfp | --nfp | --nf)
462 # Obsolete; use --without-fp.
463 with_fp=no ;;
464
465 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 466 | --no-cr | --no-c | -n)
c906108c
SS
467 no_create=yes ;;
468
469 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
471 no_recursion=yes ;;
472
473 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
474 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
475 | --oldin | --oldi | --old | --ol | --o)
476 ac_prev=oldincludedir ;;
477 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
478 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
479 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 480 oldincludedir=$ac_optarg ;;
c906108c
SS
481
482 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
483 ac_prev=prefix ;;
484 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 485 prefix=$ac_optarg ;;
c906108c
SS
486
487 -program-prefix | --program-prefix | --program-prefi | --program-pref \
488 | --program-pre | --program-pr | --program-p)
489 ac_prev=program_prefix ;;
490 -program-prefix=* | --program-prefix=* | --program-prefi=* \
491 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 492 program_prefix=$ac_optarg ;;
c906108c
SS
493
494 -program-suffix | --program-suffix | --program-suffi | --program-suff \
495 | --program-suf | --program-su | --program-s)
496 ac_prev=program_suffix ;;
497 -program-suffix=* | --program-suffix=* | --program-suffi=* \
498 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 499 program_suffix=$ac_optarg ;;
c906108c
SS
500
501 -program-transform-name | --program-transform-name \
502 | --program-transform-nam | --program-transform-na \
503 | --program-transform-n | --program-transform- \
504 | --program-transform | --program-transfor \
505 | --program-transfo | --program-transf \
506 | --program-trans | --program-tran \
507 | --progr-tra | --program-tr | --program-t)
508 ac_prev=program_transform_name ;;
509 -program-transform-name=* | --program-transform-name=* \
510 | --program-transform-nam=* | --program-transform-na=* \
511 | --program-transform-n=* | --program-transform-=* \
512 | --program-transform=* | --program-transfor=* \
513 | --program-transfo=* | --program-transf=* \
514 | --program-trans=* | --program-tran=* \
515 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 516 program_transform_name=$ac_optarg ;;
c906108c
SS
517
518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
519 | -silent | --silent | --silen | --sile | --sil)
520 silent=yes ;;
521
522 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
523 ac_prev=sbindir ;;
524 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
525 | --sbi=* | --sb=*)
b7026657 526 sbindir=$ac_optarg ;;
c906108c
SS
527
528 -sharedstatedir | --sharedstatedir | --sharedstatedi \
529 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
530 | --sharedst | --shareds | --shared | --share | --shar \
531 | --sha | --sh)
532 ac_prev=sharedstatedir ;;
533 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
534 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
535 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
536 | --sha=* | --sh=*)
b7026657 537 sharedstatedir=$ac_optarg ;;
c906108c
SS
538
539 -site | --site | --sit)
540 ac_prev=site ;;
541 -site=* | --site=* | --sit=*)
b7026657 542 site=$ac_optarg ;;
0fda6bd2 543
c906108c
SS
544 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
545 ac_prev=srcdir ;;
546 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 547 srcdir=$ac_optarg ;;
c906108c
SS
548
549 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
550 | --syscon | --sysco | --sysc | --sys | --sy)
551 ac_prev=sysconfdir ;;
552 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
553 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 554 sysconfdir=$ac_optarg ;;
c906108c
SS
555
556 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 557 ac_prev=target_alias ;;
c906108c 558 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 559 target_alias=$ac_optarg ;;
c906108c
SS
560
561 -v | -verbose | --verbose | --verbos | --verbo | --verb)
562 verbose=yes ;;
563
b7026657
AC
564 -version | --version | --versio | --versi | --vers | -V)
565 ac_init_version=: ;;
c906108c
SS
566
567 -with-* | --with-*)
b7026657 568 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 569 # Reject names that are not valid shell variable names.
b7026657
AC
570 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571 { echo "$as_me: error: invalid package name: $ac_package" >&2
572 { (exit 1); exit 1; }; }
c906108c 573 ac_package=`echo $ac_package| sed 's/-/_/g'`
b7026657
AC
574 case $ac_option in
575 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
576 *) ac_optarg=yes ;;
577 esac
b7026657 578 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
579
580 -without-* | --without-*)
b7026657 581 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 582 # Reject names that are not valid shell variable names.
b7026657
AC
583 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
584 { echo "$as_me: error: invalid package name: $ac_package" >&2
585 { (exit 1); exit 1; }; }
586 ac_package=`echo $ac_package | sed 's/-/_/g'`
587 eval "with_$ac_package=no" ;;
c906108c
SS
588
589 --x)
590 # Obsolete; use --with-x.
591 with_x=yes ;;
592
593 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
594 | --x-incl | --x-inc | --x-in | --x-i)
595 ac_prev=x_includes ;;
596 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
597 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 598 x_includes=$ac_optarg ;;
c906108c
SS
599
600 -x-libraries | --x-libraries | --x-librarie | --x-librari \
601 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
602 ac_prev=x_libraries ;;
603 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
604 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 605 x_libraries=$ac_optarg ;;
c906108c 606
b7026657
AC
607 -*) { echo "$as_me: error: unrecognized option: $ac_option
608Try \`$0 --help' for more information." >&2
609 { (exit 1); exit 1; }; }
c906108c
SS
610 ;;
611
b7026657
AC
612 *=*)
613 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
614 # Reject names that are not valid shell variable names.
615 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
616 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
617 { (exit 1); exit 1; }; }
618 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
619 eval "$ac_envvar='$ac_optarg'"
620 export $ac_envvar ;;
621
c906108c 622 *)
b7026657
AC
623 # FIXME: should be removed in autoconf 3.0.
624 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
625 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
626 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
627 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
628 ;;
629
630 esac
631done
632
633if test -n "$ac_prev"; then
b7026657
AC
634 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
635 { echo "$as_me: error: missing argument to $ac_option" >&2
636 { (exit 1); exit 1; }; }
c906108c 637fi
c906108c 638
b7026657
AC
639# Be sure to have absolute paths.
640for ac_var in exec_prefix prefix
641do
642 eval ac_val=$`echo $ac_var`
643 case $ac_val in
644 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
645 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
646 { (exit 1); exit 1; }; };;
647 esac
648done
c906108c 649
b7026657
AC
650# Be sure to have absolute paths.
651for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
652 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 653do
b7026657
AC
654 eval ac_val=$`echo $ac_var`
655 case $ac_val in
656 [\\/$]* | ?:[\\/]* ) ;;
657 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
658 { (exit 1); exit 1; }; };;
c906108c
SS
659 esac
660done
661
b7026657
AC
662# There might be people who depend on the old broken behavior: `$host'
663# used to hold the argument of --host etc.
664# FIXME: To remove some day.
665build=$build_alias
666host=$host_alias
667target=$target_alias
668
669# FIXME: To remove some day.
670if test "x$host_alias" != x; then
671 if test "x$build_alias" = x; then
672 cross_compiling=maybe
673 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
674 If a cross compiler is detected then cross compile mode will be used." >&2
675 elif test "x$build_alias" != "x$host_alias"; then
676 cross_compiling=yes
677 fi
678fi
c906108c 679
b7026657
AC
680ac_tool_prefix=
681test -n "$host_alias" && ac_tool_prefix=$host_alias-
682
683test "$silent" = yes && exec 6>/dev/null
c906108c 684
c906108c
SS
685
686# Find the source files, if location was not specified.
687if test -z "$srcdir"; then
688 ac_srcdir_defaulted=yes
689 # Try the directory containing this script, then its parent.
b7026657
AC
690 ac_confdir=`(dirname "$0") 2>/dev/null ||
691$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
692 X"$0" : 'X\(//\)[^/]' \| \
693 X"$0" : 'X\(//\)$' \| \
694 X"$0" : 'X\(/\)' \| \
695 . : '\(.\)' 2>/dev/null ||
696echo X"$0" |
697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
699 /^X\(\/\/\)$/{ s//\1/; q; }
700 /^X\(\/\).*/{ s//\1/; q; }
701 s/.*/./; q'`
c906108c
SS
702 srcdir=$ac_confdir
703 if test ! -r $srcdir/$ac_unique_file; then
704 srcdir=..
705 fi
706else
707 ac_srcdir_defaulted=no
708fi
709if test ! -r $srcdir/$ac_unique_file; then
710 if test "$ac_srcdir_defaulted" = yes; then
b7026657
AC
711 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
712 { (exit 1); exit 1; }; }
c906108c 713 else
b7026657
AC
714 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
715 { (exit 1); exit 1; }; }
c906108c
SS
716 fi
717fi
b7026657
AC
718(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
719 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
720 { (exit 1); exit 1; }; }
721srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
722ac_env_build_alias_set=${build_alias+set}
723ac_env_build_alias_value=$build_alias
724ac_cv_env_build_alias_set=${build_alias+set}
725ac_cv_env_build_alias_value=$build_alias
726ac_env_host_alias_set=${host_alias+set}
727ac_env_host_alias_value=$host_alias
728ac_cv_env_host_alias_set=${host_alias+set}
729ac_cv_env_host_alias_value=$host_alias
730ac_env_target_alias_set=${target_alias+set}
731ac_env_target_alias_value=$target_alias
732ac_cv_env_target_alias_set=${target_alias+set}
733ac_cv_env_target_alias_value=$target_alias
734ac_env_CC_set=${CC+set}
735ac_env_CC_value=$CC
736ac_cv_env_CC_set=${CC+set}
737ac_cv_env_CC_value=$CC
738ac_env_CFLAGS_set=${CFLAGS+set}
739ac_env_CFLAGS_value=$CFLAGS
740ac_cv_env_CFLAGS_set=${CFLAGS+set}
741ac_cv_env_CFLAGS_value=$CFLAGS
742ac_env_LDFLAGS_set=${LDFLAGS+set}
743ac_env_LDFLAGS_value=$LDFLAGS
744ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
745ac_cv_env_LDFLAGS_value=$LDFLAGS
746ac_env_CPPFLAGS_set=${CPPFLAGS+set}
747ac_env_CPPFLAGS_value=$CPPFLAGS
748ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
749ac_cv_env_CPPFLAGS_value=$CPPFLAGS
c906108c 750
b7026657
AC
751#
752# Report the --help message.
753#
754if test "$ac_init_help" = "long"; then
755 # Omit some internal or obsolete options to make the list less imposing.
756 # This message is too long to be a string in the A/UX 3.1 sh.
757 cat <<_ACEOF
758\`configure' configures this package to adapt to many kinds of systems.
759
760Usage: $0 [OPTION]... [VAR=VALUE]...
761
762To assign environment variables (e.g., CC, CFLAGS...), specify them as
763VAR=VALUE. See below for descriptions of some of the useful variables.
764
765Defaults for the options are specified in brackets.
766
767Configuration:
768 -h, --help display this help and exit
769 --help=short display options specific to this package
770 --help=recursive display the short help of all the included packages
771 -V, --version display version information and exit
772 -q, --quiet, --silent do not print \`checking...' messages
773 --cache-file=FILE cache test results in FILE [disabled]
774 -C, --config-cache alias for \`--cache-file=config.cache'
775 -n, --no-create do not create output files
776 --srcdir=DIR find the sources in DIR [configure dir or \`..']
777
778_ACEOF
779
780 cat <<_ACEOF
781Installation directories:
782 --prefix=PREFIX install architecture-independent files in PREFIX
783 [$ac_default_prefix]
784 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
785 [PREFIX]
786
787By default, \`make install' will install all the files in
788\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
789an installation prefix other than \`$ac_default_prefix' using \`--prefix',
790for instance \`--prefix=\$HOME'.
791
792For better control, use the options below.
793
794Fine tuning of the installation directories:
795 --bindir=DIR user executables [EPREFIX/bin]
796 --sbindir=DIR system admin executables [EPREFIX/sbin]
797 --libexecdir=DIR program executables [EPREFIX/libexec]
798 --datadir=DIR read-only architecture-independent data [PREFIX/share]
799 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
800 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
801 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
802 --libdir=DIR object code libraries [EPREFIX/lib]
803 --includedir=DIR C header files [PREFIX/include]
804 --oldincludedir=DIR C header files for non-gcc [/usr/include]
805 --infodir=DIR info documentation [PREFIX/info]
806 --mandir=DIR man documentation [PREFIX/man]
807_ACEOF
808
809 cat <<\_ACEOF
810
811Program names:
812 --program-prefix=PREFIX prepend PREFIX to installed program names
813 --program-suffix=SUFFIX append SUFFIX to installed program names
814 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
815
816System types:
817 --build=BUILD configure for building on BUILD [guessed]
818 --host=HOST cross-compile to build programs to run on HOST [BUILD]
819 --target=TARGET configure for building compilers for TARGET [HOST]
820_ACEOF
821fi
822
823if test -n "$ac_init_help"; then
824
825 cat <<\_ACEOF
826
827Optional Features:
828 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
829 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
830 --enable-sim
831
832Some influential environment variables:
833 CC C compiler command
834 CFLAGS C compiler flags
835 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
836 nonstandard directory <lib dir>
837 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
838 headers in a nonstandard directory <include dir>
839
840Use these variables to override the choices made by `configure' or to help
841it to find libraries and programs with nonstandard names/locations.
842
843_ACEOF
844fi
845
846if test "$ac_init_help" = "recursive"; then
847 # If there are subdirs, report their specific --help.
848 ac_popdir=`pwd`
849 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
850 test -d $ac_dir || continue
851 ac_builddir=.
852
853if test "$ac_dir" != .; then
854 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
855 # A "../" for each directory in $ac_dir_suffix.
856 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
857else
858 ac_dir_suffix= ac_top_builddir=
859fi
860
861case $srcdir in
862 .) # No --srcdir option. We are building in place.
863 ac_srcdir=.
864 if test -z "$ac_top_builddir"; then
865 ac_top_srcdir=.
866 else
867 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
868 fi ;;
869 [\\/]* | ?:[\\/]* ) # Absolute path.
870 ac_srcdir=$srcdir$ac_dir_suffix;
871 ac_top_srcdir=$srcdir ;;
872 *) # Relative path.
873 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
874 ac_top_srcdir=$ac_top_builddir$srcdir ;;
875esac
876
877# Do not use `cd foo && pwd` to compute absolute paths, because
878# the directories may not exist.
879case `pwd` in
880.) ac_abs_builddir="$ac_dir";;
881*)
882 case "$ac_dir" in
883 .) ac_abs_builddir=`pwd`;;
884 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
885 *) ac_abs_builddir=`pwd`/"$ac_dir";;
886 esac;;
887esac
888case $ac_abs_builddir in
889.) ac_abs_top_builddir=${ac_top_builddir}.;;
890*)
891 case ${ac_top_builddir}. in
892 .) ac_abs_top_builddir=$ac_abs_builddir;;
893 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
894 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
895 esac;;
896esac
897case $ac_abs_builddir in
898.) ac_abs_srcdir=$ac_srcdir;;
899*)
900 case $ac_srcdir in
901 .) ac_abs_srcdir=$ac_abs_builddir;;
902 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
903 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
904 esac;;
905esac
906case $ac_abs_builddir in
907.) ac_abs_top_srcdir=$ac_top_srcdir;;
908*)
909 case $ac_top_srcdir in
910 .) ac_abs_top_srcdir=$ac_abs_builddir;;
911 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
912 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
913 esac;;
914esac
915
916 cd $ac_dir
917 # Check for guested configure; otherwise get Cygnus style configure.
918 if test -f $ac_srcdir/configure.gnu; then
919 echo
920 $SHELL $ac_srcdir/configure.gnu --help=recursive
921 elif test -f $ac_srcdir/configure; then
922 echo
923 $SHELL $ac_srcdir/configure --help=recursive
924 elif test -f $ac_srcdir/configure.ac ||
925 test -f $ac_srcdir/configure.in; then
926 echo
927 $ac_configure --help
0fda6bd2 928 else
b7026657
AC
929 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
930 fi
931 cd $ac_popdir
932 done
933fi
934
935test -n "$ac_init_help" && exit 0
936if $ac_init_version; then
937 cat <<\_ACEOF
938
939Copyright (C) 2003 Free Software Foundation, Inc.
940This configure script is free software; the Free Software Foundation
941gives unlimited permission to copy, distribute and modify it.
942_ACEOF
943 exit 0
944fi
945exec 5>config.log
946cat >&5 <<_ACEOF
947This file contains any messages produced by compilers while
948running configure, to aid debugging if configure makes a mistake.
949
950It was created by $as_me, which was
951generated by GNU Autoconf 2.59. Invocation command line was
952
953 $ $0 $@
954
955_ACEOF
956{
957cat <<_ASUNAME
958## --------- ##
959## Platform. ##
960## --------- ##
961
962hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
963uname -m = `(uname -m) 2>/dev/null || echo unknown`
964uname -r = `(uname -r) 2>/dev/null || echo unknown`
965uname -s = `(uname -s) 2>/dev/null || echo unknown`
966uname -v = `(uname -v) 2>/dev/null || echo unknown`
967
968/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
969/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
970
971/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
972/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
973/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
974hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
975/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
976/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
977/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
978
979_ASUNAME
980
981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
982for as_dir in $PATH
983do
984 IFS=$as_save_IFS
985 test -z "$as_dir" && as_dir=.
986 echo "PATH: $as_dir"
987done
988
989} >&5
990
991cat >&5 <<_ACEOF
992
993
994## ----------- ##
995## Core tests. ##
996## ----------- ##
997
998_ACEOF
999
1000
1001# Keep a trace of the command line.
1002# Strip out --no-create and --no-recursion so they do not pile up.
1003# Strip out --silent because we don't want to record it for future runs.
1004# Also quote any args containing shell meta-characters.
1005# Make two passes to allow for proper duplicate-argument suppression.
1006ac_configure_args=
1007ac_configure_args0=
1008ac_configure_args1=
1009ac_sep=
1010ac_must_keep_next=false
1011for ac_pass in 1 2
1012do
1013 for ac_arg
1014 do
1015 case $ac_arg in
1016 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018 | -silent | --silent | --silen | --sile | --sil)
1019 continue ;;
1020 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1021 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1022 esac
1023 case $ac_pass in
1024 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1025 2)
1026 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1027 if test $ac_must_keep_next = true; then
1028 ac_must_keep_next=false # Got value, back to normal.
1029 else
1030 case $ac_arg in
1031 *=* | --config-cache | -C | -disable-* | --disable-* \
1032 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1033 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1034 | -with-* | --with-* | -without-* | --without-* | --x)
1035 case "$ac_configure_args0 " in
1036 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1037 esac
1038 ;;
1039 -* ) ac_must_keep_next=true ;;
1040 esac
1041 fi
1042 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1043 # Get rid of the leading space.
1044 ac_sep=" "
1045 ;;
1046 esac
1047 done
1048done
1049$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1050$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1051
1052# When interrupted or exit'd, cleanup temporary files, and complete
1053# config.log. We remove comments because anyway the quotes in there
1054# would cause problems or look ugly.
1055# WARNING: Be sure not to use single quotes in there, as some shells,
1056# such as our DU 5.0 friend, will then `close' the trap.
1057trap 'exit_status=$?
1058 # Save into config.log some information that might help in debugging.
1059 {
1060 echo
1061
1062 cat <<\_ASBOX
1063## ---------------- ##
1064## Cache variables. ##
1065## ---------------- ##
1066_ASBOX
1067 echo
1068 # The following way of writing the cache mishandles newlines in values,
1069{
1070 (set) 2>&1 |
1071 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1072 *ac_space=\ *)
1073 sed -n \
1074 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1075 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1076 ;;
1077 *)
1078 sed -n \
1079 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1080 ;;
1081 esac;
1082}
1083 echo
1084
1085 cat <<\_ASBOX
1086## ----------------- ##
1087## Output variables. ##
1088## ----------------- ##
1089_ASBOX
1090 echo
1091 for ac_var in $ac_subst_vars
1092 do
1093 eval ac_val=$`echo $ac_var`
1094 echo "$ac_var='"'"'$ac_val'"'"'"
1095 done | sort
1096 echo
1097
1098 if test -n "$ac_subst_files"; then
1099 cat <<\_ASBOX
1100## ------------- ##
1101## Output files. ##
1102## ------------- ##
1103_ASBOX
1104 echo
1105 for ac_var in $ac_subst_files
1106 do
1107 eval ac_val=$`echo $ac_var`
1108 echo "$ac_var='"'"'$ac_val'"'"'"
1109 done | sort
1110 echo
1111 fi
1112
1113 if test -s confdefs.h; then
1114 cat <<\_ASBOX
1115## ----------- ##
1116## confdefs.h. ##
1117## ----------- ##
1118_ASBOX
1119 echo
1120 sed "/^$/d" confdefs.h | sort
1121 echo
0fda6bd2 1122 fi
b7026657
AC
1123 test "$ac_signal" != 0 &&
1124 echo "$as_me: caught signal $ac_signal"
1125 echo "$as_me: exit $exit_status"
1126 } >&5
1127 rm -f core *.core &&
1128 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1129 exit $exit_status
1130 ' 0
1131for ac_signal in 1 2 13 15; do
1132 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1133done
1134ac_signal=0
1135
1136# confdefs.h avoids OS command line length limits that DEFS can exceed.
1137rm -rf conftest* confdefs.h
1138# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1139echo >confdefs.h
1140
1141# Predefined preprocessor variables.
1142
1143cat >>confdefs.h <<_ACEOF
1144#define PACKAGE_NAME "$PACKAGE_NAME"
1145_ACEOF
1146
1147
1148cat >>confdefs.h <<_ACEOF
1149#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1150_ACEOF
1151
1152
1153cat >>confdefs.h <<_ACEOF
1154#define PACKAGE_VERSION "$PACKAGE_VERSION"
1155_ACEOF
1156
1157
1158cat >>confdefs.h <<_ACEOF
1159#define PACKAGE_STRING "$PACKAGE_STRING"
1160_ACEOF
1161
1162
1163cat >>confdefs.h <<_ACEOF
1164#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1165_ACEOF
1166
1167
1168# Let the site file select an alternate cache file if it wants to.
1169# Prefer explicitly selected file to automatically selected ones.
1170if test -z "$CONFIG_SITE"; then
1171 if test "x$prefix" != xNONE; then
1172 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1173 else
1174 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
c906108c
SS
1175 fi
1176fi
1177for ac_site_file in $CONFIG_SITE; do
1178 if test -r "$ac_site_file"; then
b7026657
AC
1179 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1180echo "$as_me: loading site script $ac_site_file" >&6;}
1181 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1182 . "$ac_site_file"
1183 fi
1184done
1185
1186if test -r "$cache_file"; then
b7026657
AC
1187 # Some versions of bash will fail to source /dev/null (special
1188 # files actually), so we avoid doing that.
1189 if test -f "$cache_file"; then
1190 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1191echo "$as_me: loading cache $cache_file" >&6;}
1192 case $cache_file in
1193 [\\/]* | ?:[\\/]* ) . $cache_file;;
1194 *) . ./$cache_file;;
1195 esac
1196 fi
c906108c 1197else
b7026657
AC
1198 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1199echo "$as_me: creating cache $cache_file" >&6;}
1200 >$cache_file
c906108c
SS
1201fi
1202
b7026657
AC
1203# Check that the precious variables saved in the cache have kept the same
1204# value.
1205ac_cache_corrupted=false
1206for ac_var in `(set) 2>&1 |
1207 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1208 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1209 eval ac_new_set=\$ac_env_${ac_var}_set
1210 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1211 eval ac_new_val="\$ac_env_${ac_var}_value"
1212 case $ac_old_set,$ac_new_set in
1213 set,)
1214 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1215echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1216 ac_cache_corrupted=: ;;
1217 ,set)
1218 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1219echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1220 ac_cache_corrupted=: ;;
1221 ,);;
1222 *)
1223 if test "x$ac_old_val" != "x$ac_new_val"; then
1224 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1225echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1226 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1227echo "$as_me: former value: $ac_old_val" >&2;}
1228 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1229echo "$as_me: current value: $ac_new_val" >&2;}
1230 ac_cache_corrupted=:
1231 fi;;
1232 esac
1233 # Pass precious variables to config.status.
1234 if test "$ac_new_set" = set; then
1235 case $ac_new_val in
1236 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1237 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1238 *) ac_arg=$ac_var=$ac_new_val ;;
1239 esac
1240 case " $ac_configure_args " in
1241 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1242 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1243 esac
c906108c 1244 fi
b7026657
AC
1245done
1246if $ac_cache_corrupted; then
1247 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1248echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1249 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1250echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1251 { (exit 1); exit 1; }; }
c906108c
SS
1252fi
1253
b7026657
AC
1254ac_ext=c
1255ac_cpp='$CPP $CPPFLAGS'
1256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1258ac_compiler_gnu=$ac_cv_c_compiler_gnu
1259
c906108c
SS
1260
1261
b7026657
AC
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279ac_ext=c
1280ac_cpp='$CPP $CPPFLAGS'
1281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1283ac_compiler_gnu=$ac_cv_c_compiler_gnu
1284if test -n "$ac_tool_prefix"; then
1285 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1286set dummy ${ac_tool_prefix}gcc; ac_word=$2
1287echo "$as_me:$LINENO: checking for $ac_word" >&5
1288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1289if test "${ac_cv_prog_CC+set}" = set; then
1290 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1291else
1292 if test -n "$CC"; then
1293 ac_cv_prog_CC="$CC" # Let the user override the test.
1294else
b7026657
AC
1295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1296for as_dir in $PATH
1297do
1298 IFS=$as_save_IFS
1299 test -z "$as_dir" && as_dir=.
1300 for ac_exec_ext in '' $ac_executable_extensions; do
1301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1302 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1304 break 2
1305 fi
1306done
1307done
1308
c906108c
SS
1309fi
1310fi
b7026657 1311CC=$ac_cv_prog_CC
c906108c 1312if test -n "$CC"; then
b7026657
AC
1313 echo "$as_me:$LINENO: result: $CC" >&5
1314echo "${ECHO_T}$CC" >&6
c906108c 1315else
b7026657
AC
1316 echo "$as_me:$LINENO: result: no" >&5
1317echo "${ECHO_T}no" >&6
c906108c
SS
1318fi
1319
b7026657
AC
1320fi
1321if test -z "$ac_cv_prog_CC"; then
1322 ac_ct_CC=$CC
1323 # Extract the first word of "gcc", so it can be a program name with args.
1324set dummy gcc; ac_word=$2
1325echo "$as_me:$LINENO: checking for $ac_word" >&5
1326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1327if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1329else
b7026657
AC
1330 if test -n "$ac_ct_CC"; then
1331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1332else
1333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1334for as_dir in $PATH
1335do
1336 IFS=$as_save_IFS
1337 test -z "$as_dir" && as_dir=.
1338 for ac_exec_ext in '' $ac_executable_extensions; do
1339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1340 ac_cv_prog_ac_ct_CC="gcc"
1341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1342 break 2
1343 fi
1344done
1345done
1346
1347fi
1348fi
1349ac_ct_CC=$ac_cv_prog_ac_ct_CC
1350if test -n "$ac_ct_CC"; then
1351 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1352echo "${ECHO_T}$ac_ct_CC" >&6
1353else
1354 echo "$as_me:$LINENO: result: no" >&5
1355echo "${ECHO_T}no" >&6
1356fi
1357
1358 CC=$ac_ct_CC
1359else
1360 CC="$ac_cv_prog_CC"
1361fi
1362
1363if test -z "$CC"; then
1364 if test -n "$ac_tool_prefix"; then
1365 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1366set dummy ${ac_tool_prefix}cc; ac_word=$2
1367echo "$as_me:$LINENO: checking for $ac_word" >&5
1368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1369if test "${ac_cv_prog_CC+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1371else
1372 if test -n "$CC"; then
1373 ac_cv_prog_CC="$CC" # Let the user override the test.
1374else
1375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1376for as_dir in $PATH
1377do
1378 IFS=$as_save_IFS
1379 test -z "$as_dir" && as_dir=.
1380 for ac_exec_ext in '' $ac_executable_extensions; do
1381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1382 ac_cv_prog_CC="${ac_tool_prefix}cc"
1383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1384 break 2
1385 fi
1386done
1387done
1388
1389fi
1390fi
1391CC=$ac_cv_prog_CC
1392if test -n "$CC"; then
1393 echo "$as_me:$LINENO: result: $CC" >&5
1394echo "${ECHO_T}$CC" >&6
1395else
1396 echo "$as_me:$LINENO: result: no" >&5
1397echo "${ECHO_T}no" >&6
1398fi
1399
1400fi
1401if test -z "$ac_cv_prog_CC"; then
1402 ac_ct_CC=$CC
1403 # Extract the first word of "cc", so it can be a program name with args.
1404set dummy cc; ac_word=$2
1405echo "$as_me:$LINENO: checking for $ac_word" >&5
1406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409else
1410 if test -n "$ac_ct_CC"; then
1411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1412else
1413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414for as_dir in $PATH
1415do
1416 IFS=$as_save_IFS
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420 ac_cv_prog_ac_ct_CC="cc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422 break 2
1423 fi
1424done
1425done
1426
1427fi
1428fi
1429ac_ct_CC=$ac_cv_prog_ac_ct_CC
1430if test -n "$ac_ct_CC"; then
1431 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1432echo "${ECHO_T}$ac_ct_CC" >&6
1433else
1434 echo "$as_me:$LINENO: result: no" >&5
1435echo "${ECHO_T}no" >&6
1436fi
1437
1438 CC=$ac_ct_CC
1439else
1440 CC="$ac_cv_prog_CC"
1441fi
1442
1443fi
1444if test -z "$CC"; then
1445 # Extract the first word of "cc", so it can be a program name with args.
1446set dummy cc; ac_word=$2
1447echo "$as_me:$LINENO: checking for $ac_word" >&5
1448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1449if test "${ac_cv_prog_CC+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1451else
1452 if test -n "$CC"; then
c906108c
SS
1453 ac_cv_prog_CC="$CC" # Let the user override the test.
1454else
c906108c 1455 ac_prog_rejected=no
b7026657
AC
1456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457for as_dir in $PATH
1458do
1459 IFS=$as_save_IFS
1460 test -z "$as_dir" && as_dir=.
1461 for ac_exec_ext in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1464 ac_prog_rejected=yes
1465 continue
1466 fi
1467 ac_cv_prog_CC="cc"
1468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1469 break 2
1470 fi
1471done
1472done
1473
c906108c
SS
1474if test $ac_prog_rejected = yes; then
1475 # We found a bogon in the path, so make sure we never use it.
1476 set dummy $ac_cv_prog_CC
1477 shift
b7026657 1478 if test $# != 0; then
c906108c
SS
1479 # We chose a different compiler from the bogus one.
1480 # However, it has the same basename, so the bogon will be chosen
1481 # first if we set CC to just the basename; use the full file name.
1482 shift
b7026657 1483 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1484 fi
1485fi
1486fi
1487fi
b7026657 1488CC=$ac_cv_prog_CC
c906108c 1489if test -n "$CC"; then
b7026657
AC
1490 echo "$as_me:$LINENO: result: $CC" >&5
1491echo "${ECHO_T}$CC" >&6
c906108c 1492else
b7026657
AC
1493 echo "$as_me:$LINENO: result: no" >&5
1494echo "${ECHO_T}no" >&6
c906108c
SS
1495fi
1496
b7026657
AC
1497fi
1498if test -z "$CC"; then
1499 if test -n "$ac_tool_prefix"; then
1500 for ac_prog in cl
1501 do
1502 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1503set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1504echo "$as_me:$LINENO: checking for $ac_word" >&5
1505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506if test "${ac_cv_prog_CC+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1508else
1509 if test -n "$CC"; then
1510 ac_cv_prog_CC="$CC" # Let the user override the test.
1511else
b7026657
AC
1512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513for as_dir in $PATH
1514do
1515 IFS=$as_save_IFS
1516 test -z "$as_dir" && as_dir=.
1517 for ac_exec_ext in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521 break 2
1522 fi
1523done
1524done
1525
c906108c
SS
1526fi
1527fi
b7026657 1528CC=$ac_cv_prog_CC
c906108c 1529if test -n "$CC"; then
b7026657
AC
1530 echo "$as_me:$LINENO: result: $CC" >&5
1531echo "${ECHO_T}$CC" >&6
c906108c 1532else
b7026657
AC
1533 echo "$as_me:$LINENO: result: no" >&5
1534echo "${ECHO_T}no" >&6
c906108c 1535fi
b7026657
AC
1536
1537 test -n "$CC" && break
1538 done
1539fi
1540if test -z "$CC"; then
1541 ac_ct_CC=$CC
1542 for ac_prog in cl
1543do
1544 # Extract the first word of "$ac_prog", so it can be a program name with args.
1545set dummy $ac_prog; ac_word=$2
1546echo "$as_me:$LINENO: checking for $ac_word" >&5
1547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550else
1551 if test -n "$ac_ct_CC"; then
1552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1553else
1554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555for as_dir in $PATH
1556do
1557 IFS=$as_save_IFS
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_ac_ct_CC="$ac_prog"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 break 2
c906108c 1564 fi
b7026657
AC
1565done
1566done
1567
1568fi
1569fi
1570ac_ct_CC=$ac_cv_prog_ac_ct_CC
1571if test -n "$ac_ct_CC"; then
1572 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1573echo "${ECHO_T}$ac_ct_CC" >&6
1574else
1575 echo "$as_me:$LINENO: result: no" >&5
1576echo "${ECHO_T}no" >&6
1577fi
1578
1579 test -n "$ac_ct_CC" && break
1580done
1581
1582 CC=$ac_ct_CC
1583fi
1584
c906108c
SS
1585fi
1586
c906108c 1587
b7026657
AC
1588test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1589See \`config.log' for more details." >&5
1590echo "$as_me: error: no acceptable C compiler found in \$PATH
1591See \`config.log' for more details." >&2;}
1592 { (exit 1); exit 1; }; }
1593
1594# Provide some information about the compiler.
1595echo "$as_me:$LINENO:" \
1596 "checking for C compiler version" >&5
1597ac_compiler=`set X $ac_compile; echo $2`
1598{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1599 (eval $ac_compiler --version </dev/null >&5) 2>&5
1600 ac_status=$?
1601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1602 (exit $ac_status); }
1603{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1604 (eval $ac_compiler -v </dev/null >&5) 2>&5
1605 ac_status=$?
1606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1607 (exit $ac_status); }
1608{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1609 (eval $ac_compiler -V </dev/null >&5) 2>&5
1610 ac_status=$?
1611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1612 (exit $ac_status); }
1613
1614cat >conftest.$ac_ext <<_ACEOF
1615/* confdefs.h. */
1616_ACEOF
1617cat confdefs.h >>conftest.$ac_ext
1618cat >>conftest.$ac_ext <<_ACEOF
1619/* end confdefs.h. */
1620
1621int
1622main ()
1623{
1624
1625 ;
1626 return 0;
1627}
1628_ACEOF
1629ac_clean_files_save=$ac_clean_files
1630ac_clean_files="$ac_clean_files a.out a.exe b.out"
1631# Try to create an executable without -o first, disregard a.out.
1632# It will help us diagnose broken compilers, and finding out an intuition
1633# of exeext.
1634echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1635echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1636ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1637if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1638 (eval $ac_link_default) 2>&5
1639 ac_status=$?
1640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1641 (exit $ac_status); }; then
1642 # Find the output, starting from the most likely. This scheme is
1643# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1644# resort.
1645
1646# Be careful to initialize this variable, since it used to be cached.
1647# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1648ac_cv_exeext=
1649# b.out is created by i960 compilers.
1650for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1651do
1652 test -f "$ac_file" || continue
1653 case $ac_file in
1654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1655 ;;
1656 conftest.$ac_ext )
1657 # This is the source file.
1658 ;;
1659 [ab].out )
1660 # We found the default executable, but exeext='' is most
1661 # certainly right.
1662 break;;
1663 *.* )
1664 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1665 # FIXME: I believe we export ac_cv_exeext for Libtool,
1666 # but it would be cool to find out if it's true. Does anybody
1667 # maintain Libtool? --akim.
1668 export ac_cv_exeext
1669 break;;
1670 * )
1671 break;;
1672 esac
1673done
1674else
1675 echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1679See \`config.log' for more details." >&5
1680echo "$as_me: error: C compiler cannot create executables
1681See \`config.log' for more details." >&2;}
1682 { (exit 77); exit 77; }; }
1683fi
1684
1685ac_exeext=$ac_cv_exeext
1686echo "$as_me:$LINENO: result: $ac_file" >&5
1687echo "${ECHO_T}$ac_file" >&6
1688
1689# Check the compiler produces executables we can run. If not, either
1690# the compiler is broken, or we cross compile.
1691echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1692echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1693# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1694# If not cross compiling, check that we can run a simple program.
1695if test "$cross_compiling" != yes; then
1696 if { ac_try='./$ac_file'
1697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1698 (eval $ac_try) 2>&5
1699 ac_status=$?
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); }; }; then
1702 cross_compiling=no
c906108c 1703 else
b7026657
AC
1704 if test "$cross_compiling" = maybe; then
1705 cross_compiling=yes
1706 else
1707 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1708If you meant to cross compile, use \`--host'.
1709See \`config.log' for more details." >&5
1710echo "$as_me: error: cannot run C compiled programs.
1711If you meant to cross compile, use \`--host'.
1712See \`config.log' for more details." >&2;}
1713 { (exit 1); exit 1; }; }
1714 fi
c906108c 1715 fi
c906108c 1716fi
b7026657
AC
1717echo "$as_me:$LINENO: result: yes" >&5
1718echo "${ECHO_T}yes" >&6
1719
1720rm -f a.out a.exe conftest$ac_cv_exeext b.out
1721ac_clean_files=$ac_clean_files_save
1722# Check the compiler produces executables we can run. If not, either
1723# the compiler is broken, or we cross compile.
1724echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1725echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1726echo "$as_me:$LINENO: result: $cross_compiling" >&5
1727echo "${ECHO_T}$cross_compiling" >&6
1728
1729echo "$as_me:$LINENO: checking for suffix of executables" >&5
1730echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1732 (eval $ac_link) 2>&5
1733 ac_status=$?
1734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1735 (exit $ac_status); }; then
1736 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1737# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1738# work properly (i.e., refer to `conftest.exe'), while it won't with
1739# `rm'.
1740for ac_file in conftest.exe conftest conftest.*; do
1741 test -f "$ac_file" || continue
1742 case $ac_file in
1743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1744 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1745 export ac_cv_exeext
1746 break;;
1747 * ) break;;
1748 esac
1749done
c906108c 1750else
b7026657
AC
1751 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1752See \`config.log' for more details." >&5
1753echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1754See \`config.log' for more details." >&2;}
1755 { (exit 1); exit 1; }; }
c906108c 1756fi
b7026657
AC
1757
1758rm -f conftest$ac_cv_exeext
1759echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1760echo "${ECHO_T}$ac_cv_exeext" >&6
1761
1762rm -f conftest.$ac_ext
1763EXEEXT=$ac_cv_exeext
1764ac_exeext=$EXEEXT
1765echo "$as_me:$LINENO: checking for suffix of object files" >&5
1766echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1767if test "${ac_cv_objext+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769else
1770 cat >conftest.$ac_ext <<_ACEOF
1771/* confdefs.h. */
1772_ACEOF
1773cat confdefs.h >>conftest.$ac_ext
1774cat >>conftest.$ac_ext <<_ACEOF
1775/* end confdefs.h. */
1776
1777int
1778main ()
1779{
1780
1781 ;
1782 return 0;
1783}
1784_ACEOF
1785rm -f conftest.o conftest.obj
1786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1787 (eval $ac_compile) 2>&5
1788 ac_status=$?
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; then
1791 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1792 case $ac_file in
1793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1794 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1795 break;;
1796 esac
1797done
1798else
1799 echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1803See \`config.log' for more details." >&5
1804echo "$as_me: error: cannot compute suffix of object files: cannot compile
1805See \`config.log' for more details." >&2;}
1806 { (exit 1); exit 1; }; }
c906108c
SS
1807fi
1808
b7026657
AC
1809rm -f conftest.$ac_cv_objext conftest.$ac_ext
1810fi
1811echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1812echo "${ECHO_T}$ac_cv_objext" >&6
1813OBJEXT=$ac_cv_objext
1814ac_objext=$OBJEXT
1815echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1816echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1817if test "${ac_cv_c_compiler_gnu+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819else
1820 cat >conftest.$ac_ext <<_ACEOF
1821/* confdefs.h. */
1822_ACEOF
1823cat confdefs.h >>conftest.$ac_ext
1824cat >>conftest.$ac_ext <<_ACEOF
1825/* end confdefs.h. */
1826
1827int
1828main ()
1829{
1830#ifndef __GNUC__
1831 choke me
1832#endif
c906108c 1833
b7026657
AC
1834 ;
1835 return 0;
1836}
1837_ACEOF
1838rm -f conftest.$ac_objext
1839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1840 (eval $ac_compile) 2>conftest.er1
1841 ac_status=$?
1842 grep -v '^ *+' conftest.er1 >conftest.err
1843 rm -f conftest.er1
1844 cat conftest.err >&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); } &&
1847 { ac_try='test -z "$ac_c_werror_flag"
1848 || test ! -s conftest.err'
1849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850 (eval $ac_try) 2>&5
1851 ac_status=$?
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }; } &&
1854 { ac_try='test -s conftest.$ac_objext'
1855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1856 (eval $ac_try) 2>&5
1857 ac_status=$?
1858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859 (exit $ac_status); }; }; then
1860 ac_compiler_gnu=yes
c906108c 1861else
b7026657
AC
1862 echo "$as_me: failed program was:" >&5
1863sed 's/^/| /' conftest.$ac_ext >&5
1864
1865ac_compiler_gnu=no
c906108c 1866fi
b7026657
AC
1867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1868ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 1869
b7026657
AC
1870fi
1871echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1872echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1873GCC=`test $ac_compiler_gnu = yes && echo yes`
1874ac_test_CFLAGS=${CFLAGS+set}
1875ac_save_CFLAGS=$CFLAGS
1876CFLAGS="-g"
1877echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1878echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1879if test "${ac_cv_prog_cc_g+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1881else
b7026657
AC
1882 cat >conftest.$ac_ext <<_ACEOF
1883/* confdefs.h. */
1884_ACEOF
1885cat confdefs.h >>conftest.$ac_ext
1886cat >>conftest.$ac_ext <<_ACEOF
1887/* end confdefs.h. */
1888
1889int
1890main ()
1891{
1892
1893 ;
1894 return 0;
1895}
1896_ACEOF
1897rm -f conftest.$ac_objext
1898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1899 (eval $ac_compile) 2>conftest.er1
1900 ac_status=$?
1901 grep -v '^ *+' conftest.er1 >conftest.err
1902 rm -f conftest.er1
1903 cat conftest.err >&5
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); } &&
1906 { ac_try='test -z "$ac_c_werror_flag"
1907 || test ! -s conftest.err'
1908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1909 (eval $ac_try) 2>&5
1910 ac_status=$?
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }; } &&
1913 { ac_try='test -s conftest.$ac_objext'
1914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1915 (eval $ac_try) 2>&5
1916 ac_status=$?
1917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918 (exit $ac_status); }; }; then
c906108c
SS
1919 ac_cv_prog_cc_g=yes
1920else
b7026657
AC
1921 echo "$as_me: failed program was:" >&5
1922sed 's/^/| /' conftest.$ac_ext >&5
c906108c 1923
b7026657 1924ac_cv_prog_cc_g=no
c906108c 1925fi
b7026657
AC
1926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1927fi
1928echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1929echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 1930if test "$ac_test_CFLAGS" = set; then
b7026657 1931 CFLAGS=$ac_save_CFLAGS
c906108c
SS
1932elif test $ac_cv_prog_cc_g = yes; then
1933 if test "$GCC" = yes; then
1934 CFLAGS="-g -O2"
1935 else
1936 CFLAGS="-g"
1937 fi
1938else
1939 if test "$GCC" = yes; then
1940 CFLAGS="-O2"
1941 else
1942 CFLAGS=
1943 fi
1944fi
b7026657
AC
1945echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1946echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1947if test "${ac_cv_prog_cc_stdc+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949else
1950 ac_cv_prog_cc_stdc=no
1951ac_save_CC=$CC
1952cat >conftest.$ac_ext <<_ACEOF
1953/* confdefs.h. */
1954_ACEOF
1955cat confdefs.h >>conftest.$ac_ext
1956cat >>conftest.$ac_ext <<_ACEOF
1957/* end confdefs.h. */
1958#include <stdarg.h>
1959#include <stdio.h>
1960#include <sys/types.h>
1961#include <sys/stat.h>
1962/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1963struct buf { int x; };
1964FILE * (*rcsopen) (struct buf *, struct stat *, int);
1965static char *e (p, i)
1966 char **p;
1967 int i;
1968{
1969 return p[i];
1970}
1971static char *f (char * (*g) (char **, int), char **p, ...)
1972{
1973 char *s;
1974 va_list v;
1975 va_start (v,p);
1976 s = g (p, va_arg (v,int));
1977 va_end (v);
1978 return s;
1979}
1980
1981/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1982 function prototypes and stuff, but not '\xHH' hex character constants.
1983 These don't provoke an error unfortunately, instead are silently treated
1984 as 'x'. The following induces an error, until -std1 is added to get
1985 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1986 array size at least. It's necessary to write '\x00'==0 to get something
1987 that's true only with -std1. */
1988int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1989
1990int test (int i, double x);
1991struct s1 {int (*f) (int a);};
1992struct s2 {int (*f) (double a);};
1993int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1994int argc;
1995char **argv;
1996int
1997main ()
1998{
1999return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2000 ;
2001 return 0;
2002}
2003_ACEOF
2004# Don't try gcc -ansi; that turns off useful extensions and
2005# breaks some systems' header files.
2006# AIX -qlanglvl=ansi
2007# Ultrix and OSF/1 -std1
2008# HP-UX 10.20 and later -Ae
2009# HP-UX older versions -Aa -D_HPUX_SOURCE
2010# SVR4 -Xc -D__EXTENSIONS__
2011for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2012do
2013 CC="$ac_save_CC $ac_arg"
2014 rm -f conftest.$ac_objext
2015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2016 (eval $ac_compile) 2>conftest.er1
2017 ac_status=$?
2018 grep -v '^ *+' conftest.er1 >conftest.err
2019 rm -f conftest.er1
2020 cat conftest.err >&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); } &&
2023 { ac_try='test -z "$ac_c_werror_flag"
2024 || test ! -s conftest.err'
2025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2026 (eval $ac_try) 2>&5
2027 ac_status=$?
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; } &&
2030 { ac_try='test -s conftest.$ac_objext'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 (eval $ac_try) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; }; then
2036 ac_cv_prog_cc_stdc=$ac_arg
2037break
2038else
2039 echo "$as_me: failed program was:" >&5
2040sed 's/^/| /' conftest.$ac_ext >&5
2041
2042fi
2043rm -f conftest.err conftest.$ac_objext
2044done
2045rm -f conftest.$ac_ext conftest.$ac_objext
2046CC=$ac_save_CC
2047
2048fi
2049
2050case "x$ac_cv_prog_cc_stdc" in
2051 x|xno)
2052 echo "$as_me:$LINENO: result: none needed" >&5
2053echo "${ECHO_T}none needed" >&6 ;;
2054 *)
2055 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2056echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2057 CC="$CC $ac_cv_prog_cc_stdc" ;;
2058esac
2059
2060# Some people use a C++ compiler to compile C. Since we use `exit',
2061# in C++ we need to declare it. In case someone uses the same compiler
2062# for both compiling C and C++ we need to have the C++ compiler decide
2063# the declaration of exit, since it's the most demanding environment.
2064cat >conftest.$ac_ext <<_ACEOF
2065#ifndef __cplusplus
2066 choke me
2067#endif
2068_ACEOF
2069rm -f conftest.$ac_objext
2070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2071 (eval $ac_compile) 2>conftest.er1
2072 ac_status=$?
2073 grep -v '^ *+' conftest.er1 >conftest.err
2074 rm -f conftest.er1
2075 cat conftest.err >&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); } &&
2078 { ac_try='test -z "$ac_c_werror_flag"
2079 || test ! -s conftest.err'
2080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081 (eval $ac_try) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; } &&
2085 { ac_try='test -s conftest.$ac_objext'
2086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2087 (eval $ac_try) 2>&5
2088 ac_status=$?
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; }; then
2091 for ac_declaration in \
2092 '' \
2093 'extern "C" void std::exit (int) throw (); using std::exit;' \
2094 'extern "C" void std::exit (int); using std::exit;' \
2095 'extern "C" void exit (int) throw ();' \
2096 'extern "C" void exit (int);' \
2097 'void exit (int);'
2098do
2099 cat >conftest.$ac_ext <<_ACEOF
2100/* confdefs.h. */
2101_ACEOF
2102cat confdefs.h >>conftest.$ac_ext
2103cat >>conftest.$ac_ext <<_ACEOF
2104/* end confdefs.h. */
2105$ac_declaration
2106#include <stdlib.h>
2107int
2108main ()
2109{
2110exit (42);
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115rm -f conftest.$ac_objext
2116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>conftest.er1
2118 ac_status=$?
2119 grep -v '^ *+' conftest.er1 >conftest.err
2120 rm -f conftest.er1
2121 cat conftest.err >&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); } &&
2124 { ac_try='test -z "$ac_c_werror_flag"
2125 || test ! -s conftest.err'
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 (eval $ac_try) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; } &&
2131 { ac_try='test -s conftest.$ac_objext'
2132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133 (eval $ac_try) 2>&5
2134 ac_status=$?
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }; }; then
2137 :
2138else
2139 echo "$as_me: failed program was:" >&5
2140sed 's/^/| /' conftest.$ac_ext >&5
2141
2142continue
2143fi
2144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2145 cat >conftest.$ac_ext <<_ACEOF
2146/* confdefs.h. */
2147_ACEOF
2148cat confdefs.h >>conftest.$ac_ext
2149cat >>conftest.$ac_ext <<_ACEOF
2150/* end confdefs.h. */
2151$ac_declaration
2152int
2153main ()
2154{
2155exit (42);
2156 ;
2157 return 0;
2158}
2159_ACEOF
2160rm -f conftest.$ac_objext
2161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>conftest.er1
2163 ac_status=$?
2164 grep -v '^ *+' conftest.er1 >conftest.err
2165 rm -f conftest.er1
2166 cat conftest.err >&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); } &&
2169 { ac_try='test -z "$ac_c_werror_flag"
2170 || test ! -s conftest.err'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; } &&
2176 { ac_try='test -s conftest.$ac_objext'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2182 break
2183else
2184 echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187fi
2188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2189done
2190rm -f conftest*
2191if test -n "$ac_declaration"; then
2192 echo '#ifdef __cplusplus' >>confdefs.h
2193 echo $ac_declaration >>confdefs.h
2194 echo '#endif' >>confdefs.h
2195fi
2196
2197else
2198 echo "$as_me: failed program was:" >&5
2199sed 's/^/| /' conftest.$ac_ext >&5
2200
2201fi
2202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2203ac_ext=c
2204ac_cpp='$CPP $CPPFLAGS'
2205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2207ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
2208
2209ac_aux_dir=
2210for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2211 if test -f $ac_dir/install-sh; then
2212 ac_aux_dir=$ac_dir
2213 ac_install_sh="$ac_aux_dir/install-sh -c"
2214 break
2215 elif test -f $ac_dir/install.sh; then
2216 ac_aux_dir=$ac_dir
2217 ac_install_sh="$ac_aux_dir/install.sh -c"
2218 break
b7026657
AC
2219 elif test -f $ac_dir/shtool; then
2220 ac_aux_dir=$ac_dir
2221 ac_install_sh="$ac_aux_dir/shtool install -c"
2222 break
c906108c
SS
2223 fi
2224done
2225if test -z "$ac_aux_dir"; then
b7026657
AC
2226 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2227echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2228 { (exit 1); exit 1; }; }
c906108c 2229fi
b7026657
AC
2230ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2231ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2232ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c
SS
2233
2234# Find a good install program. We prefer a C program (faster),
2235# so one script is as good as another. But avoid the broken or
2236# incompatible versions:
2237# SysV /etc/install, /usr/sbin/install
2238# SunOS /usr/etc/install
2239# IRIX /sbin/install
2240# AIX /bin/install
b7026657 2241# AmigaOS /C/install, which installs bootblocks on floppy discs
c906108c
SS
2242# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2243# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2244# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b7026657 2245# OS/2's system install, which has a completely different semantic
c906108c 2246# ./install, which can be erroneously created by make from ./install.sh.
b7026657
AC
2247echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2248echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
c906108c 2249if test -z "$INSTALL"; then
b7026657
AC
2250if test "${ac_cv_path_install+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254for as_dir in $PATH
2255do
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 # Account for people who put trailing slashes in PATH elements.
2259case $as_dir/ in
2260 ./ | .// | /cC/* | \
2261 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2262 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2263 /usr/ucb/* ) ;;
2264 *)
2265 # OSF1 and SCO ODT 3.0 have their own names for install.
2266 # Don't use installbsd from OSF since it installs stuff as root
2267 # by default.
2268 for ac_prog in ginstall scoinst install; do
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
c906108c 2271 if test $ac_prog = install &&
b7026657 2272 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
c906108c
SS
2273 # AIX install. It has an incompatible calling convention.
2274 :
b7026657
AC
2275 elif test $ac_prog = install &&
2276 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2277 # program-specific install script used by HP pwplus--don't use.
2278 :
c906108c 2279 else
b7026657
AC
2280 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2281 break 3
c906108c
SS
2282 fi
2283 fi
2284 done
b7026657
AC
2285 done
2286 ;;
2287esac
2288done
2289
c906108c
SS
2290
2291fi
2292 if test "${ac_cv_path_install+set}" = set; then
b7026657 2293 INSTALL=$ac_cv_path_install
c906108c
SS
2294 else
2295 # As a last resort, use the slow shell script. We don't cache a
2296 # path for INSTALL within a source directory, because that will
2297 # break other packages using the cache if that directory is
2298 # removed, or if the path is relative.
b7026657 2299 INSTALL=$ac_install_sh
c906108c
SS
2300 fi
2301fi
b7026657
AC
2302echo "$as_me:$LINENO: result: $INSTALL" >&5
2303echo "${ECHO_T}$INSTALL" >&6
c906108c
SS
2304
2305# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2306# It thinks the first close brace ends the variable substitution.
2307test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2308
b7026657 2309test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
c906108c
SS
2310
2311test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2312
b7026657
AC
2313if test -n "$ac_tool_prefix"; then
2314 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
c906108c 2315set dummy ${ac_tool_prefix}ar; ac_word=$2
b7026657
AC
2316echo "$as_me:$LINENO: checking for $ac_word" >&5
2317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2318if test "${ac_cv_prog_AR+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2320else
2321 if test -n "$AR"; then
2322 ac_cv_prog_AR="$AR" # Let the user override the test.
2323else
b7026657
AC
2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325for as_dir in $PATH
2326do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2331 ac_cv_prog_AR="${ac_tool_prefix}ar"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2334 fi
2335done
2336done
2337
c906108c
SS
2338fi
2339fi
b7026657 2340AR=$ac_cv_prog_AR
c906108c 2341if test -n "$AR"; then
b7026657
AC
2342 echo "$as_me:$LINENO: result: $AR" >&5
2343echo "${ECHO_T}$AR" >&6
c906108c 2344else
b7026657
AC
2345 echo "$as_me:$LINENO: result: no" >&5
2346echo "${ECHO_T}no" >&6
2347fi
2348
c906108c 2349fi
b7026657
AC
2350if test -z "$ac_cv_prog_AR"; then
2351 ac_ct_AR=$AR
2352 # Extract the first word of "ar", so it can be a program name with args.
2353set dummy ar; ac_word=$2
2354echo "$as_me:$LINENO: checking for $ac_word" >&5
2355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2356if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358else
2359 if test -n "$ac_ct_AR"; then
2360 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2361else
2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363for as_dir in $PATH
2364do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2369 ac_cv_prog_ac_ct_AR="ar"
2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 break 2
2372 fi
2373done
2374done
c906108c 2375
b7026657
AC
2376fi
2377fi
2378ac_ct_AR=$ac_cv_prog_ac_ct_AR
2379if test -n "$ac_ct_AR"; then
2380 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2381echo "${ECHO_T}$ac_ct_AR" >&6
2382else
2383 echo "$as_me:$LINENO: result: no" >&5
2384echo "${ECHO_T}no" >&6
2385fi
c906108c 2386
b7026657
AC
2387 AR=$ac_ct_AR
2388else
2389 AR="$ac_cv_prog_AR"
2390fi
c906108c 2391
b7026657
AC
2392if test -n "$ac_tool_prefix"; then
2393 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
c906108c 2394set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b7026657
AC
2395echo "$as_me:$LINENO: checking for $ac_word" >&5
2396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2397if test "${ac_cv_prog_RANLIB+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2399else
2400 if test -n "$RANLIB"; then
2401 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2402else
b7026657
AC
2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2410 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 break 2
2413 fi
2414done
2415done
2416
c906108c
SS
2417fi
2418fi
b7026657 2419RANLIB=$ac_cv_prog_RANLIB
c906108c 2420if test -n "$RANLIB"; then
b7026657
AC
2421 echo "$as_me:$LINENO: result: $RANLIB" >&5
2422echo "${ECHO_T}$RANLIB" >&6
c906108c 2423else
b7026657
AC
2424 echo "$as_me:$LINENO: result: no" >&5
2425echo "${ECHO_T}no" >&6
c906108c
SS
2426fi
2427
b7026657 2428fi
c906108c 2429if test -z "$ac_cv_prog_RANLIB"; then
b7026657 2430 ac_ct_RANLIB=$RANLIB
c906108c
SS
2431 # Extract the first word of "ranlib", so it can be a program name with args.
2432set dummy ranlib; ac_word=$2
b7026657
AC
2433echo "$as_me:$LINENO: checking for $ac_word" >&5
2434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2435if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2437else
b7026657
AC
2438 if test -n "$ac_ct_RANLIB"; then
2439 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
c906108c 2440else
b7026657
AC
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2448 ac_cv_prog_ac_ct_RANLIB="ranlib"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 2
2451 fi
2452done
2453done
2454
2455 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
c906108c
SS
2456fi
2457fi
b7026657
AC
2458ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2459if test -n "$ac_ct_RANLIB"; then
2460 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2461echo "${ECHO_T}$ac_ct_RANLIB" >&6
c906108c 2462else
b7026657
AC
2463 echo "$as_me:$LINENO: result: no" >&5
2464echo "${ECHO_T}no" >&6
c906108c
SS
2465fi
2466
b7026657 2467 RANLIB=$ac_ct_RANLIB
c906108c 2468else
b7026657 2469 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
2470fi
2471
2472
c906108c 2473# Make sure we can run config.sub.
b7026657
AC
2474$ac_config_sub sun4 >/dev/null 2>&1 ||
2475 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2476echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2477 { (exit 1); exit 1; }; }
2478
2479echo "$as_me:$LINENO: checking build system type" >&5
2480echo $ECHO_N "checking build system type... $ECHO_C" >&6
2481if test "${ac_cv_build+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483else
2484 ac_cv_build_alias=$build_alias
2485test -z "$ac_cv_build_alias" &&
2486 ac_cv_build_alias=`$ac_config_guess`
2487test -z "$ac_cv_build_alias" &&
2488 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2489echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2490 { (exit 1); exit 1; }; }
2491ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2492 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2493echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2494 { (exit 1); exit 1; }; }
c906108c 2495
b7026657
AC
2496fi
2497echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2498echo "${ECHO_T}$ac_cv_build" >&6
2499build=$ac_cv_build
2500build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2501build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2502build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2503
2504
2505echo "$as_me:$LINENO: checking host system type" >&5
2506echo $ECHO_N "checking host system type... $ECHO_C" >&6
2507if test "${ac_cv_host+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510 ac_cv_host_alias=$host_alias
2511test -z "$ac_cv_host_alias" &&
2512 ac_cv_host_alias=$ac_cv_build_alias
2513ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2515echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2516 { (exit 1); exit 1; }; }
c906108c 2517
b7026657
AC
2518fi
2519echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2520echo "${ECHO_T}$ac_cv_host" >&6
2521host=$ac_cv_host
2522host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2523host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2524host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2525
2526
2527echo "$as_me:$LINENO: checking target system type" >&5
2528echo $ECHO_N "checking target system type... $ECHO_C" >&6
2529if test "${ac_cv_target+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2531else
2532 ac_cv_target_alias=$target_alias
2533test "x$ac_cv_target_alias" = "x" &&
2534 ac_cv_target_alias=$ac_cv_host_alias
2535ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2536 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2537echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2538 { (exit 1); exit 1; }; }
c906108c 2539
b7026657
AC
2540fi
2541echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2542echo "${ECHO_T}$ac_cv_target" >&6
2543target=$ac_cv_target
2544target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2545target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2546target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2547
c906108c 2548
b7026657
AC
2549# The aliases save the names the user supplied, while $host etc.
2550# will get canonicalized.
2551test -n "$target_alias" &&
c906108c
SS
2552 test "$program_prefix$program_suffix$program_transform_name" = \
2553 NONENONEs,x,x, &&
2554 program_prefix=${target_alias}-
c906108c 2555test "$program_prefix" != NONE &&
b7026657 2556 program_transform_name="s,^,$program_prefix,;$program_transform_name"
c906108c
SS
2557# Use a double $ so make ignores it.
2558test "$program_suffix" != NONE &&
b7026657
AC
2559 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2560# Double any \ or $. echo might interpret backslashes.
2561# By default was `s,x,x', remove it if useless.
2562cat <<\_ACEOF >conftest.sed
2563s/[\\$]/&&/g;s/;s,x,x,$//
2564_ACEOF
2565program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2566rm conftest.sed
c906108c 2567
b7026657
AC
2568ac_ext=c
2569ac_cpp='$CPP $CPPFLAGS'
2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573if test -n "$ac_tool_prefix"; then
2574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2575set dummy ${ac_tool_prefix}gcc; ac_word=$2
2576echo "$as_me:$LINENO: checking for $ac_word" >&5
2577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2578if test "${ac_cv_prog_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2580else
2581 if test -n "$CC"; then
2582 ac_cv_prog_CC="$CC" # Let the user override the test.
2583else
b7026657
AC
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2591 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595done
2596done
2597
2598fi
2599fi
2600CC=$ac_cv_prog_CC
2601if test -n "$CC"; then
2602 echo "$as_me:$LINENO: result: $CC" >&5
2603echo "${ECHO_T}$CC" >&6
2604else
2605 echo "$as_me:$LINENO: result: no" >&5
2606echo "${ECHO_T}no" >&6
2607fi
2608
2609fi
2610if test -z "$ac_cv_prog_CC"; then
2611 ac_ct_CC=$CC
2612 # Extract the first word of "gcc", so it can be a program name with args.
2613set dummy gcc; ac_word=$2
2614echo "$as_me:$LINENO: checking for $ac_word" >&5
2615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2616if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2618else
2619 if test -n "$ac_ct_CC"; then
2620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2621else
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2629 ac_cv_prog_ac_ct_CC="gcc"
2630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2632 fi
2633done
2634done
2635
2636fi
2637fi
2638ac_ct_CC=$ac_cv_prog_ac_ct_CC
2639if test -n "$ac_ct_CC"; then
2640 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2641echo "${ECHO_T}$ac_ct_CC" >&6
2642else
2643 echo "$as_me:$LINENO: result: no" >&5
2644echo "${ECHO_T}no" >&6
c906108c 2645fi
b7026657
AC
2646
2647 CC=$ac_ct_CC
2648else
2649 CC="$ac_cv_prog_CC"
c906108c 2650fi
b7026657
AC
2651
2652if test -z "$CC"; then
2653 if test -n "$ac_tool_prefix"; then
2654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2655set dummy ${ac_tool_prefix}cc; ac_word=$2
2656echo "$as_me:$LINENO: checking for $ac_word" >&5
2657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2658if test "${ac_cv_prog_CC+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2663else
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2671 ac_cv_prog_CC="${ac_tool_prefix}cc"
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675done
2676done
2677
2678fi
2679fi
2680CC=$ac_cv_prog_CC
c906108c 2681if test -n "$CC"; then
b7026657
AC
2682 echo "$as_me:$LINENO: result: $CC" >&5
2683echo "${ECHO_T}$CC" >&6
2684else
2685 echo "$as_me:$LINENO: result: no" >&5
2686echo "${ECHO_T}no" >&6
2687fi
2688
2689fi
2690if test -z "$ac_cv_prog_CC"; then
2691 ac_ct_CC=$CC
2692 # Extract the first word of "cc", so it can be a program name with args.
2693set dummy cc; ac_word=$2
2694echo "$as_me:$LINENO: checking for $ac_word" >&5
2695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2696if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699 if test -n "$ac_ct_CC"; then
2700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 ac_cv_prog_ac_ct_CC="cc"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2712 fi
2713done
2714done
2715
2716fi
2717fi
2718ac_ct_CC=$ac_cv_prog_ac_ct_CC
2719if test -n "$ac_ct_CC"; then
2720 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2721echo "${ECHO_T}$ac_ct_CC" >&6
2722else
2723 echo "$as_me:$LINENO: result: no" >&5
2724echo "${ECHO_T}no" >&6
2725fi
2726
2727 CC=$ac_ct_CC
c906108c 2728else
b7026657 2729 CC="$ac_cv_prog_CC"
c906108c
SS
2730fi
2731
b7026657 2732fi
c906108c
SS
2733if test -z "$CC"; then
2734 # Extract the first word of "cc", so it can be a program name with args.
2735set dummy cc; ac_word=$2
b7026657
AC
2736echo "$as_me:$LINENO: checking for $ac_word" >&5
2737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2738if test "${ac_cv_prog_CC+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2740else
2741 if test -n "$CC"; then
2742 ac_cv_prog_CC="$CC" # Let the user override the test.
2743else
c906108c 2744 ac_prog_rejected=no
b7026657
AC
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2753 ac_prog_rejected=yes
2754 continue
2755 fi
2756 ac_cv_prog_CC="cc"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760done
2761done
2762
c906108c
SS
2763if test $ac_prog_rejected = yes; then
2764 # We found a bogon in the path, so make sure we never use it.
2765 set dummy $ac_cv_prog_CC
2766 shift
b7026657 2767 if test $# != 0; then
c906108c
SS
2768 # We chose a different compiler from the bogus one.
2769 # However, it has the same basename, so the bogon will be chosen
2770 # first if we set CC to just the basename; use the full file name.
2771 shift
b7026657 2772 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
2773 fi
2774fi
2775fi
2776fi
b7026657 2777CC=$ac_cv_prog_CC
c906108c 2778if test -n "$CC"; then
b7026657
AC
2779 echo "$as_me:$LINENO: result: $CC" >&5
2780echo "${ECHO_T}$CC" >&6
c906108c 2781else
b7026657
AC
2782 echo "$as_me:$LINENO: result: no" >&5
2783echo "${ECHO_T}no" >&6
c906108c
SS
2784fi
2785
b7026657
AC
2786fi
2787if test -z "$CC"; then
2788 if test -n "$ac_tool_prefix"; then
2789 for ac_prog in cl
2790 do
2791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2792set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2793echo "$as_me:$LINENO: checking for $ac_word" >&5
2794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2795if test "${ac_cv_prog_CC+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2797else
2798 if test -n "$CC"; then
2799 ac_cv_prog_CC="$CC" # Let the user override the test.
2800else
b7026657
AC
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812done
2813done
2814
c906108c
SS
2815fi
2816fi
b7026657 2817CC=$ac_cv_prog_CC
c906108c 2818if test -n "$CC"; then
b7026657
AC
2819 echo "$as_me:$LINENO: result: $CC" >&5
2820echo "${ECHO_T}$CC" >&6
c906108c 2821else
b7026657
AC
2822 echo "$as_me:$LINENO: result: no" >&5
2823echo "${ECHO_T}no" >&6
c906108c
SS
2824fi
2825
b7026657
AC
2826 test -n "$CC" && break
2827 done
2828fi
2829if test -z "$CC"; then
2830 ac_ct_CC=$CC
2831 for ac_prog in cl
2832do
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834set dummy $ac_prog; ac_word=$2
2835echo "$as_me:$LINENO: checking for $ac_word" >&5
2836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2839else
b7026657
AC
2840 if test -n "$ac_ct_CC"; then
2841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_ac_ct_CC="$ac_prog"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854done
2855done
2856
c906108c 2857fi
b7026657
AC
2858fi
2859ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860if test -n "$ac_ct_CC"; then
2861 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2862echo "${ECHO_T}$ac_ct_CC" >&6
c906108c 2863else
b7026657
AC
2864 echo "$as_me:$LINENO: result: no" >&5
2865echo "${ECHO_T}no" >&6
c906108c 2866fi
b7026657
AC
2867
2868 test -n "$ac_ct_CC" && break
2869done
2870
2871 CC=$ac_ct_CC
c906108c
SS
2872fi
2873
b7026657
AC
2874fi
2875
2876
2877test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2878See \`config.log' for more details." >&5
2879echo "$as_me: error: no acceptable C compiler found in \$PATH
2880See \`config.log' for more details." >&2;}
2881 { (exit 1); exit 1; }; }
2882
2883# Provide some information about the compiler.
2884echo "$as_me:$LINENO:" \
2885 "checking for C compiler version" >&5
2886ac_compiler=`set X $ac_compile; echo $2`
2887{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2888 (eval $ac_compiler --version </dev/null >&5) 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }
2892{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2893 (eval $ac_compiler -v </dev/null >&5) 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }
2897{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2898 (eval $ac_compiler -V </dev/null >&5) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902
2903echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2904echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2905if test "${ac_cv_c_compiler_gnu+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907else
2908 cat >conftest.$ac_ext <<_ACEOF
2909/* confdefs.h. */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h. */
2914
2915int
2916main ()
2917{
2918#ifndef __GNUC__
2919 choke me
2920#endif
c906108c 2921
b7026657
AC
2922 ;
2923 return 0;
2924}
2925_ACEOF
2926rm -f conftest.$ac_objext
2927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -z "$ac_c_werror_flag"
2936 || test ! -s conftest.err'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; } &&
2942 { ac_try='test -s conftest.$ac_objext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 ac_compiler_gnu=yes
c906108c 2949else
b7026657
AC
2950 echo "$as_me: failed program was:" >&5
2951sed 's/^/| /' conftest.$ac_ext >&5
2952
2953ac_compiler_gnu=no
c906108c 2954fi
b7026657
AC
2955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2956ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 2957
b7026657
AC
2958fi
2959echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2960echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2961GCC=`test $ac_compiler_gnu = yes && echo yes`
2962ac_test_CFLAGS=${CFLAGS+set}
2963ac_save_CFLAGS=$CFLAGS
2964CFLAGS="-g"
2965echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2966echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2967if test "${ac_cv_prog_cc_g+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2969else
b7026657
AC
2970 cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h. */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h. */
2976
2977int
2978main ()
2979{
2980
2981 ;
2982 return 0;
2983}
2984_ACEOF
2985rm -f conftest.$ac_objext
2986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2987 (eval $ac_compile) 2>conftest.er1
2988 ac_status=$?
2989 grep -v '^ *+' conftest.er1 >conftest.err
2990 rm -f conftest.er1
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -z "$ac_c_werror_flag"
2995 || test ! -s conftest.err'
2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 (eval $ac_try) 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; } &&
3001 { ac_try='test -s conftest.$ac_objext'
3002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003 (eval $ac_try) 2>&5
3004 ac_status=$?
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }; }; then
c906108c
SS
3007 ac_cv_prog_cc_g=yes
3008else
b7026657
AC
3009 echo "$as_me: failed program was:" >&5
3010sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3011
b7026657 3012ac_cv_prog_cc_g=no
c906108c 3013fi
b7026657
AC
3014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3015fi
3016echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3017echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 3018if test "$ac_test_CFLAGS" = set; then
b7026657 3019 CFLAGS=$ac_save_CFLAGS
c906108c
SS
3020elif test $ac_cv_prog_cc_g = yes; then
3021 if test "$GCC" = yes; then
3022 CFLAGS="-g -O2"
3023 else
3024 CFLAGS="-g"
3025 fi
3026else
3027 if test "$GCC" = yes; then
3028 CFLAGS="-O2"
3029 else
3030 CFLAGS=
3031 fi
3032fi
b7026657
AC
3033echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3034echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3035if test "${ac_cv_prog_cc_stdc+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3037else
3038 ac_cv_prog_cc_stdc=no
3039ac_save_CC=$CC
3040cat >conftest.$ac_ext <<_ACEOF
3041/* confdefs.h. */
3042_ACEOF
3043cat confdefs.h >>conftest.$ac_ext
3044cat >>conftest.$ac_ext <<_ACEOF
3045/* end confdefs.h. */
3046#include <stdarg.h>
3047#include <stdio.h>
3048#include <sys/types.h>
3049#include <sys/stat.h>
3050/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3051struct buf { int x; };
3052FILE * (*rcsopen) (struct buf *, struct stat *, int);
3053static char *e (p, i)
3054 char **p;
3055 int i;
3056{
3057 return p[i];
3058}
3059static char *f (char * (*g) (char **, int), char **p, ...)
3060{
3061 char *s;
3062 va_list v;
3063 va_start (v,p);
3064 s = g (p, va_arg (v,int));
3065 va_end (v);
3066 return s;
3067}
3068
3069/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3070 function prototypes and stuff, but not '\xHH' hex character constants.
3071 These don't provoke an error unfortunately, instead are silently treated
3072 as 'x'. The following induces an error, until -std1 is added to get
3073 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3074 array size at least. It's necessary to write '\x00'==0 to get something
3075 that's true only with -std1. */
3076int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3077
3078int test (int i, double x);
3079struct s1 {int (*f) (int a);};
3080struct s2 {int (*f) (double a);};
3081int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3082int argc;
3083char **argv;
3084int
3085main ()
3086{
3087return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3088 ;
3089 return 0;
3090}
3091_ACEOF
3092# Don't try gcc -ansi; that turns off useful extensions and
3093# breaks some systems' header files.
3094# AIX -qlanglvl=ansi
3095# Ultrix and OSF/1 -std1
3096# HP-UX 10.20 and later -Ae
3097# HP-UX older versions -Aa -D_HPUX_SOURCE
3098# SVR4 -Xc -D__EXTENSIONS__
3099for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3100do
3101 CC="$ac_save_CC $ac_arg"
3102 rm -f conftest.$ac_objext
3103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3104 (eval $ac_compile) 2>conftest.er1
3105 ac_status=$?
3106 grep -v '^ *+' conftest.er1 >conftest.err
3107 rm -f conftest.er1
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try='test -z "$ac_c_werror_flag"
3112 || test ! -s conftest.err'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 (eval $ac_try) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; } &&
3118 { ac_try='test -s conftest.$ac_objext'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 (eval $ac_try) 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3124 ac_cv_prog_cc_stdc=$ac_arg
3125break
3126else
3127 echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130fi
3131rm -f conftest.err conftest.$ac_objext
3132done
3133rm -f conftest.$ac_ext conftest.$ac_objext
3134CC=$ac_save_CC
3135
3136fi
3137
3138case "x$ac_cv_prog_cc_stdc" in
3139 x|xno)
3140 echo "$as_me:$LINENO: result: none needed" >&5
3141echo "${ECHO_T}none needed" >&6 ;;
3142 *)
3143 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3144echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3145 CC="$CC $ac_cv_prog_cc_stdc" ;;
3146esac
3147
3148# Some people use a C++ compiler to compile C. Since we use `exit',
3149# in C++ we need to declare it. In case someone uses the same compiler
3150# for both compiling C and C++ we need to have the C++ compiler decide
3151# the declaration of exit, since it's the most demanding environment.
3152cat >conftest.$ac_ext <<_ACEOF
3153#ifndef __cplusplus
3154 choke me
3155#endif
3156_ACEOF
3157rm -f conftest.$ac_objext
3158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3159 (eval $ac_compile) 2>conftest.er1
3160 ac_status=$?
3161 grep -v '^ *+' conftest.er1 >conftest.err
3162 rm -f conftest.er1
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } &&
3166 { ac_try='test -z "$ac_c_werror_flag"
3167 || test ! -s conftest.err'
3168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 (eval $ac_try) 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; } &&
3173 { ac_try='test -s conftest.$ac_objext'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 (eval $ac_try) 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3179 for ac_declaration in \
3180 '' \
3181 'extern "C" void std::exit (int) throw (); using std::exit;' \
3182 'extern "C" void std::exit (int); using std::exit;' \
3183 'extern "C" void exit (int) throw ();' \
3184 'extern "C" void exit (int);' \
3185 'void exit (int);'
3186do
3187 cat >conftest.$ac_ext <<_ACEOF
3188/* confdefs.h. */
3189_ACEOF
3190cat confdefs.h >>conftest.$ac_ext
3191cat >>conftest.$ac_ext <<_ACEOF
3192/* end confdefs.h. */
3193$ac_declaration
3194#include <stdlib.h>
3195int
3196main ()
3197{
3198exit (42);
3199 ;
3200 return 0;
3201}
3202_ACEOF
3203rm -f conftest.$ac_objext
3204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3205 (eval $ac_compile) 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } &&
3212 { ac_try='test -z "$ac_c_werror_flag"
3213 || test ! -s conftest.err'
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 (eval $ac_try) 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; } &&
3219 { ac_try='test -s conftest.$ac_objext'
3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 (eval $ac_try) 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; }; then
3225 :
3226else
3227 echo "$as_me: failed program was:" >&5
3228sed 's/^/| /' conftest.$ac_ext >&5
3229
3230continue
3231fi
3232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3233 cat >conftest.$ac_ext <<_ACEOF
3234/* confdefs.h. */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
3238/* end confdefs.h. */
3239$ac_declaration
3240int
3241main ()
3242{
3243exit (42);
3244 ;
3245 return 0;
3246}
3247_ACEOF
3248rm -f conftest.$ac_objext
3249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>conftest.er1
3251 ac_status=$?
3252 grep -v '^ *+' conftest.er1 >conftest.err
3253 rm -f conftest.er1
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } &&
3257 { ac_try='test -z "$ac_c_werror_flag"
3258 || test ! -s conftest.err'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 (eval $ac_try) 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; } &&
3264 { ac_try='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 (eval $ac_try) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 break
3271else
3272 echo "$as_me: failed program was:" >&5
3273sed 's/^/| /' conftest.$ac_ext >&5
3274
3275fi
3276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3277done
3278rm -f conftest*
3279if test -n "$ac_declaration"; then
3280 echo '#ifdef __cplusplus' >>confdefs.h
3281 echo $ac_declaration >>confdefs.h
3282 echo '#endif' >>confdefs.h
3283fi
3284
3285else
3286 echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3289fi
3290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3291ac_ext=c
3292ac_cpp='$CPP $CPPFLAGS'
3293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
3296
3297
3298
3299AR=${AR-ar}
3300
b7026657
AC
3301if test -n "$ac_tool_prefix"; then
3302 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3303set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3304echo "$as_me:$LINENO: checking for $ac_word" >&5
3305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3306if test "${ac_cv_prog_RANLIB+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
3308else
3309 if test -n "$RANLIB"; then
3310 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3311else
b7026657
AC
3312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313for as_dir in $PATH
3314do
3315 IFS=$as_save_IFS
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3319 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 break 2
3322 fi
3323done
3324done
3325
c906108c
SS
3326fi
3327fi
b7026657 3328RANLIB=$ac_cv_prog_RANLIB
c906108c 3329if test -n "$RANLIB"; then
b7026657
AC
3330 echo "$as_me:$LINENO: result: $RANLIB" >&5
3331echo "${ECHO_T}$RANLIB" >&6
3332else
3333 echo "$as_me:$LINENO: result: no" >&5
3334echo "${ECHO_T}no" >&6
3335fi
3336
3337fi
3338if test -z "$ac_cv_prog_RANLIB"; then
3339 ac_ct_RANLIB=$RANLIB
3340 # Extract the first word of "ranlib", so it can be a program name with args.
3341set dummy ranlib; ac_word=$2
3342echo "$as_me:$LINENO: checking for $ac_word" >&5
3343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3344if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346else
3347 if test -n "$ac_ct_RANLIB"; then
3348 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3349else
3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351for as_dir in $PATH
3352do
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357 ac_cv_prog_ac_ct_RANLIB="ranlib"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 break 2
3360 fi
3361done
3362done
3363
3364 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3365fi
3366fi
3367ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3368if test -n "$ac_ct_RANLIB"; then
3369 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3370echo "${ECHO_T}$ac_ct_RANLIB" >&6
c906108c 3371else
b7026657
AC
3372 echo "$as_me:$LINENO: result: no" >&5
3373echo "${ECHO_T}no" >&6
3374fi
3375
3376 RANLIB=$ac_ct_RANLIB
3377else
3378 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
3379fi
3380
3381
3382# Put a plausible default for CC_FOR_BUILD in Makefile.
c906108c
SS
3383if test "x$cross_compiling" = "xno"; then
3384 CC_FOR_BUILD='$(CC)'
3385else
3386 CC_FOR_BUILD=gcc
3387fi
3388
3389
3390# If a cpu ever has more than one simulator to choose from, use
3391# --enable-sim=... to choose.
3392# Check whether --enable-sim or --disable-sim was given.
3393if test "${enable_sim+set}" = set; then
3394 enableval="$enable_sim"
3395 case "${enableval}" in
3396yes | no) ;;
b7026657
AC
3397*) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for --enable-sim option" >&5
3398echo "$as_me: error: bad value ${enableval} given for --enable-sim option" >&2;}
3399 { (exit 1); exit 1; }; } ;;
c906108c 3400esac
b7026657 3401fi;
c906108c 3402
b7026657 3403# WHEN ADDING ENTRIES TO THIS MATRIX:
c906108c 3404
b7026657
AC
3405# Make sure that the left side always has two dashes. Otherwise you
3406# can get spurious matches. Even for unambiguous cases, do this as a
3407# convention, else the table becomes a real mess to understand and
3408# maintain.
c906108c 3409
b7026657
AC
3410if test "${enable_sim}" != no; then
3411 testsuite=no
3412 common=no
3413 igen=no
3414 case "${target}" in
3415 arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
c906108c
SS
3416
3417
b7026657 3418subdirs="$subdirs arm"
c906108c 3419
f6bcefef
HPN
3420 testsuite=yes
3421 common=yes
3422 ;;
3423 cris-*-* | crisv32-*-*)
3424
3425
3426subdirs="$subdirs cris"
3427
b7026657
AC
3428 testsuite=yes
3429 common=yes
3430 ;;
3431 d10v-*-*)
3432
3433
3434subdirs="$subdirs d10v"
3435
3436 ;;
3437 frv-*-*)
3438
3439
3440subdirs="$subdirs frv"
3441
3442 testsuite=yes
3443 common=yes
3444 ;;
3445 h8300*-*-*)
3446
3447
3448subdirs="$subdirs h8300"
3449
edece237
CV
3450 testsuite=yes
3451 common=yes
3452 ;;
3453 iq2000-*-*)
3454
3455
3456subdirs="$subdirs iq2000"
3457
b7026657
AC
3458 testsuite=yes
3459 common=yes
3460 ;;
3461 m32r-*-*)
3462
3463
3464subdirs="$subdirs m32r"
3465
3466 testsuite=yes
3467 common=yes
3468 ;;
3469 m68hc11-*-*|m6811-*-*)
c906108c 3470
c906108c 3471
b7026657 3472subdirs="$subdirs m68hc11"
c906108c 3473
b7026657
AC
3474 testsuite=yes
3475 common=yes
3476 ;;
3477 mcore-*-*)
3478
3479
3480subdirs="$subdirs mcore"
3481
3482 testsuite=yes
3483 common=yes
3484 ;;
3485 mips*-*-*)
3486
3487
3488subdirs="$subdirs mips"
3489
3490 testsuite=yes
4ac6917f 3491 common=yes
b7026657
AC
3492 igen=yes
3493 ;;
3494 mn10300*-*-*)
3495
3496
3497subdirs="$subdirs mn10300"
3498
4ac6917f 3499 common=yes
b7026657
AC
3500 igen=yes
3501 ;;
21bc7567
CV
3502 sh64-*-*)
3503
3504
3505subdirs="$subdirs sh64"
3506
3507 testsuite=yes
3508 common=yes
3509 ;;
3510 sh-*-*)
b7026657
AC
3511
3512
3513subdirs="$subdirs sh"
3514
3515 testsuite=yes
3516 common=yes
3517 ;;
3518 powerpc*-*-* )
3519
3520
3521subdirs="$subdirs ppc"
3522
3523 common=yes
3524 ;;
3525 v850*-*-* )
3526
3527
3528subdirs="$subdirs v850"
3529
3530 common=yes
c3357c64 3531 igen=yes
b7026657
AC
3532 ;;
3533 esac
3534 if test "$testsuite" = yes; then
3535
3536
3537subdirs="$subdirs testsuite"
3538
3539 fi
3540 if test "$common" = yes; then
3541
3542
3543subdirs="$subdirs common"
3544
3545 fi
3546 if test "$igen" = yes; then
3547
3548
3549subdirs="$subdirs igen"
3550
3551 fi
c906108c
SS
3552fi
3553
b7026657
AC
3554 ac_config_files="$ac_config_files Makefile"
3555cat >confcache <<\_ACEOF
c906108c
SS
3556# This file is a shell script that caches the results of configure
3557# tests run on this system so they can be shared between configure
b7026657
AC
3558# scripts and configure runs, see configure's option --config-cache.
3559# It is not useful on other systems. If it contains results you don't
3560# want to keep, you may remove or edit it.
c906108c 3561#
b7026657
AC
3562# config.status only pays attention to the cache file if you give it
3563# the --recheck option to rerun configure.
c906108c 3564#
b7026657
AC
3565# `ac_cv_env_foo' variables (set or unset) will be overridden when
3566# loading this file, other *unset* `ac_cv_foo' will be assigned the
3567# following values.
3568
3569_ACEOF
3570
c906108c
SS
3571# The following way of writing the cache mishandles newlines in values,
3572# but we know of no workaround that is simple, portable, and efficient.
3573# So, don't put newlines in cache variables' values.
3574# Ultrix sh set writes to stderr and can't be redirected directly,
3575# and sets the high bit in the cache file unless we assign to the vars.
b7026657
AC
3576{
3577 (set) 2>&1 |
3578 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3579 *ac_space=\ *)
3580 # `set' does not quote correctly, so add quotes (double-quote
3581 # substitution turns \\\\ into \\, and sed turns \\ into \).
3582 sed -n \
3583 "s/'/'\\\\''/g;
3584 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3585 ;;
3586 *)
3587 # `set' quotes correctly as required by POSIX, so do not add quotes.
3588 sed -n \
3589 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3590 ;;
3591 esac;
3592} |
3593 sed '
3594 t clear
3595 : clear
3596 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3597 t end
3598 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3599 : end' >>confcache
3600if diff $cache_file confcache >/dev/null 2>&1; then :; else
c906108c 3601 if test -w $cache_file; then
b7026657
AC
3602 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3603 cat confcache >$cache_file
c906108c
SS
3604 else
3605 echo "not updating unwritable cache $cache_file"
3606 fi
3607fi
3608rm -f confcache
3609
c906108c
SS
3610test "x$prefix" = xNONE && prefix=$ac_default_prefix
3611# Let make expand exec_prefix.
3612test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3613
b7026657
AC
3614# VPATH may cause trouble with some makes, so we remove $(srcdir),
3615# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3616# trailing colons and then remove the whole line if VPATH becomes empty
3617# (actually we leave an empty line to preserve line numbers).
c906108c 3618if test "x$srcdir" = x.; then
b7026657
AC
3619 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3620s/:*\$(srcdir):*/:/;
3621s/:*\${srcdir}:*/:/;
3622s/:*@srcdir@:*/:/;
3623s/^\([^=]*=[ ]*\):*/\1/;
3624s/:*$//;
3625s/^[^=]*=[ ]*$//;
3626}'
c906108c
SS
3627fi
3628
c906108c
SS
3629# Transform confdefs.h into DEFS.
3630# Protect against shell expansion while executing Makefile rules.
3631# Protect against Makefile macro expansion.
b7026657
AC
3632#
3633# If the first sed substitution is executed (which looks for macros that
3634# take arguments), then we branch to the quote section. Otherwise,
3635# look for a macro that doesn't take arguments.
3636cat >confdef2opt.sed <<\_ACEOF
3637t clear
3638: clear
3639s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3640t quote
3641s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3642t quote
3643d
3644: quote
3645s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3646s,\[,\\&,g
3647s,\],\\&,g
3648s,\$,$$,g
3649p
3650_ACEOF
3651# We use echo to avoid assuming a particular line-breaking character.
3652# The extra dot is to prevent the shell from consuming trailing
3653# line-breaks from the sub-command output. A line-break within
3654# single-quotes doesn't work because, if this script is created in a
3655# platform that uses two characters for line-breaks (e.g., DOS), tr
3656# would break.
3657ac_LF_and_DOT=`echo; echo .`
3658DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3659rm -f confdef2opt.sed
3660
3661
3662ac_libobjs=
3663ac_ltlibobjs=
3664for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3665 # 1. Remove the extension, and $U if already installed.
3666 ac_i=`echo "$ac_i" |
3667 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3668 # 2. Add them.
3669 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3670 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3671done
3672LIBOBJS=$ac_libobjs
c906108c 3673
b7026657
AC
3674LTLIBOBJS=$ac_ltlibobjs
3675
3676
3677
3678: ${CONFIG_STATUS=./config.status}
3679ac_clean_files_save=$ac_clean_files
3680ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3681{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3682echo "$as_me: creating $CONFIG_STATUS" >&6;}
3683cat >$CONFIG_STATUS <<_ACEOF
3684#! $SHELL
3685# Generated by $as_me.
c906108c 3686# Run this file to recreate the current configuration.
c906108c 3687# Compiler output produced by configure, useful for debugging
b7026657
AC
3688# configure, is in config.log if it exists.
3689
3690debug=false
3691ac_cs_recheck=false
3692ac_cs_silent=false
3693SHELL=\${CONFIG_SHELL-$SHELL}
3694_ACEOF
3695
3696cat >>$CONFIG_STATUS <<\_ACEOF
3697## --------------------- ##
3698## M4sh Initialization. ##
3699## --------------------- ##
3700
3701# Be Bourne compatible
3702if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3703 emulate sh
3704 NULLCMD=:
3705 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3706 # is contrary to our usage. Disable this feature.
3707 alias -g '${1+"$@"}'='"$@"'
3708elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3709 set -o posix
3710fi
3711DUALCASE=1; export DUALCASE # for MKS sh
c906108c 3712
b7026657
AC
3713# Support unset when possible.
3714if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3715 as_unset=unset
3716else
3717 as_unset=false
3718fi
3719
3720
3721# Work around bugs in pre-3.0 UWIN ksh.
3722$as_unset ENV MAIL MAILPATH
3723PS1='$ '
3724PS2='> '
3725PS4='+ '
3726
3727# NLS nuisances.
3728for as_var in \
3729 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3730 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3731 LC_TELEPHONE LC_TIME
c906108c 3732do
b7026657
AC
3733 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3734 eval $as_var=C; export $as_var
3735 else
3736 $as_unset $as_var
3737 fi
c906108c
SS
3738done
3739
b7026657
AC
3740# Required to use basename.
3741if expr a : '\(a\)' >/dev/null 2>&1; then
3742 as_expr=expr
3743else
3744 as_expr=false
3745fi
c906108c 3746
b7026657
AC
3747if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3748 as_basename=basename
3749else
3750 as_basename=false
3751fi
c906108c 3752
c906108c 3753
b7026657
AC
3754# Name of the executable.
3755as_me=`$as_basename "$0" ||
3756$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3757 X"$0" : 'X\(//\)$' \| \
3758 X"$0" : 'X\(/\)$' \| \
3759 . : '\(.\)' 2>/dev/null ||
3760echo X/"$0" |
3761 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3762 /^X\/\(\/\/\)$/{ s//\1/; q; }
3763 /^X\/\(\/\).*/{ s//\1/; q; }
3764 s/.*/./; q'`
3765
3766
3767# PATH needs CR, and LINENO needs CR and PATH.
3768# Avoid depending upon Character Ranges.
3769as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3770as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3771as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3772as_cr_digits='0123456789'
3773as_cr_alnum=$as_cr_Letters$as_cr_digits
3774
3775# The user is always right.
3776if test "${PATH_SEPARATOR+set}" != set; then
3777 echo "#! /bin/sh" >conf$$.sh
3778 echo "exit 0" >>conf$$.sh
3779 chmod +x conf$$.sh
3780 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3781 PATH_SEPARATOR=';'
c906108c 3782 else
b7026657 3783 PATH_SEPARATOR=:
c906108c 3784 fi
b7026657
AC
3785 rm -f conf$$.sh
3786fi
3787
3788
3789 as_lineno_1=$LINENO
3790 as_lineno_2=$LINENO
3791 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3792 test "x$as_lineno_1" != "x$as_lineno_2" &&
3793 test "x$as_lineno_3" = "x$as_lineno_2" || {
3794 # Find who we are. Look in the path if we contain no path at all
3795 # relative or not.
3796 case $0 in
3797 *[\\/]* ) as_myself=$0 ;;
3798 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799for as_dir in $PATH
3800do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3804done
3805
3806 ;;
3807 esac
3808 # We did not find ourselves, most probably we were run as `sh COMMAND'
3809 # in which case we are not to be found in the path.
3810 if test "x$as_myself" = x; then
3811 as_myself=$0
3812 fi
3813 if test ! -f "$as_myself"; then
3814 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3815echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3816 { (exit 1); exit 1; }; }
3817 fi
3818 case $CONFIG_SHELL in
3819 '')
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3822do
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for as_base in sh bash ksh sh5; do
3826 case $as_dir in
3827 /*)
3828 if ("$as_dir/$as_base" -c '
3829 as_lineno_1=$LINENO
3830 as_lineno_2=$LINENO
3831 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3832 test "x$as_lineno_1" != "x$as_lineno_2" &&
3833 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3834 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3835 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3836 CONFIG_SHELL=$as_dir/$as_base
3837 export CONFIG_SHELL
3838 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3839 fi;;
3840 esac
3841 done
3842done
3843;;
3844 esac
3845
3846 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3847 # uniformly replaced by the line number. The first 'sed' inserts a
3848 # line-number line before each line; the second 'sed' does the real
3849 # work. The second script uses 'N' to pair each line-number line
3850 # with the numbered line, and appends trailing '-' during
3851 # substitution so that $LINENO is not a special case at line end.
3852 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3853 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3854 sed '=' <$as_myself |
3855 sed '
3856 N
3857 s,$,-,
3858 : loop
3859 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3860 t loop
3861 s,-$,,
3862 s,^['$as_cr_digits']*\n,,
3863 ' >$as_me.lineno &&
3864 chmod +x $as_me.lineno ||
3865 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3866echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3867 { (exit 1); exit 1; }; }
3868
3869 # Don't try to exec as it changes $[0], causing all sort of problems
3870 # (the dirname of $[0] is not the place where we might find the
3871 # original and so on. Autoconf is especially sensible to this).
3872 . ./$as_me.lineno
3873 # Exit status is that of the last command.
3874 exit
3875}
3876
3877
3878case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3879 *c*,-n*) ECHO_N= ECHO_C='
3880' ECHO_T=' ' ;;
3881 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3882 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3883esac
3884
3885if expr a : '\(a\)' >/dev/null 2>&1; then
3886 as_expr=expr
3887else
3888 as_expr=false
3889fi
3890
3891rm -f conf$$ conf$$.exe conf$$.file
3892echo >conf$$.file
3893if ln -s conf$$.file conf$$ 2>/dev/null; then
3894 # We could just check for DJGPP; but this test a) works b) is more generic
3895 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3896 if test -f conf$$.exe; then
3897 # Don't use ln at all; we don't have any links
3898 as_ln_s='cp -p'
c906108c 3899 else
b7026657 3900 as_ln_s='ln -s'
c906108c 3901 fi
b7026657
AC
3902elif ln conf$$.file conf$$ 2>/dev/null; then
3903 as_ln_s=ln
3904else
3905 as_ln_s='cp -p'
3906fi
3907rm -f conf$$ conf$$.exe conf$$.file
3908
3909if mkdir -p . 2>/dev/null; then
3910 as_mkdir_p=:
3911else
3912 test -d ./-p && rmdir ./-p
3913 as_mkdir_p=false
3914fi
3915
3916as_executable_p="test -f"
3917
3918# Sed expression to map a string onto a valid CPP name.
3919as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3920
3921# Sed expression to map a string onto a valid variable name.
3922as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3923
3924
3925# IFS
3926# We need space, tab and new line, in precisely that order.
3927as_nl='
3928'
3929IFS=" $as_nl"
3930
3931# CDPATH.
3932$as_unset CDPATH
3933
3934exec 6>&1
3935
3936# Open the log real soon, to keep \$[0] and so on meaningful, and to
3937# report actual input values of CONFIG_FILES etc. instead of their
3938# values after options handling. Logging --version etc. is OK.
3939exec 5>>config.log
3940{
3941 echo
3942 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3943## Running $as_me. ##
3944_ASBOX
3945} >&5
3946cat >&5 <<_CSEOF
3947
3948This file was extended by $as_me, which was
3949generated by GNU Autoconf 2.59. Invocation command line was
3950
3951 CONFIG_FILES = $CONFIG_FILES
3952 CONFIG_HEADERS = $CONFIG_HEADERS
3953 CONFIG_LINKS = $CONFIG_LINKS
3954 CONFIG_COMMANDS = $CONFIG_COMMANDS
3955 $ $0 $@
3956
3957_CSEOF
3958echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3959echo >&5
3960_ACEOF
3961
3962# Files that config.status was made for.
3963if test -n "$ac_config_files"; then
3964 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3965fi
3966
3967if test -n "$ac_config_headers"; then
3968 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3969fi
3970
3971if test -n "$ac_config_links"; then
3972 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3973fi
3974
3975if test -n "$ac_config_commands"; then
3976 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3977fi
3978
3979cat >>$CONFIG_STATUS <<\_ACEOF
3980
3981ac_cs_usage="\
3982\`$as_me' instantiates files from templates according to the
3983current configuration.
3984
3985Usage: $0 [OPTIONS] [FILE]...
3986
3987 -h, --help print this help, then exit
3988 -V, --version print version number, then exit
3989 -q, --quiet do not print progress messages
3990 -d, --debug don't remove temporary files
3991 --recheck update $as_me by reconfiguring in the same conditions
3992 --file=FILE[:TEMPLATE]
3993 instantiate the configuration file FILE
3994
3995Configuration files:
3996$config_files
3997
3998Report bugs to <bug-autoconf@gnu.org>."
3999_ACEOF
4000
4001cat >>$CONFIG_STATUS <<_ACEOF
4002ac_cs_version="\\
4003config.status
4004configured by $0, generated by GNU Autoconf 2.59,
4005 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4006
4007Copyright (C) 2003 Free Software Foundation, Inc.
4008This config.status script is free software; the Free Software Foundation
4009gives unlimited permission to copy, distribute and modify it."
4010srcdir=$srcdir
4011INSTALL="$INSTALL"
4012_ACEOF
4013
4014cat >>$CONFIG_STATUS <<\_ACEOF
4015# If no file are specified by the user, then we need to provide default
4016# value. By we need to know if files were specified by the user.
4017ac_need_defaults=:
4018while test $# != 0
4019do
4020 case $1 in
4021 --*=*)
4022 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4023 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4024 ac_shift=:
4025 ;;
4026 -*)
4027 ac_option=$1
4028 ac_optarg=$2
4029 ac_shift=shift
4030 ;;
4031 *) # This is not an option, so the user has probably given explicit
4032 # arguments.
4033 ac_option=$1
4034 ac_need_defaults=false;;
4035 esac
4036
4037 case $ac_option in
4038 # Handling of the options.
4039_ACEOF
4040cat >>$CONFIG_STATUS <<\_ACEOF
4041 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4042 ac_cs_recheck=: ;;
4043 --version | --vers* | -V )
4044 echo "$ac_cs_version"; exit 0 ;;
4045 --he | --h)
4046 # Conflict between --help and --header
4047 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4048Try \`$0 --help' for more information." >&5
4049echo "$as_me: error: ambiguous option: $1
4050Try \`$0 --help' for more information." >&2;}
4051 { (exit 1); exit 1; }; };;
4052 --help | --hel | -h )
4053 echo "$ac_cs_usage"; exit 0 ;;
4054 --debug | --d* | -d )
4055 debug=: ;;
4056 --file | --fil | --fi | --f )
4057 $ac_shift
4058 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4059 ac_need_defaults=false;;
4060 --header | --heade | --head | --hea )
4061 $ac_shift
4062 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4063 ac_need_defaults=false;;
4064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4065 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4066 ac_cs_silent=: ;;
4067
4068 # This is an error.
4069 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4070Try \`$0 --help' for more information." >&5
4071echo "$as_me: error: unrecognized option: $1
4072Try \`$0 --help' for more information." >&2;}
4073 { (exit 1); exit 1; }; } ;;
4074
4075 *) ac_config_targets="$ac_config_targets $1" ;;
4076
4077 esac
4078 shift
c906108c 4079done
b7026657
AC
4080
4081ac_configure_extra_args=
4082
4083if $ac_cs_silent; then
4084 exec 6>/dev/null
4085 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c 4086fi
c906108c 4087
b7026657
AC
4088_ACEOF
4089cat >>$CONFIG_STATUS <<_ACEOF
4090if \$ac_cs_recheck; then
4091 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4092 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4093fi
c906108c 4094
b7026657
AC
4095_ACEOF
4096
4097
4098
4099
4100
4101cat >>$CONFIG_STATUS <<\_ACEOF
4102for ac_config_target in $ac_config_targets
4103do
4104 case "$ac_config_target" in
4105 # Handling of arguments.
4106 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4107 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4108echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4109 { (exit 1); exit 1; }; };;
c906108c 4110 esac
b7026657 4111done
c906108c 4112
b7026657
AC
4113# If the user did not use the arguments to specify the items to instantiate,
4114# then the envvar interface is used. Set only those that are not.
4115# We use the long form for the default assignment because of an extremely
4116# bizarre bug on SunOS 4.1.3.
4117if $ac_need_defaults; then
4118 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4119fi
c906108c 4120
b7026657
AC
4121# Have a temporary directory for convenience. Make it in the build tree
4122# simply because there is no reason to put it here, and in addition,
4123# creating and moving files from /tmp can sometimes cause problems.
4124# Create a temporary directory, and hook for its removal unless debugging.
4125$debug ||
4126{
4127 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4128 trap '{ (exit 1); exit 1; }' 1 2 13 15
4129}
4130
4131# Create a (secure) tmp directory for tmp files.
4132
4133{
4134 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4135 test -n "$tmp" && test -d "$tmp"
4136} ||
4137{
4138 tmp=./confstat$$-$RANDOM
4139 (umask 077 && mkdir $tmp)
4140} ||
4141{
4142 echo "$me: cannot create a temporary directory in ." >&2
4143 { (exit 1); exit 1; }
4144}
4145
4146_ACEOF
4147
4148cat >>$CONFIG_STATUS <<_ACEOF
4149
4150#
4151# CONFIG_FILES section.
4152#
4153
4154# No need to generate the scripts if there are no CONFIG_FILES.
4155# This happens for instance when ./config.status config.h
4156if test -n "\$CONFIG_FILES"; then
4157 # Protect against being on the right side of a sed subst in config.status.
4158 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4159 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4160s,@SHELL@,$SHELL,;t t
4161s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4162s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4163s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4164s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4165s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4166s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4167s,@exec_prefix@,$exec_prefix,;t t
4168s,@prefix@,$prefix,;t t
4169s,@program_transform_name@,$program_transform_name,;t t
4170s,@bindir@,$bindir,;t t
4171s,@sbindir@,$sbindir,;t t
4172s,@libexecdir@,$libexecdir,;t t
4173s,@datadir@,$datadir,;t t
4174s,@sysconfdir@,$sysconfdir,;t t
4175s,@sharedstatedir@,$sharedstatedir,;t t
4176s,@localstatedir@,$localstatedir,;t t
4177s,@libdir@,$libdir,;t t
4178s,@includedir@,$includedir,;t t
4179s,@oldincludedir@,$oldincludedir,;t t
4180s,@infodir@,$infodir,;t t
4181s,@mandir@,$mandir,;t t
4182s,@build_alias@,$build_alias,;t t
4183s,@host_alias@,$host_alias,;t t
4184s,@target_alias@,$target_alias,;t t
4185s,@DEFS@,$DEFS,;t t
4186s,@ECHO_C@,$ECHO_C,;t t
4187s,@ECHO_N@,$ECHO_N,;t t
4188s,@ECHO_T@,$ECHO_T,;t t
4189s,@LIBS@,$LIBS,;t t
4190s,@CC@,$CC,;t t
4191s,@CFLAGS@,$CFLAGS,;t t
4192s,@LDFLAGS@,$LDFLAGS,;t t
4193s,@CPPFLAGS@,$CPPFLAGS,;t t
4194s,@ac_ct_CC@,$ac_ct_CC,;t t
4195s,@EXEEXT@,$EXEEXT,;t t
4196s,@OBJEXT@,$OBJEXT,;t t
4197s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4198s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4199s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4200s,@AR@,$AR,;t t
4201s,@ac_ct_AR@,$ac_ct_AR,;t t
4202s,@RANLIB@,$RANLIB,;t t
4203s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4204s,@build@,$build,;t t
4205s,@build_cpu@,$build_cpu,;t t
4206s,@build_vendor@,$build_vendor,;t t
4207s,@build_os@,$build_os,;t t
4208s,@host@,$host,;t t
4209s,@host_cpu@,$host_cpu,;t t
4210s,@host_vendor@,$host_vendor,;t t
4211s,@host_os@,$host_os,;t t
4212s,@target@,$target,;t t
4213s,@target_cpu@,$target_cpu,;t t
4214s,@target_vendor@,$target_vendor,;t t
4215s,@target_os@,$target_os,;t t
4216s,@HDEFINES@,$HDEFINES,;t t
4217s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
4218s,@subdirs@,$subdirs,;t t
4219s,@LIBOBJS@,$LIBOBJS,;t t
4220s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4221CEOF
4222
4223_ACEOF
4224
4225 cat >>$CONFIG_STATUS <<\_ACEOF
4226 # Split the substitutions into bite-sized pieces for seds with
4227 # small command number limits, like on Digital OSF/1 and HP-UX.
4228 ac_max_sed_lines=48
4229 ac_sed_frag=1 # Number of current file.
4230 ac_beg=1 # First line for current file.
4231 ac_end=$ac_max_sed_lines # Line after last line for current file.
4232 ac_more_lines=:
4233 ac_sed_cmds=
4234 while $ac_more_lines; do
4235 if test $ac_beg -gt 1; then
4236 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4237 else
4238 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4239 fi
4240 if test ! -s $tmp/subs.frag; then
4241 ac_more_lines=false
4242 else
4243 # The purpose of the label and of the branching condition is to
4244 # speed up the sed processing (if there are no `@' at all, there
4245 # is no need to browse any of the substitutions).
4246 # These are the two extra sed commands mentioned above.
4247 (echo ':t
4248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4249 if test -z "$ac_sed_cmds"; then
4250 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4251 else
4252 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4253 fi
4254 ac_sed_frag=`expr $ac_sed_frag + 1`
4255 ac_beg=$ac_end
4256 ac_end=`expr $ac_end + $ac_max_sed_lines`
4257 fi
4258 done
4259 if test -z "$ac_sed_cmds"; then
4260 ac_sed_cmds=cat
c906108c 4261 fi
b7026657 4262fi # test -n "$CONFIG_FILES"
c906108c 4263
b7026657
AC
4264_ACEOF
4265cat >>$CONFIG_STATUS <<\_ACEOF
4266for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4267 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4268 case $ac_file in
4269 - | *:- | *:-:* ) # input from stdin
4270 cat >$tmp/stdin
4271 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4272 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4273 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4274 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4275 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
4276 esac
4277
b7026657
AC
4278 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4279 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4280$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4281 X"$ac_file" : 'X\(//\)[^/]' \| \
4282 X"$ac_file" : 'X\(//\)$' \| \
4283 X"$ac_file" : 'X\(/\)' \| \
4284 . : '\(.\)' 2>/dev/null ||
4285echo X"$ac_file" |
4286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4288 /^X\(\/\/\)$/{ s//\1/; q; }
4289 /^X\(\/\).*/{ s//\1/; q; }
4290 s/.*/./; q'`
4291 { if $as_mkdir_p; then
4292 mkdir -p "$ac_dir"
4293 else
4294 as_dir="$ac_dir"
4295 as_dirs=
4296 while test ! -d "$as_dir"; do
4297 as_dirs="$as_dir $as_dirs"
4298 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4299$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4300 X"$as_dir" : 'X\(//\)[^/]' \| \
4301 X"$as_dir" : 'X\(//\)$' \| \
4302 X"$as_dir" : 'X\(/\)' \| \
4303 . : '\(.\)' 2>/dev/null ||
4304echo X"$as_dir" |
4305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4307 /^X\(\/\/\)$/{ s//\1/; q; }
4308 /^X\(\/\).*/{ s//\1/; q; }
4309 s/.*/./; q'`
4310 done
4311 test ! -n "$as_dirs" || mkdir $as_dirs
4312 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4313echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4314 { (exit 1); exit 1; }; }; }
4315
4316 ac_builddir=.
4317
4318if test "$ac_dir" != .; then
4319 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4320 # A "../" for each directory in $ac_dir_suffix.
4321 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4322else
4323 ac_dir_suffix= ac_top_builddir=
4324fi
4325
4326case $srcdir in
4327 .) # No --srcdir option. We are building in place.
4328 ac_srcdir=.
4329 if test -z "$ac_top_builddir"; then
4330 ac_top_srcdir=.
4331 else
4332 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4333 fi ;;
4334 [\\/]* | ?:[\\/]* ) # Absolute path.
4335 ac_srcdir=$srcdir$ac_dir_suffix;
4336 ac_top_srcdir=$srcdir ;;
4337 *) # Relative path.
4338 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4339 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4340esac
4341
4342# Do not use `cd foo && pwd` to compute absolute paths, because
4343# the directories may not exist.
4344case `pwd` in
4345.) ac_abs_builddir="$ac_dir";;
4346*)
4347 case "$ac_dir" in
4348 .) ac_abs_builddir=`pwd`;;
4349 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4350 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4351 esac;;
4352esac
4353case $ac_abs_builddir in
4354.) ac_abs_top_builddir=${ac_top_builddir}.;;
4355*)
4356 case ${ac_top_builddir}. in
4357 .) ac_abs_top_builddir=$ac_abs_builddir;;
4358 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4359 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4360 esac;;
4361esac
4362case $ac_abs_builddir in
4363.) ac_abs_srcdir=$ac_srcdir;;
4364*)
4365 case $ac_srcdir in
4366 .) ac_abs_srcdir=$ac_abs_builddir;;
4367 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4368 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4369 esac;;
4370esac
4371case $ac_abs_builddir in
4372.) ac_abs_top_srcdir=$ac_top_srcdir;;
4373*)
4374 case $ac_top_srcdir in
4375 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4376 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4377 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4378 esac;;
4379esac
4380
c906108c 4381
b7026657
AC
4382 case $INSTALL in
4383 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4384 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
4385 esac
4386
b7026657
AC
4387 if test x"$ac_file" != x-; then
4388 { echo "$as_me:$LINENO: creating $ac_file" >&5
4389echo "$as_me: creating $ac_file" >&6;}
4390 rm -f "$ac_file"
4391 fi
4392 # Let's still pretend it is `configure' which instantiates (i.e., don't
4393 # use $as_me), people would be surprised to read:
4394 # /* config.h. Generated by config.status. */
4395 if test x"$ac_file" = x-; then
4396 configure_input=
4397 else
4398 configure_input="$ac_file. "
4399 fi
4400 configure_input=$configure_input"Generated from `echo $ac_file_in |
4401 sed 's,.*/,,'` by configure."
4402
4403 # First look for the input files in the build tree, otherwise in the
4404 # src tree.
4405 ac_file_inputs=`IFS=:
4406 for f in $ac_file_in; do
4407 case $f in
4408 -) echo $tmp/stdin ;;
4409 [\\/$]*)
4410 # Absolute (can't be DOS-style, as IFS=:)
4411 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4412echo "$as_me: error: cannot find input file: $f" >&2;}
4413 { (exit 1); exit 1; }; }
4414 echo "$f";;
4415 *) # Relative
4416 if test -f "$f"; then
4417 # Build tree
4418 echo "$f"
4419 elif test -f "$srcdir/$f"; then
4420 # Source tree
4421 echo "$srcdir/$f"
4422 else
4423 # /dev/null tree
4424 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4425echo "$as_me: error: cannot find input file: $f" >&2;}
4426 { (exit 1); exit 1; }; }
4427 fi;;
4428 esac
4429 done` || { (exit 1); exit 1; }
4430_ACEOF
4431cat >>$CONFIG_STATUS <<_ACEOF
4432 sed "$ac_vpsub
4433$extrasub
4434_ACEOF
4435cat >>$CONFIG_STATUS <<\_ACEOF
4436:t
4437/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4438s,@configure_input@,$configure_input,;t t
4439s,@srcdir@,$ac_srcdir,;t t
4440s,@abs_srcdir@,$ac_abs_srcdir,;t t
4441s,@top_srcdir@,$ac_top_srcdir,;t t
4442s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4443s,@builddir@,$ac_builddir,;t t
4444s,@abs_builddir@,$ac_abs_builddir,;t t
4445s,@top_builddir@,$ac_top_builddir,;t t
4446s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4447s,@INSTALL@,$ac_INSTALL,;t t
4448" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4449 rm -f $tmp/stdin
4450 if test x"$ac_file" != x-; then
4451 mv $tmp/out $ac_file
4452 else
4453 cat $tmp/out
4454 rm -f $tmp/out
4455 fi
c906108c 4456
b7026657
AC
4457done
4458_ACEOF
c906108c 4459
b7026657 4460cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 4461
b7026657
AC
4462{ (exit 0); exit 0; }
4463_ACEOF
c906108c 4464chmod +x $CONFIG_STATUS
b7026657
AC
4465ac_clean_files=$ac_clean_files_save
4466
4467
4468# configure is writing to config.log, and then calls config.status.
4469# config.status does its own redirection, appending to config.log.
4470# Unfortunately, on DOS this fails, as config.log is still kept open
4471# by configure, so config.status won't be able to write to it; its
4472# output is simply discarded. So we exec the FD to /dev/null,
4473# effectively closing config.log, so it can be properly (re)opened and
4474# appended to by config.status. When coming back to configure, we
4475# need to make the FD available again.
4476if test "$no_create" != yes; then
4477 ac_cs_success=:
4478 ac_config_status_args=
4479 test "$silent" = yes &&
4480 ac_config_status_args="$ac_config_status_args --quiet"
4481 exec 5>/dev/null
4482 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4483 exec 5>>config.log
4484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4485 # would make configure fail if this is the last instruction.
4486 $ac_cs_success || { (exit 1); exit 1; }
4487fi
c906108c 4488
b7026657
AC
4489#
4490# CONFIG_SUBDIRS section.
4491#
c906108c
SS
4492if test "$no_recursion" != yes; then
4493
4494 # Remove --cache-file and --srcdir arguments so they do not pile up.
4495 ac_sub_configure_args=
4496 ac_prev=
4497 for ac_arg in $ac_configure_args; do
4498 if test -n "$ac_prev"; then
4499 ac_prev=
4500 continue
4501 fi
b7026657 4502 case $ac_arg in
c906108c
SS
4503 -cache-file | --cache-file | --cache-fil | --cache-fi \
4504 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4505 ac_prev=cache_file ;;
4506 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
b7026657
AC
4507 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4508 | --c=*)
4509 ;;
4510 --config-cache | -C)
c906108c
SS
4511 ;;
4512 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4513 ac_prev=srcdir ;;
4514 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4515 ;;
b7026657
AC
4516 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4517 ac_prev=prefix ;;
4518 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4519 ;;
c906108c
SS
4520 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4521 esac
4522 done
4523
b7026657
AC
4524 # Always prepend --prefix to ensure using the same prefix
4525 # in subdir configurations.
4526 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
4527
4528 ac_popdir=`pwd`
4529 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
4530
4531 # Do not complain, so a configure script can configure whichever
4532 # parts of a large source tree are present.
b7026657 4533 test -d $srcdir/$ac_dir || continue
c906108c 4534
b7026657
AC
4535 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
4536echo "$as_me: configuring in $ac_dir" >&6;}
4537 { if $as_mkdir_p; then
4538 mkdir -p "$ac_dir"
4539 else
4540 as_dir="$ac_dir"
4541 as_dirs=
4542 while test ! -d "$as_dir"; do
4543 as_dirs="$as_dir $as_dirs"
4544 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4545$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4546 X"$as_dir" : 'X\(//\)[^/]' \| \
4547 X"$as_dir" : 'X\(//\)$' \| \
4548 X"$as_dir" : 'X\(/\)' \| \
4549 . : '\(.\)' 2>/dev/null ||
4550echo X"$as_dir" |
4551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4553 /^X\(\/\/\)$/{ s//\1/; q; }
4554 /^X\(\/\).*/{ s//\1/; q; }
4555 s/.*/./; q'`
4556 done
4557 test ! -n "$as_dirs" || mkdir $as_dirs
4558 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4559echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4560 { (exit 1); exit 1; }; }; }
4561
4562 ac_builddir=.
4563
4564if test "$ac_dir" != .; then
4565 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4566 # A "../" for each directory in $ac_dir_suffix.
4567 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4568else
4569 ac_dir_suffix= ac_top_builddir=
4570fi
c906108c 4571
b7026657
AC
4572case $srcdir in
4573 .) # No --srcdir option. We are building in place.
4574 ac_srcdir=.
4575 if test -z "$ac_top_builddir"; then
4576 ac_top_srcdir=.
4577 else
4578 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4579 fi ;;
4580 [\\/]* | ?:[\\/]* ) # Absolute path.
4581 ac_srcdir=$srcdir$ac_dir_suffix;
4582 ac_top_srcdir=$srcdir ;;
4583 *) # Relative path.
4584 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4585 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4586esac
c906108c 4587
b7026657
AC
4588# Do not use `cd foo && pwd` to compute absolute paths, because
4589# the directories may not exist.
4590case `pwd` in
4591.) ac_abs_builddir="$ac_dir";;
4592*)
4593 case "$ac_dir" in
4594 .) ac_abs_builddir=`pwd`;;
4595 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4596 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4597 esac;;
4598esac
4599case $ac_abs_builddir in
4600.) ac_abs_top_builddir=${ac_top_builddir}.;;
4601*)
4602 case ${ac_top_builddir}. in
4603 .) ac_abs_top_builddir=$ac_abs_builddir;;
4604 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4605 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4606 esac;;
4607esac
4608case $ac_abs_builddir in
4609.) ac_abs_srcdir=$ac_srcdir;;
4610*)
4611 case $ac_srcdir in
4612 .) ac_abs_srcdir=$ac_abs_builddir;;
4613 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4614 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4615 esac;;
4616esac
4617case $ac_abs_builddir in
4618.) ac_abs_top_srcdir=$ac_top_srcdir;;
4619*)
4620 case $ac_top_srcdir in
4621 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4622 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4623 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4624 esac;;
4625esac
c906108c 4626
c906108c 4627
b7026657 4628 cd $ac_dir
c906108c
SS
4629
4630 # Check for guested configure; otherwise get Cygnus style configure.
b7026657
AC
4631 if test -f $ac_srcdir/configure.gnu; then
4632 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
4633 elif test -f $ac_srcdir/configure; then
4634 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
4635 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
4636 ac_sub_configure=$ac_configure
4637 else
b7026657
AC
4638 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
4639echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
4640 ac_sub_configure=
4641 fi
4642
4643 # The recursion is here.
4644 if test -n "$ac_sub_configure"; then
c906108c 4645 # Make the cache file name correct relative to the subdirectory.
b7026657
AC
4646 case $cache_file in
4647 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
c906108c 4648 *) # Relative path.
b7026657 4649 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 4650 esac
c906108c 4651
b7026657
AC
4652 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4653echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 4654 # The eval makes quoting arguments work.
b7026657
AC
4655 eval $ac_sub_configure $ac_sub_configure_args \
4656 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
4657 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
4658echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
4659 { (exit 1); exit 1; }; }
c906108c
SS
4660 fi
4661
4662 cd $ac_popdir
4663 done
4664fi
4665
4666
4667exit 0