X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..a034bb0afda3d0e766f3b6554d67bd4892d4ca42:/mts/smtp/Makefile.in diff --git a/mts/smtp/Makefile.in b/mts/smtp/Makefile.in index 7d197d55..85ea7ea5 100644 --- a/mts/smtp/Makefile.in +++ b/mts/smtp/Makefile.in @@ -24,6 +24,8 @@ INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir) LORDER = @LORDER@ TSORT = @TSORT@ RANLIB = @RANLIB@ +LIBTOOL = @LIBTOOL@ +GNU_LIBTOOL = @GNU_LIBTOOL@ COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) @@ -54,8 +56,12 @@ all: libsmtp.a libsmtp.a: $(OBJS) rm -f $@ - ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)` - $(RANLIB) $@ + if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \ + $(LIBTOOL) -static -c $(OBJS) -o $@ ; \ + else \ + ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)` ; \ + $(RANLIB) $@ ; \ + fi install: