From: Bruno Haible Date: Sat, 11 Apr 2009 10:40:47 +0000 (+0000) Subject: Move macro gt_GLOBAL_SYMBOL_PIPE to exported.m4. X-Git-Tag: v0.18~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ac0bac717a695979052ee9495b11e50fb8285a0;p=thirdparty%2Fgettext.git Move macro gt_GLOBAL_SYMBOL_PIPE to exported.m4. --- diff --git a/gettext-tools/ChangeLog b/gettext-tools/ChangeLog index eebfcb302..c77b91106 100644 --- a/gettext-tools/ChangeLog +++ b/gettext-tools/ChangeLog @@ -1,3 +1,8 @@ +2009-04-11 Bruno Haible + + * configure.ac (gt_GLOBAL_SYMBOL_PIPE): Remove macro, moved to + m4/exported.m4. + 2009-03-25 Bruno Haible Fix the handling of Windows resources in shared libraries. diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index ca0c7ebcd..41e03510a 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -284,19 +284,6 @@ case "$host_os" in esac 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]) -]) gt_GLOBAL_SYMBOL_PIPE dnl Check for Emacs and where to install .elc files. diff --git a/gettext-tools/m4/ChangeLog b/gettext-tools/m4/ChangeLog index 62cf3f89e..8d9ffae6b 100644 --- a/gettext-tools/m4/ChangeLog +++ b/gettext-tools/m4/ChangeLog @@ -1,3 +1,8 @@ +2009-04-11 Bruno Haible + + * exported.m4: New file, extracted from ../configure.ac. + * Makefile.am (EXTRA_DIST): Add it. + 2009-01-25 Bruno Haible * Makefile.am (EXTRA_DIST): Remove locale-ja.m4. diff --git a/gettext-tools/m4/Makefile.am b/gettext-tools/m4/Makefile.am index b214211ea..99a11e958 100644 --- a/gettext-tools/m4/Makefile.am +++ b/gettext-tools/m4/Makefile.am @@ -45,6 +45,7 @@ examplesbuildaux_DATA = \ # Generate this list with # find . -type f -name '*.m4' -printf '%f\n' | sort | tr '\012' @ | sed 's/@$/%/;s/@/ \\@/g' | tr @% '\012\012' EXTRA_DIST = README csharpexec-test.exe \ +exported.m4 \ hostname.m4 \ libgrep.m4 \ regex.m4 \ diff --git a/gettext-tools/m4/exported.m4 b/gettext-tools/m4/exported.m4 new file mode 100644 index 000000000..fc379231f --- /dev/null +++ b/gettext-tools/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]) +])