Build libcontrib only when really needed.
authorLubomir Sedlacik <salo@silcnet.org>
Thu, 10 Jun 2004 23:10:34 +0000 (23:10 +0000)
committerLubomir Sedlacik <salo@silcnet.org>
Thu, 10 Jun 2004 23:10:34 +0000 (23:10 +0000)
Should fix build problem on Mac OS X where ar(1) can't create archives
without (object) files.

lib/contrib/Makefile.am

index b7bec728e1b63e1d8a01b34e39adf8a95b428f6e..6386103e45e42a81804bd2284133a75fa7a7d374 100644 (file)
 
 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
 
+if HAVE_GETOPT_LONG
+if HAVE_REGEX
+noinst_LTLIBRARIES =
+else
+noinst_LTLIBRARIES = libcontrib.la
+endif
+else
 noinst_LTLIBRARIES = libcontrib.la
+endif
+
 
 if HAVE_GETOPT_LONG
 GETOPT =