Mercurial > hg > index.fcgi > gift-gnutella > gift-gnutella-0.0.11-1pba
diff m4/gift-prefix.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-prefix.m4 Sat Feb 20 21:18:28 2010 -0800 1.3 @@ -0,0 +1,25 @@ 1.4 +############################################################################### 1.5 +## $Id: gift-prefix.m4,v 1.2 2004/01/04 07:35:13 hipnod Exp $ 1.6 +############################################################################### 1.7 + 1.8 +AC_DEFUN([GIFT_PLUGIN_CHECK_PREFIX],[ 1.9 + libgift_prefix=`pkg-config --variable=prefix libgift` 1.10 + 1.11 + gift_plugin_prefix=$prefix 1.12 + if test x"$prefix" = xNONE; then 1.13 + gift_plugin_prefix=/usr/local 1.14 + fi 1.15 + 1.16 + if test x"$libgift_prefix" != x"$gift_plugin_prefix"; then 1.17 + AC_MSG_WARN([ 1.18 + You are trying to install in $gift_plugin_prefix, but I only 1.19 + detected a giFT installation in $libgift_prefix. 1.20 + You may be installing in the wrong place. 1.21 + 1.22 + You should probably supply --prefix=$libgift_prefix 1.23 + to configure. Or, if you have a giFT installation in 1.24 + $gift_plugin_prefix, you could add ${gift_plugin_prefix}/lib/pkgconfig 1.25 + to the PKG_CONFIG_PATH environment variable, so I can detect it. 1.26 +]) 1.27 + fi 1.28 +])