[cig-commits] r22506 - cs/autoconf/trunk
lefebvre at geodynamics.org
lefebvre at geodynamics.org
Wed Jul 3 08:55:46 PDT 2013
Author: lefebvre
Date: 2013-07-03 08:55:46 -0700 (Wed, 03 Jul 2013)
New Revision: 22506
Added:
cs/autoconf/trunk/cit_mxml.m4
Log:
m4 file for mxml library required by adios.
Added: cs/autoconf/trunk/cit_mxml.m4
===================================================================
--- cs/autoconf/trunk/cit_mxml.m4 (rev 0)
+++ cs/autoconf/trunk/cit_mxml.m4 2013-07-03 15:55:46 UTC (rev 22506)
@@ -0,0 +1,37 @@
+# -*- Autoconf -*-
+
+
+# ======================================================================
+# Autoconf macros for netcdf.
+# ======================================================================
+
+# ----------------------------------------------------------------------
+# CIT_MXML_HEADER
+# ----------------------------------------------------------------------
+AC_DEFUN([CIT_MXML_HEADER], [
+ AC_LANG(C)
+ AC_CHECK_HEADER([mxml.h], [], [
+ AC_MSG_ERROR([mxml C header not found; try CPPFLAGS="-I<mxml include dir>"])
+ ])dnl
+])dnl CIT_MXML_HEADER
+
+
+# ----------------------------------------------------------------------
+# CIT_MXML_LIB
+# ----------------------------------------------------------------------
+AC_DEFUN([CIT_MXML_LIB], [
+ AC_LANG(C)
+ AC_REQUIRE_CPP
+ AC_MSG_CHECKING([for mxmlNewXML in -lmxml])
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM([[#include <mxml.h>]],
+ [[mxml_node_t *xml = mxmlNewXML("1.0");]])],
+ [AC_MSG_RESULT(yes)],
+ [AC_MSG_RESULT(no)
+ AC_MSG_ERROR([mxml library not found; try LDFLAGS="-L<mxml lib dir>"])
+ ])dnl
+ ]))
+])dnl CIT_MXML_LIB
+
+
+dnl end of file
More information about the CIG-COMMITS
mailing list