Erik Grinaker is sharing code with you
Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.
Don't show this againRevelation / configure.ac
- commit
- cff0e6f7ef34
- parent
- e0a14b958359
- branch
- default
- tags
- revelation-0.4.0-pre2
bumped version number to 0.4.0-pre2
1 |
94cc26e5e65d
|
dnl initialize autoconf/automake |
2 |
a207757f8451
|
AC_PREREQ(2.53) |
3 |
a207757f8451
|
AC_INIT(src/revelation.in) |
4 |
cff0e6f7ef34
|
AM_INIT_AUTOMAKE(revelation, 0.4.0-pre2) |
5 |
a207757f8451
|
|
6 |
a207757f8451
|
|
7 |
94cc26e5e65d
|
dnl some macros |
8 |
94cc26e5e65d
|
AC_DEFUN([AC_PYTHON_MODULE],[ |
9 |
94cc26e5e65d
|
AC_MSG_CHECKING(python module: $1) |
10 |
94cc26e5e65d
|
python -c "import $1" 2>/dev/null |
11 |
94cc26e5e65d
|
|
12 |
94cc26e5e65d
|
if test $? -eq 0; then |
13 |
94cc26e5e65d
|
AC_MSG_RESULT(yes) |
14 |
94cc26e5e65d
|
eval AS_TR_CPP(HAVE_PYMOD_$1)=yes |
15 |
94cc26e5e65d
|
else |
16 |
94cc26e5e65d
|
AC_MSG_RESULT(no) |
17 |
94cc26e5e65d
|
eval AS_TR_CPP(HAVE_PYMOD_$1)=no |
18 |
94cc26e5e65d
|
|
19 |
94cc26e5e65d
|
if test -n "$2"; then |
20 |
94cc26e5e65d
|
AC_MSG_ERROR(failed to find required module $1) |
21 |
94cc26e5e65d
|
exit 1 |
22 |
94cc26e5e65d
|
fi |
23 |
94cc26e5e65d
|
fi |
24 |
94cc26e5e65d
|
]) |
25 |
94cc26e5e65d
|
|
26 |
5d99fc2aa75a
|
AC_DEFUN(PFK_PYTHON_PATH,[ |
27 |
5d99fc2aa75a
|
AC_MSG_CHECKING(Python include path) |
28 |
5d99fc2aa75a
|
AC_ARG_WITH(python-include, |
29 |
5d99fc2aa75a
|
[ --with-python-include=PATH path to where Python.h lives |
30 |
5d99fc2aa75a
|
(default: /usr/local/include/pythonN.M], PY_INCLUDE=$withval ) |
31 |
5d99fc2aa75a
|
|
32 |
5d99fc2aa75a
|
if test -z "$PY_INCLUDE" ; then |
33 |
5d99fc2aa75a
|
PY_INCLUDE=$PYTHON |
34 |
5d99fc2aa75a
|
pfk_py_include_path=`echo $PY_INCLUDE | sed -e "s/bin/include/"` |
35 |
5d99fc2aa75a
|
pfk_py_version="`$PYTHON -c "import sys; print sys.version[[0:3]]"`"; |
36 |
5d99fc2aa75a
|
PY_INCLUDE="$pfk_py_include_path$pfk_py_version" |
37 |
5d99fc2aa75a
|
fi |
38 |
5d99fc2aa75a
|
|
39 |
5d99fc2aa75a
|
AC_MSG_RESULT($PY_INCLUDE) |
40 |
5d99fc2aa75a
|
AC_SUBST(PY_INCLUDE)dnl |
41 |
5d99fc2aa75a
|
]) |
42 |
5d99fc2aa75a
|
|
43 |
94cc26e5e65d
|
|
44 |
a207757f8451
|
dnl check for dependencies |
45 |
5d99fc2aa75a
|
AC_PROG_CC() |
46 |
a207757f8451
|
AM_PATH_PYTHON(2.3) |
47 |
5d99fc2aa75a
|
PFK_PYTHON_PATH() |
48 |
a207757f8451
|
PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= 2.3.90) |
49 |
a207757f8451
|
PKG_CHECK_MODULES(GNOME_PYTHON, gnome-python-2.0 >= 2.5.90) |
50 |
94cc26e5e65d
|
AC_PYTHON_MODULE(Crypto, yes) |
51 |
a207757f8451
|
|
52 |
a207757f8451
|
AC_PATH_PROG(GCONFTOOL, gconftool-2, no) |
53 |
a207757f8451
|
if test x"$GCONFTOOL" = xno; then |
54 |
a207757f8451
|
AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf]) |
55 |
a207757f8451
|
fi |
56 |
a207757f8451
|
AM_GCONF_SOURCE_2 |
57 |
a207757f8451
|
|
58 |
9be42a38f988
|
AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database, no) |
59 |
9be42a38f988
|
AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database, no) |
60 |
9be42a38f988
|
|
61 |
9be42a38f988
|
AM_CONDITIONAL(FDO_MIME, test x$UPDATE_MIME_DATABASE != xno -a x$UPDATE_DESKTOP_DATABASE != xno) |
62 |
9be42a38f988
|
|
63 |
9be42a38f988
|
|
64 |
a207757f8451
|
|
65 |
a207757f8451
|
dnl output files |
66 |
a207757f8451
|
AC_OUTPUT([ |
67 |
a207757f8451
|
Makefile |
68 |
a207757f8451
|
data/Makefile |
69 |
a09619f1f68c
|
data/icons/Makefile |
70 |
3dcf95408d8d
|
data/icons/16x16/Makefile |
71 |
67d9e9983ed8
|
data/icons/24x24/Makefile |
72 |
67d9e9983ed8
|
data/icons/32x32/Makefile |
73 |
3dcf95408d8d
|
data/icons/48x48/Makefile |
74 |
5d85e4e10813
|
data/mime/Makefile |
75 |
086abbb6fc3c
|
data/ui/Makefile |
76 |
a207757f8451
|
src/Makefile |
77 |
a207757f8451
|
src/lib/Makefile |
78 |
a207757f8451
|
src/lib/datahandler/Makefile |
79 |
9445df12ea7b
|
test/Makefile |
80 |
5d99fc2aa75a
|
wrap/Makefile |
81 |
a207757f8451
|
]) |
82 |
a207757f8451
|