dnl Process this file with autoconf to produce a configure script.
dnl
dnl Author: Paul F. Kunz <Paul_Kunz@slac.stanford.edu>
dnl

AC_INIT(src/Rotation3D.cxx)
AM_CONFIG_HEADER(config.h)
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE(MathCore, 5.22.00)

dnl Checks for programs.
AC_PROG_CXX

AC_LANG_CPLUSPLUS

dnl Force libtool to use C++ compiler when checking for PIC 
CC=$CXX

AM_PROG_LIBTOOL

#dnl Checks for libraries.
#dnl Get the path to the standard C++ library
#PFK_CXX_LIB_PATH

#dnl check STD C++ library
#AC_CHECK_LIB(stdc++, main, LIBSTDCPP="lstdc++", LIBSTDCPP=)
#AC_SUBST(LIBSTDCPP)

dnl Turn on -Wall if compiling with gcc
AC_COMPILE_WARNINGS



dnl Check for gmake and use it
AC_CHECK_PROG(GMAKE, gmake, gmake, make)
AC_SUBST(GMAKE)

AC_PROG_RANLIB


AC_OUTPUT(Makefile src/Makefile inc/Makefile inc/Math/Makefile  inc/Math/GenVector/Makefile test/Makefile doc/doxyconfig doc/Makefile)

AC_MSG_RESULT([
    MathCore project now configured.
])