--- configure.ac 2001/09/04 09:46:06 1.8
+++ configure.ac 2001/09/05 09:10:28 1.9
@@ -44,14 +44,34 @@
AC_CHECK_LIB(nsl, gethostbyname)
AC_CHECK_FUNCS(inet_pton inet_aton)
-dnl # check for external Str library
-AC_CHECK_EXTLIB([Generic String Library],
- str, str_parse, str.h, ,
- [AC_MSG_RESULT(not found)
- AC_MSG_ERROR([lmtp2nntp requires libstr!])])
+dnl # check for Str library
+AC_CHECK_EXTLIB([OSSP Str],
+ str, str_parse, str.h,
+ [SUBDIR_STR=""],
+ [SUBDIR_STR="str"
+ CPPFLAGS="$CPPFLAGS -Istr"
+ CFLAGS="$CFLAGS -Istr"
+ LDFLAGS="$LDFLAGS -Lstr/.libs"
+ LIBS="$LIBS -lstr"])
+AC_SUBST(SUBDIR_STR)
+
+dnl # check for L2 library
+AC_CHECK_EXTLIB([OSSP L2],
+ l2, l2_stream_log, l2.h,
+ [SUBDIR_L2=""],
+ [SUBDIR_L2="l2"
+ CPPFLAGS="$CPPFLAGS -Il2"
+ CFLAGS="$CFLAGS -Il2"
+ LDFLAGS="$LDFLAGS -Ll2/.libs"
+ LIBS="$LIBS -ll2"])
+AC_SUBST(SUBDIR_L2)
dnl # check for external Dmalloc library
-AC_CHECK_EXTLIB([Dmalloc Library], dmalloc, dmalloc_debug, dmalloc.h, AC_DEFINE(DMALLOC))
+AC_CHECK_EXTLIB([Dmalloc], dmalloc, dmalloc_debug, dmalloc.h, AC_DEFINE(DMALLOC))
+
+enable_shared=no
+export enable_shared
+AC_CONFIG_SUBDIRS($SUBDIR_STR $SUBDIR_L2)
dnl # standard output generation
AC_CONFIG_HEADERS(config.h)
|