| Line | |
|---|
| 1 | #! /bin/sh
|
|---|
| 2 |
|
|---|
| 3 | # Test to make sure config.h can be in subdir.
|
|---|
| 4 |
|
|---|
| 5 | . $srcdir/defs || exit 1
|
|---|
| 6 |
|
|---|
| 7 | cat > configure.in << 'END'
|
|---|
| 8 | AC_PROG_MAKE_SET
|
|---|
| 9 | AM_CONFIG_HEADER(subdir/config.h)
|
|---|
| 10 | PACKAGE=nonesuch
|
|---|
| 11 | VERSION=nonesuch
|
|---|
| 12 | AC_PROG_CC
|
|---|
| 13 | AC_ARG_PROGRAM
|
|---|
| 14 | AC_PROG_INSTALL
|
|---|
| 15 | AC_OUTPUT(Makefile subdir/Makefile)
|
|---|
| 16 | END
|
|---|
| 17 |
|
|---|
| 18 | cat > Makefile.am << 'END'
|
|---|
| 19 | SUBDIRS = subdir
|
|---|
| 20 | END
|
|---|
| 21 |
|
|---|
| 22 | mkdir subdir
|
|---|
| 23 | cat > subdir/Makefile.am << 'END'
|
|---|
| 24 | bin_PROGRAMS = fred
|
|---|
| 25 | END
|
|---|
| 26 |
|
|---|
| 27 | : > subdir/config.h.in
|
|---|
| 28 |
|
|---|
| 29 | $AUTOMAKE || exit 1
|
|---|
| 30 |
|
|---|
| 31 | # Make sure subdir Makefile.in doesn't itself look in the subdir.
|
|---|
| 32 | (grep 'subdir/config.h' subdir/Makefile.in | grep -v CONFIG_HEADERS) && exit 1
|
|---|
| 33 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.