This is the mail archive of the
gsl-discuss@sourceware.cygnus.com
mailing list for the GSL project.
I had a dream
- To: gsl-discuss at sourceware dot cygnus dot com
- Subject: I had a dream
- From: cgabriel at linux dot it (Christopher R. Gabriel)
- Date: 11 Apr 2000 05:47:54 +0200
Hi. I've wrote this small patch for gsl to have a nicer use of the library
in apps that uses GNU autotools.
The gsl.m4 file (too big for the list, I suppose) is available at:
http://www.firenze.linux.it/~cgabriel/gsl.m4
Could this stuff be added to the next GSL release? I already use this
in my library that depends on GSL. It'll make easier to use the
library, using something like (in configure.in) :
AM_PATH_GSL(0.5.0, ,
AC_MSG_ERROR(Can't find the Gnu Scientific Library: is gsl-config
in path?))
Regards
Christopher R. Gabriel
Index: configure.in
===================================================================
RCS file: /cvs/gsl/gsl/configure.in,v
retrieving revision 1.91
diff -u -r1.91 configure.in
--- configure.in 2000/04/04 23:06:01 1.91
+++ configure.in 2000/04/11 03:37:56
@@ -1,7 +1,11 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(gsl_math.h)
-AM_INIT_AUTOMAKE(gsl,0.5+)
+GSL_MAJOR=0
+GSL_MINOR=5
+GSL_MICRO=0
+GSL_VERSION="${GSL_MAJOR}.${GSL_MINOR}.${GSL_MICRO}"
+AM_INIT_AUTOMAKE(gsl,${GSL_VERSION})
AM_CONFIG_HEADER(config.h)
dnl things required by automake
@@ -212,7 +216,7 @@
# Now restore our (possibly augmented) CFLAGS.
CFLAGS="$save_cflags"
GSL_CFLAGS="$CFLAGS -I$prefix/include/gsl"
-GSL_LIBS="-L$prefix/lib/gsl -lgsl"
+GSL_LIBS="-L$prefix/lib -lgsl"
AC_SUBST(GSL_CFLAGS)
AC_SUBST(GSL_LIBS)
Index: Makefile.am
===================================================================
RCS file: /cvs/gsl/gsl/Makefile.am,v
retrieving revision 1.93
diff -u -r1.93 Makefile.am
--- Makefile.am 2000/03/15 12:02:08 1.93
+++ Makefile.am 2000/04/11 03:37:56
@@ -9,7 +9,10 @@
bin_SCRIPTS = gsl-config
pkginclude_HEADERS = gsl_math.h gsl_machine.h gsl_mode.h
gsl_precision.h
-EXTRA_DIST = autogen.sh gsl-config.in configure.in THANKS
KNOWN-PROBLEMS gsl.spec
+EXTRA_DIST = autogen.sh gsl-config.in configure.in THANKS
KNOWN-PROBLEMS gsl.spec gsl.m4
+
+m4datadir = $(datadir)/aclocal
+m4data_DATA = gsl.m4
lib_LTLIBRARIES = libgsl.la
libgsl_la_SOURCES = version.c