Make sure we don't build both shared and static at the same time on
authorTor Lillqvist <tml@novell.com>
Thu, 3 Apr 2008 22:03:32 +0000 (22:03 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Thu, 3 Apr 2008 22:03:32 +0000 (22:03 +0000)
commit47d61b50f829b127e9beb7cbc0b43983aa5b0e52
tree5d6e58e27ad85a60c7f01a9a9bd027f8432c5e6a
parent285b31e7a512791405ec378d397dac298aff41a0
Make sure we don't build both shared and static at the same time on

2008-04-04  Tor Lillqvist  <tml@novell.com>

* configure.in: Make sure we don't build both shared and static at
the same time on Windows. Put a #define for
GLIB_STATIC_COMPILATION into glibconfig.h in the static case, so
that the use of variables from libglib gets the dllimport stuff in
the GLIB_VAR macro as defined in gtypes.h automatically
correct. This means that a shared and static build of GLib can't
be installed in the same prefix on Windows, which sucks a bit. But
with variables in the GLib API, there isn't much we can do
otherwise. The alternative would be to force the developer who
compiles against a statically built GLib to use
-DGLIB_STATIC_COMPILATION.

svn path=/trunk/; revision=6820
ChangeLog
configure.in