2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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 ## -------------------- ##
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 :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
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
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 :
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+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
165 exitcode=1; echo positional parameters were not saved.
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 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
563 MAINTAINER_MODE_FALSE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
640 DEBUG_PREFIX_CFLAGS_FOR_TARGET
641 SYSROOT_CFLAGS_FOR_TARGET
643 extra_host_libiberty_configure_flags
652 extra_mpc_mpfr_configure_flags
653 extra_mpc_gmp_configure_flags
654 extra_mpfr_configure_flags
696 TOPLEVEL_CONFIGURE_ARGUMENTS
724 program_transform_name
735 ac_subst_files='serialization_dependencies
741 enable_option_checking
747 enable_build_with_cxx
767 enable_ppl_version_check
772 enable_cloog_version_check
774 enable_stage1_languages
777 with_debug_prefix_map
780 enable_serial_configure
781 with_build_time_tools
782 enable_maintainer_mode
783 enable_stage1_checking
786 ac_precious_vars='build_alias
831 # Initialize some variables set by options.
833 ac_init_version=false
834 ac_unrecognized_opts=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
845 program_transform_name=s,x,x,
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE}'
870 infodir='${datarootdir}/info'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
947 eval enable_$ac_useropt=no ;;
949 -docdir | --docdir | --docdi | --doc | --do)
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 -enable-* | --enable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
973 eval enable_$ac_useropt=\$ac_optarg ;;
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
982 exec_prefix=$ac_optarg ;;
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
988 -help | --help | --hel | --he | -h)
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
995 -host | --host | --hos | --ho)
996 ac_prev=host_alias ;;
997 -host=* | --host=* | --hos=* | --ho=*)
998 host_alias=$ac_optarg ;;
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 htmldir=$ac_optarg ;;
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
1011 includedir=$ac_optarg ;;
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016 infodir=$ac_optarg ;;
1018 -libdir | --libdir | --libdi | --libd)
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021 libdir=$ac_optarg ;;
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
1028 libexecdir=$ac_optarg ;;
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
1036 | --localstate | --localstat | --localsta | --localst | --locals)
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040 localstatedir=$ac_optarg ;;
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045 mandir=$ac_optarg ;;
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052 | --no-cr | --no-c | -n)
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066 oldincludedir=$ac_optarg ;;
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071 prefix=$ac_optarg ;;
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078 program_prefix=$ac_optarg ;;
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085 program_suffix=$ac_optarg ;;
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
1102 program_transform_name=$ac_optarg ;;
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1109 -psdir | --psdir | --psdi | --psd | --ps)
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 sbindir=$ac_optarg ;;
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 sharedstatedir=$ac_optarg ;;
1135 -site | --site | --sit)
1137 -site=* | --site=* | --sit=*)
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143 srcdir=$ac_optarg ;;
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150 sysconfdir=$ac_optarg ;;
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
1153 ac_prev=target_alias ;;
1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155 target_alias=$ac_optarg ;;
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1177 eval with_$ac_useropt=\$ac_optarg ;;
1179 -without-* | --without-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1193 eval with_$ac_useropt=no ;;
1196 # Obsolete; use --with-x.
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204 x_includes=$ac_optarg ;;
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211 x_libraries=$ac_optarg ;;
1213 -*) as_fn_error "unrecognized option: \`$ac_option'
1214 Try \`$0 --help' for more information."
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1224 eval $ac_envvar=\$ac_optarg
1225 export $ac_envvar ;;
1228 # FIXME: should be removed in autoconf 3.0.
1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1238 if test -n "$ac_prev"; then
1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240 as_fn_error "missing argument to $ac_option"
1243 if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1246 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 # Check all directory arguments for consistency.
1252 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1264 # Be sure to have absolute directory names.
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1277 target=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293 test "$silent" = yes && exec 6>/dev/null
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error "pwd does not report name of working directory"
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1336 ac_srcdir_defaulted=no
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 as_fn_error "path to source, $srcdir, contains spaces"
1361 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1363 for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371 # Report the --help message.
1373 if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1377 \`configure' configures this package to adapt to many kinds of systems.
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE. See below for descriptions of some of the useful variables.
1384 Defaults for the options are specified in brackets.
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397 Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1408 For better control, use the options below.
1410 Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 --target=TARGET configure for building compilers for TARGET [HOST]
1446 if test -n "$ac_init_help"; then
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1455 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1456 --enable-libada build libada directory
1457 --enable-libssp build libssp directory
1458 --enable-build-with-cxx build with C++ compiler instead of C compiler
1459 --disable-ppl-version-check disable check for PPL version
1460 --enable-cloog-backend[=BACKEND]
1461 set the CLooG BACKEND used to either isl, ppl or
1462 ppl-legacy (default)
1463 --disable-cloog-version-check
1464 disable check for CLooG version
1465 --enable-lto enable link time optimization support
1466 --enable-stage1-languages[=all] choose additional languages to build during
1467 stage1. Mostly useful for compiler development.
1468 --enable-objc-gc enable use of Boehm's garbage collector with the
1469 GNU Objective-C runtime
1470 --enable-bootstrap enable bootstrapping [yes if native build]
1471 --enable-serial-[{host,target,build}-]configure
1472 force sequential configuration of
1473 sub-packages for the host, target or build
1474 machine, or all sub-packages
1475 --enable-maintainer-mode enable make rules and dependencies not useful
1476 (and sometimes confusing) to the casual installer
1477 --enable-stage1-checking[=all] choose additional checking for stage1
1479 --enable-werror enable -Werror in bootstrap stage2 and later
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-build-libsubdir=DIR Directory where to find libraries for build system
1485 --with-mpc=PATH specify prefix directory for installed MPC package.
1486 Equivalent to --with-mpc-include=PATH/include
1487 plus --with-mpc-lib=PATH/lib
1488 --with-mpc-include=PATH
1489 specify directory for installed MPC include files
1490 --with-mpc-lib=PATH specify directory for the installed MPC library
1491 --with-mpfr-dir=PATH this option has been REMOVED
1492 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1493 Equivalent to --with-mpfr-include=PATH/include
1494 plus --with-mpfr-lib=PATH/lib
1495 --with-mpfr-include=PATH
1496 specify directory for installed MPFR include files
1497 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1498 --with-gmp-dir=PATH this option has been REMOVED
1499 --with-gmp=PATH specify prefix directory for the installed GMP package.
1500 Equivalent to --with-gmp-include=PATH/include
1501 plus --with-gmp-lib=PATH/lib
1502 --with-gmp-include=PATH specify directory for installed GMP include files
1503 --with-gmp-lib=PATH specify directory for the installed GMP library
1504 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1505 when linking with PPL
1506 --with-stage1-ldflags=FLAGS Linker flags for stage1
1507 -with-stage1-libs=LIBS Libraries for stage1
1508 --with-boot-libs=LIBS Libraries for stage2 and later
1509 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1510 --with-ppl=PATH Specify prefix directory for the installed PPL package
1511 Equivalent to --with-ppl-include=PATH/include
1512 plus --with-ppl-lib=PATH/lib
1513 --with-ppl-include=PATH Specify directory for installed PPL include files
1514 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1515 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1516 package. Equivalent to
1517 --with-cloog-include=PATH/include plus
1518 --with-cloog-lib=PATH/lib
1519 --with-cloog-include=PATH
1520 Specify directory for installed CLooG include files
1521 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1523 --with-build-sysroot=SYSROOT
1524 use sysroot as the system root during the build
1525 --with-debug-prefix-map='A=B C=D ...'
1526 map A to B, C to D ... in debug information
1527 --with-build-config='NAME NAME2...'
1528 Use config/NAME.mk build configuration
1529 --with-build-time-tools=PATH
1530 use given path to find target tools during the build
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 CXX C++ compiler command
1541 CXXFLAGS C++ compiler flags
1543 additional configure arguments for build directories
1545 additional configure arguments for host directories
1547 additional configure arguments for target directories
1550 DLLTOOL DLLTOOL for the host
1552 LIPO LIPO for the host
1554 RANLIB RANLIB for the host
1555 STRIP STRIP for the host
1556 WINDRES WINDRES for the host
1557 WINDMC WINDMC for the host
1558 OBJCOPY OBJCOPY for the host
1559 OBJDUMP OBJDUMP for the host
1569 GFORTRAN for the target
1577 DLLTOOL for the target
1585 OBJDUMP for the target
1587 RANLIB for the target
1589 STRIP for the target
1591 WINDRES for the target
1593 WINDMC for the target
1595 Use these variables to override the choices made by `configure' or to help
1596 it to find libraries and programs with nonstandard names/locations.
1598 Report bugs to the package provider.
1603 if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 ac_abs_top_builddir=$ac_pwd
1623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624 # for backward compatibility:
1625 ac_top_builddir=$ac_top_build_prefix
1628 .) # We are building in place.
1630 ac_top_srcdir=$ac_top_builddir_sub
1631 ac_abs_top_srcdir=$ac_pwd ;;
1632 [\\/]* | ?:[\\/]* ) # Absolute name.
1633 ac_srcdir=$srcdir$ac_dir_suffix;
1634 ac_top_srcdir=$srcdir
1635 ac_abs_top_srcdir=$srcdir ;;
1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643 cd "$ac_dir" || { ac_status=$?; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1650 $SHELL "$ac_srcdir/configure" --help=recursive
1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654 cd "$ac_pwd" || { ac_status=$?; break; }
1658 test -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1662 generated by GNU Autoconf 2.64
1664 Copyright (C) 2009 Free Software Foundation, Inc.
1665 This configure script is free software; the Free Software Foundation
1666 gives unlimited permission to copy, distribute and modify it.
1671 ## ------------------------ ##
1672 ## Autoconf initialization. ##
1673 ## ------------------------ ##
1675 # ac_fn_c_try_compile LINENO
1676 # --------------------------
1677 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_compile ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext
1682 if { { ac_try="$ac_compile"
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_compile") 2>conftest.err
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest.$ac_objext; then :
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711 } # ac_fn_c_try_compile
1713 # ac_fn_cxx_try_compile LINENO
1714 # ----------------------------
1715 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_cxx_try_compile ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext
1720 if { { ac_try="$ac_compile"
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_compile") 2>conftest.err
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_cxx_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest.$ac_objext; then :
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1749 } # ac_fn_cxx_try_compile
1751 # ac_fn_c_try_link LINENO
1752 # -----------------------
1753 # Try to link conftest.$ac_ext, and return whether this succeeded.
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 rm -f conftest.$ac_objext conftest$ac_exeext
1758 if { { ac_try="$ac_link"
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_link") 2>conftest.err
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && {
1774 test -z "$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 } && test -s conftest$ac_exeext && {
1777 test "$cross_compiling" = yes ||
1778 $as_test_x conftest$ac_exeext
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1787 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789 # interfere with the next link command; also delete a directory that is
1790 # left behind by Apple's compiler. We do this before executing the actions.
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 } # ac_fn_c_try_link
1796 cat >config.log <<_ACEOF
1797 This file contains any messages produced by compilers while
1798 running configure, to aid debugging if configure makes a mistake.
1800 It was created by $as_me, which was
1801 generated by GNU Autoconf 2.64. Invocation command line was
1813 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1814 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1815 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1816 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1817 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1819 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1820 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1822 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1823 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1824 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1825 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1826 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1827 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1828 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 test -z "$as_dir" && as_dir=.
1837 $as_echo "PATH: $as_dir"
1853 # Keep a trace of the command line.
1854 # Strip out --no-create and --no-recursion so they do not pile up.
1855 # Strip out --silent because we don't want to record it for future runs.
1856 # Also quote any args containing shell meta-characters.
1857 # Make two passes to allow for proper duplicate-argument suppression.
1861 ac_must_keep_next=false
1867 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1869 | -silent | --silent | --silen | --sile | --sil)
1872 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1877 as_fn_append ac_configure_args1 " '$ac_arg'"
1878 if test $ac_must_keep_next = true; then
1879 ac_must_keep_next=false # Got value, back to normal.
1882 *=* | --config-cache | -C | -disable-* | --disable-* \
1883 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1884 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1885 | -with-* | --with-* | -without-* | --without-* | --x)
1886 case "$ac_configure_args0 " in
1887 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1890 -* ) ac_must_keep_next=true ;;
1893 as_fn_append ac_configure_args " '$ac_arg'"
1898 { ac_configure_args0=; unset ac_configure_args0;}
1899 { ac_configure_args1=; unset ac_configure_args1;}
1901 # When interrupted or exit'd, cleanup temporary files, and complete
1902 # config.log. We remove comments because anyway the quotes in there
1903 # would cause problems or look ugly.
1904 # WARNING: Use '\'' to represent an apostrophe within the trap.
1905 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1906 trap 'exit_status=$?
1907 # Save into config.log some information that might help in debugging.
1912 ## ---------------- ##
1913 ## Cache variables. ##
1914 ## ---------------- ##
1917 # The following way of writing the cache mishandles newlines in values,
1919 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1920 eval ac_val=\$$ac_var
1924 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1925 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1928 _ | IFS | as_nl) ;; #(
1929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1930 *) { eval $ac_var=; unset $ac_var;} ;;
1935 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1936 *${as_nl}ac_space=\ *)
1938 "s/'\''/'\''\\\\'\'''\''/g;
1939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1950 ## ----------------- ##
1951 ## Output variables. ##
1952 ## ----------------- ##
1955 for ac_var in $ac_subst_vars
1957 eval ac_val=\$$ac_var
1959 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1961 $as_echo "$ac_var='\''$ac_val'\''"
1965 if test -n "$ac_subst_files"; then
1967 ## ------------------- ##
1968 ## File substitutions. ##
1969 ## ------------------- ##
1972 for ac_var in $ac_subst_files
1974 eval ac_val=\$$ac_var
1976 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1978 $as_echo "$ac_var='\''$ac_val'\''"
1983 if test -s confdefs.h; then
1993 test "$ac_signal" != 0 &&
1994 $as_echo "$as_me: caught signal $ac_signal"
1995 $as_echo "$as_me: exit $exit_status"
1997 rm -f core *.core core.conftest.* &&
1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2001 for ac_signal in 1 2 13 15; do
2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2006 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2007 rm -f -r conftest* confdefs.h
2009 $as_echo "/* confdefs.h */" > confdefs.h
2011 # Predefined preprocessor variables.
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_NAME "$PACKAGE_NAME"
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_STRING "$PACKAGE_STRING"
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_URL "$PACKAGE_URL"
2038 # Let the site file select an alternate cache file if it wants to.
2039 # Prefer an explicitly selected file to automatically selected ones.
2042 if test -n "$CONFIG_SITE"; then
2043 ac_site_file1=$CONFIG_SITE
2044 elif test "x$prefix" != xNONE; then
2045 ac_site_file1=$prefix/share/config.site
2046 ac_site_file2=$prefix/etc/config.site
2048 ac_site_file1=$ac_default_prefix/share/config.site
2049 ac_site_file2=$ac_default_prefix/etc/config.site
2051 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2053 test "x$ac_site_file" = xNONE && continue
2054 if test -r "$ac_site_file"; then
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2056 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2057 sed 's/^/| /' "$ac_site_file" >&5
2062 if test -r "$cache_file"; then
2063 # Some versions of bash will fail to source /dev/null (special
2064 # files actually), so we avoid doing that.
2065 if test -f "$cache_file"; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2067 $as_echo "$as_me: loading cache $cache_file" >&6;}
2069 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2070 *) . "./$cache_file";;
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2075 $as_echo "$as_me: creating cache $cache_file" >&6;}
2079 # Check that the precious variables saved in the cache have kept the same
2081 ac_cache_corrupted=false
2082 for ac_var in $ac_precious_vars; do
2083 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2084 eval ac_new_set=\$ac_env_${ac_var}_set
2085 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2086 eval ac_new_val=\$ac_env_${ac_var}_value
2087 case $ac_old_set,$ac_new_set in
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2090 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2091 ac_cache_corrupted=: ;;
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2094 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2095 ac_cache_corrupted=: ;;
2098 if test "x$ac_old_val" != "x$ac_new_val"; then
2099 # differences in whitespace do not lead to failure.
2100 ac_old_val_w=`echo x $ac_old_val`
2101 ac_new_val_w=`echo x $ac_new_val`
2102 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2104 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2105 ac_cache_corrupted=:
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2108 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2109 eval $ac_var=\$ac_old_val
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2112 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2114 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2117 # Pass precious variables to config.status.
2118 if test "$ac_new_set" = set; then
2120 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2121 *) ac_arg=$ac_var=$ac_new_val ;;
2123 case " $ac_configure_args " in
2124 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2125 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2129 if $ac_cache_corrupted; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2133 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2134 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2136 ## -------------------- ##
2137 ## Main body of script. ##
2138 ## -------------------- ##
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2155 # if PWD already has a value, it is probably wrong.
2156 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2158 # Export original configure arguments for use by sub-configures.
2159 # Quote arguments with shell meta charatcers.
2160 TOPLEVEL_CONFIGURE_ARGUMENTS=
2161 set -- "$progname" "$@"
2165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2166 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2167 # if the argument is of the form -foo=baz, quote the baz part only
2168 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2171 # Add the quoted argument to the list.
2172 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2174 if test "$silent" = yes; then
2175 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2177 # Remove the initial space we just introduced and, as these will be
2178 # expanded by make, quote '$'.
2179 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2182 # Find the build, host, and target systems.
2184 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2185 for ac_t in install-sh install.sh shtool; do
2186 if test -f "$ac_dir/$ac_t"; then
2188 ac_install_sh="$ac_aux_dir/$ac_t -c"
2193 if test -z "$ac_aux_dir"; then
2194 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2197 # These three variables are undocumented and unsupported,
2198 # and are intended to be withdrawn in a future Autoconf release.
2199 # They can cause serious problems if a builder's source tree is in a directory
2200 # whose full name contains unusual characters.
2201 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2202 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2203 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2206 # Make sure we can run config.sub.
2207 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2208 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2211 $as_echo_n "checking build system type... " >&6; }
2212 if test "${ac_cv_build+set}" = set; then :
2213 $as_echo_n "(cached) " >&6
2215 ac_build_alias=$build_alias
2216 test "x$ac_build_alias" = x &&
2217 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2218 test "x$ac_build_alias" = x &&
2219 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2220 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2221 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2225 $as_echo "$ac_cv_build" >&6; }
2226 case $ac_cv_build in
2228 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2231 ac_save_IFS=$IFS; IFS='-'
2237 # Remember, the first character of IFS is used to create $*,
2238 # except with old shells:
2241 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2244 case ${build_alias} in
2245 "") build_noncanonical=${build} ;;
2246 *) build_noncanonical=${build_alias} ;;
2251 case ${host_alias} in
2252 "") host_noncanonical=${build_noncanonical} ;;
2253 *) host_noncanonical=${host_alias} ;;
2258 case ${target_alias} in
2259 "") target_noncanonical=${host_noncanonical} ;;
2260 *) target_noncanonical=${target_alias} ;;
2266 test "$host_noncanonical" = "$target_noncanonical" &&
2267 test "$program_prefix$program_suffix$program_transform_name" = \
2269 program_transform_name=s,y,y,
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2272 $as_echo_n "checking host system type... " >&6; }
2273 if test "${ac_cv_host+set}" = set; then :
2274 $as_echo_n "(cached) " >&6
2276 if test "x$host_alias" = x; then
2277 ac_cv_host=$ac_cv_build
2279 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2280 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2285 $as_echo "$ac_cv_host" >&6; }
2288 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2291 ac_save_IFS=$IFS; IFS='-'
2297 # Remember, the first character of IFS is used to create $*,
2298 # except with old shells:
2301 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2305 $as_echo_n "checking target system type... " >&6; }
2306 if test "${ac_cv_target+set}" = set; then :
2307 $as_echo_n "(cached) " >&6
2309 if test "x$target_alias" = x; then
2310 ac_cv_target=$ac_cv_host
2312 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2313 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2318 $as_echo "$ac_cv_target" >&6; }
2319 case $ac_cv_target in
2321 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2323 target=$ac_cv_target
2324 ac_save_IFS=$IFS; IFS='-'
2330 # Remember, the first character of IFS is used to create $*,
2331 # except with old shells:
2334 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2337 # The aliases save the names the user supplied, while $host etc.
2338 # will get canonicalized.
2339 test -n "$target_alias" &&
2340 test "$program_prefix$program_suffix$program_transform_name" = \
2342 program_prefix=${target_alias}-
2344 test "$program_prefix" != NONE &&
2345 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2346 # Use a double $ so make ignores it.
2347 test "$program_suffix" != NONE &&
2348 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2349 # Double any \ or $.
2350 # By default was `s,x,x', remove it if useless.
2351 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2352 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2356 # Get 'install' or 'install-sh' and its variants.
2357 # Find a good install program. We prefer a C program (faster),
2358 # so one script is as good as another. But avoid the broken or
2359 # incompatible versions:
2360 # SysV /etc/install, /usr/sbin/install
2361 # SunOS /usr/etc/install
2362 # IRIX /sbin/install
2364 # AmigaOS /C/install, which installs bootblocks on floppy discs
2365 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2366 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2367 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2368 # OS/2's system install, which has a completely different semantic
2369 # ./install, which can be erroneously created by make from ./install.sh.
2370 # Reject install programs that cannot install multiple files.
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2372 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2373 if test -z "$INSTALL"; then
2374 if test "${ac_cv_path_install+set}" = set; then :
2375 $as_echo_n "(cached) " >&6
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 # Account for people who put trailing slashes in PATH elements.
2383 case $as_dir/ in #((
2384 ./ | .// | /[cC]/* | \
2385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2386 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2389 # OSF1 and SCO ODT 3.0 have their own names for install.
2390 # Don't use installbsd from OSF since it installs stuff as root
2392 for ac_prog in ginstall scoinst install; do
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2395 if test $ac_prog = install &&
2396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2397 # AIX install. It has an incompatible calling convention.
2399 elif test $ac_prog = install &&
2400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401 # program-specific install script used by HP pwplus--don't use.
2404 rm -rf conftest.one conftest.two conftest.dir
2405 echo one > conftest.one
2406 echo two > conftest.two
2408 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2409 test -s conftest.one && test -s conftest.two &&
2410 test -s conftest.dir/conftest.one &&
2411 test -s conftest.dir/conftest.two
2413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2426 rm -rf conftest.one conftest.two conftest.dir
2429 if test "${ac_cv_path_install+set}" = set; then
2430 INSTALL=$ac_cv_path_install
2432 # As a last resort, use the slow shell script. Don't cache a
2433 # value for INSTALL within a source directory, because that will
2434 # break other packages using the cache if that directory is
2435 # removed, or if the value is a relative name.
2436 INSTALL=$ac_install_sh
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2440 $as_echo "$INSTALL" >&6; }
2442 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2443 # It thinks the first close brace ends the variable substitution.
2444 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2446 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2451 $as_echo_n "checking whether ln works... " >&6; }
2452 if test "${acx_cv_prog_LN+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
2455 rm -f conftestdata_t
2456 echo >conftestdata_f
2457 if ln conftestdata_f conftestdata_t 2>/dev/null
2463 rm -f conftestdata_f conftestdata_t
2466 if test $acx_cv_prog_LN = no; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2469 $as_echo "no, using $LN" >&6; }
2471 LN="$acx_cv_prog_LN"
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2473 $as_echo "yes" >&6; }
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2477 $as_echo_n "checking whether ln -s works... " >&6; }
2479 if test "$LN_S" = "ln -s"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2481 $as_echo "yes" >&6; }
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2484 $as_echo "no, using $LN_S" >&6; }
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2488 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2489 if test "${ac_cv_path_SED+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
2492 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2493 for ac_i in 1 2 3 4 5 6 7; do
2494 ac_script="$ac_script$as_nl$ac_script"
2496 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2497 { ac_script=; unset ac_script;}
2498 if test -z "$SED"; then
2499 ac_path_SED_found=false
2500 # Loop through the user's path and test for each of PROGNAME-LIST
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir=.
2506 for ac_prog in sed gsed; do
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2509 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2510 # Check for GNU ac_path_SED and select it if it is found.
2511 # Check for GNU $ac_path_SED
2512 case `"$ac_path_SED" --version 2>&1` in
2514 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2517 $as_echo_n 0123456789 >"conftest.in"
2520 cat "conftest.in" "conftest.in" >"conftest.tmp"
2521 mv "conftest.tmp" "conftest.in"
2522 cp "conftest.in" "conftest.nl"
2523 $as_echo '' >> "conftest.nl"
2524 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2526 as_fn_arith $ac_count + 1 && ac_count=$as_val
2527 if test $ac_count -gt ${ac_path_SED_max-0}; then
2528 # Best one so far, save it but keep looking for a better one
2529 ac_cv_path_SED="$ac_path_SED"
2530 ac_path_SED_max=$ac_count
2532 # 10*(2^10) chars as input seems more than enough
2533 test $ac_count -gt 10 && break
2535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2538 $ac_path_SED_found && break 3
2543 if test -z "$ac_cv_path_SED"; then
2544 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2552 $as_echo "$ac_cv_path_SED" >&6; }
2553 SED="$ac_cv_path_SED"
2556 for ac_prog in gawk mawk nawk awk
2558 # Extract the first word of "$ac_prog", so it can be a program name with args.
2559 set dummy $ac_prog; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if test "${ac_cv_prog_AWK+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
2565 if test -n "$AWK"; then
2566 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_AWK="$ac_prog"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 if test -n "$AWK"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2588 $as_echo "$AWK" >&6; }
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2595 test -n "$AWK" && break
2599 ### we might need to use some other shell than /bin/sh for running subshells
2600 ### If we are on Windows, search for the shell. This will permit people
2601 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2602 ### without also having to set CONFIG_SHELL. This code will work when
2603 ### using bash, which sets OSTYPE.
2606 if test x${CONFIG_SHELL} = x ; then
2607 if test ! -f /bin/sh ; then
2608 if test x${SHELL} != x && test -f ${SHELL} ; then
2609 CONFIG_SHELL=${SHELL}
2612 for prog in sh sh.exe bash bash.exe; do
2613 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2614 for dir in $PATH; do
2615 test -z "$dir" && dir=.
2616 if test -f $dir/$prog; then
2617 CONFIG_SHELL=$dir/$prog
2623 test -n "${CONFIG_SHELL}" && break
2631 config_shell=${CONFIG_SHELL-/bin/sh}
2633 moveifchange=${srcdir}/move-if-change
2635 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2637 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2639 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2640 INSTALL="${srcpwd}/install-sh -c"
2643 # Set srcdir to "." if that's what it is.
2644 # This is important for multilib support.
2646 if test "${pwd}" = "${srcpwd}" ; then
2654 ### To add a new directory to the tree, first choose whether it is a target
2655 ### or a host dependent tool. Then put it into the appropriate list
2656 ### (library or tools, host or target), doing a dependency sort.
2658 # Subdirs will be configured in the order listed in build_configdirs,
2659 # configdirs, or target_configdirs; see the serialization section below.
2661 # Dependency sorting is only needed when *configuration* must be done in
2662 # a particular order. In all cases a dependency should be specified in
2663 # the Makefile, whether or not it's implicitly specified here.
2665 # Double entries in build_configdirs, configdirs, or target_configdirs may
2666 # cause circular dependencies and break everything horribly.
2668 # these library is used by various programs built for the build
2671 build_libs="build-libiberty"
2673 # these tools are built for the build environment
2674 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2676 # these libraries are used by various programs built for the host environment
2678 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2680 # these tools are built for the host environment
2681 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2682 # know that we are building the simulator.
2683 # binutils, gas and ld appear in that order because it makes sense to run
2684 # "make check" in that particular order.
2685 # If --enable-gold is used, "gold" may replace "ld".
2686 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2688 # libgcj represents the runtime libraries only used by gcj.
2689 libgcj="target-libffi \
2694 # these libraries are built for the target environment, and are built after
2695 # the host libraries and the host tools (which may be a cross compiler)
2697 target_libraries="target-libgcc \
2702 target-libstdc++-v3 \
2705 target-libquadmath \
2706 target-libgfortran \
2713 # these tools are built using the target libraries, and are intended to
2714 # run only in the target environment
2716 # note: any program that *uses* libraries that are in the "target_libraries"
2717 # list belongs in this list. those programs are also very likely
2718 # candidates for the "native_only" list which follows
2720 target_tools="target-examples target-groff target-gperf target-rda"
2722 ################################################################################
2724 ## All tools belong in one of the four categories, and are assigned above
2725 ## We assign ${configdirs} this way to remove all embedded newlines. This
2726 ## is important because configure will choke if they ever get through.
2727 ## ${configdirs} is directories we build using the host tools.
2728 ## ${target_configdirs} is directories we build using the target tools.
2729 configdirs=`echo ${host_libs} ${host_tools}`
2730 target_configdirs=`echo ${target_libraries} ${target_tools}`
2731 build_configdirs=`echo ${build_libs} ${build_tools}`
2735 ################################################################################
2737 srcname="gnu development package"
2739 # This gets set non-empty for some net releases of packages.
2742 # Define is_cross_compiler to save on calls to 'test'.
2744 if test x"${host}" = x"${target}" ; then
2745 is_cross_compiler=no
2747 is_cross_compiler=yes
2750 # Find the build and target subdir names.
2752 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2753 # have matching libraries, they should use host libraries: Makefile.tpl
2754 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2755 # However, they still use the build modules, because the corresponding
2756 # host modules (e.g. bison) are only built for the host when bootstrap
2758 # - build_subdir is where we find build modules, and never changes.
2759 # - build_libsubdir is where we find build libraries, and can be overridden.
2761 # Prefix 'build-' so this never conflicts with target_subdir.
2762 build_subdir="build-${build_noncanonical}"
2764 # Check whether --with-build-libsubdir was given.
2765 if test "${with_build_libsubdir+set}" = set; then :
2766 withval=$with_build_libsubdir; build_libsubdir="$withval"
2768 build_libsubdir="$build_subdir"
2771 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2772 if ( test $srcdir = . && test -d gcc ) \
2773 || test -d $srcdir/../host-${host_noncanonical}; then
2774 host_subdir="host-${host_noncanonical}"
2779 target_subdir=${target_noncanonical}
2781 # Be sure to cover against remnants of an in-tree build.
2782 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2783 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2784 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2787 # Skipdirs are removed silently.
2789 # Noconfigdirs are removed loudly.
2793 # Make sure we don't let GNU ld be added if we didn't want it.
2794 if test x$with_gnu_ld = xno ; then
2796 noconfigdirs="$noconfigdirs ld gold"
2800 # Make sure we don't let GNU as be added if we didn't want it.
2801 if test x$with_gnu_as = xno ; then
2803 noconfigdirs="$noconfigdirs gas"
2807 # Make sure we don't let ZLIB be added if we didn't want it.
2808 if test x$with_system_zlib = xyes ; then
2809 use_included_zlib=no
2810 noconfigdirs="$noconfigdirs zlib"
2813 # some tools are so dependent upon X11 that if we're not building with X,
2814 # it's not even worth trying to configure, much less build, that tool.
2817 yes | "") ;; # the default value for this tree is that X11 is available
2819 skipdirs="${skipdirs} tk itcl libgui"
2820 # We won't be able to build gdbtk without X.
2823 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2826 # Some tools are only suitable for building in a "native" situation.
2827 # Remove these if host!=target.
2828 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2830 # Similarly, some are only suitable for cross toolchains.
2831 # Remove these if host=target.
2832 cross_only="target-libgloss target-newlib target-opcodes"
2834 case $is_cross_compiler in
2835 no) skipdirs="${skipdirs} ${cross_only}" ;;
2836 yes) skipdirs="${skipdirs} ${native_only}" ;;
2839 # If both --with-headers and --with-libs are specified, default to
2841 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2842 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2843 if test x"${with_newlib}" = x ; then
2848 # Recognize --with-newlib/--without-newlib.
2849 case ${with_newlib} in
2850 no) skipdirs="${skipdirs} target-newlib" ;;
2851 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2854 # Handle --enable-gold, --enable-ld.
2855 # --disable-gold [--enable-ld]
2856 # Build only ld. Default option.
2857 # --enable-gold [--enable-ld]
2858 # Build both gold and ld. Install gold as "ld.gold", install ld
2859 # as "ld.bfd" and "ld".
2860 # --enable-gold=default [--enable-ld]
2861 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2862 # install ld as "ld.bfd".
2863 # --enable-gold[=default] --disable-ld
2864 # Build only gold, which is then installed as both "ld.gold" and "ld".
2865 # --enable-gold --enable-ld=default
2866 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2868 # In other words, ld is default
2869 # --enable-gold=default --enable-ld=default
2873 # Check whether --enable-gold was given.
2874 if test "${enable_gold+set}" = set; then :
2875 enableval=$enable_gold; ENABLE_GOLD=$enableval
2880 case "${ENABLE_GOLD}" in
2882 # Check for ELF target.
2885 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2886 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2887 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2889 *-*-linux*aout* | *-*-linux*oldld*)
2897 if test "$is_elf" = "yes"; then
2898 # Check for target supported by gold.
2900 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2901 configdirs="$configdirs gold"
2902 if test x${ENABLE_GOLD} = xdefault; then
2913 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2917 # Check whether --enable-ld was given.
2918 if test "${enable_ld+set}" = set; then :
2919 enableval=$enable_ld; ENABLE_LD=$enableval
2925 case "${ENABLE_LD}" in
2927 if test x${default_ld} != x; then
2928 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2934 if test x${ENABLE_GOLD} != xyes; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2936 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2938 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2941 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2945 # Configure extra directories which are host specific
2949 configdirs="$configdirs libtermcap" ;;
2952 # A target can indicate whether a language isn't supported for some reason.
2953 # Only spaces may be used in this macro; not newlines or tabs.
2954 unsupported_languages=
2956 # Remove more programs from consideration, based on the host or
2957 # target this usually means that a port of the program doesn't
2962 noconfigdirs="$noconfigdirs byacc"
2964 i[3456789]86-*-vsta)
2965 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2967 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2968 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2971 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2973 i[3456789]86-*-mingw32*)
2974 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2975 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2977 i[3456789]86-*-beos*)
2978 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2981 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2984 noconfigdirs="$noconfigdirs rcs"
2987 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2990 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2995 # Check whether --enable-libada was given.
2996 if test "${enable_libada+set}" = set; then :
2997 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3002 if test "${ENABLE_LIBADA}" != "yes" ; then
3003 noconfigdirs="$noconfigdirs gnattools"
3006 # Check whether --enable-libssp was given.
3007 if test "${enable_libssp+set}" = set; then :
3008 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3014 # Save it here so that, even in case of --enable-libgcj, if the Java
3015 # front-end isn't enabled, we still get libgcj disabled.
3016 libgcj_saved=$libgcj
3017 case $enable_libgcj in
3019 # If we reset it here, it won't get added to noconfigdirs in the
3020 # target-specific build rules, so it will be forcibly enabled
3021 # (unless the Java language itself isn't enabled).
3025 # Make sure we get it printed in the list of not supported target libs.
3026 # Don't disable libffi, though, other languages use it.
3027 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3032 # Disable libmudflap on some systems.
3033 if test x$enable_libmudflap = x ; then
3035 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3036 # Enable libmudflap by default in GNU and friends.
3039 # Enable libmudflap by default in FreeBSD.
3042 # Disable it by default everywhere else.
3043 noconfigdirs="$noconfigdirs target-libmudflap"
3048 # Disable libgomp on non POSIX hosted systems.
3049 if test x$enable_libgomp = x ; then
3050 # Enable libgomp by default on hosted POSIX systems.
3052 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3054 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3056 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3058 *-*-darwin* | *-*-aix*)
3061 noconfigdirs="$noconfigdirs target-libgomp"
3066 # Default libgloss CPU subdirectory.
3067 libgloss_dir="$target_cpu"
3071 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3074 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3075 noconfigdirs="$noconfigdirs sim target-rda"
3077 i[3456789]86-*-darwin*)
3078 noconfigdirs="$noconfigdirs ld gprof"
3079 noconfigdirs="$noconfigdirs sim target-rda"
3081 x86_64-*-darwin[912]*)
3082 noconfigdirs="$noconfigdirs ld gas gprof"
3083 noconfigdirs="$noconfigdirs sim target-rda"
3086 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3087 noconfigdirs="$noconfigdirs sim target-rda"
3088 noconfigdirs="$noconfigdirs ${libgcj}"
3090 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3091 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3094 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3095 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3096 && test -f /usr/local/include/gmp.h; then
3100 # Skip some stuff that's unsupported on some FreeBSD configurations.
3106 noconfigdirs="$noconfigdirs ${libgcj}"
3111 # Remove unsupported stuff on all kaOS configurations.
3112 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3113 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3114 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3115 noconfigdirs="$noconfigdirs target-libgloss"
3118 # Skip some stuff on all NetBSD configurations.
3119 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3121 # Skip some stuff that's unsupported on some NetBSD configurations.
3123 i*86-*-netbsdelf*) ;;
3124 arm*-*-netbsdelf*) ;;
3126 noconfigdirs="$noconfigdirs ${libgcj}"
3131 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3134 skipdirs="${skipdirs} target-libiberty"
3135 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3137 # The tpf target doesn't support gdb yet.
3139 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3142 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3145 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3148 # ld works, but does not support shared libraries.
3149 # newlib is not 64 bit ready. I'm not sure about fileutils.
3150 # gas doesn't generate exception information.
3151 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3154 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3157 # newlib is not 64 bit ready
3158 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3161 # newlib is not 64 bit ready
3162 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3165 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3168 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3170 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3171 noconfigdirs="$noconfigdirs ${libgcj}"
3172 noconfigdirs="$noconfigdirs target-examples"
3173 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3174 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3175 noconfigdirs="$noconfigdirs expect dejagnu"
3176 # the C++ libraries don't build on top of CE's C libraries
3177 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3178 noconfigdirs="$noconfigdirs target-newlib"
3180 *-*-cygwin*) ;; # keep gdb and readline
3181 *) noconfigdirs="$noconfigdirs gdb readline"
3187 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3191 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3192 noconfigdirs="$noconfigdirs ${libgcj}"
3195 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3196 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3199 arm*-*-linux-gnueabi)
3200 noconfigdirs="$noconfigdirs target-qthreads"
3201 case ${with_newlib} in
3202 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3207 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3211 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3214 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3217 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3220 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3223 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3226 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3229 unsupported_languages="$unsupported_languages java"
3230 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3231 if test x${is_cross_compiler} != xno ; then
3232 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3235 c4x-*-* | tic4x-*-*)
3236 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3238 c54x*-*-* | tic54x-*-*)
3239 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3242 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3244 cris-*-* | crisv32-*-*)
3245 unsupported_languages="$unsupported_languages java"
3248 unsupported_languages="$unsupported_languages fortran"
3249 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3251 noconfigdirs="$noconfigdirs target-boehm-gc";;
3253 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3255 unsupported_languages="$unsupported_languages fortran"
3256 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3261 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3264 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3267 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3269 ep9312-*-elf | ep9312-*-coff)
3273 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3276 noconfigdirs="$noconfigdirs ${libgcj}"
3279 noconfigdirs="$noconfigdirs ${libgcj}"
3280 noconfigdirs="$noconfigdirs gprof"
3283 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3286 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3288 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3290 hppa*64*-*-linux* | parisc*64*-*-linux*)
3291 # In this case, it's because the hppa64-linux target is for
3292 # the kernel only at this point and has no libc, and thus no
3293 # headers, crt*.o, etc., all of which are needed by these.
3294 noconfigdirs="$noconfigdirs target-zlib"
3296 parisc*-*-linux* | hppa*-*-linux*)
3300 hppa*-*-openbsd* | \
3302 noconfigdirs="$noconfigdirs ${libgcj}"
3305 noconfigdirs="$noconfigdirs ld shellutils"
3311 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3312 # build on HP-UX 10.20.
3313 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3316 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3319 # No gdb support yet.
3320 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3323 # No gdb or ld support yet.
3324 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3327 # No gdb or ld support yet.
3328 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3332 i[3456789]86-*-coff | i[3456789]86-*-elf)
3333 noconfigdirs="$noconfigdirs ${libgcj}"
3336 i[3456789]86-*-linux*)
3337 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3338 # not build java stuff by default.
3341 noconfigdirs="$noconfigdirs ${libgcj}";;
3344 # This section makes it possible to build newlib natively on linux.
3345 # If we are using a cross compiler then don't configure newlib.
3346 if test x${is_cross_compiler} != xno ; then
3347 noconfigdirs="$noconfigdirs target-newlib"
3349 noconfigdirs="$noconfigdirs target-libgloss"
3350 # If we are not using a cross compiler, do configure newlib.
3351 # Note however, that newlib will only be configured in this situation
3352 # if the --with-newlib option has been given, because otherwise
3353 # 'target-newlib' will appear in skipdirs.
3355 i[3456789]86-w64-mingw*)
3356 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3358 i[3456789]86-*-mingw*)
3359 target_configdirs="$target_configdirs target-winsup"
3360 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3363 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3366 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3367 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3368 # always build newlib if winsup directory is present.
3369 if test -d "$srcdir/winsup/cygwin"; then
3370 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3371 elif test -d "$srcdir/newlib"; then
3372 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3375 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3376 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3379 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3381 i[3456789]86-*-sco3.2v5*)
3382 # The linker does not yet know about weak symbols in COFF,
3383 # and is not configured to handle mixed ELF and COFF.
3384 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3386 i[3456789]86-*-sco*)
3387 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3389 i[3456789]86-*-solaris2*)
3390 noconfigdirs="$noconfigdirs target-libgloss"
3392 i[3456789]86-*-sysv4*)
3393 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3395 i[3456789]86-*-beos*)
3396 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3398 i[3456789]86-*-rdos*)
3399 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3402 noconfigdirs="$noconfigdirs ${libgcj}"
3404 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3405 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3406 libgloss_dir=m68hc11
3409 noconfigdirs="$noconfigdirs ${libgcj}"
3412 noconfigdirs="$noconfigdirs ${libgcj}"
3414 m68*-*-* | fido-*-*)
3418 # The EPOC C++ environment does not support exceptions or rtti,
3419 # and so building libstdc++-v3 tends not to always work.
3420 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3423 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3424 unsupported_languages="$unsupported_languages fortran java"
3427 noconfigdirs="$noconfigdirs ${libgcj}"
3430 noconfigdirs="$noconfigdirs ${libgcj}"
3433 noconfigdirs="$noconfigdirs sim"
3436 # copied from rs6000-*-* entry
3437 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3439 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3440 target_configdirs="$target_configdirs target-winsup"
3441 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3442 # always build newlib.
3443 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3445 # This is temporary until we can link against shared libraries
3446 powerpcle-*-solaris*)
3447 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3451 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3454 noconfigdirs="$noconfigdirs ${libgcj}"
3457 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3461 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3464 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3467 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3470 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3473 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3476 skipdirs="$skipdirs target-libiberty"
3477 noconfigdirs="$noconfigdirs ${libgcj}"
3478 if test x$with_newlib = xyes; then
3479 noconfigdirs="$noconfigdirs gprof"
3484 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3487 # Linking libjava exceeds command-line length limits on at least
3488 # IRIX 6.2, but not on IRIX 6.5.
3489 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3490 # <oldham@codesourcery.com>
3491 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3494 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3497 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3500 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3504 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3508 i[3456789]86-*-vsta) ;; # don't add gprof back in
3509 i[3456789]86-*-go32*) ;; # don't add gprof back in
3510 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3511 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3515 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3517 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3520 sparclet-*-aout* | sparc86x-*-*)
3524 noconfigdirs="$noconfigdirs ${libgcj}"
3527 noconfigdirs="$noconfigdirs ${libgcj}"
3531 noconfigdirs="$noconfigdirs ${libgcj}"
3535 noconfigdirs="$noconfigdirs ${libgcj}"
3536 if test x${is_cross_compiler} != xno ; then
3537 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3542 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3543 noconfigdirs="$noconfigdirs ${libgcj}"
3545 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3548 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3551 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3554 noconfigdirs="$noconfigdirs ${libgcj}"
3557 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3560 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3563 noconfigdirs="$noconfigdirs ${libgcj}"
3566 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3568 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3569 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3575 noconfigdirs="$noconfigdirs ${libgcj}"
3579 # If we aren't building newlib, then don't build libgloss, since libgloss
3580 # depends upon some newlib header files.
3581 case "${noconfigdirs}" in
3582 *target-libgloss*) ;;
3583 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3586 # Work in distributions that contain no compiler tools, like Autoconf.
3588 host_makefile_frag=/dev/null
3589 if test -d ${srcdir}/config ; then
3592 # Avoid "too much defining" errors from HPUX compiler.
3593 tentative_cc="cc -Wp,-H256000"
3594 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3595 # If it's HP/UX ar, this should be harmless.
3599 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3602 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3603 # chokes on bfd, the compiler won't let you assign integers to enums, and
3604 # other problems. Defining CC to gcc is a questionable way to say "don't use
3605 # the apollo compiler" (the preferred version of GCC could be called cc,
3606 # or whatever), but I'm not sure leaving CC as cc is any better...
3607 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3608 # Used to have BISON=yacc.
3612 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3615 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3616 tentative_cc="cc -Xa"
3617 host_makefile_frag="config/mh-cxux"
3619 m88k-motorola-sysv*)
3622 tentative_cc="cc -Wf,-XNg1000"
3623 host_makefile_frag="config/mh-decstation"
3626 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3627 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3628 host_makefile_frag="config/mh-necv4"
3631 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3632 # environment. Also bump switch table size so that cp-parse will
3633 # compile. Bump string length limit so linker builds.
3634 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3637 host_makefile_frag="config/mh-sysv4"
3640 # This is for a MIPS running RISC/os 4.52C.
3642 # This is needed for GDB, but needs to be in the top-level make because
3643 # if a library is compiled with the bsd headers and gets linked with the
3644 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3645 # a different size).
3646 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3647 # known except to select the sysv environment. Could we use /proc instead?
3648 # These "sysv environments" and "bsd environments" often end up being a pain.
3650 # This is not part of CFLAGS because perhaps not all C compilers have this
3652 tentative_cc="cc -systype sysv"
3657 i[3456789]86-*-sysv5*)
3658 host_makefile_frag="config/mh-sysv5"
3660 i[3456789]86-*-dgux*)
3661 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3662 host_makefile_frag="config/mh-dgux386"
3664 i[3456789]86-ncr-sysv4.3*)
3665 # The MetaWare compiler will generate a copyright message unless you
3666 # turn it off by adding the -Hnocopyr flag.
3667 tentative_cc="cc -Hnocopyr"
3669 i[3456789]86-ncr-sysv4*)
3670 # for an NCR 3000 (i486/SVR4) system.
3671 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3672 # This compiler not only emits obnoxious copyright messages every time
3673 # you run it, but it chokes and dies on a whole bunch of GNU source
3674 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3675 tentative_cc="/usr/ccs/ATT/cc"
3676 host_makefile_frag="config/mh-ncr3000"
3678 i[3456789]86-*-sco3.2v5*)
3680 i[3456789]86-*-sco*)
3681 # The native C compiler botches some simple uses of const. Unfortunately,
3682 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3683 tentative_cc="cc -Dconst="
3684 host_makefile_frag="config/mh-sco"
3686 i[3456789]86-*-udk*)
3687 host_makefile_frag="config/mh-sysv5"
3689 i[3456789]86-*-solaris2*)
3690 host_makefile_frag="config/mh-sysv4"
3692 i[3456789]86-*-msdosdjgpp*)
3693 host_makefile_frag="config/mh-djgpp"
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3698 $as_echo_n "checking to see if cat works as expected... " >&6; }
3699 echo a >cygwin-cat-check
3700 if test `cat cygwin-cat-check` = a ; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703 $as_echo "yes" >&6; }
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3708 as_fn_error "The cat command does not ignore carriage return characters.
3709 Please either mount the build directory in binary mode or run the following
3710 commands before running any configure script:
3716 host_makefile_frag="config/mh-cygwin"
3719 host_makefile_frag="config/mh-mingw"
3722 host_makefile_frag="config/mh-interix"
3725 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3729 host_makefile_frag="config/mh-solaris"
3732 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3733 # without overflowing the jump tables (-J says to use a 32 bit table)
3734 tentative_cc="cc -J"
3737 tentative_cc="cc -Wp,-H256000"
3738 host_makefile_frag="config/mh-pa-hpux10"
3740 hppa*-hp-hpux* | hppa*-*-hiux*)
3741 tentative_cc="cc -Wp,-H256000"
3742 host_makefile_frag="config/mh-pa"
3745 host_makefile_frag="config/mh-pa"
3747 *-hp-hpux* | *-*-hiux*)
3748 tentative_cc="cc -Wp,-H256000"
3751 # /bin/cc is less than useful for our purposes. Always use GCC
3752 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3753 host_makefile_frag="config/mh-lynxrs6k"
3756 host_makefile_frag="config/mh-darwin"
3759 host_makefile_frag="config/mh-ppc-aix"
3762 host_makefile_frag="config/mh-ppc-aix"
3765 # /bin/cc is less than useful for our purposes. Always use GCC
3766 tentative_cc="/bin/gcc"
3769 host_makefile_frag="config/mh-sysv4"
3771 # This is placed last to prevent interfering with the cases above.
3773 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3774 host_makefile_frag="config/mh-x86omitfp"
3779 # If we aren't going to be using gcc, see if we can extract a definition
3780 # of CC from the fragment.
3781 # Actually, use the 'pre-extracted' version above.
3782 if test -z "${CC}" && test "${build}" = "${host}" ; then
3783 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3785 for dir in $PATH; do
3786 test -z "$dir" && dir=.
3787 if test -f $dir/gcc; then