1 # configure.ac with sensible comments
3 ### INITIALIZATION ############################################################
6 # Args: (human-readable package name, package version, bug report address,
8 AC_INIT([chimara], [0.1])
9 # Sanity check to make sure we are running Autoconf from the right directory
10 AC_CONFIG_SRCDIR(src/chimara-glk.c)
12 AM_INIT_AUTOMAKE([-Wall])
14 ### DECLARE PROGRAMS ##########################################################
16 AC_PROG_CC # C compiler
17 AC_PROG_INSTALL # Install
18 AC_PROG_LIBTOOL # Libtool
19 IT_PROG_INTLTOOL([0.35.0]) # Intltool
20 PKG_PROG_PKG_CONFIG # pkg_config
22 ### INTERNATIONALIZATION ######################################################
24 GETTEXT_PACKAGE=chimara
25 AC_SUBST(GETTEXT_PACKAGE)
26 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
29 ### CHECK FOR LIBRARIES #######################################################
31 # Libraries needed to build Chimara library
32 PKG_CHECK_MODULES([CHIMARA], [
38 AC_SUBST(CHIMARA_CFLAGS)
39 AC_SUBST(CHIMARA_LIBS)
40 # Libraries needed to build test programs
41 PKG_CHECK_MODULES([TEST], [
48 ### GTK-DOC ###################################################################
49 # Don't know what this does yet, it was autogenerated by Anjuta.
51 AC_ARG_WITH(html-dir, [ --with-html-dir=PATH path to installed docs ])
52 if test "x$with_html_dir" = "x" ; then
53 HTML_DIR='${datadir}/gtk-doc/html'
55 HTML_DIR=$with_html_dir
59 gtk_doc_min_version=1.0
60 AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
61 if pkg-config --atleast-version=$gtk_doc_min_version gtk-doc; then
68 # Let people disable the gtk-doc stuff.
69 AC_ARG_ENABLE(gtk-doc,
70 [ --enable-gtk-doc Use gtk-doc to build documentation [default=auto]],
71 enable_gtk_doc="$enableval", enable_gtk_doc=auto)
72 if test x$enable_gtk_doc = xauto ; then
73 if test x$GTKDOC = xtrue ; then
79 AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
81 # Output platform-specific definitions to config.h
82 AC_CONFIG_HEADERS([config.h])
83 # List of other files for Autoconf to output