2 dnl Process this file with autoconf to generate configure.
4 dnl The AX_* macros are defined in files in the top-level m4
7 #####################################################################
8 # Set up configuration system
9 #####################################################################
11 AC_INIT([oscopy], [0.32], [agardelein@yahoo.fr])
14 AC_CONFIG_MACRO_DIR([m4])
15 AC_CONFIG_AUX_DIR([build-tools])
16 AC_CONFIG_HEADERS([config.h])
20 oscopy/graphs/Makefile
21 oscopy/readers/Makefile
22 oscopy/writers/Makefile
24 gschem-plugin/Makefile
25 gschem-plugin/src/Makefile
27 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
29 #####################################################################
30 # Check for compiling & linking tools
31 #####################################################################
39 #AX_GCC_FLAGS([-Wall])
44 AC_PATH_PROGS([M4], [gm4 m4], [m4])
47 #####################################################################
48 # Check for libraries that use pkg-config
49 #####################################################################
50 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.12.0], ,
51 AC_MSG_ERROR([GLib 2.12.0 or later is required.]))
53 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.10.0], ,
54 AC_MSG_ERROR([GTK+ 2.10.0 or later is required.]))
56 #PKG_CHECK_MODULES(DBUS_GLIB, [dbus-glib-1 >= 0.74], [AC_SUBST(DBUS_LIBS)],
57 # AC_MSG_ERROR([dbus-glib-1 0.74 or later is required]))
58 # (from pidgin-2.6.5 configure.ac)
59 AC_ARG_ENABLE(dbus, [AC_HELP_STRING([--disable-dbus], [disable D-Bus support])], , enable_dbus=yes)
61 if test "x$enable_dbus" = "xyes" ; then
62 AC_CHECK_PROG(enable_dbus, dbus-binding-tool, yes, no)
65 if test "x$enable_dbus" = "xyes" ; then
66 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.74 dbus-glib-1 >= 0.74], [
72 if test "x$force_deps" = "xyes" ; then
74 D-Bus development headers not found.
75 Use --disable-dbus if you do not need D-Bus support.