Commit 5207d9ac authored by Philip Carns's avatar Philip Carns

configure tests for pdflatex and pdflatex -halt-on-error


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@393 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 193ea351
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -88,6 +88,20 @@ if test x$GOT_JOBID != x1; then
AC_MSG_ERROR(must provide --with-jobid-env=<name> argument to configure.)
fi
AC_CHECK_PROG(HAVE_PDFLATEX, pdflatex, yes, no)
if test x$HAVE_PDFLATEX == xyes; then
AC_MSG_CHECKING(for -halt-on-error argument to pdflatex)
PDFLATEX_GREP=`pdflatex --help |grep halt-on-error`
if test "x$PDFLATEX_GREP" != "x"; then
AC_MSG_RESULT(yes)
__CP_PDFLATEX_HALT_ON_ERROR="-halt-on-error"
else
__CP_PDFLATEX_HALT_ON_ERROR=""
AC_MSG_RESULT(no)
fi
fi
# =====================================================================
# all tests executed with CC=MPICC from this point on
......@@ -240,6 +254,7 @@ AC_SUBST(__CP_LOG_PATH)
AC_SUBST(__CP_ZLIB_LINK_FLAGS)
AC_SUBST(__CP_ZLIB_INCLUDE_FLAGS)
AC_SUBST(CP_WRAPPERS)
AC_SUBST(__CP_PDFLATEX_HALT_ON_ERROR)
AC_OUTPUT(Makefile
darshan-mk-log-dirs.pl
darshan-gen-cc.pl
......@@ -247,3 +262,7 @@ darshan-gen-cxx.pl
darshan-gen-fortran.pl
util/bin/darshan-job-summary.pl
)
if test x$HAVE_PDFLATEX != xyes; then
AC_MSG_WARN(Please install pdflatex if you wish to use the darshan-job-summary.pl utility)
fi
/* darshan-config.h.in. Generated from configure.in by autoheader. */
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD
/* Name of the environment variable that stores the jobid */
#undef CP_JOBID
......@@ -54,6 +57,9 @@
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
......@@ -63,9 +69,17 @@
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
# undef WORDS_BIGENDIAN
# endif
#endif
/* Location to store log files at run time */
#undef __CP_LOG_PATH
......
......@@ -991,7 +991,9 @@ system "$epstopdf file-access-shared.eps";
#system "gnuplot types-pdf.gplt";
# generate summary PDF
$system_rc = system "$pdflatex -halt-on-error summary.tex > latex.output";
# NOTE: an autoconf test determines if -halt-on-error is available and sets
# __CP_PDFLATEX_HALT_ON_ERROR accordingly
$system_rc = system "$pdflatex @__CP_PDFLATEX_HALT_ON_ERROR@ summary.tex > latex.output";
if($system_rc)
{
print("LaTeX generation (phase1) failed [$system_rc], aborting summary creation.\n");
......@@ -999,7 +1001,7 @@ if($system_rc)
system("tail latex.output");
exit(1);
}
$system_rc = system "$pdflatex -halt-on-error summary.tex > latex.output2";
$system_rc = system "$pdflatex @__CP_PDFLATEX_HALT_ON_ERROR@ summary.tex > latex.output2";
if($system_rc)
{
print("LaTeX generation (phase2) failed [$system_rc], aborting summary creation.\n");
......
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