summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-12 15:04:44 +0100
committerGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-12 15:04:44 +0100
commit371d0cfc0c02dfc6889be3b7e3100d380e65410a (patch)
tree11e2ae6a47b7230a6640738e2848bcd06ad3b7c2 /configure.ac
parentbaadbb3ca615ca34a09244bcdf3924664816c91d (diff)
Change copyright as ASP64 is dead and ive always been the only one
working on this.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac44
1 files changed, 31 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac
index 05e8e5f..2323699 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,8 +3,7 @@ m4_define([v_min], [0])
3m4_define([v_mic], [1]) 3m4_define([v_mic], [1])
4m4_define([v_ver], [v_maj.v_min.v_mic]) 4m4_define([v_ver], [v_maj.v_min.v_mic])
5 5
6 6AC_INIT([smman], [v_ver], [guillaume.friloux@aspfrance.com])
7AC_INIT([Smman], [v_ver], [guillaume.friloux@aspfrance.com])
8 7
9AC_PREREQ(2.01) 8AC_PREREQ(2.01)
10AC_CONFIG_SRCDIR([configure.ac]) 9AC_CONFIG_SRCDIR([configure.ac])
@@ -13,30 +12,50 @@ AM_INIT_AUTOMAKE([1.6 dist-bzip2])
13 12
14define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl 13define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
15define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl 14define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
16AC_PROG_LIBTOOL
17AC_CONFIG_MACRO_DIR([m4]) 15AC_CONFIG_MACRO_DIR([m4])
18 16
19dnl we just have set the version info, then: 17dnl we just have set the version info, then:
20version_number=v_ver 18version_number=v_ver
21AC_SUBST(version_number) 19AC_SUBST(version_number)
22 20
21AC_PROG_LIBTOOL
23GCC_STACK_PROTECT_LIB 22GCC_STACK_PROTECT_LIB
24GCC_STACK_PROTECT_CC 23GCC_STACK_PROTECT_CC
24AC_PROG_LIBTOOL
25AC_PROG_INSTALL
25AC_PROG_CC 26AC_PROG_CC
26AM_PROG_CC_C_O 27AM_PROG_CC_C_O
27AC_PROG_MKDIR_P 28AC_PROG_MKDIR_P
29AC_PROG_MAKE_SET
30
31PKG_PROG_PKG_CONFIG
32
33EFL_CHECK_FUNCS([smman], [fnmatch])
34EFL_CHECK_TESTS([smman], [enable_tests="yes"], [enable_tests="no"])
35
36if test "x${enable_tests}" = "xyes" ; then
37 CFLAGS="-W -Wall -g -O1 -DDEBUG -fprofile-arcs -ftest-coverage"
38 LDFLAGS="-lgcov -rdynamic -fvisibility=default"
39else
40 CFLAGS="$CFLAGS -W -Wall -O2"
41 LDFLAGS="-Wl,--as-needed -rdynamic -fvisibility=default"
42fi
28 43
29AC_CONFIG_FILES([ 44AC_CONFIG_FILES([
30Makefile 45Makefile
31doc/Makefile
32src/Makefile
33src/bin/Makefile
34]) 46])
35 47
48BIN_REQUIRES="eina ecore ecore-file libcurl"
49PKG_CHECK_MODULES(BIN, [$BIN_REQUIRES], [build_smman=yes], [build_smman=no])
50
51AC_DEFINE(_LARGEFILE64_SOURCE, 1, "Needed for 64 bit on 32")
52AC_DEFINE(_LARGEFILE_SOURCE, 1, "Needed for 64 bit on 32")
53AC_DEFINE(_FILE_OFFSET_BITS, 64, "Needed for 64 bit on 32")
54
55AM_CONDITIONAL(ENABLE_TESTS, [test "x${enable_tests}" = "xyes"])
56
57AC_CONFIG_HEADER([config.h])
36 58
37PKG_CHECK_MODULES([eina], [eina], [have_eina="yes"], [have_eina="no"])
38PKG_CHECK_MODULES([ecore], [ecore ecore-file], [have_ecore="yes"], [have_ecore="no"])
39PKG_CHECK_MODULES([libcurl], [libcurl], [have_curl="yes"], [have_curl="no"])
40AC_OUTPUT 59AC_OUTPUT
41 60
42echo 61echo
@@ -47,10 +66,9 @@ echo "------------------------------------------------------------------------"
47echo 66echo
48echo "Configuration Options Summary:" 67echo "Configuration Options Summary:"
49echo 68echo
50echo " eina.........: ${have_eina}" 69echo " deps.........: ${build_smman}"
51echo " ecore........: ${have_ecore}" 70echo " prefix.......: ${prefix}"
52echo " curl.........: ${have_curl}" 71echo " tests........: ${enable_tests} (Coverage: ${efl_enable_coverage})"
53echo " prefix.......: $prefix"
54echo 72echo
55echo "Build Options:" 73echo "Build Options:"
56echo " CPPFLAGS.....: $CPPFLAGS" 74echo " CPPFLAGS.....: $CPPFLAGS"