1 | dnl Process this file with autoconf to produce a configure script. |
1 | dnl Process this file with autoconf to produce a configure script. |
2 | AC_INIT |
2 | AC_INIT |
3 | AC_CONFIG_SRCDIR([lib/psiconv]) |
3 | AC_CONFIG_SRCDIR([lib/psiconv]) |
4 | AM_INIT_AUTOMAKE(psiconv,0.9.8) |
4 | AM_INIT_AUTOMAKE(psiconv,0.9.9) |
5 | |
5 | |
6 | AM_CONFIG_HEADER(config.h) |
6 | AM_CONFIG_HEADER(config.h) |
7 | |
7 | |
8 | dnl Checks for programs. |
8 | dnl Checks for programs. |
9 | AM_PROG_LIBTOOL |
9 | AM_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" |
131 | dnl Note: CFLAGS can't be set for single directories, so we propagate them |
143 | dnl 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 |
… | |
… | |
281 | AC_ARG_WITH(imagemagick, |
293 | AC_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 | |
286 | AC_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]) |
298 | AC_CONFIG_FILES([Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile lib/psiconv/psiconv.conf.man 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]) |
287 | AC_OUTPUT |
299 | AC_OUTPUT |