- Add calls for new macros:
- LAM_SETUP_F77 (moved pre-existing F77 code to this macro) - LAM_SETUP_F90 - LAM_C_WEAK_SYMBOLS - Do handling for figuring out whether we need to compile in src/mpi/*/profile or not This commit was SVN r110.
Этот коммит содержится в:
родитель
bc430950d6
Коммит
fa8fda77b3
@ -7,6 +7,8 @@ dnl
|
|||||||
# LAM/MPI-specific tests
|
# LAM/MPI-specific tests
|
||||||
#
|
#
|
||||||
|
|
||||||
|
sinclude(config/c_weak_symbols.m4)
|
||||||
|
|
||||||
sinclude(config/cxx_find_template_parameters.m4)
|
sinclude(config/cxx_find_template_parameters.m4)
|
||||||
sinclude(config/cxx_find_template_repository.m4)
|
sinclude(config/cxx_find_template_repository.m4)
|
||||||
sinclude(config/cxx_have_exceptions.m4)
|
sinclude(config/cxx_have_exceptions.m4)
|
||||||
@ -18,9 +20,12 @@ sinclude(config/lam_functions.m4)
|
|||||||
sinclude(config/lam_get_version.m4)
|
sinclude(config/lam_get_version.m4)
|
||||||
sinclude(config/lam_setup_cc.m4)
|
sinclude(config/lam_setup_cc.m4)
|
||||||
sinclude(config/lam_setup_cxx.m4)
|
sinclude(config/lam_setup_cxx.m4)
|
||||||
|
sinclude(config/lam_setup_f77.m4)
|
||||||
|
sinclude(config/lam_setup_f90.m4)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Contributed tests
|
# Contributed tests
|
||||||
|
# JMS This needs to be removed
|
||||||
#
|
#
|
||||||
|
|
||||||
sinclude(config/ax_create_stdint_h.m4)
|
sinclude(config/ax_create_stdint_h.m4)
|
||||||
|
44
configure.ac
44
configure.ac
@ -134,13 +134,36 @@ LAM_SETUP_CC
|
|||||||
# check for some types
|
# check for some types
|
||||||
# check for type sizes
|
# check for type sizes
|
||||||
# check for type alignments
|
# check for type alignments
|
||||||
# check for c99 features
|
|
||||||
|
|
||||||
AC_C_INLINE
|
AC_C_INLINE
|
||||||
AC_CHECK_HEADERS(stdbool.h)
|
AC_CHECK_HEADERS(stdbool.h)
|
||||||
|
LAM_C_WEAK_SYMBOLS
|
||||||
# JMS This macro will be re-written by Dave for licensing reasons
|
# JMS This macro will be re-written by Dave for licensing reasons
|
||||||
AX_CREATE_STDINT_H([src/include/lam_stdint.h])
|
AX_CREATE_STDINT_H([src/include/lam_stdint.h])
|
||||||
|
|
||||||
|
# If we want the profiling layer:
|
||||||
|
# - If the C compiler has weak symbols, use those.
|
||||||
|
# - If not, then set to compile the code again with #define's in a
|
||||||
|
# separate directory.
|
||||||
|
|
||||||
|
if test "$WANT_WEAK_SYMBOLS" = "0"; then
|
||||||
|
LAM_C_HAVE_WEAK_SYMBOLS=1
|
||||||
|
fi
|
||||||
|
if test "$WANT_MPI_PROFILING" = "1"; then
|
||||||
|
if test "$LAM_C_HAVE_WEAK_SYMBOLS" = "1"; then
|
||||||
|
LAM_PROFILING_COMPILE_SEPARATELY=0
|
||||||
|
else
|
||||||
|
LAM_PROFILING_COMPILE_SEPARATELY=1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
LAM_PROFILING_COMPILE_SEPARATELY=1
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL(COMPILE_PROFILING_SEPARATELY, test "$LAM_PROFILING_COMPILE_SEPARATELY" = 1)
|
||||||
|
AC_DEFINE_UNQUOTED(LAM_WANT_MPI_PROFILING, $WANT_MPI_PROFILING,
|
||||||
|
[Whether we want MPI profiling or not])
|
||||||
|
AC_DEFINE_UNQUOTED(LAM_HAVE_WEAK_SYMBOLS, $LAM_C_HAVE_WEAK_SYMBOLS,
|
||||||
|
[Wehther we have weak symbols or not])
|
||||||
|
|
||||||
|
|
||||||
##################################
|
##################################
|
||||||
# C++ compiler characteristics
|
# C++ compiler characteristics
|
||||||
@ -160,23 +183,8 @@ LAM_SETUP_CXX
|
|||||||
# Fortran
|
# Fortran
|
||||||
##################################
|
##################################
|
||||||
|
|
||||||
if test "$with_fortran" != "yes"; then
|
LAM_SETUP_F77
|
||||||
lam_show_subtitle "Fortran Compiler -- skipped"
|
LAM_SETUP_F90
|
||||||
LAM_WANT_FORTRAN=1
|
|
||||||
else
|
|
||||||
lam_show_subtitle "Fortran Compiler"
|
|
||||||
LAM_WANT_FORTRAN=0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$LAM_WANT_FORTRAN" = "1"; then
|
|
||||||
# fortran linking style (necessary?)
|
|
||||||
# check for types
|
|
||||||
# check for type sizes
|
|
||||||
# check for type alignments
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
|
|
||||||
AM_CONDITIONAL(WANT_FORTRAN, test "$LAM_WANT_FORTRAN" = "1")
|
|
||||||
|
|
||||||
|
|
||||||
##################################
|
##################################
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user