Add support for DragonFlyBSD target.
[binutils.git] / configure
Commit [+]AuthorDateLineData
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001#! /bin/sh
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002# Guess values for system-dependent variables and create Makefiles.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003# 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.
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00008#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +000011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +000014
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +000015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +000018 emulate sh
19 NULLCMD=:
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +000020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +000021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +000023 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +000031fi
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +000032
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +000033
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'
50else
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 }
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +000079fi
80
81
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +000082# 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
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000126LC_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'\" &&
bd7ec9f4
PB
Paolo Bonzini2009-09-02 07:05:02 +0000171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000184do
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000228 else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000233 fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000263
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000375 as_expr=expr
376else
377 as_expr=false
378fi
379
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000381 as_basename=basename
382else
383 as_basename=false
384fi
385
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000391
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000392as_me=`$as_basename -- "$0" ||
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000410
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000418
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000428 sed '
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000433 N
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000436 t loop
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000437 s/-\n.*//
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000438 ' >$as_me.lineno &&
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000446 # Exit status is that of the last command.
447 exit
448}
449
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000461esac
462
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000466else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000469fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000472 as_ln_s='ln -s'
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000483 fi
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000484else
485 as_ln_s='cp -p'
486fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000489
490if mkdir -p . 2>/dev/null; then
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000491 as_mkdir_p='mkdir -p "$as_dir"'
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000527exec 7<&0 </dev/null 6>&1
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +0000528
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000534#
535# Initializations.
536#
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +0000537ac_default_prefix=/usr/local
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000538ac_clean_files=
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000539ac_config_libobj_dir=.
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000540LIBOBJS=
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000552PACKAGE_URL=
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000553
554ac_unique_file="move-if-change"
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
0f514ac3 Ian Lance Taylor2010-11-19 22:06:26 +0000581GOC_FOR_TARGET
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000582GFORTRAN_FOR_TARGET
583GCJ_FOR_TARGET
584GCC_FOR_TARGET
585CXX_FOR_TARGET
586CC_FOR_TARGET
587OBJDUMP
588OBJCOPY
589WINDMC
590WINDRES
591STRIP
592RANLIB
593NM
594LIPO
595LD
596DLLTOOL
597AS
598AR
599RUNTEST
600EXPECT
601MAKEINFO
602FLEX
603LEX
604M4
605BISON
606YACC
607config_shell
608WINDRES_FOR_BUILD
609WINDMC_FOR_BUILD
610RANLIB_FOR_BUILD
611NM_FOR_BUILD
612LD_FOR_BUILD
613LDFLAGS_FOR_BUILD
0f514ac3 Ian Lance Taylor2010-11-19 22:06:26 +0000614GOC_FOR_BUILD
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000615GFORTRAN_FOR_BUILD
616GCJ_FOR_BUILD
617DLLTOOL_FOR_BUILD
618CXX_FOR_BUILD
619CXXFLAGS_FOR_BUILD
620CFLAGS_FOR_BUILD
621CC_FOR_BUILD
622AS_FOR_BUILD
623AR_FOR_BUILD
10954f3d Joern Rennecke2010-01-22 16:28:24 +0000624target_configdirs
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000625configdirs
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000626build_configdirs
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
34b1b2ab
RW
Ralf Wildenhues2010-10-02 14:54:05 +0000634target_configargs
635host_configargs
636build_configargs
d2f4997c Alexandre Oliva2009-09-07 00:44:08 +0000637BUILD_CONFIG
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000638CXXFLAGS_FOR_TARGET
639CFLAGS_FOR_TARGET
640DEBUG_PREFIX_CFLAGS_FOR_TARGET
641SYSROOT_CFLAGS_FOR_TARGET
642stage1_languages
e7756c92 Ian Lance Taylor2009-10-07 05:57:48 +0000643extra_host_libiberty_configure_flags
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000644clooginc
645clooglibs
646pplinc
647ppllibs
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000648poststage1_ldflags
fb2bfeb9 Nick Clifton2010-02-15 10:37:54 +0000649poststage1_libs
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000650stage1_libs
651stage1_ldflags
652extra_mpc_mpfr_configure_flags
653extra_mpc_gmp_configure_flags
654extra_mpfr_configure_flags
655gmpinc
656gmplibs
657do_compare
658GNATMAKE
659GNATBIND
660ac_ct_CXX
661CXXFLAGS
662CXX
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670target_subdir
671host_subdir
672build_subdir
673build_libsubdir
bd7ec9f4
PB
Paolo Bonzini2009-09-02 07:05:02 +0000674AWK
675SED
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000676LN_S
677LN
678INSTALL_DATA
679INSTALL_SCRIPT
680INSTALL_PROGRAM
681target_os
682target_vendor
683target_cpu
684target
685host_os
686host_vendor
687host_cpu
688host
689target_noncanonical
690host_noncanonical
691build_noncanonical
692build_os
693build_vendor
694build_cpu
695build
696TOPLEVEL_CONFIGURE_ARGUMENTS
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
735ac_subst_files='serialization_dependencies
736host_makefile_frag
737target_makefile_frag
738alphaieee_frag
739ospace_frag'
740ac_user_opts='
741enable_option_checking
742with_build_libsubdir
743enable_gold
1ea28f93 Nick Clifton2010-11-23 13:39:56 +0000744enable_ld
3e9685e0
PB
Paolo Bonzini2010-12-10 12:09:34 +0000745enable_libquadmath
746enable_libquadmath_support
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000747enable_libada
748enable_libssp
749enable_build_with_cxx
750with_mpc
751with_mpc_include
752with_mpc_lib
753with_mpfr_dir
754with_mpfr
755with_mpfr_include
756with_mpfr_lib
757with_gmp_dir
758with_gmp
759with_gmp_include
760with_gmp_lib
761with_host_libstdcxx
762with_stage1_ldflags
763with_stage1_libs
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000764with_boot_libs
fb2bfeb9 Nick Clifton2010-02-15 10:37:54 +0000765with_boot_ldflags
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000766with_ppl
767with_ppl_include
768with_ppl_lib
769enable_ppl_version_check
770with_cloog
771with_cloog_include
772with_cloog_lib
0f514ac3 Ian Lance Taylor2010-11-19 22:06:26 +0000773enable_cloog_backend
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000774enable_cloog_version_check
e7756c92 Ian Lance Taylor2009-10-07 05:57:48 +0000775enable_lto
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000776enable_stage1_languages
777enable_objc_gc
778with_build_sysroot
779with_debug_prefix_map
780enable_bootstrap
d2f4997c Alexandre Oliva2009-09-07 00:44:08 +0000781with_build_config
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000782enable_serial_configure
783with_build_time_tools
784enable_maintainer_mode
785enable_stage1_checking
786enable_werror
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000787'
788 ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796CXX
797CXXFLAGS
798CCC
34b1b2ab
RW
Ralf Wildenhues2010-10-02 14:54:05 +0000799build_configargs
800host_configargs
801target_configargs
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000802AR
803AS
804DLLTOOL
805LD
806LIPO
807NM
808RANLIB
809STRIP
810WINDRES
811WINDMC
812OBJCOPY
813OBJDUMP
814CC_FOR_TARGET
815CXX_FOR_TARGET
816GCC_FOR_TARGET
817GCJ_FOR_TARGET
818GFORTRAN_FOR_TARGET
0f514ac3 Ian Lance Taylor2010-11-19 22:06:26 +0000819GOC_FOR_TARGET
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000820AR_FOR_TARGET
821AS_FOR_TARGET
822DLLTOOL_FOR_TARGET
823LD_FOR_TARGET
824LIPO_FOR_TARGET
825NM_FOR_TARGET
826OBJDUMP_FOR_TARGET
827RANLIB_FOR_TARGET
828STRIP_FOR_TARGET
829WINDRES_FOR_TARGET
830WINDMC_FOR_TARGET'
831
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000832
833# Initialize some variables set by options.
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000834ac_init_help=
835ac_init_version=false
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000836ac_unrecognized_opts=
837ac_unrecognized_sep=
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000838# The variables have the same names as the options, with
839# dashes changed to underlines.
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000840cache_file=/dev/null
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +0000841exec_prefix=NONE
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +0000842no_create=
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
848silent=
849site=
850srcdir=
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000851verbose=
852x_includes=NONE
853x_libraries=NONE
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000854
855# Installation directory options.
856# These are left unexpanded so users can "make install exec_prefix=/foo"
857# and all the variables that are supposed to be based on exec_prefix
858# by default will actually change.
859# Use braces instead of parens because sh, perl, etc. also accept them.
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000860# (The list follows the same order as the GNU Coding Standards.)
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000869includedir='${prefix}/include'
870oldincludedir='/usr/include'
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000871docdir='${datarootdir}/doc/${PACKAGE}'
872infodir='${datarootdir}/info'
873htmldir='${docdir}'
874dvidir='${docdir}'
875pdfdir='${docdir}'
876psdir='${docdir}'
877libdir='${exec_prefix}/lib'
878localedir='${datarootdir}/locale'
879mandir='${datarootdir}/man'
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000880
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +0000881ac_prev=
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000882ac_dashdash=
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000883for ac_option
884do
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000887 eval $ac_prev=\$ac_option
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000888 ac_prev=
889 continue
890 fi
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000891
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000892 case $ac_option in
893 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *) ac_optarg=yes ;;
895 esac
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000896
897 # Accept the important Cygnus configure options, so we can diagnose typos.
898
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000906 bindir=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000907
908 -build | --build | --buil | --bui | --bu)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000909 ac_prev=build_alias ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +0000910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000911 build_alias=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +0000922
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000923 -datadir | --datadir | --datadi | --datad)
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +0000924 ac_prev=datadir ;;
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000926 datadir=$ac_optarg ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +0000927
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +0000935 -disable-* | --disable-*)
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +0000937 # Reject names that are not valid shell variable names.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944"enable_$ac_useropt"
945"*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
950
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
955
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000960
961 -enable-* | --enable-*)
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +0000963 # Reject names that are not valid shell variable names.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970"enable_$ac_useropt"
971"*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +0000974 esac
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000975 eval enable_$ac_useropt=\$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000976
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000984 exec_prefix=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +0000990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +0000996
997 -host | --host | --hos | --ho)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +0000998 ac_prev=host_alias ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +0000999 -host=* | --host=* | --hos=* | --ho=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001000 host_alias=$ac_optarg ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001001
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1007
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001013 includedir=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001018 infodir=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001023 libdir=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001024
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001030 libexecdir=$ac_optarg ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001031
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001037 -localstatedir | --localstatedir | --localstatedi | --localstated \
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001038 | --localstate | --localstat | --localsta | --localst | --locals)
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001042 localstatedir=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001047 mandir=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001048
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1052
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001054 | --no-cr | --no-c | -n)
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001055 no_create=yes ;;
1056
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1060
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001068 oldincludedir=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001073 prefix=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001074
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001080 program_prefix=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001081
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001087 program_suffix=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001088
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001104 program_transform_name=$ac_optarg ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001105
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1110
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1115
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001124 sbindir=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001135 sharedstatedir=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001140 site=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001145 srcdir=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001152 sysconfdir=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001155 ac_prev=target_alias ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001157 target_alias=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001164
1165 -with-* | --with-*)
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001167 # Reject names that are not valid shell variable names.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174"with_$ac_useropt"
1175"*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001178 esac
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001179 eval with_$ac_useropt=\$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001180
1181 -without-* | --without-*)
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001183 # Reject names that are not valid shell variable names.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190"with_$ac_useropt"
1191"*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001206 x_includes=$ac_optarg ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001213 x_libraries=$ac_optarg ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001214
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001215 -*) as_fn_error "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information."
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001217 ;;
1218
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001227 export $ac_envvar ;;
1228
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001229 *)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001230 # FIXME: should be removed in autoconf 3.0.
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001234 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001235 ;;
1236
1237 esac
1238done
1239
1240if test -n "$ac_prev"; then
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001242 as_fn_error "missing argument to $ac_option"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001243fi
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001244
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001245if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001250 esac
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001251fi
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001252
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001253# Check all directory arguments for consistency.
1254for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001258do
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001267 case $ac_val in
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001270 esac
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001271 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001272done
1273
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001274# There might be people who depend on the old broken behavior: `$host'
1275# used to hold the argument of --host etc.
1276# FIXME: To remove some day.
1277build=$build_alias
1278host=$host_alias
1279target=$target_alias
38d078df Catherine Moore2005-10-03 15:11:13 +00001280
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001281# FIXME: To remove some day.
1282if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001285 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001286 If a cross compiler is detected then cross compile mode will be used." >&2
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290fi
1291
1292ac_tool_prefix=
1293test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295test "$silent" = yes && exec 6>/dev/null
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001296
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001297
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001298ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299ac_ls_di=`ls -di .` &&
1300ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error "working directory cannot be determined"
1302test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error "pwd does not report name of working directory"
1304
1305
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001306# Find the source files, if location was not specified.
1307if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315$as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001333 srcdir=$ac_confdir
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001334 if test ! -r "$srcdir/$ac_unique_file"; then
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00001335 srcdir=..
1336 fi
1337else
1338 ac_srcdir_defaulted=no
1339fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001340if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1343fi
1344ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1347 pwd)`
1348# When building in place, set srcdir=.
1349if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351fi
1352# Remove unnecessary trailing slashes from srcdir.
1353# Double slashes in file names in object file debugging info
1354# mess up M-x gdb in Emacs.
1355case $srcdir in
1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357esac
1c6c55fc
AM
Alan Modra2010-11-02 00:22:10 +00001358case $srcdir in
1359 *" "*)
1360 as_fn_error "path to source, $srcdir, contains spaces"
1361 ;;
1362esac
49bba271
PB
Paolo Bonzini2008-01-31 10:39:43 +00001363ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1364
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001365for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370done
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001371
1372#
1373# Report the --help message.
1374#
1375if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379\`configure' configures this package to adapt to many kinds of systems.
1380
1381Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386Defaults for the options are specified in brackets.
1387
1388Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001399Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001401 [$ac_default_prefix]
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001403 [PREFIX]
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001404
1405By default, \`make install' will install all the files in
1406\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408for instance \`--prefix=\$HOME'.
1409
1410For better control, use the options below.
1411
1412Fine tuning of the installation directories:
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001432_ACEOF
1433
1434 cat <<\_ACEOF
1435
1436Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445_ACEOF
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001446fi
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00001447
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001448if test -n "$ac_init_help"; then
1449
1450 cat <<\_ACEOF
1451
1452Optional Features:
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001453 --disable-option-checking ignore unrecognized --enable/--with options
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1ea28f93 Nick Clifton2010-11-23 13:39:56 +00001456 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
f876bec8 Andreas Schwab2011-01-21 13:29:46 +00001457 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
3e9685e0
PB
Paolo Bonzini2010-12-10 12:09:34 +00001458 --disable-libquadmath do not build libquadmath directory
1459 --disable-libquadmath-support
1460 disable libquadmath support for Fortran
4bf72cd9
DD
DJ Delorie2007-07-11 19:12:27 +00001461 --enable-libada build libada directory
1462 --enable-libssp build libssp directory
df9f4176 Ralf Wildenhues2009-08-19 19:49:26 +00001463 --enable-build-with-cxx build with C++ compiler instead of C compiler
f876bec8
AS
Andreas Schwab2011-01-21 13:29:46 +00001464 --disable-ppl-version-check
1465 disable check for PPL version
c0d98ee7
PB
Paolo Bonzini2010-11-20 20:31:09 +00001466 --enable-cloog-backend[=BACKEND]
1467 set the CLooG BACKEND used to either isl, ppl or
1468 ppl-legacy (default)
0f514ac3
ILT
Ian Lance Taylor2010-11-19 22:06:26 +00001469 --disable-cloog-version-check
1470 disable check for CLooG version
e7756c92 Ian Lance Taylor2009-10-07 05:57:48 +00001471 --enable-lto enable link time optimization support
f876bec8
AS
Andreas Schwab2011-01-21 13:29:46 +00001472 --enable-stage1-languages[=all]
1473 choose additional languages to build during stage1.
1474 Mostly useful for compiler development
1475 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1476 Objective-C runtime
4bf72cd9
DD
DJ Delorie2007-07-11 19:12:27 +00001477 --enable-bootstrap enable bootstrapping [yes if native build]
1478 --enable-serial-[{host,target,build}-]configure
f876bec8
AS
Andreas Schwab2011-01-21 13:29:46 +00001479 force sequential configuration of sub-packages for
1480 the host, target or build machine, or all
1481 sub-packages
1482 --enable-maintainer-mode
1483 enable make rules and dependencies not useful (and
1484 sometimes confusing) to the casual installer
1485 --enable-stage1-checking[=all]
1486 choose additional checking for stage1 of the
1487 compiler
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001488 --enable-werror enable -Werror in bootstrap stage2 and later
1489
1490Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-build-libsubdir=DIR Directory where to find libraries for build system
f876bec8
AS
Andreas Schwab2011-01-21 13:29:46 +00001494 --with-mpc=PATH specify prefix directory for installed MPC package.
1495 Equivalent to --with-mpc-include=PATH/include plus
1496 --with-mpc-lib=PATH/lib
1497 --with-mpc-include=PATH specify directory for installed MPC include files
1498 --with-mpc-lib=PATH specify directory for the installed MPC library
4bf72cd9
DD
DJ Delorie2007-07-11 19:12:27 +00001499 --with-mpfr-dir=PATH this option has been REMOVED
1500 --with-mpfr=PATH specify prefix directory for installed MPFR package.
f876bec8
AS
Andreas Schwab2011-01-21 13:29:46 +00001501 Equivalent to --with-mpfr-include=PATH/include plus
1502 --with-mpfr-lib=PATH/lib
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001503 --with-mpfr-include=PATH
4bf72cd9
DD
DJ Delorie2007-07-11 19:12:27 +00001504 specify directory for installed MPFR include files
1505 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1506 --with-gmp-dir=PATH this option has been REMOVED
f876bec8
AS
Andreas Schwab2011-01-21 13:29:46 +00001507 --with-gmp=PATH specify prefix directory for the installed GMP
1508 package. Equivalent to
1509 --with-gmp-include=PATH/include plus
1510 --with-gmp-lib=PATH/lib
4bf72cd9
DD
DJ Delorie2007-07-11 19:12:27 +00001511 --with-gmp-include=PATH specify directory for installed GMP include files
1512 --with-gmp-lib=PATH specify directory for the installed GMP library
f876bec8
AS
Andreas Schwab2011-01-21 13:29:46 +00001513 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1514 linking with PPL
1515 --with-stage1-ldflags=FLAGS
1516 linker flags for stage1
1517 --with-stage1-libs=LIBS libraries for stage1
1518 --with-boot-libs=LIBS libraries for stage2 and later
1519 --with-boot-ldflags=FLAGS
1520 linker flags for stage2 and later
1521 --with-ppl=PATH specify prefix directory for the installed PPL
1522 package. Equivalent to
1523 --with-ppl-include=PATH/include plus
1524 --with-ppl-lib=PATH/lib
1525 --with-ppl-include=PATH specify directory for installed PPL include files
1526 --with-ppl-lib=PATH specify directory for the installed PPL library
0f514ac3
ILT
Ian Lance Taylor2010-11-19 22:06:26 +00001527 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1528 package. Equivalent to
1529 --with-cloog-include=PATH/include plus
1530 --with-cloog-lib=PATH/lib
1531 --with-cloog-include=PATH
1532 Specify directory for installed CLooG include files
1533 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1534 library
4bf72cd9 DJ Delorie2007-07-11 19:12:27 +00001535 --with-build-sysroot=SYSROOT
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001536 use sysroot as the system root during the build
8cdd51d0 Joseph Myers2007-08-18 15:19:10 +00001537 --with-debug-prefix-map='A=B C=D ...'
f876bec8
AS
Andreas Schwab2011-01-21 13:29:46 +00001538 map A to B, C to D ... in debug information
1539 --with-build-config='NAME NAME2...'
1540 use config/NAME.mk build configuration
4bf72cd9 DJ Delorie2007-07-11 19:12:27 +00001541 --with-build-time-tools=PATH
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001542 use given path to find target tools during the build
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001543
1544Some influential environment variables:
1545 CC C compiler command
1546 CFLAGS C compiler flags
1547 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1548 nonstandard directory <lib dir>
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001549 LIBS libraries to pass to the linker, e.g. -l<library>
1550 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1551 you have headers in a nonstandard directory <include dir>
d6813ef7
PB
Paolo Bonzini2007-02-13 16:23:20 +00001552 CXX C++ compiler command
1553 CXXFLAGS C++ compiler flags
34b1b2ab
RW
Ralf Wildenhues2010-10-02 14:54:05 +00001554 build_configargs
1555 additional configure arguments for build directories
1556 host_configargs
1557 additional configure arguments for host directories
1558 target_configargs
1559 additional configure arguments for target directories
6d51d892
AO
Alexandre Oliva2007-02-18 22:51:35 +00001560 AR AR for the host
1561 AS AS for the host
1562 DLLTOOL DLLTOOL for the host
1563 LD LD for the host
1564 LIPO LIPO for the host
1565 NM NM for the host
1566 RANLIB RANLIB for the host
1567 STRIP STRIP for the host
1568 WINDRES WINDRES for the host
67e5c78e Nick Clifton2007-07-09 09:16:05 +00001569 WINDMC WINDMC for the host
6d51d892
AO
Alexandre Oliva2007-02-18 22:51:35 +00001570 OBJCOPY OBJCOPY for the host
1571 OBJDUMP OBJDUMP for the host
1572 CC_FOR_TARGET
1573 CC for the target
1574 CXX_FOR_TARGET
1575 CXX for the target
1576 GCC_FOR_TARGET
1577 GCC for the target
1578 GCJ_FOR_TARGET
1579 GCJ for the target
1580 GFORTRAN_FOR_TARGET
1581 GFORTRAN for the target
0f514ac3
ILT
Ian Lance Taylor2010-11-19 22:06:26 +00001582 GOC_FOR_TARGET
1583 GOC for the target
6d51d892
AO
Alexandre Oliva2007-02-18 22:51:35 +00001584 AR_FOR_TARGET
1585 AR for the target
1586 AS_FOR_TARGET
1587 AS for the target
1588 DLLTOOL_FOR_TARGET
1589 DLLTOOL for the target
1590 LD_FOR_TARGET
1591 LD for the target
1592 LIPO_FOR_TARGET
1593 LIPO for the target
1594 NM_FOR_TARGET
1595 NM for the target
1596 OBJDUMP_FOR_TARGET
1597 OBJDUMP for the target
1598 RANLIB_FOR_TARGET
1599 RANLIB for the target
1600 STRIP_FOR_TARGET
1601 STRIP for the target
1602 WINDRES_FOR_TARGET
1603 WINDRES for the target
67e5c78e
NC
Nick Clifton2007-07-09 09:16:05 +00001604 WINDMC_FOR_TARGET
1605 WINDMC for the target
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001606
1607Use these variables to override the choices made by `configure' or to help
1608it to find libraries and programs with nonstandard names/locations.
1609
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001610Report bugs to the package provider.
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001611_ACEOF
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001612ac_status=$?
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001613fi
1614
1615if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 continue
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001621 ac_builddir=.
1622
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001623case "$ac_dir" in
1624.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625*)
1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 esac ;;
1633esac
1634ac_abs_top_builddir=$ac_pwd
1635ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636# for backward compatibility:
1637ac_top_builddir=$ac_top_build_prefix
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001638
1639case $srcdir in
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001640 .) # We are building in place.
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001641 ac_srcdir=.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001645 ac_srcdir=$srcdir$ac_dir_suffix;
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1648 *) # Relative name.
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001652esac
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001653ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure" --help=recursive
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001663 else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 fi || ac_status=$?
1666 cd "$ac_pwd" || { ac_status=$?; break; }
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001667 done
1668fi
1669
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001670test -n "$ac_init_help" && exit $ac_status
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001671if $ac_init_version; then
1672 cat <<\_ACEOF
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001673configure
1674generated by GNU Autoconf 2.64
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001675
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001676Copyright (C) 2009 Free Software Foundation, Inc.
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001677This configure script is free software; the Free Software Foundation
1678gives unlimited permission to copy, distribute and modify it.
1679_ACEOF
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001680 exit
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001681fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001682
1683## ------------------------ ##
1684## Autoconf initialization. ##
1685## ------------------------ ##
1686
1687# ac_fn_c_try_compile LINENO
1688# --------------------------
1689# Try to compile conftest.$ac_ext, and return whether this succeeded.
1690ac_fn_c_try_compile ()
1691{
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1695case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1713 ac_retval=0
1714else
1715 $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719fi
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 return $ac_retval
1722
1723} # ac_fn_c_try_compile
1724
1725# ac_fn_cxx_try_compile LINENO
1726# ----------------------------
1727# Try to compile conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_cxx_try_compile ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_cxx_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1751 ac_retval=0
1752else
1753 $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757fi
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 return $ac_retval
1760
1761} # ac_fn_cxx_try_compile
1762
1763# ac_fn_c_try_link LINENO
1764# -----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_link ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1771case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1783 fi
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 $as_test_x conftest$ac_exeext
1791 }; then :
1792 ac_retval=0
1793else
1794 $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1
1798fi
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805 return $ac_retval
1806
1807} # ac_fn_c_try_link
1808cat >config.log <<_ACEOF
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001809This file contains any messages produced by compilers while
1810running configure, to aid debugging if configure makes a mistake.
1811
1812It was created by $as_me, which was
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001813generated by GNU Autoconf 2.64. Invocation command line was
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001814
1815 $ $0 $@
1816
1817_ACEOF
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001818exec 5>>config.log
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001819{
1820cat <<_ASUNAME
1821## --------- ##
1822## Platform. ##
1823## --------- ##
1824
1825hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1826uname -m = `(uname -m) 2>/dev/null || echo unknown`
1827uname -r = `(uname -r) 2>/dev/null || echo unknown`
1828uname -s = `(uname -s) 2>/dev/null || echo unknown`
1829uname -v = `(uname -v) 2>/dev/null || echo unknown`
1830
1831/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1832/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1833
1834/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1835/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1836/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001837/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001838/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1839/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1840/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1841
1842_ASUNAME
1843
1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845for as_dir in $PATH
1846do
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001849 $as_echo "PATH: $as_dir"
1850 done
1851IFS=$as_save_IFS
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001852
1853} >&5
1854
1855cat >&5 <<_ACEOF
1856
1857
1858## ----------- ##
1859## Core tests. ##
1860## ----------- ##
1861
1862_ACEOF
1863
1864
1865# Keep a trace of the command line.
1866# Strip out --no-create and --no-recursion so they do not pile up.
1867# Strip out --silent because we don't want to record it for future runs.
1868# Also quote any args containing shell meta-characters.
1869# Make two passes to allow for proper duplicate-argument suppression.
1870ac_configure_args=
1871ac_configure_args0=
1872ac_configure_args1=
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001873ac_must_keep_next=false
1874for ac_pass in 1 2
1875do
1876 for ac_arg
1877 do
1878 case $ac_arg in
1879 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1881 | -silent | --silent | --silen | --sile | --sil)
1882 continue ;;
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001883 *\'*)
1884 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001885 esac
1886 case $ac_pass in
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001887 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001888 2)
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001889 as_fn_append ac_configure_args1 " '$ac_arg'"
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001890 if test $ac_must_keep_next = true; then
1891 ac_must_keep_next=false # Got value, back to normal.
1892 else
1893 case $ac_arg in
1894 *=* | --config-cache | -C | -disable-* | --disable-* \
1895 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1896 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1897 | -with-* | --with-* | -without-* | --without-* | --x)
1898 case "$ac_configure_args0 " in
1899 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1900 esac
1901 ;;
1902 -* ) ac_must_keep_next=true ;;
1903 esac
1904 fi
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001905 as_fn_append ac_configure_args " '$ac_arg'"
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001906 ;;
1907 esac
1908 done
1909done
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001910{ ac_configure_args0=; unset ac_configure_args0;}
1911{ ac_configure_args1=; unset ac_configure_args1;}
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001912
1913# When interrupted or exit'd, cleanup temporary files, and complete
1914# config.log. We remove comments because anyway the quotes in there
1915# would cause problems or look ugly.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001916# WARNING: Use '\'' to represent an apostrophe within the trap.
1917# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001918trap 'exit_status=$?
1919 # Save into config.log some information that might help in debugging.
1920 {
1921 echo
1922
1923 cat <<\_ASBOX
1924## ---------------- ##
1925## Cache variables. ##
1926## ---------------- ##
1927_ASBOX
1928 echo
1929 # The following way of writing the cache mishandles newlines in values,
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001930(
1931 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1932 eval ac_val=\$$ac_var
1933 case $ac_val in #(
1934 *${as_nl}*)
1935 case $ac_var in #(
1936 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1937$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1938 esac
1939 case $ac_var in #(
1940 _ | IFS | as_nl) ;; #(
1941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1942 *) { eval $ac_var=; unset $ac_var;} ;;
1943 esac ;;
1944 esac
1945 done
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001946 (set) 2>&1 |
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001947 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1948 *${as_nl}ac_space=\ *)
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001949 sed -n \
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001950 "s/'\''/'\''\\\\'\'''\''/g;
1951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1952 ;; #(
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001953 *)
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00001955 ;;
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001956 esac |
1957 sort
1958)
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001959 echo
1960
1961 cat <<\_ASBOX
1962## ----------------- ##
1963## Output variables. ##
1964## ----------------- ##
1965_ASBOX
1966 echo
1967 for ac_var in $ac_subst_vars
1968 do
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001969 eval ac_val=\$$ac_var
1970 case $ac_val in
1971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 esac
1973 $as_echo "$ac_var='\''$ac_val'\''"
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001974 done | sort
1975 echo
1976
1977 if test -n "$ac_subst_files"; then
1978 cat <<\_ASBOX
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001979## ------------------- ##
1980## File substitutions. ##
1981## ------------------- ##
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001982_ASBOX
1983 echo
1984 for ac_var in $ac_subst_files
1985 do
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001986 eval ac_val=\$$ac_var
1987 case $ac_val in
1988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989 esac
1990 $as_echo "$ac_var='\''$ac_val'\''"
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00001991 done | sort
1992 echo
1993 fi
1994
1995 if test -s confdefs.h; then
1996 cat <<\_ASBOX
1997## ----------- ##
1998## confdefs.h. ##
1999## ----------- ##
2000_ASBOX
2001 echo
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002002 cat confdefs.h
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002003 echo
2004 fi
2005 test "$ac_signal" != 0 &&
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002006 $as_echo "$as_me: caught signal $ac_signal"
2007 $as_echo "$as_me: exit $exit_status"
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002008 } >&5
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002009 rm -f core *.core core.conftest.* &&
2010 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002011 exit $exit_status
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002012' 0
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002013for ac_signal in 1 2 13 15; do
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002014 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002015done
2016ac_signal=0
2017
2018# confdefs.h avoids OS command line length limits that DEFS can exceed.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002019rm -f -r conftest* confdefs.h
2020
2021$as_echo "/* confdefs.h */" > confdefs.h
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002022
2023# Predefined preprocessor variables.
2024
2025cat >>confdefs.h <<_ACEOF
2026#define PACKAGE_NAME "$PACKAGE_NAME"
2027_ACEOF
2028
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002029cat >>confdefs.h <<_ACEOF
2030#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2031_ACEOF
2032
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_VERSION "$PACKAGE_VERSION"
2035_ACEOF
2036
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002037cat >>confdefs.h <<_ACEOF
2038#define PACKAGE_STRING "$PACKAGE_STRING"
2039_ACEOF
2040
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002041cat >>confdefs.h <<_ACEOF
2042#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2043_ACEOF
2044
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002045cat >>confdefs.h <<_ACEOF
2046#define PACKAGE_URL "$PACKAGE_URL"
2047_ACEOF
2048
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002049
2050# Let the site file select an alternate cache file if it wants to.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002051# Prefer an explicitly selected file to automatically selected ones.
2052ac_site_file1=NONE
2053ac_site_file2=NONE
2054if test -n "$CONFIG_SITE"; then
2055 ac_site_file1=$CONFIG_SITE
2056elif test "x$prefix" != xNONE; then
2057 ac_site_file1=$prefix/share/config.site
2058 ac_site_file2=$prefix/etc/config.site
2059else
2060 ac_site_file1=$ac_default_prefix/share/config.site
2061 ac_site_file2=$ac_default_prefix/etc/config.site
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002062fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002063for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2064do
2065 test "x$ac_site_file" = xNONE && continue
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002066 if test -r "$ac_site_file"; then
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002067 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2068$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002069 sed 's/^/| /' "$ac_site_file" >&5
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002070 . "$ac_site_file"
2071 fi
2072done
2073
2074if test -r "$cache_file"; then
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002075 # Some versions of bash will fail to source /dev/null (special
2076 # files actually), so we avoid doing that.
2077 if test -f "$cache_file"; then
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002078 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2079$as_echo "$as_me: loading cache $cache_file" >&6;}
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002080 case $cache_file in
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002081 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082 *) . "./$cache_file";;
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002083 esac
2084 fi
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002085else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2087$as_echo "$as_me: creating cache $cache_file" >&6;}
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002088 >$cache_file
2089fi
2090
2091# Check that the precious variables saved in the cache have kept the same
2092# value.
2093ac_cache_corrupted=false
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002094for ac_var in $ac_precious_vars; do
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002095 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2096 eval ac_new_set=\$ac_env_${ac_var}_set
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002097 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2098 eval ac_new_val=\$ac_env_${ac_var}_value
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002099 case $ac_old_set,$ac_new_set in
2100 set,)
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2102$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002103 ac_cache_corrupted=: ;;
2104 ,set)
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2106$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002107 ac_cache_corrupted=: ;;
2108 ,);;
2109 *)
2110 if test "x$ac_old_val" != "x$ac_new_val"; then
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002111 # differences in whitespace do not lead to failure.
2112 ac_old_val_w=`echo x $ac_old_val`
2113 ac_new_val_w=`echo x $ac_new_val`
2114 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2116$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2117 ac_cache_corrupted=:
2118 else
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2120$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2121 eval $ac_var=\$ac_old_val
2122 fi
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2124$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2126$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002127 fi;;
2128 esac
2129 # Pass precious variables to config.status.
2130 if test "$ac_new_set" = set; then
2131 case $ac_new_val in
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002132 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002133 *) ac_arg=$ac_var=$ac_new_val ;;
2134 esac
2135 case " $ac_configure_args " in
2136 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002137 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002138 esac
2139 fi
2140done
2141if $ac_cache_corrupted; then
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2145$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2146 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002147fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002148## -------------------- ##
2149## Main body of script. ##
2150## -------------------- ##
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002151
2152ac_ext=c
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002153ac_cpp='$CPP $CPPFLAGS'
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156ac_compiler_gnu=$ac_cv_c_compiler_gnu
2157
2158
2159
2160
2161
2162
2163
2164
2165
c6f5e520
RW
Ralf Wildenhues2008-06-16 21:38:13 +00002166progname=$0
2167# if PWD already has a value, it is probably wrong.
2168if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2169
2170# Export original configure arguments for use by sub-configures.
2171# Quote arguments with shell meta charatcers.
2172TOPLEVEL_CONFIGURE_ARGUMENTS=
2173set -- "$progname" "$@"
2174for ac_arg
2175do
2176 case "$ac_arg" in
2177 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2178 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2179 # if the argument is of the form -foo=baz, quote the baz part only
2180 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2181 *) ;;
2182 esac
2183 # Add the quoted argument to the list.
2184 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2185done
2186if test "$silent" = yes; then
2187 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2188fi
2189# Remove the initial space we just introduced and, as these will be
2190# expanded by make, quote '$'.
2191TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2192
2193
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002194# Find the build, host, and target systems.
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002195ac_aux_dir=
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002196for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2197 for ac_t in install-sh install.sh shtool; do
2198 if test -f "$ac_dir/$ac_t"; then
2199 ac_aux_dir=$ac_dir
2200 ac_install_sh="$ac_aux_dir/$ac_t -c"
2201 break 2
2202 fi
2203 done
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002204done
2205if test -z "$ac_aux_dir"; then
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002206 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002207fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002208
2209# These three variables are undocumented and unsupported,
2210# and are intended to be withdrawn in a future Autoconf release.
2211# They can cause serious problems if a builder's source tree is in a directory
2212# whose full name contains unusual characters.
2213ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2214ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2215ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2216
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002217
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002218# Make sure we can run config.sub.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002219$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2220 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2221
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2223$as_echo_n "checking build system type... " >&6; }
2224if test "${ac_cv_build+set}" = set; then :
2225 $as_echo_n "(cached) " >&6
2226else
2227 ac_build_alias=$build_alias
2228test "x$ac_build_alias" = x &&
2229 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2230test "x$ac_build_alias" = x &&
2231 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2232ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2233 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2234
2235fi
2236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2237$as_echo "$ac_cv_build" >&6; }
2238case $ac_cv_build in
2239*-*-*) ;;
2240*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2241esac
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002242build=$ac_cv_build
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002243ac_save_IFS=$IFS; IFS='-'
2244set x $ac_cv_build
2245shift
2246build_cpu=$1
2247build_vendor=$2
2248shift; shift
2249# Remember, the first character of IFS is used to create $*,
2250# except with old shells:
2251build_os=$*
2252IFS=$ac_save_IFS
2253case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002254
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002255
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002256 case ${build_alias} in
2257 "") build_noncanonical=${build} ;;
2258 *) build_noncanonical=${build_alias} ;;
9f1f8ab3
CM
Catherine Moore2005-10-03 15:35:57 +00002259esac
2260
2261
9f1f8ab3 Catherine Moore2005-10-03 15:35:57 +00002262
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002263 case ${host_alias} in
2264 "") host_noncanonical=${build_noncanonical} ;;
2265 *) host_noncanonical=${host_alias} ;;
9f1f8ab3
CM
Catherine Moore2005-10-03 15:35:57 +00002266esac
2267
9f1f8ab3 Catherine Moore2005-10-03 15:35:57 +00002268
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002269
2270 case ${target_alias} in
2271 "") target_noncanonical=${host_noncanonical} ;;
2272 *) target_noncanonical=${target_alias} ;;
9f1f8ab3
CM
Catherine Moore2005-10-03 15:35:57 +00002273esac
2274
9f1f8ab3 Catherine Moore2005-10-03 15:35:57 +00002275
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002276
2277
2278test "$host_noncanonical" = "$target_noncanonical" &&
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002279 test "$program_prefix$program_suffix$program_transform_name" = \
2280 NONENONEs,x,x, &&
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002281 program_transform_name=s,y,y,
9f1f8ab3 Catherine Moore2005-10-03 15:35:57 +00002282
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2284$as_echo_n "checking host system type... " >&6; }
2285if test "${ac_cv_host+set}" = set; then :
2286 $as_echo_n "(cached) " >&6
9f1f8ab3 Catherine Moore2005-10-03 15:35:57 +00002287else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002288 if test "x$host_alias" = x; then
2289 ac_cv_host=$ac_cv_build
2290else
2291 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2292 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2293fi
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002294
2295fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2297$as_echo "$ac_cv_host" >&6; }
2298case $ac_cv_host in
2299*-*-*) ;;
2300*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2301esac
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002302host=$ac_cv_host
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002303ac_save_IFS=$IFS; IFS='-'
2304set x $ac_cv_host
2305shift
2306host_cpu=$1
2307host_vendor=$2
2308shift; shift
2309# Remember, the first character of IFS is used to create $*,
2310# except with old shells:
2311host_os=$*
2312IFS=$ac_save_IFS
2313case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002314
2315
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2317$as_echo_n "checking target system type... " >&6; }
2318if test "${ac_cv_target+set}" = set; then :
2319 $as_echo_n "(cached) " >&6
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002320else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002321 if test "x$target_alias" = x; then
2322 ac_cv_target=$ac_cv_host
2323else
2324 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2325 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2326fi
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002327
9f1f8ab3 Catherine Moore2005-10-03 15:35:57 +00002328fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2330$as_echo "$ac_cv_target" >&6; }
2331case $ac_cv_target in
2332*-*-*) ;;
2333*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2334esac
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002335target=$ac_cv_target
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002336ac_save_IFS=$IFS; IFS='-'
2337set x $ac_cv_target
2338shift
2339target_cpu=$1
2340target_vendor=$2
2341shift; shift
2342# Remember, the first character of IFS is used to create $*,
2343# except with old shells:
2344target_os=$*
2345IFS=$ac_save_IFS
2346case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002347
2348
2349# The aliases save the names the user supplied, while $host etc.
2350# will get canonicalized.
2351test -n "$target_alias" &&
2352 test "$program_prefix$program_suffix$program_transform_name" = \
2353 NONENONEs,x,x, &&
2354 program_prefix=${target_alias}-
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002355
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002356test "$program_prefix" != NONE &&
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002357 program_transform_name="s&^&$program_prefix&;$program_transform_name"
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002358# Use a double $ so make ignores it.
2359test "$program_suffix" != NONE &&
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002360 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2361# Double any \ or $.
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002362# By default was `s,x,x', remove it if useless.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002363ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2364program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
9f1f8ab3 Catherine Moore2005-10-03 15:35:57 +00002365
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002366
2367
a3d49e06
NN
Nathanael Nerode2003-07-13 20:49:42 +00002368# Get 'install' or 'install-sh' and its variants.
2369# Find a good install program. We prefer a C program (faster),
2370# so one script is as good as another. But avoid the broken or
2371# incompatible versions:
2372# SysV /etc/install, /usr/sbin/install
2373# SunOS /usr/etc/install
2374# IRIX /sbin/install
2375# AIX /bin/install
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002376# AmigaOS /C/install, which installs bootblocks on floppy discs
a3d49e06
NN
Nathanael Nerode2003-07-13 20:49:42 +00002377# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2378# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2379# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002380# OS/2's system install, which has a completely different semantic
a3d49e06 Nathanael Nerode2003-07-13 20:49:42 +00002381# ./install, which can be erroneously created by make from ./install.sh.
88d79584 Ralf Wildenhues2008-03-17 22:17:33 +00002382# Reject install programs that cannot install multiple files.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2384$as_echo_n "checking for a BSD-compatible install... " >&6; }
a3d49e06 Nathanael Nerode2003-07-13 20:49:42 +00002385if test -z "$INSTALL"; then
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002386if test "${ac_cv_path_install+set}" = set; then :
2387 $as_echo_n "(cached) " >&6
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002388else
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390for as_dir in $PATH
2391do
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002394 # Account for people who put trailing slashes in PATH elements.
2395case $as_dir/ in #((
2396 ./ | .// | /[cC]/* | \
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002398 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002399 /usr/ucb/* ) ;;
2400 *)
2401 # OSF1 and SCO ODT 3.0 have their own names for install.
2402 # Don't use installbsd from OSF since it installs stuff as root
2403 # by default.
2404 for ac_prog in ginstall scoinst install; do
2405 for ac_exec_ext in '' $ac_executable_extensions; do
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002406 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
a3d49e06 Nathanael Nerode2003-07-13 20:49:42 +00002407 if test $ac_prog = install &&
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
a3d49e06
NN
Nathanael Nerode2003-07-13 20:49:42 +00002409 # AIX install. It has an incompatible calling convention.
2410 :
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002411 elif test $ac_prog = install &&
2412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2413 # program-specific install script used by HP pwplus--don't use.
2414 :
a3d49e06 Nathanael Nerode2003-07-13 20:49:42 +00002415 else
88d79584
RW
Ralf Wildenhues2008-03-17 22:17:33 +00002416 rm -rf conftest.one conftest.two conftest.dir
2417 echo one > conftest.one
2418 echo two > conftest.two
2419 mkdir conftest.dir
2420 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2421 test -s conftest.one && test -s conftest.two &&
2422 test -s conftest.dir/conftest.one &&
2423 test -s conftest.dir/conftest.two
2424 then
2425 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2426 break 3
2427 fi
a3d49e06
NN
Nathanael Nerode2003-07-13 20:49:42 +00002428 fi
2429 fi
2430 done
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002431 done
2432 ;;
2433esac
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002434
2435 done
2436IFS=$as_save_IFS
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002437
88d79584 Ralf Wildenhues2008-03-17 22:17:33 +00002438rm -rf conftest.one conftest.two conftest.dir
a3d49e06
NN
Nathanael Nerode2003-07-13 20:49:42 +00002439
2440fi
2441 if test "${ac_cv_path_install+set}" = set; then
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002442 INSTALL=$ac_cv_path_install
a3d49e06 Nathanael Nerode2003-07-13 20:49:42 +00002443 else
88d79584
RW
Ralf Wildenhues2008-03-17 22:17:33 +00002444 # As a last resort, use the slow shell script. Don't cache a
2445 # value for INSTALL within a source directory, because that will
a3d49e06 Nathanael Nerode2003-07-13 20:49:42 +00002446 # break other packages using the cache if that directory is
88d79584 Ralf Wildenhues2008-03-17 22:17:33 +00002447 # removed, or if the value is a relative name.
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002448 INSTALL=$ac_install_sh
a3d49e06
NN
Nathanael Nerode2003-07-13 20:49:42 +00002449 fi
2450fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2452$as_echo "$INSTALL" >&6; }
a3d49e06
NN
Nathanael Nerode2003-07-13 20:49:42 +00002453
2454# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2455# It thinks the first close brace ends the variable substitution.
2456test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2457
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002458test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a3d49e06
NN
Nathanael Nerode2003-07-13 20:49:42 +00002459
2460test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2461
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2463$as_echo_n "checking whether ln works... " >&6; }
2464if test "${acx_cv_prog_LN+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
41b12876
PB
Paolo Bonzini2004-06-09 08:32:35 +00002466else
2467 rm -f conftestdata_t
2468echo >conftestdata_f
2469if ln conftestdata_f conftestdata_t 2>/dev/null
2470then
2471 acx_cv_prog_LN=ln
2472else
2473 acx_cv_prog_LN=no
2474fi
2475rm -f conftestdata_f conftestdata_t
2476
2477fi
2478if test $acx_cv_prog_LN = no; then
2479 LN="cp"
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2481$as_echo "no, using $LN" >&6; }
41b12876
PB
Paolo Bonzini2004-06-09 08:32:35 +00002482else
2483 LN="$acx_cv_prog_LN"
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2485$as_echo "yes" >&6; }
41b12876
PB
Paolo Bonzini2004-06-09 08:32:35 +00002486fi
2487
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2489$as_echo_n "checking whether ln -s works... " >&6; }
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002490LN_S=$as_ln_s
2491if test "$LN_S" = "ln -s"; then
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493$as_echo "yes" >&6; }
9f1f8ab3 Catherine Moore2005-10-03 15:35:57 +00002494else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2496$as_echo "no, using $LN_S" >&6; }
c898fe15
PB
Paolo Bonzini2004-05-24 11:08:48 +00002497fi
2498
bd7ec9f4
PB
Paolo Bonzini2009-09-02 07:05:02 +00002499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2500$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2501if test "${ac_cv_path_SED+set}" = set; then :
2502 $as_echo_n "(cached) " >&6
2503else
2504 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2505 for ac_i in 1 2 3 4 5 6 7; do
2506 ac_script="$ac_script$as_nl$ac_script"
2507 done
2508 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2509 { ac_script=; unset ac_script;}
2510 if test -z "$SED"; then
2511 ac_path_SED_found=false
2512 # Loop through the user's path and test for each of PROGNAME-LIST
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_prog in sed gsed; do
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2521 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2522# Check for GNU ac_path_SED and select it if it is found.
2523 # Check for GNU $ac_path_SED
2524case `"$ac_path_SED" --version 2>&1` in
2525*GNU*)
2526 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2527*)
2528 ac_count=0
2529 $as_echo_n 0123456789 >"conftest.in"
2530 while :
2531 do
2532 cat "conftest.in" "conftest.in" >"conftest.tmp"
2533 mv "conftest.tmp" "conftest.in"
2534 cp "conftest.in" "conftest.nl"
2535 $as_echo '' >> "conftest.nl"
2536 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2538 as_fn_arith $ac_count + 1 && ac_count=$as_val
2539 if test $ac_count -gt ${ac_path_SED_max-0}; then
2540 # Best one so far, save it but keep looking for a better one
2541 ac_cv_path_SED="$ac_path_SED"
2542 ac_path_SED_max=$ac_count
2543 fi
2544 # 10*(2^10) chars as input seems more than enough
2545 test $ac_count -gt 10 && break
2546 done
2547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2548esac
2549
2550 $ac_path_SED_found && break 3
2551 done
2552 done
2553 done
2554IFS=$as_save_IFS
2555 if test -z "$ac_cv_path_SED"; then
2556 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2557 fi
2558else
2559 ac_cv_path_SED=$SED
2560fi
2561
2562fi
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2564$as_echo "$ac_cv_path_SED" >&6; }
2565 SED="$ac_cv_path_SED"
2566 rm -f conftest.sed
2567
2568for ac_prog in gawk mawk nawk awk
2569do
2570 # Extract the first word of "$ac_prog", so it can be a program name with args.
2571set dummy $ac_prog; ac_word=$2
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573$as_echo_n "checking for $ac_word... " >&6; }
2574if test "${ac_cv_prog_AWK+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576else
2577 if test -n "$AWK"; then
2578 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2579else
2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_AWK="$ac_prog"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2590 fi
2591done
2592 done
2593IFS=$as_save_IFS
2594
2595fi
2596fi
2597AWK=$ac_cv_prog_AWK
2598if test -n "$AWK"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2600$as_echo "$AWK" >&6; }
2601else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603$as_echo "no" >&6; }
2604fi
2605
2606
2607 test -n "$AWK" && break
2608done
2609
a3d49e06 Nathanael Nerode2003-07-13 20:49:42 +00002610
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002611### we might need to use some other shell than /bin/sh for running subshells
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00002612### If we are on Windows, search for the shell. This will permit people
2613### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2614### without also having to set CONFIG_SHELL. This code will work when
2615### using bash, which sets OSTYPE.
2616case "${OSTYPE}" in
2617*win32*)
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002618 if test x${CONFIG_SHELL} = x ; then
2619 if test ! -f /bin/sh ; then
2620 if test x${SHELL} != x && test -f ${SHELL} ; then
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00002621 CONFIG_SHELL=${SHELL}
2622 export CONFIG_SHELL
2623 else
2624 for prog in sh sh.exe bash bash.exe; do
2625 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2626 for dir in $PATH; do
2627 test -z "$dir" && dir=.
2628 if test -f $dir/$prog; then
2629 CONFIG_SHELL=$dir/$prog
2630 export CONFIG_SHELL
2631 break
2632 fi
2633 done
2634 IFS="$save_ifs"
2635 test -n "${CONFIG_SHELL}" && break
2636 done
2637 fi
2638 fi
2639 fi
2640 ;;
2641esac
2642
2643config_shell=${CONFIG_SHELL-/bin/sh}
2644
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002645moveifchange=${srcdir}/move-if-change
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002646
11665738
DJ
Daniel Jacobowitz2004-10-23 20:30:02 +00002647srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2648
2649# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2650# a relative path.
2651if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2652 INSTALL="${srcpwd}/install-sh -c"
2653fi
2654
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002655# Set srcdir to "." if that's what it is.
2656# This is important for multilib support.
2657pwd=`${PWDCMD-pwd}`
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002658if test "${pwd}" = "${srcpwd}" ; then
2659 srcdir=.
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00002660fi
2661
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002662topsrcdir=$srcpwd
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002663
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002664extra_host_args=
4bee1f8b Richard Sandiford2004-12-02 11:09:36 +00002665
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002666### To add a new directory to the tree, first choose whether it is a target
2667### or a host dependent tool. Then put it into the appropriate list
2668### (library or tools, host or target), doing a dependency sort.
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002669
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002670# Subdirs will be configured in the order listed in build_configdirs,
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002671# configdirs, or target_configdirs; see the serialization section below.
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002672
b4857d46
DJ
Daniel Jacobowitz2007-02-09 15:15:38 +00002673# Dependency sorting is only needed when *configuration* must be done in
2674# a particular order. In all cases a dependency should be specified in
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002675# the Makefile, whether or not it's implicitly specified here.
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002676
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002677# Double entries in build_configdirs, configdirs, or target_configdirs may
2678# cause circular dependencies and break everything horribly.
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002679
94ae5205
PB
Paolo Bonzini2004-07-02 07:56:07 +00002680# these library is used by various programs built for the build
2681# environment
2682#
2683build_libs="build-libiberty"
2684
2685# these tools are built for the build environment
abf146c2 Paolo Bonzini2004-08-31 10:16:19 +00002686build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
94ae5205 Paolo Bonzini2004-07-02 07:56:07 +00002687
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002688# these libraries are used by various programs built for the host environment
2689#
8a9ff3b4 Alexandre Oliva2009-11-16 18:42:35 +00002690host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002691
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002692# these tools are built for the host environment
2693# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2694# know that we are building the simulator.
2695# binutils, gas and ld appear in that order because it makes sense to run
2696# "make check" in that particular order.
e2a383fc Nick Clifton2010-04-27 14:24:35 +00002697# If --enable-gold is used, "gold" may replace "ld".
0f4b6f3d Doug Evans2009-06-26 17:19:07 +00002698host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002699
2700# libgcj represents the runtime libraries only used by gcj.
2701libgcj="target-libffi \
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002702 target-zlib \
2703 target-qthreads \
2704 target-libjava"
2705
2706# these libraries are built for the target environment, and are built after
2707# the host libraries and the host tools (which may be a cross compiler)
2708#
64d2e903
DJ
Daniel Jacobowitz2007-02-13 21:33:14 +00002709target_libraries="target-libgcc \
2710 target-libiberty \
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002711 target-libgloss \
2712 target-newlib \
3231c155 DJ Delorie2007-09-20 21:56:16 +00002713 target-libgomp \
24b73019 Nathanael Nerode2003-03-04 07:48:06 +00002714 target-libstdc++-v3 \
c324ef04 DJ Delorie2004-05-13 18:14:28 +00002715 target-libmudflap \
d495763b DJ Delorie2005-07-11 16:48:34 +00002716 target-libssp \
0f514ac3 Ian Lance Taylor2010-11-19 22:06:26 +00002717 target-libquadmath \
c324ef04 DJ Delorie2004-05-13 18:14:28 +00002718 target-libgfortran \
b61051ca Carlos O'Donell2006-06-07 22:33:16 +00002719 target-boehm-gc \
702fd3c2 Nathanael Nerode2003-01-19 23:45:39 +00002720 ${libgcj} \
c154dc63 DJ Delorie2004-02-10 17:57:02 +00002721 target-libobjc \
0f514ac3
ILT
Ian Lance Taylor2010-11-19 22:06:26 +00002722 target-libada \
2723 target-libgo"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002724
84d12c2e
NN
Nathanael Nerode2003-06-26 20:19:41 +00002725# these tools are built using the target libraries, and are intended to
2726# run only in the target environment
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002727#
84d12c2e Nathanael Nerode2003-06-26 20:19:41 +00002728# note: any program that *uses* libraries that are in the "target_libraries"
d2eb1969 Joseph Myers2011-03-25 13:08:19 +00002729# list belongs in this list.
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002730#
09fa9903 Joseph Myers2011-03-25 11:36:41 +00002731target_tools="target-examples target-gperf target-rda"
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002732
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002733################################################################################
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002734
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002735## All tools belong in one of the four categories, and are assigned above
2736## We assign ${configdirs} this way to remove all embedded newlines. This
2737## is important because configure will choke if they ever get through.
2738## ${configdirs} is directories we build using the host tools.
2739## ${target_configdirs} is directories we build using the target tools.
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002740configdirs=`echo ${host_libs} ${host_tools}`
84d12c2e Nathanael Nerode2003-06-26 20:19:41 +00002741target_configdirs=`echo ${target_libraries} ${target_tools}`
abf146c2 Paolo Bonzini2004-08-31 10:16:19 +00002742build_configdirs=`echo ${build_libs} ${build_tools}`
74770921 Nathanael Nerode2003-05-18 15:49:06 +00002743
49bba271
PB
Paolo Bonzini2008-01-31 10:39:43 +00002744
2745
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002746################################################################################
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002747
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002748srcname="gnu development package"
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002749
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002750# This gets set non-empty for some net releases of packages.
2751appdirs=""
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002752
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002753# Define is_cross_compiler to save on calls to 'test'.
2754is_cross_compiler=
2755if test x"${host}" = x"${target}" ; then
2756 is_cross_compiler=no
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002757else
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002758 is_cross_compiler=yes
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002759fi
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002760
760927f9 Nathanael Nerode2003-07-28 03:27:46 +00002761# Find the build and target subdir names.
74770921 Nathanael Nerode2003-05-18 15:49:06 +00002762
adfae11a
DJ
Daniel Jacobowitz2006-07-23 03:47:43 +00002763# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2764# have matching libraries, they should use host libraries: Makefile.tpl
2765# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2766# However, they still use the build modules, because the corresponding
2767# host modules (e.g. bison) are only built for the host when bootstrap
2768# finishes. So:
2769# - build_subdir is where we find build modules, and never changes.
2770# - build_libsubdir is where we find build libraries, and can be overridden.
2771
2772# Prefix 'build-' so this never conflicts with target_subdir.
74770921 Nathanael Nerode2003-05-18 15:49:06 +00002773build_subdir="build-${build_noncanonical}"
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002774
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002775# Check whether --with-build-libsubdir was given.
2776if test "${with_build_libsubdir+set}" = set; then :
2777 withval=$with_build_libsubdir; build_libsubdir="$withval"
adfae11a
DJ
Daniel Jacobowitz2006-07-23 03:47:43 +00002778else
2779 build_libsubdir="$build_subdir"
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002780fi
2781
65cdce55
PB
Paolo Bonzini2005-02-28 14:07:03 +00002782# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2783if ( test $srcdir = . && test -d gcc ) \
2784 || test -d $srcdir/../host-${host_noncanonical}; then
2785 host_subdir="host-${host_noncanonical}"
2786else
2787 host_subdir=.
2788fi
74770921
NN
Nathanael Nerode2003-05-18 15:49:06 +00002789# No prefix.
2790target_subdir=${target_noncanonical}
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002791
04c1587f
RW
Ralf Wildenhues2009-09-22 18:00:40 +00002792# Be sure to cover against remnants of an in-tree build.
2793if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2794 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2795Use a pristine source tree when building in a separate tree" "$LINENO" 5
2796fi
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002797
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002798# Skipdirs are removed silently.
2799skipdirs=
2800# Noconfigdirs are removed loudly.
2801noconfigdirs=""
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002802
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002803use_gnu_ld=
2804# Make sure we don't let GNU ld be added if we didn't want it.
2805if test x$with_gnu_ld = xno ; then
2806 use_gnu_ld=no
ba69a653 Ian Lance Taylor2008-03-21 15:42:41 +00002807 noconfigdirs="$noconfigdirs ld gold"
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00002808fi
2809
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002810use_gnu_as=
2811# Make sure we don't let GNU as be added if we didn't want it.
2812if test x$with_gnu_as = xno ; then
2813 use_gnu_as=no
2814 noconfigdirs="$noconfigdirs gas"
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00002815fi
2816
e7756c92
ILT
Ian Lance Taylor2009-10-07 05:57:48 +00002817use_included_zlib=
2818# Make sure we don't let ZLIB be added if we didn't want it.
2819if test x$with_system_zlib = xyes ; then
2820 use_included_zlib=no
2821 noconfigdirs="$noconfigdirs zlib"
2822fi
2823
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002824# some tools are so dependent upon X11 that if we're not building with X,
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002825# it's not even worth trying to configure, much less build, that tool.
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002826
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002827case ${with_x} in
2828 yes | "") ;; # the default value for this tree is that X11 is available
2829 no)
9982725a Nathanael Nerode2004-08-12 22:59:53 +00002830 skipdirs="${skipdirs} tk itcl libgui"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002831 # We won't be able to build gdbtk without X.
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002832 enable_gdbtk=no
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002833 ;;
2834 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2835esac
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002836
d2eb1969 Joseph Myers2011-03-25 13:08:19 +00002837# Some are only suitable for cross toolchains.
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002838# Remove these if host=target.
2839cross_only="target-libgloss target-newlib target-opcodes"
2840
2841case $is_cross_compiler in
2842 no) skipdirs="${skipdirs} ${cross_only}" ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002843esac
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002844
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002845# If both --with-headers and --with-libs are specified, default to
2846# --without-newlib.
f389016e
RS
Richard Sandiford2004-09-29 11:43:26 +00002847if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2848 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002849 if test x"${with_newlib}" = x ; then
2850 with_newlib=no
2851 fi
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00002852fi
2853
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002854# Recognize --with-newlib/--without-newlib.
2855case ${with_newlib} in
2856 no) skipdirs="${skipdirs} target-newlib" ;;
2857 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2858esac
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002859
1ea28f93
NC
Nick Clifton2010-11-23 13:39:56 +00002860# Handle --enable-gold, --enable-ld.
2861# --disable-gold [--enable-ld]
2862# Build only ld. Default option.
e1cffffd
L
H.J. Lu2010-11-23 18:10:12 +00002863# --enable-gold [--enable-ld]
2864# Build both gold and ld. Install gold as "ld.gold", install ld
2865# as "ld.bfd" and "ld".
2866# --enable-gold=default [--enable-ld]
1ea28f93
NC
Nick Clifton2010-11-23 13:39:56 +00002867# Build both gold and ld. Install gold as "ld.gold" and "ld",
2868# install ld as "ld.bfd".
2869# --enable-gold[=default] --disable-ld
2870# Build only gold, which is then installed as both "ld.gold" and "ld".
2871# --enable-gold --enable-ld=default
e1cffffd
L
H.J. Lu2010-11-23 18:10:12 +00002872# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2873# and ld.bfd).
1ea28f93
NC
Nick Clifton2010-11-23 13:39:56 +00002874# In other words, ld is default
2875# --enable-gold=default --enable-ld=default
2876# Error.
2877
2878default_ld=
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002879# Check whether --enable-gold was given.
2880if test "${enable_gold+set}" = set; then :
2881 enableval=$enable_gold; ENABLE_GOLD=$enableval
ba69a653
ILT
Ian Lance Taylor2008-03-21 15:42:41 +00002882else
2883 ENABLE_GOLD=no
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002884fi
2885
1ea28f93
NC
Nick Clifton2010-11-23 13:39:56 +00002886case "${ENABLE_GOLD}" in
2887 yes|default)
e2a383fc
NC
Nick Clifton2010-04-27 14:24:35 +00002888 # Check for ELF target.
2889 is_elf=no
2890 case "${target}" in
2891 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2892 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
9f9a0b1a
NC
Nick Clifton2011-03-28 11:18:20 +00002893 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2894 | *-*-solaris2* | *-*-nto*)
e2a383fc
NC
Nick Clifton2010-04-27 14:24:35 +00002895 case "${target}" in
2896 *-*-linux*aout* | *-*-linux*oldld*)
2897 ;;
2898 *)
2899 is_elf=yes
2900 ;;
2901 esac
2902 esac
2903
2904 if test "$is_elf" = "yes"; then
2905 # Check for target supported by gold.
ba69a653 Ian Lance Taylor2008-03-21 15:42:41 +00002906 case "${target}" in
e2a383fc Nick Clifton2010-04-27 14:24:35 +00002907 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
1ea28f93
NC
Nick Clifton2010-11-23 13:39:56 +00002908 configdirs="$configdirs gold"
2909 if test x${ENABLE_GOLD} = xdefault; then
2910 default_ld=gold
2911 fi
e2a383fc Nick Clifton2010-04-27 14:24:35 +00002912 ENABLE_GOLD=yes
ba69a653
ILT
Ian Lance Taylor2008-03-21 15:42:41 +00002913 ;;
2914 esac
e2a383fc
NC
Nick Clifton2010-04-27 14:24:35 +00002915 fi
2916 ;;
2917 no)
2918 ;;
2919 *)
2920 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2921 ;;
1ea28f93
NC
Nick Clifton2010-11-23 13:39:56 +00002922esac
2923
2924# Check whether --enable-ld was given.
2925if test "${enable_ld+set}" = set; then :
2926 enableval=$enable_ld; ENABLE_LD=$enableval
2927else
2928 ENABLE_LD=yes
2929fi
2930
2931
2932case "${ENABLE_LD}" in
2933 default)
e1cffffd H.J. Lu2010-11-23 18:10:12 +00002934 if test x${default_ld} != x; then
1ea28f93
NC
Nick Clifton2010-11-23 13:39:56 +00002935 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2936 fi
2937 ;;
2938 yes)
2939 ;;
2940 no)
2941 if test x${ENABLE_GOLD} != xyes; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2943$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2944 fi
2945 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2946 ;;
2947 *)
2948 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2949 ;;
2950esac
ba69a653 Ian Lance Taylor2008-03-21 15:42:41 +00002951
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002952# Configure extra directories which are host specific
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002953
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002954case "${host}" in
2955 *-cygwin*)
2956 configdirs="$configdirs libtermcap" ;;
2957esac
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002958
289c423e
HPN
Hans-Peter Nilsson2005-06-07 00:04:15 +00002959# A target can indicate whether a language isn't supported for some reason.
2960# Only spaces may be used in this macro; not newlines or tabs.
2961unsupported_languages=
2962
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00002963# Remove more programs from consideration, based on the host or
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00002964# target this usually means that a port of the program doesn't
2965# exist yet.
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002966
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002967case "${host}" in
978da6ab Joseph Myers2011-03-24 16:52:09 +00002968 i[3456789]86-*-msdosdjgpp*)
d2eb1969 Joseph Myers2011-03-25 13:08:19 +00002969 noconfigdirs="$noconfigdirs tcl tk itcl libffi"
2cef6320 Nathanael Nerode2003-03-05 01:50:53 +00002970 ;;
d6101be7 Nick Clifton2007-01-09 07:36:45 +00002971 x86_64-*-mingw*)
d2eb1969 Joseph Myers2011-03-25 13:08:19 +00002972 noconfigdirs="$noconfigdirs newlib"
d6101be7 Nick Clifton2007-01-09 07:36:45 +00002973 ;;
9b117aa1 DJ Delorie2003-05-19 18:12:19 +00002974 i[3456789]86-*-mingw32*)
d2eb1969 Joseph Myers2011-03-25 13:08:19 +00002975 noconfigdirs="$noconfigdirs newlib"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002976 ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00002977esac
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002978
c324ef04 DJ Delorie2004-05-13 18:14:28 +00002979
3e9685e0
PB
Paolo Bonzini2010-12-10 12:09:34 +00002980# Check whether --enable-libquadmath was given.
2981if test "${enable_libquadmath+set}" = set; then :
2982 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2983else
2984 ENABLE_LIBQUADMATH=yes
2985fi
2986
2987if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2988 noconfigdirs="$noconfigdirs target-libquadmath"
2989fi
2990
2991
2992# Check whether --enable-libquadmath-support was given.
2993if test "${enable_libquadmath_support+set}" = set; then :
2994 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2995else
2996 ENABLE_LIBQUADMATH_SUPPORT=yes
2997fi
2998
2999enable_libquadmath_support=
3000if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3001 enable_libquadmath_support=no
3002fi
3003
3004
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003005# Check whether --enable-libada was given.
3006if test "${enable_libada+set}" = set; then :
3007 enableval=$enable_libada; ENABLE_LIBADA=$enableval
c154dc63
DD
DJ Delorie2004-02-10 17:57:02 +00003008else
3009 ENABLE_LIBADA=yes
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003010fi
3011
c154dc63 DJ Delorie2004-02-10 17:57:02 +00003012if test "${ENABLE_LIBADA}" != "yes" ; then
65cdce55 Paolo Bonzini2005-02-28 14:07:03 +00003013 noconfigdirs="$noconfigdirs gnattools"
c154dc63
DD
DJ Delorie2004-02-10 17:57:02 +00003014fi
3015
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003016# Check whether --enable-libssp was given.
3017if test "${enable_libssp+set}" = set; then :
3018 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
4c1250b7
KH
Kazu Hirata2005-07-07 02:24:02 +00003019else
3020 ENABLE_LIBSSP=yes
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003021fi
3022
4c1250b7 Kazu Hirata2005-07-07 02:24:02 +00003023
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003024# Save it here so that, even in case of --enable-libgcj, if the Java
3025# front-end isn't enabled, we still get libgcj disabled.
3026libgcj_saved=$libgcj
3027case $enable_libgcj in
3028yes)
3029 # If we reset it here, it won't get added to noconfigdirs in the
3030 # target-specific build rules, so it will be forcibly enabled
3031 # (unless the Java language itself isn't enabled).
3032 libgcj=
3033 ;;
3034no)
3035 # Make sure we get it printed in the list of not supported target libs.
2c99bdde
ILT
Ian Lance Taylor2010-11-21 01:56:29 +00003036 # Don't disable libffi, though, other languages use it.
3037 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
da39a909
ILT
Ian Lance Taylor2010-12-10 14:50:10 +00003038 # Clear libgcj_saved so that even if java is enabled libffi won't be
3039 # built.
3040 libgcj_saved=
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003041 ;;
3042esac
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00003043
c324ef04 DJ Delorie2004-05-13 18:14:28 +00003044
d32ede9b
PB
Paolo Bonzini2006-03-14 16:10:08 +00003045# Disable libmudflap on some systems.
3046if test x$enable_libmudflap = x ; then
b8af70d8 Paolo Bonzini2004-07-12 12:03:42 +00003047 case "${target}" in
18f438bf Joseph Myers2009-03-16 13:29:49 +00003048 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3f58b799 Nathanael Nerode2004-08-03 20:54:19 +00003049 # Enable libmudflap by default in GNU and friends.
b8af70d8
PB
Paolo Bonzini2004-07-12 12:03:42 +00003050 ;;
3051 *-*-freebsd*)
3052 # Enable libmudflap by default in FreeBSD.
3053 ;;
3054 *)
3055 # Disable it by default everywhere else.
3056 noconfigdirs="$noconfigdirs target-libmudflap"
3057 ;;
3058 esac
d32ede9b Paolo Bonzini2006-03-14 16:10:08 +00003059fi
c324ef04 DJ Delorie2004-05-13 18:14:28 +00003060
d32ede9b
PB
Paolo Bonzini2006-03-14 16:10:08 +00003061# Disable libgomp on non POSIX hosted systems.
3062if test x$enable_libgomp = x ; then
af19e8df
PB
Paolo Bonzini2006-02-14 09:29:42 +00003063 # Enable libgomp by default on hosted POSIX systems.
3064 case "${target}" in
18f438bf Joseph Myers2009-03-16 13:29:49 +00003065 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
af19e8df Paolo Bonzini2006-02-14 09:29:42 +00003066 ;;
9f9a0b1a Nick Clifton2011-03-28 11:18:20 +00003067 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
af19e8df Paolo Bonzini2006-02-14 09:29:42 +00003068 ;;
3702b526 Paolo Bonzini2006-07-03 07:58:12 +00003069 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
af19e8df
PB
Paolo Bonzini2006-02-14 09:29:42 +00003070 ;;
3071 *-*-darwin* | *-*-aix*)
3072 ;;
3073 *)
3074 noconfigdirs="$noconfigdirs target-libgomp"
3075 ;;
3076 esac
d32ede9b Paolo Bonzini2006-03-14 16:10:08 +00003077fi
af19e8df Paolo Bonzini2006-02-14 09:29:42 +00003078
b5328549
DD
DJ Delorie2007-09-11 00:22:05 +00003079# Default libgloss CPU subdirectory.
3080libgloss_dir="$target_cpu"
c324ef04 DJ Delorie2004-05-13 18:14:28 +00003081
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003082case "${target}" in
3083 *-*-chorusos)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003084 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003085 ;;
1aeaca04 Joel Brobecker2009-03-16 17:00:47 +00003086 powerpc-*-darwin*)
faf74d07 Tristan Gingold2008-08-28 10:44:31 +00003087 noconfigdirs="$noconfigdirs ld gas gdb gprof"
0d72aab6 Geoffrey Keating2005-07-07 01:14:34 +00003088 noconfigdirs="$noconfigdirs sim target-rda"
6450fc81 Tristan Gingold2008-11-27 15:20:39 +00003089 ;;
4e8d0a7d
TG
Tristan Gingold2009-07-02 08:24:01 +00003090 i[3456789]86-*-darwin*)
3091 noconfigdirs="$noconfigdirs ld gprof"
3092 noconfigdirs="$noconfigdirs sim target-rda"
3093 ;;
df9f4176 Ralf Wildenhues2009-08-19 19:49:26 +00003094 x86_64-*-darwin[912]*)
6450fc81
TG
Tristan Gingold2008-11-27 15:20:39 +00003095 noconfigdirs="$noconfigdirs ld gas gprof"
3096 noconfigdirs="$noconfigdirs sim target-rda"
efe51691 Geoffrey Keating2003-02-16 01:24:56 +00003097 ;;
bc93f304 Geoffrey Keating2003-08-20 00:51:25 +00003098 *-*-darwin*)
5e3d7b1b H.J. Lu2005-09-30 14:50:57 +00003099 noconfigdirs="$noconfigdirs ld gas gdb gprof"
0d72aab6 Geoffrey Keating2005-07-07 01:14:34 +00003100 noconfigdirs="$noconfigdirs sim target-rda"
1a352bf3 David Ayers2006-06-13 14:46:59 +00003101 noconfigdirs="$noconfigdirs ${libgcj}"
bc93f304 Geoffrey Keating2003-08-20 00:51:25 +00003102 ;;
9f9a0b1a
NC
Nick Clifton2011-03-28 11:18:20 +00003103 *-*-dragonfly*)
3104 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3105 ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003106 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003107 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003108 ;;
622d96d2 Jim Wilson2004-08-17 22:09:17 +00003109 *-*-freebsd*)
c324ef04
DD
DJ Delorie2004-05-13 18:14:28 +00003110 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3111 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3112 && test -f /usr/local/include/gmp.h; then
3113 with_gmp=/usr/local
3114 fi
3115
3116 # Skip some stuff that's unsupported on some FreeBSD configurations.
3117 case "${target}" in
3118 i*86-*-*) ;;
3119 alpha*-*-*) ;;
fb2bfeb9 Nick Clifton2010-02-15 10:37:54 +00003120 x86_64-*-*) ;;
c324ef04 DJ Delorie2004-05-13 18:14:28 +00003121 *)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003122 noconfigdirs="$noconfigdirs ${libgcj}"
c324ef04
DD
DJ Delorie2004-05-13 18:14:28 +00003123 ;;
3124 esac
3125 ;;
f225a020
NC
Nick Clifton2003-02-24 16:47:04 +00003126 *-*-kaos*)
3127 # Remove unsupported stuff on all kaOS configurations.
09fa9903 Joseph Myers2011-03-25 11:36:41 +00003128 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3"
d2eb1969 Joseph Myers2011-03-25 13:08:19 +00003129 skipdirs="$skipdirs target-libobjc"
f225a020
NC
Nick Clifton2003-02-24 16:47:04 +00003130 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3131 noconfigdirs="$noconfigdirs target-libgloss"
3132 ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003133 *-*-netbsd*)
3134 # Skip some stuff on all NetBSD configurations.
3135 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3136
3137 # Skip some stuff that's unsupported on some NetBSD configurations.
3138 case "${target}" in
3139 i*86-*-netbsdelf*) ;;
1d15adc0 DJ Delorie2003-04-17 21:30:52 +00003140 arm*-*-netbsdelf*) ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003141 *)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003142 noconfigdirs="$noconfigdirs ${libgcj}"
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003143 ;;
3144 esac
3145 ;;
bcbb2166 Richard Henderson2004-09-03 19:09:39 +00003146 *-*-netware*)
09fa9903 Joseph Myers2011-03-25 11:36:41 +00003147 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj}"
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003148 ;;
3149 *-*-rtems*)
e123a549 Ralf Wildenhues2010-06-01 17:28:06 +00003150 skipdirs="${skipdirs} target-libiberty"
1a352bf3 David Ayers2006-06-13 14:46:59 +00003151 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003152 ;;
e192705c
EC
Eric Christopher2005-07-14 00:12:07 +00003153 # The tpf target doesn't support gdb yet.
3154 *-*-tpf*)
09fa9903 Joseph Myers2011-03-25 11:36:41 +00003155 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} gdb tcl tk libgui itcl"
e192705c Eric Christopher2005-07-14 00:12:07 +00003156 ;;
075e0191 DJ Delorie2003-12-22 00:59:55 +00003157 *-*-uclinux*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003158 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
075e0191 DJ Delorie2003-12-22 00:59:55 +00003159 ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003160 *-*-vxworks*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003161 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003162 ;;
3163 alpha*-dec-osf*)
3164 # ld works, but does not support shared libraries.
d2eb1969 Joseph Myers2011-03-25 13:08:19 +00003165 # newlib is not 64 bit ready.
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003166 # gas doesn't generate exception information.
d2eb1969 Joseph Myers2011-03-25 13:08:19 +00003167 noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003168 ;;
3169 alpha*-*-*vms*)
0bfd4803 Tristan Gingold2010-04-14 09:28:48 +00003170 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003171 ;;
3172 alpha*-*-linux*)
3173 # newlib is not 64 bit ready
3174 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3175 ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003176 alpha*-*-*)
3177 # newlib is not 64 bit ready
1a352bf3 David Ayers2006-06-13 14:46:59 +00003178 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003179 ;;
695d6ab0 Alexandre Oliva2003-07-10 05:04:25 +00003180 am33_2.0-*-linux*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003181 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
695d6ab0 Alexandre Oliva2003-07-10 05:04:25 +00003182 ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003183 sh-*-linux*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003184 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
b4857d46 Daniel Jacobowitz2007-02-09 15:15:38 +00003185 ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003186 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003187 noconfigdirs="$noconfigdirs ${libgcj}"
d2eb1969 Joseph Myers2011-03-25 13:08:19 +00003188 noconfigdirs="$noconfigdirs target-libiberty"
9982725a Nathanael Nerode2004-08-12 22:59:53 +00003189 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003190 # the C++ libraries don't build on top of CE's C libraries
24b73019 Nathanael Nerode2003-03-04 07:48:06 +00003191 noconfigdirs="$noconfigdirs target-libstdc++-v3"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003192 noconfigdirs="$noconfigdirs target-newlib"
b5328549 DJ Delorie2007-09-11 00:22:05 +00003193 libgloss_dir=wince
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003194 ;;
3195 arc-*-*)
cc8ebeb6 Joseph Myers2011-03-22 20:01:13 +00003196 noconfigdirs="$noconfigdirs target-libgloss"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003197 ;;
6144e37e Joseph Myers2011-03-24 13:25:45 +00003198 arm-*-coff)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003199 noconfigdirs="$noconfigdirs ${libgcj}"
b5328549 DJ Delorie2007-09-11 00:22:05 +00003200 libgloss_dir=arm
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003201 ;;
6144e37e Joseph Myers2011-03-24 13:25:45 +00003202 arm-*-elf* | arm*-*-eabi* )
d2eb1969 Joseph Myers2011-03-25 13:08:19 +00003203 noconfigdirs="$noconfigdirs target-libffi"
b5328549 DJ Delorie2007-09-11 00:22:05 +00003204 libgloss_dir=arm
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003205 ;;
5f223913 Kazu Hirata2005-10-09 16:35:55 +00003206 arm*-*-linux-gnueabi)
d2eb1969 Joseph Myers2011-03-25 13:08:19 +00003207 noconfigdirs="$noconfigdirs"
a1871941
DD
DJ Delorie2007-06-28 19:31:44 +00003208 case ${with_newlib} in
3209 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3210 esac
b5328549 DJ Delorie2007-09-11 00:22:05 +00003211 libgloss_dir=arm
5f223913 Kazu Hirata2005-10-09 16:35:55 +00003212 ;;
4ea06277 Mark Mitchell2004-08-04 16:12:06 +00003213 arm*-*-symbianelf*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003214 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
b5328549 DJ Delorie2007-09-11 00:22:05 +00003215 libgloss_dir=arm
4ea06277 Mark Mitchell2004-08-04 16:12:06 +00003216 ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003217 arm-*-pe*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003218 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003219 ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003220 arm-*-riscix*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003221 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003222 ;;
3223 avr-*-*)
f9daac20 Paolo Bonzini2008-04-18 11:07:31 +00003224 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003225 ;;
38d078df Catherine Moore2005-10-03 15:11:13 +00003226 bfin-*-*)
e5718861 Jie Zhang2009-09-16 00:45:55 +00003227 unsupported_languages="$unsupported_languages java"
f876bec8 Andreas Schwab2011-01-21 13:29:46 +00003228 noconfigdirs="$noconfigdirs target-boehm-gc"
2ffec1bb Bernd Schmidt2005-10-17 12:54:34 +00003229 if test x${is_cross_compiler} != xno ; then
38d078df
CM
Catherine Moore2005-10-03 15:11:13 +00003230 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3231 fi
3232 ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003233 c4x-*-* | tic4x-*-*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003234 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003235 ;;
3236 c54x*-*-* | tic54x-*-*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003237 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003238 ;;
ba0e3c30
NC
Nick Clifton2008-04-18 08:45:05 +00003239 cr16-*-*)
3240 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3241 ;;
d9590f73 Hans-Peter Nilsson2005-01-29 04:24:23 +00003242 cris-*-* | crisv32-*-*)
289c423e Hans-Peter Nilsson2005-06-07 00:04:15 +00003243 unsupported_languages="$unsupported_languages java"
d9590f73 Hans-Peter Nilsson2005-01-29 04:24:23 +00003244 case "${target}" in
62be5938 Paolo Bonzini2005-04-29 14:00:03 +00003245 *-*-aout)
b8f152af David Edelsohn2005-09-20 03:13:02 +00003246 unsupported_languages="$unsupported_languages fortran"
289c423e Hans-Peter Nilsson2005-06-07 00:04:15 +00003247 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2c03a9a7
HPN
Hans-Peter Nilsson2010-12-06 01:55:25 +00003248 *-*-elf) # See PR46792 regarding target-libffi.
3249 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
62be5938 Paolo Bonzini2005-04-29 14:00:03 +00003250 *-*-linux*)
2561dbe5 Hans-Peter Nilsson2005-06-07 09:33:44 +00003251 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
d9590f73 Hans-Peter Nilsson2005-01-29 04:24:23 +00003252 *)
b8f152af David Edelsohn2005-09-20 03:13:02 +00003253 unsupported_languages="$unsupported_languages fortran"
1a352bf3 David Ayers2006-06-13 14:46:59 +00003254 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
d9590f73 Hans-Peter Nilsson2005-01-29 04:24:23 +00003255 esac
b5328549 DJ Delorie2007-09-11 00:22:05 +00003256 libgloss_dir=cris
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003257 ;;
3258 d10v-*-*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003259 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003260 ;;
3261 d30v-*-*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003262 noconfigdirs="$noconfigdirs ${libgcj} gdb"
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003263 ;;
3264 fr30-*-elf*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003265 noconfigdirs="$noconfigdirs ${libgcj} gdb"
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003266 ;;
3267 frv-*-*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003268 noconfigdirs="$noconfigdirs ${libgcj}"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003269 ;;
dd0adf18
NC
Nick Clifton2009-04-16 15:39:48 +00003270 moxie-*-*)
3271 noconfigdirs="$noconfigdirs ${libgcj}"
3272 noconfigdirs="$noconfigdirs gprof"
3273 ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003274 h8300*-*-*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003275 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003276 ;;
3277 h8500-*-*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003278 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003279 ;;
b610827e Aaron W. LaFramboise2004-10-26 20:39:00 +00003280 hppa1.1-*-osf* | hppa1.1-*-bsd* )
b610827e Aaron W. LaFramboise2004-10-26 20:39:00 +00003281 ;;
6144e37e Joseph Myers2011-03-24 13:25:45 +00003282 hppa*64*-*-linux*)
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003283 # In this case, it's because the hppa64-linux target is for
3284 # the kernel only at this point and has no libc, and thus no
3285 # headers, crt*.o, etc., all of which are needed by these.
3286 noconfigdirs="$noconfigdirs target-zlib"
3287 ;;
fd59509b Joseph Myers2011-03-22 20:04:36 +00003288 hppa*-*-linux*)
803e39b1 Dave Anglin2004-11-26 23:57:58 +00003289 ;;
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003290 hppa*-*-*elf* | \
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003291 hppa*-*-lites* | \
3292 hppa*-*-openbsd* | \
3293 hppa*64*-*-*)
1a352bf3 David Ayers2006-06-13 14:46:59 +00003294 noconfigdirs="$noconfigdirs ${libgcj}"
b61051ca
CD
Carlos O'Donell2006-06-07 22:33:16 +00003295 ;;
3296 hppa*-hp-hpux11*)
d2eb1969 Joseph Myers2011-03-25 13:08:19 +00003297 noconfigdirs="$noconfigdirs ld"
09c8cf6e Nathanael Nerode2002-12-28 07:09:15 +00003298 ;;
b5328549
DD
DJ Delorie2007-09-11 00:22:05 +00003299 hppa*-*-pro*)
3300 libgloss_dir=pa
3301 ;;
09c8cf6e
NN
Nathanael Nerode2002-12-28 07:09:15 +00003302 hppa*-*-*)
3303 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3304 # build on HP-UX 10.20.
d2eb1969 Joseph Myers2011-03-25 13:08:19 +00003305 noconfigdirs="$noconfigdirs ld ${libgcj}"