~ubuntu-branches/ubuntu/saucy/imagination/saucy

1 by Daniel Baumann
Import upstream version 1.0
1
dnl Process this file with autoconf to produce a configure script.
2
1.1.4 by Andrew Starr-Bochicchio
Import upstream version 3.0
3
AC_INIT([imagination], [3.0],
1.2.2 by Andrew Starr-Bochicchio
Import upstream version 2.0
4
		[http://sourceforge.net/tracker/?group_id=244319&atid=1125540])
5
AC_CONFIG_SRCDIR([src/imagination.h])
6
AM_INIT_AUTOMAKE
7
8
# Enable silent rules if supported
9
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
10
1 by Daniel Baumann
Import upstream version 1.0
11
AM_MAINTAINER_MODE
12
13
AC_ISC_POSIX
14
AC_PROG_CC
15
AM_PROG_CC_STDC
16
AC_HEADER_STDC
17
18
AC_PROG_INSTALL
19
AC_PROG_LN_S
20
AC_PROG_INTLTOOL
21
22
# for plugins
23
AC_DISABLE_STATIC
24
AM_PROG_LIBTOOL
25
LIBTOOL="$LIBTOOL --silent"
26
1.2.2 by Andrew Starr-Bochicchio
Import upstream version 2.0
27
pkg_modules="gtk+-2.0 >= 2.14.0 gthread-2.0"
1 by Daniel Baumann
Import upstream version 1.0
28
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
29
1.2.1 by Daniel Baumann
Import upstream version 1.5
30
sox_modules="sox >= 14.2.0"
31
PKG_CHECK_MODULES(SOX, [$sox_modules])
32
1.2.2 by Andrew Starr-Bochicchio
Import upstream version 2.0
33
plugins_modules="cairo >= 1.6 glib-2.0 > 2.18.0"
1.2.1 by Daniel Baumann
Import upstream version 1.5
34
PKG_CHECK_MODULES(PLUGINS, [$plugins_modules])
35
36
# get svn revision
37
REVISION="r0"
38
if test "x${REVISION}" = "xr0"
39
then
40
	SVN=`which svn 2>/dev/null`
41
	if test -d ".svn" -a "x${SVN}" != "x" -a -x "${SVN}"
42
	then
43
		REVISION=r`$SVN info|grep 'Last Changed Rev'|cut -d' ' -f4`
44
	fi
45
fi
46
if test "x${REVISION}" != "xr0"
47
then
48
	# force debug mode for a SVN working copy
49
	CFLAGS="-g -Wall"
50
else
51
	REVISION="-1"
52
fi
53
AC_DEFINE_UNQUOTED(REVISION, "$REVISION", [subversion revision number])
1 by Daniel Baumann
Import upstream version 1.0
54
55
AC_SUBST(PACKAGE_CFLAGS)
56
AC_SUBST(PACKAGE_LIBS)
57
1.2.1 by Daniel Baumann
Import upstream version 1.5
58
AC_SUBST(SOX_CFLAGS)
59
AC_SUBST(SOX_LIBS)
60
61
AC_SUBST(PLUGINS_CFLAGS)
62
AC_SUBST(PLUGINS_LIBS)
63
1 by Daniel Baumann
Import upstream version 1.0
64
GETTEXT_PACKAGE=imagination
65
AC_SUBST(GETTEXT_PACKAGE)
66
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
67
1.2.2 by Andrew Starr-Bochicchio
Import upstream version 2.0
68
AC_PATH_PROG([XSLTPROC], [xsltproc], [yes])
69
70
AM_CONDITIONAL([ENABLE_XSLTPROC], [test x"$enable_xsltproc" = x"yes"])
71
1 by Daniel Baumann
Import upstream version 1.0
72
dnl Add the languages which your application supports here.
73
ALL_LINGUAS="`sed -e '/^#/d' $srcdir/po/LINGUAS`"
74
AM_GLIB_GNU_GETTEXT
75
76
GTK_VERSION=`$PKG_CONFIG --modversion gtk+-2.0`
1.2.1 by Daniel Baumann
Import upstream version 1.5
77
SOX_VERSION=`$PKG_CONFIG --modversion sox`
1 by Daniel Baumann
Import upstream version 1.0
78
79
AC_OUTPUT([
80
Makefile
81
src/Makefile
82
transitions/Makefile
1.2.2 by Andrew Starr-Bochicchio
Import upstream version 2.0
83
doc/Makefile
84
doc/en/Makefile
85
doc/en/imagination.xml
86
doc/en/images/Makefile
1.1.4 by Andrew Starr-Bochicchio
Import upstream version 3.0
87
doc/fr/Makefile
88
doc/fr/imagination.xml
89
doc/fr/images/Makefile
90
doc/es/Makefile
91
doc/es/imagination.xml
92
doc/es/images/Makefile
93
doc/pt_BR/Makefile
94
doc/pt_BR/imagination.xml
95
doc/pt_BR/images/Makefile
96
po/Makefile.in
1 by Daniel Baumann
Import upstream version 1.0
97
icons/Makefile
98
icons/16x16/Makefile
99
icons/24x24/Makefile
100
icons/48x48/Makefile
101
icons/scalable/Makefile
102
])
103
1.2.1 by Daniel Baumann
Import upstream version 1.5
104
echo ""
105
echo "Imagination configuration:"
106
echo "--------------------------"
107
echo ""
108
echo "Install in  :       ${prefix}/bin"
109
echo "GTK version :       ${GTK_VERSION}"
110
echo "SOX version :       ${SOX_VERSION}"
111
if test "${REVISION}" != "-1"
112
then
113
	echo "SVN revision:       ${REVISION}"
114
fi
115
echo ""