[devel] Пример лечения autoconf для фортрана 90

Евгений Ростовцев real.altlinux.org на gmail.com
Вс Янв 17 14:02:21 UTC 2010


Здесь:
http://git.altlinux.org/people/real/packages/chasm.git?p=chasm.git;a=commitdiff;h=257d8f4f1c3f725dfd42b9253b69e87d5e2143b5

From: Eugeny A. Rostovtsev (REAL) real at altlinux.org <real на altlinux.org>
Date: Sun, 17 Jan 2010 11:59:38 +0000 (+0700)
Subject: Fix aclocal.m4 for autoconf 2.6
X-Git-Tag: 1.4.0-alt2.cvs20090407.3~1
X-Git-Url: http://git.altlinux.org/people/real/packages/chasm.git?p=chasm.git;a=commitdiff_plain;h=257d8f4f1c3f725dfd42b9253b69e87d5e2143b5

Fix aclocal.m4 for autoconf 2.6
---

diff --git a/cca-tools/chasm-1.4/aclocal.m4 b/cca-tools/chasm-1.4/aclocal.m4
index 9647940..196a922 100644
--- a/cca-tools/chasm-1.4/aclocal.m4
+++ b/cca-tools/chasm-1.4/aclocal.m4
@@ -1129,6 +1129,13 @@ if test "$llnl_cv_old_cxx_header_suffix" = yes; then
 AC_DEFINE(REQUIRE_OLD_CXX_HEADER_SUFFIX,,[define if C++ requires old
.h-style header includes])
 fi])	

+AC_LANG_DEFINE([Fortran 90], [f95], [f95], [F90], [],
+[ac_ext=f
+ac_compile='$F90 -c $FFLAGS conftest.$ac_ext >&AS_MESSAGE_LOG_FD'
+ac_link='$F90 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext
$LIBS >&AS_MESSAGE_LOG_FD'
+ac_compiler_gnu=$ac_cv_f90_compiler_gnu
+])
+

 dnl *** file: config/llnl-ac-macros/llnl_f90_c_config.m4
 dnl
@@ -1499,7 +1506,7 @@ m4_define([_AC_LANG_ABBREV(Fortran 95)], [f95])

 # AC_LANG_SOURCE(Fortran 90)(BODY)
 # --------------------------------
-m4_copy([AC_LANG_SOURCE(Fortran 77)], [AC_LANG_SOURCE(Fortran 90)])
+dnl m4_copy([AC_LANG_SOURCE(Fortran 77)], [AC_LANG_SOURCE(Fortran 90)])


 # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])


---
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ


Подробная информация о списке рассылки Devel