Add libtool support.

libzebra and libospfapiclient are now built shared, and linked shared
with the daemons.  This reduces the memory needed when running
multiple daemons; each daemon is at least 150k smaller.  Static
libraries are still built, and libtool should use them on platforms
which don't have shared libaries.  As with autoconf, the user of a
distribution does not need libtool; one just needs that to build from
CVS.

libospf.a is still a non-shared library, and still installed, not
because that makese sense, but because I don't understand why it is
the way it is now.

Note that the tree was tagged 'libtool-before' just before this commit.
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 89ade1e..8cd79e3 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2004-06-30  Greg Troxel  <gdt@poblano.ir.bbn.com>
+
+	* Makefile.am: Make libzebra shared.
+
 2004-06-21 Paul Jakma <paul@dishone.st>
 
 	* ChangeLog: fix my last update config.h -> zebra.h ;)
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 45d60ce..eef9570 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -3,9 +3,9 @@
 INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib
 DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
 
-lib_LIBRARIES = libzebra.a
+lib_LTLIBRARIES = libzebra.la
 
-libzebra_a_SOURCES = \
+libzebra_la_SOURCES = \
 	version.c network.c pid_output.c getopt.c getopt1.c daemon.c \
 	print_version.c checksum.c vector.c linklist.c vty.c command.c \
 	sockunion.c prefix.c thread.c if.c memory.c buffer.c table.c hash.c \
@@ -13,9 +13,9 @@
 	zclient.c sockopt.c smux.c md5.c if_rmap.c keychain.c privs.c \
 	debug.c sigevent.c pqueue.c
 
-libzebra_a_DEPENDENCIES = @LIB_REGEX@
+libzebra_la_DEPENDENCIES = @LIB_REGEX@
 
-libzebra_a_LIBADD = @LIB_REGEX@
+libzebra_la_LIBADD = @LIB_REGEX@
 
 pkginclude_HEADERS = \
 	buffer.h command.h filter.h getopt.h hash.h if.h linklist.h log.h \