summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/popt/samba.m427
1 files changed, 27 insertions, 0 deletions
diff --git a/source4/lib/popt/samba.m4 b/source4/lib/popt/samba.m4
new file mode 100644
index 0000000000..cd0de5e826
--- /dev/null
+++ b/source4/lib/popt/samba.m4
@@ -0,0 +1,27 @@
+SAVE_LIBS="$LIBS"
+SAVE_CFLAGS="$CFLAGS"
+SAVE_CPPFLAGS="$CPPFLAGS"
+SAVE_LDFLAGS="$LDFLAGS"
+
+LIBS=""
+CFLAGS=""
+CPPFLAGS=""
+LDFLAGS=""
+
+m4_include(lib/popt/libpopt.m4)
+
+POPT_EXT_LIBS="$LIBS $POPTOBJ"
+POPT_EXT_CFLAGS="$CFLAGS"
+POPT_EXT_CPPFLAGS="$CPPFLAGS"
+POPT_EXT_LDFLAGS="$LDFLAGS"
+
+LIBS="$SAVE_LIBS"
+CFLAGS="$SAVE_CFLAGS"
+CPPFLAGS="$SAVE_CPPFLAGS"
+LDFLAGS="$SAVE_LDFLAGS"
+
+SMB_EXT_LIB(POPT_EXT,
+ [${POPT_EXT_LIBS}],
+ [${POPT_EXT_CFLAGS}],
+ [${POPT_EXT_CPPFLAGS}],
+ [${POPT_EXT_LDFLAGS}])