2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(Shapes, 0.4.1, tidefelt@isy.liu.se)
6 AC_CONFIG_AUX_DIR([config])
7 AM_INIT_AUTOMAKE([foreign])
9 AC_CONFIG_SRCDIR([source/Shapes_Kernel_decls.h])
10 AM_CONFIG_HEADER([config.h])
12 # Checks for programs.
17 AC_PROG_COMPARE(6.4.0)
21 # Set compiler options
26 # Checks for libraries.
28 AH_VERBATIM([ICONV_CAST],
29 [/* Macro to handle different const convention in iconv calls */
30 #define ICONV_CAST( ptr ) const_cast< ICONV_CONST char ** > ( ptr )
32 AC_CHECK_LIB([c], [close])
33 AM_PATH_GSL([1.8],, AC_MSG_ERROR(GSL not found))
34 AC_CHECK_LIB([m], [cos])
39 # Checks for header files.
43 AC_CHECK_HEADERS([inttypes.h libintl.h limits.h malloc.h stddef.h stdlib.h string.h sys/time.h unistd.h])
45 # Checks for typedefs, structures, and compiler characteristics.
55 # Checks for library functions.
63 AC_CHECK_FUNCS([floor memchr memset pow rint sqrt strchr strdup strrchr strtol])
66 htmldir='${pkgdatadir}/doc/html'
70 AC_CONFIG_FILES([Makefile source/Makefile resources/Makefile
71 test/Makefile test/text/Makefile test/graphics/Makefile
72 doc/Makefile doc/tools/Makefile
73 doc/tools/ssi/Makefile doc/tools/postproc/Makefile
74 doc/tools/xhtml-deps/Makefile doc/build/Makefile
75 doc/build/man/Makefile doc/build/html/Makefile])
78 if test "X$COMPARE" != "Xyes"
81 WARNING: The program \`compare' was not found, or its version too low. Without it, errors in the tests are less likely to be detected."
84 if test "X$HAVE_SAXON" != "X1"
87 WARNING: The program \`Saxon' was not found, without it installed the documentation cannot be rebuilt."