summaryrefslogtreecommitdiff
blob: 3670830bf86f6fa7ce2dd58927ebbb14228e2696 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- a/configure.ac
+++ b/configure.ac
@@ -7,6 +7,7 @@
 AC_PROG_INSTALL
 AC_PROG_CC
 AC_PROG_RANLIB
+PKG_PROG_PKG_CONFIG
 
 AC_ARG_VAR(XRDB_PATH, [Path to xrdb program from X])
 AC_PATH_PROG(XRDB_PATH, xrdb)
@@ -153,15 +154,11 @@
 	],,[$XLDFLAGS $XLIBS])
 fi
 
-dnl		WINGs support
-AC_CHECK_PROG(GETWINGSFLAGS,get-wings-flags,get-wings-flags,,[$PATH])
-if test -z "$GETWINGSFLAGS"; then
-	AC_MSG_ERROR(['get-wings-flags' command was not found in \$PATH, please upgrade your WindowMaker.])
-fi
+PKG_CHECK_MODULES(WINGS, WINGs,,[AC_MSG_ERROR([WINGs not found])])
 
-WCFLAGS=`get-wings-flags --cflags`
-WLDFLAGS=`get-wings-flags --ldflags`
-WLIBS=`get-wings-flags --libs`
+WCFLAGS="$WINGS_CFLAGS"
+WLDFLAGS="$WINGS_LDFLAGS"
+WLIBS="$WINGS_LIBS"
 
 AC_SUBST(XLIBS)
 AC_SUBST(XCFLAGS)