summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-04-11 16:09:45 +0200
committerBruno Haible <bruno@clisp.org>2009-04-11 16:09:45 +0200
commitd598f9e1e016735397e9dca53b436d13c6fb28f3 (patch)
tree98b8e47c701495b3f12ea0739c9705cb17ebd134 /m4
parent3f5fe3223382a51a3057e0806aa02463addd12e4 (diff)
downloadlibunistring-d598f9e1e016735397e9dca53b436d13c6fb28f3.tar.gz
Limit the exported symbols through a config.h trick.
Diffstat (limited to 'm4')
-rw-r--r--m4/exported.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/m4/exported.m4 b/m4/exported.m4
new file mode 100644
index 0000000..fc37923
--- /dev/null
+++ b/m4/exported.m4
@@ -0,0 +1,21 @@
+# exported.m4 serial 1 (gettext-0.18)
+dnl Copyright (C) 2006, 2009 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl Prerequisites of the exported.sh script:
+dnl Check for nm output filter that yields the exported symbols.
+AC_DEFUN([gt_GLOBAL_SYMBOL_PIPE], [
+ AC_REQUIRE([AC_PROG_NM]) dnl provided by libtool.m4
+ AC_SUBST([NM])
+ AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE]) dnl provided by libtool.m4
+ GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe
+ AC_SUBST([GLOBAL_SYMBOL_PIPE])
+ if test -n "$GLOBAL_SYMBOL_PIPE"; then
+ HAVE_GLOBAL_SYMBOL_PIPE=1
+ else
+ HAVE_GLOBAL_SYMBOL_PIPE=
+ fi
+ AC_SUBST([HAVE_GLOBAL_SYMBOL_PIPE])
+])