This commit is contained in:
Oswald Buddenhagen 2003-05-05 13:41:04 +00:00
parent 38d46cc03e
commit 958e74dfc8

View File

@ -1,19 +1,19 @@
AC_INIT(src/isync.h) AC_INIT(src/isync.h)
AM_INIT_AUTOMAKE(isync,0.9) AM_INIT_AUTOMAKE(isync,0.9)
AM_PROG_CC_STDC AM_PROG_CC_STDC
AC_ARG_WITH(ssl-dir, [ --with-ssl-dir=DIR location where openssl is insalled], if test "$GCC" = yes; then
CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wmissing-prototypes"
fi
AC_ARG_WITH(ssl-dir, [ --with-ssl-dir=DIR location where OpenSSL is installed],
[if test -d $withval/lib; then [if test -d $withval/lib; then
LIBS="$LIBS -L$withval/lib" LIBS="$LIBS -L$withval/lib"
CFLAGS="$CFLAGS -I$withval/include" CFLAGS="$CFLAGS -I$withval/include"
else else
AC_MSG_ERROR(can't find OpenSSL in $withval) AC_MSG_ERROR(can't find OpenSSL in $withval)
fi]) 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_FUNCS(getopt_long)
AC_CHECK_LIB(socket,socket) AC_CHECK_LIB(socket,socket)
AC_CHECK_LIB(nsl,inet_ntoa) AC_CHECK_LIB(nsl,inet_ntoa)
@ -43,8 +43,4 @@ if test $ac_cv_dbmopen = no; then
fi fi
fi fi
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 src/Makefile debian/Makefile isync.spec) AC_OUTPUT(Makefile src/Makefile debian/Makefile isync.spec)