[cig-commits] r9164 - cs/benchmark/cigma/trunk/build/m4

luis at geodynamics.org luis at geodynamics.org
Mon Jan 28 23:37:04 PST 2008


Author: luis
Date: 2008-01-28 23:37:04 -0800 (Mon, 28 Jan 2008)
New Revision: 9164

Added:
   cs/benchmark/cigma/trunk/build/m4/hdf5.m4
Log:
Autoconf macros for HDF5 library


Added: cs/benchmark/cigma/trunk/build/m4/hdf5.m4
===================================================================
--- cs/benchmark/cigma/trunk/build/m4/hdf5.m4	                        (rev 0)
+++ cs/benchmark/cigma/trunk/build/m4/hdf5.m4	2008-01-29 07:37:04 UTC (rev 9164)
@@ -0,0 +1,43 @@
+##############################################################################
+# -*- Autoconf -*-
+#
+#
+
+##############################################################################
+#
+# CIG_ARG_HDF5
+#
+AC_DEFUN([CIGMA_ARG_HDF5], [
+    AC_ARG_VAR(HDF5_HOME, [home path to HDF5 library])
+    AC_ARG_WITH([hdf5],
+        [AC_HELP_STRING([--with-hdf5],
+                        [enable HDF5 @<:@default=$1@:>@])],
+        [with_hdf5="$withval"],
+        [with_hdf5=$1])
+])
+
+##############################################################################
+#
+# CIG_PATH_HDF5([minimum-version], [action-if-found], [action-if-not-found])
+AC_DEFUN([CIGMA_PATH_HDF5],[
+    
+    if [[ $with_hdf5 = "yes" ]]; then
+        with_hdf5="/usr/local"
+    fi
+
+    if [[ $with_hdf5 != "no" ]]; then
+
+        HDF5_PREFIX="$with_hdf5"
+
+        AC_CHECK_FILE
+
+    else
+        
+        /bin/true
+
+    fi  # if [[ $with_hdf5 != "no" ]];
+
+
+])
+
+# vim: syntax=config



More information about the cig-commits mailing list