Root/gjay/patches/0007-Use-pkg-config-to-check-for-libraries-wherever-possi.patch

Source at commit 1b3135c created 9 years 10 days ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
1From bf07d7e3771166d0913e005b6835f534a302741e Mon Sep 17 00:00:00 2001
2From: Joshua Judson Rosen <rozzin@geekspace.com>
3Date: Tue, 26 Apr 2011 23:15:35 -0400
4Subject: [PATCH 07/17] Use pkg-config to check for libraries wherever possible.
5 Some embedded environments ship pkg-config files but not the `*-config' scripts, so this should be more portable.
6
7---
8 configure.ac | 5 +++--
9 1 files changed, 3 insertions(+), 2 deletions(-)
10
11diff --git a/configure.ac b/configure.ac
12index 62273bd..ad72ece 100644
13--- a/configure.ac
14+++ b/configure.ac
15@@ -43,14 +43,15 @@ AM_GNU_GETTEXT([external])
16 AM_GNU_GETTEXT_VERSION([0.18.1])
17 
18 # Checks for libraries.
19-AM_PATH_GTK_2_0
20+PKG_CHECK_MODULES([GTK], [gtk+-2.0])
21 
22 if test "$enable_dbus" = "yes"; then
23   AC_DEFINE([WITH_DBUSGLIB], [1], [Build with dbus-glib])
24   PKG_CHECK_MODULES([DBUS_GLIB], [dbus-glib-1])
25 fi
26 
27-AX_PATH_GSL
28+PKG_CHECK_MODULES([GSL], [gsl])
29+
30 dnl AC_CHECK_LIB([audclient], [audacious_remote_playlist])
31 AC_CHECK_LIB([dl], [dlopen])
32 
33--
341.7.2.5
35
36

Archive Download this file



interactive