-
Notifications
You must be signed in to change notification settings - Fork 29
/
configure.ac
43 lines (35 loc) · 968 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
40
41
42
43
AC_PREREQ([2.64])
AC_INIT([kalibrate], [0.4.1], [[email protected]], [kal])
AC_CONFIG_SRCDIR([src/fcch_detector.cc])
AM_INIT_AUTOMAKE([-Wall -Werror])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_LN_S
AC_PROG_RANLIB
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
# Checks for library functions.
AC_FUNC_STRTOD
AC_CHECK_FUNCS([floor getpagesize memset sqrt strtoul strtol])
# Checks for libraries.
PKG_CHECK_MODULES(FFTW3, fftw3 >= 3.0)
AC_SUBST(FFTW3_LIBS)
AC_SUBST(FFTW3_CFLAGS)
#PKG_CHECK_MODULES(BLADERF, libbladerf >= 0.3)
AC_SUBST(BLADERF_LIBS)
AC_SUBST(BLADERF_CFLAGS)
# OSX doesn't support System V shared memory
AC_CANONICAL_HOST
case "$host_os" in
darwin*)
AC_DEFINE([D_HOST_OSX], [], [building for OSX])
;;
esac
AC_CONFIG_FILES([Makefile
src/Makefile])
AC_OUTPUT