[Pkg-wmaker-commits] [wmforecast] 02/10: Use pkg-config for WINGs.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Mar 26 23:16:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmforecast.

commit aa0d85b73b06ee444415fdaef5df0ca1539e3b9f
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Tue Feb 23 23:01:26 2016 -0500

    Use pkg-config for WINGs.
---
 Makefile.am  | 4 ++--
 configure.ac | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 52446cb..2fe4896 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,9 +3,9 @@ bin_PROGRAMS = wmforecast
 wmforecast_SOURCES = wmforecast.c
 dist_man_MANS = wmforecast.1
 
-AM_CFLAGS = $(libxml2_CFLAGS) $(libcurl_CFLAGS) $(X11_CFLAGS)
+AM_CFLAGS = $(libxml2_CFLAGS) $(libcurl_CFLAGS) $(X11_CFLAGS) $(WINGs_CFLAGS)
 AM_CPPFLAGS =  -DDATADIR=\"$(pkgdatadir)\"
-LIBS += $(libxml2_LIBS) $(libcurl_LIBS) $(X11_LIBS) -lWINGs -lwraster -lWUtil
+LIBS += $(libxml2_LIBS) $(libcurl_LIBS) $(X11_LIBS) $(WINGs_LIBS)
 
 desktopdir = $(datadir)/applications
 dist_desktop_DATA = wmforecast.desktop
diff --git a/configure.ac b/configure.ac
index d5c668b..28a8077 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,7 +6,7 @@ AC_PROG_CC
 PKG_CHECK_MODULES([libxml2],[libxml-2.0])
 PKG_CHECK_MODULES([libcurl],[libcurl])
 PKG_CHECK_MODULES([X11],[x11])
-AC_CHECK_LIB(WINGs,WMCreateWindow)
+PKG_CHECK_MODULES([WINGs],[WINGs])
 AC_SUBST(DATE, "esyscmd(head -n 1 ChangeLog | cut -d' ' -f1 | tr -d '\n')")
 AC_CONFIG_FILES([Makefile icons/Makefile wmforecast.1])
 AC_OUTPUT

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmforecast.git



More information about the Pkg-wmaker-commits mailing list