* GETKEY to update the client entrys fingerprint too.
Affected file lib/silcclient/command_reply.c.
+ * Added --without-libtoolfix for package builders using weird
+ wrappers around libtool (BSD at least).
+
Thu Dec 5 22:29:46 EET 2002 Pekka Riikonen <priikone@silcnet.org>
* Fixed backup router bugs: When backup resumes router and
AC_MSG_RESULT(yes)
])
+libtoolfix=true
+AC_MSG_CHECKING(whether to do libtoolfix)
+AC_ARG_WITH(libtoolfix,
+ [ --without-libtoolfix Do not fix libtool, for package builders],
+ [
+ AC_MSG_RESULT(no)
+ libtoolfix=false
+ ],
+ [
+ AC_MSG_RESULT(yes)
+ ])
+
+AC_SUBST(ETCDIR)
+AC_DEFINE_UNQUOTED(SILC_ETCDIR, "$ETCDIR")
+
+
##
## Misc
# to in run-time specify when to compile shared/static libraries without
# need to reconfigure the entire libtool.
#
-./libtoolfix $SILC_TOP_SRCDIR/ltmain.sh
+if test x$libtoolfix = xtrue; then
+ ./libtoolfix $SILC_TOP_SRCDIR/ltmain.sh
+fi
+AM_CONDITIONAL(SILC_LIBTOOLFIX, test x$libtoolfix = xtrue)
+
#
# Makefile outputs
silcpkcs.c \
pkcs1.c
+if SILC_LIBTOOLFIX
# Tell libtool to compile silccrypt as shared since silcsim will need it.
-CFLAGS = --libtool-enable-shared
+LTFLAGS = --libtool-enable-shared
+else
+LTFLAGS =
+endif
+
+CFLAGS = $(LTFLAGS)
if SILC_DIST_TOOLKIT
include_HEADERS = \
all: $(SIM_CIPHER_OBJS) $(SIM_HASH_OBJS)
endif
+if SILC_LIBTOOLFIX
+LTFLAGS = --libtool-enable-shared
+else
+LTFLAGS =
+endif
+
$(SIM_CIPHER_OBJS):
@if test '!' -f lib$*.la ; then \
$(LIBTOOL) --mode=link $(CCLD) -rpath $(silc_modulesdir) \
- ../silccrypt/$*.lo -o lib$*.la --libtool-enable-shared; \
+ ../silccrypt/$*.lo -o lib$*.la $(LTFLAGS); \
cd $(srcdir) && $(LN_S) -f $(srcdir)/.libs/lib$*.so \
$(srcdir)/$*.sim.so; \
fi
$(SIM_HASH_OBJS):
@if test '!' -f lib$*.la ; then \
$(LIBTOOL) --mode=link $(CCLD) -rpath $(silc_modulesdir) \
- ../silccrypt/$*.lo -o lib$*.la --libtool-enable-shared; \
+ ../silccrypt/$*.lo -o lib$*.la $(LTFLAGS); \
cd $(srcdir) && $(LN_S) -f $(srcdir)/.libs/lib$*.so \
$(srcdir)/$*.sim.so; \
fi