[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
automake: AM_CONDITIONAL failure with automake-1.7, was ok 1.6.3
From: |
Juergen Keil |
Subject: |
automake: AM_CONDITIONAL failure with automake-1.7, was ok 1.6.3 |
Date: |
Mon, 30 Sep 2002 16:45:16 +0200 (MEST) |
Hi,
it seems there's a regression with automake-1.7. The following
construct (see also the attached "cond26.test" test script intended for
automake's tests subdirectory) works OK with automake 1.6.3, but fails
with the error message
Makefile.am:1: `m4data_DATA' is used but `m4datadir' is undefined.
when using automake-1.7
-----------------------------------------------------------------
#!/bin/sh
cat >configure.in << 'EOF'
AC_INIT
AM_INIT_AUTOMAKE("foo", 1.0.0)
AC_SUBST(ACLOCAL_DIR)
AM_CONDITIONAL([INSTALL_M4], [test x"$ACLOCAL_DIR" != "x"])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
EOF
cat >Makefile.am << 'EOF'
m4data_DATA = foo.m4
if INSTALL_M4
m4datadir = @ACLOCAL_DIR@
else
m4datadir = $(datadir)/aclocal
endif
EXTRA_DIST = foo.m4
EOF
$ACLOCAL || exit 1
$AUTOMAKE || exit 1
-----------------------------------------------------------------
Platform: Solaris 8 x86
Perl: 5.0 patchlevel 5 subversion 3
gcc-3.2
cond26.test
Description: cond26.test
- automake: AM_CONDITIONAL failure with automake-1.7, was ok 1.6.3,
Juergen Keil <=