2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([jack-keyboard], [2.5], [trasz@FreeBSD.org])
6 AM_INIT_AUTOMAKE([-Wall foreign])
7 AC_CONFIG_SRCDIR([config.h.in])
8 AC_CONFIG_HEADERS([config.h])
10 # Checks for programs.
13 # Checks for libraries.
15 # Checks for header files.
17 AC_CHECK_HEADERS([stdlib.h string.h sys/time.h unistd.h])
19 # Checks for typedefs, structures, and compiler characteristics.
24 # Checks for library functions.
27 AC_CHECK_FUNCS([gettimeofday memset strcasecmp strdup])
29 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.2)
33 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.12)
37 PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.2)
38 AC_SUBST(GTHREAD_CFLAGS)
39 AC_SUBST(GTHREAD_LIBS)
42 [AS_HELP_STRING([--with-x11],
43 [support keyboard grabbing @<:@default=check@:>@])],
47 AS_IF([test "x$with_x11" != xno],
48 [PKG_CHECK_MODULES(X11, x11, AC_DEFINE([HAVE_X11], [], [Defined if we have X11 support.]),
49 [if test "x$with_x11" != xcheck; then
50 AC_MSG_FAILURE([--with-x11 was given, but x11 was not found])
57 PKG_CHECK_MODULES(JACK, jack >= 0.102.0)
61 PKG_CHECK_MODULES(JACK_MIDI_NEEDS_NFRAMES, jack < 0.105.00, AC_DEFINE(JACK_MIDI_NEEDS_NFRAMES, 1, [whether or not JACK routines need nframes parameter]), true)
64 [AS_HELP_STRING([--with-lash],
65 [support LASH @<:@default=check@:>@])],
69 AS_IF([test "x$with_lash" != xno],
70 [PKG_CHECK_MODULES(LASH, lash-1.0, AC_DEFINE([HAVE_LASH], [], [Defined if we have LASH support.]),
71 [if test "x$with_lash" != xcheck; then
72 AC_MSG_FAILURE([--with-lash was given, but LASH was not found])
79 AC_CONFIG_FILES([Makefile src/Makefile man/Makefile pixmaps/Makefile])