I downloaded and installed the libxls library. Unfortunately it installs by default into $(prefix)/libxls
This means the only way to configure it is like this:
LD_LIBRARY_PATH=/usr/local/libxls/lib/ LDFLAGS=-L/usr/local/libxls/lib
CPPFLAGS=-I/usr/local/libxls/include ./configure
I don't know what the best way to work around this problem. I wish project
maintainers wouldn't do
things like this.
On Wed, Apr 13, 2011 at 09:42:53PM -0700, Ben Pfaff wrote:
Michel, here's a patch for configure.ac that I believe should
allow the configuration process to automatically detect
libxlsreader and link against it if it is found:
diff --git a/configure.ac b/configure.ac
index ac57a2a..55971d6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -221,6 +221,18 @@ if test x"$with_gui_tools" = x"yes" ; then
fi
AM_CONDITIONAL(WITH_GUI_TOOLS, test x"$with_gui_tools" = x"yes")
+dnl Check for libxlsreader.
+AC_SEARCH_LIBS(
+ [xls_open], [xlsreader],
+ [HAVE_LIBXLSREADER=yes],
+ [HAVE_LIBXLSREADER=no
+ PSPP_OPTIONAL_PREREQ([libxlsreader])])
+if test $HAVE_LIBXLSREADER = yes; then
+ AC_DEFINE(
+ [XLS_SUPPORT], [1],
+ [Define to 1 if building in support for reading Excel spreadsheet
files.])
+fi
+
AC_ARG_WITH(
[perl-module],
[AS_HELP_STRING([--without-perl-module], [do not build the Perl
module])],
--
Ben Pfaff
http://benpfaff.org
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.
signature.asc
Description: Digital signature
_______________________________________________ pspp-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/pspp-dev
