| Line | |
|---|
| 1 | #! /bin/sh
|
|---|
| 2 |
|
|---|
| 3 | # Test to make sure the C++ linker is used when appropriate.
|
|---|
| 4 | # Matthew D. Langston <[email protected]>
|
|---|
| 5 |
|
|---|
| 6 | . $srcdir/defs || exit 1
|
|---|
| 7 |
|
|---|
| 8 | cat >> configure.in << 'END'
|
|---|
| 9 | AC_PROG_CC
|
|---|
| 10 | AC_PROG_CXX
|
|---|
| 11 | END
|
|---|
| 12 |
|
|---|
| 13 | cat > Makefile.am << 'END'
|
|---|
| 14 | bin_PROGRAMS = lavalamp
|
|---|
| 15 | lavalamp_SOURCES = lava.c lamp.cxx
|
|---|
| 16 | END
|
|---|
| 17 |
|
|---|
| 18 | : > lava.c
|
|---|
| 19 | : > lamp.cxx
|
|---|
| 20 |
|
|---|
| 21 | $AUTOMAKE || exit 1
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 | # We should only see the C++ linker in the rules of `Makefile.in'.
|
|---|
| 25 |
|
|---|
| 26 | # Look for this macro not at the beginning of any line; that will have
|
|---|
| 27 | # to be good enough for now.
|
|---|
| 28 | grep '.\$(CXXLINK)' Makefile.in || exit 1
|
|---|
| 29 |
|
|---|
| 30 | # We should not see these patterns:
|
|---|
| 31 | grep '.\$(FLINK)' Makefile.in && exit 1
|
|---|
| 32 | grep '.\$(LINK)' Makefile.in && exit 1
|
|---|
| 33 |
|
|---|
| 34 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.