Mercurial > hg > minc-tools
changeset 2245:8866d12794df
Change option from --enable-hdf5 to --enable-minc2
author | bert <bert> |
---|---|
date | Wed, 01 Mar 2006 19:06:12 +0000 |
parents | b784b034c8aa |
children | 6333f49a03f1 |
files | configure.in |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.in +++ b/configure.in @@ -6,7 +6,7 @@ AM_INIT_AUTOMAKE AC_CONFIG_HEADERS([config.h]) -AC_REVISION($Revision: 6.25 $) +AC_REVISION($Revision: 6.26 $) AC_PROG_INSTALL AC_PROG_LN_S @@ -33,17 +33,17 @@ # Check for required C libraries mni_REQUIRE_LIB(m,[#include <math.h>],[double x = sqrt(3.);]) mni_REQUIRE_LIB(netcdf,[#include <netcdf.h>],[int i = ncopen("",0);]) -AC_ARG_ENABLE(hdf5, - [ --enable-hdf5 enable HDF5 (MINC 2) functionality], +AC_ARG_ENABLE(minc2, + [ --enable-minc2 enable HDF5 (MINC 2) functionality], [ case "${enableval}" in - yes) hdf5=true ;; - no) hdf5=false ;; - *) AC_MSG_ERROR(bad value ${enableval} for --enable-hdf5) ;; + yes) minc2=true ;; + no) minc2=false ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-minc2) ;; esac], - [hdf5=false]) -AM_CONDITIONAL(MINC2, test x$hdf5 = xtrue) + [minc2=false]) +AM_CONDITIONAL(MINC2, test x$minc2 = xtrue) -if test x$hdf5 = xtrue; then +if test x$minc2 = xtrue; then mni_REQUIRE_LIB(z, [#include <zlib.h>],[compress2;]) mni_REQUIRE_LIB(hdf5,[#include <hdf5.h>],[int f = H5Fopen("",0,H5P_DEFAULT);]) AC_DEFINE_UNQUOTED([MINC2],[1],[Define if MINC 2.0 is enabled.])