1 2006-04-15 Mike Frysinger <vapier@gentoo.org>
3 * libs/wine/Makefile.in (EXTRADEFS): Add @DLLDEFS@.
4 * libs/wine/debug.c: (parse_options): Compare WINEDEBUG runtime envvar to
5 WINE_NO_TRACE_MSGS and WINE_NO_DEBUG_MSGS compile time defines.
7 --- libs/wine/Makefile.in
8 +++ libs/wine/Makefile.in
9 @@ -5,7 +5,7 @@ VPATH = @srcdir@
12 VERSCRIPT = $(SRCDIR)/wine.map
13 -EXTRADEFS = -D__WINESRC__
14 +EXTRADEFS = -D__WINESRC__ @DLLDEFS@
15 EXTRALIBS = $(LIBPORT) @DLLIBS@ @CRTLIBS@
20 @@ -138,6 +138,26 @@ static void parse_options( const char *s
21 if (len != (p - opt)) continue;
22 if (!memcmp( opt, debug_classes[i], len )) /* found it */
24 +#ifdef WINE_NO_DEBUG_MSGS
25 + if (memcmp( opt, "trace", len ) != 0)
27 + static const char error_msg[] =
28 + "Unable to trace as Wine was configured without debug support.\n"
29 + "You will need to rebuild wine with the --enable-debug configure option.\n";
30 + write( 2, error_msg, sizeof(error_msg) - 1 );
34 +#ifdef WINE_NO_TRACE_MSGS
35 + if (memcmp( opt, "trace", len ) == 0)
37 + static const char error_msg[] =
38 + "Unable to trace as Wine was configured without trace support.\n"
39 + "You will need to rebuild wine with the --enable-trace configure option.\n";
40 + write( 2, error_msg, sizeof(error_msg) - 1 );
44 if (*p == '+') set |= 1 << i;
47 @@ -171,7 +191,14 @@ static void debug_usage(void)
48 " WINEDEBUG=[class]+xxx,[class]-yyy,...\n\n"
49 "Example: WINEDEBUG=+all,warn-heap\n"
50 " turns on all messages except warning heap messages\n"
51 - "Available message classes: err, warn, fixme, trace\n";
52 + "Available message classes: err, warn, fixme, trace\n"
53 +#ifdef WINE_NO_DEBUG_MSGS
54 + "\n* err/warn/fixme support has been disabled due to --disable-debug\n"
56 +#ifdef WINE_NO_TRACE_MSGS
57 + "\n* trace support has been disabled due to --disable-trace\n"
60 write( 2, usage, sizeof(usage) - 1 );