From b6ebce9d7741b58fa5a50fe3e74ef7e3a2003772 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 20 Jan 2010 15:42:08 +0100 Subject: Add --with-gsl configure option --- configure.ac | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index cce0fc00..49a90a8a 100644 --- a/configure.ac +++ b/configure.ac @@ -24,13 +24,19 @@ AC_ARG_WITH(hdf5, HDF5_LIBS="-L$withval/lib -lhdf5"], [HDF5_LIBS="-lhdf5"]) +AC_ARG_WITH(gsl, +[AS_HELP_STRING([--with-gsl], [specify location of GSL])], +[GSL_CFLAGS="-I$withval/include" + GSL_LIBS="-L$withval/lib -lgsl -lgslcblas"], +[GSL_LIBS="-lgsl -lgslcblas"]) + havegtk=false AM_PATH_GTK_2_0(2.0.0, havegtk=true, AC_MSG_WARN([GTK not found. hdfsee will not be built.])) AM_CONDITIONAL([HAVE_GTK], test x$havegtk = xtrue) -CFLAGS="$CFLAGS $HDF5_CFLAGS $GTK_CFLAGS" -LIBS="$LIBS $HDF5_LIBS -lm -lz -lgsl -lgslcblas $GTK_LIBS -lgthread-2.0 -lutil" +CFLAGS="$CFLAGS $HDF5_CFLAGS $GTK_CFLAGS $GSL_CFLAGS" +LIBS="$LIBS $HDF5_LIBS -lm -lz $GSL_LIBS $GTK_LIBS -lgthread-2.0 -lutil" AC_OUTPUT(Makefile src/Makefile data/Makefile) -- cgit v1.2.3