Commit 17b24e76 authored by Shane Snyder's avatar Shane Snyder

added autoconf support for darshan workload (--with-darshan [darshan_install_dir])

parent 72eed6f7
......@@ -22,7 +22,7 @@ $(pkgconfig_DATA): config.status
EXTRA_DIST += prepare.sh
AM_CPPFLAGS = -I$(top_srcdir)/src ${ROSS_CPPFLAGS}
AM_CPPFLAGS = -I$(top_srcdir)/src ${ROSS_CPPFLAGS} ${DARSHAN_CPPFLAGS}
AM_CFLAGS = ${ROSS_CFLAGS}
......@@ -35,3 +35,6 @@ include Make.rules
include $(top_srcdir)/src/Makefile.subdir
include $(top_srcdir)/tests/Makefile.subdir
if USE_DARSHAN
src_libcodes_base_a_SOURCES += src/workload/codes-darshan-io-wrkld.c
endif
......@@ -89,6 +89,20 @@ else
AC_MSG_ERROR([Could not find usable ROSS installation, try --with-ross=DIR])
fi
# check for Darshan
AC_ARG_WITH([darshan],[AS_HELP_STRING([--with-darshan@<:@=DIR@:>@],
[location of Darshan installation])])
if test "x${with_darshan}" != "x" ; then
darshan_headers="${with_darshan}/include"
AC_CHECK_FILE([$darshan_headers/darshan-io-events.h],
AM_CONDITIONAL(USE_DARSHAN, true),
AC_MSG_ERROR(Could not find darshan-io-events.h at: $darshan_headers))
DARSHAN_CPPFLAGS="-I${with_darshan}/include"
AC_SUBST(DARSHAN_CPPFLAGS)
else
AM_CONDITIONAL(USE_DARSHAN, false)
fi
dnl ======================================================================
dnl Try harder to be valgrind safe
dnl ======================================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment