Skip to content
Snippets Groups Projects
Commit a5421bf7 authored by Christian Engwer's avatar Christian Engwer
Browse files

use AC_MSG_CHECKING and AC_MSG_RESULT

[[Imported from SVN: r5120]]
parent 95f3da65
Branches
Tags
No related merge requests found
......@@ -32,12 +32,12 @@ if test x$with_alugrid != x && test x$with_alugrid != xno ; then
## check version number
NEEDEDALUGRID_VERSION=1.0
echo -n "checking ALUGrid version >= $NEEDEDALUGRID_VERSION... "
AC_MSG_CHECKING([ALUGrid version >= $NEEDEDALUGRID_VERSION])
if test -f $ALUGRID_VERSIONCHECK; then
ALUGRID_VERSION=`$ALUGRID_VERSIONCHECK -c $NEEDEDALUGRID_VERSION`
if test "x$ALUGRID_VERSION" != "x-1"; then
ALUGRID_VERSIONNO=`$ALUGRID_VERSIONCHECK -v`
echo "yes (ALUGrid-$ALUGRID_VERSIONNO)"
AC_MSG_RESULT([yes (ALUGrid-$ALUGRID_VERSIONNO)])
else
AC_MSG_ERROR([ALUGrid version is too old!])
fi
......
......@@ -15,7 +15,7 @@ AC_DEFUN([DUNE_GRID_DIMENSION],[
if test x$with_grid_dim != x0 ; then
echo -n "checking grid-dim and grid-type... "
AC_MSG_CHECKING([grid-dim and grid-type])
# make sure that given grid dim is valid
if test x$with_grid_dim != x1 && test x$with_grid_dim != x2 && test x$with_grid_dim != x3 ; then
AC_MSG_ERROR([Delivered grid-dim = $with_grid_dim is not valid. Valid are only 1, 2, or 3 .])
......@@ -40,6 +40,6 @@ if test x$with_grid_dim != x0 ; then
AC_SUBST(GRIDTYPE, $with_grid_type )
AC_SUBST(GRIDDIM_CPPFLAGS, $griddim_cppflags)
DUNE_PKG_CPPFLAGS="$DUNE_PKG_CPPFLAGS $griddim_cppflags"
echo "yes (GRIDDIM=$GRIDDIM and GRIDTYPE=$GRIDTYPE)"
AC_MSG_RESULT([yes (GRIDDIM=$GRIDDIM and GRIDTYPE=$GRIDTYPE)])
fi
])
......@@ -29,14 +29,14 @@ AC_DEFUN([DUNE_PATH_F5],[
AC_MSG_ERROR([FiberHDF5-directory $with_f5 does not exist])
fi
F5ARCH="$with_f5/make/arch"
echo -n "checking for make/arch... "
AC_MSG_CHECKING([for make/arch])
if test -x $F5ARCH ; then
echo "yes"
AC_MSG_RESULT([yes])
LDFLAGS="$HDF5_LDFLAGS -L$with_f5/lib/`$F5ARCH`"
F5_LDFLAGS="$LDFLAGS"
CPPFLAGS="$CPPFLAGS -I$with_f5"
else
echo "no"
AC_MSG_RESULT([no])
AC_MSG_ERROR([FiberHDF5 installation incomplete ($F5ARCH missing)])
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment