summaryrefslogtreecommitdiff
path: root/Build/source/m4
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/m4')
-rw-r--r--Build/source/m4/kpse-setup.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/Build/source/m4/kpse-setup.m4 b/Build/source/m4/kpse-setup.m4
index a4bcc01e432..61996a77ac0 100644
--- a/Build/source/m4/kpse-setup.m4
+++ b/Build/source/m4/kpse-setup.m4
@@ -140,3 +140,13 @@ AC_DEFUN([KPSE_CHECK_LIB],
fi
]) # KPSE_CHECK_LIB
+# KPSE_CHECK_LIBXX(LIB, REQUIRED-FUNCTION..., REQUIRED-HEADER...)
+# -------------------------------------------------------------
+# As above, but for C++.
+AC_DEFUN([KPSE_CHECK_LIBXX],
+[AC_REQUIRE([AC_PROG_CXX])[]dnl
+AC_LANG_PUSH([C++])[]dnl
+KPSE_CHECK_LIB($@)[]dnl
+AC_LANG_POP([C++])[]dnl
+]) # KPSE_CHECK_LIBXX
+