1
1

If configure of a contributed component fails, abort if it's requested via command line switch

This commit was SVN r25814.
Этот коммит содержится в:
Matthias Jurenz 2012-01-30 12:09:06 +00:00
родитель 8ed781d7e9
Коммит d154e81668
2 изменённых файлов: 13 добавлений и 2 удалений

Просмотреть файл

@ -121,6 +121,13 @@ AC_DEFUN([_OMPI_CONTRIB_CONFIGURE],[
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
else else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
# If this component was requested via command line switch, then abort.
if test "x$enable_$1" = xyes ; then
AC_MSG_WARN([Contributed component "$1" failed to configure properly])
AC_MSG_WARN([This component was requested via command line switch])
AC_MSG_ERROR([Cannot continue])
fi
fi fi
else else
AC_MSG_NOTICE([disabled via command line switch]) AC_MSG_NOTICE([disabled via command line switch])

Просмотреть файл

@ -52,9 +52,13 @@ AC_DEFUN([OMPI_contrib_vt_CONFIG],[
AC_WARN([*** Please re-configure Open MPI to use the STLport4]) AC_WARN([*** Please re-configure Open MPI to use the STLport4])
AC_WARN([*** by adding the compiler flag -library=stlport4]) AC_WARN([*** by adding the compiler flag -library=stlport4])
AC_WARN([*** to CXXFLAGS.]) AC_WARN([*** to CXXFLAGS.])
if test "x$enable_vt" != xyes; then
AC_WARN([*** Pausing to give you time to read this message...]) AC_WARN([*** Pausing to give you time to read this message...])
fi
AC_WARN([***********************************************************]) AC_WARN([***********************************************************])
if test "x$enable_vt" != xyes; then
sleep 10 sleep 10
fi
contrib_vt_happy=0 contrib_vt_happy=0
]) ])
AC_LANG_POP(C++) AC_LANG_POP(C++)