[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."])])
# [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.