Mercurial > hg > CbC > CbC_gcc
comparison gnattools/configure.ac @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
17 | 17 |
18 sinclude(../config/acx.m4) | 18 sinclude(../config/acx.m4) |
19 sinclude(../config/override.m4) | 19 sinclude(../config/override.m4) |
20 | 20 |
21 AC_INIT | 21 AC_INIT |
22 AC_PREREQ([2.64]) | |
23 | 22 |
24 AC_CONFIG_SRCDIR([Makefile.in]) | 23 AC_CONFIG_SRCDIR([Makefile.in]) |
25 | 24 |
26 # Command-line options. | 25 # Command-line options. |
27 # Very limited version of AC_MAINTAINER_MODE. | 26 # Very limited version of AC_MAINTAINER_MODE. |
49 ACX_NONCANONICAL_HOST | 48 ACX_NONCANONICAL_HOST |
50 ACX_NONCANONICAL_TARGET | 49 ACX_NONCANONICAL_TARGET |
51 | 50 |
52 # Need to pass this down for now :-P | 51 # Need to pass this down for now :-P |
53 AC_PROG_LN_S | 52 AC_PROG_LN_S |
54 | |
55 # Determine what to build for 'gnattools' | |
56 if test $build = $target ; then | |
57 # Note that build=target is almost certainly the wrong test; FIXME | |
58 default_gnattools_target="gnattools-native" | |
59 else | |
60 default_gnattools_target="gnattools-cross" | |
61 fi | |
62 AC_SUBST([default_gnattools_target]) | |
63 | 53 |
64 # Target-specific stuff (defaults) | 54 # Target-specific stuff (defaults) |
65 TOOLS_TARGET_PAIRS= | 55 TOOLS_TARGET_PAIRS= |
66 AC_SUBST(TOOLS_TARGET_PAIRS) | 56 AC_SUBST(TOOLS_TARGET_PAIRS) |
67 EXTRA_GNATTOOLS= | 57 EXTRA_GNATTOOLS= |
134 esac | 124 esac |
135 | 125 |
136 # From user or toplevel makefile. | 126 # From user or toplevel makefile. |
137 AC_SUBST(ADA_CFLAGS) | 127 AC_SUBST(ADA_CFLAGS) |
138 | 128 |
129 # This is testing the CC passed from the toplevel Makefile, not the | |
130 # one we will select below. | |
139 AC_PROG_CC | 131 AC_PROG_CC |
140 warn_cflags= | 132 warn_cflags= |
141 if test "x$GCC" = "xyes"; then | 133 if test "x$GCC" = "xyes"; then |
142 warn_cflags='$(GCC_WARN_CFLAGS)' | 134 warn_cflags='$(GCC_WARN_CFLAGS)' |
143 fi | 135 fi |
144 AC_SUBST(warn_cflags) | 136 AC_SUBST(warn_cflags) |
145 | 137 |
138 # Determine what to build for 'gnattools'. Test after the above, | |
139 # because testing for CC sets the final value of cross_compiling, even | |
140 # if we end up using a different CC. We want to build | |
141 # gnattools-native when: (a) this is a native build, i.e., | |
142 # cross_compiling=no, otherwise we know we cannot run binaries | |
143 # produced by the toolchain used for the build, not even the binaries | |
144 # created within ../gcc/; (b) build and host are the same, otherwise | |
145 # this is to be regarded as a cross build environment even if it seems | |
146 # that we can run host binaries; (c) host and target are the same, | |
147 # otherwise the tools in ../gcc/ generate code for a different | |
148 # platform. If you change this test, be sure to adjust | |
149 # ../gcc/ada/gcc-interface/config-lang.in as well. | |
150 if test "x$cross_compiling/$build/$host" = "xno/$host/$target" ; then | |
151 default_gnattools_target="gnattools-native" | |
152 else | |
153 default_gnattools_target="gnattools-cross" | |
154 fi | |
155 AC_SUBST([default_gnattools_target]) | |
156 | |
146 # Output: create a Makefile. | 157 # Output: create a Makefile. |
147 AC_CONFIG_FILES([Makefile]) | 158 AC_CONFIG_FILES([Makefile]) |
148 | 159 |
149 AC_OUTPUT | 160 AC_OUTPUT |