aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-06-20 12:27:57 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-06-20 12:27:57 +0000
commit2fbf7bcbea6e6db78a1b3cacc3e8371a1db2d599 (patch)
tree363fa12bf304d7384295c18b6134f15a8650134d /configure.in
parent8bfa1889ebdbff232d567a761ea1ec8d32c18e52 (diff)
downloadfetchmail-2fbf7bcbea6e6db78a1b3cacc3e8371a1db2d599.tar.gz
fetchmail-2fbf7bcbea6e6db78a1b3cacc3e8371a1db2d599.tar.bz2
fetchmail-2fbf7bcbea6e6db78a1b3cacc3e8371a1db2d599.zip
Fix HESIOD compile failure on FreeBSD 5-CURRENT,
adding a new macro that is based on ac_caolan_search_package from the autoconf macro archive. Mention +HESIOD in fetchmail -V if compiled in. svn path=/trunk/; revision=3912
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in32
1 files changed, 3 insertions, 29 deletions
diff --git a/configure.in b/configure.in
index bfe28303..02955a7d 100644
--- a/configure.in
+++ b/configure.in
@@ -626,34 +626,7 @@ then
fi])
### use option --with-hesiod=DIR to point at a HESIOD directory
-AC_ARG_WITH(hesiod,
- [ --with-hesiod=DIR point fetchmail compilation at a HESIOD directory])
-
-case "x$with_hesiod" in
-xno)
- ;;
-x)
- for dir in /usr/athena /usr /usr/local
- do
- if test -f "$dir/include/hesiod.h"
- then
- CEFLAGS="$CEFLAGS -DHESIOD"
- test "$dir" != "/usr" && CEFLAGS="$CEFLAGS -I$dir/include"
- LDEFLAGS="$LDEFLAGS -L$dir/lib"
- LIBS="$LIBS -lhesiod"
- with_hesiod=$dir
- break
- fi
- done
- ;;
-*)
- # Path given
- CEFLAGS="$CEFLAGS -DHESIOD"
- test "$with_hesiod" != "/usr" && CEFLAGS="$CEFLAGS -I$with_hesiod/include"
- LDEFLAGS="$LDEFLAGS -L$with_hesiod/lib"
- LIBS="$LIBS -lhesiod"
- ;;
-esac
+AC_ma_SEARCH_PACKAGE(hesiod, hesiod_getmailhost, /usr/athena /usr /usr/local,hesiod, hesiod.h)
### use option --with-gssapi=DIR to compile in GSSAPI support
AC_ARG_WITH(gssapi,
@@ -700,7 +673,8 @@ AC_SUBST(CPFLAGS)
AC_SUBST(CEFLAGS)
AC_SUBST(LDEFLAGS)
-AC_CONFIG_FILES([Makefile po/Makefile.in m4/Makefile intl/Makefile ])
+AC_CONFIG_FILES([Makefile m4/Makefile m4-local/Makefile
+ po/Makefile.in intl/Makefile])
AC_OUTPUT
dnl Local Variables: