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