~ubuntu-branches/ubuntu/trusty/lebiniou/trusty

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Olivier Girondel
  • Date: 2011-08-13 20:46:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110813204612-a2vwb4rdnumw3bsj
Tags: 3.9.2-1
* New upstream release 3.9.2
* Fix FTBFS on ia64. (Closes: #637696)
* Fix FTBFS on mips/mipsel. (Closes: #637699)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT([lebiniou],[3.9.1],[olivier@biniou.info])
 
1
AC_INIT([lebiniou],[3.9.2],[olivier@biniou.info])
2
2
AC_PREREQ([2.68])
3
3
AC_CONFIG_SRCDIR([src/main.c])
4
4
AC_CONFIG_AUX_DIR([build-aux])
34
34
dnl Plugins compilation flags
35
35
COMPILER=`basename $CC`
36
36
 
37
 
PLUGIN_CFLAGS="-I../../../../src"
38
 
PLUGIN_LDFLAGS="-shared"
 
37
PLUGIN_CFLAGS="-I../../../../src -fPIC"
 
38
PLUGIN_LDFLAGS="-shared -fPIC"
39
39
dnl FIXME needed for distcheck to work
40
40
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I../../../../../src"
41
41
 
42
42
if test "x${COMPILER}" = "xgcc"; then
43
43
        PLUGIN_LDFLAGS="${PLUGIN_LDFLAGS} -module -export-dynamic"
44
44
fi
45
 
# TODO: really needed ??
46
 
if test "x$host_cpu" == "xx86_64"; then
47
 
        # x86_64 absolutely needs to have -fPIC on shared libs code
48
 
        PLUGIN_CFLAGS="$PLUGIN_CFLAGS -fPIC"
49
 
        PLUGIN_LDFLAGS="$PLUGIN_LDFLAGS -fPIC"
50
 
fi
51
 
AC_SUBST(PLUGIN_CFLAGS)
52
 
AC_SUBST(PLUGIN_LDFLAGS)
 
45
AC_SUBST([PLUGIN_CFLAGS])
 
46
AC_SUBST([PLUGIN_LDFLAGS])
53
47
 
54
48
 
55
49
# Checks for libraries
60
54
 
61
55
# fftw3
62
56
PKG_CHECK_MODULES([FFTW3], [fftw3], , [AC_MSG_ERROR([You must have libfftw3-dev installed])])
63
 
CFLAGS="$CFLAGS `pkg-config fftw3 --cflags`"
 
57
CPPFLAGS="$CPPFLAGS `pkg-config fftw3 --cflags`"
64
58
LDFLAGS="$LDFLAGS `pkg-config fftw3 --libs`"
65
59
 
66
60
# libxml-2.0
67
61
PKG_CHECK_MODULES([XML2], [libxml-2.0 >= 2.6.0], , [AC_MSG_ERROR([You must have libxml2-dev >= 2.6 installed])])
68
 
CFLAGS="$CFLAGS `pkg-config libxml-2.0 --cflags`"
 
62
CPPFLAGS="$CPPFLAGS `pkg-config libxml-2.0 --cflags`"
69
63
LDFLAGS="$LDFLAGS `pkg-config libxml-2.0 --libs`"
70
64
 
71
65
# zlib - we assume it's installed on most systems