diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-09-11 17:58:20 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-09-11 17:58:20 +0000 |
commit | 55a936b937b8be7d764f808eb33a0a706f6f0842 (patch) | |
tree | d86124e92c95aeb7bbe81bbd4ec890cabf11abab /m4-local | |
parent | 9217194b5b6218d054735d7193d4638092f65c88 (diff) | |
download | fetchmail-55a936b937b8be7d764f808eb33a0a706f6f0842.tar.gz fetchmail-55a936b937b8be7d764f808eb33a0a706f6f0842.tar.bz2 fetchmail-55a936b937b8be7d764f808eb33a0a706f6f0842.zip |
Fixes to --with-hesiod option. Sunil Shetye.
svn path=/trunk/; revision=4287
Diffstat (limited to 'm4-local')
-rw-r--r-- | m4-local/ac_ma_search_package.m4 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/m4-local/ac_ma_search_package.m4 b/m4-local/ac_ma_search_package.m4 index 197f76c4..5f3c8b11 100644 --- a/m4-local/ac_ma_search_package.m4 +++ b/m4-local/ac_ma_search_package.m4 @@ -62,17 +62,20 @@ if test "${with_$1}" != no ; then $1_libdir=$i/lib fi + if ! test -f "${$1_include}/$5" -a -d "${$1_libdir}" ; then + continue + fi + OLD_LIBS=$LIBS OLD_LDFLAGS=$LDFLAGS OLD_CFLAGS=$CFLAGS OLD_CPPFLAGS=$CPPFLAGS - if test "${$1_libdir}" ; then + if test -n "${$1_libdir}" -a "${$1_libdir}" != /usr/lib ; then LDFLAGS="$LDFLAGS -L${$1_libdir}" fi - if test "${$1_include}" ; then + if test -n "${$1_include}" -a "${$1_include}" != /usr/include ; then CPPFLAGS="$CPPFLAGS -I${$1_include}" - CFLAGS="$CFLAGS -I${$1_include}" fi success=no |