/[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 255 Revision 344
1dnl Process this file with autoconf to produce a configure script. 1dnl Process this file with autoconf to produce a configure script.
2AC_INIT 2AC_INIT
3AC_CONFIG_SRCDIR([lib/psiconv]) 3AC_CONFIG_SRCDIR([lib/psiconv])
4AM_INIT_AUTOMAKE(psiconv,0.9.6) 4AM_INIT_AUTOMAKE(psiconv,0.9.9)
5 5
6AM_CONFIG_HEADER(config.h) 6AM_CONFIG_HEADER(config.h)
7 7
8dnl Checks for programs. 8dnl Checks for programs.
9AM_PROG_LIBTOOL 9AM_PROG_LIBTOOL
123 GetExceptionInfo(&exception); 123 GetExceptionInfo(&exception);
124 OpenModules(&exception); 124 OpenModules(&exception);
125 return (NULL == GetMagickInfo(NULL,&exception)); }], 125 return (NULL == GetMagickInfo(NULL,&exception)); }],
126 IMAGEMAGICK=1,IMAGEMAGICK=no,IMAGEMAGICK=no) 126 IMAGEMAGICK=1,IMAGEMAGICK=no,IMAGEMAGICK=no)
127 fi 127 fi
128 if test x"$IMAGEMAGICK" = xno ; then
129 # 100 equals GraphicsMagick
130 AC_TRY_RUN([ #include <magick/api.h>
131 int main(void) {
132 MagickInfo **formats;
133 ExceptionInfo exception;
134 InitializeMagick(NULL);
135 GetExceptionInfo(&exception);
136 return (NULL == GetMagickInfoArray(&exception)); }],
137 IMAGEMAGICK=100,IMAGEMAGICK=no,IMAGEMAGICK=no)
138 fi
139
128 AC_MSG_RESULT("Version $IMAGEMAGICK") 140 AC_MSG_RESULT("Version $IMAGEMAGICK")
129 LDFLAGS="$LDFLAGS_OLD" 141 LDFLAGS="$LDFLAGS_OLD"
130 LIBS="$LIBS_OLD" 142 LIBS="$LIBS_OLD"
131dnl Note: CFLAGS can't be set for single directories, so we propagate them 143dnl Note: CFLAGS can't be set for single directories, so we propagate them
132 if test x"$IMAGEMAGICK" = xno ; then 144 if test x"$IMAGEMAGICK" = xno ; then
281AC_ARG_WITH(imagemagick, 293AC_ARG_WITH(imagemagick,
282 [ --with-imagemagick enable ImageMagick (default = yes)], 294 [ --with-imagemagick enable ImageMagick (default = yes)],
283 [IMAGEMAGICK=$withval], 295 [IMAGEMAGICK=$withval],
284 [IMAGEMAGICK='yes']) 296 [IMAGEMAGICK='yes'])
285 297
286AC_CONFIG_FILES([Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile program/Makefile program/psiconv/Makefile program/psiconv-config/Makefile program/psiconv-config/psiconv-config program/psiconv-config/psiconv-config.man lib/psiconv/general.h formats/Makefile docs/Makefile program/extra/Makefile etc/Makefile]) 298AC_CONFIG_FILES([Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile program/Makefile program/psiconv/Makefile program/psiconv-config/Makefile program/psiconv-config/psiconv-config program/psiconv-config/psiconv-config.man lib/psiconv/general.h formats/Makefile docs/Makefile program/extra/Makefile etc/Makefile examples/Makefile])
287AC_OUTPUT 299AC_OUTPUT

Legend:
Removed from v.255  
changed lines
  Added in v.344

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