+2005-08-24 Erez Zadok <ezk@cs.sunysb.edu>
+
+ * configure.in: wrap all LDAP and HESIOD tests in test whether
+ --with-OPT was used.
+
2005-08-20 Daniel P. Ottavio <dottavio@ic.sunysb.edu>
* amd/sun_map.c: Clean up #defines
* amd/sun_map_parse.y: Removed automap include functionality, it
will need to be re-implemented using a pre-processor.
- Clean up fucntion calls.
-
+ Clean up function calls.
+
2005-08-16 Daniel P. Ottavio <dottavio@ic.sunysb.edu>
* amd/sun2amd.c (sun2amd_convert): If the input line is too long
dnl
dnl AC_CONFIG_AUX_DIR(m4)
AC_PREREQ(2.52)
-AC_REVISION($Revision: 1.111 $)
+AC_REVISION($Revision: 1.112 $)
AC_COPYRIGHT([Copyright (c) 1997-2005 Erez Zadok])
dnl find out system type
AC_MSG_NOTICE(*** SYSTEM TYPES ***)
getpagesize \
gettimeofday \
hasmntopt \
- hes_init \
- hesiod_init \
- hesiod_reload \
- hesiod_to_bind \
hstrerror \
madvise \
memcmp \
wait3 \
waitpid \
)
+dnl optional functions
+if test "$with_hesiod" = "yes"; then
+AC_CHECK_FUNCS( \
+ hes_init \
+ hesiod_init \
+ hesiod_reload \
+ hesiod_to_bind \
+ )
+fi
AC_REPLACE_FUNCS( \
clnt_sperrno \
hasmntopt \
ifaddrs.h \
irs.h \
grp.h \
- hesiod.h \
- lber.h \
- ldap.h \
libgen.h \
limits.h \
malloc.h \
varargs.h \
unistd.h \
)
+dnl optional headers
+if test "$with_ldap" = "yes"; then
+AC_CHECK_HEADERS( \
+ lber.h \
+ ldap.h \
+ )
+fi
+if test "$with_hesiod" = "yes"; then
+AC_CHECK_HEADERS( \
+ hesiod.h \
+ )
+fi
dnl headers which depend on others, else you get an configure error
AC_CHECK_HEADERS([ \
linux/auto_fs.h \
)
dnl Different macro to check for LDAP externs, so as to avoid
dnl breaking the basic extern-checking macro.
+if test "$with_ldap" = "yes"; then
AMU_CHECK_EXTERN_LDAP(ldap_enable_cache)
+fi
dnl ======================================================================
dnl ######################################################################