]> git.draconx.ca Git - dxcommon.git/blob - m4/exported.m4
DX_C_ALIGNAS: Work around bash-5 parsing bug.
[dxcommon.git] / m4 / exported.m4
1 dnl Copyright © 2012, 2022 Nick Bowler
2 dnl
3 dnl Generate the exported.sh script used to determine the exported symbols of
4 dnl a (libtool) object file.  This is required by the glconfig Automake
5 dnl fragment, but will be called automatically in that case.
6 dnl
7 dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
8 dnl This is free software: you are free to do what the fuck you want to.
9 dnl There is NO WARRANTY, to the extent permitted by law.
10
11 AC_DEFUN([DX_EXPORTED_SH],
12 [AC_REQUIRE([DX_INIT])dnl
13 AC_REQUIRE([AC_PROG_SED])dnl
14
15 AC_CONFIG_COMMANDS_PRE(
16 [AC_PROVIDE_IFELSE([LT_INIT], , [m4_warn([syntax],
17 [$0 requires libtool.
18 Consider adding an invocation of LT_INIT to configure.ac.])])
19
20 GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe
21 AC_SUBST([GLOBAL_SYMBOL_PIPE])])
22
23 AC_CONFIG_FILES([exported.sh:]DX_BASEDIR[/snippet/exported.sh.in],
24   [chmod +x exported.sh])])