paulo@0: ############################################################################### paulo@0: ## $Id: gift-pkgconfig.m4,v 1.4 2003/09/04 06:56:24 hipnod Exp $ paulo@0: ############################################################################### paulo@0: paulo@0: AC_DEFUN([GIFT_PLUGIN_PKGCONFIG], paulo@0: [AC_PATH_PROG(PKG_CONFIG, pkg-config) paulo@0: paulo@0: if test x$prefix != xNONE; then paulo@0: PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$prefix/lib/pkgconfig" paulo@0: fi paulo@0: paulo@0: PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig" paulo@0: export PKG_CONFIG_PATH paulo@0: paulo@0: PKG_CHECK_MODULES([$1], libgift >= $2 libgift < $3) paulo@0: paulo@0: # fudge libgiftproto in there which doesnt have any pkg-config entry paulo@0: AS_VAR_SET($1_LIBS, "AS_VAR_GET($1_LIBS) -lgiftproto") paulo@0: paulo@0: # hack to set libgift_version paulo@0: libgift_version=`pkg-config libgift --modversion` paulo@0: paulo@0: AC_SUBST($1_CFLAGS) paulo@0: AC_SUBST($1_LIBS) paulo@0: ])