summaryrefslogtreecommitdiffstats
path: root/src/external/libtalloc.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/external/libtalloc.m4')
-rw-r--r--src/external/libtalloc.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/src/external/libtalloc.m4 b/src/external/libtalloc.m4
new file mode 100644
index 000000000..a4c5b8a9d
--- /dev/null
+++ b/src/external/libtalloc.m4
@@ -0,0 +1,7 @@
+AC_SUBST(TALLOC_OBJ)
+AC_SUBST(TALLOC_CFLAGS)
+AC_SUBST(TALLOC_LIBS)
+
+AC_CHECK_HEADER(talloc.h,
+ [AC_CHECK_LIB(talloc, talloc_init, [TALLOC_LIBS="-ltalloc"]) ],
+ [PKG_CHECK_MODULES(TALLOC, talloc)])