]> nv-tegra.nvidia Code Review - android/toolchain/build.git/blob - configure
Statically link libgcc and libstdc++ into gold
[android/toolchain/build.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for android-tools 2.0.
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.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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'
70 fi
71
72 # The user is always right.
73 if 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   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
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
99 IFS=$as_save_IFS
100
101      ;;
102 esac
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.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
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.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if 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
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
172   if (eval "$as_required") 2>/dev/null; then :
173   as_have_required=yes
174 else
175   as_have_required=no
176 fi
177   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
178
179 else
180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
181 as_found=false
182 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
183 do
184   IFS=$as_save_IFS
185   test -z "$as_dir" && as_dir=.
186   as_found=:
187   case $as_dir in #(
188          /*)
189            for as_base in sh bash ksh sh5; do
190              # Try only shells that exist, to save several forks.
191              as_shell=$as_dir/$as_base
192              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
193                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
194   CONFIG_SHELL=$as_shell as_have_required=yes
195                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
196   break 2
197 fi
198 fi
199            done;;
200        esac
201   as_found=false
202 done
203 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
204               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
205   CONFIG_SHELL=$SHELL as_have_required=yes
206 fi; }
207 IFS=$as_save_IFS
208
209
210       if test "x$CONFIG_SHELL" != x; then :
211   # We cannot yet assume a decent shell, so we have to provide a
212         # neutralization value for shells without unset; and this also
213         # works around shells that cannot unset nonexistent variables.
214         BASH_ENV=/dev/null
215         ENV=/dev/null
216         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
217         export CONFIG_SHELL
218         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
219 fi
220
221     if test x$as_have_required = xno; then :
222   $as_echo "$0: This script requires a shell more modern than all"
223   $as_echo "$0: the shells that I found on your system."
224   if test x${ZSH_VERSION+set} = xset ; then
225     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
226     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
227   else
228     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
229 $0: including any error possibly output before this
230 $0: message. Then install a modern shell, or manually run
231 $0: the script under such a shell if you do have one."
232   fi
233   exit 1
234 fi
235 fi
236 fi
237 SHELL=${CONFIG_SHELL-/bin/sh}
238 export SHELL
239 # Unset more variables known to interfere with behavior of common tools.
240 CLICOLOR_FORCE= GREP_OPTIONS=
241 unset CLICOLOR_FORCE GREP_OPTIONS
242
243 ## --------------------- ##
244 ## M4sh Shell Functions. ##
245 ## --------------------- ##
246 # as_fn_unset VAR
247 # ---------------
248 # Portably unset VAR.
249 as_fn_unset ()
250 {
251   { eval $1=; unset $1;}
252 }
253 as_unset=as_fn_unset
254
255 # as_fn_set_status STATUS
256 # -----------------------
257 # Set $? to STATUS, without forking.
258 as_fn_set_status ()
259 {
260   return $1
261 } # as_fn_set_status
262
263 # as_fn_exit STATUS
264 # -----------------
265 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
266 as_fn_exit ()
267 {
268   set +e
269   as_fn_set_status $1
270   exit $1
271 } # as_fn_exit
272
273 # as_fn_mkdir_p
274 # -------------
275 # Create "$as_dir" as a directory, including parents if necessary.
276 as_fn_mkdir_p ()
277 {
278
279   case $as_dir in #(
280   -*) as_dir=./$as_dir;;
281   esac
282   test -d "$as_dir" || eval $as_mkdir_p || {
283     as_dirs=
284     while :; do
285       case $as_dir in #(
286       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
287       *) as_qdir=$as_dir;;
288       esac
289       as_dirs="'$as_qdir' $as_dirs"
290       as_dir=`$as_dirname -- "$as_dir" ||
291 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
292          X"$as_dir" : 'X\(//\)[^/]' \| \
293          X"$as_dir" : 'X\(//\)$' \| \
294          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
295 $as_echo X"$as_dir" |
296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
297             s//\1/
298             q
299           }
300           /^X\(\/\/\)[^/].*/{
301             s//\1/
302             q
303           }
304           /^X\(\/\/\)$/{
305             s//\1/
306             q
307           }
308           /^X\(\/\).*/{
309             s//\1/
310             q
311           }
312           s/.*/./; q'`
313       test -d "$as_dir" && break
314     done
315     test -z "$as_dirs" || eval "mkdir $as_dirs"
316   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
317
318
319 } # as_fn_mkdir_p
320 # as_fn_append VAR VALUE
321 # ----------------------
322 # Append the text in VALUE to the end of the definition contained in VAR. Take
323 # advantage of any shell optimizations that allow amortized linear growth over
324 # repeated appends, instead of the typical quadratic growth present in naive
325 # implementations.
326 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
327   eval 'as_fn_append ()
328   {
329     eval $1+=\$2
330   }'
331 else
332   as_fn_append ()
333   {
334     eval $1=\$$1\$2
335   }
336 fi # as_fn_append
337
338 # as_fn_arith ARG...
339 # ------------------
340 # Perform arithmetic evaluation on the ARGs, and store the result in the
341 # global $as_val. Take advantage of shells that can avoid forks. The arguments
342 # must be portable across $(()) and expr.
343 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
344   eval 'as_fn_arith ()
345   {
346     as_val=$(( $* ))
347   }'
348 else
349   as_fn_arith ()
350   {
351     as_val=`expr "$@" || test $? -eq 1`
352   }
353 fi # as_fn_arith
354
355
356 # as_fn_error ERROR [LINENO LOG_FD]
357 # ---------------------------------
358 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
359 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
360 # script with status $?, using 1 if that was 0.
361 as_fn_error ()
362 {
363   as_status=$?; test $as_status -eq 0 && as_status=1
364   if test "$3"; then
365     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
366     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
367   fi
368   $as_echo "$as_me: error: $1" >&2
369   as_fn_exit $as_status
370 } # as_fn_error
371
372 if expr a : '\(a\)' >/dev/null 2>&1 &&
373    test "X`expr 00001 : '.*\(...\)'`" = X001; then
374   as_expr=expr
375 else
376   as_expr=false
377 fi
378
379 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
380   as_basename=basename
381 else
382   as_basename=false
383 fi
384
385 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
386   as_dirname=dirname
387 else
388   as_dirname=false
389 fi
390
391 as_me=`$as_basename -- "$0" ||
392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
393          X"$0" : 'X\(//\)$' \| \
394          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
395 $as_echo X/"$0" |
396     sed '/^.*\/\([^/][^/]*\)\/*$/{
397             s//\1/
398             q
399           }
400           /^X\/\(\/\/\)$/{
401             s//\1/
402             q
403           }
404           /^X\/\(\/\).*/{
405             s//\1/
406             q
407           }
408           s/.*/./; q'`
409
410 # Avoid depending upon Character Ranges.
411 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
412 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
413 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
414 as_cr_digits='0123456789'
415 as_cr_alnum=$as_cr_Letters$as_cr_digits
416
417
418   as_lineno_1=$LINENO as_lineno_1a=$LINENO
419   as_lineno_2=$LINENO as_lineno_2a=$LINENO
420   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
421   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
422   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
423   sed -n '
424     p
425     /[$]LINENO/=
426   ' <$as_myself |
427     sed '
428       s/[$]LINENO.*/&-/
429       t lineno
430       b
431       :lineno
432       N
433       :loop
434       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
435       t loop
436       s/-\n.*//
437     ' >$as_me.lineno &&
438   chmod +x "$as_me.lineno" ||
439     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
440
441   # Don't try to exec as it changes $[0], causing all sort of problems
442   # (the dirname of $[0] is not the place where we might find the
443   # original and so on.  Autoconf is especially sensitive to this).
444   . "./$as_me.lineno"
445   # Exit status is that of the last command.
446   exit
447 }
448
449 ECHO_C= ECHO_N= ECHO_T=
450 case `echo -n x` in #(((((
451 -n*)
452   case `echo 'xy\c'` in
453   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
454   xy)  ECHO_C='\c';;
455   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
456        ECHO_T=' ';;
457   esac;;
458 *)
459   ECHO_N='-n';;
460 esac
461
462 rm -f conf$$ conf$$.exe conf$$.file
463 if test -d conf$$.dir; then
464   rm -f conf$$.dir/conf$$.file
465 else
466   rm -f conf$$.dir
467   mkdir conf$$.dir 2>/dev/null
468 fi
469 if (echo >conf$$.file) 2>/dev/null; then
470   if ln -s conf$$.file conf$$ 2>/dev/null; then
471     as_ln_s='ln -s'
472     # ... but there are two gotchas:
473     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
474     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
475     # In both cases, we have to default to `cp -p'.
476     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
477       as_ln_s='cp -p'
478   elif ln conf$$.file conf$$ 2>/dev/null; then
479     as_ln_s=ln
480   else
481     as_ln_s='cp -p'
482   fi
483 else
484   as_ln_s='cp -p'
485 fi
486 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
487 rmdir conf$$.dir 2>/dev/null
488
489 if mkdir -p . 2>/dev/null; then
490   as_mkdir_p='mkdir -p "$as_dir"'
491 else
492   test -d ./-p && rmdir ./-p
493   as_mkdir_p=false
494 fi
495
496 if test -x / >/dev/null 2>&1; then
497   as_test_x='test -x'
498 else
499   if ls -dL / >/dev/null 2>&1; then
500     as_ls_L_option=L
501   else
502     as_ls_L_option=
503   fi
504   as_test_x='
505     eval sh -c '\''
506       if test -d "$1"; then
507         test -d "$1/.";
508       else
509         case $1 in #(
510         -*)set "./$1";;
511         esac;
512         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
513         ???[sx]*):;;*)false;;esac;fi
514     '\'' sh
515   '
516 fi
517 as_executable_p=$as_test_x
518
519 # Sed expression to map a string onto a valid CPP name.
520 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
521
522 # Sed expression to map a string onto a valid variable name.
523 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
524
525
526 exec 7<&0 </dev/null 6>&1
527
528 # Name of the host.
529 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
530 # so uname gets run too.
531 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
532
533 #
534 # Initializations.
535 #
536 ac_default_prefix=/usr/local
537 ac_clean_files=
538 ac_config_libobj_dir=.
539 LIBOBJS=
540 cross_compiling=no
541 subdirs=
542 MFLAGS=
543 MAKEFLAGS=
544
545 # Identity of this package.
546 PACKAGE_NAME='android-tools'
547 PACKAGE_TARNAME='android-tools'
548 PACKAGE_VERSION='2.0'
549 PACKAGE_STRING='android-tools 2.0'
550 PACKAGE_BUGREPORT=''
551 PACKAGE_URL=''
552
553 ac_subst_vars='LTLIBOBJS
554 LIBOBJS
555 have_expat
556 have_cloog
557 have_ppl
558 have_gmp
559 have_mpfr
560 have_mpc
561 sysroot
562 EXPAT_VERSION
563 GDB_MIN_VERSION_7_2
564 GDB_VERSION
565 CLOOG_VERSION
566 CLOOG_BACKEND
567 PPL_VERSION
568 MPC_VERSION
569 MPFR_VERSION
570 GMP_VERSION
571 NEWLIB_VERSION
572 GCC_MIN_VERSION_4_5_0
573 GCC_MIN_VERSION_4_3_0
574 GCC_VERSION
575 GOLD_MIN_VERSION_2_21
576 GOLD_VERSION
577 BINUTILS_MIN_VERSION_2_21
578 BINUTILS_VERSION
579 package_to_srcdir
580 ENABLE_GRAPHITE
581 host_baseargs
582 enable_gold
583 enable_ld_default
584 baseargs
585 TOPLEVEL_CONFIGURE_ARGUMENTS
586 GDB_TARGET
587 BUILD_ANDROID_GCC
588 INSTALL_DATA
589 INSTALL_SCRIPT
590 INSTALL_PROGRAM
591 target_os
592 target_vendor
593 target_cpu
594 target
595 host_os
596 host_vendor
597 host_cpu
598 host
599 build_os
600 build_vendor
601 build_cpu
602 build
603 target_alias
604 host_alias
605 build_alias
606 LIBS
607 ECHO_T
608 ECHO_N
609 ECHO_C
610 DEFS
611 mandir
612 localedir
613 libdir
614 psdir
615 pdfdir
616 dvidir
617 htmldir
618 infodir
619 docdir
620 oldincludedir
621 includedir
622 localstatedir
623 sharedstatedir
624 sysconfdir
625 datadir
626 datarootdir
627 libexecdir
628 sbindir
629 bindir
630 program_transform_name
631 prefix
632 exec_prefix
633 PACKAGE_URL
634 PACKAGE_BUGREPORT
635 PACKAGE_STRING
636 PACKAGE_VERSION
637 PACKAGE_TARNAME
638 PACKAGE_NAME
639 PATH_SEPARATOR
640 SHELL'
641 ac_subst_files=''
642 ac_user_opts='
643 enable_option_checking
644 enable_graphite
645 with_binutils_version
646 with_gold_version
647 with_gcc_version
648 with_newlib_version
649 with_gmp_version
650 with_mpfr_version
651 with_mpc_version
652 with_ppl_version
653 with_cloog_version
654 with_gdb_version
655 with_expat_version
656 with_sysroot
657 with_mpc
658 with_mpfr
659 with_gmp
660 with_ppl
661 with_cloog
662 with_expat
663 '
664       ac_precious_vars='build_alias
665 host_alias
666 target_alias'
667
668
669 # Initialize some variables set by options.
670 ac_init_help=
671 ac_init_version=false
672 ac_unrecognized_opts=
673 ac_unrecognized_sep=
674 # The variables have the same names as the options, with
675 # dashes changed to underlines.
676 cache_file=/dev/null
677 exec_prefix=NONE
678 no_create=
679 no_recursion=
680 prefix=NONE
681 program_prefix=NONE
682 program_suffix=NONE
683 program_transform_name=s,x,x,
684 silent=
685 site=
686 srcdir=
687 verbose=
688 x_includes=NONE
689 x_libraries=NONE
690
691 # Installation directory options.
692 # These are left unexpanded so users can "make install exec_prefix=/foo"
693 # and all the variables that are supposed to be based on exec_prefix
694 # by default will actually change.
695 # Use braces instead of parens because sh, perl, etc. also accept them.
696 # (The list follows the same order as the GNU Coding Standards.)
697 bindir='${exec_prefix}/bin'
698 sbindir='${exec_prefix}/sbin'
699 libexecdir='${exec_prefix}/libexec'
700 datarootdir='${prefix}/share'
701 datadir='${datarootdir}'
702 sysconfdir='${prefix}/etc'
703 sharedstatedir='${prefix}/com'
704 localstatedir='${prefix}/var'
705 includedir='${prefix}/include'
706 oldincludedir='/usr/include'
707 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
708 infodir='${datarootdir}/info'
709 htmldir='${docdir}'
710 dvidir='${docdir}'
711 pdfdir='${docdir}'
712 psdir='${docdir}'
713 libdir='${exec_prefix}/lib'
714 localedir='${datarootdir}/locale'
715 mandir='${datarootdir}/man'
716
717 ac_prev=
718 ac_dashdash=
719 for ac_option
720 do
721   # If the previous option needs an argument, assign it.
722   if test -n "$ac_prev"; then
723     eval $ac_prev=\$ac_option
724     ac_prev=
725     continue
726   fi
727
728   case $ac_option in
729   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
730   *)    ac_optarg=yes ;;
731   esac
732
733   # Accept the important Cygnus configure options, so we can diagnose typos.
734
735   case $ac_dashdash$ac_option in
736   --)
737     ac_dashdash=yes ;;
738
739   -bindir | --bindir | --bindi | --bind | --bin | --bi)
740     ac_prev=bindir ;;
741   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
742     bindir=$ac_optarg ;;
743
744   -build | --build | --buil | --bui | --bu)
745     ac_prev=build_alias ;;
746   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
747     build_alias=$ac_optarg ;;
748
749   -cache-file | --cache-file | --cache-fil | --cache-fi \
750   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
751     ac_prev=cache_file ;;
752   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
753   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
754     cache_file=$ac_optarg ;;
755
756   --config-cache | -C)
757     cache_file=config.cache ;;
758
759   -datadir | --datadir | --datadi | --datad)
760     ac_prev=datadir ;;
761   -datadir=* | --datadir=* | --datadi=* | --datad=*)
762     datadir=$ac_optarg ;;
763
764   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
765   | --dataroo | --dataro | --datar)
766     ac_prev=datarootdir ;;
767   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
768   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
769     datarootdir=$ac_optarg ;;
770
771   -disable-* | --disable-*)
772     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
773     # Reject names that are not valid shell variable names.
774     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
775       as_fn_error "invalid feature name: $ac_useropt"
776     ac_useropt_orig=$ac_useropt
777     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
778     case $ac_user_opts in
779       *"
780 "enable_$ac_useropt"
781 "*) ;;
782       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
783          ac_unrecognized_sep=', ';;
784     esac
785     eval enable_$ac_useropt=no ;;
786
787   -docdir | --docdir | --docdi | --doc | --do)
788     ac_prev=docdir ;;
789   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
790     docdir=$ac_optarg ;;
791
792   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
793     ac_prev=dvidir ;;
794   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
795     dvidir=$ac_optarg ;;
796
797   -enable-* | --enable-*)
798     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
799     # Reject names that are not valid shell variable names.
800     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
801       as_fn_error "invalid feature name: $ac_useropt"
802     ac_useropt_orig=$ac_useropt
803     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
804     case $ac_user_opts in
805       *"
806 "enable_$ac_useropt"
807 "*) ;;
808       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
809          ac_unrecognized_sep=', ';;
810     esac
811     eval enable_$ac_useropt=\$ac_optarg ;;
812
813   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
814   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
815   | --exec | --exe | --ex)
816     ac_prev=exec_prefix ;;
817   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
818   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
819   | --exec=* | --exe=* | --ex=*)
820     exec_prefix=$ac_optarg ;;
821
822   -gas | --gas | --ga | --g)
823     # Obsolete; use --with-gas.
824     with_gas=yes ;;
825
826   -help | --help | --hel | --he | -h)
827     ac_init_help=long ;;
828   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
829     ac_init_help=recursive ;;
830   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
831     ac_init_help=short ;;
832
833   -host | --host | --hos | --ho)
834     ac_prev=host_alias ;;
835   -host=* | --host=* | --hos=* | --ho=*)
836     host_alias=$ac_optarg ;;
837
838   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
839     ac_prev=htmldir ;;
840   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
841   | --ht=*)
842     htmldir=$ac_optarg ;;
843
844   -includedir | --includedir | --includedi | --included | --include \
845   | --includ | --inclu | --incl | --inc)
846     ac_prev=includedir ;;
847   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
848   | --includ=* | --inclu=* | --incl=* | --inc=*)
849     includedir=$ac_optarg ;;
850
851   -infodir | --infodir | --infodi | --infod | --info | --inf)
852     ac_prev=infodir ;;
853   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
854     infodir=$ac_optarg ;;
855
856   -libdir | --libdir | --libdi | --libd)
857     ac_prev=libdir ;;
858   -libdir=* | --libdir=* | --libdi=* | --libd=*)
859     libdir=$ac_optarg ;;
860
861   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
862   | --libexe | --libex | --libe)
863     ac_prev=libexecdir ;;
864   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
865   | --libexe=* | --libex=* | --libe=*)
866     libexecdir=$ac_optarg ;;
867
868   -localedir | --localedir | --localedi | --localed | --locale)
869     ac_prev=localedir ;;
870   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
871     localedir=$ac_optarg ;;
872
873   -localstatedir | --localstatedir | --localstatedi | --localstated \
874   | --localstate | --localstat | --localsta | --localst | --locals)
875     ac_prev=localstatedir ;;
876   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
877   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
878     localstatedir=$ac_optarg ;;
879
880   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
881     ac_prev=mandir ;;
882   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
883     mandir=$ac_optarg ;;
884
885   -nfp | --nfp | --nf)
886     # Obsolete; use --without-fp.
887     with_fp=no ;;
888
889   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
890   | --no-cr | --no-c | -n)
891     no_create=yes ;;
892
893   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
894   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
895     no_recursion=yes ;;
896
897   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
898   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
899   | --oldin | --oldi | --old | --ol | --o)
900     ac_prev=oldincludedir ;;
901   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
902   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
903   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
904     oldincludedir=$ac_optarg ;;
905
906   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
907     ac_prev=prefix ;;
908   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
909     prefix=$ac_optarg ;;
910
911   -program-prefix | --program-prefix | --program-prefi | --program-pref \
912   | --program-pre | --program-pr | --program-p)
913     ac_prev=program_prefix ;;
914   -program-prefix=* | --program-prefix=* | --program-prefi=* \
915   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
916     program_prefix=$ac_optarg ;;
917
918   -program-suffix | --program-suffix | --program-suffi | --program-suff \
919   | --program-suf | --program-su | --program-s)
920     ac_prev=program_suffix ;;
921   -program-suffix=* | --program-suffix=* | --program-suffi=* \
922   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
923     program_suffix=$ac_optarg ;;
924
925   -program-transform-name | --program-transform-name \
926   | --program-transform-nam | --program-transform-na \
927   | --program-transform-n | --program-transform- \
928   | --program-transform | --program-transfor \
929   | --program-transfo | --program-transf \
930   | --program-trans | --program-tran \
931   | --progr-tra | --program-tr | --program-t)
932     ac_prev=program_transform_name ;;
933   -program-transform-name=* | --program-transform-name=* \
934   | --program-transform-nam=* | --program-transform-na=* \
935   | --program-transform-n=* | --program-transform-=* \
936   | --program-transform=* | --program-transfor=* \
937   | --program-transfo=* | --program-transf=* \
938   | --program-trans=* | --program-tran=* \
939   | --progr-tra=* | --program-tr=* | --program-t=*)
940     program_transform_name=$ac_optarg ;;
941
942   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
943     ac_prev=pdfdir ;;
944   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
945     pdfdir=$ac_optarg ;;
946
947   -psdir | --psdir | --psdi | --psd | --ps)
948     ac_prev=psdir ;;
949   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
950     psdir=$ac_optarg ;;
951
952   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
953   | -silent | --silent | --silen | --sile | --sil)
954     silent=yes ;;
955
956   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
957     ac_prev=sbindir ;;
958   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
959   | --sbi=* | --sb=*)
960     sbindir=$ac_optarg ;;
961
962   -sharedstatedir | --sharedstatedir | --sharedstatedi \
963   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
964   | --sharedst | --shareds | --shared | --share | --shar \
965   | --sha | --sh)
966     ac_prev=sharedstatedir ;;
967   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
968   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
969   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
970   | --sha=* | --sh=*)
971     sharedstatedir=$ac_optarg ;;
972
973   -site | --site | --sit)
974     ac_prev=site ;;
975   -site=* | --site=* | --sit=*)
976     site=$ac_optarg ;;
977
978   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
979     ac_prev=srcdir ;;
980   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
981     srcdir=$ac_optarg ;;
982
983   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
984   | --syscon | --sysco | --sysc | --sys | --sy)
985     ac_prev=sysconfdir ;;
986   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
987   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
988     sysconfdir=$ac_optarg ;;
989
990   -target | --target | --targe | --targ | --tar | --ta | --t)
991     ac_prev=target_alias ;;
992   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
993     target_alias=$ac_optarg ;;
994
995   -v | -verbose | --verbose | --verbos | --verbo | --verb)
996     verbose=yes ;;
997
998   -version | --version | --versio | --versi | --vers | -V)
999     ac_init_version=: ;;
1000
1001   -with-* | --with-*)
1002     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1003     # Reject names that are not valid shell variable names.
1004     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005       as_fn_error "invalid package name: $ac_useropt"
1006     ac_useropt_orig=$ac_useropt
1007     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008     case $ac_user_opts in
1009       *"
1010 "with_$ac_useropt"
1011 "*) ;;
1012       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1013          ac_unrecognized_sep=', ';;
1014     esac
1015     eval with_$ac_useropt=\$ac_optarg ;;
1016
1017   -without-* | --without-*)
1018     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1019     # Reject names that are not valid shell variable names.
1020     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021       as_fn_error "invalid package name: $ac_useropt"
1022     ac_useropt_orig=$ac_useropt
1023     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024     case $ac_user_opts in
1025       *"
1026 "with_$ac_useropt"
1027 "*) ;;
1028       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1029          ac_unrecognized_sep=', ';;
1030     esac
1031     eval with_$ac_useropt=no ;;
1032
1033   --x)
1034     # Obsolete; use --with-x.
1035     with_x=yes ;;
1036
1037   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1038   | --x-incl | --x-inc | --x-in | --x-i)
1039     ac_prev=x_includes ;;
1040   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1041   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1042     x_includes=$ac_optarg ;;
1043
1044   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1045   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1046     ac_prev=x_libraries ;;
1047   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1048   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1049     x_libraries=$ac_optarg ;;
1050
1051   -*) as_fn_error "unrecognized option: \`$ac_option'
1052 Try \`$0 --help' for more information."
1053     ;;
1054
1055   *=*)
1056     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1057     # Reject names that are not valid shell variable names.
1058     case $ac_envvar in #(
1059       '' | [0-9]* | *[!_$as_cr_alnum]* )
1060       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1061     esac
1062     eval $ac_envvar=\$ac_optarg
1063     export $ac_envvar ;;
1064
1065   *)
1066     # FIXME: should be removed in autoconf 3.0.
1067     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1068     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1070     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1071     ;;
1072
1073   esac
1074 done
1075
1076 if test -n "$ac_prev"; then
1077   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1078   as_fn_error "missing argument to $ac_option"
1079 fi
1080
1081 if test -n "$ac_unrecognized_opts"; then
1082   case $enable_option_checking in
1083     no) ;;
1084     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1085     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1086   esac
1087 fi
1088
1089 # Check all directory arguments for consistency.
1090 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1091                 datadir sysconfdir sharedstatedir localstatedir includedir \
1092                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1093                 libdir localedir mandir
1094 do
1095   eval ac_val=\$$ac_var
1096   # Remove trailing slashes.
1097   case $ac_val in
1098     */ )
1099       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1100       eval $ac_var=\$ac_val;;
1101   esac
1102   # Be sure to have absolute directory names.
1103   case $ac_val in
1104     [\\/$]* | ?:[\\/]* )  continue;;
1105     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106   esac
1107   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1108 done
1109
1110 # There might be people who depend on the old broken behavior: `$host'
1111 # used to hold the argument of --host etc.
1112 # FIXME: To remove some day.
1113 build=$build_alias
1114 host=$host_alias
1115 target=$target_alias
1116
1117 # FIXME: To remove some day.
1118 if test "x$host_alias" != x; then
1119   if test "x$build_alias" = x; then
1120     cross_compiling=maybe
1121     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1122     If a cross compiler is detected then cross compile mode will be used." >&2
1123   elif test "x$build_alias" != "x$host_alias"; then
1124     cross_compiling=yes
1125   fi
1126 fi
1127
1128 ac_tool_prefix=
1129 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1130
1131 test "$silent" = yes && exec 6>/dev/null
1132
1133
1134 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1135 ac_ls_di=`ls -di .` &&
1136 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1137   as_fn_error "working directory cannot be determined"
1138 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1139   as_fn_error "pwd does not report name of working directory"
1140
1141
1142 # Find the source files, if location was not specified.
1143 if test -z "$srcdir"; then
1144   ac_srcdir_defaulted=yes
1145   # Try the directory containing this script, then the parent directory.
1146   ac_confdir=`$as_dirname -- "$as_myself" ||
1147 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1148          X"$as_myself" : 'X\(//\)[^/]' \| \
1149          X"$as_myself" : 'X\(//\)$' \| \
1150          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1151 $as_echo X"$as_myself" |
1152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1153             s//\1/
1154             q
1155           }
1156           /^X\(\/\/\)[^/].*/{
1157             s//\1/
1158             q
1159           }
1160           /^X\(\/\/\)$/{
1161             s//\1/
1162             q
1163           }
1164           /^X\(\/\).*/{
1165             s//\1/
1166             q
1167           }
1168           s/.*/./; q'`
1169   srcdir=$ac_confdir
1170   if test ! -r "$srcdir/$ac_unique_file"; then
1171     srcdir=..
1172   fi
1173 else
1174   ac_srcdir_defaulted=no
1175 fi
1176 if test ! -r "$srcdir/$ac_unique_file"; then
1177   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1178   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1179 fi
1180 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1181 ac_abs_confdir=`(
1182         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1183         pwd)`
1184 # When building in place, set srcdir=.
1185 if test "$ac_abs_confdir" = "$ac_pwd"; then
1186   srcdir=.
1187 fi
1188 # Remove unnecessary trailing slashes from srcdir.
1189 # Double slashes in file names in object file debugging info
1190 # mess up M-x gdb in Emacs.
1191 case $srcdir in
1192 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1193 esac
1194 for ac_var in $ac_precious_vars; do
1195   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1196   eval ac_env_${ac_var}_value=\$${ac_var}
1197   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1198   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1199 done
1200
1201 #
1202 # Report the --help message.
1203 #
1204 if test "$ac_init_help" = "long"; then
1205   # Omit some internal or obsolete options to make the list less imposing.
1206   # This message is too long to be a string in the A/UX 3.1 sh.
1207   cat <<_ACEOF
1208 \`configure' configures android-tools 2.0 to adapt to many kinds of systems.
1209
1210 Usage: $0 [OPTION]... [VAR=VALUE]...
1211
1212 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1213 VAR=VALUE.  See below for descriptions of some of the useful variables.
1214
1215 Defaults for the options are specified in brackets.
1216
1217 Configuration:
1218   -h, --help              display this help and exit
1219       --help=short        display options specific to this package
1220       --help=recursive    display the short help of all the included packages
1221   -V, --version           display version information and exit
1222   -q, --quiet, --silent   do not print \`checking...' messages
1223       --cache-file=FILE   cache test results in FILE [disabled]
1224   -C, --config-cache      alias for \`--cache-file=config.cache'
1225   -n, --no-create         do not create output files
1226       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1227
1228 Installation directories:
1229   --prefix=PREFIX         install architecture-independent files in PREFIX
1230                           [$ac_default_prefix]
1231   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1232                           [PREFIX]
1233
1234 By default, \`make install' will install all the files in
1235 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1236 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1237 for instance \`--prefix=\$HOME'.
1238
1239 For better control, use the options below.
1240
1241 Fine tuning of the installation directories:
1242   --bindir=DIR            user executables [EPREFIX/bin]
1243   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1244   --libexecdir=DIR        program executables [EPREFIX/libexec]
1245   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1246   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1247   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1248   --libdir=DIR            object code libraries [EPREFIX/lib]
1249   --includedir=DIR        C header files [PREFIX/include]
1250   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1251   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1252   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1253   --infodir=DIR           info documentation [DATAROOTDIR/info]
1254   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1255   --mandir=DIR            man documentation [DATAROOTDIR/man]
1256   --docdir=DIR            documentation root [DATAROOTDIR/doc/android-tools]
1257   --htmldir=DIR           html documentation [DOCDIR]
1258   --dvidir=DIR            dvi documentation [DOCDIR]
1259   --pdfdir=DIR            pdf documentation [DOCDIR]
1260   --psdir=DIR             ps documentation [DOCDIR]
1261 _ACEOF
1262
1263   cat <<\_ACEOF
1264
1265 Program names:
1266   --program-prefix=PREFIX            prepend PREFIX to installed program names
1267   --program-suffix=SUFFIX            append SUFFIX to installed program names
1268   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1269
1270 System types:
1271   --build=BUILD     configure for building on BUILD [guessed]
1272   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1273   --target=TARGET   configure for building compilers for TARGET [HOST]
1274 _ACEOF
1275 fi
1276
1277 if test -n "$ac_init_help"; then
1278   case $ac_init_help in
1279      short | recursive ) echo "Configuration of android-tools 2.0:";;
1280    esac
1281   cat <<\_ACEOF
1282
1283 Optional Features:
1284   --disable-option-checking  ignore unrecognized --enable/--with options
1285   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1286   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1287   --enable-graphite       Enable Graphite optimization [default=no]
1288
1289 Optional Packages:
1290   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1291   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1292   --with-binutils-version=VERSION
1293                           use binutils-VERSION (default is 2.17)
1294   --with-gold-version=VERSION
1295                           use binutils-VERSION for gold (default is the main binutils version)
1296   --with-gcc-version=VERSION
1297                           use gcc-VERSION (default is 4.2.1)
1298   --with-newlib-version=VERSION
1299                           use newlib-VERSION (default is 1.16.0)
1300   --with-gmp-version=VERSION
1301                           use gmp-VERSION (default is 4.2.2)
1302   --with-mpfr-version=VERSION
1303                           use mpfr-VERSION (default is 2.3.0)
1304   --with-mpc-version=VERSION
1305                           use mpc-VERSION (default is 0.8.1)
1306   --with-ppl-version=VERSION
1307                          use ppl-VERSION (default is 0.11.2)
1308   --with-cloog-version=VERSION
1309                            use cloog-VERSION (default is 0.15.9)
1310   --with-gdb-version=VERSION
1311                           use gdb-VERSION (default is 6.6)
1312   --with-expat-version=VERSION
1313                           use expat-VERSION (default is 2.0.1)
1314   --with-sysroot=DIR
1315                           use target sysroot in DIR
1316   --with-mpc=PATH
1317                           specify prefix directory for installed MPC package.
1318   --with-mpfr=PATH
1319                           specify prefix directory for installed MPFR package.
1320   --with-gmp=PATH
1321                           specify prefix directory for the installed GMP package.
1322   --with-ppl=PATH
1323                           specify prefix directory for the installed PPL package.
1324   --with-cloog=PATH
1325                           specify prefix directory for the installed CLooG package.
1326   --with-expat=PATH
1327                           specify prefix directory for the installed EXPAT package.
1328
1329 Report bugs to the package provider.
1330 _ACEOF
1331 ac_status=$?
1332 fi
1333
1334 if test "$ac_init_help" = "recursive"; then
1335   # If there are subdirs, report their specific --help.
1336   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1337     test -d "$ac_dir" ||
1338       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1339       continue
1340     ac_builddir=.
1341
1342 case "$ac_dir" in
1343 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344 *)
1345   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1346   # A ".." for each directory in $ac_dir_suffix.
1347   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1348   case $ac_top_builddir_sub in
1349   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1351   esac ;;
1352 esac
1353 ac_abs_top_builddir=$ac_pwd
1354 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1355 # for backward compatibility:
1356 ac_top_builddir=$ac_top_build_prefix
1357
1358 case $srcdir in
1359   .)  # We are building in place.
1360     ac_srcdir=.
1361     ac_top_srcdir=$ac_top_builddir_sub
1362     ac_abs_top_srcdir=$ac_pwd ;;
1363   [\\/]* | ?:[\\/]* )  # Absolute name.
1364     ac_srcdir=$srcdir$ac_dir_suffix;
1365     ac_top_srcdir=$srcdir
1366     ac_abs_top_srcdir=$srcdir ;;
1367   *) # Relative name.
1368     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1369     ac_top_srcdir=$ac_top_build_prefix$srcdir
1370     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1371 esac
1372 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1373
1374     cd "$ac_dir" || { ac_status=$?; continue; }
1375     # Check for guested configure.
1376     if test -f "$ac_srcdir/configure.gnu"; then
1377       echo &&
1378       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379     elif test -f "$ac_srcdir/configure"; then
1380       echo &&
1381       $SHELL "$ac_srcdir/configure" --help=recursive
1382     else
1383       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1384     fi || ac_status=$?
1385     cd "$ac_pwd" || { ac_status=$?; break; }
1386   done
1387 fi
1388
1389 test -n "$ac_init_help" && exit $ac_status
1390 if $ac_init_version; then
1391   cat <<\_ACEOF
1392 android-tools configure 2.0
1393 generated by GNU Autoconf 2.64
1394
1395 Copyright (C) 2009 Free Software Foundation, Inc.
1396 This configure script is free software; the Free Software Foundation
1397 gives unlimited permission to copy, distribute and modify it.
1398 _ACEOF
1399   exit
1400 fi
1401
1402 ## ------------------------ ##
1403 ## Autoconf initialization. ##
1404 ## ------------------------ ##
1405 cat >config.log <<_ACEOF
1406 This file contains any messages produced by compilers while
1407 running configure, to aid debugging if configure makes a mistake.
1408
1409 It was created by android-tools $as_me 2.0, which was
1410 generated by GNU Autoconf 2.64.  Invocation command line was
1411
1412   $ $0 $@
1413
1414 _ACEOF
1415 exec 5>>config.log
1416 {
1417 cat <<_ASUNAME
1418 ## --------- ##
1419 ## Platform. ##
1420 ## --------- ##
1421
1422 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1423 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1424 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1425 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1426 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1427
1428 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1429 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1430
1431 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1432 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1433 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1434 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1435 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1436 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1437 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1438
1439 _ASUNAME
1440
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 for as_dir in $PATH
1443 do
1444   IFS=$as_save_IFS
1445   test -z "$as_dir" && as_dir=.
1446     $as_echo "PATH: $as_dir"
1447   done
1448 IFS=$as_save_IFS
1449
1450 } >&5
1451
1452 cat >&5 <<_ACEOF
1453
1454
1455 ## ----------- ##
1456 ## Core tests. ##
1457 ## ----------- ##
1458
1459 _ACEOF
1460
1461
1462 # Keep a trace of the command line.
1463 # Strip out --no-create and --no-recursion so they do not pile up.
1464 # Strip out --silent because we don't want to record it for future runs.
1465 # Also quote any args containing shell meta-characters.
1466 # Make two passes to allow for proper duplicate-argument suppression.
1467 ac_configure_args=
1468 ac_configure_args0=
1469 ac_configure_args1=
1470 ac_must_keep_next=false
1471 for ac_pass in 1 2
1472 do
1473   for ac_arg
1474   do
1475     case $ac_arg in
1476     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1477     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1478     | -silent | --silent | --silen | --sile | --sil)
1479       continue ;;
1480     *\'*)
1481       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1482     esac
1483     case $ac_pass in
1484     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1485     2)
1486       as_fn_append ac_configure_args1 " '$ac_arg'"
1487       if test $ac_must_keep_next = true; then
1488         ac_must_keep_next=false # Got value, back to normal.
1489       else
1490         case $ac_arg in
1491           *=* | --config-cache | -C | -disable-* | --disable-* \
1492           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1493           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1494           | -with-* | --with-* | -without-* | --without-* | --x)
1495             case "$ac_configure_args0 " in
1496               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1497             esac
1498             ;;
1499           -* ) ac_must_keep_next=true ;;
1500         esac
1501       fi
1502       as_fn_append ac_configure_args " '$ac_arg'"
1503       ;;
1504     esac
1505   done
1506 done
1507 { ac_configure_args0=; unset ac_configure_args0;}
1508 { ac_configure_args1=; unset ac_configure_args1;}
1509
1510 # When interrupted or exit'd, cleanup temporary files, and complete
1511 # config.log.  We remove comments because anyway the quotes in there
1512 # would cause problems or look ugly.
1513 # WARNING: Use '\'' to represent an apostrophe within the trap.
1514 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1515 trap 'exit_status=$?
1516   # Save into config.log some information that might help in debugging.
1517   {
1518     echo
1519
1520     cat <<\_ASBOX
1521 ## ---------------- ##
1522 ## Cache variables. ##
1523 ## ---------------- ##
1524 _ASBOX
1525     echo
1526     # The following way of writing the cache mishandles newlines in values,
1527 (
1528   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1529     eval ac_val=\$$ac_var
1530     case $ac_val in #(
1531     *${as_nl}*)
1532       case $ac_var in #(
1533       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1534 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1535       esac
1536       case $ac_var in #(
1537       _ | IFS | as_nl) ;; #(
1538       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1539       *) { eval $ac_var=; unset $ac_var;} ;;
1540       esac ;;
1541     esac
1542   done
1543   (set) 2>&1 |
1544     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1545     *${as_nl}ac_space=\ *)
1546       sed -n \
1547         "s/'\''/'\''\\\\'\'''\''/g;
1548           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1549       ;; #(
1550     *)
1551       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1552       ;;
1553     esac |
1554     sort
1555 )
1556     echo
1557
1558     cat <<\_ASBOX
1559 ## ----------------- ##
1560 ## Output variables. ##
1561 ## ----------------- ##
1562 _ASBOX
1563     echo
1564     for ac_var in $ac_subst_vars
1565     do
1566       eval ac_val=\$$ac_var
1567       case $ac_val in
1568       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1569       esac
1570       $as_echo "$ac_var='\''$ac_val'\''"
1571     done | sort
1572     echo
1573
1574     if test -n "$ac_subst_files"; then
1575       cat <<\_ASBOX
1576 ## ------------------- ##
1577 ## File substitutions. ##
1578 ## ------------------- ##
1579 _ASBOX
1580       echo
1581       for ac_var in $ac_subst_files
1582       do
1583         eval ac_val=\$$ac_var
1584         case $ac_val in
1585         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1586         esac
1587         $as_echo "$ac_var='\''$ac_val'\''"
1588       done | sort
1589       echo
1590     fi
1591
1592     if test -s confdefs.h; then
1593       cat <<\_ASBOX
1594 ## ----------- ##
1595 ## confdefs.h. ##
1596 ## ----------- ##
1597 _ASBOX
1598       echo
1599       cat confdefs.h
1600       echo
1601     fi
1602     test "$ac_signal" != 0 &&
1603       $as_echo "$as_me: caught signal $ac_signal"
1604     $as_echo "$as_me: exit $exit_status"
1605   } >&5
1606   rm -f core *.core core.conftest.* &&
1607     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1608     exit $exit_status
1609 ' 0
1610 for ac_signal in 1 2 13 15; do
1611   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1612 done
1613 ac_signal=0
1614
1615 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1616 rm -f -r conftest* confdefs.h
1617
1618 $as_echo "/* confdefs.h */" > confdefs.h
1619
1620 # Predefined preprocessor variables.
1621
1622 cat >>confdefs.h <<_ACEOF
1623 #define PACKAGE_NAME "$PACKAGE_NAME"
1624 _ACEOF
1625
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1628 _ACEOF
1629
1630 cat >>confdefs.h <<_ACEOF
1631 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1632 _ACEOF
1633
1634 cat >>confdefs.h <<_ACEOF
1635 #define PACKAGE_STRING "$PACKAGE_STRING"
1636 _ACEOF
1637
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1640 _ACEOF
1641
1642 cat >>confdefs.h <<_ACEOF
1643 #define PACKAGE_URL "$PACKAGE_URL"
1644 _ACEOF
1645
1646
1647 # Let the site file select an alternate cache file if it wants to.
1648 # Prefer an explicitly selected file to automatically selected ones.
1649 ac_site_file1=NONE
1650 ac_site_file2=NONE
1651 if test -n "$CONFIG_SITE"; then
1652   ac_site_file1=$CONFIG_SITE
1653 elif test "x$prefix" != xNONE; then
1654   ac_site_file1=$prefix/share/config.site
1655   ac_site_file2=$prefix/etc/config.site
1656 else
1657   ac_site_file1=$ac_default_prefix/share/config.site
1658   ac_site_file2=$ac_default_prefix/etc/config.site
1659 fi
1660 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1661 do
1662   test "x$ac_site_file" = xNONE && continue
1663   if test -r "$ac_site_file"; then
1664     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1665 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1666     sed 's/^/| /' "$ac_site_file" >&5
1667     . "$ac_site_file"
1668   fi
1669 done
1670
1671 if test -r "$cache_file"; then
1672   # Some versions of bash will fail to source /dev/null (special
1673   # files actually), so we avoid doing that.
1674   if test -f "$cache_file"; then
1675     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1676 $as_echo "$as_me: loading cache $cache_file" >&6;}
1677     case $cache_file in
1678       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1679       *)                      . "./$cache_file";;
1680     esac
1681   fi
1682 else
1683   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1684 $as_echo "$as_me: creating cache $cache_file" >&6;}
1685   >$cache_file
1686 fi
1687
1688 # Check that the precious variables saved in the cache have kept the same
1689 # value.
1690 ac_cache_corrupted=false
1691 for ac_var in $ac_precious_vars; do
1692   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1693   eval ac_new_set=\$ac_env_${ac_var}_set
1694   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1695   eval ac_new_val=\$ac_env_${ac_var}_value
1696   case $ac_old_set,$ac_new_set in
1697     set,)
1698       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1699 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1700       ac_cache_corrupted=: ;;
1701     ,set)
1702       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1703 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1704       ac_cache_corrupted=: ;;
1705     ,);;
1706     *)
1707       if test "x$ac_old_val" != "x$ac_new_val"; then
1708         # differences in whitespace do not lead to failure.
1709         ac_old_val_w=`echo x $ac_old_val`
1710         ac_new_val_w=`echo x $ac_new_val`
1711         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1712           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1713 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1714           ac_cache_corrupted=:
1715         else
1716           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1717 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1718           eval $ac_var=\$ac_old_val
1719         fi
1720         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1721 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1722         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1723 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1724       fi;;
1725   esac
1726   # Pass precious variables to config.status.
1727   if test "$ac_new_set" = set; then
1728     case $ac_new_val in
1729     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1730     *) ac_arg=$ac_var=$ac_new_val ;;
1731     esac
1732     case " $ac_configure_args " in
1733       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1734       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1735     esac
1736   fi
1737 done
1738 if $ac_cache_corrupted; then
1739   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1741   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1742 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1743   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1744 fi
1745 ## -------------------- ##
1746 ## Main body of script. ##
1747 ## -------------------- ##
1748
1749 ac_ext=c
1750 ac_cpp='$CPP $CPPFLAGS'
1751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1754
1755
1756
1757
1758 ac_config_files="$ac_config_files Makefile"
1759
1760
1761 ac_aux_dir=
1762 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1763   for ac_t in install-sh install.sh shtool; do
1764     if test -f "$ac_dir/$ac_t"; then
1765       ac_aux_dir=$ac_dir
1766       ac_install_sh="$ac_aux_dir/$ac_t -c"
1767       break 2
1768     fi
1769   done
1770 done
1771 if test -z "$ac_aux_dir"; then
1772   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1773 fi
1774
1775 # These three variables are undocumented and unsupported,
1776 # and are intended to be withdrawn in a future Autoconf release.
1777 # They can cause serious problems if a builder's source tree is in a directory
1778 # whose full name contains unusual characters.
1779 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1780 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1781 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1782
1783
1784 # Make sure we can run config.sub.
1785 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1786   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1787
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1789 $as_echo_n "checking build system type... " >&6; }
1790 if test "${ac_cv_build+set}" = set; then :
1791   $as_echo_n "(cached) " >&6
1792 else
1793   ac_build_alias=$build_alias
1794 test "x$ac_build_alias" = x &&
1795   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1796 test "x$ac_build_alias" = x &&
1797   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
1798 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1799   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1800
1801 fi
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1803 $as_echo "$ac_cv_build" >&6; }
1804 case $ac_cv_build in
1805 *-*-*) ;;
1806 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
1807 esac
1808 build=$ac_cv_build
1809 ac_save_IFS=$IFS; IFS='-'
1810 set x $ac_cv_build
1811 shift
1812 build_cpu=$1
1813 build_vendor=$2
1814 shift; shift
1815 # Remember, the first character of IFS is used to create $*,
1816 # except with old shells:
1817 build_os=$*
1818 IFS=$ac_save_IFS
1819 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1820
1821
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1823 $as_echo_n "checking host system type... " >&6; }
1824 if test "${ac_cv_host+set}" = set; then :
1825   $as_echo_n "(cached) " >&6
1826 else
1827   if test "x$host_alias" = x; then
1828   ac_cv_host=$ac_cv_build
1829 else
1830   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1831     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1832 fi
1833
1834 fi
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1836 $as_echo "$ac_cv_host" >&6; }
1837 case $ac_cv_host in
1838 *-*-*) ;;
1839 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
1840 esac
1841 host=$ac_cv_host
1842 ac_save_IFS=$IFS; IFS='-'
1843 set x $ac_cv_host
1844 shift
1845 host_cpu=$1
1846 host_vendor=$2
1847 shift; shift
1848 # Remember, the first character of IFS is used to create $*,
1849 # except with old shells:
1850 host_os=$*
1851 IFS=$ac_save_IFS
1852 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1853
1854
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
1856 $as_echo_n "checking target system type... " >&6; }
1857 if test "${ac_cv_target+set}" = set; then :
1858   $as_echo_n "(cached) " >&6
1859 else
1860   if test "x$target_alias" = x; then
1861   ac_cv_target=$ac_cv_host
1862 else
1863   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1864     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1865 fi
1866
1867 fi
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
1869 $as_echo "$ac_cv_target" >&6; }
1870 case $ac_cv_target in
1871 *-*-*) ;;
1872 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
1873 esac
1874 target=$ac_cv_target
1875 ac_save_IFS=$IFS; IFS='-'
1876 set x $ac_cv_target
1877 shift
1878 target_cpu=$1
1879 target_vendor=$2
1880 shift; shift
1881 # Remember, the first character of IFS is used to create $*,
1882 # except with old shells:
1883 target_os=$*
1884 IFS=$ac_save_IFS
1885 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1886
1887
1888 # The aliases save the names the user supplied, while $host etc.
1889 # will get canonicalized.
1890 test -n "$target_alias" &&
1891   test "$program_prefix$program_suffix$program_transform_name" = \
1892     NONENONEs,x,x, &&
1893   program_prefix=${target_alias}-
1894
1895
1896 # Get 'install' or 'install-sh' and its variants.
1897 # Find a good install program.  We prefer a C program (faster),
1898 # so one script is as good as another.  But avoid the broken or
1899 # incompatible versions:
1900 # SysV /etc/install, /usr/sbin/install
1901 # SunOS /usr/etc/install
1902 # IRIX /sbin/install
1903 # AIX /bin/install
1904 # AmigaOS /C/install, which installs bootblocks on floppy discs
1905 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1906 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1907 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1908 # OS/2's system install, which has a completely different semantic
1909 # ./install, which can be erroneously created by make from ./install.sh.
1910 # Reject install programs that cannot install multiple files.
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1912 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1913 if test -z "$INSTALL"; then
1914 if test "${ac_cv_path_install+set}" = set; then :
1915   $as_echo_n "(cached) " >&6
1916 else
1917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
1920   IFS=$as_save_IFS
1921   test -z "$as_dir" && as_dir=.
1922     # Account for people who put trailing slashes in PATH elements.
1923 case $as_dir/ in #((
1924   ./ | .// | /[cC]/* | \
1925   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1926   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1927   /usr/ucb/* ) ;;
1928   *)
1929     # OSF1 and SCO ODT 3.0 have their own names for install.
1930     # Don't use installbsd from OSF since it installs stuff as root
1931     # by default.
1932     for ac_prog in ginstall scoinst install; do
1933       for ac_exec_ext in '' $ac_executable_extensions; do
1934         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1935           if test $ac_prog = install &&
1936             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1937             # AIX install.  It has an incompatible calling convention.
1938             :
1939           elif test $ac_prog = install &&
1940             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1941             # program-specific install script used by HP pwplus--don't use.
1942             :
1943           else
1944             rm -rf conftest.one conftest.two conftest.dir
1945             echo one > conftest.one
1946             echo two > conftest.two
1947             mkdir conftest.dir
1948             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1949               test -s conftest.one && test -s conftest.two &&
1950               test -s conftest.dir/conftest.one &&
1951               test -s conftest.dir/conftest.two
1952             then
1953               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1954               break 3
1955             fi
1956           fi
1957         fi
1958       done
1959     done
1960     ;;
1961 esac
1962
1963   done
1964 IFS=$as_save_IFS
1965
1966 rm -rf conftest.one conftest.two conftest.dir
1967
1968 fi
1969   if test "${ac_cv_path_install+set}" = set; then
1970     INSTALL=$ac_cv_path_install
1971   else
1972     # As a last resort, use the slow shell script.  Don't cache a
1973     # value for INSTALL within a source directory, because that will
1974     # break other packages using the cache if that directory is
1975     # removed, or if the value is a relative name.
1976     INSTALL=$ac_install_sh
1977   fi
1978 fi
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1980 $as_echo "$INSTALL" >&6; }
1981
1982 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1983 # It thinks the first close brace ends the variable substitution.
1984 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1985
1986 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1987
1988 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1989
1990
1991 # We only allow the following 3 targets:
1992 # 1. arm-linux-androideabi (primary target)
1993 # 2. arm-eabi (for Android kernel)
1994 # 3. arm-newlib-eabi (for gcc testing)
1995 # 4. i[3456]86-*-linux-gnu, x86-*-linux-gnu, i[3456]86-*-linux-android, x86-*-linux-android (for x86 targets)
1996 # 5. mips*-*-linux* (for mips targets)
1997
1998 GDB_TARGET=$target
1999 case $target in
2000   arm-unknown-linux-androideabi | arm-unknown-eabi)
2001     BUILD_ANDROID_GCC=yes
2002     GDB_TARGET=arm-elf-linux
2003     ;;
2004   arm-newlib-elf)
2005     BUILD_ANDROID_GCC=no
2006     ;;
2007   i[3456]86-*-linux-gnu | x86_64-*-linux-gnu | i[3456]86-*-linux-android | x86_64-*-linux-android)
2008     BUILD_ANDROID_GCC=yes
2009     ;;
2010   mips*-*-linux*)
2011     BUILD_ANDROID_GCC=yes
2012     ;;
2013   *)
2014     as_fn_error "Unsupported target $target." "$LINENO" 5;
2015 esac
2016
2017
2018 test "$program_prefix" != NONE &&
2019   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2020 # Use a double $ so make ignores it.
2021 test "$program_suffix" != NONE &&
2022   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2023 # Double any \ or $.
2024 # By default was `s,x,x', remove it if useless.
2025 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2026 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2027
2028
2029 # TOPLEVEL_CONFIGURE_ARGUMENTS lifted from top-level configure.ac in gcc.
2030
2031 # Export original configure arguments for use by sub-configures.
2032 # Quote arguments with shell meta charatcers.
2033 TOPLEVEL_CONFIGURE_ARGUMENTS=
2034 TOPLEVEL_NO_GOLD_CONFIGURE_ARGUMENTS=
2035
2036 set -- "$progname" "$@"
2037 for ac_arg
2038 do
2039   case "$ac_arg" in
2040   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2041     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2042     # if the argument is of the form -foo=baz, quote the baz part only
2043     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2044   *) ;;
2045   esac
2046   # Add the quoted argument to the list.
2047   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2048 done
2049 if test "$silent" = yes; then
2050   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2051 fi
2052 # Remove the initial space we just introduced and, as these will be
2053 # expanded by make, quote '$'.
2054 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2055
2056
2057 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
2058 # target, nonopt, and variable assignments.  These are the ones we
2059 # might not want to pass down to subconfigures.  Also strip
2060 # program-prefix, program-suffix, and program-transform-name, so that
2061 # we can pass down a consistent program-transform-name.
2062 baseargs=
2063 keep_next=no
2064 skip_next=no
2065 enable_gold=
2066 enable_ld_default=
2067 eval "set -- $ac_configure_args"
2068 for ac_arg
2069 do
2070   if test X"$skip_next" = X"yes"; then
2071     skip_next=no
2072     continue
2073   fi
2074   if test X"$keep_next" = X"yes"; then
2075     case $ac_arg in
2076       *\'*)
2077         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2078     esac
2079     baseargs="$baseargs '$ac_arg'"
2080     keep_next=no
2081     continue
2082   fi
2083
2084   # Handle separated arguments.  Based on the logic generated by
2085   # autoconf 2.59.
2086   case $ac_arg in
2087     *=* | --config-cache | -C | -disable-* | --disable-* \
2088       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2089       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2090       | -with-* | --with-* | -without-* | --without-* | --x)
2091       separate_arg=no
2092       ;;
2093     -*)
2094       separate_arg=yes
2095       ;;
2096     *)
2097       separate_arg=no
2098       ;;
2099   esac
2100
2101   case "$ac_arg" in
2102     --no*)
2103       continue
2104       ;;
2105     --c* | \
2106     --sr* | \
2107     --ho* | \
2108     --bu* | \
2109     --t* | \
2110     --program-* | \
2111     -cache_file* | \
2112     -srcdir* | \
2113     -host* | \
2114     -build* | \
2115     -target* | \
2116     -program-prefix* | \
2117     -program-suffix* | \
2118     -program-transform-name* )
2119       skip_next=$separate_arg
2120       continue
2121       ;;
2122     -*)
2123       # Strip argument from --enable-gold=*, since our binutils and
2124       # gcc-4.6 take different arguments for dual linker support. We will
2125       # pass --enable-gold=both/gold to binutils and --enable-gold=default
2126       # gcc-4.6 if dual linker is needed.
2127       case "$ac_arg" in
2128         --enable-gold | --enable-gold=* )
2129           enable_gold="$ac_arg"
2130           ac_arg="--enable-gold"
2131           ;;
2132         --disable-gold )
2133           enable_gold=
2134           ;;
2135         --enable-ld=default )
2136           enable_ld_default=yes
2137           ;;
2138         --disable-ld )
2139           enable_ld_default=
2140           ;;
2141       esac
2142
2143       # An option.  Add it.
2144       case $ac_arg in
2145         *\'*)
2146           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2147       esac
2148       baseargs="$baseargs '$ac_arg'"
2149       keep_next=$separate_arg
2150       ;;
2151     *)
2152       # Either a variable assignment, or a nonopt (triplet).  Don't
2153       # pass it down; let the Makefile handle this.
2154       continue
2155       ;;
2156   esac
2157 done
2158 # Remove the initial space we just introduced and, as these will be
2159 # expanded by make, quote '$'.
2160 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2161
2162 # Add in --program-transform-name, after --program-prefix and
2163 # --program-suffix have been applied to it.  Autoconf has already
2164 # doubled dollar signs and backslashes in program_transform_name; we want
2165 # the backslashes un-doubled, and then the entire thing wrapped in single
2166 # quotes, because this will be expanded first by make and then by the shell.
2167 # Also, because we want to override the logic in subdir configure scripts to
2168 # choose program_transform_name, replace any s,x,x, with s,y,y,.
2169 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
2170 ${program_transform_name}
2171 EOF_SED
2172 gcc_transform_name=`cat conftestsed.out`
2173 rm -f conftestsed.out
2174 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2175 if test "$silent" = yes; then
2176   baseargs="$baseargs --silent"
2177 fi
2178
2179
2180
2181
2182 # Strip --with-sysroot, which is really "target" sysroot, from baseargs
2183 # to form host_baseargs for building host libraries.  Passing target
2184 # --with-sysroot is detrimantal (*1). Invent a new option
2185 # --with-host-sysroot if needed in the future.
2186 # Note that baseargs are quoted.
2187 #
2188 # (*1) path dependency_libs= in .libs/libgmpxx.lai has '=' prefix!
2189 #
2190 host_baseargs=
2191 for ac_arg in $baseargs
2192 do
2193   case $ac_arg in
2194   \'--with-sysroot=*\' )
2195     ;;
2196   *)
2197     host_baseargs="$host_baseargs $ac_arg"
2198     ;;
2199   esac
2200 done
2201
2202
2203
2204 ENABLE_GRAPHITE=no
2205 # Check whether --enable-graphite was given.
2206 if test "${enable_graphite+set}" = set; then :
2207   enableval=$enable_graphite;
2208 fi
2209
2210 graphite=yes
2211 if test x${enableval} != xyes; then
2212   graphite=no
2213 fi
2214 if test "$GCC_MIN_VERSION_4_5_0" == "no"; then
2215   graphite=no
2216 fi
2217 ENABLE_GRAPHITE=$graphite
2218
2219
2220 # package to source path
2221 case $srcdir in
2222  /* | A-Za-z:*) package_to_srcdir=$srcdir ;;
2223  *) package_to_srcdir=../$srcdir ;;
2224 esac
2225
2226 #
2227 # Specify tool component versions
2228 #
2229
2230 # macro to check that we have a package. A package x exists if any one
2231 # of the following exists (x is in the format of "tool-version"):
2232 # 1. tool/x
2233 # 2. tool/x.tar.gz
2234 # 3. tool/x.tgz
2235 # 4. tool/x.tar.bz2
2236
2237
2238
2239 # binutils version (default is 2.17)
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target binutils version to build" >&5
2241 $as_echo_n "checking target binutils version to build... " >&6; }
2242
2243 # Check whether --with-binutils-version was given.
2244 if test "${with_binutils_version+set}" = set; then :
2245   withval=$with_binutils_version; if test x"$withval" != x ; then
2246      BINUTILS_VERSION="$withval"
2247    fi
2248 else
2249   BINUTILS_VERSION="2.17"
2250 fi
2251
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BINUTILS_VERSION" >&5
2253 $as_echo "$BINUTILS_VERSION" >&6; }
2254
2255 x=binutils-${BINUTILS_VERSION}; tool=$(echo "$x" | sed -e 's/-.*//'); version=$(echo "$x" | sed -e 's/[^-]*-//'); \
2256 if test \( ! -d $srcdir/../$tool/binutils-${BINUTILS_VERSION} \) -a \( x"$version" != x"none"  \) ; then
2257   if test -f $srcdir/../$tool/binutils-${BINUTILS_VERSION}.tar ; then
2258     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../$tool/binutils-${BINUTILS_VERSION}.tar
2259   elif test -f $srcdir/../$tool/binutils-${BINUTILS_VERSION}.tar.gz ; then
2260     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/binutils-${BINUTILS_VERSION}.tar.gz
2261   elif test -f $srcdir/../$tool/binutils-${BINUTILS_VERSION}.tgz ; then
2262     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/binutils-${BINUTILS_VERSION}.tgz
2263   elif test -f $srcdir/../$tool/binutils-${BINUTILS_VERSION}.tar.bz2 ; then
2264     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../$tool/binutils-${BINUTILS_VERSION}.tar.bz2
2265   elif test -f $srcdir/../tarballs/binutils-${BINUTILS_VERSION}.tar ; then
2266     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../tarballs/binutils-${BINUTILS_VERSION}.tar
2267   elif test -f $srcdir/../tarballs/binutils-${BINUTILS_VERSION}.tar.gz ; then
2268     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/binutils-${BINUTILS_VERSION}.tar.gz
2269   elif test -f $srcdir/../tarballs/binutils-${BINUTILS_VERSION}.tgz ; then
2270     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/binutils-${BINUTILS_VERSION}.tgz
2271   elif test -f $srcdir/../tarballs/binutils-${BINUTILS_VERSION}.tar.bz2 ; then
2272     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../tarballs/binutils-${BINUTILS_VERSION}.tar.bz2
2273   else
2274     as_fn_error "'package binutils-${BINUTILS_VERSION} does not exist.'" "$LINENO" 5
2275   fi
2276 fi
2277
2278
2279 # macro to find binutils version for dual linker support.
2280 # For binutils-2.21 and up, add --enable-gold=default,
2281 # else add --enable-gold=both/gold.
2282
2283
2284 binutils_version_file="${srcdir}/../binutils/binutils-${BINUTILS_VERSION}/bfd/configure.in"
2285 if test -f "${binutils_version_file}"; then
2286   binutils_version_num=`grep AM_INIT_AUTOMAKE ${binutils_version_file} | \
2287                         sed -n "s/AM_INIT_AUTOMAKE[^,]*,*\([^)]*\))/\1/p"`
2288   BINUTILS_MAJOR=`echo $binutils_version_num | sed -e "s/[^0-9].*//"`
2289   BINUTILS_MINOR=`echo $binutils_version_num | \
2290                   sed  -e "s/^[0-9]*\.//" -e "s/[^0-9].*//"`
2291   if test "$BINUTILS_MAJOR" -gt 2 -o \
2292           \( "$BINUTILS_MAJOR" -eq 2 -a "$BINUTILS_MINOR" -ge 21 \); then
2293     BINUTILS_MIN_VERSION_2_21="yes"
2294   else
2295     BINUTILS_MIN_VERSION_2_21="no"
2296   fi
2297 else
2298   # No configure file found. assume yes.
2299   BINUTILS_MIN_VERSION_2_21="yes"
2300 fi
2301
2302
2303 # gold binutils version (default is the same version as the main
2304 # binutils package).
2305 GOLD_VERSION="$BINUTILS_VERSION"
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target gold binutils version to build" >&5
2307 $as_echo_n "checking target gold binutils version to build... " >&6; }
2308
2309 # Check whether --with-gold-version was given.
2310 if test "${with_gold_version+set}" = set; then :
2311   withval=$with_gold_version; if test x"$withval" != x ; then
2312      GOLD_VERSION="$withval"
2313    fi
2314 fi
2315
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOLD_VERSION" >&5
2317 $as_echo "$GOLD_VERSION" >&6; }
2318
2319
2320 # Skip check if we are using the main binutils for gold.
2321 GOLD_MIN_VERSION_2_21="$BINUTILS_MIN_VERSION_2_21"
2322 if test x"$GOLD_VERSION" != x"$BINUTILS_VERSION" ; then
2323   x=binutils-${GOLD_VERSION}; tool=$(echo "$x" | sed -e 's/-.*//'); version=$(echo "$x" | sed -e 's/[^-]*-//'); \
2324 if test \( ! -d $srcdir/../$tool/binutils-${GOLD_VERSION} \) -a \( x"$version" != x"none"  \) ; then
2325   if test -f $srcdir/../$tool/binutils-${GOLD_VERSION}.tar ; then
2326     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../$tool/binutils-${GOLD_VERSION}.tar
2327   elif test -f $srcdir/../$tool/binutils-${GOLD_VERSION}.tar.gz ; then
2328     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/binutils-${GOLD_VERSION}.tar.gz
2329   elif test -f $srcdir/../$tool/binutils-${GOLD_VERSION}.tgz ; then
2330     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/binutils-${GOLD_VERSION}.tgz
2331   elif test -f $srcdir/../$tool/binutils-${GOLD_VERSION}.tar.bz2 ; then
2332     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../$tool/binutils-${GOLD_VERSION}.tar.bz2
2333   elif test -f $srcdir/../tarballs/binutils-${GOLD_VERSION}.tar ; then
2334     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../tarballs/binutils-${GOLD_VERSION}.tar
2335   elif test -f $srcdir/../tarballs/binutils-${GOLD_VERSION}.tar.gz ; then
2336     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/binutils-${GOLD_VERSION}.tar.gz
2337   elif test -f $srcdir/../tarballs/binutils-${GOLD_VERSION}.tgz ; then
2338     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/binutils-${GOLD_VERSION}.tgz
2339   elif test -f $srcdir/../tarballs/binutils-${GOLD_VERSION}.tar.bz2 ; then
2340     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../tarballs/binutils-${GOLD_VERSION}.tar.bz2
2341   else
2342     as_fn_error "'package binutils-${GOLD_VERSION} does not exist.'" "$LINENO" 5
2343   fi
2344 fi
2345   binutils_version_file="${srcdir}/../binutils/binutils-${GOLD_VERSION}/bfd/configure.in"
2346 if test -f "${binutils_version_file}"; then
2347   binutils_version_num=`grep AM_INIT_AUTOMAKE ${binutils_version_file} | \
2348                         sed -n "s/AM_INIT_AUTOMAKE[^,]*,*\([^)]*\))/\1/p"`
2349   BINUTILS_MAJOR=`echo $binutils_version_num | sed -e "s/[^0-9].*//"`
2350   BINUTILS_MINOR=`echo $binutils_version_num | \
2351                   sed  -e "s/^[0-9]*\.//" -e "s/[^0-9].*//"`
2352   if test "$BINUTILS_MAJOR" -gt 2 -o \
2353           \( "$BINUTILS_MAJOR" -eq 2 -a "$BINUTILS_MINOR" -ge 21 \); then
2354     GOLD_MIN_VERSION_2_21="yes"
2355   else
2356     GOLD_MIN_VERSION_2_21="no"
2357   fi
2358 else
2359   # No configure file found. assume yes.
2360   GOLD_MIN_VERSION_2_21="yes"
2361 fi
2362 fi
2363
2364
2365 # gcc version (default is 4.2.1)
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target gcc version to build" >&5
2367 $as_echo_n "checking target gcc version to build... " >&6; }
2368
2369 # Check whether --with-gcc-version was given.
2370 if test "${with_gcc_version+set}" = set; then :
2371   withval=$with_gcc_version; if test x"$withval" != x ; then
2372      GCC_VERSION="$withval"
2373    fi
2374 else
2375   GCC_VERSION="4.2.1"
2376 fi
2377
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
2379 $as_echo "$GCC_VERSION" >&6; }
2380
2381 x=gcc-${GCC_VERSION}; tool=$(echo "$x" | sed -e 's/-.*//'); version=$(echo "$x" | sed -e 's/[^-]*-//'); \
2382 if test \( ! -d $srcdir/../$tool/gcc-${GCC_VERSION} \) -a \( x"$version" != x"none"  \) ; then
2383   if test -f $srcdir/../$tool/gcc-${GCC_VERSION}.tar ; then
2384     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../$tool/gcc-${GCC_VERSION}.tar
2385   elif test -f $srcdir/../$tool/gcc-${GCC_VERSION}.tar.gz ; then
2386     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/gcc-${GCC_VERSION}.tar.gz
2387   elif test -f $srcdir/../$tool/gcc-${GCC_VERSION}.tgz ; then
2388     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/gcc-${GCC_VERSION}.tgz
2389   elif test -f $srcdir/../$tool/gcc-${GCC_VERSION}.tar.bz2 ; then
2390     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../$tool/gcc-${GCC_VERSION}.tar.bz2
2391   elif test -f $srcdir/../tarballs/gcc-${GCC_VERSION}.tar ; then
2392     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../tarballs/gcc-${GCC_VERSION}.tar
2393   elif test -f $srcdir/../tarballs/gcc-${GCC_VERSION}.tar.gz ; then
2394     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/gcc-${GCC_VERSION}.tar.gz
2395   elif test -f $srcdir/../tarballs/gcc-${GCC_VERSION}.tgz ; then
2396     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/gcc-${GCC_VERSION}.tgz
2397   elif test -f $srcdir/../tarballs/gcc-${GCC_VERSION}.tar.bz2 ; then
2398     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../tarballs/gcc-${GCC_VERSION}.tar.bz2
2399   else
2400     as_fn_error "'package gcc-${GCC_VERSION} does not exist.'" "$LINENO" 5
2401   fi
2402 fi
2403
2404 # figure out if we need to build gmp and mpfr for gcc 4.3.0+
2405 gcc_version_file="${srcdir}/../gcc/gcc-${GCC_VERSION}/gcc/BASE-VER"
2406 if test -f "${gcc_version_file}"; then
2407   GCC_MAJOR=`head -n 1 $gcc_version_file | sed  -e "s/[^0-9].*//"`
2408   GCC_MINOR=`head -n 1 $gcc_version_file | \
2409             sed  -e "s/^[0-9]*\.//" -e "s/[^0-9].*//"`
2410   if test "$GCC_MAJOR" -gt 4 -o \
2411           \( "$GCC_MAJOR" -eq 4 -a "$GCC_MINOR" -ge 3 \) ; then
2412     GCC_MIN_VERSION_4_3_0="yes"
2413   else
2414     GCC_MIN_VERSION_4_3_0="no"
2415   fi
2416   if test "$GCC_MAJOR" -gt 4 -o \
2417               \( "$GCC_MAJOR" -eq 4 -a "$GCC_MINOR" -ge 5 \) ; then
2418     GCC_MIN_VERSION_4_5_0="yes"
2419   else
2420     GCC_MIN_VERSION_4_5_0="no"
2421   fi
2422 else
2423   # No version file, assume it is trunk
2424   GCC_MIN_VERSION_4_3_0="yes"
2425   GCC_MIN_VERSION_4_5_0="yes"
2426 fi
2427
2428
2429
2430 # newlib version (default is 1.16.0)
2431 # newlib is only used for arm-newlib-eabi for testing
2432 if test x$target == xarm-newlib-elf ; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target newlib version to build" >&5
2434 $as_echo_n "checking target newlib version to build... " >&6; }
2435
2436 # Check whether --with-newlib-version was given.
2437 if test "${with_newlib_version+set}" = set; then :
2438   withval=$with_newlib_version; if test x"$withval" != x ; then
2439      NEWLIB_VERSION="$withval"
2440    fi
2441 else
2442   NEWLIB_VERSION="1.16.0"
2443 fi
2444
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEWLIB_VERSION" >&5
2446 $as_echo "$NEWLIB_VERSION" >&6; }
2447
2448 x=newlib-${NEWLIB_VERSION}; tool=$(echo "$x" | sed -e 's/-.*//'); version=$(echo "$x" | sed -e 's/[^-]*-//'); \
2449 if test \( ! -d $srcdir/../$tool/newlib-${NEWLIB_VERSION} \) -a \( x"$version" != x"none"  \) ; then
2450   if test -f $srcdir/../$tool/newlib-${NEWLIB_VERSION}.tar ; then
2451     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../$tool/newlib-${NEWLIB_VERSION}.tar
2452   elif test -f $srcdir/../$tool/newlib-${NEWLIB_VERSION}.tar.gz ; then
2453     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/newlib-${NEWLIB_VERSION}.tar.gz
2454   elif test -f $srcdir/../$tool/newlib-${NEWLIB_VERSION}.tgz ; then
2455     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/newlib-${NEWLIB_VERSION}.tgz
2456   elif test -f $srcdir/../$tool/newlib-${NEWLIB_VERSION}.tar.bz2 ; then
2457     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../$tool/newlib-${NEWLIB_VERSION}.tar.bz2
2458   elif test -f $srcdir/../tarballs/newlib-${NEWLIB_VERSION}.tar ; then
2459     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../tarballs/newlib-${NEWLIB_VERSION}.tar
2460   elif test -f $srcdir/../tarballs/newlib-${NEWLIB_VERSION}.tar.gz ; then
2461     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/newlib-${NEWLIB_VERSION}.tar.gz
2462   elif test -f $srcdir/../tarballs/newlib-${NEWLIB_VERSION}.tgz ; then
2463     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/newlib-${NEWLIB_VERSION}.tgz
2464   elif test -f $srcdir/../tarballs/newlib-${NEWLIB_VERSION}.tar.bz2 ; then
2465     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../tarballs/newlib-${NEWLIB_VERSION}.tar.bz2
2466   else
2467     as_fn_error "'package newlib-${NEWLIB_VERSION} does not exist.'" "$LINENO" 5
2468   fi
2469 fi
2470 fi
2471
2472 if test "$GCC_MIN_VERSION_4_3_0" == "yes"; then
2473 # gmp version (default is 4.2.2)
2474 # gmp is only used for gcc version higher than 4.3.0
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gmp version" >&5
2476 $as_echo_n "checking gmp version... " >&6; }
2477
2478 # Check whether --with-gmp-version was given.
2479 if test "${with_gmp_version+set}" = set; then :
2480   withval=$with_gmp_version; if test x"$withval" != x ; then
2481      GMP_VERSION="$withval"
2482    fi
2483 else
2484   GMP_VERSION="4.2.2"
2485 fi
2486
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMP_VERSION" >&5
2488 $as_echo "$GMP_VERSION" >&6; }
2489 x=gmp-${GMP_VERSION}; tool=$(echo "$x" | sed -e 's/-.*//'); version=$(echo "$x" | sed -e 's/[^-]*-//'); \
2490 if test \( ! -d $srcdir/../$tool/gmp-${GMP_VERSION} \) -a \( x"$version" != x"none"  \) ; then
2491   if test -f $srcdir/../$tool/gmp-${GMP_VERSION}.tar ; then
2492     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../$tool/gmp-${GMP_VERSION}.tar
2493   elif test -f $srcdir/../$tool/gmp-${GMP_VERSION}.tar.gz ; then
2494     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/gmp-${GMP_VERSION}.tar.gz
2495   elif test -f $srcdir/../$tool/gmp-${GMP_VERSION}.tgz ; then
2496     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/gmp-${GMP_VERSION}.tgz
2497   elif test -f $srcdir/../$tool/gmp-${GMP_VERSION}.tar.bz2 ; then
2498     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../$tool/gmp-${GMP_VERSION}.tar.bz2
2499   elif test -f $srcdir/../tarballs/gmp-${GMP_VERSION}.tar ; then
2500     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../tarballs/gmp-${GMP_VERSION}.tar
2501   elif test -f $srcdir/../tarballs/gmp-${GMP_VERSION}.tar.gz ; then
2502     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/gmp-${GMP_VERSION}.tar.gz
2503   elif test -f $srcdir/../tarballs/gmp-${GMP_VERSION}.tgz ; then
2504     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/gmp-${GMP_VERSION}.tgz
2505   elif test -f $srcdir/../tarballs/gmp-${GMP_VERSION}.tar.bz2 ; then
2506     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../tarballs/gmp-${GMP_VERSION}.tar.bz2
2507   else
2508     as_fn_error "'package gmp-${GMP_VERSION} does not exist.'" "$LINENO" 5
2509   fi
2510 fi
2511
2512 # mpfr version (default is 2.3.0)
2513 # mpfr is only used for gcc version higher than 4.3.0
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mpfr version" >&5
2515 $as_echo_n "checking mpfr version... " >&6; }
2516
2517 # Check whether --with-mpfr-version was given.
2518 if test "${with_mpfr_version+set}" = set; then :
2519   withval=$with_mpfr_version; if test x"$withval" != x ; then
2520      MPFR_VERSION="$withval"
2521    fi
2522 else
2523   MPFR_VERSION="2.3.0"
2524 fi
2525
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPFR_VERSION" >&5
2527 $as_echo "$MPFR_VERSION" >&6; }
2528 x=mpfr-${MPFR_VERSION}; tool=$(echo "$x" | sed -e 's/-.*//'); version=$(echo "$x" | sed -e 's/[^-]*-//'); \
2529 if test \( ! -d $srcdir/../$tool/mpfr-${MPFR_VERSION} \) -a \( x"$version" != x"none"  \) ; then
2530   if test -f $srcdir/../$tool/mpfr-${MPFR_VERSION}.tar ; then
2531     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../$tool/mpfr-${MPFR_VERSION}.tar
2532   elif test -f $srcdir/../$tool/mpfr-${MPFR_VERSION}.tar.gz ; then
2533     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/mpfr-${MPFR_VERSION}.tar.gz
2534   elif test -f $srcdir/../$tool/mpfr-${MPFR_VERSION}.tgz ; then
2535     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/mpfr-${MPFR_VERSION}.tgz
2536   elif test -f $srcdir/../$tool/mpfr-${MPFR_VERSION}.tar.bz2 ; then
2537     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../$tool/mpfr-${MPFR_VERSION}.tar.bz2
2538   elif test -f $srcdir/../tarballs/mpfr-${MPFR_VERSION}.tar ; then
2539     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../tarballs/mpfr-${MPFR_VERSION}.tar
2540   elif test -f $srcdir/../tarballs/mpfr-${MPFR_VERSION}.tar.gz ; then
2541     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/mpfr-${MPFR_VERSION}.tar.gz
2542   elif test -f $srcdir/../tarballs/mpfr-${MPFR_VERSION}.tgz ; then
2543     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/mpfr-${MPFR_VERSION}.tgz
2544   elif test -f $srcdir/../tarballs/mpfr-${MPFR_VERSION}.tar.bz2 ; then
2545     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../tarballs/mpfr-${MPFR_VERSION}.tar.bz2
2546   else
2547     as_fn_error "'package mpfr-${MPFR_VERSION} does not exist.'" "$LINENO" 5
2548   fi
2549 fi
2550
2551 fi
2552
2553
2554
2555 if test "$GCC_MIN_VERSION_4_5_0" == "yes"; then
2556 # mpc version (default is 0.8.1)
2557 # mpc is only used for gcc version higher than 4.5.0
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mpc version" >&5
2559 $as_echo_n "checking mpc version... " >&6; }
2560
2561 # Check whether --with-mpc-version was given.
2562 if test "${with_mpc_version+set}" = set; then :
2563   withval=$with_mpc_version; if test x"$withval" != x; then
2564      MPC_VERSION="$withval"
2565    fi
2566 else
2567   MPC_VERSION="0.8.1"
2568 fi
2569
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPC_VERSION" >&5
2571 $as_echo "$MPC_VERSION" >&6; }
2572 x=mpc-${MPC_VERSION}; tool=$(echo "$x" | sed -e 's/-.*//'); version=$(echo "$x" | sed -e 's/[^-]*-//'); \
2573 if test \( ! -d $srcdir/../$tool/mpc-${MPC_VERSION} \) -a \( x"$version" != x"none"  \) ; then
2574   if test -f $srcdir/../$tool/mpc-${MPC_VERSION}.tar ; then
2575     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../$tool/mpc-${MPC_VERSION}.tar
2576   elif test -f $srcdir/../$tool/mpc-${MPC_VERSION}.tar.gz ; then
2577     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/mpc-${MPC_VERSION}.tar.gz
2578   elif test -f $srcdir/../$tool/mpc-${MPC_VERSION}.tgz ; then
2579     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/mpc-${MPC_VERSION}.tgz
2580   elif test -f $srcdir/../$tool/mpc-${MPC_VERSION}.tar.bz2 ; then
2581     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../$tool/mpc-${MPC_VERSION}.tar.bz2
2582   elif test -f $srcdir/../tarballs/mpc-${MPC_VERSION}.tar ; then
2583     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../tarballs/mpc-${MPC_VERSION}.tar
2584   elif test -f $srcdir/../tarballs/mpc-${MPC_VERSION}.tar.gz ; then
2585     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/mpc-${MPC_VERSION}.tar.gz
2586   elif test -f $srcdir/../tarballs/mpc-${MPC_VERSION}.tgz ; then
2587     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/mpc-${MPC_VERSION}.tgz
2588   elif test -f $srcdir/../tarballs/mpc-${MPC_VERSION}.tar.bz2 ; then
2589     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../tarballs/mpc-${MPC_VERSION}.tar.bz2
2590   else
2591     as_fn_error "'package mpc-${MPC_VERSION} does not exist.'" "$LINENO" 5
2592   fi
2593 fi
2594 fi
2595
2596
2597 if test "$ENABLE_GRAPHITE" == "yes"; then
2598 # ppl version (default is 0.11.2)
2599 # ppl is only used for gcc 4.5+ with graphite optimization.
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ppl version" >&5
2601 $as_echo_n "checking ppl version... " >&6; }
2602
2603 # Check whether --with-ppl-version was given.
2604 if test "${with_ppl_version+set}" = set; then :
2605   withval=$with_ppl_version; if test x"$withval" != x ; then
2606      PPL_VERSION="$withval"
2607    fi
2608 else
2609   PPL_VERSION="0.11.2"
2610 fi
2611
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPL_VERSION" >&5
2613 $as_echo "$PPL_VERSION" >&6; }
2614 x=ppl-${PPL_VERSION}; tool=$(echo "$x" | sed -e 's/-.*//'); version=$(echo "$x" | sed -e 's/[^-]*-//'); \
2615 if test \( ! -d $srcdir/../$tool/ppl-${PPL_VERSION} \) -a \( x"$version" != x"none"  \) ; then
2616   if test -f $srcdir/../$tool/ppl-${PPL_VERSION}.tar ; then
2617     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../$tool/ppl-${PPL_VERSION}.tar
2618   elif test -f $srcdir/../$tool/ppl-${PPL_VERSION}.tar.gz ; then
2619     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/ppl-${PPL_VERSION}.tar.gz
2620   elif test -f $srcdir/../$tool/ppl-${PPL_VERSION}.tgz ; then
2621     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/ppl-${PPL_VERSION}.tgz
2622   elif test -f $srcdir/../$tool/ppl-${PPL_VERSION}.tar.bz2 ; then
2623     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../$tool/ppl-${PPL_VERSION}.tar.bz2
2624   elif test -f $srcdir/../tarballs/ppl-${PPL_VERSION}.tar ; then
2625     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../tarballs/ppl-${PPL_VERSION}.tar
2626   elif test -f $srcdir/../tarballs/ppl-${PPL_VERSION}.tar.gz ; then
2627     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/ppl-${PPL_VERSION}.tar.gz
2628   elif test -f $srcdir/../tarballs/ppl-${PPL_VERSION}.tgz ; then
2629     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/ppl-${PPL_VERSION}.tgz
2630   elif test -f $srcdir/../tarballs/ppl-${PPL_VERSION}.tar.bz2 ; then
2631     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../tarballs/ppl-${PPL_VERSION}.tar.bz2
2632   else
2633     as_fn_error "'package ppl-${PPL_VERSION} does not exist.'" "$LINENO" 5
2634   fi
2635 fi
2636 fi
2637
2638
2639 if test "$ENABLE_GRAPHITE" == "yes"; then
2640 # cloog-ppl or cloog version (default is 0.15.9)
2641 # cloog is only used for gcc 4.5+ with graphite optimization.
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cloog version" >&5
2643 $as_echo_n "checking cloog version... " >&6; }
2644
2645 # Check whether --with-cloog-version was given.
2646 if test "${with_cloog_version+set}" = set; then :
2647   withval=$with_cloog_version; if test x"$withval" != x ; then
2648      CLOOG_VERSION="$withval"
2649    fi
2650 else
2651   CLOOG_VERSION="0.15.9"
2652 fi
2653
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOOG_VERSION" >&5
2655 $as_echo "$CLOOG_VERSION" >&6; }
2656 case $CLOOG_VERSION in
2657   0.15*)
2658     # CLooG/PPL relies on the PPL for version 0.15.x
2659     CLOOG_VERSION="ppl-$CLOOG_VERSION"
2660     ;;
2661   0.16*|0.17*)
2662     # CLooG 0.16+ has its own embedded polyhedral library
2663     CLOOG_BACKEND="--enable-cloog-backend=isl"
2664     ;;
2665   *)
2666     as_fn_error "Unsupported cloog version" "$LINENO" 5;
2667 esac
2668 x=cloog-${CLOOG_VERSION}; tool=$(echo "$x" | sed -e 's/-.*//'); version=$(echo "$x" | sed -e 's/[^-]*-//'); \
2669 if test \( ! -d $srcdir/../$tool/cloog-${CLOOG_VERSION} \) -a \( x"$version" != x"none"  \) ; then
2670   if test -f $srcdir/../$tool/cloog-${CLOOG_VERSION}.tar ; then
2671     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../$tool/cloog-${CLOOG_VERSION}.tar
2672   elif test -f $srcdir/../$tool/cloog-${CLOOG_VERSION}.tar.gz ; then
2673     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/cloog-${CLOOG_VERSION}.tar.gz
2674   elif test -f $srcdir/../$tool/cloog-${CLOOG_VERSION}.tgz ; then
2675     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/cloog-${CLOOG_VERSION}.tgz
2676   elif test -f $srcdir/../$tool/cloog-${CLOOG_VERSION}.tar.bz2 ; then
2677     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../$tool/cloog-${CLOOG_VERSION}.tar.bz2
2678   elif test -f $srcdir/../tarballs/cloog-${CLOOG_VERSION}.tar ; then
2679     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../tarballs/cloog-${CLOOG_VERSION}.tar
2680   elif test -f $srcdir/../tarballs/cloog-${CLOOG_VERSION}.tar.gz ; then
2681     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/cloog-${CLOOG_VERSION}.tar.gz
2682   elif test -f $srcdir/../tarballs/cloog-${CLOOG_VERSION}.tgz ; then
2683     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/cloog-${CLOOG_VERSION}.tgz
2684   elif test -f $srcdir/../tarballs/cloog-${CLOOG_VERSION}.tar.bz2 ; then
2685     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../tarballs/cloog-${CLOOG_VERSION}.tar.bz2
2686   else
2687     as_fn_error "'package cloog-${CLOOG_VERSION} does not exist.'" "$LINENO" 5
2688   fi
2689 fi
2690 fi
2691
2692
2693 # gdb version (default is 6.6)
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target gdb version to build" >&5
2695 $as_echo_n "checking target gdb version to build... " >&6; }
2696
2697 # Check whether --with-gdb-version was given.
2698 if test "${with_gdb_version+set}" = set; then :
2699   withval=$with_gdb_version; if test x"$withval" != x ; then
2700      GDB_VERSION="$withval"
2701    fi
2702 else
2703   GDB_VERSION="6.6"
2704 fi
2705
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB_VERSION" >&5
2707 $as_echo "$GDB_VERSION" >&6; }
2708
2709 x=gdb-${GDB_VERSION}; tool=$(echo "$x" | sed -e 's/-.*//'); version=$(echo "$x" | sed -e 's/[^-]*-//'); \
2710 if test \( ! -d $srcdir/../$tool/gdb-${GDB_VERSION} \) -a \( x"$version" != x"none"  \) ; then
2711   if test -f $srcdir/../$tool/gdb-${GDB_VERSION}.tar ; then
2712     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../$tool/gdb-${GDB_VERSION}.tar
2713   elif test -f $srcdir/../$tool/gdb-${GDB_VERSION}.tar.gz ; then
2714     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/gdb-${GDB_VERSION}.tar.gz
2715   elif test -f $srcdir/../$tool/gdb-${GDB_VERSION}.tgz ; then
2716     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/gdb-${GDB_VERSION}.tgz
2717   elif test -f $srcdir/../$tool/gdb-${GDB_VERSION}.tar.bz2 ; then
2718     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../$tool/gdb-${GDB_VERSION}.tar.bz2
2719   elif test -f $srcdir/../tarballs/gdb-${GDB_VERSION}.tar ; then
2720     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../tarballs/gdb-${GDB_VERSION}.tar
2721   elif test -f $srcdir/../tarballs/gdb-${GDB_VERSION}.tar.gz ; then
2722     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/gdb-${GDB_VERSION}.tar.gz
2723   elif test -f $srcdir/../tarballs/gdb-${GDB_VERSION}.tgz ; then
2724     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/gdb-${GDB_VERSION}.tgz
2725   elif test -f $srcdir/../tarballs/gdb-${GDB_VERSION}.tar.bz2 ; then
2726     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../tarballs/gdb-${GDB_VERSION}.tar.bz2
2727   else
2728     as_fn_error "'package gdb-${GDB_VERSION} does not exist.'" "$LINENO" 5
2729   fi
2730 fi
2731
2732 # figure out if we need to build expat for gdb 7.2+
2733 gdb_version_file="${srcdir}/../gdb/gdb-${GDB_VERSION}/gdb/version.in"
2734 if test -f "${gdb_version_file}"; then
2735   GDB_MAJOR=`head -n 1 $gdb_version_file | sed  -e "s/[^0-9].*//"`
2736   GDB_MINOR=`head -n 1 $gdb_version_file | \
2737             sed  -e "s/^[0-9]*\.//" -e "s/[^0-9].*//"`
2738   if test "$GDB_MAJOR" -gt 7 -o \
2739           \( "$GDB_MAJOR" -eq 7 -a "$GDB_MINOR" -ge 2 \) ; then
2740     GDB_MIN_VERSION_7_2="yes"
2741   else
2742     GDB_MIN_VERSION_7_2="no"
2743   fi
2744 else
2745   # No version file, assume it is trunk
2746   GDB_MIN_VERSION_7_2="yes"
2747 fi
2748
2749
2750 if test "$GDB_MIN_VERSION_7_2" == "yes"; then
2751 # expat version (default is 2.0.1)
2752 # expat is only used for gdb version higher than 7.2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking expat version" >&5
2754 $as_echo_n "checking expat version... " >&6; }
2755
2756 # Check whether --with-expat-version was given.
2757 if test "${with_expat_version+set}" = set; then :
2758   withval=$with_expat_version; if test x"$withval" != x ; then
2759      EXPAT_VERSION="$withval"
2760    fi
2761 else
2762   EXPAT_VERSION="2.0.1"
2763 fi
2764
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPAT_VERSION" >&5
2766 $as_echo "$EXPAT_VERSION" >&6; }
2767 x=expat-${EXPAT_VERSION}; tool=$(echo "$x" | sed -e 's/-.*//'); version=$(echo "$x" | sed -e 's/[^-]*-//'); \
2768 if test \( ! -d $srcdir/../$tool/expat-${EXPAT_VERSION} \) -a \( x"$version" != x"none"  \) ; then
2769   if test -f $srcdir/../$tool/expat-${EXPAT_VERSION}.tar ; then
2770     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../$tool/expat-${EXPAT_VERSION}.tar
2771   elif test -f $srcdir/../$tool/expat-${EXPAT_VERSION}.tar.gz ; then
2772     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/expat-${EXPAT_VERSION}.tar.gz
2773   elif test -f $srcdir/../$tool/expat-${EXPAT_VERSION}.tgz ; then
2774     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../$tool/expat-${EXPAT_VERSION}.tgz
2775   elif test -f $srcdir/../$tool/expat-${EXPAT_VERSION}.tar.bz2 ; then
2776     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../$tool/expat-${EXPAT_VERSION}.tar.bz2
2777   elif test -f $srcdir/../tarballs/expat-${EXPAT_VERSION}.tar ; then
2778     mkdir -p temp-src && tar -C temp-src -xf $srcdir/../tarballs/expat-${EXPAT_VERSION}.tar
2779   elif test -f $srcdir/../tarballs/expat-${EXPAT_VERSION}.tar.gz ; then
2780     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/expat-${EXPAT_VERSION}.tar.gz
2781   elif test -f $srcdir/../tarballs/expat-${EXPAT_VERSION}.tgz ; then
2782     mkdir -p temp-src && tar -C temp-src -xzf $srcdir/../tarballs/expat-${EXPAT_VERSION}.tgz
2783   elif test -f $srcdir/../tarballs/expat-${EXPAT_VERSION}.tar.bz2 ; then
2784     mkdir -p temp-src && tar -C temp-src -xjf $srcdir/../tarballs/expat-${EXPAT_VERSION}.tar.bz2
2785   else
2786     as_fn_error "'package expat-${EXPAT_VERSION} does not exist.'" "$LINENO" 5
2787   fi
2788 fi
2789 fi
2790
2791
2792 # For certain targets, with gdb 7.2+, the proper gdb target is
2793 # arm-linux-android.
2794 if test "$GDB_MIN_VERSION_7_2" == "yes"; then
2795 case $target in
2796   arm-unknown-linux-androideabi | arm-unknown-eabi)
2797     GDB_TARGET=arm-linux-android
2798     ;;
2799     *)
2800     ;;
2801 esac
2802 fi
2803
2804 # Sysroot location
2805
2806 # Check whether --with-sysroot was given.
2807 if test "${with_sysroot+set}" = set; then :
2808   withval=$with_sysroot; if test x"$withval" != x ; then
2809      if test $build != $host ; then
2810        case "$withval" in
2811          "$prefix"|"${prefix%/}/"*)
2812            ;;
2813          *)
2814            as_fn_error "'Target sysroot must be a subdirectory of <prefix> for canadian cross build $prefix ; $withval'" "$LINENO" 5
2815            ;;
2816        esac
2817      fi
2818
2819      sysroot="$withval"
2820    fi
2821 else
2822   if test $build != $host ; then
2823    as_fn_error "'Target sysroot is not set for canadian cross build'" "$LINENO" 5
2824  fi
2825 fi
2826
2827
2828
2829 # Specify a location for mpc
2830
2831 # Check whether --with-mpc was given.
2832 if test "${with_mpc+set}" = set; then :
2833   withval=$with_mpc; if test -d "$withval" ; then
2834      have_mpc="$withval"
2835      have_mpfr="$withval"
2836      have_gmp="$withval"
2837    elif test x"$withval" != x"no"; then
2838      as_fn_error "invalid value for --with-mpc" "$LINENO" 5
2839    else
2840      have_mpc=no
2841    fi
2842 else
2843   have_mpc=no
2844 fi
2845
2846
2847
2848 # Specify a location for mpfr
2849
2850 # Check whether --with-mpfr was given.
2851 if test "${with_mpfr+set}" = set; then :
2852   withval=$with_mpfr; if test -d "$withval" ; then
2853      have_mpfr="$withval"
2854      have_gmp="$withval"
2855    elif test x"$withval" != x"no"; then
2856      as_fn_error "invalid value for --with-mpfr" "$LINENO" 5
2857    else
2858      have_mpfr=no
2859    fi
2860 else
2861   have_mpfr=no
2862 fi
2863
2864
2865
2866 # Specify a location for gmp
2867
2868 # Check whether --with-gmp was given.
2869 if test "${with_gmp+set}" = set; then :
2870   withval=$with_gmp; if test -d "$withval" ; then
2871      have_gmp="$withval"
2872    elif test x"$withval" != x"no"; then
2873      as_fn_error "invalid value for --with-gmp" "$LINENO" 5
2874    else
2875      have_gmp=no
2876    fi
2877 else
2878   have_gmp=no
2879 fi
2880
2881
2882
2883 # Specify a location for ppl
2884
2885 # Check whether --with-ppl was given.
2886 if test "${with_ppl+set}" = set; then :
2887   withval=$with_ppl; if test -d "$withval" ; then
2888      have_ppl="$withval"
2889    elif test x"$withval" != x"no"; then
2890      as_fn_error "invalid value for --with-ppl" "$LINENO" 5
2891    else
2892      have_ppl=no
2893    fi
2894 else
2895   have_ppl=no
2896 fi
2897
2898
2899
2900 # Specify a location for cloog
2901
2902 # Check whether --with-cloog was given.
2903 if test "${with_cloog+set}" = set; then :
2904   withval=$with_cloog; if test -d "$withval" ; then
2905      have_cloog="$withval"
2906    elif test x"$withval" != x"no"; then
2907      as_fn_error "invalid value for --with-cloog" "$LINENO" 5
2908    else
2909      have_cloog=no
2910    fi
2911 else
2912   have_cloog=no
2913 fi
2914
2915
2916
2917 # Specify a location for expat
2918
2919 # Check whether --with-expat was given.
2920 if test "${with_expat+set}" = set; then :
2921   withval=$with_expat; if test -d "$withval" ; then
2922      have_expat="$withval"
2923    elif test x"$withval" != x"no"; then
2924      as_fn_error "invalid value for --with-expat" "$LINENO" 5
2925    else
2926      have_expat=no
2927    fi
2928 else
2929   have_expat=no
2930 fi
2931
2932
2933
2934 cat >confcache <<\_ACEOF
2935 # This file is a shell script that caches the results of configure
2936 # tests run on this system so they can be shared between configure
2937 # scripts and configure runs, see configure's option --config-cache.
2938 # It is not useful on other systems.  If it contains results you don't
2939 # want to keep, you may remove or edit it.
2940 #
2941 # config.status only pays attention to the cache file if you give it
2942 # the --recheck option to rerun configure.
2943 #
2944 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2945 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2946 # following values.
2947
2948 _ACEOF
2949
2950 # The following way of writing the cache mishandles newlines in values,
2951 # but we know of no workaround that is simple, portable, and efficient.
2952 # So, we kill variables containing newlines.
2953 # Ultrix sh set writes to stderr and can't be redirected directly,
2954 # and sets the high bit in the cache file unless we assign to the vars.
2955 (
2956   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2957     eval ac_val=\$$ac_var
2958     case $ac_val in #(
2959     *${as_nl}*)
2960       case $ac_var in #(
2961       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2963       esac
2964       case $ac_var in #(
2965       _ | IFS | as_nl) ;; #(
2966       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2967       *) { eval $ac_var=; unset $ac_var;} ;;
2968       esac ;;
2969     esac
2970   done
2971
2972   (set) 2>&1 |
2973     case $as_nl`(ac_space=' '; set) 2>&1` in #(
2974     *${as_nl}ac_space=\ *)
2975       # `set' does not quote correctly, so add quotes: double-quote
2976       # substitution turns \\\\ into \\, and sed turns \\ into \.
2977       sed -n \
2978         "s/'/'\\\\''/g;
2979           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2980       ;; #(
2981     *)
2982       # `set' quotes correctly as required by POSIX, so do not add quotes.
2983       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2984       ;;
2985     esac |
2986     sort
2987 ) |
2988   sed '
2989      /^ac_cv_env_/b end
2990      t clear
2991      :clear
2992      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2993      t end
2994      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2995      :end' >>confcache
2996 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2997   if test -w "$cache_file"; then
2998     test "x$cache_file" != "x/dev/null" &&
2999       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3000 $as_echo "$as_me: updating cache $cache_file" >&6;}
3001     cat confcache >$cache_file
3002   else
3003     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3004 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3005   fi
3006 fi
3007 rm -f confcache
3008
3009 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3010 # Let make expand exec_prefix.
3011 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3012
3013 # Transform confdefs.h into DEFS.
3014 # Protect against shell expansion while executing Makefile rules.
3015 # Protect against Makefile macro expansion.
3016 #
3017 # If the first sed substitution is executed (which looks for macros that
3018 # take arguments), then branch to the quote section.  Otherwise,
3019 # look for a macro that doesn't take arguments.
3020 ac_script='
3021 :mline
3022 /\\$/{
3023  N
3024  s,\\\n,,
3025  b mline
3026 }
3027 t clear
3028 :clear
3029 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
3030 t quote
3031 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
3032 t quote
3033 b any
3034 :quote
3035 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3036 s/\[/\\&/g
3037 s/\]/\\&/g
3038 s/\$/$$/g
3039 H
3040 :any
3041 ${
3042         g
3043         s/^\n//
3044         s/\n/ /g
3045         p
3046 }
3047 '
3048 DEFS=`sed -n "$ac_script" confdefs.h`
3049
3050
3051 ac_libobjs=
3052 ac_ltlibobjs=
3053 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3054   # 1. Remove the extension, and $U if already installed.
3055   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3056   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3057   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3058   #    will be set to the directory where LIBOBJS objects are built.
3059   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3060   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3061 done
3062 LIBOBJS=$ac_libobjs
3063
3064 LTLIBOBJS=$ac_ltlibobjs
3065
3066
3067
3068 : ${CONFIG_STATUS=./config.status}
3069 ac_write_fail=0
3070 ac_clean_files_save=$ac_clean_files
3071 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3073 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3074 as_write_fail=0
3075 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3076 #! $SHELL
3077 # Generated by $as_me.
3078 # Run this file to recreate the current configuration.
3079 # Compiler output produced by configure, useful for debugging
3080 # configure, is in config.log if it exists.
3081
3082 debug=false
3083 ac_cs_recheck=false
3084 ac_cs_silent=false
3085
3086 SHELL=\${CONFIG_SHELL-$SHELL}
3087 export SHELL
3088 _ASEOF
3089 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3090 ## -------------------- ##
3091 ## M4sh Initialization. ##
3092 ## -------------------- ##
3093
3094 # Be more Bourne compatible
3095 DUALCASE=1; export DUALCASE # for MKS sh
3096 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3097   emulate sh
3098   NULLCMD=:
3099   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3100   # is contrary to our usage.  Disable this feature.
3101   alias -g '${1+"$@"}'='"$@"'
3102   setopt NO_GLOB_SUBST
3103 else
3104   case `(set -o) 2>/dev/null` in #(
3105   *posix*) :
3106     set -o posix ;; #(
3107   *) :
3108      ;;
3109 esac
3110 fi
3111
3112
3113 as_nl='
3114 '
3115 export as_nl
3116 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3117 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3118 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3119 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3120 # Prefer a ksh shell builtin over an external printf program on Solaris,
3121 # but without wasting forks for bash or zsh.
3122 if test -z "$BASH_VERSION$ZSH_VERSION" \
3123     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3124   as_echo='print -r --'
3125   as_echo_n='print -rn --'
3126 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3127   as_echo='printf %s\n'
3128   as_echo_n='printf %s'
3129 else
3130   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3131     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3132     as_echo_n='/usr/ucb/echo -n'
3133   else
3134     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3135     as_echo_n_body='eval
3136       arg=$1;
3137       case $arg in #(
3138       *"$as_nl"*)
3139         expr "X$arg" : "X\\(.*\\)$as_nl";
3140         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3141       esac;
3142       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3143     '
3144     export as_echo_n_body
3145     as_echo_n='sh -c $as_echo_n_body as_echo'
3146   fi
3147   export as_echo_body
3148   as_echo='sh -c $as_echo_body as_echo'
3149 fi
3150
3151 # The user is always right.
3152 if test "${PATH_SEPARATOR+set}" != set; then
3153   PATH_SEPARATOR=:
3154   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3155     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3156       PATH_SEPARATOR=';'
3157   }
3158 fi
3159
3160
3161 # IFS
3162 # We need space, tab and new line, in precisely that order.  Quoting is
3163 # there to prevent editors from complaining about space-tab.
3164 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3165 # splitting by setting IFS to empty value.)
3166 IFS=" ""        $as_nl"
3167
3168 # Find who we are.  Look in the path if we contain no directory separator.
3169 case $0 in #((
3170   *[\\/]* ) as_myself=$0 ;;
3171   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174   IFS=$as_save_IFS
3175   test -z "$as_dir" && as_dir=.
3176     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3177   done
3178 IFS=$as_save_IFS
3179
3180      ;;
3181 esac
3182 # We did not find ourselves, most probably we were run as `sh COMMAND'
3183 # in which case we are not to be found in the path.
3184 if test "x$as_myself" = x; then
3185   as_myself=$0
3186 fi
3187 if test ! -f "$as_myself"; then
3188   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3189   exit 1
3190 fi
3191
3192 # Unset variables that we do not need and which cause bugs (e.g. in
3193 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3194 # suppresses any "Segmentation fault" message there.  '((' could
3195 # trigger a bug in pdksh 5.2.14.
3196 for as_var in BASH_ENV ENV MAIL MAILPATH
3197 do eval test x\${$as_var+set} = xset \
3198   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3199 done
3200 PS1='$ '
3201 PS2='> '
3202 PS4='+ '
3203
3204 # NLS nuisances.
3205 LC_ALL=C
3206 export LC_ALL
3207 LANGUAGE=C
3208 export LANGUAGE
3209
3210 # CDPATH.
3211 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3212
3213
3214 # as_fn_error ERROR [LINENO LOG_FD]
3215 # ---------------------------------
3216 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3217 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3218 # script with status $?, using 1 if that was 0.
3219 as_fn_error ()
3220 {
3221   as_status=$?; test $as_status -eq 0 && as_status=1
3222   if test "$3"; then
3223     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3224     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3225   fi
3226   $as_echo "$as_me: error: $1" >&2
3227   as_fn_exit $as_status
3228 } # as_fn_error
3229
3230
3231 # as_fn_set_status STATUS
3232 # -----------------------
3233 # Set $? to STATUS, without forking.
3234 as_fn_set_status ()
3235 {
3236   return $1
3237 } # as_fn_set_status
3238
3239 # as_fn_exit STATUS
3240 # -----------------
3241 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3242 as_fn_exit ()
3243 {
3244   set +e
3245   as_fn_set_status $1
3246   exit $1
3247 } # as_fn_exit
3248
3249 # as_fn_unset VAR
3250 # ---------------
3251 # Portably unset VAR.
3252 as_fn_unset ()
3253 {
3254   { eval $1=; unset $1;}
3255 }
3256 as_unset=as_fn_unset
3257 # as_fn_append VAR VALUE
3258 # ----------------------
3259 # Append the text in VALUE to the end of the definition contained in VAR. Take
3260 # advantage of any shell optimizations that allow amortized linear growth over
3261 # repeated appends, instead of the typical quadratic growth present in naive
3262 # implementations.
3263 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3264   eval 'as_fn_append ()
3265   {
3266     eval $1+=\$2
3267   }'
3268 else
3269   as_fn_append ()
3270   {
3271     eval $1=\$$1\$2
3272   }
3273 fi # as_fn_append
3274
3275 # as_fn_arith ARG...
3276 # ------------------
3277 # Perform arithmetic evaluation on the ARGs, and store the result in the
3278 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3279 # must be portable across $(()) and expr.
3280 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3281   eval 'as_fn_arith ()
3282   {
3283     as_val=$(( $* ))
3284   }'
3285 else
3286   as_fn_arith ()
3287   {
3288     as_val=`expr "$@" || test $? -eq 1`
3289   }
3290 fi # as_fn_arith
3291
3292
3293 if expr a : '\(a\)' >/dev/null 2>&1 &&
3294    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3295   as_expr=expr
3296 else
3297   as_expr=false
3298 fi
3299
3300 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3301   as_basename=basename
3302 else
3303   as_basename=false
3304 fi
3305
3306 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3307   as_dirname=dirname
3308 else
3309   as_dirname=false
3310 fi
3311
3312 as_me=`$as_basename -- "$0" ||
3313 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3314          X"$0" : 'X\(//\)$' \| \
3315          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3316 $as_echo X/"$0" |
3317     sed '/^.*\/\([^/][^/]*\)\/*$/{
3318             s//\1/
3319             q
3320           }
3321           /^X\/\(\/\/\)$/{
3322             s//\1/
3323             q
3324           }
3325           /^X\/\(\/\).*/{
3326             s//\1/
3327             q
3328           }
3329           s/.*/./; q'`
3330
3331 # Avoid depending upon Character Ranges.
3332 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3333 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3334 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3335 as_cr_digits='0123456789'
3336 as_cr_alnum=$as_cr_Letters$as_cr_digits
3337
3338 ECHO_C= ECHO_N= ECHO_T=
3339 case `echo -n x` in #(((((
3340 -n*)
3341   case `echo 'xy\c'` in
3342   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
3343   xy)  ECHO_C='\c';;
3344   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3345        ECHO_T=' ';;
3346   esac;;
3347 *)
3348   ECHO_N='-n';;
3349 esac
3350
3351 rm -f conf$$ conf$$.exe conf$$.file
3352 if test -d conf$$.dir; then
3353   rm -f conf$$.dir/conf$$.file
3354 else
3355   rm -f conf$$.dir
3356   mkdir conf$$.dir 2>/dev/null
3357 fi
3358 if (echo >conf$$.file) 2>/dev/null; then
3359   if ln -s conf$$.file conf$$ 2>/dev/null; then
3360     as_ln_s='ln -s'
3361     # ... but there are two gotchas:
3362     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3363     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3364     # In both cases, we have to default to `cp -p'.
3365     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3366       as_ln_s='cp -p'
3367   elif ln conf$$.file conf$$ 2>/dev/null; then
3368     as_ln_s=ln
3369   else
3370     as_ln_s='cp -p'
3371   fi
3372 else
3373   as_ln_s='cp -p'
3374 fi
3375 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3376 rmdir conf$$.dir 2>/dev/null
3377
3378
3379 # as_fn_mkdir_p
3380 # -------------
3381 # Create "$as_dir" as a directory, including parents if necessary.
3382 as_fn_mkdir_p ()
3383 {
3384
3385   case $as_dir in #(
3386   -*) as_dir=./$as_dir;;
3387   esac
3388   test -d "$as_dir" || eval $as_mkdir_p || {
3389     as_dirs=
3390     while :; do
3391       case $as_dir in #(
3392       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3393       *) as_qdir=$as_dir;;
3394       esac
3395       as_dirs="'$as_qdir' $as_dirs"
3396       as_dir=`$as_dirname -- "$as_dir" ||
3397 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3398          X"$as_dir" : 'X\(//\)[^/]' \| \
3399          X"$as_dir" : 'X\(//\)$' \| \
3400          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3401 $as_echo X"$as_dir" |
3402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3403             s//\1/
3404             q
3405           }
3406           /^X\(\/\/\)[^/].*/{
3407             s//\1/
3408             q
3409           }
3410           /^X\(\/\/\)$/{
3411             s//\1/
3412             q
3413           }
3414           /^X\(\/\).*/{
3415             s//\1/
3416             q
3417           }
3418           s/.*/./; q'`
3419       test -d "$as_dir" && break
3420     done
3421     test -z "$as_dirs" || eval "mkdir $as_dirs"
3422   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
3423
3424
3425 } # as_fn_mkdir_p
3426 if mkdir -p . 2>/dev/null; then
3427   as_mkdir_p='mkdir -p "$as_dir"'
3428 else
3429   test -d ./-p && rmdir ./-p
3430   as_mkdir_p=false
3431 fi
3432
3433 if test -x / >/dev/null 2>&1; then
3434   as_test_x='test -x'
3435 else
3436   if ls -dL / >/dev/null 2>&1; then
3437     as_ls_L_option=L
3438   else
3439     as_ls_L_option=
3440   fi
3441   as_test_x='
3442     eval sh -c '\''
3443       if test -d "$1"; then
3444         test -d "$1/.";
3445       else
3446         case $1 in #(
3447         -*)set "./$1";;
3448         esac;
3449         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3450         ???[sx]*):;;*)false;;esac;fi
3451     '\'' sh
3452   '
3453 fi
3454 as_executable_p=$as_test_x
3455
3456 # Sed expression to map a string onto a valid CPP name.
3457 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3458
3459 # Sed expression to map a string onto a valid variable name.
3460 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3461
3462
3463 exec 6>&1
3464 ## ----------------------------------- ##
3465 ## Main body of $CONFIG_STATUS script. ##
3466 ## ----------------------------------- ##
3467 _ASEOF
3468 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3469
3470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3471 # Save the log message, to keep $0 and so on meaningful, and to
3472 # report actual input values of CONFIG_FILES etc. instead of their
3473 # values after options handling.
3474 ac_log="
3475 This file was extended by android-tools $as_me 2.0, which was
3476 generated by GNU Autoconf 2.64.  Invocation command line was
3477
3478   CONFIG_FILES    = $CONFIG_FILES
3479   CONFIG_HEADERS  = $CONFIG_HEADERS
3480   CONFIG_LINKS    = $CONFIG_LINKS
3481   CONFIG_COMMANDS = $CONFIG_COMMANDS
3482   $ $0 $@
3483
3484 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3485 "
3486
3487 _ACEOF
3488
3489 case $ac_config_files in *"
3490 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3491 esac
3492
3493
3494
3495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3496 # Files that config.status was made for.
3497 config_files="$ac_config_files"
3498
3499 _ACEOF
3500
3501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3502 ac_cs_usage="\
3503 \`$as_me' instantiates files and other configuration actions
3504 from templates according to the current configuration.  Unless the files
3505 and actions are specified as TAGs, all are instantiated by default.
3506
3507 Usage: $0 [OPTION]... [TAG]...
3508
3509   -h, --help       print this help, then exit
3510   -V, --version    print version number and configuration settings, then exit
3511   -q, --quiet, --silent
3512                    do not print progress messages
3513   -d, --debug      don't remove temporary files
3514       --recheck    update $as_me by reconfiguring in the same conditions
3515       --file=FILE[:TEMPLATE]
3516                    instantiate the configuration file FILE
3517
3518 Configuration files:
3519 $config_files
3520
3521 Report bugs to the package provider."
3522
3523 _ACEOF
3524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3525 ac_cs_version="\\
3526 android-tools config.status 2.0
3527 configured by $0, generated by GNU Autoconf 2.64,
3528   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3529
3530 Copyright (C) 2009 Free Software Foundation, Inc.
3531 This config.status script is free software; the Free Software Foundation
3532 gives unlimited permission to copy, distribute and modify it."
3533
3534 ac_pwd='$ac_pwd'
3535 srcdir='$srcdir'
3536 INSTALL='$INSTALL'
3537 test -n "\$AWK" || AWK=awk
3538 _ACEOF
3539
3540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3541 # The default lists apply if the user does not specify any file.
3542 ac_need_defaults=:
3543 while test $# != 0
3544 do
3545   case $1 in
3546   --*=*)
3547     ac_option=`expr "X$1" : 'X\([^=]*\)='`
3548     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3549     ac_shift=:
3550     ;;
3551   *)
3552     ac_option=$1
3553     ac_optarg=$2
3554     ac_shift=shift
3555     ;;
3556   esac
3557
3558   case $ac_option in
3559   # Handling of the options.
3560   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3561     ac_cs_recheck=: ;;
3562   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3563     $as_echo "$ac_cs_version"; exit ;;
3564   --debug | --debu | --deb | --de | --d | -d )
3565     debug=: ;;
3566   --file | --fil | --fi | --f )
3567     $ac_shift
3568     case $ac_optarg in
3569     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3570     esac
3571     as_fn_append CONFIG_FILES " '$ac_optarg'"
3572     ac_need_defaults=false;;
3573   --he | --h |  --help | --hel | -h )
3574     $as_echo "$ac_cs_usage"; exit ;;
3575   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3576   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3577     ac_cs_silent=: ;;
3578
3579   # This is an error.
3580   -*) as_fn_error "unrecognized option: \`$1'
3581 Try \`$0 --help' for more information." ;;
3582
3583   *) as_fn_append ac_config_targets " $1"
3584      ac_need_defaults=false ;;
3585
3586   esac
3587   shift
3588 done
3589
3590 ac_configure_extra_args=
3591
3592 if $ac_cs_silent; then
3593   exec 6>/dev/null
3594   ac_configure_extra_args="$ac_configure_extra_args --silent"
3595 fi
3596
3597 _ACEOF
3598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3599 if \$ac_cs_recheck; then
3600   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3601   shift
3602   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3603   CONFIG_SHELL='$SHELL'
3604   export CONFIG_SHELL
3605   exec "\$@"
3606 fi
3607
3608 _ACEOF
3609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3610 exec 5>>config.log
3611 {
3612   echo
3613   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3614 ## Running $as_me. ##
3615 _ASBOX
3616   $as_echo "$ac_log"
3617 } >&5
3618
3619 _ACEOF
3620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3621 _ACEOF
3622
3623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3624
3625 # Handling of arguments.
3626 for ac_config_target in $ac_config_targets
3627 do
3628   case $ac_config_target in
3629     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3630
3631   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3632   esac
3633 done
3634
3635
3636 # If the user did not use the arguments to specify the items to instantiate,
3637 # then the envvar interface is used.  Set only those that are not.
3638 # We use the long form for the default assignment because of an extremely
3639 # bizarre bug on SunOS 4.1.3.
3640 if $ac_need_defaults; then
3641   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3642 fi
3643
3644 # Have a temporary directory for convenience.  Make it in the build tree
3645 # simply because there is no reason against having it here, and in addition,
3646 # creating and moving files from /tmp can sometimes cause problems.
3647 # Hook for its removal unless debugging.
3648 # Note that there is a small window in which the directory will not be cleaned:
3649 # after its creation but before its name has been assigned to `$tmp'.
3650 $debug ||
3651 {
3652   tmp=
3653   trap 'exit_status=$?
3654   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3655 ' 0
3656   trap 'as_fn_exit 1' 1 2 13 15
3657 }
3658 # Create a (secure) tmp directory for tmp files.
3659
3660 {
3661   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3662   test -n "$tmp" && test -d "$tmp"
3663 }  ||
3664 {
3665   tmp=./conf$$-$RANDOM
3666   (umask 077 && mkdir "$tmp")
3667 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
3668
3669 # Set up the scripts for CONFIG_FILES section.
3670 # No need to generate them if there are no CONFIG_FILES.
3671 # This happens for instance with `./config.status config.h'.
3672 if test -n "$CONFIG_FILES"; then
3673
3674
3675 ac_cr=`echo X | tr X '\015'`
3676 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3677 # But we know of no other shell where ac_cr would be empty at this
3678 # point, so we can use a bashism as a fallback.
3679 if test "x$ac_cr" = x; then
3680   eval ac_cr=\$\'\\r\'
3681 fi
3682 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3683 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3684   ac_cs_awk_cr='\r'
3685 else
3686   ac_cs_awk_cr=$ac_cr
3687 fi
3688
3689 echo 'BEGIN {' >"$tmp/subs1.awk" &&
3690 _ACEOF
3691
3692
3693 {
3694   echo "cat >conf$$subs.awk <<_ACEOF" &&
3695   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3696   echo "_ACEOF"
3697 } >conf$$subs.sh ||
3698   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3699 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
3700 ac_delim='%!_!# '
3701 for ac_last_try in false false false false false :; do
3702   . ./conf$$subs.sh ||
3703     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3704
3705   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3706   if test $ac_delim_n = $ac_delim_num; then
3707     break
3708   elif $ac_last_try; then
3709     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3710   else
3711     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3712   fi
3713 done
3714 rm -f conf$$subs.sh
3715
3716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3717 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
3718 _ACEOF
3719 sed -n '
3720 h
3721 s/^/S["/; s/!.*/"]=/
3722 p
3723 g
3724 s/^[^!]*!//
3725 :repl
3726 t repl
3727 s/'"$ac_delim"'$//
3728 t delim
3729 :nl
3730 h
3731 s/\(.\{148\}\).*/\1/
3732 t more1
3733 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3734 p
3735 n
3736 b repl
3737 :more1
3738 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3739 p
3740 g
3741 s/.\{148\}//
3742 t nl
3743 :delim
3744 h
3745 s/\(.\{148\}\).*/\1/
3746 t more2
3747 s/["\\]/\\&/g; s/^/"/; s/$/"/
3748 p
3749 b
3750 :more2
3751 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3752 p
3753 g
3754 s/.\{148\}//
3755 t delim
3756 ' <conf$$subs.awk | sed '
3757 /^[^""]/{
3758   N
3759   s/\n//
3760 }
3761 ' >>$CONFIG_STATUS || ac_write_fail=1
3762 rm -f conf$$subs.awk
3763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3764 _ACAWK
3765 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
3766   for (key in S) S_is_set[key] = 1
3767   FS = "\a"
3768
3769 }
3770 {
3771   line = $ 0
3772   nfields = split(line, field, "@")
3773   substed = 0
3774   len = length(field[1])
3775   for (i = 2; i < nfields; i++) {
3776     key = field[i]
3777     keylen = length(key)
3778     if (S_is_set[key]) {
3779       value = S[key]
3780       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3781       len += length(value) + length(field[++i])
3782       substed = 1
3783     } else
3784       len += 1 + keylen
3785   }
3786
3787   print line
3788 }
3789
3790 _ACAWK
3791 _ACEOF
3792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3793 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3794   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3795 else
3796   cat
3797 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
3798   || as_fn_error "could not setup config files machinery" "$LINENO" 5
3799 _ACEOF
3800
3801 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3802 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3803 # trailing colons and then remove the whole line if VPATH becomes empty
3804 # (actually we leave an empty line to preserve line numbers).
3805 if test "x$srcdir" = x.; then
3806   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3807 s/:*\$(srcdir):*/:/
3808 s/:*\${srcdir}:*/:/
3809 s/:*@srcdir@:*/:/
3810 s/^\([^=]*=[     ]*\):*/\1/
3811 s/:*$//
3812 s/^[^=]*=[       ]*$//
3813 }'
3814 fi
3815
3816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3817 fi # test -n "$CONFIG_FILES"
3818
3819
3820 eval set X "  :F $CONFIG_FILES      "
3821 shift
3822 for ac_tag
3823 do
3824   case $ac_tag in
3825   :[FHLC]) ac_mode=$ac_tag; continue;;
3826   esac
3827   case $ac_mode$ac_tag in
3828   :[FHL]*:*);;
3829   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
3830   :[FH]-) ac_tag=-:-;;
3831   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3832   esac
3833   ac_save_IFS=$IFS
3834   IFS=:
3835   set x $ac_tag
3836   IFS=$ac_save_IFS
3837   shift
3838   ac_file=$1
3839   shift
3840
3841   case $ac_mode in
3842   :L) ac_source=$1;;
3843   :[FH])
3844     ac_file_inputs=
3845     for ac_f
3846     do
3847       case $ac_f in
3848       -) ac_f="$tmp/stdin";;
3849       *) # Look for the file first in the build tree, then in the source tree
3850          # (if the path is not absolute).  The absolute path cannot be DOS-style,
3851          # because $ac_f cannot contain `:'.
3852          test -f "$ac_f" ||
3853            case $ac_f in
3854            [\\/$]*) false;;
3855            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3856            esac ||
3857            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3858       esac
3859       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3860       as_fn_append ac_file_inputs " '$ac_f'"
3861     done
3862
3863     # Let's still pretend it is `configure' which instantiates (i.e., don't
3864     # use $as_me), people would be surprised to read:
3865     #    /* config.h.  Generated by config.status.  */
3866     configure_input='Generated from '`
3867           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3868         `' by configure.'
3869     if test x"$ac_file" != x-; then
3870       configure_input="$ac_file.  $configure_input"
3871       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3872 $as_echo "$as_me: creating $ac_file" >&6;}
3873     fi
3874     # Neutralize special characters interpreted by sed in replacement strings.
3875     case $configure_input in #(
3876     *\&* | *\|* | *\\* )
3877        ac_sed_conf_input=`$as_echo "$configure_input" |
3878        sed 's/[\\\\&|]/\\\\&/g'`;; #(
3879     *) ac_sed_conf_input=$configure_input;;
3880     esac
3881
3882     case $ac_tag in
3883     *:-:* | *:-) cat >"$tmp/stdin" \
3884       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
3885     esac
3886     ;;
3887   esac
3888
3889   ac_dir=`$as_dirname -- "$ac_file" ||
3890 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3891          X"$ac_file" : 'X\(//\)[^/]' \| \
3892          X"$ac_file" : 'X\(//\)$' \| \
3893          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3894 $as_echo X"$ac_file" |
3895     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3896             s//\1/
3897             q
3898           }
3899           /^X\(\/\/\)[^/].*/{
3900             s//\1/
3901             q
3902           }
3903           /^X\(\/\/\)$/{
3904             s//\1/
3905             q
3906           }
3907           /^X\(\/\).*/{
3908             s//\1/
3909             q
3910           }
3911           s/.*/./; q'`
3912   as_dir="$ac_dir"; as_fn_mkdir_p
3913   ac_builddir=.
3914
3915 case "$ac_dir" in
3916 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3917 *)
3918   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3919   # A ".." for each directory in $ac_dir_suffix.
3920   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3921   case $ac_top_builddir_sub in
3922   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3923   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3924   esac ;;
3925 esac
3926 ac_abs_top_builddir=$ac_pwd
3927 ac_abs_builddir=$ac_pwd$ac_dir_suffix
3928 # for backward compatibility:
3929 ac_top_builddir=$ac_top_build_prefix
3930
3931 case $srcdir in
3932   .)  # We are building in place.
3933     ac_srcdir=.
3934     ac_top_srcdir=$ac_top_builddir_sub
3935     ac_abs_top_srcdir=$ac_pwd ;;
3936   [\\/]* | ?:[\\/]* )  # Absolute name.
3937     ac_srcdir=$srcdir$ac_dir_suffix;
3938     ac_top_srcdir=$srcdir
3939     ac_abs_top_srcdir=$srcdir ;;
3940   *) # Relative name.
3941     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3942     ac_top_srcdir=$ac_top_build_prefix$srcdir
3943     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3944 esac
3945 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3946
3947
3948   case $ac_mode in
3949   :F)
3950   #
3951   # CONFIG_FILE
3952   #
3953
3954   case $INSTALL in
3955   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3956   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
3957   esac
3958 _ACEOF
3959
3960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3961 # If the template does not know about datarootdir, expand it.
3962 # FIXME: This hack should be removed a few years after 2.60.
3963 ac_datarootdir_hack=; ac_datarootdir_seen=
3964 ac_sed_dataroot='
3965 /datarootdir/ {
3966   p
3967   q
3968 }
3969 /@datadir@/p
3970 /@docdir@/p
3971 /@infodir@/p
3972 /@localedir@/p
3973 /@mandir@/p'
3974 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3975 *datarootdir*) ac_datarootdir_seen=yes;;
3976 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3977   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3978 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3979 _ACEOF
3980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3981   ac_datarootdir_hack='
3982   s&@datadir@&$datadir&g
3983   s&@docdir@&$docdir&g
3984   s&@infodir@&$infodir&g
3985   s&@localedir@&$localedir&g
3986   s&@mandir@&$mandir&g
3987   s&\\\${datarootdir}&$datarootdir&g' ;;
3988 esac
3989 _ACEOF
3990
3991 # Neutralize VPATH when `$srcdir' = `.'.
3992 # Shell code in configure.ac might set extrasub.
3993 # FIXME: do we really want to maintain this feature?
3994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3995 ac_sed_extra="$ac_vpsub
3996 $extrasub
3997 _ACEOF
3998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3999 :t
4000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4001 s|@configure_input@|$ac_sed_conf_input|;t t
4002 s&@top_builddir@&$ac_top_builddir_sub&;t t
4003 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4004 s&@srcdir@&$ac_srcdir&;t t
4005 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4006 s&@top_srcdir@&$ac_top_srcdir&;t t
4007 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4008 s&@builddir@&$ac_builddir&;t t
4009 s&@abs_builddir@&$ac_abs_builddir&;t t
4010 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4011 s&@INSTALL@&$ac_INSTALL&;t t
4012 $ac_datarootdir_hack
4013 "
4014 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4015   || as_fn_error "could not create $ac_file" "$LINENO" 5
4016
4017 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4018   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4019   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4020   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4021 which seems to be undefined.  Please make sure it is defined." >&5
4022 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4023 which seems to be undefined.  Please make sure it is defined." >&2;}
4024
4025   rm -f "$tmp/stdin"
4026   case $ac_file in
4027   -) cat "$tmp/out" && rm -f "$tmp/out";;
4028   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4029   esac \
4030   || as_fn_error "could not create $ac_file" "$LINENO" 5
4031  ;;
4032
4033
4034
4035   esac
4036
4037 done # for ac_tag
4038
4039
4040 as_fn_exit 0
4041 _ACEOF
4042 ac_clean_files=$ac_clean_files_save
4043
4044 test $ac_write_fail = 0 ||
4045   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
4046
4047
4048 # configure is writing to config.log, and then calls config.status.
4049 # config.status does its own redirection, appending to config.log.
4050 # Unfortunately, on DOS this fails, as config.log is still kept open
4051 # by configure, so config.status won't be able to write to it; its
4052 # output is simply discarded.  So we exec the FD to /dev/null,
4053 # effectively closing config.log, so it can be properly (re)opened and
4054 # appended to by config.status.  When coming back to configure, we
4055 # need to make the FD available again.
4056 if test "$no_create" != yes; then
4057   ac_cs_success=:
4058   ac_config_status_args=
4059   test "$silent" = yes &&
4060     ac_config_status_args="$ac_config_status_args --quiet"
4061   exec 5>/dev/null
4062   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4063   exec 5>>config.log
4064   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4065   # would make configure fail if this is the last instruction.
4066   $ac_cs_success || as_fn_exit $?
4067 fi
4068 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4069   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4070 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4071 fi
4072