Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 393 lines (331 sloc) 17.512 kB
545de6e @novas0x2a Synchronize VW and Stereo build systems
novas0x2a authored
1 dnl __BEGIN_LICENSE__
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
2 dnl Copyright (C) 2009-2010 United States Government as represented by
545de6e @novas0x2a Synchronize VW and Stereo build systems
novas0x2a authored
3 dnl the Administrator of the National Aeronautics and Space Administration.
4 dnl All Rights Reserved.
5 dnl __END_LICENSE__
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
6
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
7
4ce2bd3 @novas0x2a commit changes from VW
novas0x2a authored
8 m4_pattern_forbid([^AX_])
85c5e33 @novas0x2a merge in VW build system
novas0x2a authored
9 m4_pattern_allow([^AX_CFLAGS$])
10 m4_pattern_allow([^AX_INCLUDE_DIR$])
11 m4_pattern_allow([^AX_LIBDIR$])
12 m4_pattern_allow([^AX_OTHER_LIBDIR$])
13 m4_pattern_allow([^PKG_[A-Z_]+_CPPFLAGS$])
14 m4_pattern_allow([^PKG_[A-Z_]+_LDFLAGS$])
15 m4_pattern_allow([^PKG_[A-Z_]+_LIBS$])
16 m4_pattern_allow([^PKG_PATHS$])
17 m4_pattern_allow([^PKG_PATHS_[A-Z_]+$])
18 m4_pattern_allow([^PKG_BOOST_INCDIR$])
19 m4_pattern_allow([^PKG_BOOST_LIBDIR$])
20 m4_pattern_allow([^PKG_VW_LIBS_TEMP$])
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
21 m4_pattern_allow([^PKG_ARBITRARY_QT_NEEDED_HEADERS$])
4ce2bd3 @novas0x2a commit changes from VW
novas0x2a authored
22
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
23 ##################################################
24 # A few starting bits
25 ##################################################
26
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
27 AC_PREREQ([2.59])
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
28 dnl TODO BEFORE RELEASE: update package version
d1d6229 @novas0x2a increment version to pre
novas0x2a authored
29 AC_INIT([NASA Ames Stereo Pipeline], [1.0.1_pre], [asp@nx.arc.nasa.gov], [StereoPipeline])
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
30 AC_CONFIG_AUX_DIR(config)
9ae12ae @novas0x2a make stereo's build much like vw's
novas0x2a authored
31 AC_CONFIG_MACRO_DIR([m4])
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
32 AC_CANONICAL_HOST
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
33 AM_INIT_AUTOMAKE([nostdinc 1.8.5])
9c0d10b Massive reorganization. Works this time! A good handful of code has b…
Zack Moratto authored
34 AX_CONFIG_HEADER_PREFIX([src/asp/asp_config.h], [ASP_])
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
35
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
36 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
37
545de6e @novas0x2a Synchronize VW and Stereo build systems
novas0x2a authored
38 dnl TODO RIGHT BEFORE RELEASE: update libtool version
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
39 dnl if abi changes in any way:
40 dnl current++
41 dnl revision=0
42 dnl if new abi is backward-compatible:
43 dnl age += 1
44 dnl else:
45 dnl age = 0
46 dnl else:
47 dnl revision++
48 dnl (see http://sources.redhat.com/autobook/autobook/autobook_91.html)
49 dnl
50 dnl LIBTOOL_VERSION=current:revision:age
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
51 LIBTOOL_VERSION=4:0:0
a74972c @broxtronix Merged in changes from the isis_devel branch. Improvements include a…
broxtronix authored
52 AC_SUBST(LIBTOOL_VERSION)
53
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
54 m4_divert_text([INIT_PREPARE], [dnl
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
55 # load the config.options
ea6a6c6 @novas0x2a resync with vw macros
novas0x2a authored
56 if test -f ./config.options; then
545de6e @novas0x2a Synchronize VW and Stereo build systems
novas0x2a authored
57 AX_LOG([using config.options << EOF])
58 AX_LOG([`cat ./config.options`])
59 AX_LOG([EOF])
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
60 . ./config.options
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
61 fi
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
62 ])
7102287 @novas0x2a I moved PKG_PATHS to ax_common_options.m4
novas0x2a authored
63
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
64 ##################################################
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
65 # Find the necessary programs
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
66 ##################################################
67
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
68 # Make sure these are set so AC_PROG_CC doesn't initialize them with
69 # its defaults, since we take care of setting debug and optimization
70 # levels ourselves.
71 CFLAGS="$CFLAGS"
72 CXXFLAGS="$CXXFLAGS"
73
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
74 # Disable static libraries by default
75 AM_DISABLE_STATIC
76
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
77 # Find the tools
78 AC_PROG_CC
79 AC_PROG_CXX
80 AC_PROG_INSTALL
81 AX_PROG_AR
82 AC_PROG_LIBTOOL
83 AC_PROG_MAKE_SET
84 AC_LANG(C++)
6aab8d2 @novas0x2a move a bunch of common options to their own macro
novas0x2a authored
85 AX_COMMON_OPTIONS
a74972c @broxtronix Merged in changes from the isis_devel branch. Improvements include a…
broxtronix authored
86
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
87 # Does the compiler support noreturn?
88 AX_CHECK_FUNCTION_ATTRIBUTE([noreturn])
89 AX_CHECK_FUNCTION_ATTRIBUTE([deprecated])
90
91 # Looking for posix headers
92 AC_CHECK_HEADERS([unistd.h pwd.h])
93 AC_CHECK_FUNCS([getpwuid getpid])
a74972c @broxtronix Merged in changes from the isis_devel branch. Improvements include a…
broxtronix authored
94
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
95 ##################################################
545de6e @novas0x2a Synchronize VW and Stereo build systems
novas0x2a authored
96 # Compilation options
97 ##################################################
98
99 AX_ARG_ENABLE(strict-aliasing, no, [none], [allow strict aliasing (dangerous)])
c69254d @novas0x2a new qt detection method
novas0x2a authored
100 AX_ARG_ENABLE(qt-qmake, yes, [none], [Allow qmake detection of QT])
101
545de6e @novas0x2a Synchronize VW and Stereo build systems
novas0x2a authored
102
103 ##################################################
104 # Handle options
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
105 ##################################################
106
107
22eabd4 @novas0x2a Mostly sync the macros between vw & stereo. This is good either if we…
novas0x2a authored
108
545de6e @novas0x2a Synchronize VW and Stereo build systems
novas0x2a authored
109 ##################################################
110 # distribution options
111 ##################################################
112
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
113
545de6e @novas0x2a Synchronize VW and Stereo build systems
novas0x2a authored
114
115
116 ##################################################
117 # package checks
118 ##################################################
119
120 AX_PKG_PTHREADS
121
384d7c3 Added skeleton for MPI in ASP
Zack Moratto authored
122 AX_PKG(OPEN_MPI, [], [-D_REENTRANT -Wl,-u,_munmap -Wl,-multiply_defined,suppress -lmpi_cxx -lmpi -lopen-rte -lopen-pal -lutil], [mpi.h])
123
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
124 AX_PKG_BOOST([BOOST_PROGRAM_OPTIONS BOOST_SYSTEM BOOST_FILESYSTEM BOOST_THREAD BOOST_GRAPH],
125 BOOST_PROGRAM_OPTIONS,
126 [AX_PKG_BOOST_LIB(PROGRAM_OPTIONS, [-lboost_program_options], [boost/program_options.hpp], [boost::program_options::options_description("Rawr");])],
127 BOOST_SYSTEM,
128 [AX_PKG_BOOST_LIB(SYSTEM, [-lboost_system], [boost/system/error_code.hpp], [boost::system::error_code();])],
129 BOOST_FILESYSTEM,
130 [AX_PKG_BOOST_LIB(FILESYSTEM, [-lboost_filesystem], [boost/filesystem/path.hpp], [boost::filesystem::path();], [$PKG_BOOST_SYSTEM_LIBS])],
131 BOOST_REGEX,
132 [AX_PKG_BOOST_LIB(REGEX, [-lboost_regex], [boost/regex.hpp], [boost::regex(".*");])],
133 BOOST_DATETIME,
134 [AX_PKG_BOOST_LIB(DATETIME, [-lboost_date_time], [boost/date_time/gregorian/gregorian_types.hpp])],
135 BOOST_THREAD,
136 [AX_PKG_BOOST_LIB(THREAD, [-lboost_thread], [boost/thread/thread.hpp], [boost::mutex();], [$PKG_BOOST_DATETIME_LIBS], [boost/thread/condition.hpp])],
137 BOOST_IOSTREAMS,
138 [AX_PKG_BOOST_LIB(IOSTREAMS, [-lboost_iostreams], [boost/iostreams/device/mapped_file.hpp], [boost::iostreams::mapped_file_source();])],
139 BOOST_GRAPH,
140 [AX_PKG_BOOST_LIB(GRAPH, [], [boost/graph/adjacency_list.hpp])],
141 BOOST_MPI,
142 [AX_PKG_BOOST_LIB(MPI, [-lboost_mpi], [boost/mpi.hpp], [], [$PKG_OPEN_MPI_LIBS])],
143 BOOST_SERIALIZATION,
144 [AX_PKG_BOOST_LIB(SERIALIZATION, [-lboost_serialization], [boost/serialization/string.hpp], [], [$PKG_OPEN_MPI_LIBS $PKG_BOOST_MPI_LIBS])]
145 )
146
147 if test x"$HAVE_PKG_BOOST" = "xyes"; then
148 AX_PKG_BOOST_CHECK_VERSION([VW_])
149 AC_MSG_NOTICE([Using Boost header version $BOOST_VERSION, library suffix $PKG_BOOST_SAME_SUFFIX])
545de6e @novas0x2a Synchronize VW and Stereo build systems
novas0x2a authored
150 fi
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
151
22eabd4 @novas0x2a Mostly sync the macros between vw & stereo. This is good either if we…
novas0x2a authored
152 # This provides an easy way for users to override the threads options
a74972c @broxtronix Merged in changes from the isis_devel branch. Improvements include a…
broxtronix authored
153 # if they are replacing Boost threads with something else for their platform.
154 AX_PKG(THREADS, [BOOST_THREAD], [], [])
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
155
85c5e33 @novas0x2a merge in VW build system
novas0x2a authored
156 AX_PKG(M, [], [-lm], [math.h])
157
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
158 AX_PKG_ONE_OF(LAPACK,
159 APPLE_LAPACK,
160 [AX_PKG_APPLE(LAPACK, [], [-framework vecLib])],
85c5e33 @novas0x2a merge in VW build system
novas0x2a authored
161 INTEL_LAPACK,
162 [case $host_cpu in
163 ia64) AX_PKG(INTEL_LAPACK, [PTHREADS M], [-lmkl_lapack -lmkl -lmkl_i2p -lguide], [mkl_lapack.h], [], [64], [dgelss_]);;
164 x86_64) AX_PKG(INTEL_LAPACK, [PTHREADS M], [-lmkl_lapack -lmkl -lmkl_def -lguide], [mkl_lapack.h], [], [em64t], [dgelss_]);;
165 *) AX_PKG(INTEL_LAPACK, [PTHREADS M], [-lmkl_lapack -lmkl -lguide], [mkl_lapack.h], [], [32], [dgelss_]);;
166 esac],
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
167 CLAPACK,
85c5e33 @novas0x2a merge in VW build system
novas0x2a authored
168 [AX_PKG(CLAPACK, [], [-lclapack -lblas -lf2c], [], [], [], [dgelss_])],
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
169 SLAPACK,
85c5e33 @novas0x2a merge in VW build system
novas0x2a authored
170 [AX_PKG(SLAPACK, [], [-llapack -lblas], [], [], [], [dgelss_])],
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
171 FLAPACK,
85c5e33 @novas0x2a merge in VW build system
novas0x2a authored
172 [AX_PKG(FLAPACK, [], [-llapack -lblas -lgfortran], [], [], [], [dgelss_])],
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
173 STANDALONE_LAPACK_BLAS,
174 [AX_PKG(STANDALONE_BLAS, [], [-lblas], [])
85c5e33 @novas0x2a merge in VW build system
novas0x2a authored
175 AX_PKG(STANDALONE_LAPACK, [STANDALONE_BLAS], [-llapack], [], [], [], [dgelss_])
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
176 AX_GROUP_PKG(STANDALONE_LAPACK_AND_BLAS, [STANDALONE_LAPACK STANDALONE_BLAS])],
177 STANDALONE_FLAPACK_FBLAS,
178 [AX_PKG(STANDALONE_F2C, [], [-lf2c], [])
179 AX_PKG(STANDALONE_FBLAS, [STANDALONE_F2C], [-lblas], [])
85c5e33 @novas0x2a merge in VW build system
novas0x2a authored
180 AX_PKG(STANDALONE_FLAPACK, [STANDALONE_FBLAS STANDALONE_F2C], [-llapack], [], [], [], [dgelss_])
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
181 AX_GROUP_PKG(STANDALONE_FLAPACK_FBLAS, [STANDALONE_FLAPACK STANDALONE_FBLAS STANDALONE_F2C])])
22eabd4 @novas0x2a Mostly sync the macros between vw & stereo. This is good either if we…
novas0x2a authored
182
d5b5c94 Reorder of configure.ac
Zack Moratto authored
183 # Vision Workbench Core
184 AX_PKG(VW_CORE, [BOOST_THREAD BOOST LAPACK], [-lvwCore], [vw/Core/Log.h] )
185 AX_PKG(VW_MATH, [VW_CORE], [-lvwMath], [vw/Math/LinearAlgebra.h])
186 AX_PKG(VW_IMAGE, [VW_CORE], [-lvwImage], [vw/Image/ImageView.h])
187 AX_PKG(VW_FILEIO,[VW_IMAGE BOOST_SYSTEM], [-lvwFileIO], [vw/FileIO/DiskImageResourceOpenEXR.h vw/FileIO/DiskImageResourceGDAL.h])
188 AX_GROUP_PKG(VW, [VW_FILEIO VW_IMAGE VW_MATH VW_CORE])
189
190 # Vision Workbench Secondaries
191 AX_PKG(VW_PLATE, [VW_FILEIO], [-lvwPlate], [vw/Plate/PlateFile.h])
192 AX_PKG(VW_CAMERA, [VW BOOST_IOSTREAMS], [-lvwCamera], [vw/Camera/CAHVModel.h])
193 AX_PKG(VW_STEREO, [VW_CAMERA VW], [-lvwStereo], [vw/Stereo/OptimizedCorrelator.h])
194 AX_PKG(VW_CARTOGRAPHY, [VW_CAMERA VW], [-lvwCartography], [vw/Cartography/GeoReference.h])
195 AX_PKG(VW_INTEREST_POINT, [VW], [-lvwInterestPoint],[vw/InterestPoint/InterestData.h])
b7e4f18 @broxtronix First cut at adding a CUDA application
broxtronix authored
196
661b985 @novas0x2a make gl an explicit dep of qt-opengl
novas0x2a authored
197 AX_PKG_ONE_OF(GL,
198 APPLE_GL,
199 [AX_PKG_APPLE([GL], [], [-framework OpenGL -framework GLUT -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib])],
200 LINUX_GL,
201 [AX_PKG(X11, [], [-lXext -lX11 -lXmu -lXi -lXt], [])
a0b7e81 glShaders are not a requirement of ASP
Zack Moratto authored
202 AX_PKG(LINUX_GL, [X11], [-lglut -lGLU -lGL], [GL/gl.h GL/glu.h GL/glut.h])])
661b985 @novas0x2a make gl an explicit dep of qt-opengl
novas0x2a authored
203
7a3bc16 @novas0x2a make GL an explicit dep of openscenegraph, too.
novas0x2a authored
204 AX_PKG(OPENSCENEGRAPH, [GL], [-losg -losgDB -lOpenThreads -losgViewer -losgText -losgGA -losgFX -losgTerrain -losgUtil], [osg/ref_ptr])
205
206 AX_PKG(SPICE, [], [-lcspice], [SpiceUsr.h SpiceZfc.h])
207
c69254d @novas0x2a new qt detection method
novas0x2a authored
208 if test "$HAVE_PKG_QT" = no; then
209 ENABLE_QT_QMAKE=no
df8146e @broxtronix Brought over some of Mike Lundy\'s new build system tweaks from VW to…
broxtronix authored
210 fi
211
c69254d @novas0x2a new qt detection method
novas0x2a authored
212 if test "$ENABLE_QT_QMAKE" = no; then
213 AX_GROUP_PKG([QT_QMAKE])
214 else
215 # Qt with AutoTroll.
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
216 AT_WITH_QT([+gui +sql +opengl +network], [], [], [HAVE_PKG_QT_QMAKE="no:missing QT"], [])
c69254d @novas0x2a new qt detection method
novas0x2a authored
217
218 if test x"$HAVE_PKG_QT_QMAKE" != x"no:missing QT"; then
219 AT_REQUIRE_QT_VERSION([4.0], [HAVE_PKG_QT_QMAKE="no:wrong QT version"], [])
220 fi
221
222 # We seed QT_QMAKE's cppflags and libs with the ones qmake figured out
223 PKG_QT_QMAKE_CPPFLAGS="$PKG_QT_QMAKE_CPPFLAGS $QT_CPPFLAGS"
224 AX_PKG(QT_QMAKE, [], [$QT_LIBS], [QVector])
225 fi
df8146e @broxtronix Brought over some of Mike Lundy\'s new build system tweaks from VW to…
broxtronix authored
226
227 AX_PKG_ONE_OF(QT,
d6387f3 @novas0x2a Add an "arbitrary QT" mode
novas0x2a authored
228 ARBITRARY_QT,
229 [if test -z "$QT_ARBITRARY_MODULES" -a -z "$HAVE_PKG_ARBITRARY_MODULES"; then
230 HAVE_PKG_ARBITRARY_QT="no:Set \$QT_ARBITRARY_MODULES"
231 else
232 for module in $QT_ARBITRARY_MODULES; do
233 PKG_ARBITRARY_QT_NEEDED_HEADERS="$PKG_ARBITRARY_QT_NEEDED_HEADERS Qt${module}"
234 PKG_ARBITRARY_QT_LIBS="-lQt${module} $PKG_ARBITRARY_QT_LIBS"
235 done
236 fi
237 PKG_ARBITRARY_QT_CPPFLAGS="$PKG_ARBITRARY_QT_CPPFLAGS -DQT_SHARED"
238 AX_PKG(ARBITRARY_QT, [], [-lQtCore], [$PKG_ARBITRARY_QT_NEEDED_HEADERS])],
c69254d @novas0x2a new qt detection method
novas0x2a authored
239 APPLE_QMAKE_QT, [AX_PKG_APPLE(QMAKE_QT, [GL QT_QMAKE], [])],
240 LINUX_QMAKE_QT,
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
241 [AX_PKG(QT_QMAKE_OPENGL, [QT_QMAKE], [], [QtOpenGL])
242 AX_PKG(QT_QMAKE_GUI, [QT_QMAKE], [], [QLabel])
243 AX_PKG(QT_QMAKE_SQL, [QT_QMAKE], [], [QtSql])
244 AX_PKG(QT_QMAKE_NETWORK, [QT_QMAKE], [], [QtNetwork])
245 AX_GROUP_PKG(LINUX_QMAKE_QT, [QT_QMAKE QT_QMAKE_GUI QT_QMAKE_OPENGL QT_QMAKE_SQL QT_QMAKE_NETWORK])],
c69254d @novas0x2a new qt detection method
novas0x2a authored
246 GUESS_QT,
247 [PKG_QT_GUESS_BASE_CPPFLAGS="$PKG_QT_GUESS_BASE_CPPFLAGS -DQT_SHARED"
248 AX_PKG(QT_GUESS_BASE, [], [], [QtCore/qstring.h])
249 AX_PKG(QT_GUESS_CORE, [QT_GUESS_BASE], [-lQtCore], [QtCore], [QtCore])
250 AX_PKG(QT_GUESS_GUI, [QT_GUESS_CORE], [-lQtGui], [QtGui], [QtGui])
251 AX_PKG(QT_GUESS_SQL, [QT_GUESS_CORE], [-lQtSql], [QtSql], [QtSql])
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
252 AX_PKG(QT_GUESS_NETWORK,[QT_GUESS_CORE], [-lQtNetwork],[QtNetwork],[QtNetwork])
c69254d @novas0x2a new qt detection method
novas0x2a authored
253 AX_PKG(QT_GUESS_OPENGL, [QT_GUESS_CORE QT_GUESS_GUI], [-lQtOpenGL], [QtOpenGL], [QtOpenGL])
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
254 AX_GROUP_PKG(GUESS_QT, [QT_GUESS_BASE QT_GUESS_CORE QT_GUESS_GUI QT_GUESS_SQL QT_GUESS_NETWORK QT_GUESS_OPENGL])])
df8146e @broxtronix Brought over some of Mike Lundy\'s new build system tweaks from VW to…
broxtronix authored
255
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
256 AX_PKG_ONE_OF(QWT,
6a9ea0d @novas0x2a missed a QT_BASE ref
novas0x2a authored
257 APPLE_QWT, [AX_PKG_APPLE(QWT, [QT], [-lqwt.5])],
258 PLAIN_QWT, [AX_PKG(PLAIN_QWT, [QT], [-lqwt])],
259 SUFFX_QWT, [AX_PKG(SUFFX_QWT, [QT], [-lqwt-qt4])])
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
260
261 AX_PKG_ONE_OF(GSL,
860c4ef @novas0x2a detect gsl better
novas0x2a authored
262 GSL_HASBLAS, [AX_PKG(GSL_HASBLAS, [LAPACK], [-lgsl])],
263 GSL_NEEDBLAS, [AX_PKG(GSL_NEEDBLAS, [LAPACK], [-lgsl -lgslcblas])])
3a92ea1 @novas0x2a this patch adds --with-modulename-cppflags and --with-modulename-libs.
novas0x2a authored
264
265 if test x"$host_vendor" = "xapple"; then
266 AX_PKG(GEOS, [], [-lgeos-3.0.0], [])
267 AX_PKG(SUPERLU, [], [-lsuperlu_3.0], [])
268 AX_PKG(XERCESC, [], [-lxerces-c.28], [])
269 else
270 AX_PKG(GEOS, [], [-lgeos])
545de6e @novas0x2a Synchronize VW and Stereo build systems
novas0x2a authored
271 AX_PKG(SUPERLU, [LAPACK], [-lsuperlu])
3a92ea1 @novas0x2a this patch adds --with-modulename-cppflags and --with-modulename-libs.
novas0x2a authored
272 AX_PKG(XERCESC, [], [-lxerces-c])
273 fi
9c887d7 Added a visualization program called Bundlevis. Also modified rmax_ad…
Zack Moratto authored
274
22eabd4 @novas0x2a Mostly sync the macros between vw & stereo. This is good either if we…
novas0x2a authored
275 dnl We need to link ISIS3RDPARTY against LAPACK because, on some systems,
276 dnl the ISIS compilation does not resolve certain BLAS symbols that its
545de6e @novas0x2a Synchronize VW and Stereo build systems
novas0x2a authored
277 dnl dependent 3rd party libraries depend on (for whatever reason).
22eabd4 @novas0x2a Mostly sync the macros between vw & stereo. This is good either if we…
novas0x2a authored
278 dnl Thus, we link against LAPACK here because it defines these missing
61855a0 Merged the buildfixes branch onto trunk (r249:r257). This should (hop…
Morgon Kanter authored
279 dnl BLAS symbols in the event that we need them.
e016b05 Previous proposed changes won't do.
Zack Moratto authored
280 AX_PKG(ISIS3RDPARTY, [SUPERLU LAPACK GSL QWT GEOS SPICE XERCESC], [])
d5b5c94 Reorder of configure.ac
Zack Moratto authored
281 AX_PKG(ISIS, [ISIS3RDPARTY QT], [-lisis3], [SpecialPixel.h])
f9707bd Added ability to use TCMALLOC and PROFILER
Zack Moratto authored
282
8634e65 @broxtronix Added AM_CONDITIONAL directives for better backwards compatibility wi…
broxtronix authored
283 # These are here (instead of inside the PKG macro where they belong)
284 # for backwards compatability with older versions of automake.
c3e0cad @novas0x2a clean up configure deps a bit
novas0x2a authored
285 AM_CONDITIONAL(HAVE_PKG_SPICE, [test "$HAVE_PKG_SPICE" = "yes"])
200be14 @broxtronix A few tweaks to the stereo build system to get it to work on os 10.5
broxtronix authored
286 AM_CONDITIONAL(HAVE_PKG_ISIS, [test "$HAVE_PKG_ISIS" = "yes"])
9c0d10b Massive reorganization. Works this time! A good handful of code has b…
Zack Moratto authored
287 AM_CONDITIONAL(HAVE_PKG_OPENSCENEGRAPH, [test "$HAVE_PKG_OPENSCENEGRAPH" = "yes"])
200be14 @broxtronix A few tweaks to the stereo build system to get it to work on os 10.5
broxtronix authored
288
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
289 ##################################################
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
290 # module definitions
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
291 ##################################################
292
d5b5c94 Reorder of configure.ac
Zack Moratto authored
293 AX_GROUP_PKG(BOOST_MOST, [BOOST_DATETIME BOOST_IOSTREAMS BOOST])
294 AX_GROUP_PKG(VW_ALL, [VW_CARTOGRAPHY VW_STEREO VW_CAMERA VW_INTEREST_POINT VW])
295
296 AX_MODULE(CORE, [src/asp/Core], [libaspCore.la], yes, [], [VW_ALL BOOST_MOST], [LAPACK])
297 AX_MODULE(SPICEIO, [src/asp/SpiceIO], [libaspSpiceIO.la], yes, [], [VW BOOST_MOST SPICE])
298 AX_MODULE(ISISIO, [src/asp/IsisIO], [libaspIsisIO.la], yes, [], [ISIS VW_CARTOGRAPHY BOOST])
299 AX_MODULE(SESSIONS, [src/asp/Sessions], [libaspSessions.la], yes, [CORE], [], [ISISIO SPICEIO])
300 AX_MODULE(MPI, [src/asp/MPI], [], no, [ISISIO CORE], [BOOST_SERIALIZATION BOOST_MPI OPEN_MPI VW_ALL])
301
302 AX_APP(STEREO, [src/asp/Tools], yes, [SESSIONS])
303 AX_APP(ORTHOPROJECT, [src/asp/Tools], yes, [SESSIONS])
304 AX_APP(BUNDLEADJUST, [src/asp/Tools], no, [SESSIONS])
305 AX_APP(ORBITVIZ, [src/asp/Tools], yes, [SESSIONS])
306 AX_APP(DISPARITYDEBUG, [src/asp/Tools], yes, [VW_STEREO])
307 AX_APP(POINT2MESH, [src/asp/Tools], yes, [OPENSCENEGRAPH VW])
308 AX_APP(POINT2DEM, [src/asp/Tools], yes, [CORE])
309 AX_APP(RMAX2CAHVOR, [src/asp/Tools], no, [SESSIONS])
310 AX_APP(RMAXADJUST, [src/asp/Tools], no, [SESSIONS])
311 AX_APP(BUNDLEVIS, [src/asp/Tools], no, [OPENSCENEGRAPH VW_CAMERA])
312 AX_APP(ISISADJUST, [src/asp/Tools], yes, [ISISIO CORE])
313 AX_APP(RESULTS, [src/asp/Tools], yes, [ISISIO])
314 AX_APP(RECONSTRUCT, [src/asp/Tools], no, [VW_CARTOGRAPHY VW])
315 AX_APP(ALIGNDEM, [src/asp/Tools], yes, [VW_CARTOGRAPHY VW_INTEREST_POINT])
316 AX_APP(GEODIFF, [src/asp/Tools], yes, [ISISIO VW BOOST])
317 AX_APP(DEMPROFILE, [src/asp/Tools], yes, [VW_CARTOGRAPHY VW])
318 AX_APP(PLATEORTHOPROJECT,[src/asp/Tools], no, [SESSIONS ISISIO VW_PLATE])
9c0d10b Massive reorganization. Works this time! A good handful of code has b…
Zack Moratto authored
319
8634e65 @broxtronix Added AM_CONDITIONAL directives for better backwards compatibility wi…
broxtronix authored
320 # These are here (instead of inside the APP macro where they belong)
321 # for backwards compatability with older versions of automake.
9c0d10b Massive reorganization. Works this time! A good handful of code has b…
Zack Moratto authored
322 AM_CONDITIONAL(MAKE_MODULE_CORE, [test "$MAKE_MODULE_CORE" = "yes"])
323 AM_CONDITIONAL(MAKE_MODULE_ISISIO, [test "$MAKE_MODULE_ISISIO" = "yes"])
324 AM_CONDITIONAL(MAKE_MODULE_SPICEIO, [test "$MAKE_MODULE_SPICEIO" = "yes"])
325 AM_CONDITIONAL(MAKE_MODULE_SESSIONS, [test "$MAKE_MODULE_SESSIONS" = "yes"])
384d7c3 Added skeleton for MPI in ASP
Zack Moratto authored
326 AM_CONDITIONAL(MAKE_MODULE_MPI, [test "$MAKE_MODULE_MPI" = "yes"])
9c0d10b Massive reorganization. Works this time! A good handful of code has b…
Zack Moratto authored
327
8634e65 @broxtronix Added AM_CONDITIONAL directives for better backwards compatibility wi…
broxtronix authored
328 AM_CONDITIONAL(MAKE_APP_STEREO, [test "$MAKE_APP_STEREO" = "yes"])
0a8a6bd @broxtronix Moved the stereo gui into the main build system. It does not build b…
broxtronix authored
329 AM_CONDITIONAL(MAKE_APP_STEREOGUI, [test "$MAKE_APP_STEREOGUI" = "yes"])
8634e65 @broxtronix Added AM_CONDITIONAL directives for better backwards compatibility wi…
broxtronix authored
330 AM_CONDITIONAL(MAKE_APP_ORTHOPROJECT, [test "$MAKE_APP_ORTHOPROJECT" = "yes"])
331 AM_CONDITIONAL(MAKE_APP_BUNDLEADJUST, [test "$MAKE_APP_BUNDLEADJUST" = "yes"])
332 AM_CONDITIONAL(MAKE_APP_ORBITVIZ, [test "$MAKE_APP_ORBITVIZ" = "yes"])
333 AM_CONDITIONAL(MAKE_APP_DISPARITYDEBUG, [test "$MAKE_APP_DISPARITYDEBUG" = "yes"])
334 AM_CONDITIONAL(MAKE_APP_POINT2MESH, [test "$MAKE_APP_POINT2MESH" = "yes"])
335 AM_CONDITIONAL(MAKE_APP_POINT2DEM, [test "$MAKE_APP_POINT2DEM" = "yes"])
336 AM_CONDITIONAL(MAKE_APP_RMAX2CAHVOR, [test "$MAKE_APP_RMAX2CAHVOR" = "yes"])
337 AM_CONDITIONAL(MAKE_APP_RMAXADJUST, [test "$MAKE_APP_RMAXADJUST" = "yes"])
338 AM_CONDITIONAL(MAKE_APP_BUNDLEVIS, [test "$MAKE_APP_BUNDLEVIS" = "yes"])
545de6e @novas0x2a Synchronize VW and Stereo build systems
novas0x2a authored
339 AM_CONDITIONAL(MAKE_APP_ISISADJUST, [test "$MAKE_APP_ISISADJUST" = "yes"])
9686523 @anefian added support for results
anefian authored
340 AM_CONDITIONAL(MAKE_APP_RESULTS, [test "$MAKE_APP_RESULTS" = "yes"])
fd21b10 Adding Ara's new program, reconstruct.
Zack Moratto authored
341 AM_CONDITIONAL(MAKE_APP_RECONSTRUCT, [test "$MAKE_APP_RECONSTRUCT" = "yes"])
0a19f99 @khusmann begun work on an experimental utility for comparing dems
khusmann authored
342 AM_CONDITIONAL(MAKE_APP_ALIGNDEM, [test "$MAKE_APP_ALIGNDEM" = "yes"])
a11702a @khusmann added geodiff tool
khusmann authored
343 AM_CONDITIONAL(MAKE_APP_GEODIFF, [test "$MAKE_APP_GEODIFF" = "yes"])
6eaf219 Rough draft upload of a DEM profile utility. Currently it can only ma…
Zack Moratto authored
344 AM_CONDITIONAL(MAKE_APP_DEMPROFILE, [test "$MAKE_APP_DEMPROFILE" = "yes"])
a834a21 Added orthoproject util that uses platefiles
Zack Moratto authored
345 AM_CONDITIONAL(MAKE_APP_PLATEORTHOPROJECT, [test "$MAKE_APP_PLATEORTHOPROJECT" = "yes"])
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
346
347 ##################################################
348 # final processing
349 ##################################################
350
351 ASP_CPPFLAGS="-I\${top_srcdir}/src $OTHER_CPPFLAGS"
22eabd4 @novas0x2a Mostly sync the macros between vw & stereo. This is good either if we…
novas0x2a authored
352 ASP_LDFLAGS="$OTHER_LDFLAGS"
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
353
545de6e @novas0x2a Synchronize VW and Stereo build systems
novas0x2a authored
354 # Do this last, to make sure it's not overridden
355 if test x"$ENABLE_STRICT_ALIASING" = x"no"; then
356 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
357 fi
358
545de6e @novas0x2a Synchronize VW and Stereo build systems
novas0x2a authored
359 AX_LOG([using CPPFLAGS=$CPPFLAGS])
360 AX_LOG([using ASP_CPPFLAGS=$ASP_CPPFLAGS])
361 AX_LOG([using CFLAGS=$CFLAGS])
362 AX_LOG([using CXXFLAGS=$CXXFLAGS])
363 AX_LOG([using LDFLAGS=$LDFLAGS])
364 AX_LOG([using ASP_LDFLAGS=$ASP_LDFLAGS])
365 AX_LOG([using ASP_ENABLE_EXCEPTIONS=$ENABLE_EXCEPTIONS])
366
a74972c @broxtronix Merged in changes from the isis_devel branch. Improvements include a…
broxtronix authored
367 AC_SUBST(ASP_CPPFLAGS)
368 AC_SUBST(ASP_LDFLAGS)
369
370
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
371 ##################################################
40a3704 @novas0x2a merge in more changes from vw
novas0x2a authored
372 # makefiles to process
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
373 ##################################################
374
375 AC_CONFIG_FILES([ \
376 Makefile \
377 src/Makefile \
9c0d10b Massive reorganization. Works this time! A good handful of code has b…
Zack Moratto authored
378 src/asp/Makefile \
379 src/asp/Core/Makefile \
380 src/asp/SpiceIO/Makefile \
381 src/asp/IsisIO/Makefile \
4515a04 Added linescan proof of accuracy to groundmap
Zack Moratto authored
382 src/asp/IsisIO/tests/Makefile \
9c0d10b Massive reorganization. Works this time! A good handful of code has b…
Zack Moratto authored
383 src/asp/Sessions/Makefile \
384 src/asp/Sessions/ISIS/Makefile \
385 src/asp/Sessions/Keypoint/Makefile \
386 src/asp/Sessions/Pinhole/Makefile \
387 src/asp/Sessions/RMAX/Makefile \
384d7c3 Added skeleton for MPI in ASP
Zack Moratto authored
388 src/asp/MPI/Makefile \
bf8e60a Bringing ASP's build system up to VW standards
Zack Moratto authored
389 src/asp/Tools/Makefile \
bf17a24 @broxtronix Re-arranged the repository...
broxtronix authored
390 ])
391
392 AC_OUTPUT
Something went wrong with that request. Please try again.