/[public]/psiconv/trunk/configure.in
ViewVC logotype

Diff of /psiconv/trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 36 Revision 52
1dnl Process this file with autoconf to produce a configure script. 1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(psiconv) 2AC_INIT(psiconv)
3AM_INIT_AUTOMAKE(psiconv,0.6.0) 3AM_INIT_AUTOMAKE(psiconv,0.6.1)
4 4
5AM_CONFIG_HEADER(config.h) 5AM_CONFIG_HEADER(config.h)
6 6
7dnl Checks for programs. 7dnl Checks for programs.
8AM_PROG_LIBTOOL 8AM_PROG_LIBTOOL
64AC_ARG_WITH(imagemagick, 64AC_ARG_WITH(imagemagick,
65 [ --with-imagemagick enable ImageMagick (default = yes)], 65 [ --with-imagemagick enable ImageMagick (default = yes)],
66 [IMAGEMAGICK=$withval], 66 [IMAGEMAGICK=$withval],
67 [IMAGEMAGICK='yes']) 67 [IMAGEMAGICK='yes'])
68if test x"$IMAGEMAGICK" != xno ; then 68if test x"$IMAGEMAGICK" != xno ; then
69 AC_CHECK_LIB(Magick,MagickWarning,IMAGEMAGICK=yes,IMAGEMAGICK=no) 69 AC_CHECK_LIB(Magick,ConstituteImage,IMAGEMAGICK=yes,IMAGEMAGICK=no)
70 if test x"$IMAGEMAGICK" != xno ; then
71 LIBS_SAVE="$LIBS"
72 LIBS="$LIBS -lMagick"
73 AC_MSG_CHECKING(whether GetMagickInfo works)
74 AC_TRY_RUN([ #include <magick/magick.h>
75 #include <stdio.h>
76 int main(void) { MagickInfo *mi;GetMagickInfo(NULL);
77 #if defined(HasLTDL)
78 OpenModules();
79 #endif
80 return (NULL != GetMagickInfo(NULL)); }],
81 IMAGEMAGICK=yes,IMAGEMAGICK=no,IMAGEMAGICK=yes)
82 AC_MSG_RESULT($IMAGEMAGICK)
83 LIBS="$LIBS_SAVE"
84 fi
70 if test x"$IMAGEMAGICK" = xno ; then 85 if test x"$IMAGEMAGICK" = xno ; then
71 AC_MSG_WARN(ImageMagick support disabled!) 86 AC_MSG_WARN(ImageMagick support disabled!)
72 fi 87 fi
73fi 88fi
74if test x"$IMAGEMAGICK" = xyes ; then 89if test x"$IMAGEMAGICK" = xyes ; then

Legend:
Removed from v.36  
changed lines
  Added in v.52

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26