automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ifdef ... endif issue


From: Daniel Leidert
Subject: ifdef ... endif issue
Date: Sun, 26 Aug 2007 00:04:39 +0200

Hi,

I wanted to use this code in one of my Makefiles:

ifdef WIN32_EXTRA_LDFLAGS
WIN32_EXTRA_LDFLAGS += -export-symbols $(srcdir)/entities.def
endif

But that doesn't work. automake complains:

src/plugin_entities/Makefile.am:22: WIN32_EXTRA_LDFLAGS must be set with
`=' before using `+='
src/plugin_entities/Makefile.am:23: endif without if

1. Shouldn't automake stop complaining about setting WIN32_EXTRA_LDFLAGS
first, when I test for its existence?

2. Why is automake complaining about the endif "without" if? The
ifdef...endif condition is part of make and I know several Makefiles,
that use it. Is it a bug in automake?

Regards, Daniel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]