Skip to content

HTTPS clone URL

Subversion checkout URL

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