comparison m4/gift-pkgconfig.m4 @ 0:d39e1d0d75b6

initial add
author paulo@hit-nxdomain.opendns.com
date Sat, 20 Feb 2010 21:18:28 -0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:db8216903281
1 ###############################################################################
2 ## $Id: gift-pkgconfig.m4,v 1.4 2003/09/04 06:56:24 hipnod Exp $
3 ###############################################################################
4
5 AC_DEFUN([GIFT_PLUGIN_PKGCONFIG],
6 [AC_PATH_PROG(PKG_CONFIG, pkg-config)
7
8 if test x$prefix != xNONE; then
9 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$prefix/lib/pkgconfig"
10 fi
11
12 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
13 export PKG_CONFIG_PATH
14
15 PKG_CHECK_MODULES([$1], libgift >= $2 libgift < $3)
16
17 # fudge libgiftproto in there which doesnt have any pkg-config entry
18 AS_VAR_SET($1_LIBS, "AS_VAR_GET($1_LIBS) -lgiftproto")
19
20 # hack to set libgift_version
21 libgift_version=`pkg-config libgift --modversion`
22
23 AC_SUBST($1_CFLAGS)
24 AC_SUBST($1_LIBS)
25 ])