2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([hkl],[4.0.3],[picca@synchrotron-soleil.fr])
6 AC_CONFIG_SRCDIR([config.h.in])
7 AC_CONFIG_HEADERS([config.h])
8 AC_CONFIG_MACRO_DIR([m4])
9 AC_CONFIG_AUX_DIR(config)
11 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
13 # Checks for programs.
24 # Checks for libraries.
27 # Checks for header files.
31 AC_CHECK_HEADERS([float.h stdlib.h string.h sys/time.h])
33 # Checks for typedefs, structures, and compiler characteristics.
38 # Checks for library functions.
43 AC_CHECK_FUNCS([floor gettimeofday memmove memset sqrt strdup])
46 GTK_DOC_CHECK([1.9],[--flavour no-tmpl])
52 AC_PATH_PROG([ASY], [asy], [echo])
54 # add an option for the ghkl build
56 AS_HELP_STRING([--enable-ghkl],
57 [turn on the ghkl gui [[default=yes]]]),
58 [case "${enableval}" in
61 *) AC_MSG_ERROR([bad value ${enableval} for --enable-ghkl]) ;;
63 AM_CONDITIONAL([GHKL], [test x$ghkl = xtrue])
67 [PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 >= 2.18])])
69 AC_CONFIG_FILES([Makefile
73 Documentation/Makefile
74 Documentation/api/Makefile
75 Documentation/figures/Makefile
76 Documentation/sphinx/Makefile
77 Documentation/sphinx/source/conf.py