| 1 | # configure.host
|
|---|
| 2 |
|
|---|
| 3 | # This shell script handles all host based configuration for libgcj.
|
|---|
| 4 | # It sets various shell variables based on the the host and the
|
|---|
| 5 | # configuration options. You can modify this shell script without
|
|---|
| 6 | # needing to rerun autoconf.
|
|---|
| 7 |
|
|---|
| 8 | # This shell script should be invoked as
|
|---|
| 9 | # . configure.host
|
|---|
| 10 | # If it encounters an error, it will exit with a message.
|
|---|
| 11 |
|
|---|
| 12 | # It uses the following shell variables:
|
|---|
| 13 | # host The configuration host
|
|---|
| 14 | # host_cpu The configuration host CPU
|
|---|
| 15 | # target_optspace --enable-target-optspace ("yes", "no", "")
|
|---|
| 16 |
|
|---|
| 17 | # It sets the following shell variables:
|
|---|
| 18 | # libgcj_cflags Special CFLAGS to use when building
|
|---|
| 19 | # libgcj_cxxflags Special CXXFLAGS to use when building
|
|---|
| 20 | # libgcj_javaflags Special JAVAFLAGS to use when building
|
|---|
| 21 | # libgcj_interpreter If the bytecode interpreter supports this platform.
|
|---|
| 22 | # enable_java_net_default If java.net native code should be enabled by
|
|---|
| 23 | # default.
|
|---|
| 24 | # enable_hash_synchronization_default If hash synchronization should be
|
|---|
| 25 | # enabled by default.
|
|---|
| 26 | # sysdeps_dir Directory containing system-dependent headers
|
|---|
| 27 | # slow_pthread_self The synchronization code should try to avoid
|
|---|
| 28 | # pthread_self calls by caching thread IDs in a hashtable
|
|---|
| 29 | # can_unwind_signal Set to "yes" if the EH unwinder supports throwing
|
|---|
| 30 | # from a signal handler.
|
|---|
| 31 |
|
|---|
| 32 | libgcj_flags=
|
|---|
| 33 | libgcj_cflags=
|
|---|
| 34 | libgcj_cxxflags=
|
|---|
| 35 | libgcj_javaflags=
|
|---|
| 36 | libgcj_interpreter=
|
|---|
| 37 | enable_java_net_default=yes
|
|---|
| 38 | enable_hash_synchronization_default=no
|
|---|
| 39 | sysdeps_dir=generic
|
|---|
| 40 | slow_pthread_self=
|
|---|
| 41 | can_unwind_signal=no
|
|---|
| 42 |
|
|---|
| 43 | case "${target_optspace}:${host}" in
|
|---|
| 44 | yes:*)
|
|---|
| 45 | libgcj_flags="${libgcj_flags} -Os"
|
|---|
| 46 | ;;
|
|---|
| 47 | :m32r-* | :d10v-* | :d30v-*)
|
|---|
| 48 | libgcj_flags="${libgcj_flags} -Os"
|
|---|
| 49 | ;;
|
|---|
| 50 | no:* | :*)
|
|---|
| 51 | # Nothing.
|
|---|
| 52 | ;;
|
|---|
| 53 | esac
|
|---|
| 54 |
|
|---|
| 55 | AM_RUNTESTFLAGS=
|
|---|
| 56 |
|
|---|
| 57 | # Set any host dependent compiler flags.
|
|---|
| 58 | # THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
|---|
| 59 |
|
|---|
| 60 | echo "$target"
|
|---|
| 61 |
|
|---|
| 62 | DIVIDESPEC=-fuse-divide-subroutine
|
|---|
| 63 | EXCEPTIONSPEC=-fnon-call-exceptions
|
|---|
| 64 | CHECKREFSPEC=
|
|---|
| 65 |
|
|---|
| 66 | # This case statement supports per-CPU defaults.
|
|---|
| 67 | case "${host}" in
|
|---|
| 68 | arm*-elf | strongarm*-elf | xscale*-elf)
|
|---|
| 69 | with_libffi_default=no
|
|---|
| 70 | PROCESS=Ecos
|
|---|
| 71 | FILE=Posix
|
|---|
| 72 | CHECKREFSPEC=-fcheck-references
|
|---|
| 73 | EXCEPTIONSPEC=
|
|---|
|
|---|