r22699: Reduce amount of magic required for popt detection.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 6 May 2007 15:58:12 +0000 (15:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:52:03 +0000 (14:52 -0500)
(This used to be commit 05ca6ecef70b0e66348b479badcb77d0a0bef9f2)

source4/lib/popt/config.mk [new file with mode: 0644]
source4/lib/popt/samba.m4

diff --git a/source4/lib/popt/config.mk b/source4/lib/popt/config.mk
new file mode 100644 (file)
index 0000000..ad21851
--- /dev/null
@@ -0,0 +1,7 @@
+[SUBSYSTEM::LIBPOPT]
+OBJ_FILES = findme.o \
+                       popt.o \
+                       poptconfig.o \
+                       popthelp.o \
+                       poptparse.o
+CFLAGS = -Ilib/popt
index b6e939f5a0421e56fe5ec494476ba52b436a62f1..855fd6c402690d2ff03d21f9ca51a666af537896 100644 (file)
@@ -2,9 +2,7 @@ m4_include(lib/popt/libpopt.m4)
 
 if test x"$POPT_OBJ" = "x"; then
        SMB_EXT_LIB(LIBPOPT, [${POPT_LIBS}])
-       SMB_ENABLE(LIBPOPT,YES)
 else
-       SMB_SUBSYSTEM(LIBPOPT,
-       [lib/popt/findme.o lib/popt/popt.o lib/popt/poptconfig.o lib/popt/popthelp.o lib/popt/poptparse.o], [], [-Ilib/popt])
+       SMB_INCLUDE_MK(lib/popt/config.mk)
 fi