-
Notifications
You must be signed in to change notification settings - Fork 5
/
configure.ac
39 lines (30 loc) · 957 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.68])
AC_INIT([lysdr], [0.3], [[email protected]])
AM_INIT_AUTOMAKE([subdir-objects])
AC_CONFIG_SRCDIR([src/filter.h])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h])
# Check for required libraries
PKG_CHECK_MODULES(GTK3, gtk+-3.0 >= 3.10)
AC_SEARCH_LIBS(fftw_malloc, fftw3, [],
AC_MSG_ERROR([unable to find fftw3 library])
)
AC_SEARCH_LIBS(jack_connect, jack, [],
AC_MSG_ERROR([unable to find jack library])
)
AC_SEARCH_LIBS(sin, m)
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memmove])
dnl Combine the various libs and flags
CFLAGS="$CFLAGS $GTK3_CFLAGS"
LIBS="$LIBS $GTK3_LIBS"
AC_CONFIG_FILES(Makefile)
AC_OUTPUT