# HG changeset patch # User Romain Francoise # Date 1285786354 -7200 # Node ID d631a67d11386c0fa354b9977dd851cfdf773fdb # Parent face715f995c19bf5cd209516dbebc827b9e5c2d configure.in: Don't enable ImageMagick unless HAVE_X11. diff -r face715f995c -r d631a67d1138 ChangeLog --- a/ChangeLog Wed Sep 29 17:07:34 2010 +0200 +++ b/ChangeLog Wed Sep 29 20:52:34 2010 +0200 @@ -1,3 +1,7 @@ +2010-09-29 Romain Francoise + + * configure.in: Don't enable ImageMagick unless HAVE_X11. + 2010-09-28 Glenn Morris * configure.in (HAVE_GNUTLS): Add a description to make autoheader diff -r face715f995c -r d631a67d1138 configure --- a/configure Wed Sep 29 17:07:34 2010 +0200 +++ b/configure Wed Sep 29 20:52:34 2010 +0200 @@ -8639,8 +8639,9 @@ fi HAVE_IMAGEMAGICK=no -if test "${with_imagemagick}" != "no"; then - IMAGEMAGICK_MODULE="Wand" +if test "${HAVE_X11}" = "yes"; then + if test "${with_imagemagick}" != "no"; then + IMAGEMAGICK_MODULE="Wand" succeeded=no @@ -8738,13 +8739,13 @@ - if test $HAVE_IMAGEMAGICK = yes; then + if test $HAVE_IMAGEMAGICK = yes; then $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h - CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS" - LIBS="$IMAGEMAGICK_LIBS $LIBS" - for ac_func in MagickExportImagePixels + CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS" + LIBS="$IMAGEMAGICK_LIBS $LIBS" + for ac_func in MagickExportImagePixels do : ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels" if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then : @@ -8755,6 +8756,7 @@ fi done + fi fi fi diff -r face715f995c -r d631a67d1138 configure.in --- a/configure.in Wed Sep 29 17:07:34 2010 +0200 +++ b/configure.in Wed Sep 29 20:52:34 2010 +0200 @@ -1840,17 +1840,19 @@ fi HAVE_IMAGEMAGICK=no -if test "${with_imagemagick}" != "no"; then - IMAGEMAGICK_MODULE="Wand" - PKG_CHECK_MODULES(IMAGEMAGICK, $IMAGEMAGICK_MODULE, HAVE_IMAGEMAGICK=yes, :) - AC_SUBST(IMAGEMAGICK_CFLAGS) - AC_SUBST(IMAGEMAGICK_LIBS) - - if test $HAVE_IMAGEMAGICK = yes; then - AC_DEFINE(HAVE_IMAGEMAGICK, 1, [Define to 1 if using imagemagick.]) - CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS" - LIBS="$IMAGEMAGICK_LIBS $LIBS" - AC_CHECK_FUNCS(MagickExportImagePixels) +if test "${HAVE_X11}" = "yes"; then + if test "${with_imagemagick}" != "no"; then + IMAGEMAGICK_MODULE="Wand" + PKG_CHECK_MODULES(IMAGEMAGICK, $IMAGEMAGICK_MODULE, HAVE_IMAGEMAGICK=yes, :) + AC_SUBST(IMAGEMAGICK_CFLAGS) + AC_SUBST(IMAGEMAGICK_LIBS) + + if test $HAVE_IMAGEMAGICK = yes; then + AC_DEFINE(HAVE_IMAGEMAGICK, 1, [Define to 1 if using imagemagick.]) + CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS" + LIBS="$IMAGEMAGICK_LIBS $LIBS" + AC_CHECK_FUNCS(MagickExportImagePixels) + fi fi fi