Mercurial > hg > index.fcgi > gift-gnutella > gift-gnutella-0.0.11-1pba
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/m4/gift-pkgconfig.m4 Sat Feb 20 21:18:28 2010 -0800 1.3 @@ -0,0 +1,25 @@ 1.4 +############################################################################### 1.5 +## $Id: gift-pkgconfig.m4,v 1.4 2003/09/04 06:56:24 hipnod Exp $ 1.6 +############################################################################### 1.7 + 1.8 +AC_DEFUN([GIFT_PLUGIN_PKGCONFIG], 1.9 + [AC_PATH_PROG(PKG_CONFIG, pkg-config) 1.10 + 1.11 + if test x$prefix != xNONE; then 1.12 + PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$prefix/lib/pkgconfig" 1.13 + fi 1.14 + 1.15 + PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig" 1.16 + export PKG_CONFIG_PATH 1.17 + 1.18 + PKG_CHECK_MODULES([$1], libgift >= $2 libgift < $3) 1.19 + 1.20 + # fudge libgiftproto in there which doesnt have any pkg-config entry 1.21 + AS_VAR_SET($1_LIBS, "AS_VAR_GET($1_LIBS) -lgiftproto") 1.22 + 1.23 + # hack to set libgift_version 1.24 + libgift_version=`pkg-config libgift --modversion` 1.25 + 1.26 + AC_SUBST($1_CFLAGS) 1.27 + AC_SUBST($1_LIBS) 1.28 + ])