1#							-*- Autotest -*-
2
3AT_BANNER([Autoscan.])
4
5# Copyright (C) 2005 Free Software Foundation, Inc.
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2, or (at your option)
10# any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20# 02110-1301, USA.
21
22AT_SETUP([autoscan])
23
24AT_DATA([Makefile.am],
25[[SUBDIRS = subpkg
26]])
27
28AT_DATA([configure.ac],
29[[AC_INIT
30AC_PREREQ(2.59)
31AM_INIT_AUTOMAKE(foreign)
32AC_CONFIG_SUBDIRS(subpkg)
33AC_CONFIG_FILES(Makefile)
34AC_OUTPUT
35]])
36
37mkdir subpkg
38
39AT_DATA([subpkg/Makefile.am], [])
40AT_DATA([subpkg/configure.ac],
41[[AC_INIT
42AM_INIT_AUTOMAKE(foreign)
43AC_CONFIG_FILES(Makefile)
44AC_OUTPUT
45]])
46AT_CHECK([autoscan])
47AT_CHECK([grep subpkg/Makefile configure.scan], [1], [], [ignore])
48
49AT_CLEANUP
50