2 # Process this file with autoconf to produce a configure script.
6 AC_INIT([cclive], m4_esyscmd([./gen-ver.sh -c | tr -d '\n']),
7 [http://cclive.sf.net/bugs/],[],[http://cclive.sf.net/])
9 AC_CONFIG_SRCDIR([src/cc/application.cpp])
10 AC_CONFIG_HEADERS([config.h])
11 AC_CONFIG_AUX_DIR([config.aux])
12 AC_CONFIG_MACRO_DIR([m4])
15 AC_USE_SYSTEM_EXTENSIONS
17 AC_DEFINE_UNQUOTED([CANONICAL_TARGET], "$target", [...])
18 AC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [...])
20 AM_INIT_AUTOMAKE([1.11.1 -Wall -Werror dist-xz no-dist-gzip tar-ustar])
21 AM_SILENT_RULES([yes])
23 # GNU Automake 1.12 requires this macro. Earlier versions do not
24 # recognize this macro. Work around this.
25 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
27 LT_INIT([disable-static])
30 # Checks for programs.
36 AC_PATH_PROG([DATE], [date], [no])
37 AS_IF([test "$DATE" != x"$xno"], [build_time=`$DATE +"%F %T %z"`])
38 AC_DEFINE_UNQUOTED([BUILD_TIME], ["$build_time"], [We have build time])
40 AC_PATH_PROG([A2X], [a2x], [no])
41 AM_CONDITIONAL([HAVE_A2X], [test x"$A2X" != "xno"])
44 # Checks for libraries.
47 PKG_CHECK_MODULES([libquvi], [libquvi-0.9 >= 0.9],
49 AC_DEFINE([HAVE_LIBQUVI_0_9], [1], [We have libquvi 0.9])
52 [PKG_CHECK_MODULES([libquvi], [libquvi >= 0.4])])
53 AM_CONDITIONAL([HAVE_LIBQUVI_0_9], [test x"$have_libquvi_0_9" = "xyes"])
55 PKG_CHECK_MODULES([libcurl], [libcurl >= 7.18.0])
56 PKG_CHECK_MODULES([libpcre], [libpcre >= 8.02])
57 PKG_CHECK_MODULES([libpcrecpp], [libpcrecpp >= 8.02])
58 PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.24])
60 BOOST_REQUIRE([1.42.0])
61 # Boost: Header-only libs
64 # Boost: Libs requiring linking
71 # Checks for header files.
72 AC_CHECK_HEADERS([sys/ioctl.h unistd.h sys/types.h sys/stat.h signal.h])
74 # Checks for typedefs, structures, and compiler characteristics.
80 # Checks for library functions.
81 AC_CHECK_FUNCS([strerror strstr getpid signal memset setlocale])
87 VN=`$srcdir/gen-ver.sh`
88 AC_DEFINE_UNQUOTED([VN],["$VN"], [We have version number from gen-ver.sh])
92 [AS_HELP_STRING([--with-manual],
93 [Install manual page(s) @<:@default=yes@:>@])],
96 AM_CONDITIONAL([WITH_MANUAL], [test x"$with_manual" != "xno"])
100 [AS_HELP_STRING([--enable-ccl],
101 [Symlink from 'cclive' executable to 'ccl' @<:@default=yes@:>@])],
104 AM_CONDITIONAL([ENABLE_CCL], [test x"$enable_ccl" = "xyes"])
125 add ccl symlink: ${enable_ccl}
126 install manual : ${with_manual}])
128 # vim: set ts=2 sw=2 tw=72 expandtab: