X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fcontrib%2FMakefile.am;h=0c3ec06d8b83037cce2a357da4562bfcc5b74d14;hb=666eb6a771f78fc48263d8551be4bf7e1848d709;hp=78f02843efde0666653762b9c9bffa722fd6c04d;hpb=7d313ad2fb36c7f9684790857e80cd88772b7353;p=silc.git diff --git a/lib/contrib/Makefile.am b/lib/contrib/Makefile.am index 78f02843..0c3ec06d 100644 --- a/lib/contrib/Makefile.am +++ b/lib/contrib/Makefile.am @@ -20,15 +20,30 @@ AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign noinst_LIBRARIES = libcontrib.a +if HAVE_GETOPT_LONG +GETOPT = +else +GETOPT = getopt.c getopt1.c +endif + +if HAVE_REGEX +REGEX = +else +REGEX = regex.c +endif + if SILC_WIN32 libcontrib_a_SOURCES = else libcontrib_a_SOURCES = \ - getopt.c \ - getopt1.c \ - regex.c + $(GETOPT) \ + $(REGEX) +endif + +if SILC_DIST_TOOLKIT +include_HEADERS = getopt.h regex.h endif -EXTRA_DIST = *.h +EXTRA_DIST = *.c *.h include $(top_srcdir)/Makefile.defines.in