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