# enable_threads_flag Either the name, yes or no depending on whether
# threads support was requested.
#
+# default_use_cxa_atexit
+# "no" by default, can be set to "yes" if a target
+# wishes to use __cxa_atexit() by default if the
+# $enable___cxa_atexit variable is not set.
+#
# gas_flag Either yes or no depending on whether GNU as was
# requested.
#
# determines the underlying integral type for
# HOST_WIDE_INT cannot see the definition of
# MAX_LONG_TYPE_SIZE.)
+#
+# configure_default_options
+# Set to an initializer for configure_default_options
+# in configargs.h, based on --with-cpu et cetera.
# The following variables are used in each case-construct to build up the
# outgoing variables:
gas="$gas_flag"
gnu_ld="$gnu_ld_flag"
enable_threads=$enable_threads_flag
+default_use_cxa_atexit=no
target_gtfiles=
need_64bit_hwint=
cpu_type=alpha
need_64bit_hwint=yes
;;
-arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
+strongarm*-*-*)
+ cpu_type=arm
+ ;;
+arm*-*-*)
+ cpu_type=arm
+ ;;
+ep9312*-*-*)
+ cpu_type=arm
+ ;;
+xscale-*-*)
cpu_type=arm
;;
i[34567]86-*-*)
cpu_type=i386
- extra_headers="mmintrin.h xmmintrin.h"
+ extra_headers="mmintrin.h xmmintrin.h emmintrin.h"
;;
x86_64-*-*)
cpu_type=i386
- extra_headers="mmintrin.h xmmintrin.h"
+ extra_headers="mmintrin.h xmmintrin.h emmintrin.h"
need_64bit_hwint=yes
;;
ia64-*-*)
extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
;;
esac
+
+ # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
+ # default (unless overridden by --disable-__cxa_atexit).
+ case $machine in
+ *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
+ default_use_cxa_atexit=yes
+ ;;
+ esac
;;
*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
# This is the place-holder for the generic a.out configuration
;;
m32r-*-elf*)
tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
- extra_parts="crtinit.o crtfini.o m32rx/crtinit.o m32rx/crtfini.o"
+ extra_parts="crtinit.o crtfini.o"
;;
# m68hc11 and m68hc12 share the same machine description.
m68hc11-*-*|m6811-*-*)
extra_headers=
;;
powerpc64-*-linux*)
- tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux64.h"
- tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-linux64"
+ tm_file="rs6000/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
+ case x$with_cpu in
+ x|xpowerpc64|xdefault64) tm_file="${tm_file} rs6000/default64.h";;
+ esac
+ tm_file="${tm_file} rs6000/linux64.h"
+ tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-ppccomm rs6000/t-linux64"
;;
powerpc64-*-gnu*)
tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux64.h rs6000/gnu.h"
extra_headers=
;;
rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
- tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
+ tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
tmake_file=rs6000/t-aix43
use_collect2=yes
thread_file='aix'
extra_headers=
;;
rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
- tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
+ tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
tmake_file=rs6000/t-aix43
use_collect2=yes
thread_file='aix'
;;
esac
-# Distinguish i[34567]86
-# Also, do not run mips-tfile on MIPS if using gas.
-# Process --with-cpu= for PowerPC/rs6000
-target_cpu_default2=
-case $machine in
-i486-*-*)
- target_cpu_default2=TARGET_CPU_DEFAULT_i486
- ;;
-i586-*-*)
- case $target_alias in
- k6_2-*)
- target_cpu_default2=TARGET_CPU_DEFAULT_k6_2
+# Support for --with-cpu and related options (and a few unrelated options,
+# too). Only do this if $machine is the target, or we'll try to validate
+# the CPU argument against the wrong machine type.
+
+if test "x$pass2done" = xyes
+then
+ case "x$with_cpu" in
+ xyes | xno)
+ echo "--with-cpu must be passed a value" 1>&2
+ exit 1
+ ;;
+ esac
+
+ # If there is no $with_cpu option, try to infer one from ${machine}.
+ # This block sets nothing except for with_cpu.
+ if test x$with_cpu = x
+ then
+ case $machine in
+ ep9312-*-*)
+ # A Cirrus ARM variant.
+ with_cpu="ep9312"
;;
- k6_3-*)
- target_cpu_default2=TARGET_CPU_DEFAULT_k6_3
+ i486-*-*)
+ with_cpu=i486
;;
- k6-*)
- target_cpu_default2=TARGET_CPU_DEFAULT_k6
+ i586-*-*)
+ case $target_alias in
+ k6_2-*)
+ with_cpu=k6-2
+ ;;
+ k6_3-*)
+ with_cpu=k6-3
+ ;;
+ k6-*)
+ with_cpu=k6
+ ;;
+ pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
+ with_cpu=pentium-mmx
+ ;;
+ *)
+ with_cpu=pentium
+ ;;
+ esac
;;
- pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
- target_cpu_default2=TARGET_CPU_DEFAULT_pentium_mmx
+ i686-*-* | i786-*-*)
+ case $target_alias in
+ k8-*)
+ with_cpu=k8
+ ;;
+ athlon_xp-*|athlon_mp-*|athlon_4-*)
+ with_cpu=athlon-4
+ ;;
+ athlon_tbird-*|athlon-*)
+ with_cpu=athlon
+ ;;
+ pentium2-*)
+ with_cpu=pentium2
+ ;;
+ pentium3-*)
+ with_cpu=pentium3
+ ;;
+ pentium4-*)
+ with_cpu=pentium4
+ ;;
+ *)
+ with_cpu=pentiumpro
+ ;;
+ esac
;;
- *)
- target_cpu_default2=TARGET_CPU_DEFAULT_pentium
+ x86_64-*-*)
+ with_cpu=k8
;;
- esac
- ;;
-i686-*-* | i786-*-*)
- case $target_alias in
- k8-*)
- target_cpu_default2=TARGET_CPU_DEFAULT_k8
+ alpha*-*-*)
+ case $machine in
+ alphaev6[78]*)
+ with_cpu=ev67
+ ;;
+ alphaev6*)
+ with_cpu=ev6
+ ;;
+ alphapca56*)
+ with_cpu=pca56
+ ;;
+ alphaev56*)
+ with_cpu=ev56
+ ;;
+ alphaev5*)
+ with_cpu=ev5
+ ;;
+ esac
;;
- athlon_xp-*|athlon_mp-*|athlon_4-*)
- target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
+ sparc*-*-*)
+ with_cpu="`echo $machine | sed 's/-.*$//'`"
;;
- athlon_tbird-*|athlon-*)
- target_cpu_default2=TARGET_CPU_DEFAULT_athlon
+ esac
+ fi
+
+ # Similarly for --with-schedule.
+ if test x$with_schedule = x; then
+ case $machine in
+ hppa1* | parisc1*)
+ # Override default PA8000 scheduling model.
+ with_schedule=7100LC
;;
- pentium2-*)
- target_cpu_default2=TARGET_CPU_DEFAULT_pentium2
+ esac
+ fi
+
+ # Validate and mark as valid any --with options supported
+ # by this target. In order to use a particular --with option
+ # you must list it in supported_defaults; validating the value
+ # is optional. This case statement should set nothing besides
+ # supported_defaults.
+
+ supported_defaults=
+ case "$machine" in
+ alpha*-*-*)
+ supported_defaults="cpu tune"
+ for which in cpu tune; do
+ eval "val=\$with_$which"
+ case "x$val" in
+ x \
+ | xev4 | xev45 | x21064 | xev5 | x21164 | xev56 | x21164a \
+ | xpca56 | x21164PC | x21164pc | xev6 | x21264 | xev67 \
+ | x21264a)
+ ;;
+ *)
+ echo "Unknown CPU used in --with-$which=$val" 1>&2
+ exit 1
+ ;;
+ esac
+ done
+ ;;
+
+ arm*-*-*)
+ supported_defaults="arch cpu float tune"
+ for which in cpu tune; do
+ eval "val=\$with_$which"
+ case "x$val" in
+ x \
+ | xarm[236789] | xarm250 | xarm[67][01]0 \
+ | xarm60 | xarm620 | xarm7d | xarm7di \
+ | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
+ | xarm70 | xarm700i | xarm710t | xarm720 \
+ | xarm720t | xarm740t | xarm710c | xarm920 \
+ | xarm920t | xarm940t | xarm9e | xarm10tdmi \
+ | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
+ | xarm1020t \
+ | xxscale \
+ | xep9312 \
+ | xstrongarm | xstrongarm110 | xstrongarm11[01]0)
+ # OK
+ ;;
+ *)
+ echo "Unknown CPU used in --with-$which=$val" 1>&2
+ exit 1
+ ;;
+ esac
+ done
+
+ case "x$with_arch" in
+ x \
+ | xarmv[2345] | xarmv2a | xarmv3m | xarmv4t | xarmv5t \
+ | xarmv5te | ep9312)
+ # OK
;;
- pentium3-*)
- target_cpu_default2=TARGET_CPU_DEFAULT_pentium3
+ *)
+ echo "Unknown arch used in --with-arch=$with_arch" 1>&2
+ exit 1
;;
- pentium4-*)
- target_cpu_default2=TARGET_CPU_DEFAULT_pentium4
+ esac
+
+ case "x$with_float" in
+ x \
+ | xsoft | xhard)
+ # OK
;;
*)
- target_cpu_default2=TARGET_CPU_DEFAULT_pentiumpro
- ;;
- esac
- ;;
-x86_64-*-*)
- # We should have hammer chip here, but it does not exist yet and
- # thus it is not supported. Athlon_SSE is probably equivalent feature
- # wise to hammer from our point of view except for 64bit mode.
- target_cpu_default2=TARGET_CPU_DEFAULT_k8
- ;;
-alpha*-*-*)
- case $machine in
- alphaev6[78]*)
- target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
+ echo "Unknown floating point type used in --with-float=$with_float" 1>&2
+ exit 1
;;
- alphaev6*)
- target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
+ esac
+
+ if test "x$with_arch" != x && test "x$with_cpu" != x; then
+ echo "Warning: --with-arch overrides --with-cpu" 1>&2
+ fi
+ ;;
+
+ hppa*-*-* | parisc*-*-*)
+ supported_defaults="arch schedule"
+
+ case "x$with_arch" in
+ x | x1.0 | x1.1 | x2.0)
+ # OK
;;
- alphapca56*)
- target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
+ *)
+ echo "Unknown architecture used in --with-arch=$with_arch" 1>&2
+ exit 1
;;
- alphaev56*)
- target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
+ esac
+
+ case "x$with_schedule" in
+ x | x700 | x7100 | x7100LC | x7200 | x7300 | x8000)
+ # OK
;;
- alphaev5*)
- target_cpu_default2="MASK_CPU_EV5"
+ *)
+ echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2
+ exit 1
;;
- esac
+ esac
+ ;;
- if test x$gas = xyes
- then
- if test "$target_cpu_default2" = ""
- then
- target_cpu_default2="MASK_GAS"
- else
- target_cpu_default2="${target_cpu_default2}|MASK_GAS"
- fi
- fi
- ;;
-arm*-*-* | xscale-*-*)
- case "x$with_cpu" in
- x)
- # The most generic
- target_cpu_default2="TARGET_CPU_generic"
- ;;
+ i[34567]86-*-* | x86_64-*-*)
+ supported_defaults="arch cpu tune"
+ for which in arch cpu tune; do
+ eval "val=\$with_$which"
+ case "x$val" in
+ x \
+ | xi386 | xi486 \
+ | xi586 | xpentium | xpentium-mmx | xwinchip-c6 | xwinchip2 \
+ | xc3 | xc3-2 | xi686 | xpentiumpro | xpentium2 | xpentium3 \
+ | xpentium4 | xk6 | xk6-2 | xk6-3 | xathlon | xathlon-tbird \
+ | xathlon-4 | xathlon-xp | xathlon-mp | xk8)
+ # OK
+ ;;
+ *)
+ echo "Unknown CPU given in --with-$which=$val." 1>&2
+ exit 1
+ ;;
+ esac
+ done
+ ;;
- # Distinguish cores, and major variants
- # arm7m doesn't exist, but D & I don't affect code
- xarm[236789] | xarm250 | xarm[67][01]0 \
- | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
- | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
- | xxscale | xiwmmxt \
- | xep9312 \
- | xstrongarm | xstrongarm110 | xstrongarm1100)
- target_cpu_default2="TARGET_CPU_$with_cpu"
- ;;
+ mips*-*-*)
+ supported_defaults="abi arch float tune"
- xyes | xno)
- echo "--with-cpu must be passed a value" 1>&2
+ case "x$with_float" in
+ x \
+ | xsoft | xhard)
+ # OK
+ ;;
+ *)
+ echo "Unknown floating point type used in --with-float=$with_float" 1>&2
exit 1
;;
+ esac
+ case "x$with_abi" in
+ x \
+ | x32 | xo64 | xn32 | x64 | xeabi)
+ # OK
+ ;;
*)
- if test x$pass2done = xyes
- then
- echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
+ echo "Unknown ABI used in --with-abi=$with_abi" 1>&2
+ exit 1
+ ;;
+ esac
+ ;;
+
+ powerpc*-*-* | rs6000-*-*)
+ supported_defaults="cpu float tune"
+
+ for which in cpu tune; do
+ eval "val=\$with_$which"
+ case "x$val" in
+ x \
+ | xdefault32 | xdefault64 \
+ | xcommon \
+ | xpower | xpower2 | xpower3 | xpower4 \
+ | xpowerpc | xpowerpc64 \
+ | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
+ | x401 | x403 | x405 | x405fp | x440 | x440fp | x505 \
+ | x601 | x602 | x603 | x603e | xec603e | x604 \
+ | x604e | x620 | x630 | x740 | x750 | x7400 | x7450 \
+ | x8540 | x801 | x821 | x823 | x860)
+ # OK
+ ;;
+ *)
+ echo "Unknown cpu used in --with-$which=$val." 1>&2
exit 1
- fi
+ ;;
+ esac
+ done
+ ;;
+
+ sparc*-*-*)
+ supported_defaults="cpu float tune"
+
+ for which in cpu tune; do
+ eval "val=\$with_$which"
+ case x$val in
+ x \
+ | xsparc | xsparcv9 | xsparc64 | xsparc86x \
+ | xv7 | xcypress | xv8 | xsupersparc | xsparclite | xf930 \
+ | xf934 | xhypersparc | xsparclite86x | xsparclet | tsc701 \
+ | xv9 | xultrasparc | xultrasparc3)
+ # OK
+ ;;
+ *)
+ echo "Unknown cpu used in --with-$which=$val" 1>&2
+ exit 1
+ ;;
+ esac
+ done
+
+ case "x$with_float" in
+ x \
+ | xsoft | xhard)
+ # OK
;;
- esac
- case $machine in
- 9ep9312-*-*)
- target_cpu_default2="TARGET_CPU_9ep9312"
+ *)
+ echo "Unknown floating point type used in --with-float=$with_float" 1>&2
+ exit 1
;;
- esac
- ;;
+ esac
+ ;;
-hppa*-*-* | parisc*-*-*)
- if test x$gas = xyes
- then
- target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
- fi
- case $machine in
- hppa1* | parisc1*)
- tm_defines="TARGET_SCHED_DEFAULT=\\\"7100LC\\\""
+ v850*-*-*)
+ supported_defaults=cpu
+ case "x$with_cpu" in
+ x | xv850e)
+ # OK
;;
+ *)
+ echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
+ exit 1
+ ;;
+ esac
+ ;;
esac
- ;;
-mips*-*-*)
+
+ # Set some miscellaneous flags for particular targets.
+ target_cpu_default2=
case $machine in
- mips*-*-ecoff* | mips*-*-elf*)
- if test x$gas = xyes
- then
- if test x$gnu_ld = xyes
- then
- target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
- else
- target_cpu_default2="MASK_GAS"
- fi
- fi
- ;;
- mips*-*-*)
+ alpha*-*-*)
if test x$gas = xyes
then
target_cpu_default2="MASK_GAS"
fi
;;
- esac
- case $machine in
- mips*el-*-*)
- tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
- ;;
- esac
- case $tm_file in
- *mips/elf.h* | *mips/elf64.h*)
- tm_defines="OBJECT_FORMAT_ELF $tm_defines"
- ;;
- esac
- if test "x$enable_gofast" = xyes
- then
- tm_defines="INIT_SUBTARGET_OPTABS=INIT_GOFAST_OPTABS $tm_defines"
- tm_file="gofast.h $tm_file"
- tmake_file="mips/t-gofast $tmake_file"
- else
- tmake_file="mips/t-mips $tmake_file"
- fi
- ;;
-powerpc*-*-* | rs6000-*-*)
- if test x$enable_altivec = xyes
- then
- tm_file="$tm_file rs6000/altivec-defs.h"
- fi
- case "x$with_cpu" in
+
+ arm*-*-*)
+ case "x$with_cpu" in
x)
+ # The most generic
+ target_cpu_default2="TARGET_CPU_generic"
;;
- xcommon | xpowerpc | xpowerpc64 \
- | xpower | xpower2 | xpower3 | xpower4 \
- | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
- | x601 | x602 | x603 | x603e | x604 | x604e | x620 | x630 \
- | x740 | x750 | x7400 | x7450 | x505)
- target_cpu_default2="\\\"$with_cpu\\\""
+ *)
+ target_cpu_default2="TARGET_CPU_$with_cpu"
;;
+ esac
+ ;;
- x401 | x403 | x405 | xec603e | x801 | x821 | x823 | x860)
- target_cpu_default2="\\\"$with_cpu\\\""
- ;;
+ hppa*-*-* | parisc*-*-*)
+ if test x$gas = xyes
+ then
+ target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
+ fi
+ ;;
- xyes | xno)
- echo "--with-cpu must be passed a value" 1>&2
- exit 1
+ mips*-*-*)
+ case $machine in
+ mips*-*-ecoff* | mips*-*-elf*)
+ if test x$gas = xyes
+ then
+ if test x$gnu_ld = xyes
+ then
+ target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
+ else
+ target_cpu_default2="MASK_GAS"
+ fi
+ fi
;;
-
- *)
- if test x$pass2done = xyes
+ mips*-*-*)
+ if test x$gas = xyes
then
- echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
- exit 1
+ target_cpu_default2="MASK_GAS"
fi
;;
- esac
- out_file=rs6000/rs6000.c
- c_target_objs="${c_target_objs} rs6000-c.o"
- cxx_target_objs="${cxx_target_objs} rs6000-c.o"
- tmake_file="rs6000/t-rs6000 ${tmake_file}"
- ;;
-sparc*-*-*)
- case ".$with_cpu" in
- .)
- target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
+ esac
+ case $machine in
+ mips*el-*-*)
+ tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
+ ;;
+ esac
+ case $tm_file in
+ *mips/elf.h* | *mips/elf64.h*)
+ tm_defines="OBJECT_FORMAT_ELF $tm_defines"
+ ;;
+ esac
+ if test "x$enable_gofast" = xyes
+ then
+ tm_defines="INIT_SUBTARGET_OPTABS=INIT_GOFAST_OPTABS $tm_defines"
+ tm_file="gofast.h $tm_file"
+ tmake_file="mips/t-gofast $tmake_file"
+ else
+ tmake_file="mips/t-mips $tmake_file"
+ fi
+ ;;
+
+ powerpc*-*-* | rs6000-*-*)
+ if test x$enable_altivec = xyes
+ then
+ tm_file="$tm_file rs6000/altivec-defs.h"
+ fi
+ # FIXME: The PowerPC port uses the value set at compile time,
+ # although it's only cosmetic.
+ if test "x$with_cpu" != x
+ then
+ target_cpu_default2="\\\"$with_cpu\\\""
+ fi
+ out_file=rs6000/rs6000.c
+ c_target_objs="${c_target_objs} rs6000-c.o"
+ cxx_target_objs="${cxx_target_objs} rs6000-c.o"
+ tmake_file="rs6000/t-rs6000 ${tmake_file}"
+ ;;
+
+ sparc*-*-*)
+ # Some standard aliases.
+ case x$with_cpu in
+ xsparc)
+ with_cpu=v7
;;
- .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
- target_cpu_default2="TARGET_CPU_$with_cpu"
+ xsparc86x)
+ with_cpu=sparclite86x
;;
- *)
- if test x$pass2done = xyes
- then
- echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
- exit 1
- fi
+ xsparcv9 | xsparc64)
+ with_cpu=v9
;;
- esac
- ;;
-v850*-*-*)
- case "x$with_cpu" in
+ esac
+
+ # The Sparc port checks this value at compile-time.
+ target_cpu_default2="TARGET_CPU_$with_cpu"
+ ;;
+ v850*-*-*)
+ # FIXME: The v850 is "special" in that it does not support
+ # runtime CPU selection, only --with-cpu.
+ case "x$with_cpu" in
x)
;;
xv850e)
target_cpu_default2="TARGET_CPU_$with_cpu"
;;
- *)
- if test x$pass2done = xyes
- then
- echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
- exit 1
- fi
- ;;
+ esac
+ ;;
esac
- ;;
-esac
-if test "$target_cpu_default2" != ""
-then
- if test "$target_cpu_default" != ""
+ t=
+ all_defaults="abi cpu arch tune schedule float"
+ for option in $all_defaults
+ do
+ eval "val=\$with_$option"
+ if test -n "$val"; then
+ case " $supported_defaults " in
+ *" $option "*)
+ ;;
+ *)
+ echo "This target does not support --with-$option." 2>&1
+ exit 1
+ ;;
+ esac
+
+ if test "x$t" = x
+ then
+ t="{ \"$option\", \"$val\" }"
+ else
+ t="${t}, { \"$option\", \"$val\" }"
+ fi
+ fi
+ done
+ if test "x$t" = x
then
- target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
+ configure_default_options="{ { NULL, NULL} }"
else
- target_cpu_default=$target_cpu_default2
+ configure_default_options="{ ${t} }"
+ fi
+
+ if test "$target_cpu_default2" != ""
+ then
+ if test "$target_cpu_default" != ""
+ then
+ target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
+ else
+ target_cpu_default=$target_cpu_default2
+ fi
fi
fi