source: trunk/essentials/dev-lang/python/configure.in@ 3300

Last change on this file since 3300 was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 94.1 KB
Line 
1dnl Process this file with autoconf 2.0 or later to make a configure script.
2
3# Set VERSION so we only need to edit in one place (i.e., here)
4m4_define(PYTHON_VERSION, 2.5)
5
6AC_REVISION($Revision: 51727 $)
7AC_PREREQ(2.59)
8AC_INIT(python, PYTHON_VERSION, http://www.python.org/python-bugs)
9AC_CONFIG_SRCDIR([Include/object.h])
10AC_CONFIG_HEADER(pyconfig.h)
11
12dnl This is for stuff that absolutely must end up in pyconfig.h.
13dnl Please use pyport.h instead, if possible.
14AH_TOP([
15#ifndef Py_PYCONFIG_H
16#define Py_PYCONFIG_H
17])
18AH_BOTTOM([
19/* Define the macros needed if on a UnixWare 7.x system. */
20#if defined(__USLC__) && defined(__SCO_VERSION__)
21#define STRICT_SYSV_CURSES /* Don't use ncurses extensions */
22#endif
23
24#endif /*Py_PYCONFIG_H*/
25])
26
27# We don't use PACKAGE_ variables, and they cause conflicts
28# with other autoconf-based packages that include Python.h
29grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
30rm confdefs.h
31mv confdefs.h.new confdefs.h
32
33AC_SUBST(VERSION)
34VERSION=PYTHON_VERSION
35
36AC_SUBST(SOVERSION)
37SOVERSION=1.0
38
39# The later defininition of _XOPEN_SOURCE disables certain features
40# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
41AC_DEFINE(_GNU_SOURCE, 1, [Define on Linux to activate all library features])
42
43# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
44# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
45# them.
46AC_DEFINE(_NETBSD_SOURCE, 1, [Define on NetBSD to activate all library features])
47