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(psiconv) |
2 | AC_INIT(psiconv) |
3 | AM_INIT_AUTOMAKE(psiconv,0.5.0) |
3 | AM_INIT_AUTOMAKE(psiconv,0.5.0a) |
4 | |
4 | |
5 | AM_CONFIG_HEADER(config.h) |
5 | AM_CONFIG_HEADER(config.h) |
6 | |
6 | |
7 | dnl Checks for programs. |
7 | dnl Checks for programs. |
8 | AM_PROG_LIBTOOL |
8 | AM_PROG_LIBTOOL |
9 | |
9 | |
10 | dnl Checks for libraries. |
10 | dnl Checks for libraries. |
|
|
11 | AC_ARG_WITH(imagemagick, |
|
|
12 | [ --with-imagemagick enable ImageMagick (default = yes)], |
|
|
13 | [IMAGEMAGICK=$withval], |
|
|
14 | [IMAGEMAGICK='yes']) |
|
|
15 | if test x"$IMAGEMAGICK" != xno ; then |
|
|
16 | AC_CHECK_LIB(Magick,MagickWarning,IMAGEMAGICK=yes,IMAGEMAGICK=no) |
|
|
17 | if test x"$IMAGEMAGICK" = xno ; then |
|
|
18 | AC_MSG_WARN(ImageMagick support disabled!) |
|
|
19 | fi |
|
|
20 | fi |
|
|
21 | if test x"$IMAGEMAGICK" = xyes ; then |
|
|
22 | LIB_MAGICK=-lMagick |
|
|
23 | AC_DEFINE(IMAGEMAGICK) |
|
|
24 | else |
|
|
25 | LIB_MAGICK= |
|
|
26 | fi |
|
|
27 | AC_SUBST(LIB_MAGICK) |
11 | |
28 | |
12 | dnl Checks for header files. |
29 | dnl Checks for header files. |
13 | AC_HEADER_STDC |
30 | AC_HEADER_STDC |
14 | AC_CHECK_HEADERS(unistd.h) |
31 | AC_CHECK_HEADERS(unistd.h) |
15 | |
32 | |