PureDocs

source: trunk/configure.in @ 224

Revision 224, 2.6 KB checked in by will, 5 years ago (diff)

Build system updates. Changed the egg file names to be PureDocs-foo, so they'll be completely PureDocs-namespaced, and bumped the version number.

Line 
1# PureDocs autoconf input file
2
3AC_PREREQ(2.60)
4AC_REVISION([$Revision$])
5
6AC_INIT([PureDocs], [0.5], [puredocs@water-powered.com], [puredocs])
7
8# A known file for autoconf to confirm the source directory
9AC_CONFIG_SRCDIR([LICENSE])
10
11# Checks for programs.
12AC_PROG_CC
13AC_PROG_LIBTOOL
14AC_PROG_INSTALL
15AC_PROG_LN_S
16
17# Checks for header files.
18#AC_HEADER_STDC
19AC_CHECK_HEADERS([Python.h stdlib.h unistd.h])
20
21# Checks for typedefs, structures, and compiler characteristics.
22AC_C_CONST
23AC_STRUCT_TM
24
25# Checks for library functions.
26AC_FUNC_MALLOC
27AC_CHECK_FUNCS([inet_ntoa memset pow socket strerror])
28
29# Check for Python
30AZ_PYTHON_WITH( )
31AZ_PYTHON_PATH( )
32AZ_PYTHON_VERSION_ENSURE([2.5])
33
34# Store the Python version
35# This uses sys.version_info which was introduced in Python 2.0.  Since we
36# require a Python greater than 2.4 (with lxml), we can safely use this.
37PYTHON_VERSION=`${PYTHON} -c 'import sys; print ".".join(map(str, sys.version_info.__getitem__(slice(0,2))))'`
38AC_SUBST([PYTHON_VERSION])
39 
40## Check for Python packages
41# docutils
42AC_MSG_CHECKING([for python docutils])
43AZ_PYTHON_RUN([import docutils])
44if test $az_python_cc -eq 0
45then
46        AC_MSG_RESULT([yes])
47else
48        AC_MSG_ERROR([Python package docutils not found.  It can be installed from the third-party/ directory, the Python Cheese Shop, or http://docutils.sourceforge.net])
49fi
50
51# setuptools
52AC_MSG_CHECKING([for python setuptools])
53AZ_PYTHON_RUN([import setuptools])
54if test $az_python_cc -eq 0
55then
56        AC_MSG_RESULT([yes])
57else
58        AC_MSG_ERROR([Python package setuptools not found.  It can be installed from the third-party/ directory, the Python Cheese Shop, or http://peak.telecommunity.com/DevCenter/setuptools])
59fi
60
61# zope.interface
62AC_MSG_CHECKING([for python zope.interface])
63AZ_PYTHON_RUN([import zope.interface])
64if test $az_python_cc -eq 0
65then
66        AC_MSG_RESULT([yes])
67else
68        AC_MSG_ERROR([Python package zope.interface not found.  It can be installed from the third-party/ directory, the Python Cheese Shop, or http://www.zope.org/Products/ZopeInterface])
69fi
70
71# twisted
72AC_MSG_CHECKING([for python twisted])
73AZ_PYTHON_RUN([import twisted])
74if test $az_python_cc -eq 0
75then
76        AC_MSG_RESULT([yes])
77else
78        AC_MSG_ERROR([Python package twisted not found.  It can be installed from the third-party/ directory, the Python Cheese Shop, or http://twistedmatrix.com])
79fi
80
81AZ_PYTHON_CSPEC
82AZ_PYTHON_LSPEC
83
84AC_CONFIG_FILES([Makefile
85                                Mk/common.mk
86                                Mk/shared.mk
87                                src/libpuredocs/Makefile
88                                src/core/puredocs/core/conf.py
89                                src/core/setup.py
90                                src/plugins/browserxhtml/setup.py
91                                src/plugins/restdoc/setup.py
92                                src/plugins/x_python/setup.py
93                                ])
94
95AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.