forked from ttsou/kalibrate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
41 lines (33 loc) · 916 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
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(UHD, uhd >= 003.004.000)
# 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