This repository has been archived on 2021-03-01. You can view files and clone it, but cannot push or open issues or pull requests.
prpa/configure.ac

71 lines
1.3 KiB
Plaintext

AC_PREREQ([2.61])
LT_PREREQ([2.2])
AC_INIT([prpa], [1.0])
AM_INIT_AUTOMAKE([1.10 foreign dist-bzip2])
AC_CONFIG_MACRO_DIR([m4])
## --------------------- ##
## C++ Compiler Set up. ##
## --------------------- ##
# Look for a C++ compiler.CXXFLAGS_save="$CXXFLAGS"
AC_PROG_CXX
AC_PROG_RANLIB
CXXFLAGS="$CXXFLAGS_save -std=c++0x -g -O0"
AM_SILENT_RULES([yes])
AC_ARG_ENABLE(debug,
[ --enable-debug compile with debugging support],
,
enable_debug=no)
if test "x$enable_debug" = "xyes" ; then
DEBUG_CXXFLAGS="$DEBUG_CXXFLAGS -g"
AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
else
DEBUG_CXXFLAGS="$DEBUG_CXXFLAGS -DNDEBUG -O2"
fi
AC_SUBST(DEBUG_CXXFLAGS)
## ----------- ##
## Libraries. ##
## ----------- ##
#
# Check for Boost libs
#
m4_include([m4/ax_boost_base.m4])
m4_include([m4/ax_boost_program_options.m4])
AX_BOOST_BASE([1.33.1])
AX_BOOST_PROGRAM_OPTIONS
#
# Check for OpenCV
#
PKG_CHECK_MODULES([DEPS], [opencv])
#
# Check for TBB
#
#TODO
## ------- ##
## Tests. ##
## ------- ##
#AC_CONFIG_FILES([tests/Makefile])
## --------------- ##
## Configuration. ##
## --------------- ##
# Ask for the Makefile creations.
AC_OUTPUT([Makefile
src/Makefile
src/encoder/Makefile
src/filterSample/Makefile])