Tag
Hash :
e75e5d8b
Author :
Date :
2006-03-26T07:52:08
* aclocal.in ($m4_include_rx): Do not recognize `include', and adjust scan_configure_dep and scan_file accordingly. (scan_configure_dep): Do not search white lines. (scan_file): Strip comments from current line after checking for serial, so that aclocal does not trip on `m4_include' macros in comments. Report from Mike Frysinger. * tests/acloca21.test: New file. * tests/Makefile.am (TESTS): Add it.
#! /bin/sh
# Copyright (C) 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
# GNU Automake is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# GNU Automake is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Automake; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
# Make sure aclocal ignores include() commands in comments.
# Report from Mike Frysinger.
# Also make sure aclocal does not think 'include' is
# an Autoconf macro.
. ./defs || exit 1
set -e
cat >>configure.in <<EOF
dnl m4_include(__some_really_bogus_nonexistent_file__.m4)
# m4_include(__some_really_bogus_nonexistent_file__.m4)
## m4_include(__some_really_bogus_nonexistent_file__.m4)
echo 'include(foobar)' is OK
EOF
$ACLOCAL