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