Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
9a410d55
Commit
9a410d55
authored
Feb 14, 2014
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Darshan workload configure using pkg-config
parent
1925ef59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
Makefile.am
Makefile.am
+1
-3
configure.ac
configure.ac
+15
-8
No files found.
Makefile.am
View file @
9a410d55
...
...
@@ -36,12 +36,10 @@ include $(top_srcdir)/src/Makefile.subdir
include
$(top_srcdir)/tests/Makefile.subdir
if
USE_DARSHAN
AM_CPPFLAGS
+=
${DARSHAN_C
PP
FLAGS}
AM_CPPFLAGS
+=
${DARSHAN_CFLAGS}
src_libcodes_base_a_SOURCES
+=
src/workload/codes-darshan-io-wrkld.c
tests_workload_codes_workload_test_LDADD
+=
${DARSHAN_LIBS}
tests_workload_codes_workload_test_LDFLAGS
+=
${DARSHAN_LDFLAGS}
tests_workload_codes_workload_mpi_replay_LDADD
+=
${DARSHAN_LIBS}
tests_workload_codes_workload_mpi_replay_LDFLAGS
+=
${DARSHAN_LDFLAGS}
endif
if
USE_RECORDER
...
...
configure.ac
View file @
9a410d55
...
...
@@ -93,16 +93,23 @@ fi
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-logutils.h],
AC_CHECK_FILE([${with_darshan}/lib/pkgconfig/darshan-util.pc],
AM_CONDITIONAL(USE_DARSHAN, true),
AC_MSG_ERROR(Could not find darshan-logutils.h at: $darshan_headers))
DARSHAN_CPPFLAGS="-DUSE_DARSHAN=1 -DDARSHAN_CONFIG_H=\\\"${with_darshan}/include/darshan-util-config.h\\\" -I${with_darshan}/include"
DARSHAN_LDFLAGS="-L${with_darshan}/lib"
DARSHAN_LIBS="-ldarshan-util -lz"
AC_SUBST(DARSHAN_CPPFLAGS)
AC_SUBST(DARSHAN_LDFLAGS)
AC_MSG_ERROR(Could not find darshan-util.pc))
DARSHAN_LIBS=`PKG_CONFIG_PATH=${with_darshan}/lib/pkgconfig pkg-config darshan-util --libs`
DARSHAN_CFLAGS=`PKG_CONFIG_PATH=${with_darshan}/lib/pkgconfig pkg-config darshan-util --cflags`
AC_SUBST(DARSHAN_LIBS)
AC_SUBST(DARSHAN_CFLAGS)
# darshan_headers="${with_darshan}/include"
# AC_CHECK_FILE([$darshan_headers/darshan-logutils.h],
# AM_CONDITIONAL(USE_DARSHAN, true),
# AC_MSG_ERROR(Could not find darshan-logutils.h at: $darshan_headers))
# DARSHAN_CPPFLAGS="-DUSE_DARSHAN=1 -DDARSHAN_CONFIG_H=\\\"${with_darshan}/include/darshan-util-config.h\\\" -I${with_darshan}/include"
# DARSHAN_LDFLAGS="-L${with_darshan}/lib"
# DARSHAN_LIBS="-ldarshan-util -lz"
# AC_SUBST(DARSHAN_CPPFLAGS)
# AC_SUBST(DARSHAN_LDFLAGS)
# AC_SUBST(DARSHAN_LIBS)
else
AM_CONDITIONAL(USE_DARSHAN, false)
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment