File: configure.ac

package info (click to toggle)
pybliographer 1.2.9-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,528 kB
  • ctags: 1,399
  • sloc: python: 9,788; xml: 2,573; makefile: 609; sh: 597
file content (90 lines) | stat: -rw-r--r-- 2,180 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
dnl -*- m4 -*-
dnl This file is part of pybliographer
dnl
dnl Copyright (C) 1998-2004 Frederic GOBRY
dnl Email : gobry@pybliographer.org
dnl          
dnl This program is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU General Public License
dnl as published by the Free Software Foundation; either version 2 
dnl of the License, or (at your option) any later version.
dnl   
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
dnl GNU General Public License for more details. 
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software 
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
dnl
dnl
dnl Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)

AC_INIT
AM_INIT_AUTOMAKE(pybliographer, 1.2.9)

AC_CONFIG_SRCDIR(pybliographer.py)

AC_PROG_LN_S

AC_PATH_PROG(Python, python, no)

if test "${Python}" = "no" ; then
  AC_MSG_ERROR([please install python first])
fi

dnl Python version
MINIMUM_VERSION="2.2"

AC_MSG_CHECKING([python requirements])

${Python} ${srcdir}/setup-check.py ${MINIMUM_VERSION} 2>&5 1>&2

result=$?

if test -f conftest.out ; then
	. ./conftest.out
	rm -f conftest.out
else
	AC_MSG_RESULT([no])
	AC_MSG_ERROR([unable to run the test program])
fi

if test $result = 0 ; then
	if test -z "${Status}" ; then
	  AC_MSG_RESULT([yes (python ${Python_Version}, python-gtk ${PyGtk_Version})])
        else
          AC_MSG_RESULT([assuming yes (${Status})])
        fi
else
	AC_MSG_RESULT([no])
	AC_MSG_ERROR([${Status}])
fi

dnl NLS is now hand-managed for python.

AC_CONFIG_FILES(	
	Makefile 
	po/Makefile
	etc/installer
	scripts/Makefile
	tests/Makefile
	glade/Makefile
	Pyblio/Makefile
	Pyblio/GnomeUI/Makefile
	Pyblio/Format/Makefile
	Pyblio/Output/Makefile
	Pyblio/ConfDir/Makefile
	Pyblio/Style/Makefile
	doc/Makefile
	doc/C/Makefile
	Styles/Makefile
)


AC_OUTPUT

echo "pybliographer is now configured. Type make to build it"