isync/configure.in

50 lines
1.2 KiB
Plaintext
Raw Normal View History

AC_INIT(src/isync.h)
AM_CONFIG_HEADER(config.h)
2003-12-07 15:09:53 +00:00
AM_INIT_AUTOMAKE(isync, 0.9.2)
2003-05-05 13:41:04 +00:00
2000-12-20 21:41:21 +00:00
AM_PROG_CC_STDC
2003-05-05 13:41:04 +00:00
if test "$GCC" = yes; then
CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wmissing-prototypes"
2003-05-05 13:41:04 +00:00
fi
AC_CHECK_FUNCS(getopt_long)
AC_CHECK_LIB(socket, socket)
AC_CHECK_LIB(nsl, inet_ntoa)
ssl=false
AC_ARG_WITH(ssl,
[ --with-ssl=DIR yes/no/OpenSSL installation root [detect]],
[ob_cv_with_ssl=$withval])
if test "x$ob_cv_with_ssl" != xno; then
if test -d "$ob_cv_with_ssl/lib"; then
CPFLAGS="$CPPFLAGS -I$ob_cv_with_ssl/include"
LDFLAGS="$LDFLAGS -L$ob_cv_with_ssl/lib"
fi
AC_CHECK_LIB(crypto, ERR_error_string, [cryptolib=" -lcrypto"])
AC_CHECK_LIB(ssl, SSL_library_init, [
LIBS="-lssl$cryptolib $LIBS"
AC_DEFINE(HAVE_LIBSSL, 1, [Define if you want SSL support])
ssl=true
],[
if test -n "$ob_cv_with_ssl"; then
AC_MSG_ERROR([can't find OpenSSL])
fi
])
fi
2002-01-28 19:34:22 +00:00
AC_CHECK_LIB(db, db_create, [LIBS="$LIBS -ldb"], [AC_MSG_ERROR([Berkley DB not found.])])
AC_CHECK_HEADER(db.h, , [AC_MSG_ERROR([Berkley DB header file not found.])])
2002-01-28 19:34:22 +00:00
AC_OUTPUT(Makefile src/Makefile debian/Makefile isync.spec)
if $ssl; then
AC_MSG_RESULT([
Using SSL
])
else
AC_MSG_RESULT([
Not using SSL
])
fi