1dnl Process this file with autoconf to produce a configure script. 2dnl 3dnl The file name here refers to a file in the source being configured 4AC_INIT(rlog.c) 5 6dnl Definitions will be placed in this file rather than in the DEFS variable 7AC_CONFIG_HEADER(rlogconf.h) 8AH_TOP([/* -*- Mode: C; c-basic-offset:4 ; -*- */ 9/* 10 * (C) 2001 by Argonne National Laboratory. 11 * See COPYRIGHT in top-level directory. 12 */ 13#ifndef FORKERCONF_H_INCLUDED 14#define FORKERCONF_H_INCLUDED 15]) 16AH_BOTTOM([#endif]) 17dnl 18AC_CONFIG_AUX_DIR(../../../../confdb) 19dnl 20echo "RUNNING CONFIGURE FOR RLOG" 21dnl 22dnl 23dnl Enable better caching control 24PAC_ARG_CACHING 25dnl 26AC_ARG_ENABLE(echo, 27[--enable-echo - Turn on strong echoing. The default is enable=no.] ,set -x) 28 29AC_ARG_ENABLE(sharedlibs, 30[--enable-sharedlibs=kind - Enable shared libraries. kind may be 31 gnu - Standard gcc and GNU ld options for creating shared libraries 32 libtool - GNU libtool 33This option is currently ignored]) 34 35dnl First check that we have a clean build if we are doing a VPATH build 36PAC_VPATH_CHECK() 37 38dnl This test is complicated by the fact that top_srcdir is not set until 39dnl the very end of configure. Instead, we get it ourselves 40if test -z "$top_srcdir" ; then 41 use_top_srcdir=$srcdir 42else 43 use_top_srcdir=$top_srcdir 44fi 45if test -z "$master_top_srcdir" ; then 46 master_top_srcdir=$use_top_srcdir 47fi 48AC_SUBST(master_top_srcdir) 49export master_top_srcdir 50# 51# Get the master builddir (which may be imported from above) 52if test -z "$master_top_builddir" ; then 53 master_top_builddir=`pwd` 54fi 55export master_top_builddir 56AC_SUBST(master_top_builddir) 57 58dnl Find a C compiler 59PAC_PROG_CC 60AC_PATH_PROG(AR,ar) 61AC_SUBST(AR_FLAGS) 62# Note that we set RANLIB to true if we don't find it (some systems neither 63# need it nor provide it) 64AC_CHECK_PROGS(RANLIB,ranlib,true) 65dnl 66dnl AC_PROG_MAKE_SET 67AC_PROG_INSTALL 68PAC_PROG_CHECK_INSTALL_WORKS 69dnl On Mac OS/X, install breaks libraries unless used with the -p switch 70PAC_PROG_INSTALL_BREAKS_LIBS 71dnl We also need mkdir -p. 72PAC_PROG_MKDIR_P 73PAC_PROG_MAKE 74dnl 75AC_PATH_PROG(PERL,perl) 76dnl check for compiler characteristics 77dnl PAC_PROG_C_WEAK_SYMBOLS 78AC_C_CONST 79AC_C_VOLATILE 80AC_C_RESTRICT 81AC_C_INLINE 82dnl PAC_C_STRUCT_ALIGNMENT 83dnl 84dnl Look for Standard headers 85AC_HEADER_STDC 86AC_CHECK_HEADERS(unistd.h) 87dnl 88MPILIBNAME=${MPILIBNAME:-"mpich"} 89AC_SUBST(MPILIBNAME) 90PMPILIBNAME=${PMPILIBNAME:-"p$MPILIBNAME"} 91AC_SUBST(PMPILIBNAME) 92 93dnl 94dnl How do I get configure to find these values for me? 95dnl use AC_PATH_PROG to find a likely location, then search likely 96dnl directory paths for the files that you need. Allow an environment 97dnl variable to provide the values, so that if they are in a strange 98dnl place, the user can set the environment variable and configure will 99dnl use that value (it should still check that the value is valid, i.e., 100dnl the necessary files are in the specified directory) 101dnl 102dnl AC_CHECK_HEADER(jni.h) 103dnl if test "$ac_cv_header_jni_h" != "yes" ; then 104dnl # Try to find the java include path. For now, just generate warning 105dnl # At ANL, places to look include /soft/com/packages/j2sdk1.4.0/include 106dnl # and /soft/com/packages/jdk-1.3.1/include (and /soft/com/jdk*) 107dnl # May also want to look in $JAVA_HOME/include 108dnl AC_MSG_WARN([cannot compile trace code]) 109dnl fi 110dnl java_home=/soft/com/packages/j2sdk1.4.0 111dnl java_arch=linux 112dnl AC_SUBST(java_home) 113dnl AC_SUBST(java_arch) 114dnl 115dnl 09/28/2010, chan, the above checks are not enough to build 116dnl libTraceInput.so for rlog. The work is currently being done 117dnl mpe2/src/slog2sdk/trace_rlog. 118 119if test -z "$ENABLE_SHLIB" ; then 120 CC_SHL="$CC" 121 ENABLE_SHLIB=none 122fi 123PAC_CC_SUBDIR_SHLIBS 124 125dnl AC_SEARCH_LIBS(socket, socket) 126dnl AC_CHECK_LIB(thread, mutex_init) 127dnl AC_CHECK_HEADERS(foo.h bar.h) 128dnl AC_CHECK_FUNCS(baz biff) 129 130dnl 131dnl Etags 132AC_SUBST(ETAGS) 133AC_SUBST(ETAGSADD) 134export ETAGS 135export ETAGSADD 136dnl 137dnl 138dnl 139dnl Other autoconf variables that may be imported from the calling environment 140AC_SUBST(DOCTEXT) 141 142dnl Generate the Makefiles from Makefile.in 143AC_OUTPUT_COMMANDS([chmod a+x pprintirlog]) 144AC_OUTPUT(Makefile pprintirlog) 145