]> git.draconx.ca Git - dxcommon.git/blobdiff - m4/exported.m4
Import exported.sh from cdecl99.
[dxcommon.git] / m4 / exported.m4
diff --git a/m4/exported.m4 b/m4/exported.m4
new file mode 100644 (file)
index 0000000..d4a613b
--- /dev/null
@@ -0,0 +1,16 @@
+dnl Copyright © 2012 Nick Bowler
+dnl
+dnl Generate the exported.sh script used to determine the exported symbols of
+dnl a (libtool) object file.  This is required by the glconfig Automake
+dnl fragment, but will be called automatically in that case.
+dnl
+dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
+dnl This is free software: you are free to do what the fuck you want to.
+dnl There is NO WARRANTY, to the extent permitted by law.
+
+AC_DEFUN([DX_EXPORTED_SH], [dnl
+AC_REQUIRE([DX_INIT])
+
+AC_CONFIG_FILES([exported.sh:]DX_BASEDIR[/snippet/exported.sh.in],
+       [chmod +x exported.sh])
+])