annotate 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
rev   line source
paulo@0 1 ###############################################################################
paulo@0 2 ## $Id: gift-prefix.m4,v 1.2 2004/01/04 07:35:13 hipnod Exp $
paulo@0 3 ###############################################################################
paulo@0 4
paulo@0 5 AC_DEFUN([GIFT_PLUGIN_CHECK_PREFIX],[
paulo@0 6 libgift_prefix=`pkg-config --variable=prefix libgift`
paulo@0 7
paulo@0 8 gift_plugin_prefix=$prefix
paulo@0 9 if test x"$prefix" = xNONE; then
paulo@0 10 gift_plugin_prefix=/usr/local
paulo@0 11 fi
paulo@0 12
paulo@0 13 if test x"$libgift_prefix" != x"$gift_plugin_prefix"; then
paulo@0 14 AC_MSG_WARN([
paulo@0 15 You are trying to install in $gift_plugin_prefix, but I only
paulo@0 16 detected a giFT installation in $libgift_prefix.
paulo@0 17 You may be installing in the wrong place.
paulo@0 18
paulo@0 19 You should probably supply --prefix=$libgift_prefix
paulo@0 20 to configure. Or, if you have a giFT installation in
paulo@0 21 $gift_plugin_prefix, you could add ${gift_plugin_prefix}/lib/pkgconfig
paulo@0 22 to the PKG_CONFIG_PATH environment variable, so I can detect it.
paulo@0 23 ])
paulo@0 24 fi
paulo@0 25 ])