WIN32-Prj/signal_test/signal_test.dsp WIN32-Prj/time_test \
WIN32-Prj/time_test/time_test.dsp
-lib_LIBRARIES = libevent.a
+lib_LTLIBRARIES = libevent.la
-libevent_a_SOURCES = event.c buffer.c evbuffer.c log.c
-libevent_a_LIBADD = @LIBOBJS@
+libevent_la_SOURCES = event.c buffer.c evbuffer.c log.c
+libevent_la_LIBADD = @LTLIBOBJS@
+libevent_la_LDFLAGS = -release @VERSION@ -version-info 1:2:0
include_HEADERS = event.h
dnl Checks for programs.
AC_PROG_CC
-AC_PROG_RANLIB
AC_PROG_INSTALL
AC_PROG_LN_S
CFLAGS="$CFLAGS -Wall"
fi
+AC_PROG_LIBTOOL
+
+dnl Uncomment "AC_DISABLE_SHARED" to make shared librraries not get
+dnl built by default. You can also turn shared libs on and off from
+dnl the command line with --enable-shared and --disable-shared.
+dnl AC_DISABLE_SHARED
+AC_SUBST(LIBTOOL_DEPS)
dnl Check for optional stuff
AC_ARG_WITH(rtsig,
AUTOMAKE_OPTIONS = foreign no-dependencies
-LDADD = -L.. -levent
+LDADD = ../libevent.la
CPPFPLAGS = -I..
CFLAGS = -I../compat @CFLAGS@
verify: test
@./test.sh
-bench test-init test-eof test-weof test-time regress: ../libevent.a
+bench test-init test-eof test-weof test-time regress: ../libevent.la