Mercurial > hg > index.fcgi > gift-gnutella > gift-gnutella-0.0.11-1pba
view 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 |
line source
1 ###############################################################################
2 ## $Id: gift-pkgconfig.m4,v 1.4 2003/09/04 06:56:24 hipnod Exp $
3 ###############################################################################
5 AC_DEFUN([GIFT_PLUGIN_PKGCONFIG],
6 [AC_PATH_PROG(PKG_CONFIG, pkg-config)
8 if test x$prefix != xNONE; then
9 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$prefix/lib/pkgconfig"
10 fi
12 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
13 export PKG_CONFIG_PATH
15 PKG_CHECK_MODULES([$1], libgift >= $2 libgift < $3)
17 # fudge libgiftproto in there which doesnt have any pkg-config entry
18 AS_VAR_SET($1_LIBS, "AS_VAR_GET($1_LIBS) -lgiftproto")
20 # hack to set libgift_version
21 libgift_version=`pkg-config libgift --modversion`
23 AC_SUBST($1_CFLAGS)
24 AC_SUBST($1_LIBS)
25 ])