* Made f90 module building default again
* clean up the output for --enable-debug and --enable-picky (for C++) This commit was SVN r1004.
Этот коммит содержится в:
родитель
5d0fdb0c0d
Коммит
1e051564fc
@ -129,13 +129,13 @@ fi
|
||||
AC_MSG_CHECKING([if want Fortran 90 bindings])
|
||||
AC_ARG_ENABLE(f90,
|
||||
AC_HELP_STRING([--enable-f90],
|
||||
[enable f90 MPI bindings (default: disabled)]))
|
||||
if test "$enable_f90" != "yes"; then
|
||||
AC_MSG_RESULT([no])
|
||||
LAM_WANT_F90_BINDINGS=0
|
||||
else
|
||||
[enable f90 MPI bindings (default: enabled)]))
|
||||
if test "$enable_f90" != "no"; then
|
||||
AC_MSG_RESULT([yes])
|
||||
LAM_WANT_F90_BINDINGS=1
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
LAM_WANT_F90_BINDINGS=0
|
||||
fi
|
||||
|
||||
|
||||
|
@ -34,8 +34,7 @@ CPPFLAGS="$CPPFLAGS -DLAM_BUILDING=1"
|
||||
if test "$WANT_DEBUG" = "1"; then
|
||||
CFLAGS="$CFLAGS -g"
|
||||
LAM_UNIQ(CFLAGS)
|
||||
AC_MSG_WARN([$add has been added to CFLAGS (--enable-debug)])
|
||||
unset add
|
||||
AC_MSG_WARN([-g has been added to CFLAGS (--enable-debug)])
|
||||
fi
|
||||
|
||||
LAM_CFLAGS_BEFORE_PICKY="$CFLAGS"
|
||||
|
@ -20,23 +20,29 @@ AC_DEFINE_UNQUOTED(LAM_CXX, "$CXX", [LAM underlying C++ compiler])
|
||||
# Do we want debugging?
|
||||
|
||||
if test "$WANT_DEBUG" = "1"; then
|
||||
if test "$GXX" = "yes"; then
|
||||
add="-g -Wall -Wundef -Wno-long-long"
|
||||
add="$add -Wmissing-prototypes -Wstrict-prototypes"
|
||||
CXXFLAGS="$CFLAGS -g"
|
||||
LAM_UNIQ(CXXFLAGS)
|
||||
AC_MSG_WARN([-g has been added to CXXFLAGS (--enable-debug)])
|
||||
fi
|
||||
|
||||
LAM_CXXFLAGS_BEFORE_PICKY="$CXXFLAGS"
|
||||
if test "$GCC" = "yes" -a "$WANT_PICKY_COMPILER" = 1; then
|
||||
add="-g -Wall -Wundef -Wno-long-long"
|
||||
add="$add -Wmissing-prototypes -Wstrict-prototypes"
|
||||
|
||||
# see if -Wno-long-double works...
|
||||
AC_LANG_PUSH(C++)
|
||||
CXXFLAGS_orig="$CXXFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS -Wno-long-double"
|
||||
AC_TRY_COMPILE([], [], add="$add -Wno-long-double")
|
||||
CXXFLAGS="$CXXFLAGS_orig"
|
||||
AC_LANG_POP(C++)
|
||||
|
||||
add="$add -Werror-implicit-function-declaration "
|
||||
|
||||
# see if -Wno-long-double works...
|
||||
CXXFLAGS_orig="$CXXFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS -Wno-long-double"
|
||||
AC_LANG_PUSH(C++)
|
||||
AC_TRY_COMPILE([], [], add="$add -Wno-long-double")
|
||||
AC_LANG_POP
|
||||
CXXFLAGS="$CXXFLAGS_orig"
|
||||
else
|
||||
add="-g"
|
||||
fi
|
||||
CXXFLAGS="$CXXFLAGS $add"
|
||||
LAM_UNIQ(CXXFLAGS)
|
||||
AC_MSG_WARN([$add has been added to CXXFLAGS (--with-debug)])
|
||||
AC_MSG_WARN([$add has been added to CXXFLAGS (developer copy)])
|
||||
unset add
|
||||
fi
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user