[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU M4 source repository branch, master, updated. cvs-readonly-332
From: |
Gary V. Vaughan |
Subject: |
[SCM] GNU M4 source repository branch, master, updated. cvs-readonly-332-g4e9147c |
Date: |
Thu, 20 Nov 2014 22:19:27 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU M4 source repository".
http://git.sv.gnu.org/gitweb/?p=m4.git;a=commitdiff;h=4e9147c19130312b6ae4e93d7982393b78dbfc3b
The branch, master has been updated
via 4e9147c19130312b6ae4e93d7982393b78dbfc3b (commit)
via 1117977cc5c466546f155bacb82e9dd9a2f5b049 (commit)
via 1d887c9b5002d8e9a4e65c192c8a1b7355cc356a (commit)
via bb0bc2920c90f7c7e32b697b52e4a84cfbabf1a9 (commit)
via 8991a6cc3d4ad073c9fe479bbff0e6e217be0a38 (commit)
via 0ea9ccbb6e77ade9956d951cd2d206ef67acd2c3 (commit)
via 2590c2dcf1db82aa46e5f81a8de214c21fb9a8a9 (commit)
via 4b572bfb5da0d48c5a57f83d20c0f1bee8866ee2 (commit)
via 9b05f560559e00ec19064339ff2a4c6c54d954c0 (commit)
via e98114fd72d4b2dfee68851efed5ede8021e8ab0 (commit)
from aec80873100b4cb0fc7abc9585822b7041fcd1f1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4e9147c19130312b6ae4e93d7982393b78dbfc3b
Author: Gary V. Vaughan <address@hidden>
Date: Thu Nov 20 22:09:03 2014 +0000
modules: support non-posix PATH_SEPARATOR.
* configure.ac (PATH_SEPARATOR): Propagate to config.h.
* m4/path.c (search_path_env_init): Respect PATH_SEPARATOR.
Reported by KO Myung-Hun
Signed-off-by: Gary V. Vaughan <address@hidden>
commit 1117977cc5c466546f155bacb82e9dd9a2f5b049
Author: Gary V. Vaughan <address@hidden>
Date: Thu Nov 20 21:50:48 2014 +0000
modules: support _ symbol prefix requirement for dlsym.
* configure.ac (LT_FUNC_DLSYM_USCORE): Call it to set NEED_USCORE.
* m4/module.c (uscore_sym): New function. Use this to prepend an
underscore if NEED_USCORE was set at configure time.
Reported by KO Myung-Hun
Signed-off-by: Gary V. Vaughan <address@hidden>
commit 1d887c9b5002d8e9a4e65c192c8a1b7355cc356a
Author: KO Myung-Hun <address@hidden>
Date: Thu Nov 20 22:15:11 2014 +0000
modules: fall-back to system dlopen search path.
* m4/module.c (m4__module_open): If the module search function
cannot find a matching module, fall-back to the system dlopen
search path.
Signed-off-by: Gary V. Vaughan <address@hidden>
commit bb0bc2920c90f7c7e32b697b52e4a84cfbabf1a9
Author: KO Myung-Hun <address@hidden>
Date: Thu Nov 20 22:11:02 2014 +0000
modules: support .dll suffix.
* m4/module.c (m4__module_open): Support .dll suffix in module
names.
* m4/path.c (FILE_SUFFIXES): Likewise for include builtin.
Signed-off-by: Gary V. Vaughan <address@hidden>
commit 8991a6cc3d4ad073c9fe479bbff0e6e217be0a38
Author: KO Myung-Hun <address@hidden>
Date: Wed Nov 19 15:13:58 2014 +0000
m4: fdopen() with a text mode explicitly on OS/2.
On OS/2 kLIBC, fdopen() creates a stream in a mode of a file
descriptor. So specify "t" to open a stream in a text mode explicitly
on OS/2.
* modules/gnu.c (m4_esyscmd): fdopen() in a text mode on OS/2.
Signed-off-by: Gary V. Vaughan <address@hidden>
commit 0ea9ccbb6e77ade9956d951cd2d206ef67acd2c3
Author: KO Myung-Hun <address@hidden>
Date: Wed Nov 19 14:58:22 2014 +0000
configury: add -Zargs-resp to LDFLAGS on OS/2.
-Zargs-resp enables a response file support on OS/2.
* configure.ac (OS2_LDFLAGS): Add -Zargs-resp on *-*-os2*.
* Makefile.am (AM_LDFLAGS): Add OS2_LDFLAGS.
Signed-off-by: Gary V. Vaughan <address@hidden>
commit 2590c2dcf1db82aa46e5f81a8de214c21fb9a8a9
Author: KO Myung-Hun <address@hidden>
Date: Wed Nov 19 14:06:12 2014 +0000
configury: append $EXEEXT suffix to /bin/sh.
Without $EXEEXT, /bin/sh cannot be located on OS/2.
* build-aux/m4/m4-syscmd.m4 (M4_SYSCMD): append $EXEEXT suffix
to /bin/sh.
Signed-off-by: Gary V. Vaughan <address@hidden>
commit 4b572bfb5da0d48c5a57f83d20c0f1bee8866ee2
Author: Gary V. Vaughan <address@hidden>
Date: Thu Nov 20 18:44:15 2014 +0000
configury: loadable modules files do not require version numbers.
Modules are loaded by libltdl. Arguably, loading from the .la
pseudo-library should work irrespective of platform library object
file-naming schemes; but in reality, M4 loads modules by basename
anyway, so we shouldn't put a platform specific version number in
the module filename anyway.
* Makefile.am (module_ldflags): Add -avoid-version flag.
Reported by KO Myung-Hun
Signed-off-by: Gary V. Vaughan <address@hidden>
commit 9b05f560559e00ec19064339ff2a4c6c54d954c0
Author: Gary V. Vaughan <address@hidden>
Date: Thu Nov 20 18:37:04 2014 +0000
configury: loadable modules do not require undefined symbol support.
For compatibility with OS/2 and cygwin, modules must be compiled
with no undefined symbols.
* Makefile.am (AM_LDFLAGS): Add -no-undefined flag.
Reported by Ko Myung-Hun
Signed-off-by: Gary V. Vaughan <address@hidden>
commit e98114fd72d4b2dfee68851efed5ede8021e8ab0
Author: Gary V. Vaughan <address@hidden>
Date: Thu Nov 20 19:28:24 2014 +0000
maint: autogenerate THANKS.
More automation == less time wasted on menial tasks.
* build-aux/thanks-gen: script inspired by coreutils.
* Makefile.am (THANKS): Based on rule from coreutils/Makefile.am.
* NO-THANKS: New file. Configure thanks-gen output.
* THANKS: Remove.
Signed-off-by: Gary V. Vaughan <address@hidden>
-----------------------------------------------------------------------
Summary of changes:
Makefile.am | 41 +++++++++-
NO-THANKS | 186 +++++++++++++++++++++++++++++++++++++++++++++
THANKS | 177 ------------------------------------------
build-aux/m4/m4-syscmd.m4 | 2 +-
configure.ac | 14 +++-
m4/module.c | 21 +++++-
m4/path.c | 3 +-
modules/gnu.c | 6 ++
8 files changed, 263 insertions(+), 187 deletions(-)
create mode 100644 NO-THANKS
delete mode 100644 THANKS
diff --git a/Makefile.am b/Makefile.am
index e9ec90d..6cf5ea7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,8 +30,12 @@ AUTOMAKE_OPTIONS = nostdinc
gitlog_to_changelog = $(srcdir)/$(config_aux_dir)/gitlog-to-changelog
git_log_fix = $(srcdir)/$(config_aux_dir)/git-log-fix
-changelog = $(srcdir)/ChangeLog
+thanks_gen = $(srcdir)/$(config_aux_dir)/thanks-gen
+
+changelog = $(distdir)/ChangeLog
changelog_old = $(srcdir)/ChangeLog.old
+thanks = $(distdir)/THANKS
+no_thanks = $(srcdir)/NO-THANKS
# Prime the variables that will be augmented by libtool.
# FIXME - the -export-symbols-regex ".*" is a hack to work around the
@@ -41,7 +45,7 @@ changelog_old = $(srcdir)/ChangeLog.old
# See http://lists.gnu.org/archive/html/libtool-patches/2007-02/msg00062.html
AM_CPPFLAGS = -I$(srcdir) -I.
AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
-AM_LDFLAGS = -export-dynamic -export-symbols-regex ".*"
+AM_LDFLAGS = -no-undefined -export-dynamic -export-symbols-regex ".*"
EXTRA_DIST =
BUILT_SOURCES =
CLEANFILES =
@@ -59,6 +63,7 @@ EXTRA_LTLIBRARIES=
# given in build-aux/git-version-gen.
AM_CPPFLAGS += -Im4/gnu -I$(srcdir)/m4/gnu \
-Im4 -I$(srcdir)/m4
+AM_LDFLAGS += $(OS2_LDFLAGS)
EXTRA_DIST += bootstrap cfg.mk maint.mk .version .prev-version \
$(config_macro_dir)/gnulib-cache.m4 $(gitlog_to_changelog)
BUILT_SOURCES += .version
@@ -68,7 +73,7 @@ dist-hook: dist-tarball-version
dist-tarball-version:
echo $(VERSION) > $(distdir)/.tarball-version
-dist-hook: ChangeLog
+dist-hook: $(changelog)
changelog_start_date = 2011-01-01
$(changelog): FORCE
$(AM_V_GEN)if test -d '$(srcdir)/.git'; then \
@@ -78,6 +83,34 @@ $(changelog): FORCE
cat '$(changelog_old)' >> '$@'; \
fi
+# Sort in traditional ASCII order, regardless of the current locale;
+# otherwise we may get into trouble with distinct strings that the
+# current locale considers to be equal.
+ASSORT = LC_ALL=C sort
+
+# Extract all lines up to the first one starting with "##".
+prologue = perl -ne '/^\#\#/ and exit; print' $(no_thanks)
+
+# Generate THANKS using git log entries as far as possible, fixing
+# up ommisions and errors from NO-THANKS configuration.
+$(thanks): FORCE
+ $(AM_V_GEN)if test -d '$(srcdir)/.git'; then \
+ { \
+ $(prologue); echo; \
+ { perl -ne '/^$$/.../^$$/ and print' $(no_thanks) \
+ | grep -v '^$$' | perl -pe 's/ +/\0/'; \
+ { sed -e '1,/\#\# /d' -e '/^\#\# /d' \
+ -e 's|[ ][ ]*| |' < $(no_thanks) \
+ | tr '\t' '\0'; \
+ git log --pretty=format:'%aN%x00%aE'; \
+ } | $(ASSORT) -u; \
+ } | $(thanks_gen) \
+ | LC_ALL=en_US.UTF-8 sort -f; \
+ echo; \
+ printf ';; %s\n' 'Local Variables:' 'coding: utf-8' End:; \
+ } > '$@'; \
+ fi
+
MAINTAINERCLEANFILES += \
ABOUT-NLS INSTALL Makefile.in aclocal.m4 \
config-h.in configure stamp-h.in \
@@ -148,7 +181,7 @@ MOSTLYCLEANFILES += src/getopt.h src/getopt.h-t
## Modules. ##
## -------- ##
-module_ldflags = -module $(AM_LDFLAGS)
+module_ldflags = -avoid-version -module $(AM_LDFLAGS)
module_libadd = m4/libm4.la
noinst_HEADERS = modules/m4.h
diff --git a/NO-THANKS b/NO-THANKS
new file mode 100644
index 0000000..0c58ac1
--- /dev/null
+++ b/NO-THANKS
@@ -0,0 +1,186 @@
+These people have contributed to GNU M4. Some have reported problems,
+others have contributed improvements to the documentation and actual code.
+The particular contributions are described in the version control logs and
+ChangeLog files. If your name has been left out, if you'd rather not be
+listed, or if you'd prefer a different address be used, please send a
+note to the bug-report mailing list (as seen at end of e.g., m4 --help).
+##
+## There is no need to list here any name that appears as an Author in
+## "git log" output. Those are automatically added when this template
+## is used to generate the THANKS file. You will still need to add
+## contributors who are not a git log Author - e.g. bug reporters.
+##
+## Folks already promoted to AUTHORS:
+##
+!Akim Demaille
+!Alexandre Duret-Lutz
+!Andrew James Bettison
+!David Warme
+!Eric Benjamin Blake
+!François Pinard
+!Gary V. Vaughan
+!James L. Avera
+!Joel E. Denny
+!John Brzustowski
+!John Gatewood Ham
+!John Gerard Makecki
+!Markus Duft
+!Michael Elizabeth Chastain
+!Noah Jeffrey Misch
+!Pete Chown
+!Ralf Wildenhues
+!Raphael Poss
+!René Seindal
+!Thomas Tanner
+!Tim Rice
+!William C. Cox
+!Yuji Minejima
+##
+## Remove duplicates under alternate names, and add preferred email
+## addresses from contributors that don't match git log output here:
+##
+!Andrew Bettison
+!Eric Blake
+!Francois Pinard
+!Noah Misch
+!Rene' Seindal
+##
+## Add bug reporters, patch Authors you forgot to attribute at commit
+## time with 'git commit --author=...' and other non-patch contributers
+## below:
+##
+Akiko Matsushita address@hidden
+Alan Magnuson address@hidden
+Albert Chin address@hidden
+Alexander Lehmann address@hidden
+Amos Shapira address@hidden
+Andreas Büning address@hidden
+Andreas Gustafsson address@hidden
+Andreas Schultz address@hidden
+Andreas Schwab address@hidden
+Andrew Athan address@hidden
+Assar Westerlund address@hidden
+Ben A. Mesander address@hidden
+Ben Elliston address@hidden
+Bengt Mertensson address@hidden
+Bernhard Daeubler address@hidden
+Bill Bumgarner address@hidden
+Bjorn R. Bjornsson address@hidden
+Bob Badour address@hidden
+Bob Proulx address@hidden
+Brendan Kehoe address@hidden
+Brian J. Fox address@hidden
+Brian D. Carlstrom address@hidden
+Cesar Strauss address@hidden
+Charles Wilson address@hidden
+Chris McGuire address@hidden
+Chris Penev address@hidden
+Damian Menscher address@hidden
+Dan Jacobson address@hidden
+Daniel Richard G. address@hidden
+David J. MacKenzie address@hidden
+David Perlin address@hidden
+Elbert Pol address@hidden
+Elias Benali address@hidden
+Erez Zadok address@hidden
+Eric Allman address@hidden
+Eric Backus address@hidden
+Eric Fischer address@hidden
+Erick Branderhorst address@hidden
+Fernando Carrijo address@hidden
+Frank Schwidom address@hidden
+Gary Affonso address@hidden
+Geoff Russell address@hidden
+Giovanni Toffetti address@hidden
+Greg A. Woods address@hidden
+Greg McGary address@hidden
+Hal Peterson address@hidden
+Hoang Uong address@hidden
+Hongjiu Lu address@hidden
+Ian Taylor address@hidden
+Ilya N. Golubev address@hidden
+Jan Djarv address@hidden
+Jason Merrill address@hidden
+Jay Krell address@hidden
+Jean-Charles Longuet address@hidden
+Jens Rehsack address@hidden
+Jim Avera address@hidden
+Jim Kingdom address@hidden
+Jim Meyering address@hidden
+Joel Sherrill address@hidden
+John David Anglin address@hidden
+Josef T. Burger address@hidden
+Joseph E. Sacco address@hidden
+Joseph S. Myers address@hidden
+Joshua R. Poulson address@hidden
+Karl Berry address@hidden
+Karl Nelson address@hidden
+Karl Vogel address@hidden
+Kaveh R. Ghazi address@hidden
+Keith Bostic address@hidden
+Konrad Schwarz address@hidden
+Kristine Lund address@hidden
+Krste Asanovic address@hidden
+Lawson Chan address@hidden
+M. Levinson address@hidden
+Marcus Daniels address@hidden
+Marion Hakanson address@hidden
+Mark Seiden address@hidden
+Martin Koeppe address@hidden
+Massimo Dal Zotto address@hidden
+Matt Kraai address@hidden
+Matthew Woehlke address@hidden
+Matthias Rabe address@hidden
+Mehul Sanghvi address@hidden
+Michael Fetterman address@hidden
+Michael L. Welcome address@hidden
+Mike Andrews address@hidden
+Mike Dupont address@hidden
+Mike Frysinger address@hidden
+Mike Howard address@hidden
+Mike Lijewski address@hidden
+Mike R. address@hidden
+Mike Stump address@hidden
+Mikhail Teterin address@hidden
+Nelson H. F. Beebe address@hidden
+Nick S. Kanakakorn address@hidden
+Nicolas Lichtmaier address@hidden
+Nicolas Pioch address@hidden
+Noah Friedman address@hidden
+Per Bothner address@hidden
+Pierre Gaumond address@hidden
+Pierre Mathieu address@hidden
+Rafael Corvalan address@hidden
+Rainer Tammer address@hidden
+Richard A Nelson address@hidden
+Richard Ling address@hidden
+Richard Stallman address@hidden
+Robert Bernstein address@hidden
+Robert Bihlmeyer address@hidden
+Roderick Koehle address@hidden
+Roland H. Pesch address@hidden
+Roland McGrath address@hidden
+Ronny Peine address@hidden
+Sami Liedes address@hidden
+Santiago Vila address@hidden
+Scott Bartram deneb!scottb
+Sergey Poznyakoff address@hidden
+Simon Leinen address@hidden
+Skip Montanaro address@hidden
+Stephen Perkins address@hidden
+Steve Williamson address@hidden
+Steven Augart address@hidden
+Terry Jones address@hidden
+Thomas Klausner address@hidden
+Thorsten Ohl address@hidden
+Todd Rinaldo address@hidden
+Tom G. Christensen address@hidden
+Tom McConnell address@hidden
+Tom Quinn address@hidden
+Tom Tromey address@hidden
+Ulrich Drepper address@hidden
+Vern Paxson address@hidden
+Vic Abell address@hidden
+Vincent Lonngren address@hidden
+Vivek P. Singhal address@hidden
+Walter Wong address@hidden
diff --git a/THANKS b/THANKS
deleted file mode 100644
index 70e0354..0000000
--- a/THANKS
+++ /dev/null
@@ -1,177 +0,0 @@
-GNU M4 THANKS file
-
-GNU M4 was originally written by René Seindal. Many people
-further contributed to GNU M4 by reporting problems, suggesting
-various improvements or submitting actual code. Here is a list of
-these people. Help me keep it complete and exempt of errors.
-
-Akiko Matsushita address@hidden
-Akim Demaille address@hidden
-Alan Magnuson address@hidden
-Albert Chin address@hidden
-Alexander Lehmann address@hidden
-Amos Shapira address@hidden
-Andreas Büning address@hidden
-Andreas Gustafsson address@hidden
-Andreas Schultz address@hidden
-Andreas Schwab address@hidden
-Andrew Athan address@hidden
-Andrew Bettison address@hidden
-Assar Westerlund address@hidden
-Ben A. Mesander address@hidden
-Ben Elliston address@hidden
-Bengt Mertensson address@hidden
-Bernhard Daeubler address@hidden
-Bill Bumgarner address@hidden
-Bjorn R. Bjornsson address@hidden
-Bob Badour address@hidden
-Bob Proulx address@hidden
-Brendan Kehoe address@hidden
-Brian J. Fox address@hidden
-Brian D. Carlstrom address@hidden
-Bruno Haible address@hidden
-Carlo Teubner address@hidden
-Cesar Strauss address@hidden
-Charles Wilson address@hidden
-Chris McGuire address@hidden
-Chris Penev address@hidden
-Damian Menscher address@hidden
-Dan Jacobson address@hidden
-Daniel Richard G. address@hidden
-David J. MacKenzie address@hidden
-David Perlin address@hidden
-Elbert Pol address@hidden
-Elias Benali address@hidden
-Erez Zadok address@hidden
-Eric Allman address@hidden
-Eric Backus address@hidden
-Eric Blake address@hidden
-Eric Fischer address@hidden
-Erick Branderhorst address@hidden
-Fernando Carrijo address@hidden
-François Pinard address@hidden
-Frank Schwidom address@hidden
-Gary Affonso address@hidden
-Gary V. Vaughan address@hidden
-Geoff Russell address@hidden
-Giovanni Toffetti address@hidden
-Greg A. Woods address@hidden
-Greg McGary address@hidden
-Hal Peterson address@hidden
-Hoang Uong address@hidden
-Hongjiu Lu address@hidden
-Ian Taylor address@hidden
-Ilya N. Golubev address@hidden
-Jan Djarv address@hidden
-Jason Merrill address@hidden
-Jay Krell address@hidden
-Jean-Charles Longuet address@hidden
-Jens Rehsack address@hidden
-Jim Avera address@hidden
-Jim Kingdom address@hidden
-Jim Meyering address@hidden
-Joel E. Denny address@hidden
-Joel Sherrill address@hidden
-John Brzustowski address@hidden
-John David Anglin address@hidden
-John Gatewood Ham address@hidden
-John Gerard Malecki address@hidden
-Josef T. Burger address@hidden
-Joseph E. Sacco address@hidden
-Joseph S. Myers address@hidden
-Joshua R. Poulson address@hidden
-Karl Berry address@hidden
-Karl Nelson address@hidden
-Karl Vogel address@hidden
-Kaveh R. Ghazi address@hidden
-Keith Bostic address@hidden
-Konrad Schwarz address@hidden
-Kristine Lund address@hidden
-Krste Asanovic address@hidden
-Lawson Chan address@hidden
-M. Levinson address@hidden
-Marcus Daniels address@hidden
-Marion Hakanson address@hidden
-Mark Seiden address@hidden
-Martin Koeppe address@hidden
-Massimo Dal Zotto address@hidden
-Matt Kraai address@hidden
-Matthew Woehlke address@hidden
-Matthias Rabe address@hidden
-Mehul Sanghvi address@hidden
-Michael Fetterman address@hidden
-Michael L. Welcome address@hidden
-Mike Andrews address@hidden
-Mike Dupont address@hidden
-Mike Frysinger address@hidden
-Mike Howard address@hidden
-Mike Lijewski address@hidden
-Mike R. address@hidden
-Mike Stump address@hidden
-Mikhail Teterin address@hidden
-Nelson H. F. Beebe address@hidden
-Nick S. Kanakakorn address@hidden
-Nicolas Lichtmaier address@hidden
-Nicolas Pioch address@hidden
-Noah Friedman address@hidden
-Noah Misch address@hidden
-Paolo Bonzini address@hidden
-Paul Eggert address@hidden
-Per Bothner address@hidden
-Pete Chown address@hidden
-Pierre Gaumond address@hidden
-Pierre Mathieu address@hidden
-Rafael Corvalan address@hidden
-Rainer Tammer address@hidden
-Ralf Wildenhues address@hidden
-René Seindal address@hidden
-Richard A Nelson address@hidden
-Richard Ling address@hidden
-Richard Stallman address@hidden
-Robert Bernstein address@hidden
-Robert Bihlmeyer address@hidden
-Roderick Koehle address@hidden
-Roland H. Pesch address@hidden
-Roland McGrath address@hidden
-Ronny Peine address@hidden
-Sami Liedes address@hidden
-Santiago Vila address@hidden
-Scott Bartram deneb!scottb
-Sergey Poznyakoff address@hidden
-Simon Leinen address@hidden
-Skip Montanaro address@hidden
-Stepan Kasal address@hidden
-Stephen Perkins address@hidden
-Steve Williamson address@hidden
-Steven Augart address@hidden
-Terry Jones address@hidden
-Thomas Klausner address@hidden
-Thomas Tanner address@hidden
-Thorsten Ohl address@hidden
-Todd Rinaldo address@hidden
-Tom G. Christensen address@hidden
-Tom McConnell address@hidden
-Tom Quinn address@hidden
-Tom Tromey address@hidden
-Ulrich Drepper address@hidden
-Vern Paxson address@hidden
-Vic Abell address@hidden
-Vincent Lonngren address@hidden
-Vivek P. Singhal address@hidden
-Walter Wong address@hidden
-Yuji Minejima address@hidden
-
-========================================================================
-
-Local Variables:
-coding: utf-8
-End:
-
-Copyright (C) 2000, 2006-2010, 2013 Free Software Foundation, Inc.
-
-Permission is granted to copy, distribute and/or modify this document
-under the terms of the GNU Free Documentation License, Version 1.3 or
-any later version published by the Free Software Foundation; with no
-Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
-Texts. A copy of the license is included in the ``GNU Free
-Documentation License'' file as part of this distribution.
diff --git a/build-aux/m4/m4-syscmd.m4 b/build-aux/m4/m4-syscmd.m4
index 514201f..fc93424 100644
--- a/build-aux/m4/m4-syscmd.m4
+++ b/build-aux/m4/m4-syscmd.m4
@@ -35,7 +35,7 @@ if test "$with_syscmd_shell" = no ; then
with_syscmd_shell=/bin/sh
if test "$cross_compiling" != yes ; then
dnl Give mingw a default that is more likely to be available.
- AS_IF([AS_EXECUTABLE_P([/bin/sh])], [],
+ AS_IF([AS_EXECUTABLE_P([/bin/sh$EXEEXT])], [],
[if (cmd /c) 2>/dev/null; then with_syscmd_shell=cmd; fi])
dnl Too bad _AS_PATH_WALK is not public.
M4_save_IFS=$IFS; IFS=$PATH_SEPARATOR
diff --git a/configure.ac b/configure.ac
index 2fe6d9e..d4fffd6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -164,6 +164,7 @@ case "$CFLAGS" in
;;
esac
+
## ------------------------------- ##
## Preloaded module configuration. ##
## ------------------------------- ##
@@ -204,6 +205,15 @@ AC_SUBST([DLPREOPEN])
AC_SUBST([PREOPEN_DEPENDENCIES])
+## ------------------------------- ##
+## Dynamic Loader Characteristics. ##
+## ------------------------------- ##
+
+LT_FUNC_DLSYM_USCORE
+AC_DEFINE_UNQUOTED([PATH_SEPARATOR], ['$PATH_SEPARATOR'],
+ [Define this to system search path delimiter])
+
+
## ---------------- ##
## Gettext support. ##
## ---------------- ##
@@ -213,7 +223,6 @@ AM_GNU_GETTEXT_VERSION([0.16])
M4_GNU_GETTEXT
-
## --------------- ##
## Gnulib support. ##
## --------------- ##
@@ -235,6 +244,8 @@ M4_RENAME
AC_TYPE_SIZE_T
AC_CHECK_SIZEOF([long long int])
+AS_CASE([$host], [*-*-os2*], [OS2_LDFLAGS=-Zargs-resp])
+AC_SUBST([OS2_LDFLAGS])
## ------------------------- ##
@@ -250,7 +261,6 @@ fi
AC_SUBST([INCLUDE_STDBOOL_H])
-
## --------------------------------- ##
## Library functions required by M4. ##
## --------------------------------- ##
diff --git a/m4/module.c b/m4/module.c
index 6f2a2a9..8efb1a9 100644
--- a/m4/module.c
+++ b/m4/module.c
@@ -67,7 +67,20 @@
#define MODULE_SELF_NAME "!myself!"
-static const char* module_dlerror (void);
+#if NEED_USCORE
+static void *
+uscore_sym (void *handle, const char *symbol)
+{
+ char *symname = xasprintf ("_%s", symbol);
+ void *address = dlsym (handle, symname);
+ free (symname);
+ return address;
+}
+
+#define dlsym uscore_sym
+#endif
+
+static const char * module_dlerror (void);
static void install_builtin_table (m4*, m4_module *);
static void install_macro_table (m4*, m4_module *);
@@ -265,7 +278,7 @@ compare_builtin_CB (const void *a, const void *b)
m4_module *
m4__module_open (m4 *context, const char *name, m4_obstack *obs)
{
- static const char * suffixes[] = { "", ".so", NULL };
+ static const char * suffixes[] = { "", ".so", ".dll", NULL };
m4_module * module = NULL;
assert (context);
@@ -273,6 +286,10 @@ m4__module_open (m4 *context, const char *name, m4_obstack
*obs)
char *filepath = m4_path_search (context, name, suffixes);
void *handle = NULL;
+ /* Use system module search path if m4_path_search fails. */
+ if (!filepath)
+ filepath = xstrdup (name);
+
if (filepath)
{
handle = dlopen (filepath, RTLD_NOW|RTLD_GLOBAL);
diff --git a/m4/path.c b/m4/path.c
index 3a93289..6f47ff6 100644
--- a/m4/path.c
+++ b/m4/path.c
@@ -42,6 +42,7 @@ static const char *FILE_SUFFIXES[] = {
".m4f",
".m4",
".so",
+ ".dll",
NULL
};
@@ -100,7 +101,7 @@ search_path_env_init (m4__search_path_info *info, char
*path, bool isabs)
do
{
- path_end = strchr (path, ':');
+ path_end = strchr (path, PATH_SEPARATOR);
if (path_end)
*path_end = '\0';
if (!isabs || *path == '/')
diff --git a/modules/gnu.c b/modules/gnu.c
index 874502e..f891ddc 100644
--- a/modules/gnu.c
+++ b/modules/gnu.c
@@ -684,7 +684,13 @@ M4BUILTIN_HANDLER (esyscmd)
m4_set_sysval (127);
return;
}
+#if OS2
+ /* On OS/2 kLIBC, fdopen() creates a stream in a mode of a file
+ descriptor. So incldue "t" to open stream in a text mode explicitly.
*/
+ pin = fdopen (fd, "rt");
+#else
pin = fdopen (fd, "r");
+#endif
if (!pin)
{
m4_error (context, 0, errno, me, _("cannot run command %s"),
hooks/post-receive
--
GNU M4 source repository
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU M4 source repository branch, master, updated. cvs-readonly-332-g4e9147c,
Gary V. Vaughan <=