From: Guido Kanschat Date: Wed, 29 Mar 2006 17:15:16 +0000 (+0000) Subject: test for netcdf failed X-Git-Tag: v8.0.0~11960 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8335808c36e4de621a4d6bb95adaf72103d7ff2a;p=dealii.git test for netcdf failed git-svn-id: https://svn.dealii.org/trunk@12755 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index b9f2da61d5..267f28ca61 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -4775,7 +4775,8 @@ AC_DEFUN(DEAL_II_CONFIGURE_NETCDF, dnl dnl If the C library was found, but not the C++ library dnl abort configure with an error message - if test "x$HAVE_LIBNETCDF" == "x1" ; then + AC_MSG_NOTICE("HAVE_LIBNETCDF = $LIBS) + if expr "x$LIBS : netcdf" ; then LIBS="-lnetcdf_c++ $LIBS" AC_LINK_IFELSE( [ AC_LANG_PROGRAM([[#include diff --git a/deal.II/configure b/deal.II/configure index 3f0c139d5c..be93674754 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -11268,7 +11268,9 @@ fi - if test "x$HAVE_LIBNETCDF" == "x1" ; then + { echo "$as_me:$LINENO: \"HAVE_LIBNETCDF = $LIBS" >&5 +echo "$as_me: \"HAVE_LIBNETCDF = $LIBS" >&6;} + if expr "x$LIBS : netcdf" ; then LIBS="-lnetcdf_c++ $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */