+Tue Aug 5 17:49:54 1997 Tom Tromey <tromey@cygnus.com>
+
+ * Makefile.am: Check for bad splits.
+ * automake.in (various): Use split(' ',...), not split(/ /,...).
+
Tue Aug 5 14:08:51 1997 Ian Lance Taylor <ian@cygnus.com>
* ylwrap: If the program is a relative path, force it to be
echo "Found undef in automake.in; use delete instead" 1>&2; \
exit 1; \
fi
+## We never want split (/ /,...), only split (' ', ...).
+ @if fgrep 'split (/ /' $(srcdir)/automake.in > /dev/null 2>&1; then \
+ echo "Found bad split in automake.in" 1>&2; \
+ exit 1; \
+ fi
# Tag before making distribution. Also, don't make a distribution if
# checks fail. Also, make sure the NEWS file is up-to-date.
# Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+# gives unlimited permission to copy, distribute and modify it.
SHELL = /bin/sh
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
cd $(srcdir) && $(AUTOCONF)
automake: $(top_builddir)/config.status automake.in
- cd $(top_builddir) && CONFIG_FILES=$@:automake.in CONFIG_HEADERS= ./config.status
+ cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
aclocal: $(top_builddir)/config.status aclocal.in
- cd $(top_builddir) && CONFIG_FILES=$@:aclocal.in CONFIG_HEADERS= ./config.status
+ cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
install-binSCRIPTS: $(bin_SCRIPTS)
@$(NORMAL_INSTALL)
distclean-aminfo:
maintainer-clean-aminfo:
- for i in $(INFO_DEPS); do \
- rm -f $$i; \
- if test "`echo $$i-[0-9]*`" = "$$i-[0-9]*"; then \
- rm -f $$i-[0-9]*; \
- fi; \
- done
+ for i in $(INFO_DEPS); do rm -f `eval echo $$i*`; done
install-pkgdataDATA: $(pkgdata_DATA)
@$(NORMAL_INSTALL)
echo "Found undef in automake.in; use delete instead" 1>&2; \
exit 1; \
fi
+ @if fgrep 'split (/ /' $(srcdir)/automake.in > /dev/null 2>&1; then \
+ echo "Found bad split in automake.in" 1>&2; \
+ exit 1; \
+ fi
# Tag before making distribution. Also, don't make a distribution if
# checks fail. Also, make sure the NEWS file is up-to-date.
sub check_ambiguous_conditional
{
local ($var_name, $cond) = @_;
- local (@cond_vals) = split (/ /, $conditional{$var_name});
+ local (@cond_vals) = split (' ', $conditional{$var_name});
while (@cond_vals)
{
local ($vcond) = shift (@cond_vals);
# look through the conditions under which the variable is
# defined, and see if any of them match the conditional we
# have been asked to check.
- local (@cond_vars) = split (/ /, $conditional{$var});
+ local (@cond_vars) = split (' ', $conditional{$var});
while (@cond_vars)
{
if (&conditional_same ($cond, shift (@cond_vars)))
}
local (@this_conds) = ();
- local (@condvals) = split (/ /, $conditional{$var});
+ local (@condvals) = split (' ', $conditional{$var});
while (@condvals)
{
local ($cond) = shift (@condvals);
}
elsif ($cond eq 'all' && $conditional{$var})
{
- local (@condvals) = split (/ /, $conditional{$var});
+ local (@condvals) = split (' ', $conditional{$var});
while (@condvals)
{
shift (@condvals);
}
elsif ($cond && $conditional{$var})
{
- local (@condvals) = split (/ /, $conditional{$var});
+ local (@condvals) = split (' ', $conditional{$var});
local ($onceflag);
while (@condvals)
{
echo "Found undef in automake.in; use delete instead" 1>&2; \
exit 1; \
fi
+## We never want split (/ /,...), only split (' ', ...).
+ @if fgrep 'split (/ /' $(srcdir)/automake.in > /dev/null 2>&1; then \
+ echo "Found bad split in automake.in" 1>&2; \
+ exit 1; \
+ fi
# Tag before making distribution. Also, don't make a distribution if
# checks fail. Also, make sure the NEWS file is up-to-date.