1 dnl Require autoconf version >= 2.59
5 dnl ############# Initialization
6 AC_INIT([jackmeter], [0.4], [njh@aelius.com], jackmeter)
7 AC_CONFIG_SRCDIR([jack_meter.c])
8 AC_CONFIG_AUX_DIR([build-scripts])
9 AC_CONFIG_MACRO_DIR([build-scripts])
13 dnl ############# Compiler and tools Checks
20 dnl ############## Check for packages we depend upon
21 AC_CHECK_LIB([m], [sqrt], , [AC_MSG_ERROR(Can't find libm)])
22 AC_CHECK_LIB([mx], [powf])
24 # Check for JACK (need 0.100.0 for jack_client_open)
25 PKG_CHECK_MODULES(JACK, jack >= 0.100.0)
30 dnl ############## Header and function checks
32 AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
33 AC_CHECK_FUNCS( atexit usleep )
36 dnl ############## Output files
37 AC_CONFIG_HEADERS([config.h])
38 AC_CONFIG_FILES([Makefile])