diff options
author | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-19 07:12:16 +0000 |
---|---|---|
committer | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-19 07:12:16 +0000 |
commit | 2e4ef4e47d6a694fefd307cadc0fecd82ea79fa9 (patch) | |
tree | 00f928e37d415ce07b3907a3f41321acc0f74628 /libgfortran/acinclude.m4 | |
parent | 87a18e8b25690567d23fffb94a4ae8e36fea081b (diff) | |
download | gcc-2e4ef4e47d6a694fefd307cadc0fecd82ea79fa9.tar.gz |
PR libfortran/26893
* acinclude.m4 (LIBGFOR_WORKING_GFORTRAN): New check.
* configure.ac: Add call to LIBGFOR_WORKING_GFORTRAN.
* configure: Regenerate.
* config.h.in: Regenerate because it was forgottent in the last
commit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120949 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/acinclude.m4')
-rw-r--r-- | libgfortran/acinclude.m4 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libgfortran/acinclude.m4 b/libgfortran/acinclude.m4 index 73d67e18784..3c849faca19 100644 --- a/libgfortran/acinclude.m4 +++ b/libgfortran/acinclude.m4 @@ -1,6 +1,22 @@ m4_include(../config/acx.m4) m4_include(../config/no-executables.m4) +dnl Check that we have a working GNU Fortran compiler +AC_DEFUN([LIBGFOR_WORKING_GFORTRAN], [ +AC_MSG_CHECKING([whether the GNU Fortran compiler is working]) +AC_LANG_PUSH([Fortran]) +AC_COMPILE_IFELSE([[ + program foo + real, parameter :: bar = sin (12.34 / 2.5) + end program foo]], + [AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no]) + AC_MSG_ERROR([GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log]) + ]) +AC_LANG_POP([Fortran]) +]) + + dnl Check: dnl * If we have gettimeofday; dnl * If we have struct timezone for use in calling it; |