SET(STATIC_LIB_NAMES)
FOREACH(version 1_35 1_38 1_42 1_46_1)
SET(LIB_NAMES ${LIB_NAMES} boost_${name}-vc90-mt${EXTENSION}-${version})
- SET(STATIC_LIB_NAMES ${LIB_NAMES} libboost_${name}-vc90-mt${EXTENSION}-${version})
+ SET(STATIC_LIB_NAMES ${STATIC_LIB_NAMES} libboost_${name}-vc90-mt${EXTENSION}-${version})
ENDFOREACH(version 1_35 1_38 1_42 1_46_1)
FIND_LIBRARY(BOOST_LIB_${name} NAMES ${LIB_NAMES} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
+ SET(BOOST_LIB_${name}_FOUNDED ${BOOST_LIB_${name}})
IF(NOT BOOST_LIB_${name})
- FIND_LIBRARY(BOOST_LIB_${name} NAMES ${STATIS_LIB_NAMES} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
+ FIND_LIBRARY(STATIC_BOOST_LIB_${name} NAMES ${STATIC_LIB_NAMES} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
+ SET(BOOST_LIB_${name}_FOUNDED ${STATIC_BOOST_LIB_${name}})
SET(BOOST_ENABLE_DLL 0)
ENDIF(NOT BOOST_LIB_${name})
ELSE(WINDOWS)
FIND_LIBRARY(BOOST_LIB_${name} boost_${name} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
+ SET(BOOST_LIB_${name}_FOUNDED ${BOOST_LIB_${name}})
ENDIF(WINDOWS)
- IF(NOT BOOST_LIB_${name})
+ IF(NOT BOOST_LIB_${name}_FOUNDED)
SET(BOOST_STATUS 0)
- ENDIF(NOT BOOST_LIB_${name})
+ ENDIF(NOT BOOST_LIB_${name}_FOUNDED)
STRING(TOUPPER ${name} upname)
- SET(BOOST_LIB_${upname} ${BOOST_LIB_${name}})
- SET(BOOST_LIBS ${BOOST_LIBS} ${BOOST_LIB_${name}})
+ SET(BOOST_LIB_${upname} ${BOOST_LIB_${name}_FOUNDED})
+ SET(BOOST_LIBS ${BOOST_LIBS} ${BOOST_LIB_${name}_FOUNDED})
ENDFOREACH(name thread date_time signals filesystem system)
ENDIF(BOOST_STATUS)
IF(HDF5_STATUS)
IF(HDF5_ROOT_USER)
IF(WINDOWS)
- SET(HDF5_LIB_PATHS ${HDF5_ROOT_USER}/dll)
+ SET(HDF5_LIB_PATHS ${HDF5_ROOT_USER}/dll ${HDF5_ROOT_USER}/lib)
ELSE(WINDOWS)
SET(HDF5_LIB_PATHS ${HDF5_ROOT_USER}/lib)
ENDIF(WINDOWS)
# ----
IF(HDF5_STATUS)
+ SET(HDF5_CPPFLAGS ${HDF5_INCLUDES})
ELSE(HDF5_STATUS)
IF(HDF5_IS_MANDATORY)
MESSAGE(FATAL_ERROR "hdf5 not found ... mandatory ... abort")
pass
elif self.module == "medfile":
newlines.append("""
- SET(MED_NUM_MAJEUR 2)
- SET(MED_NUM_MINEUR 3)
- SET(MED_NUM_RELEASE 5)
+ SET(MED_NUM_MAJEUR 3)
+ SET(MED_NUM_MINEUR 0)
+ SET(MED_NUM_RELEASE 3)
SET(LONG_OR_INT int)
IF(NOT WINDOWS)
SET(FLIBS -lgfortranbegin -lgfortran)
# If the line begins with 'include ', just comment it
# --
if line.find("include ") == 0:
- newlines.append("# " + line)
+ if line.find("include $(top_srcdir)/config/automake.common") == 0:
+ for l in [
+ "MAINTAINERCLEANFILES = Makefile.in",
+ "AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_builddir)/include",
+ "AM_FFLAGS=-I$(top_srcdir)/include -I$(top_builddir)/include",
+ "AM_FCFLAGS=-I$(top_srcdir)/include -I$(top_builddir)/include",
+ "AM_CPPFLAGS+=@HDF5_CPPFLAGS@",
+ "AM_LDFLAGS=@HDF5_LDFLAGS@",
+ ]:
+ self.treatLine(l, newlines, opened_ifs)
+ pass
+ pass
+ else:
+ newlines.append("# " + line)
+ pass
return
# --