[cig-commits] r12900 - cs/cigma/trunk

luis at geodynamics.org luis at geodynamics.org
Wed Sep 17 01:03:33 PDT 2008


Author: luis
Date: 2008-09-17 01:03:32 -0700 (Wed, 17 Sep 2008)
New Revision: 12900

Added:
   cs/cigma/trunk/configure.ac
Log:
Minimal configure.ac

Added: cs/cigma/trunk/configure.ac
===================================================================
--- cs/cigma/trunk/configure.ac	                        (rev 0)
+++ cs/cigma/trunk/configure.ac	2008-09-17 08:03:32 UTC (rev 12900)
@@ -0,0 +1,76 @@
+AC_PREREQ(2.59)
+AC_INIT([Cigma], [1.0.0], [cig-cs at geodynamics.org], [cigma])
+AC_CONFIG_AUX_DIR([./aux-config])
+AC_CONFIG_HEADER([config.h])
+AC_CONFIG_MACRO_DIR([m4])
+AM_INIT_AUTOMAKE([foreign])
+
+
+dnl Get the operating system name
+UNAME=`uname`
+
+dnl Check for default compilers
+AC_PROG_CC
+AC_PROG_CXX
+AC_PROG_LIBTOOL
+AC_PROG_INSTALL
+
+dnl Use C++ for all compilation tests
+AC_LANG(C++)
+
+dnl Configure Boost (XXX: move this step to cigma.m4)
+BOOST_REQUIRE([1.33])
+BOOST_SMART_PTR()
+BOOST_FILESYSTEM()
+BOOST_PROGRAM_OPTIONS()
+
+dnl Configure CppUnit (XXX: move this step to cigma.m4)
+AM_PATH_CPPUNIT([1.12.0],
+                [withcppunit=yes],
+                [withcppunit=no; AC_MSG_RESULT([no. Unit tests disabled])])
+AM_CONDITIONAL(BUILD_CPPUNIT_TESTS, [test x${withcppunit} = xyes])
+
+dnl Check for various programs
+AC_PROG_CPP
+
+dnl See if we need a .exe extension on executables
+AC_EXEEXT
+
+dnl Check for the standard math library
+AC_CHECK_LIB(m,main)
+
+dnl Write output
+
+AC_CONFIG_FILES([
+    Makefile
+    src/Makefile
+    tests/Makefile
+    build/rebuild.sh
+])
+
+AC_OUTPUT
+
+dnl Print out some configuration information
+echo "********************************************************************"
+echo "Cigma is configured with"
+echo "- OS : $UNAME"
+echo "- C compiler   : $CC"
+echo "- C++ compiler : $CXX"
+
+# if using cigma_boost.m4
+echo "  BOOST_CPPFLAGS                : $BOOST_CPPFLAGS"
+echo "  BOOST_FILESYSTEM_LDFLAGS      : $BOOST_FILESYSTEM_LDFLAGS"
+echo "  BOOST_FILESYSTEM_LIBS         : $BOOST_FILESYSTEM_LIBS"
+echo "  BOOST_PROGRAM_OPTIONS_LDFLAGS : $BOOST_PROGRAM_OPTIONS_LDFLAGS"
+echo "  BOOST_PROGRAM_OPTIONS_LIBS    : $BOOST_PROGRAM_OPTIONS_LIBS"
+
+# if using ax_boost_*.m4
+#echo "  BOOST_CPPFLAGS            : $BOOST_CPPFLAGS"
+#echo "  BOOST_LDFLAGS             : $BOOST_LDFLAGS"
+#echo "  BOOST_FILESYSTEM_LIB      : $BOOST_FILESYSTEM_LIB"
+#echo "  BOOST_PROGRAM_OPTIONS_LIB : $BOOST_PROGRAM_OPTIONS_LIB"
+
+echo "- CPPUNIT_CFLAGS : $CPPUNIT_CFLAGS"
+echo "- CPPUNIT_LIBS   : $CPPUNIT_LIBS"
+
+# vim:foldmethod=marker foldlevel=2



More information about the cig-commits mailing list