summaryrefslogtreecommitdiff
path: root/math/qalculate-bases/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'math/qalculate-bases/patches/patch-ab')
-rw-r--r--math/qalculate-bases/patches/patch-ab39
1 files changed, 34 insertions, 5 deletions
diff --git a/math/qalculate-bases/patches/patch-ab b/math/qalculate-bases/patches/patch-ab
index 5d4bf6c4a20..d582e908aae 100644
--- a/math/qalculate-bases/patches/patch-ab
+++ b/math/qalculate-bases/patches/patch-ab
@@ -1,8 +1,16 @@
-$NetBSD: patch-ab,v 1.1 2006/06/22 18:52:00 jlam Exp $
+$NetBSD: patch-ab,v 1.2 2009/09/06 15:24:38 asau Exp $
---- configure.in.orig 2006-04-18 03:13:35.000000000 -0400
-+++ configure.in
-@@ -54,7 +54,33 @@ if test "x$GCC" = "xyes"; then
+--- configure.in.orig 2006-04-18 11:13:35.000000000 +0400
++++ configure.in 2009-09-06 19:17:39.000000000 +0400
+@@ -24,6 +24,7 @@
+ AC_HEADER_STDC
+ AC_PROG_INTLTOOL
+ AM_PROG_LIBTOOL
++PKG_PROG_PKG_CONFIG
+
+ dnl ------------------------------------
+ dnl | check for compiler characteristics |-------------------------------------
+@@ -54,7 +55,33 @@
fi
changequote([,])dnl
@@ -36,7 +44,28 @@ $NetBSD: patch-ab,v 1.1 2006/06/22 18:52:00 jlam Exp $
dnl --------------------------------
dnl | check for neccessary libraries |-----------------------------------------
dnl --------------------------------
-@@ -89,33 +115,6 @@ PKG_CHECK_MODULES(QALCULATE, [
+@@ -63,11 +90,16 @@
+
+ AC_LANG([C++])
+
+-AC_PATH_CLN(1.1.0, [
+- LIBS="$LIBS $CLN_LIBS"
+- CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS"
++if pkg-config --atleast-version=1.1.0 cln; then
++ CLN_CPPFLAGS="`pkg-config --cflags cln`"
++ CLN_LIBS="`pkg-config --libs cln`"
++ LIBS="$LIBS `pkg-config --libs cln`"
++ CPPFLAGS="$CPPFLAGS `pkg-config --cflags cln`"
+ AC_DEFINE(HAVE_LIBCLN,1,[If CLN can be used])
+-], AC_MSG_ERROR([No suitable installed version of CLN could be found.]))
++else AC_MSG_ERROR([No suitable installed version of CLN could be found.])
++fi
++AC_SUBST(CLN_CPPFLAGS)
++AC_SUBST(CLN_LIBS)
+
+ PKG_CHECK_MODULES(GLIB, [
+ glib-2.0 >= 2.4
+@@ -89,33 +121,6 @@
AC_SUBST(QALCULATE_CFLAGS)
AC_SUBST(QALCULATE_LIBS)