2012-04-14 19:14:07 +00:00
|
|
|
AC_INIT([libosmodsp],
|
2011-10-14 22:29:47 +00:00
|
|
|
m4_esyscmd([./git-version-gen .tarball-version]),
|
2012-03-28 11:06:58 +00:00
|
|
|
[gmr@lists.osmocom.org])
|
2011-10-14 22:29:47 +00:00
|
|
|
|
2012-07-04 11:15:48 +00:00
|
|
|
AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip 1.6])
|
2011-10-14 22:29:47 +00:00
|
|
|
|
|
|
|
dnl kernel style compile messages
|
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
|
|
|
|
dnl checks for programs
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
2012-07-04 11:15:49 +00:00
|
|
|
LT_INIT([pic-only])
|
2011-10-14 22:29:47 +00:00
|
|
|
|
|
|
|
AC_PATH_PROG(DOXYGEN,doxygen,false)
|
|
|
|
AM_CONDITIONAL(HAVE_DOXYGEN, test $DOXYGEN != false)
|
|
|
|
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
|
2013-02-19 20:58:24 +00:00
|
|
|
dnl checks for libraries
|
|
|
|
PKG_CHECK_MODULES(FFTW3F, fftw3f >= 3.2.0)
|
|
|
|
|
2011-10-14 22:29:47 +00:00
|
|
|
dnl checks for header files
|
2013-02-10 19:03:46 +00:00
|
|
|
AC_CHECK_HEADERS([complex.h fcntl.h math.h stdio.h stdlib.h string.h unistd.h sys/mman.h sys/types.h sys/stat.h],,
|
|
|
|
AC_MSG_ERROR([Missing required header files.]))
|
2011-10-14 22:29:47 +00:00
|
|
|
|
|
|
|
# The following test is taken from WebKit's webkit.m4
|
|
|
|
saved_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -fvisibility=hidden "
|
|
|
|
AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden])
|
|
|
|
AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])],
|
|
|
|
[ AC_MSG_RESULT([yes])
|
|
|
|
SYMBOL_VISIBILITY="-fvisibility=hidden"],
|
|
|
|
AC_MSG_RESULT([no]))
|
|
|
|
CFLAGS="$saved_CFLAGS"
|
|
|
|
AC_SUBST(SYMBOL_VISIBILITY)
|
|
|
|
|
|
|
|
dnl Generate the output
|
2013-01-05 23:38:27 +00:00
|
|
|
AC_CONFIG_HEADER(config.h)
|
2011-10-14 22:29:47 +00:00
|
|
|
|
|
|
|
AC_OUTPUT(
|
2012-04-14 19:14:07 +00:00
|
|
|
libosmodsp.pc
|
2011-10-14 22:29:47 +00:00
|
|
|
include/Makefile
|
|
|
|
include/osmocom/Makefile
|
2012-04-14 19:14:07 +00:00
|
|
|
include/osmocom/dsp/Makefile
|
2011-10-14 22:29:47 +00:00
|
|
|
src/Makefile
|
|
|
|
Makefile
|
|
|
|
Doxyfile
|
|
|
|
)
|