123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- # -*- Autoconf -*-
- # Process this file with autoconf to produce a configure script.
- m4_define([ixion_major_version], [0])
- m4_define([ixion_minor_version], [9])
- m4_define([ixion_micro_version], [1])
- m4_define([ixion_version],
- [ixion_major_version.ixion_minor_version.ixion_micro_version])
- m4_define([ixion_minor_api_version], [m4_eval(ixion_minor_version + ixion_minor_version%2)])
- m4_define([ixion_api_version],
- [ixion_major_version.ixion_minor_api_version])
- AC_PREREQ([2.63])
- AC_INIT([libixion], [ixion_version])
- AC_CONFIG_HEADERS([config.h])
- AM_INIT_AUTOMAKE([1.11 foreign dist-bzip2 dist-xz])
- AM_PATH_PYTHON(2.7.0)
- m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
- AC_ARG_WITH(hash-container-compat,
- [
- --with-hash-container-compat use std::hash_foo instead of boost::unordered_foo
- ],
- ,with_hash_container_compat=no)
- AC_ARG_WITH(mdds-include-path,
- AS_HELP_STRING([--with-mdds-include-path], [specify include path for mdds headers.])
- ,)
- IXION_API_VERSION=ixion_api_version
- IXION_MAJOR_VERSION=ixion_major_version
- IXION_MINOR_VERSION=ixion_minor_version
- IXION_MICRO_VERSION=ixion_micro_version
- AC_SUBST(IXION_API_VERSION)
- AC_SUBST(IXION_MAJOR_VERSION)
- AC_SUBST(IXION_MINOR_VERSION)
- AC_SUBST(IXION_MICRO_VERSION)
- AC_CONFIG_MACRO_DIR([m4])
- m4_pattern_allow([^BOOST_])
- for top_builddir in . .. ../.. $ac_auxdir $ac_auxdir/..; do
- test -f $top_builddir/configure && break
- done
- # Checks for programs.
- AC_PROG_CXX
- LT_INIT([win32-dll disable-static pic-only])
- AC_CANONICAL_HOST
- # Checks for libraries.
- # Checks for header files.
- AC_CHECK_HEADERS([stdlib.h sys/time.h unistd.h])
- # Checks for typedefs, structures, and compiler characteristics.
- AC_HEADER_STDBOOL
- AC_C_INLINE
- AC_TYPE_MODE_T
- AC_TYPE_SIZE_T
- # Checks for library functions.
- AC_FUNC_STRTOD
- AC_CHECK_FUNCS([gettimeofday])
- CPPFLAGS="$CPPFLAGS -D_REENTRANT -DMDDS_HASH_CONTAINER_BOOST"
- AC_MSG_CHECKING([whether to turn on hash container compatibility])
- if test "z$with_hash_container_compat" = "zno"; then
- AC_MSG_RESULT([no])
- BOOST_REQUIRE([1.36])
- BOOST_UNORDERED
- else
- AC_MSG_RESULT([yes])
- DEFINES="$DEFINES -D_IXION_HASH_CONTAINER_COMPAT"
- fi
- # Check for mdds.
- PKG_CHECK_MODULES([MDDS],[mdds >= 0.12.0])
- # Check for python.
- PKG_CHECK_MODULES([PYTHON], [python >= 0.27.1])
- CPPFLAGS="$CPPFLAGS -g -Os -fvisibility=hidden"
- BOOST_THREADS
- BOOST_PROGRAM_OPTIONS
- AC_CONFIG_FILES([Makefile
- libixion-$IXION_API_VERSION.pc:libixion.pc.in
- include/Makefile
- include/ixion/Makefile
- include/ixion/hash_container/Makefile
- include/ixion/interface/Makefile
- misc/libixion.spec
- src/Makefile
- src/libixion/Makefile
- src/libixion/constants.inl
- src/python/Makefile])
- AC_OUTPUT
|