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