autoscan.at 1.2 KB

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