From 37cea6bc1a0c2c7a6e73f2ecf8a8a8f0aac605ed Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Wed, 5 Dec 2012 18:22:44 -0500 Subject: [PATCH] Fix DX_EXPORTED_SH to AC_SUBST required variables. The exported.sh support wasn't really usable as-is since it was relying on a symbol defined by cdecl99's configure.ac. Bring that configuration into the common macro. --- m4/exported.m4 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/m4/exported.m4 b/m4/exported.m4 index d4a613b..7bb6e9e 100644 --- a/m4/exported.m4 +++ b/m4/exported.m4 @@ -11,6 +11,15 @@ dnl There is NO WARRANTY, to the extent permitted by law. AC_DEFUN([DX_EXPORTED_SH], [dnl AC_REQUIRE([DX_INIT]) +AC_CONFIG_COMMANDS_PRE([dnl + AC_PROVIDE_IFELSE([LT_INIT], , [m4_warn([syntax], +[$0 requires libtool. +Consider adding an invocation of LT_INIT to configure.ac.])]) + + GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe + AC_SUBST([GLOBAL_SYMBOL_PIPE]) +]) + AC_CONFIG_FILES([exported.sh:]DX_BASEDIR[/snippet/exported.sh.in], [chmod +x exported.sh]) ]) -- 2.43.0