Better event editing. Fixed bug.
[epichord.git] / configure.ac
blobf8742fb3d0c5976caf05722ac25dcb8bffb87399
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.61)
5 AC_INIT(epichord, 0.0.0, unknown@somewhere.org)
6 AM_INIT_AUTOMAKE(epichord, 0.0.0)
7 AC_CONFIG_SRCDIR([src/ui.h])
8 AC_CONFIG_HEADER([config.h])
10 # Checks for programs.
11 AC_PROG_CXX
12 #AC_PROG_CC
14 # Checks for libraries.
16 # Checks for header files.
17 AC_HEADER_STDC
18 #AC_CHECK_HEADERS([arpa/inet.h stdlib.h string.h unistd.h])
20 # Checks for typedefs, structures, and compiler characteristics.
21 AC_C_CONST
22 AC_C_INLINE
23 AC_TYPE_SIZE_T
24 AC_TYPE_UINT16_T
25 AC_TYPE_UINT32_T
26 AC_TYPE_UINT64_T
27 AC_TYPE_UINT8_T
29 # Checks for library functions.
30 #AC_FUNC_MALLOC
31 #AC_CHECK_FUNCS([floor sqrt])
33 AC_CHECK_HEADER([jack/jack.h],[],[
34   AC_MSG_ERROR([
35     Cannot find JACK header file.
36     Please install JACK.
37   ])
38 ],[])
39 AC_CHECK_LIB([jack],[jack_midi_event_write],[],[
40   AC_MSG_ERROR([
41      JACK midi support missing.
42      Upgrade to a recent version of JACK.
43   ])
44 ],[])
46 AC_CHECK_PROG(fltk2found,fltk2-config,[yes],[no])
47 if test "$fltk2found" == "no"; then
48   AC_MSG_ERROR([
49     FLTK 2 not found. 
50     Make sure FLTK 2 is installed correctly.
51   ])
54 AC_OUTPUT(Makefile src/Makefile doc/Makefile gfx/Makefile)