summaryrefslogtreecommitdiffstats
path: root/src/external/libpopt.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/external/libpopt.m4')
-rw-r--r--src/external/libpopt.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/src/external/libpopt.m4 b/src/external/libpopt.m4
new file mode 100644
index 000000000..e59b2610e
--- /dev/null
+++ b/src/external/libpopt.m4
@@ -0,0 +1,9 @@
+POPT_OBJ=""
+AC_SUBST(POPT_OBJ)
+AC_SUBST(POPT_LIBS)
+AC_SUBST(POPT_CFLAGS)
+
+AC_CHECK_HEADERS([popt.h],
+ [AC_CHECK_LIB(popt, poptGetContext, [ POPT_LIBS="-lpopt" ], [AC_MSG_ERROR([POPT must support poptGetContext])])],
+ [AC_MSG_ERROR([POPT development libraries not installed])]
+)