1# ------------------------------------------------------------------------ 2# Process this file with autoconf to produce a configure script. 3# ------------------------------------------------------------------------ 4 5# Preliminaries. 6AC_PREREQ([2.59]) 7AC_INIT([DDACE],[1.0],[pdhough@sandia.gov]) 8AC_CONFIG_SRCDIR([src/Analyzer/ColumnHeader.cpp]) 9AC_CONFIG_HEADERS([ddace_config.h]) 10AM_INIT_AUTOMAKE([1.9 foreign]) 11 12# Since we're using libtool, don't build shared libraries! 13AC_DISABLE_SHARED 14 15# Checks for programs. 16AC_PROG_CC([xlc cc gcc]) 17AC_PROG_CXX([xlC cxx CC c++ g++]) 18AC_PROG_F77 19AC_PROG_INSTALL 20AC_PROG_MAKE_SET 21 22# Tells autoconf that libtool will be used. 23AC_PROG_LIBTOOL 24 25# Enable DDACE standalone mode (adding FATools for MARS response 26# surface fitting capability, and corresponding tests 27# TestMarsAnalyzer.cpp, TestOneWayANOVA.cpp) 28AC_ARG_ENABLE([standalone], 29 AC_HELP_STRING([--enable-standalone], 30 [enable DDACE standalone library capability]), 31 [enable_standalone=$enableval],[enable_standalone=no]) 32AC_MSG_CHECKING([whether DDACE standalone is enabled]) 33if test x"$enable_standalone" = xyes; then 34 AC_MSG_RESULT([yes]) 35 AC_DEFINE([HAVE_STANDALONE],[1], 36 [Macro to handle code for the standalone library.]) 37else 38 AC_MSG_RESULT([no]) 39fi 40AM_CONDITIONAL(ENABLE_STANDALONE, test x"$enable_standalone" = xyes) 41 42# GSL is only presently used for src/Analyzer/OneWayANOVA.cpp and related tests 43DAC_GSL 44 45# Checks for header files. 46AC_HEADER_STDC 47AC_CHECK_HEADERS([malloc.h stddef.h stdlib.h string.h sys/time.h unistd.h]) 48 49# Checks for typedefs, structures, and compiler characteristics. 50AC_HEADER_STDBOOL 51AC_C_CONST 52AC_C_INLINE 53AC_CXX_CPPFLAGS_STD_LANG([CXXFLAGS]) 54AC_F77_WRAPPERS 55AC_TYPE_SIZE_T 56AC_HEADER_TIME 57 58# Platform specific local template instantiation. 59case "$ac_cv_cxx_compiler_vendor" in 60 sgi) 61 AX_CXXFLAGS_IRIX_OPTION([-ptused]) 62 ;; 63 compaq) 64 AX_CXXFLAGS_OSF_OPTION([-tlocal]) 65 ;; 66 *) 67 ;; 68esac 69 70# Checks for library functions. 71AC_CHECK_FUNCS([getcwd gettimeofday memset strstr srand48 drand48]) 72 73# Output files 74AC_CONFIG_FILES([Makefile 75 src/Makefile 76 src/Analyzer/Makefile 77 src/Bose/Makefile 78 src/FATools/Makefile 79 src/Random/Makefile 80 src/Sampling/Makefile 81 tests/Makefile]) 82AC_OUTPUT 83