aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-20 15:42:08 +0100
committerThomas White <taw@physics.org>2010-01-20 15:42:08 +0100
commitb6ebce9d7741b58fa5a50fe3e74ef7e3a2003772 (patch)
treefd79eecf91073a6aa26d540ed55db01bc00a15d9
parent282704c766fa6aefb716f0c09f78a8c46b9f85bb (diff)
Add --with-gsl configure option
-rw-r--r--configure.ac10
1 files 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)