--- configure.orig 2011-11-11 20:59:26 UTC +++ configure @@ -7360,9 +7360,9 @@ $as_echo_n "checking if libpng is usable SAVED_LDFLAGS=$LDFLAGS SAVED_LIBS=$LIBS - CFLAGS+=" $LIBPNG_CFLAGS" - LDFLAGS+=" $LIBPNG_LDFLAGS" - LIBS+=" $LIBPNG_LIBS" + CFLAGS="$CFLAGS $LIBPNG_CFLAGS" + LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS" + LIBS="$LIBS $LIBPNG_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */