Commit a30bb9f3 authored by Philip Carns's avatar Philip Carns

Added --with-log-hints option to autoconf, with default value of

"romio_no_indep_rw=true,cb_nodes=8" for now if option is not specified at
configure time.  The resulting #define is not being used by the code yet.


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@447 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 47517cdf
......@@ -667,6 +667,7 @@ enable_ld_preload
with_mem_align
with_zlib_for_mpi
with_log_path_by_env
with_log_hints
with_log_path
with_jobid_env
'
......@@ -1303,6 +1304,7 @@ Optional Packages:
--with-mem-align=<num> Memory alignment in bytes
--with-zlib-for-mpi=<dir> base dir for zlib to use on mpi processes
--with-log-path-by-env=<env var list> Comma separated list of environment variables to check for log path location before --with-log-path path
--with-log-hints=<hint1=x,hint2=y> Comma-separated list of MPI-IO hints for log file write
--with-log-path=<path> Location to store log files at run time
--with-jobid-env=<name> Name of environment variable that stores the jobid
(specify "NONE" if no appropriate environment variable is available:
......@@ -3866,6 +3868,24 @@ fi
# Check whether --with-log-hints was given.
if test "${with_log_hints+set}" = set; then :
withval=$with_log_hints; if test x$withval = xyes; then
as_fn_error $? "--with-log-hints must be given an argument" "$LINENO" 5
else
cat >>confdefs.h <<_ACEOF
#define __CP_LOG_HINTS "${withval}"
_ACEOF
__CP_LOG_HINTS="${withval}"
GOT_LOG_HINTS=1
fi
fi
# Check whether --with-log-path was given.
if test "${with_log_path+set}" = set; then :
withval=$with_log_path; if test x$withval = xyes; then
......@@ -3913,6 +3933,14 @@ fi
if test x$GOT_JOBID != x1; then
as_fn_error $? "must provide --with-jobid-env=<name> argument to configure." "$LINENO" 5
fi
__CP_LOG_HINTS_DEFAULT="romio_no_indep_rw=true,cb_nodes=8"
if test x$GOT_LOG_HINTS != x1; then
cat >>confdefs.h <<_ACEOF
#define __CP_LOG_HINTS "$__CP_LOG_HINTS_DEFAULT"
_ACEOF
fi
# Extract the first word of "pdflatex", so it can be a program name with args.
set dummy pdflatex; ac_word=$2
......
......@@ -70,6 +70,17 @@ AC_ARG_WITH(log-path-by-env,
fi
)
AC_ARG_WITH(log-hints,
[ --with-log-hints=<hint1=x,hint2=y> Comma-separated list of MPI-IO hints for log file write],
if test x$withval = xyes; then
AC_MSG_ERROR(--with-log-hints must be given an argument)
else
AC_DEFINE_UNQUOTED(__CP_LOG_HINTS, "${withval}", Comma-separated list of MPI-IO hints for log file write)
__CP_LOG_HINTS="${withval}"
GOT_LOG_HINTS=1
fi
)
AC_ARG_WITH(log-path,
[ --with-log-path=<path> Location to store log files at run time],
if test x$withval = xyes; then
......@@ -106,6 +117,11 @@ fi
if test x$GOT_JOBID != x1; then
AC_MSG_ERROR(must provide --with-jobid-env=<name> argument to configure.)
fi
__CP_LOG_HINTS_DEFAULT="romio_no_indep_rw=true,cb_nodes=8"
if test x$GOT_LOG_HINTS != x1; then
dnl use default hints
AC_DEFINE_UNQUOTED(__CP_LOG_HINTS, "$__CP_LOG_HINTS_DEFAULT", Comma-separated list of MPI-IO hints for log file write)
fi
AC_CHECK_PROG(HAVE_PDFLATEX, pdflatex, yes, no)
......
......@@ -87,6 +87,9 @@
/* Comma separated list of env. variables to use for log path */
#undef __CP_LOG_ENV
/* Comma-separated list of MPI-IO hints for log file write */
#undef __CP_LOG_HINTS
/* Location to store log files at run time */
#undef __CP_LOG_PATH
......
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