mirror of https://git.code.sf.net/p/isync/isync
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
855 B
27 lines
855 B
AC_INIT(isync.h) |
|
AM_INIT_AUTOMAKE(isync,0.8) |
|
AM_PROG_CC_STDC |
|
AC_ARG_WITH(ssl-dir, [ --with-ssl-dir=DIR location where openssl is insalled], |
|
[if test -d $withval/lib; then |
|
LIBS="$LIBS -L$withval/lib" |
|
CFLAGS="$CFLAGS -I$withval/include" |
|
else |
|
AC_MSG_ERROR(can't find OpenSSL in $withval) |
|
fi]) |
|
AC_ARG_ENABLE(debug, [ --enable-debug enable memory debugging |
|
code], |
|
[AC_DEFINE(DEBUG), |
|
DEBUGOBJ=debug.o], |
|
[DEBUGOBJ='']) |
|
AC_SUBST(DEBUGOBJ) |
|
AC_CHECK_FUNCS(getopt_long) |
|
AC_CHECK_LIB(socket,socket) |
|
AC_CHECK_LIB(nsl,inet_ntoa) |
|
AC_CHECK_LIB(crypto,ERR_error_string) |
|
AC_CHECK_LIB(ssl,SSL_library_init) |
|
AC_CHECK_LIB(db,db_create) |
|
dnl test for gcc. use the prefix so we know that gcc-3.0 is also gcc |
|
if test `echo $CC | sed 's/^gcc.*/gcc/'` = gcc; then |
|
CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wmissing-prototypes" |
|
fi |
|
AC_OUTPUT(Makefile debian/Makefile)
|
|
|