diff options
author | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
commit | b2f192faabe412adce79534e22efe9fb69ee40e2 (patch) | |
tree | 7076c49d4286f8a1733650bd8fbc7161af200d57 /meta-extras | |
parent | 2cf0eadf9f730027833af802d7e6c90b44248f80 (diff) | |
download | poky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz |
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta-extras')
18 files changed, 2044 insertions, 0 deletions
diff --git a/meta-extras/packages/libid3tag/libid3tag_0.15.0b.bb b/meta-extras/packages/libid3tag/libid3tag_0.15.0b.bb new file mode 100644 index 0000000000..e47c00e76f --- /dev/null +++ b/meta-extras/packages/libid3tag/libid3tag_0.15.0b.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | SECTION = "libs" | ||
2 | PRIORITY = "optional" | ||
3 | MAINTAINER = "Greg Gilbert <greg@treke.net>" | ||
4 | DEPENDS = "zlib" | ||
5 | DESCRIPTION = "Library for interacting with ID3 tags." | ||
6 | LICENSE = "GPL" | ||
7 | PR = "r2" | ||
8 | |||
9 | SRC_URI = "ftp://ftp.mars.org/pub/mpeg/libid3tag-${PV}.tar.gz " | ||
10 | S = "${WORKDIR}/libid3tag-${PV}" | ||
11 | |||
12 | inherit autotools | ||
13 | |||
14 | EXTRA_OECONF = "-enable-speed" | ||
15 | |||
16 | do_stage() { | ||
17 | oe_libinstall -so libid3tag ${STAGING_LIBDIR} | ||
18 | install -m 0644 id3tag.h ${STAGING_INCDIR} | ||
19 | } | ||
diff --git a/meta-extras/packages/libmad/libmad_0.15.0b.bb b/meta-extras/packages/libmad/libmad_0.15.0b.bb new file mode 100644 index 0000000000..b3614db05a --- /dev/null +++ b/meta-extras/packages/libmad/libmad_0.15.0b.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | DESCRIPTION = "MPEG Audio Decoder Library" | ||
2 | SECTION = "libs" | ||
3 | PRIORITY = "optional" | ||
4 | MAINTAINER = "Greg Gilbert <greg@treke.net>" | ||
5 | DEPENDS = "libid3tag" | ||
6 | LICENSE = "GPL" | ||
7 | PR = "r2" | ||
8 | |||
9 | SRC_URI = "ftp://ftp.mars.org/pub/mpeg/libmad-${PV}.tar.gz" | ||
10 | S = "${WORKDIR}/libmad-${PV}" | ||
11 | |||
12 | inherit autotools | ||
13 | |||
14 | EXTRA_OECONF = "-enable-speed --enable-shared" | ||
15 | # The ASO's don't take any account of thumb... | ||
16 | EXTRA_OECONF_append_thumb = " --disable-aso --enable-fpm=default" | ||
17 | |||
18 | do_configure_prepend () { | ||
19 | # damn picky automake... | ||
20 | touch NEWS AUTHORS ChangeLog | ||
21 | } | ||
22 | |||
23 | do_stage() { | ||
24 | oe_libinstall -so libmad ${STAGING_LIBDIR} | ||
25 | install -m 0644 mad.h ${STAGING_INCDIR} | ||
26 | } | ||
diff --git a/meta-extras/packages/madplay/madplay_0.15.2b.bb b/meta-extras/packages/madplay/madplay_0.15.2b.bb new file mode 100644 index 0000000000..ba2d184a22 --- /dev/null +++ b/meta-extras/packages/madplay/madplay_0.15.2b.bb | |||
@@ -0,0 +1,13 @@ | |||
1 | DESCRIPTION = "Madplay is a command-line MPEG audio decoder and player" | ||
2 | MAINTAINER = "Maciej Swiniarski <luzik@gda.pl>" | ||
3 | SECTION = "console/multimedia" | ||
4 | DEPENDS = "libmad" | ||
5 | LICENSE = "GPL" | ||
6 | AUTHOR = "Robert Leslie <rob@mars.org>" | ||
7 | HOMEPAGE = "http://www.mars.org/home/rob/proj/mpeg/" | ||
8 | |||
9 | SRC_URI = "ftp://ftp.mars.org/pub/mpeg/${PN}-${PV}.tar.gz" | ||
10 | |||
11 | inherit autotools | ||
12 | |||
13 | FILES_${PN} = "${bindir}/madplay" | ||
diff --git a/meta-extras/packages/mc/mc_4.6.0.bb b/meta-extras/packages/mc/mc_4.6.0.bb new file mode 100644 index 0000000000..6636c6747d --- /dev/null +++ b/meta-extras/packages/mc/mc_4.6.0.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | DESCRIPTION = "GNU Midnight Commander is a file \ | ||
2 | manager for free operating systems." | ||
3 | HOMEPAGE = "http://www.ibiblio.org/mc/" | ||
4 | LICENSE = "GPLv2" | ||
5 | SECTION = "console/utils" | ||
6 | PRIORITY = "optional" | ||
7 | DEPENDS = "ncurses glib-2.0" | ||
8 | RDEPENDS = "ncurses-terminfo" | ||
9 | |||
10 | SRC_URI = "http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/mc-${PV}.tar.gz" | ||
11 | |||
12 | inherit autotools | ||
13 | |||
14 | EXTRA_OECONF = "--disable-glibtest --without-x --without-samba \ | ||
15 | --without-nfs --without-gpm-mouse" | ||
16 | |||
17 | do_configure() { | ||
18 | gnu-configize | ||
19 | oe_runconf | ||
20 | } | ||
21 | |||
22 | do_install() { | ||
23 | cd src | ||
24 | oe_runmake 'DESTDIR=${D}' install | ||
25 | cd ../syntax | ||
26 | oe_runmake 'DESTDIR=${D}' install | ||
27 | cd ../po | ||
28 | oe_runmake 'DESTDIR=${D}' install | ||
29 | cd ../vfs | ||
30 | oe_runmake 'DESTDIR=${D}' install | ||
31 | cd .. | ||
32 | } | ||
diff --git a/meta-extras/packages/meta/oh-image-extras.bb b/meta-extras/packages/meta/oh-image-extras.bb new file mode 100644 index 0000000000..0b2ac430ea --- /dev/null +++ b/meta-extras/packages/meta/oh-image-extras.bb | |||
@@ -0,0 +1,27 @@ | |||
1 | PR = "r9" | ||
2 | |||
3 | export IMAGE_BASENAME = "oh-extras" | ||
4 | |||
5 | GUI_MACHINE_CLASS ?= "none" | ||
6 | |||
7 | XSERVER ?= "xserver-kdrive-fbdev" | ||
8 | |||
9 | DEPENDS = "\ | ||
10 | task-oh \ | ||
11 | task-oh-extras" | ||
12 | |||
13 | RDEPENDS = "\ | ||
14 | task-oh-boot \ | ||
15 | task-oh-boot-extras \ | ||
16 | task-oh-base \ | ||
17 | task-oh-standard \ | ||
18 | task-oh-testapps \ | ||
19 | task-oh-devtools \ | ||
20 | task-oh-extraapps \ | ||
21 | ${XSERVER} " | ||
22 | |||
23 | export IPKG_INSTALL = "${RDEPENDS}" | ||
24 | #ROOTFS_POSTPROCESS_COMMAND += "zap_root_password; " | ||
25 | |||
26 | inherit image_ipk | ||
27 | LICENSE = MIT | ||
diff --git a/meta-extras/packages/meta/task-oh-extras.bb b/meta-extras/packages/meta/task-oh-extras.bb new file mode 100644 index 0000000000..6c5b9a974c --- /dev/null +++ b/meta-extras/packages/meta/task-oh-extras.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | PACKAGES = "task-oh-extraapps" | ||
2 | DESCRIPTION = "Extras Tasks for OpenedHand Poky" | ||
3 | MAINTAINER = "Richard Purdie <richard@openedhand.com>" | ||
4 | PR = "r0" | ||
5 | |||
6 | ALLOW_EMPTY = "1" | ||
7 | |||
8 | RDEPENDS_task-oh-extraapps = "\ | ||
9 | madplay \ | ||
10 | mc" | ||
diff --git a/meta-extras/packages/python/python-2.4.3-manifest.inc b/meta-extras/packages/python/python-2.4.3-manifest.inc new file mode 100644 index 0000000000..0178d4e186 --- /dev/null +++ b/meta-extras/packages/python/python-2.4.3-manifest.inc | |||
@@ -0,0 +1,259 @@ | |||
1 | ######################################################################################################################## | ||
2 | ### AUTO-GENERATED by './generate-oe.py' [(C) 2002-2005 Michael 'Mickey' Lauer <mickey@Vanille.de>] on Thu Mar 30 17:39:30 2006 | ||
3 | ### | ||
4 | ### Visit THE Python for Embedded Systems Site => http://www.Vanille.de/projects/python.spy | ||
5 | ### | ||
6 | ### Warning: Manual edits will be lost! | ||
7 | ### | ||
8 | ######################################################################################################################## | ||
9 | |||
10 | |||
11 | PACKAGES="python-threading python-distutils python-textutils python-codecs python-pickle python-datetime python-core python-io python-compiler python-compression python-re python-xmlrpc python-terminal python-email python-image python-resource python-devel python-math python-hotshot python-unixadmin python-tkinter python-gdbm python-fcntl python-netclient python-pprint python-netserver python-curses python-syslog python-html python-readline python-pydoc python-logging python-mailbox python-xml python-mime python-tests python-unittest python-stringold python-lib-old-and-deprecated python-compile python-shell python-bsddb python-mmap python-zlib python-db python-crypt python-idle python-lang python-audio " | ||
12 | |||
13 | DESCRIPTION_python-threading="Python Threading & Synchronization Support" | ||
14 | PR_python-threading="ml0" | ||
15 | RDEPENDS_python-threading="python-core python-lang" | ||
16 | FILES_python-threading="${libdir}/python2.4/_threading_local.* ${libdir}/python2.4/bisect.* ${libdir}/python2.4/dummy_thread.* ${libdir}/python2.4/dummy_threading.* ${libdir}/python2.4/mutex.* ${libdir}/python2.4/threading.* ${libdir}/python2.4/Queue.* " | ||
17 | |||
18 | DESCRIPTION_python-distutils="Python Distribution Utilities" | ||
19 | PR_python-distutils="ml0" | ||
20 | RDEPENDS_python-distutils="python-core" | ||
21 | FILES_python-distutils="${libdir}/python2.4/config ${libdir}/python2.4/distutils " | ||
22 | |||
23 | DESCRIPTION_python-textutils="Python Option Parsing, Text Wrapping and Comma-Separated-Value Support" | ||
24 | PR_python-textutils="ml0" | ||
25 | RDEPENDS_python-textutils="python-core python-io python-re python-stringold" | ||
26 | FILES_python-textutils="${libdir}/python2.4/lib-dynload/_csv.so ${libdir}/python2.4/csv.* ${libdir}/python2.4/optparse.* ${libdir}/python2.4/textwrap.* " | ||
27 | |||
28 | DESCRIPTION_python-codecs="Python Codecs, Encodings & i18n Support" | ||
29 | PR_python-codecs="ml0" | ||
30 | RDEPENDS_python-codecs="python-core" | ||
31 | FILES_python-codecs="${libdir}/python2.4/codecs.* ${libdir}/python2.4/encodings ${libdir}/python2.4/gettext.* ${libdir}/python2.4/locale.* ${libdir}/python2.4/lib-dynload/_locale.so ${libdir}/python2.4/lib-dynload/unicodedata.so ${libdir}/python2.4/stringprep.* ${libdir}/python2.4/xdrlib.* " | ||
32 | |||
33 | DESCRIPTION_python-pickle="Python Persistence Support" | ||
34 | PR_python-pickle="ml0" | ||
35 | RDEPENDS_python-pickle="python-core python-codecs python-re" | ||
36 | FILES_python-pickle="${libdir}/python2.4/pickle.* ${libdir}/python2.4/shelve.* ${libdir}/python2.4/lib-dynload/cPickle.so " | ||
37 | |||
38 | DESCRIPTION_python-datetime="Python Calendar and Time support" | ||
39 | PR_python-datetime="ml0" | ||
40 | RDEPENDS_python-datetime="python-core python-codecs" | ||
41 | FILES_python-datetime="${libdir}/python2.4/_strptime.* ${libdir}/python2.4/calendar.* ${libdir}/python2.4/lib-dynload/datetime.so " | ||
42 | |||
43 | DESCRIPTION_python-core="Python Interpreter and core modules (needed!)" | ||
44 | PR_python-core="ml0" | ||
45 | RDEPENDS_python-core="" | ||
46 | FILES_python-core="/usr/lib/python2.4/__future__.* /usr/lib/python2.4/copy.* /usr/lib/python2.4/copy_reg.* /usr/lib/python2.4/ConfigParser.py /usr/lib/python2.4/getopt.* /usr/lib/python2.4/linecache.* /usr/lib/python2.4/new.* /usr/lib/python2.4/os.* /usr/lib/python2.4/posixpath.* /usr/lib/python2.4/warnings.* /usr/lib/python2.4/site.* /usr/lib/python2.4/stat.* /usr/lib/python2.4/UserDict.* /usr/lib/python2.4/lib-dynload/binascii.so /usr/lib/python2.4/lib-dynload/struct.so /usr/lib/python2.4/lib-dynload/time.so /usr/lib/python2.4/lib-dynload/xreadlines.so /usr/lib/python2.4/types.* /usr/bin/python " | ||
47 | |||
48 | DESCRIPTION_python-io="Python Low-Level I/O" | ||
49 | PR_python-io="ml0" | ||
50 | RDEPENDS_python-io="python-core python-math" | ||
51 | FILES_python-io="${libdir}/python2.4/lib-dynload/_socket.so ${libdir}/python2.4/lib-dynload/_ssl.so ${libdir}/python2.4/lib-dynload/select.so ${libdir}/python2.4/lib-dynload/termios.so ${libdir}/python2.4/lib-dynload/cStringIO.so ${libdir}/python2.4/pipes.* ${libdir}/python2.4/socket.* ${libdir}/python2.4/tempfile.* ${libdir}/python2.4/StringIO.* " | ||
52 | |||
53 | DESCRIPTION_python-compiler="Python Compiler Support" | ||
54 | PR_python-compiler="ml0" | ||
55 | RDEPENDS_python-compiler="python-core" | ||
56 | FILES_python-compiler="${libdir}/python2.4/compiler " | ||
57 | |||
58 | DESCRIPTION_python-compression="Python High Level Compression Support" | ||
59 | PR_python-compression="ml0" | ||
60 | RDEPENDS_python-compression="python-core python-zlib" | ||
61 | FILES_python-compression="${libdir}/python2.4/gzip.* ${libdir}/python2.4/zipfile.* " | ||
62 | |||
63 | DESCRIPTION_python-re="Python Regular Expression APIs" | ||
64 | PR_python-re="ml0" | ||
65 | RDEPENDS_python-re="python-core" | ||
66 | FILES_python-re="${libdir}/python2.4/re.* ${libdir}/python2.4/sre.* ${libdir}/python2.4/sre_compile.* ${libdir}/python2.4/sre_constants* ${libdir}/python2.4/sre_parse.* " | ||
67 | |||
68 | DESCRIPTION_python-xmlrpc="Python XMLRPC Support" | ||
69 | PR_python-xmlrpc="ml0" | ||
70 | RDEPENDS_python-xmlrpc="python-core python-xml python-netserver python-lang" | ||
71 | FILES_python-xmlrpc="${libdir}/python2.4/xmlrpclib.* ${libdir}/python2.4/SimpleXMLRPCServer.* " | ||
72 | |||
73 | DESCRIPTION_python-terminal="Python Terminal Controlling Support" | ||
74 | PR_python-terminal="ml0" | ||
75 | RDEPENDS_python-terminal="python-core python-io" | ||
76 | FILES_python-terminal="${libdir}/python2.4/pty.* ${libdir}/python2.4/tty.* " | ||
77 | |||
78 | DESCRIPTION_python-email="Python Email Support" | ||
79 | PR_python-email="ml0" | ||
80 | RDEPENDS_python-email="python-core python-io python-re" | ||
81 | FILES_python-email="${libdir}/python2.4/email " | ||
82 | |||
83 | DESCRIPTION_python-image="Python Graphical Image Handling" | ||
84 | PR_python-image="ml0" | ||
85 | RDEPENDS_python-image="python-core" | ||
86 | FILES_python-image="${libdir}/python2.4/colorsys.* ${libdir}/python2.4/imghdr.* ${libdir}/python2.4/lib-dynload/imageop.so ${libdir}/python2.4/lib-dynload/rgbimg.so " | ||
87 | |||
88 | DESCRIPTION_python-resource="Python Resource Control Interface" | ||
89 | PR_python-resource="ml0" | ||
90 | RDEPENDS_python-resource="python-core" | ||
91 | FILES_python-resource="${libdir}/python2.4/lib-dynload/resource.so " | ||
92 | |||
93 | DESCRIPTION_python-devel="Python Development Package" | ||
94 | PR_python-devel="ml0" | ||
95 | RDEPENDS_python-devel="python-core" | ||
96 | FILES_python-devel="/usr/include /usr/lib/python2.4/config " | ||
97 | |||
98 | DESCRIPTION_python-math="Python Math Support" | ||
99 | PR_python-math="ml0" | ||
100 | RDEPENDS_python-math="python-core" | ||
101 | FILES_python-math="${libdir}/python2.4/lib-dynload/cmath.so ${libdir}/python2.4/lib-dynload/math.so ${libdir}/python2.4/lib-dynload/_random.so ${libdir}/python2.4/random.* ${libdir}/python2.4/sets.* " | ||
102 | |||
103 | DESCRIPTION_python-hotshot="Python Hotshot Profiler" | ||
104 | PR_python-hotshot="ml0" | ||
105 | RDEPENDS_python-hotshot="python-core" | ||
106 | FILES_python-hotshot="${libdir}/python2.4/hotshot ${libdir}/python2.4/lib-dynload/_hotshot.so " | ||
107 | |||
108 | DESCRIPTION_python-unixadmin="Python Unix Administration Support" | ||
109 | PR_python-unixadmin="ml0" | ||
110 | RDEPENDS_python-unixadmin="python-core" | ||
111 | FILES_python-unixadmin="${libdir}/python2.4/lib-dynload/nis.so ${libdir}/python2.4/lib-dynload/grp.so ${libdir}/python2.4/lib-dynload/pwd.so ${libdir}/python2.4/getpass.* " | ||
112 | |||
113 | DESCRIPTION_python-tkinter="Python Tcl/Tk Bindings" | ||
114 | PR_python-tkinter="ml0" | ||
115 | RDEPENDS_python-tkinter="python-core" | ||
116 | FILES_python-tkinter="${libdir}/python2.4/lib-dynload/_tkinter.so ${libdir}/python2.4/lib-tk " | ||
117 | |||
118 | DESCRIPTION_python-gdbm="Python GNU Database Support" | ||
119 | PR_python-gdbm="ml0" | ||
120 | RDEPENDS_python-gdbm="python-core libgdbm3" | ||
121 | FILES_python-gdbm="${libdir}/python2.4/lib-dynload/gdbm.so " | ||
122 | |||
123 | DESCRIPTION_python-fcntl="Python's fcntl Interface" | ||
124 | PR_python-fcntl="ml0" | ||
125 | RDEPENDS_python-fcntl="python-core" | ||
126 | FILES_python-fcntl="${libdir}/python2.4/lib-dynload/fcntl.so " | ||
127 | |||
128 | DESCRIPTION_python-netclient="Python Internet Protocol Clients" | ||
129 | PR_python-netclient="ml0" | ||
130 | RDEPENDS_python-netclient="python-core python-datetime python-io python-lang python-logging python-mime" | ||
131 | FILES_python-netclient="${libdir}/python2.4/_LWPCookieJar.* ${libdir}/python2.4/_MozillaCookieJar.* ${libdir}/python2.4/base64.* ${libdir}/python2.4/cookielib.* ${libdir}/python2.4/ftplib.* ${libdir}/python2.4/gopherlib.* ${libdir}/python2.4/hmac.* ${libdir}/python2.4/httplib.* ${libdir}/python2.4/mimetypes.* ${libdir}/python2.4/nntplib.* ${libdir}/python2.4/poplib.* ${libdir}/python2.4/smtplib.* ${libdir}/python2.4/telnetlib.* ${libdir}/python2.4/urllib.* ${libdir}/python2.4/urllib2.* ${libdir}/python2.4/urlparse.* " | ||
132 | |||
133 | DESCRIPTION_python-pprint="Python Pretty-Print Support" | ||
134 | PR_python-pprint="ml0" | ||
135 | RDEPENDS_python-pprint="python-core" | ||
136 | FILES_python-pprint="${libdir}/python2.4/pprint.* " | ||
137 | |||
138 | DESCRIPTION_python-netserver="Python Internet Protocol Servers" | ||
139 | PR_python-netserver="ml0" | ||
140 | RDEPENDS_python-netserver="python-core python-netclient" | ||
141 | FILES_python-netserver="${libdir}/python2.4/cgi.* ${libdir}/python2.4/BaseHTTPServer.* ${libdir}/python2.4/SimpleHTTPServer.* ${libdir}/python2.4/SocketServer.* " | ||
142 | |||
143 | DESCRIPTION_python-curses="Python Curses Support" | ||
144 | PR_python-curses="ml0" | ||
145 | RDEPENDS_python-curses="python-core libncurses5" | ||
146 | FILES_python-curses="${libdir}/python2.4/curses ${libdir}/python2.4/lib-dynload/_curses.so ${libdir}/python2.4/lib-dynload/_curses_panel.so " | ||
147 | |||
148 | DESCRIPTION_python-syslog="Python's syslog Interface" | ||
149 | PR_python-syslog="ml0" | ||
150 | RDEPENDS_python-syslog="python-core" | ||
151 | FILES_python-syslog="${libdir}/python2.4/lib-dynload/syslog.so " | ||
152 | |||
153 | DESCRIPTION_python-html="Python HTML Processing" | ||
154 | PR_python-html="ml0" | ||
155 | RDEPENDS_python-html="python-core" | ||
156 | FILES_python-html="${libdir}/python2.4/formatter.* ${libdir}/python2.4/htmlentitydefs.* ${libdir}/python2.4/htmllib.* ${libdir}/python2.4/markupbase.* ${libdir}/python2.4/sgmllib.* " | ||
157 | |||
158 | DESCRIPTION_python-readline="Python Readline Support" | ||
159 | PR_python-readline="ml0" | ||
160 | RDEPENDS_python-readline="python-core libreadline4" | ||
161 | FILES_python-readline="${libdir}/python2.4/lib-dynload/readline.so ${libdir}/python2.4/rlcompleter.* " | ||
162 | |||
163 | DESCRIPTION_python-pydoc="Python Interactive Help Support" | ||
164 | PR_python-pydoc="ml0" | ||
165 | RDEPENDS_python-pydoc="python-core python-lang python-stringold python-re" | ||
166 | FILES_python-pydoc="/usr/bin/pydoc /usr/lib/python2.4/pydoc.* " | ||
167 | |||
168 | DESCRIPTION_python-logging="Python Logging Support" | ||
169 | PR_python-logging="ml0" | ||
170 | RDEPENDS_python-logging="python-core" | ||
171 | FILES_python-logging="${libdir}/python2.4/logging " | ||
172 | |||
173 | DESCRIPTION_python-mailbox="Python Mailbox Format Support" | ||
174 | PR_python-mailbox="ml0" | ||
175 | RDEPENDS_python-mailbox="python-core python-mime" | ||
176 | FILES_python-mailbox="${libdir}/python2.4/mailbox.* " | ||
177 | |||
178 | DESCRIPTION_python-xml="Python basic XML support." | ||
179 | PR_python-xml="ml0" | ||
180 | RDEPENDS_python-xml="python-core python-re" | ||
181 | FILES_python-xml="${libdir}/python2.4/lib-dynload/pyexpat.so ${libdir}/python2.4/xml ${libdir}/python2.4/xmllib.* " | ||
182 | |||
183 | DESCRIPTION_python-mime="Python MIME Handling APIs" | ||
184 | PR_python-mime="ml0" | ||
185 | RDEPENDS_python-mime="python-core python-io" | ||
186 | FILES_python-mime="${libdir}/python2.4/mimetools.* ${libdir}/python2.4/quopri.* ${libdir}/python2.4/rfc822.* " | ||
187 | |||
188 | DESCRIPTION_python-tests="Python Tests" | ||
189 | PR_python-tests="ml0" | ||
190 | RDEPENDS_python-tests="python-core" | ||
191 | FILES_python-tests="${libdir}/python2.4/test " | ||
192 | |||
193 | DESCRIPTION_python-unittest="Python Unit Testing Framework" | ||
194 | PR_python-unittest="ml0" | ||
195 | RDEPENDS_python-unittest="python-core python-stringold python-lang" | ||
196 | FILES_python-unittest="${libdir}/python2.4/unittest.* " | ||
197 | |||
198 | DESCRIPTION_python-stringold="Python Deprecated String APIs" | ||
199 | PR_python-stringold="ml0" | ||
200 | RDEPENDS_python-stringold="python-core python-re" | ||
201 | FILES_python-stringold="${libdir}/python2.4/lib-dynload/strop.so ${libdir}/python2.4/string.* " | ||
202 | |||
203 | DESCRIPTION_python-lib-old-and-deprecated="Python Deprecated Libraries" | ||
204 | PR_python-lib-old-and-deprecated="ml0" | ||
205 | RDEPENDS_python-lib-old-and-deprecated="python-core" | ||
206 | FILES_python-lib-old-and-deprecated="${libdir}/python2.4/lib-old " | ||
207 | |||
208 | DESCRIPTION_python-compile="Python Bytecode Compilation Support" | ||
209 | PR_python-compile="ml0" | ||
210 | RDEPENDS_python-compile="python-core" | ||
211 | FILES_python-compile="${libdir}/python2.4/py_compile.* ${libdir}/python2.4/compileall.* " | ||
212 | |||
213 | DESCRIPTION_python-shell="Python Shell-Like Functionality" | ||
214 | PR_python-shell="ml0" | ||
215 | RDEPENDS_python-shell="python-core python-re" | ||
216 | FILES_python-shell="${libdir}/python2.4/commands.* ${libdir}/python2.4/dircache.* ${libdir}/python2.4/fnmatch.* ${libdir}/python2.4/glob.* ${libdir}/python2.4/popen2.* ${libdir}/python2.4/shutil.* " | ||
217 | |||
218 | DESCRIPTION_python-bsddb="Python Berkeley Database Bindings" | ||
219 | PR_python-bsddb="ml0" | ||
220 | RDEPENDS_python-bsddb="python-core" | ||
221 | FILES_python-bsddb="${libdir}/python2.4/bsddb " | ||
222 | |||
223 | DESCRIPTION_python-mmap="Python Memory-Mapped-File Support" | ||
224 | PR_python-mmap="ml0" | ||
225 | RDEPENDS_python-mmap="python-core python-io" | ||
226 | FILES_python-mmap="${libdir}/python2.4/lib-dynload/mmap.so " | ||
227 | |||
228 | DESCRIPTION_python-zlib="Python zlib Support." | ||
229 | PR_python-zlib="ml0" | ||
230 | RDEPENDS_python-zlib="python-core libz1" | ||
231 | FILES_python-zlib="${libdir}/python2.4/lib-dynload/zlib.so " | ||
232 | |||
233 | DESCRIPTION_python-db="Python File-Based Database Support" | ||
234 | PR_python-db="ml0" | ||
235 | RDEPENDS_python-db="python-core" | ||
236 | FILES_python-db="${libdir}/python2.4/anydbm.* ${libdir}/python2.4/dumbdbm.* ${libdir}/python2.4/whichdb.* " | ||
237 | |||
238 | DESCRIPTION_python-crypt="Python Basic Cryptographic and Hashing Support" | ||
239 | PR_python-crypt="ml0" | ||
240 | RDEPENDS_python-crypt="python-core" | ||
241 | FILES_python-crypt="${libdir}/python2.4/lib-dynload/crypt.so ${libdir}/python2.4/lib-dynload/md5.so ${libdir}/python2.4/lib-dynload/rotor.so ${libdir}/python2.4/lib-dynload/sha.so " | ||
242 | |||
243 | DESCRIPTION_python-idle="Python Integrated Development Environment" | ||
244 | PR_python-idle="ml0" | ||
245 | RDEPENDS_python-idle="python-core python-tkinter" | ||
246 | FILES_python-idle="/usr/bin/idle /usr/lib/python2.4/idlelib " | ||
247 | |||
248 | DESCRIPTION_python-lang="Python Low-Level Language Support" | ||
249 | PR_python-lang="ml0" | ||
250 | RDEPENDS_python-lang="python-core" | ||
251 | FILES_python-lang="${libdir}/python2.4/lib-dynload/array.so ${libdir}/python2.4/lib-dynload/parser.so ${libdir}/python2.4/lib-dynload/operator.so ${libdir}/python2.4/lib-dynload/_weakref.so ${libdir}/python2.4/lib-dynload/itertools.so ${libdir}/python2.4/lib-dynload/collections.so ${libdir}/python2.4/atexit.* ${libdir}/python2.4/code.* ${libdir}/python2.4/codeop.* ${libdir}/python2.4/dis.* ${libdir}/python2.4/inspect.* ${libdir}/python2.4/keyword.* ${libdir}/python2.4/opcode.* ${libdir}/python2.4/repr.* ${libdir}/python2.4/token.* ${libdir}/python2.4/tokenize.* ${libdir}/python2.4/traceback.* ${libdir}/python2.4/linecache.* ${libdir}/python2.4/weakref.* " | ||
252 | |||
253 | DESCRIPTION_python-audio="Python Audio Handling" | ||
254 | PR_python-audio="ml0" | ||
255 | RDEPENDS_python-audio="python-core" | ||
256 | FILES_python-audio="${libdir}/python2.4/wave.* ${libdir}/python2.4/chunk.* ${libdir}/python2.4/lib-dynload/ossaudiodev.so ${libdir}/python2.4/lib-dynload/audioop.so " | ||
257 | |||
258 | |||
259 | |||
diff --git a/meta-extras/packages/python/python-2.4.3/autohell.patch b/meta-extras/packages/python/python-2.4.3/autohell.patch new file mode 100644 index 0000000000..b0eebb9ce8 --- /dev/null +++ b/meta-extras/packages/python/python-2.4.3/autohell.patch | |||
@@ -0,0 +1,1209 @@ | |||
1 | --- Python-2.3.3/acinclude.m4 1969-12-31 19:00:00.000000000 -0500 | ||
2 | +++ Python-2.3.3/acinclude.m4 2004-02-17 12:22:29.000000000 -0500 | ||
3 | @@ -0,0 +1,10 @@ | ||
4 | +dnl Autoconf 2.5x does not have AC_PROG_CXX_WORKS anymore | ||
5 | +dnl If this macro is not defined by Autoconf, define it here. | ||
6 | + | ||
7 | +m4_ifdef([AC_PROG_CXX_WORKS], | ||
8 | + [], | ||
9 | + [m4_define([AC_PROG_CXX_WORKS], | ||
10 | + [AC_LANG_PUSH(C++)dnl | ||
11 | + _AC_COMPILER_EXEEXT | ||
12 | + AC_LANG_POP()] | ||
13 | + )]) | ||
14 | --- Python-2.3.3/configure.in 2003-11-18 14:59:39.000000000 -0500 | ||
15 | +++ Python-2.3.3/configure.in 2004-02-17 12:22:27.000000000 -0500 | ||
16 | @@ -4,8 +4,8 @@ | ||
17 | m4_define(PYTHON_VERSION, 2.3) | ||
18 | |||
19 | AC_REVISION($Revision: 1.427.4.10 $) | ||
20 | -AC_PREREQ(2.53) | ||
21 | -AC_INIT(python, PYTHON_VERSION) | ||
22 | +AC_PREREQ(2.59) | ||
23 | +AC_INIT([python],[PYTHON_VERSION]) | ||
24 | AC_CONFIG_SRCDIR([Include/object.h]) | ||
25 | AC_CONFIG_HEADER(pyconfig.h) | ||
26 | |||
27 | @@ -58,7 +58,7 @@ | ||
28 | |||
29 | dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output | ||
30 | AC_ARG_ENABLE(framework, | ||
31 | - AC_HELP_STRING(--enable-framework@<:@=INSTALLDIR@:>@, Build (MacOSX|Darwin) framework), | ||
32 | + AS_HELP_STRING(--enable-framework@<:@=INSTALLDIR@:>@,Build (MacOSX|Darwin) framework), | ||
33 | [ | ||
34 | case $enableval in | ||
35 | yes) | ||
36 | @@ -92,8 +92,7 @@ | ||
37 | AC_SUBST(PYTHONFRAMEWORKINSTALLDIR) | ||
38 | |||
39 | ##AC_ARG_WITH(dyld, | ||
40 | -## AC_HELP_STRING(--with-dyld, | ||
41 | -## Use (OpenStep|Rhapsody) dynamic linker)) | ||
42 | +## AS_HELP_STRING(--with-dyld,## Use (OpenStep|Rhapsody) dynamic linker)) | ||
43 | ## | ||
44 | # Set name for machine-dependent library files | ||
45 | AC_SUBST(MACHDEP) | ||
46 | @@ -227,7 +226,7 @@ | ||
47 | # on that fiddles with OPT and BASECFLAGS? | ||
48 | AC_MSG_CHECKING(for --without-gcc) | ||
49 | AC_ARG_WITH(gcc, | ||
50 | - AC_HELP_STRING(--without-gcc,never use gcc), | ||
51 | + AS_HELP_STRING(--without-gcc,never use gcc), | ||
52 | [ | ||
53 | case $withval in | ||
54 | no) CC=cc | ||
55 | @@ -273,7 +272,7 @@ | ||
56 | MAINOBJ=python.o | ||
57 | AC_MSG_CHECKING(for --with-cxx=<compiler>) | ||
58 | AC_ARG_WITH(cxx, | ||
59 | - AC_HELP_STRING(--with-cxx=<compiler>, enable C++ support), | ||
60 | + AS_HELP_STRING(--with-cxx=<compiler>,enable C++ support), | ||
61 | [ | ||
62 | check_cxx=no | ||
63 | case $withval in | ||
64 | @@ -298,15 +297,6 @@ | ||
65 | dnl --without-cxx was given. | ||
66 | dnl Finally, it does not test whether CXX is g++. | ||
67 | |||
68 | -dnl Autoconf 2.5x does not have AC_PROG_CXX_WORKS anymore | ||
69 | -ifdef([AC_PROG_CXX_WORKS],[], | ||
70 | - [AC_DEFUN([AC_PROG_CXX_WORKS], | ||
71 | - [AC_LANG_PUSH(C++)dnl | ||
72 | - _AC_COMPILER_EXEEXT | ||
73 | - AC_LANG_POP() | ||
74 | - ] | ||
75 | -)]) | ||
76 | - | ||
77 | if test "$check_cxx" = "yes" | ||
78 | then | ||
79 | AC_CHECK_PROGS(CXX, $CCC c++ g++ gcc CC cxx cc++ cl, notfound) | ||
80 | @@ -348,7 +338,7 @@ | ||
81 | AC_EXEEXT | ||
82 | AC_MSG_CHECKING(for --with-suffix) | ||
83 | AC_ARG_WITH(suffix, | ||
84 | - AC_HELP_STRING(--with-suffix=.exe, set executable suffix), | ||
85 | + AS_HELP_STRING(--with-suffix=.exe,set executable suffix), | ||
86 | [ | ||
87 | case $withval in | ||
88 | no) EXEEXT=;; | ||
89 | @@ -474,7 +464,7 @@ | ||
90 | |||
91 | AC_MSG_CHECKING(for --enable-shared) | ||
92 | AC_ARG_ENABLE(shared, | ||
93 | - AC_HELP_STRING(--enable-shared, disable/enable building shared python library)) | ||
94 | + AS_HELP_STRING(--enable-shared,disable/enable building shared python library)) | ||
95 | |||
96 | if test -z "$enable_shared" | ||
97 | then | ||
98 | @@ -583,7 +573,7 @@ | ||
99 | # Check for --with-pydebug | ||
100 | AC_MSG_CHECKING(for --with-pydebug) | ||
101 | AC_ARG_WITH(pydebug, | ||
102 | - AC_HELP_STRING(--with-pydebug, build with Py_DEBUG defined), | ||
103 | + AS_HELP_STRING(--with-pydebug,build with Py_DEBUG defined), | ||
104 | [ | ||
105 | if test "$withval" != no | ||
106 | then | ||
107 | @@ -660,10 +650,7 @@ | ||
108 | AC_MSG_CHECKING(whether $CC accepts -fno-strict-aliasing) | ||
109 | ac_save_cc="$CC" | ||
110 | CC="$CC -fno-strict-aliasing" | ||
111 | - AC_TRY_RUN([int main() { return 0; }], | ||
112 | - ac_cv_no_strict_aliasing_ok=yes, | ||
113 | - ac_cv_no_strict_aliasing_ok=no, | ||
114 | - ac_cv_no_strict_aliasing_ok=no) | ||
115 | + AC_RUN_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],[ac_cv_no_strict_aliasing_ok=yes],[ac_cv_no_strict_aliasing_ok=no],[ac_cv_no_strict_aliasing_ok=no]) | ||
116 | CC="$ac_save_cc" | ||
117 | AC_MSG_RESULT($ac_cv_no_strict_aliasing_ok) | ||
118 | if test $ac_cv_no_strict_aliasing_ok = yes | ||
119 | @@ -711,10 +698,7 @@ | ||
120 | AC_CACHE_VAL(ac_cv_opt_olimit_ok, | ||
121 | [ac_save_cc="$CC" | ||
122 | CC="$CC -OPT:Olimit=0" | ||
123 | -AC_TRY_RUN([int main() { return 0; }], | ||
124 | - ac_cv_opt_olimit_ok=yes, | ||
125 | - ac_cv_opt_olimit_ok=no, | ||
126 | - ac_cv_opt_olimit_ok=no) | ||
127 | +AC_RUN_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],[ac_cv_opt_olimit_ok=yes],[ac_cv_opt_olimit_ok=no],[ac_cv_opt_olimit_ok=no]) | ||
128 | CC="$ac_save_cc"]) | ||
129 | AC_MSG_RESULT($ac_cv_opt_olimit_ok) | ||
130 | if test $ac_cv_opt_olimit_ok = yes; then | ||
131 | @@ -733,10 +717,7 @@ | ||
132 | AC_CACHE_VAL(ac_cv_olimit_ok, | ||
133 | [ac_save_cc="$CC" | ||
134 | CC="$CC -Olimit 1500" | ||
135 | - AC_TRY_RUN([int main() { return 0; }], | ||
136 | - ac_cv_olimit_ok=yes, | ||
137 | - ac_cv_olimit_ok=no, | ||
138 | - ac_cv_olimit_ok=no) | ||
139 | + AC_RUN_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],[ac_cv_olimit_ok=yes],[ac_cv_olimit_ok=no],[ac_cv_olimit_ok=no]) | ||
140 | CC="$ac_save_cc"]) | ||
141 | AC_MSG_RESULT($ac_cv_olimit_ok) | ||
142 | if test $ac_cv_olimit_ok = yes; then | ||
143 | @@ -751,7 +732,7 @@ | ||
144 | # options before we can check whether -Kpthread improves anything. | ||
145 | AC_MSG_CHECKING(whether pthreads are available without options) | ||
146 | AC_CACHE_VAL(ac_cv_pthread_is_default, | ||
147 | -[AC_TRY_RUN([ | ||
148 | +[AC_RUN_IFELSE([AC_LANG_SOURCE([[ | ||
149 | #include <pthread.h> | ||
150 | |||
151 | void* routine(void* p){return NULL;} | ||
152 | @@ -763,14 +744,11 @@ | ||
153 | (void)pthread_detach(p); | ||
154 | return 0; | ||
155 | } | ||
156 | -], | ||
157 | -[ | ||
158 | +]])],[ | ||
159 | ac_cv_pthread_is_default=yes | ||
160 | ac_cv_kthread=no | ||
161 | ac_cv_pthread=no | ||
162 | -], | ||
163 | - ac_cv_pthread_is_default=no, | ||
164 | - ac_cv_pthread_is_default=no) | ||
165 | +],[ac_cv_pthread_is_default=no],[ac_cv_pthread_is_default=no]) | ||
166 | ]) | ||
167 | AC_MSG_RESULT($ac_cv_pthread_is_default) | ||
168 | |||
169 | @@ -788,7 +766,7 @@ | ||
170 | AC_CACHE_VAL(ac_cv_kpthread, | ||
171 | [ac_save_cc="$CC" | ||
172 | CC="$CC -Kpthread" | ||
173 | -AC_TRY_RUN([ | ||
174 | +AC_RUN_IFELSE([AC_LANG_SOURCE([[ | ||
175 | #include <pthread.h> | ||
176 | |||
177 | void* routine(void* p){return NULL;} | ||
178 | @@ -800,10 +778,7 @@ | ||
179 | (void)pthread_detach(p); | ||
180 | return 0; | ||
181 | } | ||
182 | -], | ||
183 | - ac_cv_kpthread=yes, | ||
184 | - ac_cv_kpthread=no, | ||
185 | - ac_cv_kpthread=no) | ||
186 | +]])],[ac_cv_kpthread=yes],[ac_cv_kpthread=no],[ac_cv_kpthread=no]) | ||
187 | CC="$ac_save_cc"]) | ||
188 | AC_MSG_RESULT($ac_cv_kpthread) | ||
189 | fi | ||
190 | @@ -819,7 +794,7 @@ | ||
191 | AC_CACHE_VAL(ac_cv_kthread, | ||
192 | [ac_save_cc="$CC" | ||
193 | CC="$CC -Kthread" | ||
194 | -AC_TRY_RUN([ | ||
195 | +AC_RUN_IFELSE([AC_LANG_SOURCE([[ | ||
196 | #include <pthread.h> | ||
197 | |||
198 | void* routine(void* p){return NULL;} | ||
199 | @@ -831,10 +806,7 @@ | ||
200 | (void)pthread_detach(p); | ||
201 | return 0; | ||
202 | } | ||
203 | -], | ||
204 | - ac_cv_kthread=yes, | ||
205 | - ac_cv_kthread=no, | ||
206 | - ac_cv_kthread=no) | ||
207 | +]])],[ac_cv_kthread=yes],[ac_cv_kthread=no],[ac_cv_kthread=no]) | ||
208 | CC="$ac_save_cc"]) | ||
209 | AC_MSG_RESULT($ac_cv_kthread) | ||
210 | fi | ||
211 | @@ -850,7 +822,7 @@ | ||
212 | AC_CACHE_VAL(ac_cv_thread, | ||
213 | [ac_save_cc="$CC" | ||
214 | CC="$CC -pthread" | ||
215 | -AC_TRY_RUN([ | ||
216 | +AC_RUN_IFELSE([AC_LANG_SOURCE([[ | ||
217 | #include <pthread.h> | ||
218 | |||
219 | void* routine(void* p){return NULL;} | ||
220 | @@ -862,10 +834,7 @@ | ||
221 | (void)pthread_detach(p); | ||
222 | return 0; | ||
223 | } | ||
224 | -], | ||
225 | - ac_cv_pthread=yes, | ||
226 | - ac_cv_pthread=no, | ||
227 | - ac_cv_pthread=no) | ||
228 | +]])],[ac_cv_pthread=yes],[ac_cv_pthread=no],[ac_cv_pthread=no]) | ||
229 | CC="$ac_save_cc"]) | ||
230 | AC_MSG_RESULT($ac_cv_pthread) | ||
231 | fi | ||
232 | @@ -911,11 +880,11 @@ | ||
233 | |||
234 | dnl # check for ANSI or K&R ("traditional") preprocessor | ||
235 | dnl AC_MSG_CHECKING(for C preprocessor type) | ||
236 | -dnl AC_TRY_COMPILE([ | ||
237 | +dnl AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
238 | dnl #define spam(name, doc) {#name, &name, #name "() -- " doc} | ||
239 | dnl int foo; | ||
240 | dnl struct {char *name; int *addr; char *doc;} desc = spam(foo, "something"); | ||
241 | -dnl ], [;], cpp_type=ansi, AC_DEFINE(HAVE_OLD_CPP) cpp_type=traditional) | ||
242 | +dnl ]], [[;]])],[cpp_type=ansi],[AC_DEFINE(HAVE_OLD_CPP) cpp_type=traditional]) | ||
243 | dnl AC_MSG_RESULT($cpp_type) | ||
244 | |||
245 | # checks for header files | ||
246 | @@ -941,19 +910,13 @@ | ||
247 | |||
248 | # Check whether using makedev requires defining _OSF_SOURCE | ||
249 | AC_MSG_CHECKING(for makedev) | ||
250 | -AC_TRY_LINK([#include <sys/types.h> ], | ||
251 | - [ makedev(0, 0) ], | ||
252 | - ac_cv_has_makedev=yes, | ||
253 | - ac_cv_has_makedev=no) | ||
254 | +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> ]], [[ makedev(0, 0) ]])],[ac_cv_has_makedev=yes],[ac_cv_has_makedev=no]) | ||
255 | if test "$ac_cv_has_makedev" = "no"; then | ||
256 | # we didn't link, try if _OSF_SOURCE will allow us to link | ||
257 | - AC_TRY_LINK([ | ||
258 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([[ | ||
259 | #define _OSF_SOURCE 1 | ||
260 | #include <sys/types.h> | ||
261 | - ], | ||
262 | - [ makedev(0, 0) ], | ||
263 | - ac_cv_has_makedev=yes, | ||
264 | - ac_cv_has_makedev=no) | ||
265 | + ]], [[ makedev(0, 0) ]])],[ac_cv_has_makedev=yes],[ac_cv_has_makedev=no]) | ||
266 | if test "$ac_cv_has_makedev" = "yes"; then | ||
267 | AC_DEFINE(_OSF_SOURCE, 1, [Define _OSF_SOURCE to get the makedev macro.]) | ||
268 | fi | ||
269 | @@ -972,11 +935,11 @@ | ||
270 | |||
271 | use_lfs=yes | ||
272 | AC_MSG_CHECKING(Solaris LFS bug) | ||
273 | -AC_TRY_COMPILE([ | ||
274 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
275 | #define _LARGEFILE_SOURCE 1 | ||
276 | #define _FILE_OFFSET_BITS 64 | ||
277 | #include <sys/resource.h> | ||
278 | -],struct rlimit foo;,sol_lfs_bug=no,sol_lfs_bug=yes) | ||
279 | +]], [[struct rlimit foo;]])],[sol_lfs_bug=no],[sol_lfs_bug=yes]) | ||
280 | AC_MSG_RESULT($sol_lfs_bug) | ||
281 | if test "$sol_lfs_bug" = "yes"; then | ||
282 | use_lfs=no | ||
283 | @@ -1018,10 +981,10 @@ | ||
284 | |||
285 | AC_MSG_CHECKING(for long long support) | ||
286 | have_long_long=no | ||
287 | -AC_TRY_COMPILE([], [long long x; x = (long long)0;], [ | ||
288 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[long long x; x = (long long)0;]])],[ | ||
289 | AC_DEFINE(HAVE_LONG_LONG, 1, [Define this if you have the type long long.]) | ||
290 | have_long_long=yes | ||
291 | -]) | ||
292 | +],[]) | ||
293 | AC_MSG_RESULT($have_long_long) | ||
294 | if test "$have_long_long" = yes ; then | ||
295 | AC_CHECK_SIZEOF(long long, 8) | ||
296 | @@ -1029,10 +992,10 @@ | ||
297 | |||
298 | AC_MSG_CHECKING(for uintptr_t support) | ||
299 | have_uintptr_t=no | ||
300 | -AC_TRY_COMPILE([], [uintptr_t x; x = (uintptr_t)0;], [ | ||
301 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[uintptr_t x; x = (uintptr_t)0;]])],[ | ||
302 | AC_DEFINE(HAVE_UINTPTR_T, 1, [Define this if you have the type uintptr_t.]) | ||
303 | have_uintptr_t=yes | ||
304 | -]) | ||
305 | +],[]) | ||
306 | AC_MSG_RESULT($have_uintptr_t) | ||
307 | if test "$have_uintptr_t" = yes ; then | ||
308 | AC_CHECK_SIZEOF(uintptr_t, 4) | ||
309 | @@ -1041,7 +1004,7 @@ | ||
310 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. | ||
311 | AC_MSG_CHECKING(size of off_t) | ||
312 | AC_CACHE_VAL(ac_cv_sizeof_off_t, | ||
313 | -[AC_TRY_RUN([#include <stdio.h> | ||
314 | +[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> | ||
315 | #include <sys/types.h> | ||
316 | main() | ||
317 | { | ||
318 | @@ -1049,10 +1012,7 @@ | ||
319 | if (!f) exit(1); | ||
320 | fprintf(f, "%d\n", sizeof(off_t)); | ||
321 | exit(0); | ||
322 | -}], | ||
323 | -ac_cv_sizeof_off_t=`cat conftestval`, | ||
324 | -ac_cv_sizeof_off_t=0, | ||
325 | -ac_cv_sizeof_off_t=4) | ||
326 | +}]])],[ac_cv_sizeof_off_t=`cat conftestval`],[ac_cv_sizeof_off_t=0],[ac_cv_sizeof_off_t=4]) | ||
327 | ]) | ||
328 | AC_MSG_RESULT($ac_cv_sizeof_off_t) | ||
329 | AC_DEFINE_UNQUOTED(SIZEOF_OFF_T, $ac_cv_sizeof_off_t, | ||
330 | @@ -1075,7 +1035,7 @@ | ||
331 | # AC_CHECK_SIZEOF() doesn't include <time.h>. | ||
332 | AC_MSG_CHECKING(size of time_t) | ||
333 | AC_CACHE_VAL(ac_cv_sizeof_time_t, | ||
334 | -[AC_TRY_RUN([#include <stdio.h> | ||
335 | +[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> | ||
336 | #include <time.h> | ||
337 | main() | ||
338 | { | ||
339 | @@ -1083,10 +1043,7 @@ | ||
340 | if (!f) exit(1); | ||
341 | fprintf(f, "%d\n", sizeof(time_t)); | ||
342 | exit(0); | ||
343 | -}], | ||
344 | -ac_cv_sizeof_time_t=`cat conftestval`, | ||
345 | -ac_cv_sizeof_time_t=0, | ||
346 | -ac_cv_sizeof_time_t=4) | ||
347 | +}]])],[ac_cv_sizeof_time_t=`cat conftestval`],[ac_cv_sizeof_time_t=0],[ac_cv_sizeof_time_t=4]) | ||
348 | ]) | ||
349 | AC_MSG_RESULT($ac_cv_sizeof_time_t) | ||
350 | AC_DEFINE_UNQUOTED(SIZEOF_TIME_T, $ac_cv_sizeof_time_t, | ||
351 | @@ -1104,13 +1061,13 @@ | ||
352 | fi | ||
353 | AC_MSG_CHECKING(for pthread_t) | ||
354 | have_pthread_t=no | ||
355 | -AC_TRY_COMPILE([#include <pthread.h>], [pthread_t x; x = *(pthread_t*)0;], have_pthread_t=yes) | ||
356 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]], [[pthread_t x; x = *(pthread_t*)0;]])],[have_pthread_t=yes],[]) | ||
357 | AC_MSG_RESULT($have_pthread_t) | ||
358 | if test "$have_pthread_t" = yes ; then | ||
359 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. | ||
360 | AC_MSG_CHECKING(size of pthread_t) | ||
361 | AC_CACHE_VAL(ac_cv_sizeof_pthread_t, | ||
362 | - [AC_TRY_RUN([#include <stdio.h> | ||
363 | + [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> | ||
364 | #include <pthread.h> | ||
365 | main() | ||
366 | { | ||
367 | @@ -1118,10 +1075,7 @@ | ||
368 | if (!f) exit(1); | ||
369 | fprintf(f, "%d\n", sizeof(pthread_t)); | ||
370 | exit(0); | ||
371 | - }], | ||
372 | - ac_cv_sizeof_pthread_t=`cat conftestval`, | ||
373 | - ac_cv_sizeof_pthread_t=0, | ||
374 | - ac_cv_sizeof_pthread_t=4) | ||
375 | + }]])],[ac_cv_sizeof_pthread_t=`cat conftestval`],[ac_cv_sizeof_pthread_t=0],[ac_cv_sizeof_pthread_t=4]) | ||
376 | ]) | ||
377 | AC_MSG_RESULT($ac_cv_sizeof_pthread_t) | ||
378 | AC_DEFINE_UNQUOTED(SIZEOF_PTHREAD_T, $ac_cv_sizeof_pthread_t, | ||
379 | @@ -1131,7 +1085,7 @@ | ||
380 | |||
381 | AC_MSG_CHECKING(for --enable-toolbox-glue) | ||
382 | AC_ARG_ENABLE(toolbox-glue, | ||
383 | - AC_HELP_STRING(--enable-toolbox-glue, disable/enable MacOSX glue code for extensions)) | ||
384 | + AS_HELP_STRING(--enable-toolbox-glue,disable/enable MacOSX glue code for extensions)) | ||
385 | |||
386 | if test -z "$enable_toolbox_glue" | ||
387 | then | ||
388 | @@ -1436,13 +1390,10 @@ | ||
389 | # checks for system dependent C++ extensions support | ||
390 | case "$ac_sys_system" in | ||
391 | AIX*) AC_MSG_CHECKING(for genuine AIX C++ extensions support) | ||
392 | - AC_TRY_LINK([#include "/usr/lpp/xlC/include/load.h"], | ||
393 | - [loadAndInit("", 0, "")], | ||
394 | - [AC_DEFINE(AIX_GENUINE_CPLUSPLUS, 1, | ||
395 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "/usr/lpp/xlC/include/load.h"]], [[loadAndInit("", 0, "")]])],[AC_DEFINE(AIX_GENUINE_CPLUSPLUS, 1, | ||
396 | [Define for AIX if your compiler is a genuine IBM xlC/xlC_r | ||
397 | and you want support for AIX C++ shared extension modules.]) | ||
398 | - AC_MSG_RESULT(yes)], | ||
399 | - [AC_MSG_RESULT(no)]);; | ||
400 | + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]);; | ||
401 | *) ;; | ||
402 | esac | ||
403 | |||
404 | @@ -1464,7 +1415,7 @@ | ||
405 | |||
406 | AC_MSG_CHECKING(for --with-libs) | ||
407 | AC_ARG_WITH(libs, | ||
408 | - AC_HELP_STRING(--with-libs='lib1 ...', link against additional libs), | ||
409 | + AS_HELP_STRING(--with-libs='lib1 ...',link against additional libs), | ||
410 | [ | ||
411 | AC_MSG_RESULT($withval) | ||
412 | LIBS="$withval $LIBS" | ||
413 | @@ -1476,7 +1427,7 @@ | ||
414 | AC_SUBST(SIGNAL_OBJS) | ||
415 | AC_MSG_CHECKING(for --with-signal-module) | ||
416 | AC_ARG_WITH(signal-module, | ||
417 | - AC_HELP_STRING(--with-signal-module, disable/enable signal module)) | ||
418 | + AS_HELP_STRING(--with-signal-module,disable/enable signal module)) | ||
419 | |||
420 | if test -z "$with_signal_module" | ||
421 | then with_signal_module="yes" | ||
422 | @@ -1498,7 +1449,7 @@ | ||
423 | AC_MSG_CHECKING(for --with-dec-threads) | ||
424 | AC_SUBST(LDLAST) | ||
425 | AC_ARG_WITH(dec-threads, | ||
426 | - AC_HELP_STRING(--with-dec-threads, use DEC Alpha/OSF1 thread-safe libraries), | ||
427 | + AS_HELP_STRING(--with-dec-threads,use DEC Alpha/OSF1 thread-safe libraries), | ||
428 | [ | ||
429 | AC_MSG_RESULT($withval) | ||
430 | LDLAST=-threads | ||
431 | @@ -1518,12 +1469,12 @@ | ||
432 | AC_MSG_CHECKING(for --with-threads) | ||
433 | dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output | ||
434 | AC_ARG_WITH(threads, | ||
435 | - AC_HELP_STRING(--with(out)-threads@<:@=DIRECTORY@:>@, disable/enable thread support)) | ||
436 | + AS_HELP_STRING(--with(out)-threads@<:@=DIRECTORY@:>@,disable/enable thread support)) | ||
437 | |||
438 | # --with-thread is deprecated, but check for it anyway | ||
439 | dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output | ||
440 | AC_ARG_WITH(thread, | ||
441 | - AC_HELP_STRING(--with(out)-thread@<:@=DIRECTORY@:>@, deprecated; use --with(out)-threads), | ||
442 | + AS_HELP_STRING(--with(out)-thread@<:@=DIRECTORY@:>@,deprecated; use --with(out)-threads), | ||
443 | [with_threads=$with_thread]) | ||
444 | |||
445 | if test -z "$with_threads" | ||
446 | @@ -1603,7 +1554,7 @@ | ||
447 | THREADOBJ="Python/thread.o"],[ | ||
448 | AC_MSG_CHECKING(for --with-pth) | ||
449 | AC_ARG_WITH([pth], | ||
450 | - AC_HELP_STRING(--with-pth, use GNU pth threading libraries), | ||
451 | + AS_HELP_STRING(--with-pth,use GNU pth threading libraries), | ||
452 | [AC_MSG_RESULT($withval) | ||
453 | AC_DEFINE([WITH_THREAD]) | ||
454 | AC_DEFINE([HAVE_PTH], 1, | ||
455 | @@ -1618,10 +1569,10 @@ | ||
456 | _libs=$LIBS | ||
457 | LIBS="$LIBS -lpthread" | ||
458 | AC_MSG_CHECKING([for pthread_create in -lpthread]) | ||
459 | - AC_TRY_LINK([#include <pthread.h> | ||
460 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h> | ||
461 | |||
462 | -void * start_routine (void *arg) { exit (0); }], [ | ||
463 | -pthread_create (NULL, NULL, start_routine, NULL)], [ | ||
464 | +void * start_routine (void *arg) { exit (0); }]], [[ | ||
465 | +pthread_create (NULL, NULL, start_routine, NULL)]])],[ | ||
466 | AC_MSG_RESULT(yes) | ||
467 | AC_DEFINE(WITH_THREAD) | ||
468 | posix_threads=yes | ||
469 | @@ -1705,7 +1656,7 @@ | ||
470 | |||
471 | AC_MSG_CHECKING(if PTHREAD_SCOPE_SYSTEM is supported) | ||
472 | AC_CACHE_VAL(ac_cv_pthread_system_supported, | ||
473 | - [AC_TRY_RUN([#include <pthread.h> | ||
474 | + [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <pthread.h> | ||
475 | void *foo(void *parm) { | ||
476 | return NULL; | ||
477 | } | ||
478 | @@ -1716,10 +1667,7 @@ | ||
479 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | ||
480 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | ||
481 | exit(0); | ||
482 | - }], | ||
483 | - ac_cv_pthread_system_supported=yes, | ||
484 | - ac_cv_pthread_system_supported=no, | ||
485 | - ac_cv_pthread_system_supported=no) | ||
486 | + }]])],[ac_cv_pthread_system_supported=yes],[ac_cv_pthread_system_supported=no],[ac_cv_pthread_system_supported=no]) | ||
487 | ]) | ||
488 | AC_MSG_RESULT($ac_cv_pthread_system_supported) | ||
489 | if test "$ac_cv_pthread_system_supported" = "yes"; then | ||
490 | @@ -1754,7 +1702,7 @@ | ||
491 | |||
492 | [ | ||
493 | dnl the check does not work on cross compilation case... | ||
494 | - AC_TRY_RUN([ /* AF_INET6 available check */ | ||
495 | + AC_RUN_IFELSE([AC_LANG_SOURCE([[ /* AF_INET6 available check */ | ||
496 | #include <sys/types.h> | ||
497 | #include <sys/socket.h> | ||
498 | main() | ||
499 | @@ -1764,25 +1712,19 @@ | ||
500 | else | ||
501 | exit(0); | ||
502 | } | ||
503 | -], | ||
504 | - AC_MSG_RESULT(yes) | ||
505 | - ipv6=yes, | ||
506 | - AC_MSG_RESULT(no) | ||
507 | - ipv6=no, | ||
508 | - AC_MSG_RESULT(no) | ||
509 | +]])],[AC_MSG_RESULT(yes) | ||
510 | + ipv6=yes],[AC_MSG_RESULT(no) | ||
511 | + ipv6=no],[AC_MSG_RESULT(no) | ||
512 | ipv6=no | ||
513 | -) | ||
514 | +]) | ||
515 | |||
516 | if test "$ipv6" = "yes"; then | ||
517 | AC_MSG_CHECKING(if RFC2553 API is available) | ||
518 | - AC_TRY_COMPILE([#include <sys/types.h> | ||
519 | -#include <netinet/in.h>], | ||
520 | - [struct sockaddr_in6 x; | ||
521 | -x.sin6_scope_id;], | ||
522 | - AC_MSG_RESULT(yes) | ||
523 | - ipv6=yes, | ||
524 | - AC_MSG_RESULT(no, IPv6 disabled) | ||
525 | - ipv6=no) | ||
526 | + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> | ||
527 | +#include <netinet/in.h>]], [[struct sockaddr_in6 x; | ||
528 | +x.sin6_scope_id;]])],[AC_MSG_RESULT(yes) | ||
529 | + ipv6=yes],[AC_MSG_RESULT(no, IPv6 disabled) | ||
530 | + ipv6=no]) | ||
531 | fi | ||
532 | |||
533 | if test "$ipv6" = "yes"; then | ||
534 | @@ -1905,7 +1847,7 @@ | ||
535 | # Check for universal newline support | ||
536 | AC_MSG_CHECKING(for --with-universal-newlines) | ||
537 | AC_ARG_WITH(universal-newlines, | ||
538 | - AC_HELP_STRING(--with(out)-universal-newlines, disable/enable foreign newlines)) | ||
539 | + AS_HELP_STRING(--with(out)-universal-newlines,disable/enable foreign newlines)) | ||
540 | |||
541 | if test -z "$with_universal_newlines" | ||
542 | then with_universal_newlines="yes" | ||
543 | @@ -1923,7 +1865,7 @@ | ||
544 | # Check for --with-doc-strings | ||
545 | AC_MSG_CHECKING(for --with-doc-strings) | ||
546 | AC_ARG_WITH(doc-strings, | ||
547 | - AC_HELP_STRING(--with(out)-doc-strings, disable/enable documentation strings)) | ||
548 | + AS_HELP_STRING(--with(out)-doc-strings,disable/enable documentation strings)) | ||
549 | |||
550 | if test -z "$with_doc_strings" | ||
551 | then with_doc_strings="yes" | ||
552 | @@ -1938,7 +1880,7 @@ | ||
553 | # Check for Python-specific malloc support | ||
554 | AC_MSG_CHECKING(for --with-pymalloc) | ||
555 | AC_ARG_WITH(pymalloc, | ||
556 | - AC_HELP_STRING(--with(out)-pymalloc, disable/enable specialized mallocs)) | ||
557 | + AS_HELP_STRING(--with(out)-pymalloc,disable/enable specialized mallocs)) | ||
558 | |||
559 | if test -z "$with_pymalloc" | ||
560 | then with_pymalloc="yes" | ||
561 | @@ -1953,7 +1895,7 @@ | ||
562 | # Check for --with-wctype-functions | ||
563 | AC_MSG_CHECKING(for --with-wctype-functions) | ||
564 | AC_ARG_WITH(wctype-functions, | ||
565 | - AC_HELP_STRING(--with-wctype-functions, use wctype.h functions), | ||
566 | + AS_HELP_STRING(--with-wctype-functions,use wctype.h functions), | ||
567 | [ | ||
568 | if test "$withval" != no | ||
569 | then | ||
570 | @@ -1971,7 +1913,7 @@ | ||
571 | |||
572 | AC_MSG_CHECKING(for --with-sgi-dl) | ||
573 | AC_ARG_WITH(sgi-dl, | ||
574 | - AC_HELP_STRING(--with-sgi-dl=DIRECTORY, IRIX 4 dynamic linking), | ||
575 | + AS_HELP_STRING(--with-sgi-dl=DIRECTORY,IRIX 4 dynamic linking), | ||
576 | [ | ||
577 | AC_MSG_RESULT($withval) | ||
578 | echo --with-sgi-dl is unsupported, see README | ||
579 | @@ -1993,7 +1935,7 @@ | ||
580 | |||
581 | AC_MSG_CHECKING(for --with-dl-dld) | ||
582 | AC_ARG_WITH(dl-dld, | ||
583 | - AC_HELP_STRING(--with-dl-dld=DL_DIR, GNU dynamic linking), | ||
584 | + AS_HELP_STRING(--with-dl-dld=DL_DIR,GNU dynamic linking), | ||
585 | [ | ||
586 | AC_MSG_RESULT($withval) | ||
587 | echo --with-dl-dld is unsupported, see README | ||
588 | @@ -2085,41 +2027,29 @@ | ||
589 | # For some functions, having a definition is not sufficient, since | ||
590 | # we want to take their address. | ||
591 | AC_MSG_CHECKING(for chroot) | ||
592 | -AC_TRY_COMPILE([#include <unistd.h>], void *x=chroot, | ||
593 | - AC_DEFINE(HAVE_CHROOT, 1, Define if you have the 'chroot' function.) | ||
594 | - AC_MSG_RESULT(yes), | ||
595 | - AC_MSG_RESULT(no) | ||
596 | -) | ||
597 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void *x=chroot]])],[AC_DEFINE(HAVE_CHROOT, 1, Define if you have the 'chroot' function.) | ||
598 | + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no) | ||
599 | +]) | ||
600 | AC_MSG_CHECKING(for link) | ||
601 | -AC_TRY_COMPILE([#include <unistd.h>], void *x=link, | ||
602 | - AC_DEFINE(HAVE_LINK, 1, Define if you have the 'link' function.) | ||
603 | - AC_MSG_RESULT(yes), | ||
604 | - AC_MSG_RESULT(no) | ||
605 | -) | ||
606 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void *x=link]])],[AC_DEFINE(HAVE_LINK, 1, Define if you have the 'link' function.) | ||
607 | + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no) | ||
608 | +]) | ||
609 | AC_MSG_CHECKING(for symlink) | ||
610 | -AC_TRY_COMPILE([#include <unistd.h>], void *x=symlink, | ||
611 | - AC_DEFINE(HAVE_SYMLINK, 1, Define if you have the 'symlink' function.) | ||
612 | - AC_MSG_RESULT(yes), | ||
613 | - AC_MSG_RESULT(no) | ||
614 | -) | ||
615 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void *x=symlink]])],[AC_DEFINE(HAVE_SYMLINK, 1, Define if you have the 'symlink' function.) | ||
616 | + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no) | ||
617 | +]) | ||
618 | AC_MSG_CHECKING(for fchdir) | ||
619 | -AC_TRY_COMPILE([#include <unistd.h>], void *x=fchdir, | ||
620 | - AC_DEFINE(HAVE_FCHDIR, 1, Define if you have the 'fchdir' function.) | ||
621 | - AC_MSG_RESULT(yes), | ||
622 | - AC_MSG_RESULT(no) | ||
623 | -) | ||
624 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void *x=fchdir]])],[AC_DEFINE(HAVE_FCHDIR, 1, Define if you have the 'fchdir' function.) | ||
625 | + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no) | ||
626 | +]) | ||
627 | AC_MSG_CHECKING(for fsync) | ||
628 | -AC_TRY_COMPILE([#include <unistd.h>], void *x=fsync, | ||
629 | - AC_DEFINE(HAVE_FSYNC, 1, Define if you have the 'fsync' function.) | ||
630 | - AC_MSG_RESULT(yes), | ||
631 | - AC_MSG_RESULT(no) | ||
632 | -) | ||
633 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void *x=fsync]])],[AC_DEFINE(HAVE_FSYNC, 1, Define if you have the 'fsync' function.) | ||
634 | + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no) | ||
635 | +]) | ||
636 | AC_MSG_CHECKING(for fdatasync) | ||
637 | -AC_TRY_COMPILE([#include <unistd.h>], void *x=fdatasync, | ||
638 | - AC_DEFINE(HAVE_FDATASYNC, 1, Define if you have the 'fdatasync' function.) | ||
639 | - AC_MSG_RESULT(yes), | ||
640 | - AC_MSG_RESULT(no) | ||
641 | -) | ||
642 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void *x=fdatasync]])],[AC_DEFINE(HAVE_FDATASYNC, 1, Define if you have the 'fdatasync' function.) | ||
643 | + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no) | ||
644 | +]) | ||
645 | |||
646 | # On some systems (eg. FreeBSD 5), we would find a definition of the | ||
647 | # functions ctermid_r, setgroups in the library, but no prototype | ||
648 | @@ -2128,34 +2058,28 @@ | ||
649 | # because of the missing prototypes. | ||
650 | |||
651 | AC_MSG_CHECKING(for ctermid_r) | ||
652 | -AC_TRY_COMPILE([ | ||
653 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
654 | #include "confdefs.h" | ||
655 | #include <stdio.h> | ||
656 | -], void* p = ctermid_r, | ||
657 | - AC_DEFINE(HAVE_CTERMID_R, 1, Define if you have the 'ctermid_r' function.) | ||
658 | - AC_MSG_RESULT(yes), | ||
659 | - AC_MSG_RESULT(no) | ||
660 | -) | ||
661 | +]], [[void* p = ctermid_r]])],[AC_DEFINE(HAVE_CTERMID_R, 1, Define if you have the 'ctermid_r' function.) | ||
662 | + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no) | ||
663 | +]) | ||
664 | |||
665 | AC_MSG_CHECKING(for flock) | ||
666 | -AC_TRY_COMPILE([ | ||
667 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
668 | #include "confdefs.h" | ||
669 | #include <sys/file.h> | ||
670 | -], void* p = flock, | ||
671 | - AC_DEFINE(HAVE_FLOCK, 1, Define if you have the 'flock' function.) | ||
672 | - AC_MSG_RESULT(yes), | ||
673 | - AC_MSG_RESULT(no) | ||
674 | -) | ||
675 | +]], [[void* p = flock]])],[AC_DEFINE(HAVE_FLOCK, 1, Define if you have the 'flock' function.) | ||
676 | + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no) | ||
677 | +]) | ||
678 | |||
679 | AC_MSG_CHECKING(for getpagesize) | ||
680 | -AC_TRY_COMPILE([ | ||
681 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
682 | #include "confdefs.h" | ||
683 | #include <unistd.h> | ||
684 | -], void* p = getpagesize, | ||
685 | - AC_DEFINE(HAVE_GETPAGESIZE, 1, Define if you have the 'getpagesize' function.) | ||
686 | - AC_MSG_RESULT(yes), | ||
687 | - AC_MSG_RESULT(no) | ||
688 | -) | ||
689 | +]], [[void* p = getpagesize]])],[AC_DEFINE(HAVE_GETPAGESIZE, 1, Define if you have the 'getpagesize' function.) | ||
690 | + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no) | ||
691 | +]) | ||
692 | |||
693 | dnl check for true | ||
694 | AC_CHECK_PROGS(TRUE, true, /bin/true) | ||
695 | @@ -2167,54 +2091,45 @@ | ||
696 | ) | ||
697 | |||
698 | AC_MSG_CHECKING(for hstrerror) | ||
699 | -AC_TRY_LINK([ | ||
700 | +AC_LINK_IFELSE([AC_LANG_PROGRAM([[ | ||
701 | #include "confdefs.h" | ||
702 | #include <netdb.h> | ||
703 | -], void* p = hstrerror; hstrerror(0), | ||
704 | - AC_DEFINE(HAVE_HSTRERROR, 1, Define if you have the 'hstrerror' function.) | ||
705 | - AC_MSG_RESULT(yes), | ||
706 | - AC_MSG_RESULT(no) | ||
707 | -) | ||
708 | +]], [[void* p = hstrerror; hstrerror(0)]])],[AC_DEFINE(HAVE_HSTRERROR, 1, Define if you have the 'hstrerror' function.) | ||
709 | + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no) | ||
710 | +]) | ||
711 | |||
712 | AC_MSG_CHECKING(for inet_aton) | ||
713 | -AC_TRY_LINK([ | ||
714 | +AC_LINK_IFELSE([AC_LANG_PROGRAM([[ | ||
715 | #include "confdefs.h" | ||
716 | #include <sys/socket.h> | ||
717 | #include <netinet/in.h> | ||
718 | #include <arpa/inet.h> | ||
719 | -], void* p = inet_aton;inet_aton(0,0), | ||
720 | - AC_DEFINE(HAVE_INET_ATON, 1, Define if you have the 'inet_aton' function.) | ||
721 | - AC_MSG_RESULT(yes), | ||
722 | - AC_MSG_RESULT(no) | ||
723 | -) | ||
724 | +]], [[void* p = inet_aton;inet_aton(0,0)]])],[AC_DEFINE(HAVE_INET_ATON, 1, Define if you have the 'inet_aton' function.) | ||
725 | + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no) | ||
726 | +]) | ||
727 | |||
728 | AC_MSG_CHECKING(for inet_pton) | ||
729 | -AC_TRY_COMPILE([ | ||
730 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
731 | #include "confdefs.h" | ||
732 | #include <sys/types.h> | ||
733 | #include <sys/socket.h> | ||
734 | #include <netinet/in.h> | ||
735 | #include <arpa/inet.h> | ||
736 | -], void* p = inet_pton, | ||
737 | - AC_DEFINE(HAVE_INET_PTON, 1, Define if you have the 'inet_pton' function.) | ||
738 | - AC_MSG_RESULT(yes), | ||
739 | - AC_MSG_RESULT(no) | ||
740 | -) | ||
741 | +]], [[void* p = inet_pton]])],[AC_DEFINE(HAVE_INET_PTON, 1, Define if you have the 'inet_pton' function.) | ||
742 | + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no) | ||
743 | +]) | ||
744 | |||
745 | # On some systems, setgroups is in unistd.h, on others, in grp.h | ||
746 | AC_MSG_CHECKING(for setgroups) | ||
747 | -AC_TRY_COMPILE([ | ||
748 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
749 | #include "confdefs.h" | ||
750 | #include <unistd.h> | ||
751 | #ifdef HAVE_GRP_H | ||
752 | #include <grp.h> | ||
753 | #endif | ||
754 | -], | ||
755 | -void* p = setgroups, | ||
756 | - AC_DEFINE(HAVE_SETGROUPS, 1, Define if you have the 'setgroups' function.) | ||
757 | - AC_MSG_RESULT(yes), | ||
758 | - AC_MSG_RESULT(no) | ||
759 | -) | ||
760 | +]], [[void* p = setgroups]])],[AC_DEFINE(HAVE_SETGROUPS, 1, Define if you have the 'setgroups' function.) | ||
761 | + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no) | ||
762 | +]) | ||
763 | |||
764 | # check for openpty and forkpty | ||
765 | |||
766 | @@ -2226,30 +2141,24 @@ | ||
767 | |||
768 | AC_REPLACE_FUNCS(dup2 getcwd strdup strerror memmove) | ||
769 | AC_CHECK_FUNCS(getpgrp, | ||
770 | - AC_TRY_COMPILE([#include <unistd.h>], | ||
771 | - [getpgrp(0);], | ||
772 | - AC_DEFINE(GETPGRP_HAVE_ARG, 1, | ||
773 | - [Define if getpgrp() must be called as getpgrp(0).]) | ||
774 | - ) | ||
775 | + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[getpgrp(0);]])],[AC_DEFINE(GETPGRP_HAVE_ARG, 1, | ||
776 | + Define if getpgrp() must be called as getpgrp(0).) | ||
777 | + ],[]) | ||
778 | ) | ||
779 | AC_CHECK_FUNCS(setpgrp, | ||
780 | - AC_TRY_COMPILE([#include <unistd.h>], | ||
781 | - [setpgrp(0,0);], | ||
782 | - AC_DEFINE(SETPGRP_HAVE_ARG, 1, | ||
783 | - [Define if setpgrp() must be called as setpgrp(0, 0).]) | ||
784 | - ) | ||
785 | + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[setpgrp(0,0);]])],[AC_DEFINE(SETPGRP_HAVE_ARG, 1, | ||
786 | + Define if setpgrp() must be called as setpgrp(0, 0).) | ||
787 | + ],[]) | ||
788 | ) | ||
789 | AC_CHECK_FUNCS(gettimeofday, | ||
790 | - AC_TRY_COMPILE([#include <sys/time.h>], | ||
791 | - [gettimeofday((struct timeval*)0,(struct timezone*)0);], , | ||
792 | - AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1, | ||
793 | - [Define if gettimeofday() does not have second (timezone) argument | ||
794 | - This is the case on Motorola V4 (R40V4.2)]) | ||
795 | - ) | ||
796 | + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/time.h>]], [[gettimeofday((struct timeval*)0,(struct timezone*)0);]])],[],[AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1, | ||
797 | + Define if gettimeofday() does not have second (timezone) argument | ||
798 | + This is the case on Motorola V4 (R40V4.2)) | ||
799 | + ]) | ||
800 | ) | ||
801 | |||
802 | AC_MSG_CHECKING(for major, minor, and makedev) | ||
803 | -AC_TRY_LINK([ | ||
804 | +AC_LINK_IFELSE([AC_LANG_PROGRAM([[ | ||
805 | #if defined(MAJOR_IN_MKDEV) | ||
806 | #include <sys/mkdev.h> | ||
807 | #elif defined(MAJOR_IN_SYSMACROS) | ||
808 | @@ -2257,9 +2166,9 @@ | ||
809 | #else | ||
810 | #include <sys/types.h> | ||
811 | #endif | ||
812 | -],[ | ||
813 | +]], [[ | ||
814 | makedev(major(0),minor(0)); | ||
815 | -],[ | ||
816 | +]])],[ | ||
817 | AC_DEFINE(HAVE_DEVICE_MACROS, 1, | ||
818 | [Define to 1 if you have the device macros.]) | ||
819 | AC_MSG_RESULT(yes) | ||
820 | @@ -2270,14 +2179,14 @@ | ||
821 | # On OSF/1 V5.1, getaddrinfo is available, but a define | ||
822 | # for [no]getaddrinfo in netdb.h. | ||
823 | AC_MSG_CHECKING(for getaddrinfo) | ||
824 | -AC_TRY_LINK([ | ||
825 | +AC_LINK_IFELSE([AC_LANG_PROGRAM([[ | ||
826 | #include <sys/types.h> | ||
827 | #include <sys/socket.h> | ||
828 | #include <netdb.h> | ||
829 | #include <stdio.h> | ||
830 | -],[ | ||
831 | +]], [[ | ||
832 | getaddrinfo(NULL, NULL, NULL, NULL); | ||
833 | -], [ | ||
834 | +]])],[ | ||
835 | AC_MSG_RESULT(yes) | ||
836 | AC_MSG_CHECKING(getaddrinfo bug) | ||
837 | AC_TRY_RUN([ | ||
838 | @@ -2371,7 +2280,7 @@ | ||
839 | AC_MSG_RESULT(buggy) | ||
840 | buggygetaddrinfo=yes, | ||
841 | AC_MSG_RESULT(buggy) | ||
842 | -buggygetaddrinfo=yes)], [ | ||
843 | +buggygetaddrinfo=yes)],[ | ||
844 | AC_MSG_RESULT(no) | ||
845 | buggygetaddrinfo=yes | ||
846 | ]) | ||
847 | @@ -2397,9 +2306,7 @@ | ||
848 | |||
849 | AC_MSG_CHECKING(for time.h that defines altzone) | ||
850 | AC_CACHE_VAL(ac_cv_header_time_altzone, | ||
851 | -[AC_TRY_COMPILE([#include <time.h>], [return altzone;], | ||
852 | - ac_cv_header_time_altzone=yes, | ||
853 | - ac_cv_header_time_altzone=no)]) | ||
854 | +[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[return altzone;]])],[ac_cv_header_time_altzone=yes],[ac_cv_header_time_altzone=no])]) | ||
855 | AC_MSG_RESULT($ac_cv_header_time_altzone) | ||
856 | if test $ac_cv_header_time_altzone = yes; then | ||
857 | AC_DEFINE(HAVE_ALTZONE, 1, [Define this if your time.h defines altzone.]) | ||
858 | @@ -2407,25 +2314,22 @@ | ||
859 | |||
860 | was_it_defined=no | ||
861 | AC_MSG_CHECKING(whether sys/select.h and sys/time.h may both be included) | ||
862 | -AC_TRY_COMPILE([ | ||
863 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
864 | #include <sys/types.h> | ||
865 | #include <sys/select.h> | ||
866 | #include <sys/time.h> | ||
867 | -], [;], [ | ||
868 | +]], [[;]])],[ | ||
869 | AC_DEFINE(SYS_SELECT_WITH_SYS_TIME, 1, | ||
870 | [Define if you can safely include both <sys/select.h> and <sys/time.h> | ||
871 | (which you can't on SCO ODT 3.0).]) | ||
872 | was_it_defined=yes | ||
873 | -]) | ||
874 | +],[]) | ||
875 | AC_MSG_RESULT($was_it_defined) | ||
876 | |||
877 | AC_MSG_CHECKING(for addrinfo) | ||
878 | AC_CACHE_VAL(ac_cv_struct_addrinfo, | ||
879 | -AC_TRY_COMPILE([ | ||
880 | -# include <netdb.h>], | ||
881 | - [struct addrinfo a], | ||
882 | - ac_cv_struct_addrinfo=yes, | ||
883 | - ac_cv_struct_addrinfo=no)) | ||
884 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
885 | +# include <netdb.h>]], [[struct addrinfo a]])],[ac_cv_struct_addrinfo=yes],[ac_cv_struct_addrinfo=no])) | ||
886 | AC_MSG_RESULT($ac_cv_struct_addrinfo) | ||
887 | if test $ac_cv_struct_addrinfo = yes; then | ||
888 | AC_DEFINE(HAVE_ADDRINFO, 1, [struct addrinfo (netdb.h)]) | ||
889 | @@ -2433,12 +2337,9 @@ | ||
890 | |||
891 | AC_MSG_CHECKING(for sockaddr_storage) | ||
892 | AC_CACHE_VAL(ac_cv_struct_sockaddr_storage, | ||
893 | -AC_TRY_COMPILE([ | ||
894 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
895 | # include <sys/types.h> | ||
896 | -# include <sys/socket.h>], | ||
897 | - [struct sockaddr_storage s], | ||
898 | - ac_cv_struct_sockaddr_storage=yes, | ||
899 | - ac_cv_struct_sockaddr_storage=no)) | ||
900 | +# include <sys/socket.h>]], [[struct sockaddr_storage s]])],[ac_cv_struct_sockaddr_storage=yes],[ac_cv_struct_sockaddr_storage=no])) | ||
901 | AC_MSG_RESULT($ac_cv_struct_sockaddr_storage) | ||
902 | if test $ac_cv_struct_sockaddr_storage = yes; then | ||
903 | AC_DEFINE(HAVE_SOCKADDR_STORAGE, 1, [struct sockaddr_storage (sys/socket.h)]) | ||
904 | @@ -2451,30 +2352,28 @@ | ||
905 | |||
906 | works=no | ||
907 | AC_MSG_CHECKING(for working volatile) | ||
908 | -AC_TRY_COMPILE([],[volatile int x; x = 0;], works=yes, | ||
909 | - AC_DEFINE(volatile, [], [Define to empty if the keyword does not work.]) | ||
910 | -) | ||
911 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[volatile int x; x = 0;]])],[works=yes],[AC_DEFINE(volatile, , Define to empty if the keyword does not work.) | ||
912 | +]) | ||
913 | AC_MSG_RESULT($works) | ||
914 | |||
915 | works=no | ||
916 | AC_MSG_CHECKING(for working signed char) | ||
917 | -AC_TRY_COMPILE([], [signed char c;], works=yes, | ||
918 | - AC_DEFINE(signed, [], [Define to empty if the keyword does not work.]) | ||
919 | -) | ||
920 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[signed char c;]])],[works=yes],[AC_DEFINE(signed, , Define to empty if the keyword does not work.) | ||
921 | +]) | ||
922 | AC_MSG_RESULT($works) | ||
923 | |||
924 | have_prototypes=no | ||
925 | AC_MSG_CHECKING(for prototypes) | ||
926 | -AC_TRY_COMPILE([int foo(int x) { return 0; }], [return foo(10);],[ | ||
927 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int foo(int x) { return 0; }]], [[return foo(10);]])],[ | ||
928 | AC_DEFINE(HAVE_PROTOTYPES, 1, | ||
929 | [Define if your compiler supports function prototype]) | ||
930 | have_prototypes=yes | ||
931 | -]) | ||
932 | +],[]) | ||
933 | AC_MSG_RESULT($have_prototypes) | ||
934 | |||
935 | works=no | ||
936 | AC_MSG_CHECKING(for variable length prototypes and stdarg.h) | ||
937 | -AC_TRY_COMPILE([ | ||
938 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
939 | #include <stdarg.h> | ||
940 | int foo(int x, ...) { | ||
941 | va_list va; | ||
942 | @@ -2484,45 +2383,41 @@ | ||
943 | va_arg(va, double); | ||
944 | return 0; | ||
945 | } | ||
946 | -], [return foo(10, "", 3.14);], [ | ||
947 | +]], [[return foo(10, "", 3.14);]])],[ | ||
948 | AC_DEFINE(HAVE_STDARG_PROTOTYPES, 1, | ||
949 | [Define if your compiler supports variable length function prototypes | ||
950 | (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>]) | ||
951 | works=yes | ||
952 | -]) | ||
953 | +],[]) | ||
954 | AC_MSG_RESULT($works) | ||
955 | |||
956 | if test "$have_prototypes" = yes; then | ||
957 | bad_prototypes=no | ||
958 | AC_MSG_CHECKING(for bad exec* prototypes) | ||
959 | -AC_TRY_COMPILE([#include <unistd.h>], [char **t;execve("@",t,t);], , | ||
960 | - AC_DEFINE(BAD_EXEC_PROTOTYPES, 1, | ||
961 | - [Define if your <unistd.h> contains bad prototypes for exec*() | ||
962 | - (as it does on SGI IRIX 4.x)]) | ||
963 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[char **t;execve("@",t,t);]])],[],[AC_DEFINE(BAD_EXEC_PROTOTYPES, 1, | ||
964 | + Define if your <unistd.h> contains bad prototypes for exec*() | ||
965 | + (as it does on SGI IRIX 4.x)) | ||
966 | bad_prototypes=yes | ||
967 | -) | ||
968 | +]) | ||
969 | AC_MSG_RESULT($bad_prototypes) | ||
970 | fi | ||
971 | |||
972 | # check if sockaddr has sa_len member | ||
973 | AC_MSG_CHECKING(if sockaddr has sa_len member) | ||
974 | -AC_TRY_COMPILE([#include <sys/types.h> | ||
975 | -#include <sys/socket.h>], | ||
976 | -[struct sockaddr x; | ||
977 | -x.sa_len = 0;], | ||
978 | - AC_MSG_RESULT(yes) | ||
979 | - AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1, [Define if sockaddr has sa_len member]), | ||
980 | - AC_MSG_RESULT(no)) | ||
981 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> | ||
982 | +#include <sys/socket.h>]], [[struct sockaddr x; | ||
983 | +x.sa_len = 0;]])],[AC_MSG_RESULT(yes) | ||
984 | + AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1, Define if sockaddr has sa_len member)],[AC_MSG_RESULT(no)]) | ||
985 | |||
986 | va_list_is_array=no | ||
987 | AC_MSG_CHECKING(whether va_list is an array) | ||
988 | -AC_TRY_COMPILE([ | ||
989 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
990 | #ifdef HAVE_STDARG_PROTOTYPES | ||
991 | #include <stdarg.h> | ||
992 | #else | ||
993 | #include <varargs.h> | ||
994 | #endif | ||
995 | -], [va_list list1, list2; list1 = list2;], , [ | ||
996 | +]], [[va_list list1, list2; list1 = list2;]])],[],[ | ||
997 | AC_DEFINE(VA_LIST_IS_ARRAY, 1, [Define if a va_list is an array of some kind]) | ||
998 | va_list_is_array=yes | ||
999 | ]) | ||
1000 | @@ -2537,9 +2432,9 @@ | ||
1001 | AC_MSG_CHECKING([gethostbyname_r with 6 args]) | ||
1002 | OLD_CFLAGS=$CFLAGS | ||
1003 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | ||
1004 | - AC_TRY_COMPILE([ | ||
1005 | + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
1006 | # include <netdb.h> | ||
1007 | - ], [ | ||
1008 | + ]], [[ | ||
1009 | char *name; | ||
1010 | struct hostent *he, *res; | ||
1011 | char buffer[2048]; | ||
1012 | @@ -2547,12 +2442,12 @@ | ||
1013 | int h_errnop; | ||
1014 | |||
1015 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | ||
1016 | - ], [ | ||
1017 | + ]])],[ | ||
1018 | AC_DEFINE(HAVE_GETHOSTBYNAME_R) | ||
1019 | AC_DEFINE(HAVE_GETHOSTBYNAME_R_6_ARG, 1, | ||
1020 | [Define this if you have the 6-arg version of gethostbyname_r().]) | ||
1021 | AC_MSG_RESULT(yes) | ||
1022 | - ], [ | ||
1023 | + ],[ | ||
1024 | AC_MSG_RESULT(no) | ||
1025 | AC_MSG_CHECKING([gethostbyname_r with 5 args]) | ||
1026 | AC_TRY_COMPILE([ | ||
1027 | @@ -2613,7 +2508,7 @@ | ||
1028 | # Check for --with-fpectl | ||
1029 | AC_MSG_CHECKING(for --with-fpectl) | ||
1030 | AC_ARG_WITH(fpectl, | ||
1031 | - AC_HELP_STRING(--with-fpectl, enable SIGFPE catching), | ||
1032 | + AS_HELP_STRING(--with-fpectl,enable SIGFPE catching), | ||
1033 | [ | ||
1034 | if test "$withval" != no | ||
1035 | then | ||
1036 | @@ -2633,7 +2528,7 @@ | ||
1037 | esac | ||
1038 | AC_MSG_CHECKING(for --with-libm=STRING) | ||
1039 | AC_ARG_WITH(libm, | ||
1040 | - AC_HELP_STRING(--with-libm=STRING, math library), | ||
1041 | + AS_HELP_STRING(--with-libm=STRING,math library), | ||
1042 | [ | ||
1043 | if test "$withval" = no | ||
1044 | then LIBM= | ||
1045 | @@ -2649,7 +2544,7 @@ | ||
1046 | AC_SUBST(LIBC) | ||
1047 | AC_MSG_CHECKING(for --with-libc=STRING) | ||
1048 | AC_ARG_WITH(libc, | ||
1049 | - AC_HELP_STRING(--with-libc=STRING, C library), | ||
1050 | + AS_HELP_STRING(--with-libc=STRING,C library), | ||
1051 | [ | ||
1052 | if test "$withval" = no | ||
1053 | then LIBC= | ||
1054 | @@ -2684,20 +2579,20 @@ | ||
1055 | |||
1056 | AC_MSG_CHECKING(for UCS-4 tcl) | ||
1057 | have_ucs4_tcl=no | ||
1058 | -AC_TRY_COMPILE([ | ||
1059 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
1060 | #include <tcl.h> | ||
1061 | #if TCL_UTF_MAX != 6 | ||
1062 | # error "NOT UCS4_TCL" | ||
1063 | -#endif], [], [ | ||
1064 | +#endif]], [[]])],[ | ||
1065 | AC_DEFINE(HAVE_UCS4_TCL, 1, [Define this if you have tcl and TCL_UTF_MAX==6]) | ||
1066 | have_ucs4_tcl=yes | ||
1067 | -]) | ||
1068 | +],[]) | ||
1069 | AC_MSG_RESULT($have_ucs4_tcl) | ||
1070 | |||
1071 | AC_MSG_CHECKING(what type to use for unicode) | ||
1072 | dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output | ||
1073 | AC_ARG_ENABLE(unicode, | ||
1074 | - AC_HELP_STRING(--enable-unicode@<:@=ucs@<:@24@:>@@:>@, Enable Unicode strings (default is yes)), | ||
1075 | + AS_HELP_STRING(--enable-unicode@<:@=ucs@<:@24@:>@@:>@,Enable Unicode strings (default is yes)), | ||
1076 | [], | ||
1077 | [enable_unicode=yes]) | ||
1078 | |||
1079 | @@ -2764,15 +2659,12 @@ | ||
1080 | # or fills with zeros (like the Cray J90, according to Tim Peters). | ||
1081 | AC_MSG_CHECKING(whether right shift extends the sign bit) | ||
1082 | AC_CACHE_VAL(ac_cv_rshift_extends_sign, [ | ||
1083 | -AC_TRY_RUN([ | ||
1084 | +AC_RUN_IFELSE([AC_LANG_SOURCE([[ | ||
1085 | int main() | ||
1086 | { | ||
1087 | exit(((-1)>>3 == -1) ? 0 : 1); | ||
1088 | } | ||
1089 | -], | ||
1090 | -ac_cv_rshift_extends_sign=yes, | ||
1091 | -ac_cv_rshift_extends_sign=no, | ||
1092 | -ac_cv_rshift_extends_sign=yes)]) | ||
1093 | +]])],[ac_cv_rshift_extends_sign=yes],[ac_cv_rshift_extends_sign=no],[ac_cv_rshift_extends_sign=yes])]) | ||
1094 | AC_MSG_RESULT($ac_cv_rshift_extends_sign) | ||
1095 | if test "$ac_cv_rshift_extends_sign" = no | ||
1096 | then | ||
1097 | @@ -2784,12 +2676,12 @@ | ||
1098 | # check for getc_unlocked and related locking functions | ||
1099 | AC_MSG_CHECKING(for getc_unlocked() and friends) | ||
1100 | AC_CACHE_VAL(ac_cv_have_getc_unlocked, [ | ||
1101 | -AC_TRY_LINK([#include <stdio.h>],[ | ||
1102 | +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[ | ||
1103 | FILE *f = fopen("/dev/null", "r"); | ||
1104 | flockfile(f); | ||
1105 | getc_unlocked(f); | ||
1106 | funlockfile(f); | ||
1107 | -], ac_cv_have_getc_unlocked=yes, ac_cv_have_getc_unlocked=no)]) | ||
1108 | +]])],[ac_cv_have_getc_unlocked=yes],[ac_cv_have_getc_unlocked=no])]) | ||
1109 | AC_MSG_RESULT($ac_cv_have_getc_unlocked) | ||
1110 | if test "$ac_cv_have_getc_unlocked" = yes | ||
1111 | then | ||
1112 | @@ -2798,8 +2690,7 @@ | ||
1113 | fi | ||
1114 | |||
1115 | # check for readline 2.2 | ||
1116 | -AC_TRY_CPP([#include <readline/readline.h>], | ||
1117 | -have_readline=yes, have_readline=no) | ||
1118 | +AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include <readline/readline.h>]])],[have_readline=yes],[have_readline=no]) | ||
1119 | if test $have_readline = yes | ||
1120 | then | ||
1121 | AC_EGREP_HEADER([extern int rl_completion_append_character;], | ||
1122 | @@ -2820,7 +2711,7 @@ | ||
1123 | |||
1124 | AC_MSG_CHECKING(for broken nice()) | ||
1125 | AC_CACHE_VAL(ac_cv_broken_nice, [ | ||
1126 | -AC_TRY_RUN([ | ||
1127 | +AC_RUN_IFELSE([AC_LANG_SOURCE([[ | ||
1128 | int main() | ||
1129 | { | ||
1130 | int val1 = nice(1); | ||
1131 | @@ -2828,10 +2719,7 @@ | ||
1132 | exit(0); | ||
1133 | exit(1); | ||
1134 | } | ||
1135 | -], | ||
1136 | -ac_cv_broken_nice=yes, | ||
1137 | -ac_cv_broken_nice=no, | ||
1138 | -ac_cv_broken_nice=no)]) | ||
1139 | +]])],[ac_cv_broken_nice=yes],[ac_cv_broken_nice=no],[ac_cv_broken_nice=no])]) | ||
1140 | AC_MSG_RESULT($ac_cv_broken_nice) | ||
1141 | if test "$ac_cv_broken_nice" = yes | ||
1142 | then | ||
1143 | @@ -2842,7 +2730,7 @@ | ||
1144 | # tzset(3) exists and works like we expect it to | ||
1145 | AC_MSG_CHECKING(for working tzset()) | ||
1146 | AC_CACHE_VAL(ac_cv_working_tzset, [ | ||
1147 | -AC_TRY_RUN([ | ||
1148 | +AC_RUN_IFELSE([AC_LANG_SOURCE([[ | ||
1149 | #include <stdlib.h> | ||
1150 | #include <time.h> | ||
1151 | #include <string.h> | ||
1152 | @@ -2880,10 +2768,7 @@ | ||
1153 | |||
1154 | exit(0); | ||
1155 | } | ||
1156 | -], | ||
1157 | -ac_cv_working_tzset=yes, | ||
1158 | -ac_cv_working_tzset=no, | ||
1159 | -ac_cv_working_tzset=no)]) | ||
1160 | +]])],[ac_cv_working_tzset=yes],[ac_cv_working_tzset=no],[ac_cv_working_tzset=no])]) | ||
1161 | AC_MSG_RESULT($ac_cv_working_tzset) | ||
1162 | if test "$ac_cv_working_tzset" = yes | ||
1163 | then | ||
1164 | @@ -2894,13 +2779,10 @@ | ||
1165 | # Look for subsecond timestamps in struct stat | ||
1166 | AC_MSG_CHECKING(for tv_nsec in struct stat) | ||
1167 | AC_CACHE_VAL(ac_cv_stat_tv_nsec, | ||
1168 | -AC_TRY_COMPILE([#include <sys/stat.h>], [ | ||
1169 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/stat.h>]], [[ | ||
1170 | struct stat st; | ||
1171 | st.st_mtim.tv_nsec = 1; | ||
1172 | -], | ||
1173 | -ac_cv_stat_tv_nsec=yes, | ||
1174 | -ac_cv_stat_tv_nsec=no, | ||
1175 | -ac_cv_stat_tv_nsec=no)) | ||
1176 | +]])],[ac_cv_stat_tv_nsec=yes],[ac_cv_stat_tv_nsec=no])) | ||
1177 | AC_MSG_RESULT($ac_cv_stat_tv_nsec) | ||
1178 | if test "$ac_cv_stat_tv_nsec" = yes | ||
1179 | then | ||
1180 | @@ -2911,12 +2793,10 @@ | ||
1181 | # On HP/UX 11.0, mvwdelch is a block with a return statement | ||
1182 | AC_MSG_CHECKING(whether mvwdelch is an expression) | ||
1183 | AC_CACHE_VAL(ac_cv_mvwdelch_is_expression, | ||
1184 | -AC_TRY_COMPILE([#include <curses.h>], [ | ||
1185 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <curses.h>]], [[ | ||
1186 | int rtn; | ||
1187 | rtn = mvwdelch(0,0,0); | ||
1188 | -], ac_cv_mvwdelch_is_expression=yes, | ||
1189 | - ac_cv_mvwdelch_is_expression=no, | ||
1190 | - ac_cv_mvwdelch_is_expression=yes)) | ||
1191 | +]])],[ac_cv_mvwdelch_is_expression=yes],[ac_cv_mvwdelch_is_expression=no])) | ||
1192 | AC_MSG_RESULT($ac_cv_mvwdelch_is_expression) | ||
1193 | |||
1194 | if test "$ac_cv_mvwdelch_is_expression" = yes | ||
1195 | @@ -2927,12 +2807,10 @@ | ||
1196 | |||
1197 | AC_MSG_CHECKING(whether WINDOW has _flags) | ||
1198 | AC_CACHE_VAL(ac_cv_window_has_flags, | ||
1199 | -AC_TRY_COMPILE([#include <curses.h>], [ | ||
1200 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <curses.h>]], [[ | ||
1201 | WINDOW *w; | ||
1202 | w->_flags = 0; | ||
1203 | -], ac_cv_window_has_flags=yes, | ||
1204 | - ac_cv_window_has_flags=no, | ||
1205 | - ac_cv_window_has_flags=no)) | ||
1206 | +]])],[ac_cv_window_has_flags=yes],[ac_cv_window_has_flags=no])) | ||
1207 | AC_MSG_RESULT($ac_cv_window_has_flags) | ||
1208 | |||
1209 | |||
diff --git a/meta-extras/packages/python/python-2.4.3/bindir-libdir.patch b/meta-extras/packages/python/python-2.4.3/bindir-libdir.patch new file mode 100644 index 0000000000..27ae5dce5b --- /dev/null +++ b/meta-extras/packages/python/python-2.4.3/bindir-libdir.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
4 | # | ||
5 | |||
6 | --- Python-2.4c1/Makefile.pre.in~bindir-libdir.patch | ||
7 | +++ Python-2.4c1/Makefile.pre.in | ||
8 | @@ -78,8 +78,8 @@ | ||
9 | exec_prefix= @exec_prefix@ | ||
10 | |||
11 | # Expanded directories | ||
12 | -BINDIR= $(exec_prefix)/bin | ||
13 | -LIBDIR= $(exec_prefix)/lib | ||
14 | +BINDIR= @bindir@ | ||
15 | +LIBDIR= @libdir@ | ||
16 | MANDIR= @mandir@ | ||
17 | INCLUDEDIR= @includedir@ | ||
18 | CONFINCLUDEDIR= $(exec_prefix)/include | ||
diff --git a/meta-extras/packages/python/python-2.4.3/crosscompile.patch b/meta-extras/packages/python/python-2.4.3/crosscompile.patch new file mode 100644 index 0000000000..f917bb2567 --- /dev/null +++ b/meta-extras/packages/python/python-2.4.3/crosscompile.patch | |||
@@ -0,0 +1,108 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
4 | # | ||
5 | |||
6 | --- Python-2.4c1/Makefile.pre.in~crosscompile | ||
7 | +++ Python-2.4c1/Makefile.pre.in | ||
8 | @@ -162,6 +162,7 @@ | ||
9 | |||
10 | PYTHON= python$(EXE) | ||
11 | BUILDPYTHON= python$(BUILDEXE) | ||
12 | +HOSTPYTHON= $(BUILDPYTHON) | ||
13 | |||
14 | # === Definitions added by makesetup === | ||
15 | |||
16 | @@ -188,7 +189,7 @@ | ||
17 | ########################################################################## | ||
18 | # Parser | ||
19 | PGEN= Parser/pgen$(EXE) | ||
20 | - | ||
21 | +HOSTPGEN= $(PGEN)$(EXE) | ||
22 | POBJS= \ | ||
23 | Parser/acceler.o \ | ||
24 | Parser/grammar1.o \ | ||
25 | @@ -320,8 +321,8 @@ | ||
26 | # Build the shared modules | ||
27 | sharedmods: $(BUILDPYTHON) | ||
28 | case $$MAKEFLAGS in \ | ||
29 | - *-s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py -q build;; \ | ||
30 | - *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py build;; \ | ||
31 | + *-s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' $(HOSTPYTHON) -E $(srcdir)/setup.py -q build;; \ | ||
32 | + *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' $(HOSTPYTHON) -E $(srcdir)/setup.py build;; \ | ||
33 | esac | ||
34 | |||
35 | # buildno should really depend on something like LIBRARY_SRC | ||
36 | @@ -442,7 +443,7 @@ | ||
37 | |||
38 | |||
39 | $(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT) | ||
40 | - -$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) | ||
41 | + -$(HOSTPGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) | ||
42 | |||
43 | $(PGEN): $(PGENOBJS) | ||
44 | $(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN) | ||
45 | @@ -718,19 +719,19 @@ | ||
46 | done | ||
47 | $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt | ||
48 | PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ | ||
49 | - ./$(BUILDPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \ | ||
50 | + $(HOSTPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \ | ||
51 | -d $(LIBDEST) -f \ | ||
52 | -x 'badsyntax|site-packages' $(DESTDIR)$(LIBDEST) | ||
53 | PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ | ||
54 | - ./$(BUILDPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \ | ||
55 | + $(HOSTPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \ | ||
56 | -d $(LIBDEST) -f \ | ||
57 | -x 'badsyntax|site-packages' $(DESTDIR)$(LIBDEST) | ||
58 | -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ | ||
59 | - ./$(BUILDPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \ | ||
60 | + $(HOSTPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \ | ||
61 | -d $(LIBDEST)/site-packages -f \ | ||
62 | -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages | ||
63 | -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ | ||
64 | - ./$(BUILDPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \ | ||
65 | + $(HOSTPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \ | ||
66 | -d $(LIBDEST)/site-packages -f \ | ||
67 | -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages | ||
68 | |||
69 | @@ -825,7 +826,7 @@ | ||
70 | # Install the dynamically loadable modules | ||
71 | # This goes into $(exec_prefix) | ||
72 | sharedinstall: | ||
73 | - $(RUNSHARED) ./$(BUILDPYTHON) -E $(srcdir)/setup.py install \ | ||
74 | + $(RUNSHARED) $(HOSTPYTHON) -E $(srcdir)/setup.py install \ | ||
75 | --prefix=$(prefix) \ | ||
76 | --install-scripts=$(BINDIR) \ | ||
77 | --install-platlib=$(DESTSHARED) \ | ||
78 | --- Python-2.4c1/setup.py~crosscompile | ||
79 | +++ Python-2.4c1/setup.py | ||
80 | @@ -206,6 +206,7 @@ | ||
81 | except ImportError, why: | ||
82 | self.announce('*** WARNING: renaming "%s" since importing it' | ||
83 | ' failed: %s' % (ext.name, why), level=3) | ||
84 | + return | ||
85 | assert not self.inplace | ||
86 | basename, tail = os.path.splitext(ext_filename) | ||
87 | newname = basename + "_failed" + tail | ||
88 | @@ -239,8 +240,8 @@ | ||
89 | |||
90 | def detect_modules(self): | ||
91 | # Ensure that /usr/local is always used | ||
92 | - add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') | ||
93 | - add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | ||
94 | + # add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') | ||
95 | + # add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | ||
96 | |||
97 | # Add paths to popular package managers on OS X/darwin | ||
98 | if sys.platform == "darwin": | ||
99 | @@ -293,6 +294,9 @@ | ||
100 | |||
101 | # XXX Omitted modules: gl, pure, dl, SGI-specific modules | ||
102 | |||
103 | + lib_dirs = [ os.getenv( "STAGING_LIBDIR" ) ] | ||
104 | + inc_dirs = [ os.getenv( "STAGING_INCDIR" ) ] | ||
105 | + | ||
106 | # | ||
107 | # The following modules are all pretty straightforward, and compile | ||
108 | # on pretty much any POSIXish platform. | ||
diff --git a/meta-extras/packages/python/python-2.4.3/fix-tkinter-detection.patch b/meta-extras/packages/python/python-2.4.3/fix-tkinter-detection.patch new file mode 100644 index 0000000000..602aa8e021 --- /dev/null +++ b/meta-extras/packages/python/python-2.4.3/fix-tkinter-detection.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
4 | # | ||
5 | |||
6 | --- Python-2.4.1/setup.py~fix-tkinter-detection | ||
7 | +++ Python-2.4.1/setup.py | ||
8 | @@ -999,7 +999,7 @@ | ||
9 | dotversion = dotversion[:-1] + '.' + dotversion[-1] | ||
10 | tcl_include_sub = [] | ||
11 | tk_include_sub = [] | ||
12 | - for dir in inc_dirs: | ||
13 | + for dir in [os.getenv("STAGING_INCDIR")]: | ||
14 | tcl_include_sub += [dir + os.sep + "tcl" + dotversion] | ||
15 | tk_include_sub += [dir + os.sep + "tk" + dotversion] | ||
16 | tk_include_sub += tcl_include_sub | ||
17 | @@ -1018,22 +1018,6 @@ | ||
18 | if dir not in include_dirs: | ||
19 | include_dirs.append(dir) | ||
20 | |||
21 | - # Check for various platform-specific directories | ||
22 | - if platform == 'sunos5': | ||
23 | - include_dirs.append('/usr/openwin/include') | ||
24 | - added_lib_dirs.append('/usr/openwin/lib') | ||
25 | - elif os.path.exists('/usr/X11R6/include'): | ||
26 | - include_dirs.append('/usr/X11R6/include') | ||
27 | - added_lib_dirs.append('/usr/X11R6/lib64') | ||
28 | - added_lib_dirs.append('/usr/X11R6/lib') | ||
29 | - elif os.path.exists('/usr/X11R5/include'): | ||
30 | - include_dirs.append('/usr/X11R5/include') | ||
31 | - added_lib_dirs.append('/usr/X11R5/lib') | ||
32 | - else: | ||
33 | - # Assume default location for X11 | ||
34 | - include_dirs.append('/usr/X11/include') | ||
35 | - added_lib_dirs.append('/usr/X11/lib') | ||
36 | - | ||
37 | # If Cygwin, then verify that X is installed before proceeding | ||
38 | if platform == 'cygwin': | ||
39 | x11_inc = find_file('X11/Xlib.h', [], include_dirs) | ||
diff --git a/meta-extras/packages/python/python-2.4.3/sitebranding.patch b/meta-extras/packages/python/python-2.4.3/sitebranding.patch new file mode 100644 index 0000000000..85bb83a506 --- /dev/null +++ b/meta-extras/packages/python/python-2.4.3/sitebranding.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
4 | # | ||
5 | |||
6 | --- Python-2.4.3/Lib/site.py~sitebranding | ||
7 | +++ Python-2.4.3/Lib/site.py | ||
8 | @@ -305,8 +305,9 @@ | ||
9 | "Jython is maintained by the Jython developers (www.jython.org).") | ||
10 | else: | ||
11 | __builtin__.credits = _Printer("credits", """\ | ||
12 | - Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands | ||
13 | - for supporting Python development. See www.python.org for more information.""") | ||
14 | + This version of Python has been built by the OpenEmbedded buildsystem (http://openembedded.org). | ||
15 | + It is a part of the Python-For-Embedded-Systems initiative which is maintained by | ||
16 | + Michael 'Mickey' Lauer (http://www.Vanille.de/projects/python.spy).""") | ||
17 | here = os.path.dirname(os.__file__) | ||
18 | __builtin__.license = _Printer( | ||
19 | "license", "See http://www.python.org/%.3s/license.html" % sys.version, | ||
diff --git a/meta-extras/packages/python/python-native-2.4.0/bindir-libdir.patch b/meta-extras/packages/python/python-native-2.4.0/bindir-libdir.patch new file mode 100644 index 0000000000..999bddc449 --- /dev/null +++ b/meta-extras/packages/python/python-native-2.4.0/bindir-libdir.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | |||
2 | # | ||
3 | # Made by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
4 | # | ||
5 | |||
6 | --- Python-2.3.1/Makefile.pre.in~bindir-libdir 2003-09-20 12:50:28.000000000 +0200 | ||
7 | +++ Python-2.3.1/Makefile.pre.in 2003-11-02 19:53:17.000000000 +0100 | ||
8 | @@ -78,8 +78,8 @@ | ||
9 | exec_prefix= @exec_prefix@ | ||
10 | |||
11 | # Expanded directories | ||
12 | -BINDIR= $(exec_prefix)/bin | ||
13 | -LIBDIR= $(exec_prefix)/lib | ||
14 | +BINDIR= @bindir@ | ||
15 | +LIBDIR= @libdir@ | ||
16 | MANDIR= @mandir@ | ||
17 | INCLUDEDIR= @includedir@ | ||
18 | CONFINCLUDEDIR= $(exec_prefix)/include | ||
diff --git a/meta-extras/packages/python/python-native-2.4.0/cross-distutils.patch b/meta-extras/packages/python/python-native-2.4.0/cross-distutils.patch new file mode 100644 index 0000000000..76ae883c1d --- /dev/null +++ b/meta-extras/packages/python/python-native-2.4.0/cross-distutils.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
4 | # | ||
5 | |||
6 | --- Python-2.3.3/Lib/distutils/sysconfig.py~cross-distutils 2003-02-10 15:02:33.000000000 +0100 | ||
7 | +++ Python-2.3.3/Lib/distutils/sysconfig.py 2004-03-02 20:15:05.000000000 +0100 | ||
8 | @@ -19,8 +19,8 @@ | ||
9 | from errors import DistutilsPlatformError | ||
10 | |||
11 | # These are needed in a couple of spots, so just compute them once. | ||
12 | -PREFIX = os.path.normpath(sys.prefix) | ||
13 | -EXEC_PREFIX = os.path.normpath(sys.exec_prefix) | ||
14 | +PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") ) | ||
15 | +EXEC_PREFIX = os.path.normpath(sys.exec_prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") ) | ||
16 | |||
17 | # python_build: (Boolean) if true, we're either building Python or | ||
18 | # building an extension with an un-installed Python, so we use | ||
19 | @@ -192,7 +192,8 @@ | ||
20 | else: | ||
21 | # The name of the config.h file changed in 2.2 | ||
22 | config_h = 'pyconfig.h' | ||
23 | - return os.path.join(inc_dir, config_h) | ||
24 | + print "NOTE: sysconfig.get_config_h_filename() altered for OpenEmbedded" | ||
25 | + return os.path.join(inc_dir, config_h).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") ) | ||
26 | |||
27 | |||
28 | def get_makefile_filename(): | ||
29 | @@ -200,7 +201,8 @@ | ||
30 | if python_build: | ||
31 | return os.path.join(os.path.dirname(sys.executable), "Makefile") | ||
32 | lib_dir = get_python_lib(plat_specific=1, standard_lib=1) | ||
33 | - return os.path.join(lib_dir, "config", "Makefile") | ||
34 | + print "NOTE: sysconfig.get_config_h_filename() altered for OpenEmbedded" | ||
35 | + return os.path.join(lib_dir, "config", "Makefile").replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") ) | ||
36 | |||
37 | |||
38 | def parse_config_h(fp, g=None): | ||
diff --git a/meta-extras/packages/python/python-native_2.4.0.bb b/meta-extras/packages/python/python-native_2.4.0.bb new file mode 100644 index 0000000000..00092d1e15 --- /dev/null +++ b/meta-extras/packages/python/python-native_2.4.0.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | DESCRIPTION = "Python Programming Language" | ||
2 | HOMEPAGE = "http://www.python.org" | ||
3 | LICENSE = "PSF" | ||
4 | SECTION = "devel/python" | ||
5 | PRIORITY = "optional" | ||
6 | MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>" | ||
7 | DEPENDS = "" | ||
8 | PR = "r0" | ||
9 | |||
10 | EXCLUDE_FROM_WORLD = "1" | ||
11 | |||
12 | SRC_URI = "http://www.python.org/ftp/python/2.4/Python-2.4.tar.bz2 \ | ||
13 | file://bindir-libdir.patch;patch=1 \ | ||
14 | file://cross-distutils.patch;patch=1" | ||
15 | S = "${WORKDIR}/Python-2.4" | ||
16 | |||
17 | inherit autotools native | ||
18 | |||
19 | EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc --without-cxx --with-signal-module --with-wctype-functions \ | ||
20 | --with-prefix=${STAGING_DIR} --with-exec-prefix=${STAGING_DIR}/${BUILD_SYS}" | ||
21 | EXTRA_OEMAKE = 'BUILD_SYS="" HOST_SYS=""' | ||
22 | |||
23 | do_configure () { | ||
24 | oe_runconf | ||
25 | } | ||
26 | |||
27 | do_stage_append() { | ||
28 | # install pgen for later usage with non-native builds | ||
29 | install Parser/pgen ${STAGING_DIR}/${BUILD_SYS}/bin/ | ||
30 | } | ||
31 | |||
diff --git a/meta-extras/packages/python/python-pygtk2/acinclude.m4 b/meta-extras/packages/python/python-pygtk2/acinclude.m4 new file mode 100644 index 0000000000..eec3758afc --- /dev/null +++ b/meta-extras/packages/python/python-pygtk2/acinclude.m4 | |||
@@ -0,0 +1,84 @@ | |||
1 | ## this one is commonly used with AM_PATH_PYTHONDIR ... | ||
2 | dnl AM_CHECK_PYMOD(MODNAME [,SYMBOL [,ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]]]) | ||
3 | dnl Check if a module containing a given symbol is visible to python. | ||
4 | AC_DEFUN(AM_CHECK_PYMOD, | ||
5 | [AC_REQUIRE([AM_PATH_PYTHON]) | ||
6 | py_mod_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'` | ||
7 | AC_MSG_CHECKING(for ifelse([$2],[],,[$2 in ])python module $1) | ||
8 | AC_CACHE_VAL(py_cv_mod_$py_mod_var, [ | ||
9 | ifelse([$2],[], [prog=" | ||
10 | import sys | ||
11 | try: | ||
12 | import $1 | ||
13 | except ImportError: | ||
14 | sys.exit(1) | ||
15 | except: | ||
16 | sys.exit(0) | ||
17 | sys.exit(0)"], [prog=" | ||
18 | import $1 | ||
19 | $1.$2"]) | ||
20 | if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC | ||
21 | then | ||
22 | eval "py_cv_mod_$py_mod_var=yes" | ||
23 | else | ||
24 | eval "py_cv_mod_$py_mod_var=no" | ||
25 | fi | ||
26 | ]) | ||
27 | py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"` | ||
28 | if test "x$py_val" != xno; then | ||
29 | AC_MSG_RESULT(yes) | ||
30 | ifelse([$3], [],, [$3 | ||
31 | ])dnl | ||
32 | else | ||
33 | AC_MSG_RESULT(no) | ||
34 | ifelse([$4], [],, [$4 | ||
35 | ])dnl | ||
36 | fi | ||
37 | ]) | ||
38 | |||
39 | dnl a macro to check for ability to create python extensions | ||
40 | dnl AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE]) | ||
41 | dnl function also defines PYTHON_INCLUDES | ||
42 | AC_DEFUN([AM_CHECK_PYTHON_HEADERS], | ||
43 | [AC_REQUIRE([AM_PATH_PYTHON]) | ||
44 | AC_MSG_CHECKING(for headers required to compile python extensions) | ||
45 | dnl deduce PYTHON_INCLUDES | ||
46 | py_prefix=`$PYTHON -c "import sys; print sys.prefix"` | ||
47 | py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` | ||
48 | PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}" | ||
49 | if test "$py_prefix" != "$py_exec_prefix"; then | ||
50 | PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}" | ||
51 | fi | ||
52 | AC_SUBST(PYTHON_INCLUDES) | ||
53 | dnl check if the headers exist: | ||
54 | save_CPPFLAGS="$CPPFLAGS" | ||
55 | CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES" | ||
56 | AC_TRY_CPP([#include <Python.h>],dnl | ||
57 | [AC_MSG_RESULT(found) | ||
58 | $1],dnl | ||
59 | [AC_MSG_RESULT(not found) | ||
60 | $2]) | ||
61 | CPPFLAGS="$save_CPPFLAGS" | ||
62 | ]) | ||
63 | |||
64 | dnl | ||
65 | dnl JH_ADD_CFLAG(FLAG) | ||
66 | dnl checks whether the C compiler supports the given flag, and if so, adds | ||
67 | dnl it to $CFLAGS. If the flag is already present in the list, then the | ||
68 | dnl check is not performed. | ||
69 | AC_DEFUN([JH_ADD_CFLAG], | ||
70 | [ | ||
71 | case " $CFLAGS " in | ||
72 | *@<:@\ \ @:>@$1@<:@\ \ @:>@*) | ||
73 | ;; | ||
74 | *) | ||
75 | save_CFLAGS="$CFLAGS" | ||
76 | CFLAGS="$CFLAGS $1" | ||
77 | AC_MSG_CHECKING([whether [$]CC understands $1]) | ||
78 | AC_TRY_COMPILE([], [], [jh_has_option=yes], [jh_has_option=no]) | ||
79 | AC_MSG_RESULT($jh_has_option) | ||
80 | if test $jh_has_option = no; then | ||
81 | CFLAGS="$save_CFLAGS" | ||
82 | fi | ||
83 | ;; | ||
84 | esac]) | ||
diff --git a/meta-extras/packages/python/python-pygtk2_2.8.6.bb b/meta-extras/packages/python/python-pygtk2_2.8.6.bb new file mode 100644 index 0000000000..d91e13532c --- /dev/null +++ b/meta-extras/packages/python/python-pygtk2_2.8.6.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | DESCRIPTION = "Python GTK+ Bindings" | ||
2 | SECTION = "devel/python" | ||
3 | PRIORITY = "optional" | ||
4 | MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>" | ||
5 | DEPENDS = "gtk+ libglade" | ||
6 | RDEPENDS = "python-shell" | ||
7 | SRCNAME = "pygtk" | ||
8 | LICENSE = "LGPL" | ||
9 | PR = "r0" | ||
10 | |||
11 | SRC_URI = "ftp://ftp.gnome.org/pub/gnome/sources/pygtk/2.8/${SRCNAME}-${PV}.tar.bz2 \ | ||
12 | file://acinclude.m4" | ||
13 | S = "${WORKDIR}/${SRCNAME}-${PV}" | ||
14 | |||
15 | inherit autotools pkgconfig distutils-base | ||
16 | |||
17 | do_configure_prepend() { | ||
18 | install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/ | ||
19 | } | ||
20 | |||
21 | do_stage() { | ||
22 | autotools_stage_includes | ||
23 | install -m 0755 codegen/pygtk-codegen-2.0 ${STAGING_BINDIR}/ | ||
24 | } | ||
diff --git a/meta-extras/packages/python/python_2.4.3.bb b/meta-extras/packages/python/python_2.4.3.bb new file mode 100644 index 0000000000..30ce73abe2 --- /dev/null +++ b/meta-extras/packages/python/python_2.4.3.bb | |||
@@ -0,0 +1,70 @@ | |||
1 | DESCRIPTION = "Python Programming Language" | ||
2 | HOMEPAGE = "http://www.python.org" | ||
3 | LICENSE = "PSF" | ||
4 | SECTION = "devel/python" | ||
5 | PRIORITY = "optional" | ||
6 | MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>" | ||
7 | DEPENDS = "python-native readline zlib gdbm openssl tcl tk" | ||
8 | DEPENDS_sharprom = "python-native readline zlib gdbm openssl" | ||
9 | PR = "ml3" | ||
10 | |||
11 | PYTHON_MAJMIN = "2.4" | ||
12 | |||
13 | SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \ | ||
14 | file://bindir-libdir.patch;patch=1 \ | ||
15 | file://crosscompile.patch;patch=1 \ | ||
16 | file://fix-tkinter-detection.patch;patch=1 \ | ||
17 | file://sitebranding.patch;patch=1" | ||
18 | S = "${WORKDIR}/Python-${PV}" | ||
19 | |||
20 | inherit autotools | ||
21 | |||
22 | EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc \ | ||
23 | --without-cxx --with-signal-module --with-wctype-functions \ | ||
24 | --enable-shared" | ||
25 | |||
26 | # | ||
27 | # copy config.h and an appropriate Makefile for distutils.sysconfig | ||
28 | # which laters uses the information out of these to compile extensions | ||
29 | # | ||
30 | do_compile_prepend() { | ||
31 | install -d ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/ | ||
32 | install -d ${STAGING_LIBDIR}/python${PYTHON_MAJMIN}/config/ | ||
33 | install -m 0644 pyconfig.h ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/ | ||
34 | install -m 0644 Makefile Makefile.orig | ||
35 | install -m 0644 Makefile Makefile.backup | ||
36 | sed -e 's,${includedir},${STAGING_INCDIR},' < Makefile.backup > Makefile | ||
37 | install -m 0644 Makefile Makefile.backup | ||
38 | sed -e 's,${libdir},${STAGING_LIBDIR},' < Makefile.backup > Makefile | ||
39 | install -m 0644 Makefile ${STAGING_LIBDIR}/python${PYTHON_MAJMIN}/config/ | ||
40 | } | ||
41 | |||
42 | do_compile() { | ||
43 | oe_runmake HOSTPGEN=${STAGING_BINDIR}/pgen \ | ||
44 | HOSTPYTHON=${STAGING_BINDIR}/python \ | ||
45 | STAGING_LIBDIR=${STAGING_LIBDIR} \ | ||
46 | STAGING_INCDIR=${STAGING_INCDIR} \ | ||
47 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} | ||
48 | } | ||
49 | |||
50 | do_stage() { | ||
51 | install -m 0644 Include/*.h ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/ | ||
52 | oe_libinstall -a -so libpython2.4 ${STAGING_LIBDIR} | ||
53 | } | ||
54 | |||
55 | do_install() { | ||
56 | install -m 0644 Makefile.orig Makefile | ||
57 | oe_runmake HOSTPGEN=${STAGING_BINDIR}/pgen \ | ||
58 | HOSTPYTHON=${STAGING_BINDIR}/python \ | ||
59 | STAGING_LIBDIR=${STAGING_LIBDIR} \ | ||
60 | STAGING_INCDIR=${STAGING_INCDIR} \ | ||
61 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ | ||
62 | DESTDIR=${D} install | ||
63 | } | ||
64 | |||
65 | include python-${PV}-manifest.inc | ||
66 | |||
67 | RPROVIDES_python-core = "python" | ||
68 | RPROVIDES_python-curses = "python" | ||
69 | PACKAGES =+ "libpython2" | ||
70 | FILES_libpython2 = "${libdir}/libpython*" | ||