diff --git a/ChangeLog b/ChangeLog index 9e2a5f2d3a..083453d9bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Mon Aug 18 10:51:57 2003 Owen Taylor + + * configure.in: Rework handling of REBUILD_PNGS, + so that we also don't try to REBUILD_PNGS when + cross-compiling and there is no gdk-pixbuf-csource. + But give an error if gtk/stock-icons/gtkstockpixbufs.h + is not in the source tree. (Note that REBUILDS_PNG + was set backwards before, which is why you always + had to manually recreate gtkstockpixbufs.h!) + Mon Aug 18 10:19:55 2003 Owen Taylor * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 9e2a5f2d3a..083453d9bd 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,13 @@ +Mon Aug 18 10:51:57 2003 Owen Taylor + + * configure.in: Rework handling of REBUILD_PNGS, + so that we also don't try to REBUILD_PNGS when + cross-compiling and there is no gdk-pixbuf-csource. + But give an error if gtk/stock-icons/gtkstockpixbufs.h + is not in the source tree. (Note that REBUILDS_PNG + was set backwards before, which is why you always + had to manually recreate gtkstockpixbufs.h!) + Mon Aug 18 10:19:55 2003 Owen Taylor * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 9e2a5f2d3a..083453d9bd 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,13 @@ +Mon Aug 18 10:51:57 2003 Owen Taylor + + * configure.in: Rework handling of REBUILD_PNGS, + so that we also don't try to REBUILD_PNGS when + cross-compiling and there is no gdk-pixbuf-csource. + But give an error if gtk/stock-icons/gtkstockpixbufs.h + is not in the source tree. (Note that REBUILDS_PNG + was set backwards before, which is why you always + had to manually recreate gtkstockpixbufs.h!) + Mon Aug 18 10:19:55 2003 Owen Taylor * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 9e2a5f2d3a..083453d9bd 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,13 @@ +Mon Aug 18 10:51:57 2003 Owen Taylor + + * configure.in: Rework handling of REBUILD_PNGS, + so that we also don't try to REBUILD_PNGS when + cross-compiling and there is no gdk-pixbuf-csource. + But give an error if gtk/stock-icons/gtkstockpixbufs.h + is not in the source tree. (Note that REBUILDS_PNG + was set backwards before, which is why you always + had to manually recreate gtkstockpixbufs.h!) + Mon Aug 18 10:19:55 2003 Owen Taylor * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 9e2a5f2d3a..083453d9bd 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,13 @@ +Mon Aug 18 10:51:57 2003 Owen Taylor + + * configure.in: Rework handling of REBUILD_PNGS, + so that we also don't try to REBUILD_PNGS when + cross-compiling and there is no gdk-pixbuf-csource. + But give an error if gtk/stock-icons/gtkstockpixbufs.h + is not in the source tree. (Note that REBUILDS_PNG + was set backwards before, which is why you always + had to manually recreate gtkstockpixbufs.h!) + Mon Aug 18 10:19:55 2003 Owen Taylor * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the diff --git a/configure.in b/configure.in index f148834e2b..82e69d8849 100644 --- a/configure.in +++ b/configure.in @@ -792,12 +792,6 @@ dnl Test for libpng *** from CVS.]) fi - REBUILD_PNGS=\# - if test -z "$LIBPNG"; then - REBUILD_PNGS= - fi - AC_SUBST(REBUILD_PNGS) - AC_SUBST(LIBTIFF) AC_SUBST(LIBJPEG) AC_SUBST(LIBPNG) @@ -919,6 +913,11 @@ fi AM_CONDITIONAL(USE_MMX, test x$use_mmx_asm = xyes) +REBUILD_PNGS= +if test -z "$LIBPNG"; then + REBUILD_PNGS=# +fi + dnl Look for a host system's gdk-pixbuf-csource if we are cross-compiling AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes) @@ -926,10 +925,20 @@ AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes) if test $cross_compiling = yes; then AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no) if test x$GDK_PIXBUF_CSOURCE = xno; then - AC_MSG_ERROR(Could not find a gdk-pixbuf-csource in your PATH) + REBUILD_PNGS=# fi fi +if test ! -f $srcdir/gtk/stock-icons/gtkstockpixbufs.h && + test "x$REBUILD_PNGS" = "x#" ; then + AC_MSG_ERROR([ +*** gtkstockpixbufs.h is not in the tree, and cannot be built +*** because you don't have libpng, or (when cross-compiling) you +*** don't have a prebuilt gdk-pixbuf-csource on the host system.]) +fi + +AC_SUBST(REBUILD_PNGS) + GDK_PIXBUF_PACKAGES="gmodule-2.0 gobject-2.0" GDK_PIXBUF_EXTRA_LIBS="$STATIC_LIB_DEPS $MATH_LIB" GDK_PIXBUF_EXTRA_CFLAGS=