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