all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christoph <cschol2112@googlemail.com>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: imagemagick support on W32
Date: Thu, 30 Sep 2010 20:27:51 -0600	[thread overview]
Message-ID: <4CA54727.6010900@gmail.com> (raw)
In-Reply-To: <AANLkTi=7wO4VNjOyUH5WrtDSh8wa1Co35=P=pHnr6hE0@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 275 bytes --]

On 9/30/2010 7:52 PM, Juanma Barranquero wrote:
> On Fri, Oct 1, 2010 at 03:44, Christoph<cschol2112@googlemail.com>  wrote:
>
>> I can provide a patch bundle
>> with my changes if anybody wants to test.
>
> Yes, please.
>
>      Juanma

Find the bundle attached.

Christoph

[-- Attachment #2: ImageMagickW32-v1.txt --]
[-- Type: text/plain, Size: 6070 bytes --]

# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: cschol2112@gmail.com-20101001021447-7im3exf3jxezlv3c
# target_branch: http://bzr.savannah.gnu.org/r/emacs/trunk/
# testament_sha1: e040846506896569ffaca49ec27f40c58ff3db36
# timestamp: 2010-09-30 20:15:38 -0600
# base_revision_id: larsi@gnus.org-20100927205335-oiuk2p3qjp93s9p2
# 
# Begin patch
=== modified file 'nt/configure.bat'
--- nt/configure.bat	2010-09-22 23:14:00 +0000
+++ nt/configure.bat	2010-10-01 02:14:47 +0000
@@ -113,6 +113,7 @@
 if "%1" == "--without-gif" goto withoutgif
 if "%1" == "--without-tiff" goto withouttiff
 if "%1" == "--without-xpm" goto withoutxpm
+if "%1" == "--without-imagemagick" goto withoutimagemagick
 if "%1" == "--with-svg" goto withsvg
 if "%1" == "--distfiles" goto distfiles
 if "%1" == "" goto checkutils
@@ -135,6 +136,7 @@
 echo.   --without-gif           do not use GIF library even if it is installed
 echo.   --without-tiff          do not use TIFF library even if it is installed
 echo.   --without-xpm           do not use XPM library even if it is installed
+echo.   --without-imagemagick   do not use ImageMagick library even if it is installed
 echo.   --with-svg              use the RSVG library (experimental)
 echo.   --distfiles             path to files for make dist, e.g. libXpm.dll
 goto end
@@ -254,6 +256,16 @@
 shift
 goto again
 
+rem ----------------------------------------------------------------------
+
+:withoutimagemagick
+set imagemagicksupport=N
+set HAVE_IMAGEMAGICK=
+shift
+goto again
+
+rem ----------------------------------------------------------------------
+
 :withsvg
 shift
 set svgsupport=Y
@@ -561,6 +573,32 @@
 :xpmDone
 rm -f junk.c junk.obj
 
+if (%imagemagicksupport%) == (N) goto imagemagickDone
+
+echo Checking for ImageMagick...
+rem The following #define is needed to compile without error
+echo #define _NO_OLDNAMES >>junk.c
+echo #include "wand/MagickWand.h" >>junk.c
+echo main (){} >>junk.c
+rem   -o option is ignored with cl, but allows result to be consistent.
+echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log
+%COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>>config.log
+if exist junk.obj goto haveImagemagick
+
+echo ...wand/MagickWand.h not found, building without ImageMagick support.
+echo The failed program was: >>config.log
+type junk.c >>config.log
+
+set HAVE_IMAGEMAGICK=
+goto :imagemagickDone
+
+:haveImagemagick
+echo ...ImageMagick headers available, building with ImageMagick support.
+set HAVE_IMAGEMAGICK=1
+
+:imagemagickDone
+rm -f junk.c junk.obj
+
 if not (%svgsupport%) == (Y) goto :svgDone
 echo Checking for librsvg...
 echo #include "librsvg/rsvg.h" >junk.c
@@ -656,6 +694,7 @@
 if not "(%HAVE_GIF%)" == "()" echo #define HAVE_GIF 1 >>config.tmp
 if not "(%HAVE_TIFF%)" == "()" echo #define HAVE_TIFF 1 >>config.tmp
 if not "(%HAVE_XPM%)" == "()" echo #define HAVE_XPM 1 >>config.tmp
+if not "(%HAVE_IMAGEMAGICK%)" == "()" echo #define HAVE_IMAGEMAGICK 1 >>config.tmp
 if "(%HAVE_RSVG%)" == "(1)" echo #define HAVE_RSVG 1 >>config.tmp
 
 echo /* End of settings from configure.bat.  */ >>config.tmp
@@ -739,12 +778,18 @@
  echo   Install libtiff development files or use --without-tiff
 
 :checkgif
-if not "(%HAVE_GIF%)" == "()" goto checkdistfiles
+if not "(%HAVE_GIF%)" == "()" goto checkimagemagick
 if (%gifsupport%) == (N) goto checkdistfiles
  set libsOK=0
  echo GIF support is missing.
  echo   Install giflib or libungif development files or use --without-gif
 
+:checkimagemagick
+if not "(%HAVE_IMAGEMAGICK%)" == "()" goto checkdistfiles
+ set libsOK=0
+ echo ImageMagick support is missing.
+ echo   Install ImageMagick development files or use --without-imagemagick
+
 :checkdistfiles
 if "(%HAVE_DISTFILES%)" == "()" goto donelibchecks
 if (%distFilesOk%) == (1) goto donelibchecks

# Begin bundle
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWe/c2q4AAohfgAASWnf/93/v
3YC////6UAYZrSe2Q53o8O9w0Y6ru4SSTIaU9Gmmg0JoPSBPKek2oaNogDRkNBKQQ2poNJohoGgA
AAAAAAGQmgITTQymI1PU2kyEAMEPUZMg0AZVBkAGg0aBoNAaMmIGgNNqAASKJoaCCmnqHiZTaMJN
PU0yBkMgBo0NvBiiAe/1Dbp1OCVQ7hPVnYEuAH8ZMNHjvsnCy1pRQi8KMKpJCbexx8GXt/Rvxugz
fDx53/Jqn5dUaQCt3/vKL554t5nTQod66E2QPKpIBGcVhqhPdPfEhTQOtHKajtiIgAr8QcIW9cGH
LyL2eRXWTeWnRRCEe1XQPMR1deIGqvj2TeEvpCEc1a5fGR7/GGdz9ErpcDtqYlbbLdHnwNR/ZdTQ
eqd04s4y0W6Pbi0vQ0GFrt4VVkITRZUSJ1wDbXsyjFqFhRort1wS+u/Epet6C7lblyy56ADzFkIV
EAqPeYCPOd2SbL2A4JEzJlf6tbKAXW5rpzcDFHkVLTWmF6uoUJydZrohxPWtbF0Tq9MetuZ10RxT
fdiCCVgHhLAiGlOFM5HF4MNm/Zx1goYYdERSTDWMUBDgr6HUH+B4DoBumC0y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UBQIFD
BQQoA7nAN7kcjrljOvqQFUMyp08CdSFCbwvlVmU6AQ3aAJAuTJMARQjxPUwIkLUyagWAHK8wO8mB
gRsxJeOCVBaXLcvFXtDMoG6kc1SWhKWV9S1Jy0tnTBh5CQUAhzAiRWrKIGPTY8Dng6aSFTEFUVCo
biAvNKi+q61Gu9doSjOFlYWOOKx9ajWFUKTjamBAc5UAWw6IEbluOWMihpg8Ktg3Y83QSEyjBgi9
4hMqlkLBjooC00qVmZkmKWDGIqFYQYlMr8aW3yyyhMMbtAKCWYL1hNZSTYZmWi8XSmZSaYZNdtxO
AcKbNeT7FGsTCLQox9tWQlS8vT/i7kinChId+5tVwA==

  reply	other threads:[~2010-10-01  2:27 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-01  1:44 imagemagick support on W32 Christoph
2010-10-01  1:52 ` Juanma Barranquero
2010-10-01  2:27   ` Christoph [this message]
2010-10-01  2:32     ` Christoph
2010-10-01  2:58       ` Christoph
2010-10-01  3:16         ` Juanma Barranquero
2010-10-01  4:16           ` Christoph
2010-10-01  7:30             ` Eli Zaretskii
2010-10-01 10:37             ` Juanma Barranquero
2010-10-01 11:36               ` joakim
2010-10-01 12:12                 ` Christoph
2010-10-01 12:38                   ` joakim
2010-10-01 19:57                     ` Juanma Barranquero
2010-10-01 20:41                       ` joakim
2010-10-02  3:31                     ` Jason Rumney
2010-10-01 19:51                 ` Juanma Barranquero
2010-10-01 20:44                   ` joakim
2010-10-01 20:53                     ` Juanma Barranquero
2010-10-01 12:04               ` Christoph
2010-10-01 19:55                 ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CA54727.6010900@gmail.com \
    --to=cschol2112@googlemail.com \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.