Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 401 lines (323 sloc) 15.528 kb
c98254b @novas0x2a relicense everything. woo.
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__
6
91b79ca @novas0x2a make automake notice undefined AX_* macros
novas0x2a authored
7 m4_pattern_forbid([^AX_])
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])
35984ed Partial commit of build system.
Matthew Hancher authored
12
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
13 ##################################################
14 # A few starting bits
15 ##################################################
16
17 dnl TODO BEFORE RELEASE: update package version
25f2812 @novas0x2a update package and library versions
novas0x2a authored
18 AC_INIT([NASA Vision Workbench], [2.0], [vision-workbench@lists.nasa.gov], [VisionWorkbench])
35984ed Partial commit of build system.
Matthew Hancher authored
19 AC_CONFIG_AUX_DIR(config)
626fcbf @novas0x2a Switch to autoreconf for autogen- it's a little smarter than just callin...
novas0x2a authored
20 AC_CONFIG_MACRO_DIR([m4])
35984ed Partial commit of build system.
Matthew Hancher authored
21 AC_CANONICAL_HOST
e983818 @novas0x2a common options
novas0x2a authored
22 AM_INIT_AUTOMAKE([nostdinc])
35984ed Partial commit of build system.
Matthew Hancher authored
23 AX_CONFIG_HEADER_PREFIX([src/vw/config.h], [VW_])
24
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
25 dnl TODO BEFORE RELEASE: update libtool version
26 dnl if abi changes in any way:
27 dnl current++
28 dnl revision=0
29 dnl if new abi is backward-compatible:
30 dnl age += 1
31 dnl else:
32 dnl age = 0
33 dnl else:
34 dnl revision++
35 dnl (see http://sources.redhat.com/autobook/autobook/autobook_91.html)
36 dnl
37 dnl LIBTOOL_VERSION=current:revision:age
25f2812 @novas0x2a update package and library versions
novas0x2a authored
38 LIBTOOL_VERSION=2:0:0
e977fd2 Missed a file in the previous commit (adding libtool
Matthew Hancher authored
39 AC_SUBST(LIBTOOL_VERSION)
35984ed Partial commit of build system.
Matthew Hancher authored
40
41 # This should be first, so everything else can use it
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
42 AX_ARG_ENABLE(verbose, no, [none], [verbose configuration output])
35984ed Partial commit of build system.
Matthew Hancher authored
43
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
44 # load the config.options
35984ed Partial commit of build system.
Matthew Hancher authored
45 if test -f config.options; then
46 if test "yes" = "$ENABLE_VERBOSE" ; then
47 AC_MSG_NOTICE([sourcing config.options])
48 cat config.options
49 fi
50 source config.options
51 fi
52
53
54
55 ##################################################
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
56 # Find the necessary programs
35984ed Partial commit of build system.
Matthew Hancher authored
57 ##################################################
58
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
59 # Make sure these are set so AC_PROG_CC doesn't initialize them with
60 # its defaults, since we take care of setting debug and optimization
61 # levels ourselves.
62 CFLAGS="$CFLAGS"
63 CXXFLAGS="$CXXFLAGS"
64
65 # Find the tools
66 AC_PROG_CC
67 AC_PROG_CXX
68 AC_PROG_INSTALL
69 AX_PROG_AR
70 AC_PROG_LIBTOOL
71 AC_PROG_MAKE_SET
72 AC_LANG(C++)
e983818 @novas0x2a common options
novas0x2a authored
73 AX_COMMON_OPTIONS
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
74
75 # Does the compiler support introspection?
76 AX_CHECK_INTROSPECTION
77
8879c42 @novas0x2a make some windows compat fixes
novas0x2a authored
78 # Looking for posix headers
79 AC_CHECK_HEADERS([unistd.h pwd.h])
80 AC_CHECK_FUNCS([getpwuid getpid])
81
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
82 # Look for the python stuff
83 AM_PATH_PYTHON([2.4], [HAVE_PYTHON=yes], [HAVE_PYTHON=no])
84 AC_PYTHON_DEVEL([HAVE_PYTHON=yes], [HAVE_PYTHON=no])
85 AC_PROG_SWIG([1.3.29], [HAVE_SWIG=yes], [HAVE_SWIG=no])
86
87 AC_SUBST(HAVE_PYTHON)
88 AC_SUBST(HAVE_SWIG)
89
90 if test "$HAVE_SWIG" = "yes"; then
91 SWIG_ENABLE_CXX
92 if test "$HAVE_PYTHON" = "yes"; then
93 SWIG_PYTHON
94 fi
95 fi
96
97 # Check for the code coverage programs
98 AC_CHECK_PROGS(LCOV, lcov, false)
99 AC_CHECK_PROGS(GENHTML, genhtml, false)
100
101
102
103 ##################################################
104 # Compilation options
105 ##################################################
106
107 # For the moment this is just a manual switch, defaulting to off.
108 # Someday this should be sensibly autodetected.
109 AX_ARG_ENABLE(sse, no, [am-yes cpp-bool], [enable SSE optimizations in some places (development)])
110 AX_ARG_ENABLE(bounds-check, no, [am-yes cpp-bool], [enable image bounds checking (SLOW!)])
3c6d13b @novas0x2a instantiate class templates in core, math, image
novas0x2a authored
111 AX_ARG_ENABLE(test-coverage, no, [am-yes], [turn on code coverage analysis tools])
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
112 AX_ARG_ENABLE(multi-arch, [], [none], [build multi-arch (universal) binaries])
113
114 ##################################################
115 # Handle options
116 ##################################################
117
118 # Pass apple gcc options to build a universal binary
119 for arch in $ENABLE_MULTI_ARCH; do
120 AX_CFLAGS="$AX_CFLAGS -arch $arch"
121 done
39b0fa7 @broxtronix Added a config flag for changing the target architecture (to support 64-...
broxtronix authored
122
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
123 # Check for --enable-test-coverate and add appropriate flags for gcc
124 if test "$ENABLE_TEST_COVERAGE" = "yes"; then
125 AX_TRY_CPPFLAGS([-fprofile-arcs], [ENABLE_TEST_COVERAGE=yes], [ENABLE_TEST_COVERAGE=no])
126 AX_TRY_CPPFLAGS([-ftest-coverage], [], [ENABLE_TEST_COVERAGE=no])
2d8608c A first cut at reworking the exception system to
Matthew Hancher authored
127
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
128 if test "$ENABLE_TEST_COVERAGE" = "yes"; then
129 echo "*** Enabling test coverage and debugging, and disabling optimization ***"
130 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
8bb2e99 @novas0x2a don't obliterate ldflags or libs
novas0x2a authored
131 LDFLAGS="$LDFLAGS -lgcov"
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
132 ENABLE_OPTIMIZE=no
133 ENABLE_DEBUG=yes
c402b1f @novas0x2a more instantiations, and some handy makefile rules
novas0x2a authored
134
135 if test "${CXX/ccache//}" != "$CXX"; then
136 AC_MSG_ERROR([compiler CXX ($CXX) appears to be ccache, which breaks test-coverage])
137 fi
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
138 fi
2d8608c A first cut at reworking the exception system to
Matthew Hancher authored
139 fi
140
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
141 # Files test-coverage and profile-arcs generate
142 AC_SUBST([MOSTLYCLEANFILES], "*.bb *.bbg *.da *.gcov *.gcda *.gcno")
4ac6839 Added the missing Interpolation.cc.
Matthew Hancher authored
143
824e7d0 @novas0x2a make sure am_conditional stays in sync
novas0x2a authored
144 # These need to be here because automake-1.6 is dumb and does not properly
145 # process AM_CONDITIONALs unless the first argument is a simple string.
146 AM_CONDITIONAL(ENABLE_SSE, [test x"$ENABLE_SSE" = x"yes"])
147 AM_CONDITIONAL(ENABLE_BOUNDS_CHECK, [test x"$ENABLE_BOUNDS_CHECK" = x"yes"])
3c6d13b @novas0x2a instantiate class templates in core, math, image
novas0x2a authored
148 AM_CONDITIONAL(ENABLE_TEST_COVERAGE, [test x"$ENABLE_TEST_COVERAGE" = x"yes"])
824e7d0 @novas0x2a make sure am_conditional stays in sync
novas0x2a authored
149
35984ed Partial commit of build system.
Matthew Hancher authored
150
78a3571 Various build system and documentation tweaks.
Matthew Hancher authored
151
35984ed Partial commit of build system.
Matthew Hancher authored
152 ##################################################
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
153 # distribution options
35984ed Partial commit of build system.
Matthew Hancher authored
154 ##################################################
155
2a29bbf @broxtronix After thinking about this some more, I am adding the Geometry module bac...
broxtronix authored
156 AX_ARG_WITH(dist-remove-modules, [Python Geometry gui], [mk am-set], [remove certain modules from the distribution])
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
157
824e7d0 @novas0x2a make sure am_conditional stays in sync
novas0x2a authored
158 # These need to be here because automake-1.6 is dumb and does not properly
159 # process AM_CONDITIONALs unless the first argument is a simple string.
160 AM_CONDITIONAL(DIST_REMOVE_MODULES, [test ! -z "$DIST_REMOVE_MODULES"])
161
9927df7 Added CMU copyright to source file headers. Added support in the
Matthew Hancher authored
162
35984ed Partial commit of build system.
Matthew Hancher authored
163
164 ##################################################
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
165 # package checks
35984ed Partial commit of build system.
Matthew Hancher authored
166 ##################################################
167
168 AX_PKG_PTHREADS
169
170 AX_PKG_BOOST
54183f2 @novas0x2a Mostly sync the macros between vw & stereo. This is good either if we st...
novas0x2a authored
171 AX_PKG_BOOST_CHECK_VERSION([VW_])
172
efe9f61 Made the configure system store the version of Boost that was used to bu...
Matthew Hancher authored
173 AC_MSG_NOTICE([VW will be built using Boost version $BOOST_VERSION])
e6ede5c Yet Another Build System Fix.
Morgon Kanter authored
174 AX_PKG_BOOST_LIB(PROGRAM_OPTIONS, [-lboost_program_options], [boost/program_options.hpp])
dbf23f9 @novas0x2a add ax_pkg_one_of, and use it
novas0x2a authored
175
176 AX_PKG_ONE_OF(BOOST_FILESYSTEM,
177 BOOST_FILESYSTEM_PRE_1_35, [AX_PKG_BOOST_LIB(FILESYSTEM_PRE_1_35, [-lboost_filesystem], [boost/filesystem/path.hpp])],
178 BOOST_FILESYSTEM_POST_1_35, [AX_PKG_BOOST_LIB(FILESYSTEM_POST_1_35, [-lboost_filesystem -lboost_system], [boost/filesystem/path.hpp])])
179
e6ede5c Yet Another Build System Fix.
Morgon Kanter authored
180 AX_PKG_BOOST_LIB(THREAD, [-lboost_thread], [boost/thread/thread.hpp])
35984ed Partial commit of build system.
Matthew Hancher authored
181
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
182 # This provides an easy way for users to override the threads options
be91a69 Added a simple abtracted threading interface, made the core
Matthew Hancher authored
183 # if they are replacing Boost threads with something else for their platform.
184 AX_PKG(THREADS, [BOOST_THREAD], [], [])
185
4a48b8c @novas0x2a add ax_pkg_apple, and get rid of lapack/gl magic
novas0x2a authored
186 AX_PKG_ONE_OF(LAPACK,
187 APPLE_LAPACK,
188 [AX_PKG_APPLE(LAPACK, [], [-framework vecLib])],
189 CLAPACK,
190 [AX_PKG(CLAPACK, [], [-lclapack -lblas -lf2c], [])],
191 SLAPACK,
192 [AX_PKG(SLAPACK, [], [-llapack -lblas], [])],
193 FLAPACK,
194 [AX_PKG(FLAPACK, [], [-llapack -lblas -lgfortran], [])],
195 STANDALONE_LAPACK_BLAS,
196 [AX_PKG(STANDALONE_BLAS, [], [-lblas], [])
197 AX_PKG(STANDALONE_LAPACK, [], [-llapack], [])
198 AX_GROUP_PKG(STANDALONE_LAPACK_AND_BLAS, [STANDALONE_LAPACK STANDALONE_BLAS])],
199 STANDALONE_FLAPACK_FBLAS,
200 [AX_PKG(STANDALONE_F2C, [], [-lf2c], [])
201 AX_PKG(STANDALONE_FBLAS, [STANDALONE_F2C], [-lblas], [])
202 AX_PKG(STANDALONE_FLAPACK, [STANDALONE_F2C], [-llapack], [])
203 AX_GROUP_PKG(STANDALONE_FLAPACK_FBLAS, [STANDALONE_FLAPACK STANDALONE_FBLAS STANDALONE_F2C])])
adb8010 @broxtronix Started work on pulling the LAPACK functionality back into the Math
broxtronix authored
204
35984ed Partial commit of build system.
Matthew Hancher authored
205 AX_PKG(M, [], [-lm], [math.h])
206 AX_PKG(Z, [], [-lz], [zlib.h])
35f061b Updated lots of things to use fully-specified integer types. In
Matthew Hancher authored
207
d5a401c @novas0x2a make some implicit deps explicit
novas0x2a authored
208 AX_PKG(PNG, [Z], [-lpng], [png.h])
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
209 AX_PKG(JPEG, [], [-ljpeg], [stdio.h jpeglib.h]) # jpeglib.h requires stdio.h to have been included
f9cc584 @novas0x2a add function-checker, and use it for BigTIFF
novas0x2a authored
210
d5a401c @novas0x2a make some implicit deps explicit
novas0x2a authored
211 AX_PKG(ILMBASE, [M Z PTHREADS], [-lImath -lHalf -lIex], [Iex.h], [OpenEXR])
6efb909 @broxtronix Changed the way that OpenEXR is detected to support the new (1.5 and new...
broxtronix authored
212 AX_PKG(OPENEXR, [ILMBASE], [-lIlmImf], [ImfOutputFile.h], [OpenEXR])
4ee7362 @novas0x2a add a possible hdf path
novas0x2a authored
213
dbf23f9 @novas0x2a add ax_pkg_one_of, and use it
novas0x2a authored
214 AX_PKG_ONE_OF(HDF,
d5a401c @novas0x2a make some implicit deps explicit
novas0x2a authored
215 HDF_PLAIN, [AX_PKG(HDF_PLAIN, [M JPEG], [-ldf -lmfhdf], [mfhdf.h] )],
216 HDF_SUBDIR, [AX_PKG(HDF_SUBDIR, [M JPEG], [-ldf -lmfhdf], [mfhdf.h], [hdf])]
dbf23f9 @novas0x2a add ax_pkg_one_of, and use it
novas0x2a authored
217 )
35984ed Partial commit of build system.
Matthew Hancher authored
218
4a48b8c @novas0x2a add ax_pkg_apple, and get rid of lapack/gl magic
novas0x2a authored
219 AX_PKG_ONE_OF(GL,
cd7cc23 @novas0x2a hide linux-only check on apple
novas0x2a authored
220 APPLE_GL,
221 [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])],
222 LINUX_GL,
223 [AX_PKG(X11, [], [-lXext -lX11 -lXmu -lXi -lXt], [])
224 AX_PKG(LINUX_GL, [X11], [-lGL -lGLU -lglut], [GL/gl.h GL/glu.h GL/glut.h], [], [glCreateShader])])
4a48b8c @novas0x2a add ax_pkg_apple, and get rid of lapack/gl magic
novas0x2a authored
225
e35d615 @broxtronix Made a few minor changes to OpenGL detection to better support the GPU m...
broxtronix authored
226 AX_PKG(GLEW, [GL M], [-lGLEW], [GL/glew.h])
7e75034 @novas0x2a cg needs gl to compile
novas0x2a authored
227 AX_PKG(CG, [GL], [-lCg -lCgGL], [Cg/cg.h])
35984ed Partial commit of build system.
Matthew Hancher authored
228
229 AX_PKG(GDAL, [], [-lgdal], [gdal.h])
ea945e4 @novas0x2a fix gdal/tiff overlap problem
novas0x2a authored
230 PKG_CHECK_FUNCTION(GDAL, [TIFFScanlineSize], [TIFF])
231 PKG_CHECK_FUNCTION(GDAL, [TIFFScanlineSize64], [BigTIFF])
232
f27fa19 @novas0x2a if HAVE_PKG_* is "no:$reason", AX_PKG will disable it and give a reason
novas0x2a authored
233 if test x"$GDAL_HAS_TIFF" == "xyes"; then
234 HAVE_PKG_TIFF="no:gdal has tiff support"
f9cc584 @novas0x2a add function-checker, and use it for BigTIFF
novas0x2a authored
235 fi
236
f27fa19 @novas0x2a if HAVE_PKG_* is "no:$reason", AX_PKG will disable it and give a reason
novas0x2a authored
237 AX_PKG(TIFF, [], [-ltiff], [tiff.h])
238 PKG_CHECK_FUNCTION(TIFF, [TIFFScanlineSize64], [BigTIFF])
239
d5a401c @novas0x2a make some implicit deps explicit
novas0x2a authored
240 AX_PKG(PROJ4, [M], [-lproj], [projects.h])
35984ed Partial commit of build system.
Matthew Hancher authored
241
3f67665 @novas0x2a fix qt detection to not die if qt isn't detected.
novas0x2a authored
242 # Qt with AutoTroll.
f27fa19 @novas0x2a if HAVE_PKG_* is "no:$reason", AX_PKG will disable it and give a reason
novas0x2a authored
243 AT_WITH_QT([+gui +sql +opengl], [], [], [], [HAVE_PKG_QT_INCLUDE="no:missing QT"])
96ba3de @novas0x2a merge in changes from autotroll upstream
novas0x2a authored
244
245 if test x"$HAVE_PKG_QT_INCLUDE" != x"no"; then
f27fa19 @novas0x2a if HAVE_PKG_* is "no:$reason", AX_PKG will disable it and give a reason
novas0x2a authored
246 AT_REQUIRE_QT_VERSION([4.0], [], [HAVE_PKG_QT_INCLUDE="no:wrong QT version"])
96ba3de @novas0x2a merge in changes from autotroll upstream
novas0x2a authored
247 fi
3f67665 @novas0x2a fix qt detection to not die if qt isn't detected.
novas0x2a authored
248
9e7c4e5 @broxtronix First checkin of \'vwv\', the Vision Workbench Image Viewer. This is th...
broxtronix authored
249 # We seed QT_INCLUDE's cppflags with the ones qmake figured out
c1f4db8 @novas0x2a fix annoying bug in build.
novas0x2a authored
250 PKG_QT_INCLUDE_CPPFLAGS="$PKG_QT_INCLUDE_CPPFLAGS $QT_CPPFLAGS"
59561d7 @novas0x2a fix qt library detection. again.
novas0x2a authored
251 AX_PKG(QT_INCLUDE, [], [], [QVector])
9e7c4e5 @broxtronix First checkin of \'vwv\', the Vision Workbench Image Viewer. This is th...
broxtronix authored
252
4a48b8c @novas0x2a add ax_pkg_apple, and get rid of lapack/gl magic
novas0x2a authored
253 AX_PKG_ONE_OF(QT,
254 APPLE_QT, [AX_PKG_APPLE(QT, [QT_INCLUDE], [$QT_LIBS])],
255 LINUX_QT,
256 [AX_PKG(QT_LIBS, [], [$QT_LIBS], [])
257 AX_PKG(QT_OPENGL, [QT_INCLUDE], [], [QtOpenGL])
258 AX_PKG(QT_GUI, [QT_INCLUDE], [], [QLabel])
259 AX_PKG(QT_SQL, [QT_INCLUDE], [], [QtSql])
260 AX_GROUP_PKG(LINUX_QT, [QT_INCLUDE QT_GUI QT_OPENGL QT_SQL QT_LIBS])])
9e7c4e5 @broxtronix First checkin of \'vwv\', the Vision Workbench Image Viewer. This is th...
broxtronix authored
261
653d1ab Added support for TIFF, OpenEXR, and PDS image types, and
Matthew Hancher authored
262 # These are here (instead of inside the PKG macro where they belong)
263 # for backwards compatability with older versions of automake.
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
264 AM_CONDITIONAL(HAVE_PKG_LAPACK, [test "$HAVE_PKG_LAPACK" = "yes"])
653d1ab Added support for TIFF, OpenEXR, and PDS image types, and
Matthew Hancher authored
265 AM_CONDITIONAL(HAVE_PKG_PNG, [test "$HAVE_PKG_PNG" = "yes"])
266 AM_CONDITIONAL(HAVE_PKG_JPEG, [test "$HAVE_PKG_JPEG" = "yes"])
35f061b Updated lots of things to use fully-specified integer types. In
Matthew Hancher authored
267 AM_CONDITIONAL(HAVE_PKG_TIFF, [test "$HAVE_PKG_TIFF" = "yes"])
653d1ab Added support for TIFF, OpenEXR, and PDS image types, and
Matthew Hancher authored
268 AM_CONDITIONAL(HAVE_PKG_OPENEXR, [test "$HAVE_PKG_OPENEXR" = "yes"])
35f061b Updated lots of things to use fully-specified integer types. In
Matthew Hancher authored
269 AM_CONDITIONAL(HAVE_PKG_HDF, [test "$HAVE_PKG_HDF" = "yes"])
d335988 New file IO metadata scheme from templeton branch (branch created at
Todd Templeton authored
270 AM_CONDITIONAL(HAVE_PKG_GDAL, [test "$HAVE_PKG_GDAL" = "yes"])
35984ed Partial commit of build system.
Matthew Hancher authored
271
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
272
35984ed Partial commit of build system.
Matthew Hancher authored
273 ##################################################
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
274 # module definitions
35984ed Partial commit of build system.
Matthew Hancher authored
275 ##################################################
276
61ad60a @novas0x2a remove libvw.la from PKG_VW_LIBS.
novas0x2a authored
277 AX_MODULE(CORE, [src/vw/Core], [libvwCore.la], yes, [], [BOOST THREADS M], [PTHREADS])
278 AX_MODULE(MATH, [src/vw/Math], [libvwMath.la], yes, [CORE], [], [LAPACK])
279 AX_MODULE(IMAGE, [src/vw/Image], [libvwImage.la], yes, [MATH])
280 AX_MODULE(FILEIO, [src/vw/FileIO], [libvwFileIO.la], yes, [IMAGE], [], [Z PNG JPEG TIFF OPENEXR HDF GDAL])
281 AX_MODULE(VW, [src/vw], [libvw.la], yes, [], [CORE MATH IMAGE], [FILEIO])
282
ab72d4b @broxtronix More changes to the automake files to support automake 1.10. Added quot...
broxtronix authored
283 if test "${MAKE_MODULE_VW}" != "yes"; then
78a3571 Various build system and documentation tweaks.
Matthew Hancher authored
284 AC_MSG_ERROR([cannot build the Vision Workbench core modules!])
35984ed Partial commit of build system.
Matthew Hancher authored
285 fi
286
61ad60a @novas0x2a remove libvw.la from PKG_VW_LIBS.
novas0x2a authored
287 # remove libvw.la from this. it's a convenience library that just happens to be
288 # installed, but if we link against it, we create multi-path problems
289 PKG_VW_LIBS_TEMP=
290 for i in $PKG_VW_LIBS; do
291 case $i in
292 *libvw\.*) ;;
293 *) PKG_VW_LIBS_TEMP="$PKG_VW_LIBS_TEMP $i" ;;
294 esac
295 done
296 PKG_VW_LIBS="$PKG_VW_LIBS_TEMP"
297
298 AX_MODULE(CAMERA, [src/vw/Camera], [libvwCamera.la], yes, [VW])
299 AX_MODULE(MOSAIC, [src/vw/Mosaic], [libvwMosaic.la], yes, [VW])
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
300 AX_MODULE(INTERESTPOINT, [src/vw/InterestPoint], [libvwInterestPoint.la], yes, [VW])
61ad60a @novas0x2a remove libvw.la from PKG_VW_LIBS.
novas0x2a authored
301 AX_MODULE(CARTOGRAPHY, [src/vw/Cartography], [libvwCartography.la], yes, [VW], [PROJ4], [GDAL])
302 AX_MODULE(HDR, [src/vw/HDR], [libvwHDR.la], yes, [VW], [CAMERA LAPACK])
303 AX_MODULE(STEREO, [src/vw/Stereo], [libvwStereo.la], yes, [VW])
304 AX_MODULE(GEOMETRY, [src/vw/Geometry], [libvwGeometry.la], yes, [VW])
e35d615 @broxtronix Made a few minor changes to OpenGL detection to better support the GPU m...
broxtronix authored
305 if test $host_vendor = apple; then
61ad60a @novas0x2a remove libvw.la from PKG_VW_LIBS.
novas0x2a authored
306 AX_MODULE(GPU, [src/vw/GPU], [libvwGPU.la], no, [VW], [GL], [CG])
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
307 else
61ad60a @novas0x2a remove libvw.la from PKG_VW_LIBS.
novas0x2a authored
308 AX_MODULE(GPU, [src/vw/GPU], [libvwGPU.la], no, [VW], [GL GLEW], [CG])
e35d615 @broxtronix Made a few minor changes to OpenGL detection to better support the GPU m...
broxtronix authored
309 fi
7f29a19 Minor IRG/Linux portability bugfixes.
Matthew Hancher authored
310
2a29bbf @broxtronix After thinking about this some more, I am adding the Geometry module bac...
broxtronix authored
311
f51af8a @novas0x2a move tools common libs up to configure.ac, too
novas0x2a authored
312 AX_MODULE(TOOLS, [src/vw/tools], [], yes, [VW], [BOOST_FILESYSTEM BOOST_PROGRAM_OPTIONS THREADS])
7e5fb1e @novas0x2a make sure we pull in the shader extention & prototypes on linux
novas0x2a authored
313 AX_MODULE(GUI, [src/vw/gui], [], yes, [VW], [QT BOOST_PROGRAM_OPTIONS GL])
38c5e0f @novas0x2a make tools disable-able
novas0x2a authored
314
2d8c298 @novas0x2a Move Python into src/vw so it can be disabled by make dist the same as a...
novas0x2a authored
315 AX_MODULE_PYTHON([src/vw/Python], [no])
e67cafa @novas0x2a here's a crack at integrating the python bindings into the build
novas0x2a authored
316
7f29a19 Minor IRG/Linux portability bugfixes.
Matthew Hancher authored
317 # These are here (instead of inside the MODULE macro where they belong)
318 # for backwards compatability with older versions of automake.
eff0531 Reworked the build system and especially the test system to
Matthew Hancher authored
319 AM_CONDITIONAL(MAKE_MODULE_CORE, [test "$MAKE_MODULE_CORE" = "yes"])
7f29a19 Minor IRG/Linux portability bugfixes.
Matthew Hancher authored
320 AM_CONDITIONAL(MAKE_MODULE_MATH, [test "$MAKE_MODULE_MATH" = "yes"])
eff0531 Reworked the build system and especially the test system to
Matthew Hancher authored
321 AM_CONDITIONAL(MAKE_MODULE_IMAGE, [test "$MAKE_MODULE_IMAGE" = "yes"])
322 AM_CONDITIONAL(MAKE_MODULE_FILEIO, [test "$MAKE_MODULE_FILEIO" = "yes"])
323 AM_CONDITIONAL(MAKE_MODULE_VW, [test "$MAKE_MODULE_VW" = "yes"])
78a3571 Various build system and documentation tweaks.
Matthew Hancher authored
324 AM_CONDITIONAL(MAKE_MODULE_CAMERA, [test "$MAKE_MODULE_CAMERA" = "yes"])
920ff5f Added Image/Algorithms.h, mostly untested, including a
Matthew Hancher authored
325 AM_CONDITIONAL(MAKE_MODULE_MOSAIC, [test "$MAKE_MODULE_MOSAIC" = "yes"])
74d5ad0 Added a Geometry module, to hold things like the convex object code,
Matthew Hancher authored
326 AM_CONDITIONAL(MAKE_MODULE_INTERESTPOINT, [test "$MAKE_MODULE_INTERESTPOINT" = "yes"])
3653ba1 @broxtronix re-integrating the Cartography Module. This is a code import that is
broxtronix authored
327 AM_CONDITIONAL(MAKE_MODULE_CARTOGRAPHY, [test "$MAKE_MODULE_CARTOGRAPHY" = "yes"])
78a3571 Various build system and documentation tweaks.
Matthew Hancher authored
328 AM_CONDITIONAL(MAKE_MODULE_HDR, [test "$MAKE_MODULE_HDR" = "yes"])
329 AM_CONDITIONAL(MAKE_MODULE_STEREO, [test "$MAKE_MODULE_STEREO" = "yes"])
059a0ed @broxtronix Added example config.options files for both IRG and generic distribution...
broxtronix authored
330 AM_CONDITIONAL(MAKE_MODULE_GPU, [test "$MAKE_MODULE_GPU" = "yes"])
2a29bbf @broxtronix After thinking about this some more, I am adding the Geometry module bac...
broxtronix authored
331 AM_CONDITIONAL(MAKE_MODULE_GEOMETRY, [test "$MAKE_MODULE_GEOMETRY" = "yes"])
38c5e0f @novas0x2a make tools disable-able
novas0x2a authored
332 AM_CONDITIONAL(MAKE_MODULE_TOOLS, [test "$MAKE_MODULE_TOOLS" = "yes"])
9e7c4e5 @broxtronix First checkin of \'vwv\', the Vision Workbench Image Viewer. This is th...
broxtronix authored
333 AM_CONDITIONAL(MAKE_MODULE_GUI, [test "$MAKE_MODULE_GUI" = "yes"])
e67cafa @novas0x2a here's a crack at integrating the python bindings into the build
novas0x2a authored
334 AM_CONDITIONAL(MAKE_MODULE_PYTHON, [test "$MAKE_MODULE_PYTHON" = "yes"])
35984ed Partial commit of build system.
Matthew Hancher authored
335
39b0fa7 @broxtronix Added a config flag for changing the target architecture (to support 64-...
broxtronix authored
336
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
337
338 ##################################################
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
339 # final processing
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
340 ##################################################
341
2d8c298 @novas0x2a Move Python into src/vw so it can be disabled by make dist the same as a...
novas0x2a authored
342 VW_CPPFLAGS="-I\${top_srcdir}/src $OTHER_CPPFLAGS"
54183f2 @novas0x2a Mostly sync the macros between vw & stereo. This is good either if we st...
novas0x2a authored
343 VW_LDFLAGS="$OTHER_LDFLAGS"
344
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
345 if test "yes" = "$ENABLE_VERBOSE" ; then
626fcbf @novas0x2a Switch to autoreconf for autogen- it's a little smarter than just callin...
novas0x2a authored
346 AC_MSG_NOTICE([using CPPFLAGS=$CPPFLAGS])
347 AC_MSG_NOTICE([using VW_CPPFLAGS=$VW_CPPFLAGS])
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
348 AC_MSG_NOTICE([using CFLAGS=$CFLAGS])
349 AC_MSG_NOTICE([using CXXFLAGS=$CXXFLAGS])
626fcbf @novas0x2a Switch to autoreconf for autogen- it's a little smarter than just callin...
novas0x2a authored
350 AC_MSG_NOTICE([using LDFLAGS=$LDFLAGS])
351 AC_MSG_NOTICE([using VW_LDFLAGS=$VW_LDFLAGS])
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
352 AC_MSG_NOTICE([using VW_ENABLE_EXCEPTIONS=$ENABLE_EXCEPTIONS])
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
353 fi
354
355 AC_SUBST(VW_CPPFLAGS)
356 AC_SUBST(VW_LDFLAGS)
df782f3 @novas0x2a integrate static scripts, and fix hardcoded path
novas0x2a authored
357 AC_SUBST(LCOV_REMOTE_PATH)
358 AC_SUBST(DEHYDRA_GCC)
359 AC_SUBST(DEHYDRA_PLUGIN)
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
360
35984ed Partial commit of build system.
Matthew Hancher authored
361 ##################################################
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
362 # makefiles to process
35984ed Partial commit of build system.
Matthew Hancher authored
363 ##################################################
364
365 AC_CONFIG_FILES([ \
366 Makefile \
367 src/Makefile \
368 src/vw/Makefile \
2185dbb First steps towards partial view rasterization and
Matthew Hancher authored
369 src/vw/tests/Makefile \
9927df7 Added CMU copyright to source file headers. Added support in the
Matthew Hancher authored
370 src/vw/tools/Makefile \
9e7c4e5 @broxtronix First checkin of \'vwv\', the Vision Workbench Image Viewer. This is th...
broxtronix authored
371 src/vw/gui/Makefile \
35984ed Partial commit of build system.
Matthew Hancher authored
372 src/vw/Core/Makefile \
eff0531 Reworked the build system and especially the test system to
Matthew Hancher authored
373 src/vw/Core/tests/Makefile \
374 src/vw/Math/Makefile \
375 src/vw/Math/tests/Makefile \
35984ed Partial commit of build system.
Matthew Hancher authored
376 src/vw/Image/Makefile \
eff0531 Reworked the build system and especially the test system to
Matthew Hancher authored
377 src/vw/Image/tests/Makefile \
35984ed Partial commit of build system.
Matthew Hancher authored
378 src/vw/FileIO/Makefile \
eff0531 Reworked the build system and especially the test system to
Matthew Hancher authored
379 src/vw/FileIO/tests/Makefile \
6ee7dbe @broxtronix Added in the Camera Module. So far it compiles and passes its (one)
broxtronix authored
380 src/vw/Camera/Makefile \
381 src/vw/Camera/tests/Makefile \
920ff5f Added Image/Algorithms.h, mostly untested, including a
Matthew Hancher authored
382 src/vw/Mosaic/Makefile \
383 src/vw/Mosaic/tests/Makefile \
78a3571 Various build system and documentation tweaks.
Matthew Hancher authored
384 src/vw/Cartography/Makefile \
385 src/vw/Cartography/tests/Makefile \
9f51ac0 Varioius build-system-related tweaks.
Matthew Hancher authored
386 src/vw/HDR/Makefile \
387 src/vw/HDR/tests/Makefile \
78a3571 Various build system and documentation tweaks.
Matthew Hancher authored
388 src/vw/Stereo/Makefile \
389 src/vw/Stereo/tests/Makefile \
059a0ed @broxtronix Added example config.options files for both IRG and generic distribution...
broxtronix authored
390 src/vw/GPU/Makefile \
391 src/vw/GPU/tests/Makefile \
2a29bbf @broxtronix After thinking about this some more, I am adding the Geometry module bac...
broxtronix authored
392 src/vw/Geometry/Makefile \
393 src/vw/Geometry/tests/Makefile \
701ea7a @broxtronix Added a new set of routines for fitting a similarity or homography to
broxtronix authored
394 src/vw/InterestPoint/Makefile \
395 src/vw/InterestPoint/tests/Makefile \
2d8c298 @novas0x2a Move Python into src/vw so it can be disabled by make dist the same as a...
novas0x2a authored
396 src/vw/Python/vw/Makefile \
397 src/vw/Python/Makefile \
35984ed Partial commit of build system.
Matthew Hancher authored
398 ])
399
400 AC_OUTPUT
Something went wrong with that request. Please try again.