/[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 163 Revision 210
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.0) 4AM_INIT_AUTOMAKE(psiconv,0.9.1)
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
187AC_SUBST(INT_32_BIT) 187AC_SUBST(INT_32_BIT)
188 188
189dnl Checks for library functions. 189dnl Checks for library functions.
190AC_FUNC_VPRINTF 190AC_FUNC_VPRINTF
191AC_REPLACE_FUNCS(strdup) 191AC_REPLACE_FUNCS(strdup)
192AC_CHECK_FUNCS(getopt_long,,AC_LIBOBJ([getopt]);AC_LIBOBJ([getopt1])) 192AC_CHECK_FUNC(getopt_long,getopt=yes,getopt=no)
193if test $getopt = no; then
194 AC_LIBOBJ([getopt])
195 AC_LIBOBJ([getopt1])
196fi
193 197
194AC_ARG_ENABLE(dmalloc, 198AC_ARG_ENABLE(dmalloc,
195[ --enable-dmalloc Enable dmalloc for developers (default:off)], 199[ --enable-dmalloc Enable dmalloc for developers (default:off)],
196[case "${enableval}" in 200[case "${enableval}" in
197 yes) dmalloc=yes ;; 201 yes) dmalloc=yes ;;
211 LIB_DMALLOC= 215 LIB_DMALLOC=
212fi 216fi
213AC_SUBST(LIB_DMALLOC) 217AC_SUBST(LIB_DMALLOC)
214 218
215dnl With and without functions 219dnl With and without functions
216AC_ARG_ENABLE(html-docs, 220AC_ARG_ENABLE(xhtml-docs,
217[ --disable-html-docs Disable generation of HTML 3.2 docs (default: on)], 221[ --disable-xhtml-docs Disable generation of XHTML docs (default: on)],
218[case "${enableval}" in 222[case "${enableval}" in
219 yes) htmldocs=true ;; 223 yes) xhtmldocs=true ;;
220 no) htmldocs=false ;; 224 no) xhtmldocs=false ;;
221 *) AC_MSG_ERROR(bad value ${enableval} for --enable-html-docs) ;; 225 *) AC_MSG_ERROR(bad value ${enableval} for --enable-xhtml-docs) ;;
222esac],[htmldocs=true]) 226esac],[xhtmldocs=true])
223AM_CONDITIONAL(HTMLDOCS,test x$htmldocs = xtrue) 227AM_CONDITIONAL(XHTMLDOCS,test x$xhtmldocs = xtrue)
224 228
225AC_ARG_ENABLE(html4-docs, 229AC_ARG_ENABLE(html4-docs,
226[ --enable-html4-docs Enable generation of HTML 4 docs (default: off)], 230[ --enable-html4-docs Enable generation of HTML 4 docs (default: off)],
227[case "${enableval}" in 231[case "${enableval}" in
228 yes) html4docs=true ;; 232 yes) html4docs=true ;;
238 no) asciidocs=false ;; 242 no) asciidocs=false ;;
239 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ascii-docs) ;; 243 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ascii-docs) ;;
240esac],[asciidocs=false]) 244esac],[asciidocs=false])
241AM_CONDITIONAL(ASCIIDOCS,test x$asciidocs = xtrue) 245AM_CONDITIONAL(ASCIIDOCS,test x$asciidocs = xtrue)
242 246
243AC_ARG_ENABLE(rtf-docs, 247AC_ARG_WITH(etcdir,
244[ --enable-rtf-docs Enable generation of RTF docs (default: off)], 248 [ --with-etcdir=DIR Set configfile dir (default: SYSCONFDIR/psiconv)],
245[case "${enableval}" in 249 [PSICONVETCDIR=${withval}],
246 yes) rtfdocs=true ;; 250 [PSICONVETCDIR=${sysconfdir}/psiconv])
247 no) rtfdocs=false ;; 251AC_SUBST(PSICONVETCDIR)
248 *) AC_MSG_ERROR(bad value ${enableval} for --enable-rtf-docs) ;;
249esac],[rtfdocs=false])
250AM_CONDITIONAL(RTFDOCS,test x$rtfdocs = xtrue)
251 252
253AC_ARG_WITH(imagemagick,
254 [ --with-imagemagick enable ImageMagick (default = yes)],
255 [IMAGEMAGICK=$withval],
256 [IMAGEMAGICK='yes'])
252 257
253AC_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]) 258AC_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])
254AC_OUTPUT 259AC_OUTPUT

Legend:
Removed from v.163  
changed lines
  Added in v.210

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