| 
									
										
										
										
											2009-08-22 06:23:24 +08:00
										 |  |  | #                                               -*- Autoconf -*- | 
					
						
							|  |  |  | # Process this file with autoconf to produce a configure script. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_PREREQ(2.59) | 
					
						
							| 
									
										
										
										
											2011-06-14 21:18:29 +08:00
										 |  |  | AC_INIT(gtsam, 0.9.3, dellaert@cc.gatech.edu) | 
					
						
							|  |  |  | AM_INIT_AUTOMAKE(gtsam, 0.9.3) | 
					
						
							| 
									
										
										
										
											2009-12-30 04:01:38 +08:00
										 |  |  | AC_CONFIG_MACRO_DIR([m4]) | 
					
						
							| 
									
										
										
										
											2010-07-12 15:16:31 +08:00
										 |  |  | AC_CONFIG_HEADER([config.h]) | 
					
						
							|  |  |  | AC_CONFIG_SRCDIR([CppUnitLite/Test.cpp]) | 
					
						
							| 
									
										
										
										
											2011-10-14 02:41:56 +08:00
										 |  |  | AC_CONFIG_SRCDIR([wrap/wrap.cpp]) | 
					
						
							| 
									
										
										
										
											2010-10-26 04:10:33 +08:00
										 |  |  | AC_CONFIG_SRCDIR([gtsam/base/DSFVector.cpp]) | 
					
						
							|  |  |  | AC_CONFIG_SRCDIR([gtsam/geometry/Cal3_S2.cpp]) | 
					
						
							|  |  |  | AC_CONFIG_SRCDIR([gtsam/inference/SymbolicFactorGraph.cpp]) | 
					
						
							|  |  |  | AC_CONFIG_SRCDIR([gtsam/linear/GaussianFactor.cpp]) | 
					
						
							|  |  |  | AC_CONFIG_SRCDIR([gtsam/nonlinear/NonlinearOptimizer.cpp]) | 
					
						
							|  |  |  | AC_CONFIG_SRCDIR([gtsam/slam/pose2SLAM.cpp]) | 
					
						
							| 
									
										
										
										
											2011-05-20 21:52:08 +08:00
										 |  |  | AC_CONFIG_SRCDIR([tests/testTupleValues.cpp]) | 
					
						
							| 
									
										
										
										
											2010-08-27 03:55:40 +08:00
										 |  |  | AC_CONFIG_SRCDIR([examples/SimpleRotation.cpp]) | 
					
						
							| 
									
										
										
										
											2011-05-20 21:52:08 +08:00
										 |  |  | AC_CONFIG_SRCDIR([gtsam/3rdparty/Makefile.am]) | 
					
						
							| 
									
										
										
										
											2011-06-02 22:35:26 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-03 12:01:10 +08:00
										 |  |  | # For doxygen support | 
					
						
							| 
									
										
										
										
											2012-01-11 06:25:12 +08:00
										 |  |  | #DX_HTML_FEATURE(ON) | 
					
						
							|  |  |  | #DX_CHM_FEATURE(OFF) | 
					
						
							|  |  |  | #DX_CHI_FEATURE(OFF) | 
					
						
							|  |  |  | #DX_MAN_FEATURE(OFF) | 
					
						
							|  |  |  | #DX_RTF_FEATURE(OFF) | 
					
						
							|  |  |  | #DX_XML_FEATURE(OFF) | 
					
						
							|  |  |  | #DX_PDF_FEATURE(OFF) | 
					
						
							|  |  |  | #DX_PS_FEATURE(OFF) | 
					
						
							|  |  |  | #DX_INIT_DOXYGEN(gtsam, Doxyfile, doc) | 
					
						
							| 
									
										
										
										
											2011-10-03 12:01:10 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-22 06:23:24 +08:00
										 |  |  | # Check for OS | 
					
						
							| 
									
										
										
										
											2011-12-06 04:54:41 +08:00
										 |  |  | # needs to be called at some point earlier | 
					
						
							|  |  |  | AC_CANONICAL_HOST     | 
					
						
							|  |  |  | AM_CONDITIONAL([DARWIN], [case $host_os in darwin*) true;; *) false;; esac]) | 
					
						
							|  |  |  | AM_CONDITIONAL([LINUX], [case $host_os in linux*) true;; *) false;; esac]) | 
					
						
							|  |  |  | AM_CONDITIONAL([IS_64BIT], [case $host_cpu in *x86_64*) true;; *) false;; esac]) | 
					
						
							| 
									
										
										
										
											2009-08-22 06:23:24 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-03 23:15:20 +08:00
										 |  |  | # enable debug variable | 
					
						
							|  |  |  | AC_ARG_ENABLE([debug], | 
					
						
							|  |  |  |      [  --enable-debug    Turn on debugging], | 
					
						
							|  |  |  |      [case "${enableval}" in | 
					
						
							|  |  |  |        yes) debug=true ;; | 
					
						
							|  |  |  |        no)  debug=false ;; | 
					
						
							|  |  |  |        *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; | 
					
						
							|  |  |  |      esac],[debug=false]) | 
					
						
							| 
									
										
										
										
											2010-01-27 13:15:52 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | AM_CONDITIONAL([DEBUG], [test x$debug = xtrue]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-07-08 05:41:50 +08:00
										 |  |  | # enable profiling | 
					
						
							|  |  |  | AC_ARG_ENABLE([profiling], | 
					
						
							|  |  |  |      [  --enable-profiling    Enable profiling], | 
					
						
							|  |  |  |      [case "${enableval}" in | 
					
						
							|  |  |  |        yes) profiling=true ;; | 
					
						
							|  |  |  |        no)  profiling=false ;; | 
					
						
							|  |  |  |        *) AC_MSG_ERROR([bad value ${enableval} for --enable-profiling]) ;; | 
					
						
							|  |  |  |      esac],[profiling=false]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AM_CONDITIONAL([USE_PROFILING], [test x$profiling = xtrue]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-27 23:31:20 +08:00
										 |  |  | # enable serialization in serialization test | 
					
						
							|  |  |  | AC_ARG_ENABLE([serialization], | 
					
						
							|  |  |  |      [  --enable-serialization    Enable serialization with boost serialization], | 
					
						
							|  |  |  |      [case "${enableval}" in | 
					
						
							|  |  |  |        yes) serialization=true ;; | 
					
						
							|  |  |  |        no)  serialization=false ;; | 
					
						
							|  |  |  |        *) AC_MSG_ERROR([bad value ${enableval} for --enable-serialization]) ;; | 
					
						
							|  |  |  |      esac],[serialization=false]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AM_CONDITIONAL([ENABLE_SERIALIZATION], [test x$serialization = xtrue]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-21 02:46:19 +08:00
										 |  |  | # enable installation of CppUnitLite with gtsam | 
					
						
							|  |  |  | AC_ARG_ENABLE([install_cppunitlite], | 
					
						
							|  |  |  |      [  --enable-install-cppunitlite    Enable installation of CppUnitLite], | 
					
						
							|  |  |  |      [case "${enableval}" in | 
					
						
							|  |  |  |        yes) install_cppunitlite=true ;; | 
					
						
							|  |  |  |        no)  install_cppunitlite=false ;; | 
					
						
							|  |  |  |        *) AC_MSG_ERROR([bad value ${enableval} for --enable-install-cppunitlite]) ;; | 
					
						
							|  |  |  |      esac],[install_cppunitlite=false]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AM_CONDITIONAL([ENABLE_INSTALL_CPPUNITLITE], [test x$install_cppunitlite = xtrue]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-14 02:41:56 +08:00
										 |  |  | # enable matlab toolbox generation | 
					
						
							|  |  |  | AC_ARG_ENABLE([build_toolbox], | 
					
						
							|  |  |  |      [  --enable-build-toolbox    Enable building of the Matlab toolbox], | 
					
						
							|  |  |  |      [case "${enableval}" in | 
					
						
							|  |  |  |        yes) build_toolbox=true ;; | 
					
						
							|  |  |  |        no)  build_toolbox=false ;; | 
					
						
							|  |  |  |        *) AC_MSG_ERROR([bad value ${enableval} for --enable-build-toolbox]) ;; | 
					
						
							|  |  |  |      esac],[build_toolbox=false]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AM_CONDITIONAL([ENABLE_BUILD_TOOLBOX], [test x$build_toolbox = xtrue]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-12-01 09:59:38 +08:00
										 |  |  | # enable installation of matlab tests | 
					
						
							|  |  |  | AC_ARG_ENABLE([install_matlab_tests], | 
					
						
							|  |  |  |      [  --enable-install-matlab-tests    Enable installation of tests for the Matlab toolbox], | 
					
						
							|  |  |  |      [case "${enableval}" in | 
					
						
							|  |  |  |        yes) install_matlab_tests=true ;; | 
					
						
							|  |  |  |        no)  install_matlab_tests=false ;; | 
					
						
							|  |  |  |        *) AC_MSG_ERROR([bad value ${enableval} for --enable-install-matlab-tests]) ;; | 
					
						
							|  |  |  |      esac],[install_matlab_tests=true]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AM_CONDITIONAL([ENABLE_INSTALL_MATLAB_TESTS], [test x$install_matlab_tests = xtrue]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-12-09 23:44:37 +08:00
										 |  |  | # enable installation of matlab examples | 
					
						
							|  |  |  | AC_ARG_ENABLE([install_matlab_examples], | 
					
						
							|  |  |  |      [  --enable-install-matlab-examples    Enable installation of examples for the Matlab toolbox], | 
					
						
							|  |  |  |      [case "${enableval}" in | 
					
						
							|  |  |  |        yes) install_matlab_examples=true ;; | 
					
						
							|  |  |  |        no)  install_matlab_examples=false ;; | 
					
						
							|  |  |  |        *) AC_MSG_ERROR([bad value ${enableval} for --enable-install-matlab-examples]) ;; | 
					
						
							|  |  |  |      esac],[install_matlab_examples=true]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AM_CONDITIONAL([ENABLE_INSTALL_MATLAB_EXAMPLES], [test x$install_matlab_examples = xtrue]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-14 02:41:56 +08:00
										 |  |  | # Matlab toolbox: optional flag to change location of toolbox, defaults to install prefix | 
					
						
							|  |  |  | AC_ARG_WITH([toolbox], | 
					
						
							|  |  |  |             [AS_HELP_STRING([--with-toolbox], | 
					
						
							|  |  |  |               [specify the matlab toolbox directory for installation])], | 
					
						
							|  |  |  |             [toolbox=$withval], | 
					
						
							|  |  |  |             [toolbox=$prefix]) | 
					
						
							|  |  |  | AC_SUBST([toolbox]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-12-03 00:43:15 +08:00
										 |  |  | # enable installation of the wrap utility | 
					
						
							|  |  |  | AC_ARG_ENABLE([install_wrap], | 
					
						
							|  |  |  |      [  --enable-install-wrap    Enable installation of the wrap tool for generating matlab interfaces], | 
					
						
							|  |  |  |      [case "${enableval}" in | 
					
						
							|  |  |  |        yes) install_wrap=true ;; | 
					
						
							|  |  |  |        no)  install_wrap=false ;; | 
					
						
							|  |  |  |        *) AC_MSG_ERROR([bad value ${enableval} for --enable-install-wrap]) ;; | 
					
						
							|  |  |  |      esac],[install_wrap=false]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AM_CONDITIONAL([ENABLE_INSTALL_WRAP], [test x$install_wrap = xtrue]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-12-06 04:54:41 +08:00
										 |  |  | # enable unsafe mode for wrap | 
					
						
							|  |  |  | AC_ARG_ENABLE([unsafe_wrap], | 
					
						
							|  |  |  |      [  --enable-unsafe-wrap    Enable using unsafe mode in wrap], | 
					
						
							|  |  |  |      [case "${enableval}" in | 
					
						
							|  |  |  |        yes) unsafe_wrap=true ;; | 
					
						
							|  |  |  |        no)  unsafe_wrap=false ;; | 
					
						
							|  |  |  |        *) AC_MSG_ERROR([bad value ${enableval} for --enable-unsafe-wrap]) ;; | 
					
						
							|  |  |  |      esac],[unsafe_wrap=false]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AM_CONDITIONAL([ENABLE_UNSAFE_WRAP], [test x$unsafe_wrap = xtrue]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-12-03 00:43:15 +08:00
										 |  |  | # wrap install path: optional flag to change location of wrap, defaults to install prefix/bin | 
					
						
							|  |  |  | AC_ARG_WITH([wrap], | 
					
						
							|  |  |  |             [AS_HELP_STRING([--with-wrap], | 
					
						
							|  |  |  |               [specify the wrap directory for installation])], | 
					
						
							|  |  |  |             [wrap=$withval], | 
					
						
							|  |  |  |             [wrap=$prefix/bin]) | 
					
						
							|  |  |  | AC_SUBST([wrap]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-12-09 23:44:37 +08:00
										 |  |  | # Checks for programs. | 
					
						
							|  |  |  | AC_PROG_CXX | 
					
						
							|  |  |  | AC_PROG_CC | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Checks for libraries. | 
					
						
							|  |  |  | LT_INIT | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Checks for header files. | 
					
						
							|  |  |  | AC_HEADER_STDC | 
					
						
							|  |  |  | AC_CHECK_HEADERS([string.h]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Checks for typedefs, structures, and compiler characteristics. | 
					
						
							|  |  |  | AC_HEADER_STDBOOL | 
					
						
							|  |  |  | AC_C_CONST | 
					
						
							|  |  |  | AC_C_INLINE | 
					
						
							|  |  |  | AC_TYPE_SIZE_T | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Checks for library functions. | 
					
						
							|  |  |  | AC_FUNC_ERROR_AT_LINE | 
					
						
							|  |  |  | AC_CHECK_FUNCS([pow sqrt]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Check for boost | 
					
						
							|  |  |  | AX_BOOST_BASE([1.40]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-20 21:52:08 +08:00
										 |  |  | AC_CONFIG_FILES([CppUnitLite/Makefile \ | 
					
						
							| 
									
										
										
										
											2011-10-14 02:41:56 +08:00
										 |  |  | wrap/Makefile \ | 
					
						
							| 
									
										
										
										
											2011-05-20 21:52:08 +08:00
										 |  |  | gtsam/3rdparty/Makefile \ | 
					
						
							|  |  |  | gtsam/base/Makefile \ | 
					
						
							|  |  |  | gtsam/geometry/Makefile \ | 
					
						
							|  |  |  | gtsam/inference/Makefile \ | 
					
						
							|  |  |  | gtsam/linear/Makefile \ | 
					
						
							|  |  |  | gtsam/nonlinear/Makefile \ | 
					
						
							|  |  |  | gtsam/slam/Makefile gtsam/Makefile \ | 
					
						
							|  |  |  | tests/Makefile \ | 
					
						
							|  |  |  | examples/Makefile \ | 
					
						
							|  |  |  | examples/vSLAMexample/Makefile \ | 
					
						
							|  |  |  | Makefile]) | 
					
						
							| 
									
										
										
										
											2009-08-22 06:23:24 +08:00
										 |  |  | AC_OUTPUT |