Commit bb98c08d authored by Philip Carns's avatar Philip Carns

added darshan-config utility

fixes #74


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@549 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 347e617e
......@@ -98,6 +98,7 @@ endif
install -m 755 darshan-gen-cc.pl $(bindir)
install -m 755 darshan-gen-cxx.pl $(bindir)
install -m 755 darshan-gen-fortran.pl $(bindir)
install -m 755 darshan-config $(bindir)
clean::
rm -f *.o *.a lib/*.o lib/*.po lib/*.a lib/*.so
......
......@@ -4190,7 +4190,7 @@ fi
ac_config_files="$ac_config_files Makefile darshan-mk-log-dirs.pl darshan-gen-cc.pl darshan-gen-cxx.pl darshan-gen-fortran.pl"
ac_config_files="$ac_config_files Makefile darshan-mk-log-dirs.pl darshan-gen-cc.pl darshan-gen-cxx.pl darshan-gen-fortran.pl darshan-config"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
......@@ -4901,6 +4901,7 @@ do
"darshan-gen-cc.pl") CONFIG_FILES="$CONFIG_FILES darshan-gen-cc.pl" ;;
"darshan-gen-cxx.pl") CONFIG_FILES="$CONFIG_FILES darshan-gen-cxx.pl" ;;
"darshan-gen-fortran.pl") CONFIG_FILES="$CONFIG_FILES darshan-gen-fortran.pl" ;;
"darshan-config") CONFIG_FILES="$CONFIG_FILES darshan-config" ;;
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
esac
......
......@@ -231,4 +231,5 @@ darshan-mk-log-dirs.pl
darshan-gen-cc.pl
darshan-gen-cxx.pl
darshan-gen-fortran.pl
darshan-config
)
#!/bin/sh
CP_WRAPPERS="@CP_WRAPPERS@"
DARSHAN_LIB_PATH="@darshan_lib_path@"
DARSHAN_LD_FLAGS="@LDFLAGS@"
PRE_LD_FLAGS="-L$DARSHAN_LIB_PATH $DARSHAN_LD_FLAGS -ldarshan-mpi-io -lz $CP_WRAPPERS"
POST_LD_FLAGS="-L$DARSHAN_LIB_PATH -ldarshan-posix"
usage="\
Usage: darshan-config [--pre-ld-flags] [--post-ld-flags]"
if test $# -eq 0; then
echo "${usage}" 1>&2
exit 1
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--pre-ld-flags)
echo $PRE_LD_FLAGS
;;
--post-ld-flags)
echo $POST_LD_FLAGS
;;
*)
echo "${usage}" 1>&2
exit 1
;;
esac
shift
done
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