diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-08-25 23:14:25 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-08-25 23:14:25 +0000 |
commit | 247fccdeb54a09a14287b2e829511803ad9d7cc1 (patch) | |
tree | c992df7132ca0c315cbcfd5ad81bbc4f16675936 /sim/configure.in | |
parent | 04f295b64859a6c6b01739fc4dd7fddce42db8d9 (diff) | |
download | gdb-247fccdeb54a09a14287b2e829511803ad9d7cc1.zip gdb-247fccdeb54a09a14287b2e829511803ad9d7cc1.tar.gz gdb-247fccdeb54a09a14287b2e829511803ad9d7cc1.tar.bz2 |
Add ABFD argument to sim_open call. Pass through to sim_config so
that image properties such as endianness can be checked.
More strongly document the expected behavour of each of the sim_*
interfaces.
Add default endian argument to simulator config macro
SIM_AC_OPTION_ENDIAN. Use in sim_config.
Diffstat (limited to 'sim/configure.in')
-rw-r--r-- | sim/configure.in | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/sim/configure.in b/sim/configure.in index e316e3a..6274b87 100644 --- a/sim/configure.in +++ b/sim/configure.in @@ -38,6 +38,7 @@ esac]) # Assume simulator can be built with cc. # If the user passes --enable-sim built it regardless of $(CC). only_if_gcc=no +only_if_enabled=no extra_subdirs=common # WHEN ADDING ENTRIES TO THIS MATRIX: @@ -116,10 +117,10 @@ case "${target}" in sparc*-*-*) # The SPARC simulator can only be compiled by gcc. sim_target=erc32 - # Unfortunately erc32 won't build on many hosts, so don't - # build it at all - sim_target=none only_if_gcc=yes + # Unfortunately erc32 won't build on many hosts, so only enable + # it if the user really really wants it. + only_if_enabled=yes ;; *) sim_target=none ;; esac @@ -135,9 +136,13 @@ yes) fi ;; *) - if test ${only_if_gcc} = yes ; then - if test "${GCC}" != yes ; then - sim_target=none + if test ${only_if_enabled} = yes ; then + sim_target=none + else + if test ${only_if_gcc} = yes ; then + if test "${GCC}" != yes ; then + sim_target=none + fi fi fi ;; |