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.0) |
4 | AM_INIT_AUTOMAKE(psiconv,0.9.1) |
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 |
… | |
… | |
242 | no) asciidocs=false ;; |
242 | no) asciidocs=false ;; |
243 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-ascii-docs) ;; |
243 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-ascii-docs) ;; |
244 | esac],[asciidocs=false]) |
244 | esac],[asciidocs=false]) |
245 | AM_CONDITIONAL(ASCIIDOCS,test x$asciidocs = xtrue) |
245 | AM_CONDITIONAL(ASCIIDOCS,test x$asciidocs = xtrue) |
246 | |
246 | |
|
|
247 | AC_ARG_WITH(etcdir, |
|
|
248 | [ --with-etcdir=DIR Set configfile dir (default: SYSCONFDIR/psiconv)], |
|
|
249 | [PSICONVETCDIR=${withval}], |
|
|
250 | [PSICONVETCDIR=${sysconfdir}/psiconv]) |
|
|
251 | AC_SUBST(PSICONVETCDIR) |
|
|
252 | |
|
|
253 | AC_ARG_WITH(imagemagick, |
|
|
254 | [ --with-imagemagick enable ImageMagick (default = yes)], |
|
|
255 | [IMAGEMAGICK=$withval], |
|
|
256 | [IMAGEMAGICK='yes']) |
|
|
257 | |
247 | AC_CONFIG_FILES([Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile program/Makefile program/psiconv/Makefile lib/psiconv/general.h formats/Makefile docs/Makefile extra/Makefile]) |
258 | 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 lib/psiconv/general.h formats/Makefile docs/Makefile extra/Makefile etc/Makefile]) |
248 | AC_OUTPUT |
259 | AC_OUTPUT |