thanks for the quick reply. I tried the following and it still can't find it.
./autogen.sh --with-geany-libs=/usr/local/lib/geany
anyway, isn't this the point of pkgconfig mechanism to provide this sort of thing automatically? Do I need to run some pkgconfig utility or reboot , windows style?