]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Introducing check procedure for Fortran; correct compilation/linkage rules for Fortra...
authorvsr <vsr@opencascade.com>
Mon, 22 Jan 2007 13:08:41 +0000 (13:08 +0000)
committervsr <vsr@opencascade.com>
Mon, 22 Jan 2007 13:08:41 +0000 (13:08 +0000)
adm_local/unix/make_commence.in
adm_local/unix/make_conclude.in
configure.in.base
src/MEFISTO2/Makefile.in

index 0be66a96fb85c1e9b7c11ba350e90d34b8c3e31c..1755f6b6eb40c867c90ec6f5bd9cafae03b60de5 100644 (file)
@@ -39,6 +39,15 @@ CXX = @CXX@
 CXXFLAGS = @CXXFLAGS@
 CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
 
+# FORTRAN
+
+F77 = @F77@
+FC = @FC@
+FFLAGS = @FFLAGS@
+FCFLAGS = @FCFLAGS@
+FLIBS = @FLIBS@
+FCLIBS = @FCLIBS@
+
 # BOOST Library
 
 BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
index 554b8afb0c1b84af31d42a2a07f72f2eec228fa9..094bb5be8a4670abcfff83cc94cdb39234ffc784 100644 (file)
@@ -308,10 +308,10 @@ distclean: clean
        $(LT_COMPILE) $(CFLAGS) $(CPPFLAGS) -c $<
 
 .f.o:
-       $(FC) $(FFLAGS) -c $< -o $@
+       $(FC) $(FCFLAGS) -c $< -o $@
 
 .f.lo:
-       $(LT) --mode=compile $(FC) $(FFLAGS) -c $<
+       $(LT) --mode=compile $(FC) $(FCFLAGS) -c $<
 
 .ui.h:
        $(UIC) -o $@  $<
index 28f7ffb998f018182b5d1693c3047ccdfe3407b3..8f9fd19a787ba4bc99fca1d3ee4e599cb9dd03a6 100644 (file)
@@ -106,6 +106,23 @@ AC_DEPEND_FLAG
 # AC_CC_WARNINGS([ansi])
 cc_ok=yes
 
+echo
+echo ---------------------------------------------
+echo testing Fortran
+echo ---------------------------------------------
+echo
+
+fortran_ok=no
+AC_PROG_F77
+AC_F77_LIBRARY_LDFLAGS
+AC_PROG_FC
+AC_FC_LIBRARY_LDFLAGS
+if test "X$FC" != "X" ; then
+   fortran_ok=yes
+fi
+
+echo 
+
 dnl Library libdl :
 AC_CHECK_LIB(dl,dlopen)
 
@@ -324,7 +341,7 @@ echo ---------------------------------------------
 echo
 
 echo Configure
-variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok qwt_ok Kernel_ok Geom_ok Med_ok"
+variables="cc_ok fortran_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok qwt_ok Kernel_ok Geom_ok Med_ok"
 
 for var in $variables
 do
index aea95bcfb1cb0c83a754b70256f89f87314d31d5..093a7df408ac295b27af4b65d2712d9a5c32d92b 100644 (file)
@@ -45,11 +45,7 @@ LIB_SERVER_IDL =
 CPPFLAGS += $(OCC_INCLUDES) $(KERNEL_CXXFLAGS)
 CXXFLAGS += $(OCC_CXXFLAGS) $(KERNEL_CXXFLAGS)
 
-ifeq ($(F77),gfortran)
-LDFLAGS += -lgfortran
-else
-LDFLAGS += -lg2c
-endif
+LDFLAGS += $(FCLIBS)
 
 @CONCLUDE@