This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Colon in AC_OUTPUT prevents .deps creation
- To: <automake at gnu dot org>
- Subject: Colon in AC_OUTPUT prevents .deps creation
- From: Pavel Roskin <proski at gnu dot org>
- Date: Tue, 28 Aug 2001 04:38:39 -0400 (EDT)
- List-Id: Discussion list for automake <automake.gnu.org>
Hello!
Another bug in Automake 1.5. Using ':' in AC_OUTPUT (e.g. to use an
alternate Makefile.am) prevents configure from creating .deps directories.
The test depcomp3.test is attached.
--
Regards,
Pavel Roskin
------------------------------------------
#! /bin/sh
# Make sure that .dep is created even when ":" is used in AC_OUTPUT
# From Pavel Roskin.
. $srcdir/defs || exit 1
cat > configure.in << 'END'
AC_INIT(subdir/foo.c)
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
PACKAGE=nonesuch
VERSION=nonesuch
AC_PROG_CC
AC_OUTPUT(Makefile subdir/Makefile:subdir/Mk.in)
END
cat > Makefile.am << 'END'
SUBDIRS = subdir
END
mkdir subdir
cat > subdir/Mk.am << 'END'
bin_PROGRAMS = foo
foo_SOURCES = foo.c
END
: > subdir/foo.c
# Fail gracefully if no autoconf.
$needs_autoconf
# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 77
# Ignore user CFLAGS.
CFLAGS=
export CFLAGS
$ACLOCAL || exit 1
$AUTOMAKE --add-missing || exit 1
$AUTOCONF || exit 1
CC='gcc' ./configure
test -d subdir/.deps
------------------------------------------