This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Colon in AC_OUTPUT prevents .deps creation


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
------------------------------------------



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]