diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-09 17:17:57 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-09 17:17:57 +0000 |
commit | 7eda0fb788effb42e109ffa89f2bfe7dff227cf4 (patch) | |
tree | 70456a49b9cecf45c2ccc1e666bdf289143a9bcb /libgfortran/configure.ac | |
parent | 091f282f014a2a7257da29bbde75686cf99420e4 (diff) | |
download | gcc-7eda0fb788effb42e109ffa89f2bfe7dff227cf4.tar.gz |
2011-11-09 Tobias Burnus <burnus@net-b.de>
* configure.ac: Make more cross-compile friendly.
* Makefile.in: Regenerate.
* aclocal.m4: Regenerate.
* config.h.in: Regenerate.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181212 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/configure.ac')
-rw-r--r-- | libgfortran/configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac index dbad8f5b16d..a8b944df064 100644 --- a/libgfortran/configure.ac +++ b/libgfortran/configure.ac @@ -51,7 +51,10 @@ AC_SUBST(onestep) # Do not delete or change the following two lines. For why, see # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html AC_CANONICAL_SYSTEM +ACX_NONCANONICAL_TARGET + target_alias=${target_alias-$host_alias} +AC_SUBST(target_alias) # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. @@ -117,6 +120,7 @@ AC_SUBST(toolexeclibdir) # Create a spec file, so that compile/link tests don't fail test -f libgfortran.spec || touch libgfortran.spec +AC_LANG_C # Check the compiler. # The same as in boehm-gc and libstdc++. Have to borrow it from there. # We must force CC to /not/ be precious variables; otherwise @@ -128,6 +132,10 @@ m4_define([_AC_ARG_VAR_PRECIOUS],[]) AC_PROG_CC m4_rename_force([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS]) +AC_SUBST(CFLAGS) + +AM_PROG_CC_C_O + # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. if test "x$GCC" = "xyes"; then AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" |