#! /bin/sh # Copyright (C) 2002-2015 Free Software Foundation, Inc. # # This program 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. # # This program 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 this program. If not, see . # Check dirlist support. . test-init.sh cat > configure.ac < acdir/dirlist cat >dirlist-test/dirlist-check.m4 <<'END' AC_DEFUN([AM_INIT_GUILE_MODULE],[ . $srcdir/../GUILE-VERSION AM_INIT_AUTOMAKE(foreign) AC_CONFIG_AUX_DIR(..) module=[$1] AC_SUBST(module)]) END cat >dirlist-test/init.m4 <<'END' AC_DEFUN([AM_INIT_AUTOMAKE], [Hey, I should be included, really!]) END $ACLOCAL --system-acdir acdir $AUTOCONF # There should be no m4_include in aclocal.m4, even though m4/dirlist # contains './dirlist-test' as a relative directory. Only -I directories # are subject to file inclusion. grep m4_include aclocal.m4 && exit 1 grep 'GUILE-VERSION' configure $FGREP 'Hey, I should be included, really!' configure :