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