dnl ************************************************************** dnl DARSHAN AUTOCONF SCRIPT dnl dnl Process this file with autoconf to produce a configure script. dnl You may need to use autoheader as well if changing any DEFINEs dnl sanity checks, output header, location of scripts used here AC_INIT([darshan-util], [3.1.6]) AC_CONFIG_SRCDIR([darshan-logutils.h]) AC_CONFIG_AUX_DIR(../maint/config) AC_CONFIG_HEADER(darshan-util-config.h) AC_PROG_INSTALL CHECK_ZLIB CHECK_BZLIB # checks to see how we can print 64 bit values on this architecture gt_INTTYPES_PRI if test x$PRI_MACROS_BROKEN == xyes; then AC_MSG_ERROR(PRI_xx macros are broken) else AC_CHECK_HEADERS(inttypes.h, , [AC_MSG_ERROR(Couldn't find inttypes.h)]) 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) __DARSHAN_PDFLATEX_HALT_ON_ERROR="-halt-on-error" else __DARSHAN_PDFLATEX_HALT_ON_ERROR="" AC_MSG_RESULT(no) fi fi dnl Check byte ordering AC_C_BIGENDIAN dnl temporarily set large file flags just for this test; we don't want dnl it to propagate to the makefile because of zlib bugs old_cflags="$CFLAGS" CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE" AC_MSG_CHECKING(for off64_t) AC_TRY_COMPILE( [ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include ], [ off64_t off; ], AC_MSG_RESULT(yes) AC_DEFINE(HAVE_OFF64_T, 1, Define if off64_t type is defined), AC_MSG_RESULT(no) ) CFLAGS="$old_cflags" DARSHAN_ENABLE_SHARED=0 AC_ARG_ENABLE(shared, [ --enable-shared enables building of shared darshan-util library], [if test "x$enableval" = "xyes" ; then DARSHAN_ENABLE_SHARED=1 fi] ,) AC_CHECK_FUNCS([strndup]) DARSHAN_UTIL_VERSION="AC_PACKAGE_VERSION" AC_SUBST(__DARSHAN_ZLIB_LINK_FLAGS) AC_SUBST(__DARSHAN_ZLIB_INCLUDE_FLAGS) AC_SUBST(__DARSHAN_PDFLATEX_HALT_ON_ERROR) AC_SUBST(DARSHAN_ENABLE_SHARED) AC_SUBST(DARSHAN_UTIL_VERSION) AC_OUTPUT(Makefile darshan-job-summary/bin/darshan-job-summary.pl maint/darshan-util.pc ) 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