Permalink
Browse files

Updates to allow for building libfko as a shared lib. (make use of li…

…btool).

git-svn-id: file:///home/mbr/svn/fwknop/trunk@17 510a4753-2344-4c79-9c09-4d669213fbeb
  • Loading branch information...
1 parent 6c70a69 commit e113cb7e8ab3e6f06b014efcbfd39ca076dbece0 Damien Stuart committed Dec 25, 2008
Showing with 9 additions and 5 deletions.
  1. +1 −1 autogen.sh
  2. +4 −1 configure.ac
  3. +3 −2 fko/Makefile.am
  4. +1 −1 src/Makefile.am
View
@@ -5,7 +5,7 @@
# Run this script to generate all the initial makefiles, etc.
#
aclocal -I config
-libtoolize --automake
+libtoolize --automake --copy --force
autoheader
automake --add-missing --copy --foreign
autoconf
View
@@ -19,12 +19,15 @@ AC_GNU_SOURCE
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX
-AC_PROG_RANLIB
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
+#--DSS
+#AC_PROG_RANLIB
+AC_PROG_LIBTOOL
+
# Checks for header files.
#
AC_HEADER_STDC
View
@@ -1,4 +1,4 @@
-lib_LIBRARIES = libfko.a
+lib_LTLIBRARIES = libfko.la
libfko_source_files = \
base64.c base64.h cipher_funcs.c cipher_funcs.h digest.c digest.h \
@@ -9,4 +9,5 @@ libfko_source_files = \
md5.c md5.h rijndael.c rijndael.h sha1.c sha256.c sha.h strlcat.c \
strlcpy.c
-libfko_a_SOURCES = $(libfko_source_files)
+libfko_la_SOURCES = $(libfko_source_files)
+libfko_la_LDFLAGS = -version-info 0:1:0
View
@@ -2,5 +2,5 @@ bin_PROGRAMS = fwknop
fwknop_SOURCES = fwknop.c
-fwknop_LDADD = $(top_builddir)/fko/libfko.a
+fwknop_LDADD = $(top_builddir)/fko/libfko.la
fwknop_CPPFLAGS = -I $(top_srcdir)/fko

0 comments on commit e113cb7

Please sign in to comment.