~ubuntu-branches/ubuntu/trusty/3depict/trusty

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): D Haley
  • Date: 2011-12-18 19:33:32 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20111218193332-1motgr3vg9xeh41b
Tags: 0.0.9-1
* Update to upstream 0.0.9 
* Close powerpc bug fixed by 0.0.8-1 (Closes: #655682) 
* Close mgl font parsing bug fixed by mathgl upstream (Closes: #623431)
* Fix unclean source package (Closes: #643039)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT([3Depict], [0.0.7], [mycae@yahoo.com])
 
1
AC_INIT([3Depict], [0.0.9], [mycae@yahoo.com])
2
2
AM_INIT_AUTOMAKE([foreign])
3
3
AC_PROG_CXX
4
4
AC_PROG_CC
22
22
dnl ----------
23
23
AM_OPTIONS_WXCONFIG
24
24
 
25
 
AM_PATH_WXCONFIG(2.5.3, wxWin=1)
 
25
AM_PATH_WXCONFIG(2.6.0, wxWin=1)
26
26
 
27
27
if test "$wxWin" != 1; then
28
28
AC_MSG_ERROR([
32
32
                Please check that wx-config is in path, the directory
33
33
                where wxWidgets libraries are installed (returned by
34
34
                'wx-config --libs' command) is in LD_LIBRARY_PATH or
35
 
                equivalent variable and wxWidgets version is 2.3.4 or above.
 
35
                equivalent variable and wxWidgets version is 2.6.0 or above.
36
36
])
37
37
fi
38
38
 
149
149
 
150
150
#Check for FTGL using custom script.
151
151
dnl ----------
152
 
#AX_CHECK_FTGL() #Not doing anything???
153
 
 
154
 
#AC_SUBST(FTGL_CFLAGS)
155
 
#AC_SUBST(FTGL_LIBS)
156
 
 
157
 
#AC_MSG_RESULT([FTGL_LIBS Set to be $FTGL_LIBS])
158
 
#AC_MSG_ERROR([Aborting FTGL_LIBS is $FTGL_LIBS])
159
 
FTGL_LIBS="-lftgl"
 
152
AX_CHECK_FTGL() #Not doing anything???
 
153
 
 
154
AC_SUBST(FTGL_CFLAGS)
160
155
AC_SUBST(FTGL_LIBS)
 
156
 
161
157
dnl ----------
162
158
 
163
159
#Check for qhull
238
234
#Check for opengl
239
235
#------------
240
236
 
241
 
AC_MSG_CHECKING([for GLU library])
242
237
 
243
238
#Try linking against gluSphere windows usese -lglu32; mac?? ; linux -lGLU
244
239
case "${host_os}" in 
264
259
 
265
260
#Check for Mathgl
266
261
dnl ----------
 
262
 
 
263
AC_ARG_WITH(mgl-flags,
 
264
  [  --with-mgl-flags=PATH : specify compiler flags for mathgl])
 
265
if test x"$with_mgl_flags" != x"" ; then
 
266
        MGL_CFLAGS="$with_mgl_flags"
 
267
fi
 
268
 
 
269
AC_ARG_WITH(mgl-libs,
 
270
  [  --with-mgl-libs=PATH : specify linker flag (library) for mathgl])
 
271
if test x"$with_mgl_libs" != x"" ; then
 
272
        MGL_LIBS="$with_mgl_libs"
 
273
        AC_SUBST(MGL_LIBS)
 
274
else
 
275
        AC_SUBST(MGL_LIBS,[-lmgl])
 
276
fi
 
277
 
267
278
AC_CHECK_HEADER([mgl/mgl_c.h],[AC_DEFINE(HAVE_MGL_H,[],[Have got mathgl headers])],
268
 
        [AC_MSG_ERROR([Required MathGL headers not found (looking for mgl/mg_c.h])])
269
 
 
270
 
AC_SUBST(MGL_LIBS,[-lmgl])
 
279
        [AC_MSG_ERROR([Required MathGL headers not found (looking for mgl/mg_c.h) - is mathgl developement scode installed?])])
271
280
 
272
281
dnl -------
273
282
 
285
294
if test x"$with_gsl_libs" != x"" ; then
286
295
    GSL_LIBS="$with_gsl_libs"
287
296
else
288
 
        AX_PATH_GSL( GSL_VERSION, [],[AC_MSG_WARN(["Could not find GNU Scientific Library.. You should install this, as it is needed by mathgl. Otherwise, you can override it with --with-gsl-link and --with-gsl-flags. For example you might use the gsl-config program to spit out the needed libs."])])
 
297
        AX_PATH_GSL([1.1],[],[AC_MSG_WARN(["Could not find GNU Scientific Library.. You should install this, as it is needed by mathgl. Otherwise, you can override it with --with-gsl-link and --with-gsl-flags. For example you might use the gsl-config program to spit out the needed libs."])])
289
298
fi
290
299
 
291
300
dnl -----------
327
336
dnl -----------------
328
337
 
329
338
 
330
 
# Check for hpmc isosurface shader library  enable
331
 
#http://www.sintef.no/Projectweb/Heterogeneous-Computing/
332
 
# Research-Topics/Marching-Cubes-using-Histogram-Pyramids/
333
 
#----------
334
 
 
335
 
#AC_CHECK_HEADER([hpmc/hpmc.h],[AC_DEFINE(HPMC_GPU_ISOSURFACE,[],[Have HPMC isosurface headers. using])],
336
 
#       [AC_MSG_WARN([=================================Unable to find GPU isosurface shader library HPMC -- will use much slower CPU method=================])])
337
 
 
338
 
#-----------
339
 
 
340
339
#Should we compile with openMP?
341
340
AC_ARG_ENABLE(openmp-parallel,
342
 
  [  --enable-openmp-parallel  Enable OpenMP multi-CPU usage; requires GCC > 4.2 for paralell STL support ])
 
341
  [  --enable-openmp-parallel  Enable OpenMP multi-CPU usage; requires GCC > 4.2 for parallel STL support ])
343
342
#Should we enable or disable debug checking?
344
343
AC_ARG_ENABLE(debug-checks,
345
 
  [  --disable-debug-checks Disable any debug checking, provides faster operation, but less information needed to debug internal problems, or to provide problem reports to developers ],[],[enable_no_debug_checks==""])
 
344
  [  --disable-debug-checks Disable any debug checking, provides faster operation, but less information needed to debug internal problems, or to provide problem reports to developers ],[enable_no_debug_checks="yes"],[enable_no_debug_checks="no"])
346
345
 
347
346
 
348
347
if test x"$enable_openmp_parallel" != x"" ; 
351
350
        AC_SUBST(OPENMP_FLAGS)
352
351
fi
353
352
 
354
 
if test x"$enable_no_debug_checks" != x"yes" ; 
 
353
if test x"$enable_debug_checks" != x"no" ; 
355
354
then
356
 
        DEBUG_FLAGS="-DDEBUG"
 
355
        if test x"$enable_openmp_parallel" != x"" ;
 
356
        then
 
357
                #Note that GLIBCXX_DEBUG cannot exist with GLIBCXX_PARALLEL
 
358
                DEBUG_FLAGS="-DDEBUG"
 
359
        else
 
360
                DEBUG_FLAGS="-DDEBUG -D_GLIBCXX_DEBUG"
 
361
        fi
357
362
        AC_SUBST(DEBUG_FLAGS)
 
363
else 
 
364
        if test x"$enable_debug_checks" !=x"yes" ;
 
365
        then
 
366
                AC_MSG_ERROR(["Well something isnt right, debug checks should be enabled or disabled (yes/no"])
 
367
        fi
358
368
fi
359
369
 
360
370
# Checks for typedefs, structures, and compiler characteristics.