# HG changeset patch # User Christian Hammond # Date 1059904035 0 # Node ID 2e23ccbccdec8dfdab28f7dffaaf0b867db45866 # Parent dfde69e105ae9c88b46dd3e9f7ad40881a534307 [gaim-migrate @ 6864] Lots of Makefile.am and configure.ac fixes from Robot101. Doumo arigatou, Mr. Roboto! committer: Tailor Script diff -r dfde69e105ae -r 2e23ccbccdec configure.ac --- a/configure.ac Sun Aug 03 02:21:39 2003 +0000 +++ b/configure.ac Sun Aug 03 09:47:15 2003 +0000 @@ -19,8 +19,8 @@ AM_GNU_GETTEXT_VERSION(0.10.40) AM_GNU_GETTEXT -AC_CYGWIN - +dnl we don't use autobreak on cygwin!! +dnl AC_CYGWIN dnl Checks for header files. AC_HEADER_STDC @@ -77,9 +77,6 @@ ]) ]) -dnl This is a bad, bad hack. I am a bad, bad man. -CFLAGS="$CFLAGS -I/opt/include -I\$(top_srcdir)" - AC_ARG_ENABLE(distrib,,,enable_distrib=no) AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") AC_ARG_ENABLE(multi, [ --disable-multi disable multiple connections],,enable_multi=yes) @@ -135,7 +132,7 @@ AC_ARG_WITH(krb4, [ --with-krb4=PREFIX Compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no") if test "$enable_debug" = yes ; then - CFLAGS="$CFLAGS -Wall -g3 -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" + DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall -g3 -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) fi @@ -149,7 +146,7 @@ *** always available at http://www.gtk.org/.])) AC_PATH_PROG(gaimpath, gaim) -CFLAGS="$CFLAGS $GTK_CFLAGS" +AC_SUBST(GTK_CFLAGS) AC_PATH_XTRA # We can't assume that $x_libraries will be set, because autoconf does not @@ -313,11 +310,11 @@ if test "$ac_cv_cygwin" = yes ; then LDADD="$LDADD -static" - CFLAGS="$CFLAGS -Wall -g" + DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall -g" AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) fi -AC_SUBST(CFLAGS) +AC_SUBST(DEBUG_CFLAGS) AC_SUBST(LDADD) AC_SUBST(LIBS) diff -r dfde69e105ae -r 2e23ccbccdec plugins/Makefile.am --- a/plugins/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/plugins/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -52,10 +52,12 @@ fortuneprofile.pl AM_CPPFLAGS = \ - -I$(top_srcdir)/src \ + -DDATADIR=\"$(datadir)\" \ -DVERSION=\"$(VERSION)\" \ - -DDATADIR=\"$(datadir)\" \ + -I$(top_srcdir) \ + -I$(top_srcdir)/src \ $(DEBUG_CFLAGS) \ + $(GTK_CFLAGS) \ $(PLUGIN_CFLAGS) # diff -r dfde69e105ae -r 2e23ccbccdec plugins/docklet/Makefile.am --- a/plugins/docklet/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/plugins/docklet/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -19,8 +19,10 @@ endif -INCLUDES = \ - -I$(top_srcdir)/src \ +AM_CPPFLAGS = \ + -DDATADIR=\"$(datadir)\" \ -DVERSION=\"$(VERSION)\" \ - -DDATADIR=\"$(datadir)\" \ - $(DEBUG_CFLAGS) + -I$(top_srcdir) \ + -I$(top_srcdir)/src \ + $(DEBUG_CFLAGS) \ + $(GTK_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec plugins/gaim-remote/Makefile.am --- a/plugins/gaim-remote/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/plugins/gaim-remote/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -22,10 +22,10 @@ endif - -INCLUDES = \ +AM_CPPFLAGS = \ + -DDATADIR=\"$(datadir)\" \ + -DVERSION=\"$(VERSION)\" \ + -I$(top_srcdir) \ -I$(top_srcdir)/src \ - -I$(top_srcdir)/plugins \ - -DVERSION=\"$(VERSION)\" \ - -DDATADIR=\"$(datadir)\" \ + $(GTK_CFLAGS) \ $(DEBUG_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec plugins/gestures/Makefile.am --- a/plugins/gestures/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/plugins/gestures/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -15,8 +15,10 @@ endif -INCLUDES = \ - -I$(top_srcdir)/src \ +AM_CPPFLAGS = \ + -DDATADIR=\"$(datadir)\" \ -DVERSION=\"$(VERSION)\" \ - -DDATADIR=\"$(datadir)\" \ - $(DEBUG_CFLAGS) + -I$(top_srcdir) \ + -I$(top_srcdir)/src \ + $(DEBUG_CFLAGS) \ + $(GTK_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec plugins/perl/Makefile.am --- a/plugins/perl/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/plugins/perl/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -10,8 +10,10 @@ perl_la_SOURCES = perl.c AM_CPPFLAGS = \ + -DVERSION=\"$(VERSION)\" \ + -I$(top_srcdir) \ -I$(top_srcdir)/src \ - -DVERSION=\"$(VERSION)\" \ $(DEBUG_CFLAGS) \ + $(GTK_CFLAGS) \ $(PLUGIN_CFLAGS) \ $(PERL_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec plugins/ticker/Makefile.am --- a/plugins/ticker/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/plugins/ticker/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -16,10 +16,10 @@ endif -CFLAGS += $(DEBUG_CFLAGS) -DDATADIR=\"$(datadir)\" - - -INCLUDES = \ +AM_CPPFLAGS = \ + -DDATADIR=\"$(datadir)\" \ + -DVERSION=\"$(VERSION)\" \ -I$(top_srcdir) \ -I$(top_srcdir)/src \ - -DVERSION=\"$(VERSION)\" + $(DEBUG_CFLAGS) \ + $(GTK_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec src/Makefile.am --- a/src/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/src/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -156,11 +156,13 @@ -L$(top_builddir)/plugins/gaim-remote -lgaim-remote AM_CPPFLAGS = \ - $(GTKSPELL_CFLAGS) \ + -DDATADIR=\"$(datadir)\" \ + -DLIBDIR=\"$(libdir)/gaim/\" \ + -DLOCALEDIR=\"$(datadir)/locale\" \ + -I$(top_srcdir) \ + -I$(top_srcdir)/plugins \ $(AUDIOFILE_CFLAGS) \ $(AO_CFLAGS) \ - -DLOCALEDIR=\"$(datadir)/locale\" \ - -DLIBDIR=\"$(libdir)/gaim/\" \ - -DDATADIR=\"$(datadir)\" \ $(DEBUG_CFLAGS) \ - -I$(top_srcdir)/plugins + $(GTK_CFLAGS) \ + $(GTKSPELL_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec src/protocols/gg/Makefile.am --- a/src/protocols/gg/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/src/protocols/gg/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -32,5 +32,7 @@ endif AM_CPPFLAGS = \ + -I$(top_srcdir) \ -I$(top_srcdir)/src \ - $(DEBUG_CFLAGS) + $(DEBUG_CFLAGS) \ + $(GTK_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec src/protocols/icq/Makefile.am --- a/src/protocols/icq/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/src/protocols/icq/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -63,5 +63,7 @@ libicq_la_SOURCES = $(ICQSOURCES) AM_CPPFLAGS = \ + -I$(top_srcdir)c \ -I$(top_srcdir)/src \ - $(DEBUG_CFLAGS) + $(DEBUG_CFLAGS) \ + $(GTK_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec src/protocols/irc/Makefile.am --- a/src/protocols/irc/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/src/protocols/irc/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -28,5 +28,7 @@ endif AM_CPPFLAGS = \ + -I$(top_srcdir) \ -I$(top_srcdir)/src \ + $(GTK_CFLAGS) \ $(DEBUG_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec src/protocols/jabber/Makefile.am --- a/src/protocols/jabber/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/src/protocols/jabber/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -71,5 +71,7 @@ endif AM_CPPFLAGS = \ + -I$(top_srcdir) \ -I$(top_srcdir)/src \ - $(DEBUG_CFLAGS) + $(DEBUG_CFLAGS) \ + $(GTK_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec src/protocols/msn/Makefile.am --- a/src/protocols/msn/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/src/protocols/msn/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -56,5 +56,7 @@ endif AM_CPPFLAGS = \ + -I$(top_srcdir) \ -I$(top_srcdir)/src \ + $(GTK_CFLAGS) \ $(DEBUG_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec src/protocols/napster/Makefile.am --- a/src/protocols/napster/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/src/protocols/napster/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -22,5 +22,7 @@ endif AM_CPPFLAGS = \ + -I$(top_srcdir) \ -I$(top_srcdir)/src \ + $(GTK_CFLAGS) \ $(DEBUG_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec src/protocols/oscar/Makefile.am --- a/src/protocols/oscar/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/src/protocols/oscar/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -67,5 +67,7 @@ endif AM_CPPFLAGS = \ + -I$(top_srcdir) \ -I$(top_srcdir)/src \ + $(GTK_CFLAGS) \ $(DEBUG_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec src/protocols/toc/Makefile.am --- a/src/protocols/toc/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/src/protocols/toc/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -26,5 +26,7 @@ endif AM_CPPFLAGS = \ + -I$(top_srcdir) \ -I$(top_srcdir)/src \ + $(GTK_CFLAGS) \ $(DEBUG_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec src/protocols/trepia/Makefile.am --- a/src/protocols/trepia/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/src/protocols/trepia/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -26,5 +26,7 @@ endif AM_CPPFLAGS = \ + -I$(top_srcdir) \ -I$(top_srcdir)/src \ + $(GTK_CFLAGS) \ $(DEBUG_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec src/protocols/yahoo/Makefile.am --- a/src/protocols/yahoo/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/src/protocols/yahoo/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -28,5 +28,7 @@ endif AM_CPPFLAGS = \ + -I$(top_srcdir) \ -I$(top_srcdir)/src \ + $(GTK_CFLAGS) \ $(DEBUG_CFLAGS) diff -r dfde69e105ae -r 2e23ccbccdec src/protocols/zephyr/Makefile.am --- a/src/protocols/zephyr/Makefile.am Sun Aug 03 02:21:39 2003 +0000 +++ b/src/protocols/zephyr/Makefile.am Sun Aug 03 09:47:15 2003 +0000 @@ -89,8 +89,10 @@ endif AM_CPPFLAGS = \ + -I$(top_srcdir) \ -I$(top_srcdir)/src \ - -I\$(top_srcdir)/src/protocols \ + -I$(top_srcdir)/src/protocols \ -DCONFDIR=\"$(confdir)\" \ + $(GTK_CFLAGS) \ $(KRB4_CFLAGS) \ $(DEBUG_CFLAGS)