Rev 11993: Some more changes to the python build,
add bzrignore. in file:///home/jelmer/bzr.samba/python/
Jelmer Vernooij
jelmer at samba.org
Mon Apr 23 17:05:40 GMT 2007
At file:///home/jelmer/bzr.samba/python/
------------------------------------------------------------
revno: 11993
revision-id: jelmer at samba.org-20070423170515-xp817fo3ft73qhe8
parent: jelmer at samba.org-20070423154116-7kh99mw6jnnk16e9
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: python
timestamp: Mon 2007-04-23 19:05:15 +0200
message:
Some more changes to the python build, add bzrignore.
added:
source/lib/python/pyconfig.h pyconfig.h-20070423170404-kdpuudzcur4d2s4j-1
modified:
.bzrignore svn-v2:17811 at 0c0555d6-39d7-0310-84fc-f1cc0bd64818-branches%2fSAMBA_4_0-.bzrignore
source/lib/python/config.m4 configure.in-20070423105804-3mrp9flhlt8pjj8v-11
=== added file 'source/lib/python/pyconfig.h'
--- a/source/lib/python/pyconfig.h 1970-01-01 00:00:00 +0000
+++ b/source/lib/python/pyconfig.h 2007-04-23 17:05:15 +0000
@@ -0,0 +1,1 @@
+#include "config.h"
=== modified file '.bzrignore'
--- a/.bzrignore 2007-03-13 21:00:27 +0000
+++ b/.bzrignore 2007-04-23 17:05:15 +0000
@@ -171,3 +171,8 @@
source/bin/modules/*
source/tests
source/torture/unix/proto.h
+source/lib/python/Modules/config.c
+source/lib/python/Modules/Setup.local
+source/lib/python/Modules/Setup.local
+source/lib/python/Modules/Setup
+source/lib/python/Modules/Setup.config
=== modified file 'source/lib/python/config.m4'
--- a/source/lib/python/config.m4 2007-04-23 15:41:16 +0000
+++ b/source/lib/python/config.m4 2007-04-23 17:05:15 +0000
@@ -178,122 +178,6 @@
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
-# checks for alternative programs
-
-# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
-# for debug/optimization stuff. BASECFLAGS is for flags that are required
-# just to get things to compile and link. Users are free to override OPT
-# when running configure or make. The build should not break if they do.
-# BASECFLAGS should generally not be messed with, however.
-
-# XXX shouldn't some/most/all of this code be merged with the stuff later
-# on that fiddles with OPT and BASECFLAGS?
-AC_MSG_CHECKING(for --without-gcc)
-AC_ARG_WITH(gcc,
- AC_HELP_STRING(--without-gcc,never use gcc),
-[
- case $withval in
- no) CC=cc
- without_gcc=yes;;
- yes) CC=gcc
- without_gcc=no;;
- *) CC=$withval
- without_gcc=$withval;;
- esac], [
- case $ac_sys_system in
- AIX*) CC=cc_r
- without_gcc=;;
- BeOS*)
- case $BE_HOST_CPU in
- ppc)
- CC=mwcc
- without_gcc=yes
- BASECFLAGS="$BASECFLAGS -export pragma"
- OPT="$OPT -O"
- LDFLAGS="$LDFLAGS -nodup"
- ;;
- x86)
- CC=gcc
- without_gcc=no
- OPT="$OPT -O"
- ;;
- *)
- AC_MSG_ERROR([Unknown BeOS platform "$BE_HOST_CPU"])
- ;;
- esac
- AR="\$(srcdir)/lib/python/Modules/ar_beos"
- RANLIB=:
- ;;
- Monterey*)
- RANLIB=:
- without_gcc=;;
- *) without_gcc=no;;
- esac])
-AC_MSG_RESULT($without_gcc)
-
-# If the user switches compilers, we can't believe the cache
-if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
-then
- AC_MSG_ERROR([cached CC is different -- throw away $cache_file
-(it is also a good idea to do 'make clean' before compiling)])
-fi
-
-AC_PROG_CC
-
-AC_SUBST(CXX)
-AC_SUBST(MAINCC)
-AC_MSG_CHECKING(for --with-cxx-main=<compiler>)
-AC_ARG_WITH(cxx_main,
- AC_HELP_STRING([--with-cxx-main=<compiler>],
- [compile main() and link python executable with C++ compiler]),
-[
-
- case $withval in
- no) with_cxx_main=no
- MAINCC='$(CC)';;
- yes) with_cxx_main=yes
- MAINCC='$(CXX)';;
- *) with_cxx_main=yes
- MAINCC=$withval
- if test -z "$CXX"
- then
- CXX=$withval
- fi;;
- esac], [
- with_cxx_main=no
- MAINCC='$(CC)'
-])
-AC_MSG_RESULT($with_cxx_main)
-
-preset_cxx="$CXX"
-if test -z "$CXX"
-then
- case "$CC" in
- gcc) AC_PATH_PROG(CXX, [g++], [g++], [notfound]) ;;
- cc) AC_PATH_PROG(CXX, [c++], [c++], [notfound]) ;;
- esac
- if test "$CXX" = "notfound"
- then
- CXX=""
- fi
-fi
-if test -z "$CXX"
-then
- AC_CHECK_PROGS(CXX, $CCC c++ g++ gcc CC cxx cc++ cl, notfound)
- if test "$CXX" = "notfound"
- then
- CXX=""
- fi
-fi
-if test "$preset_cxx" != "$CXX"
-then
- AC_MSG_WARN([
-
- By default, distutils will build C++ extension modules with "$CXX".
- If this is not intended, then set CXX on the configure command line.
- ])
-fi
-
# Check for unsupported systems
case $ac_sys_system/$ac_sys_release in
Linux*/1*)
@@ -325,14 +209,6 @@
esac
-AC_SUBST(LIBRARY)
-AC_MSG_CHECKING(LIBRARY)
-if test -z "$LIBRARY"
-then
- LIBRARY='libpython$(VERSION).a'
-fi
-AC_MSG_RESULT($LIBRARY)
-
# LDLIBRARY is the name of the library to link against (as opposed to the
# name of the library into which to insert object files). BLDLIBRARY is also
# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
@@ -359,50 +235,8 @@
LDLIBRARYDIR=''
RUNSHARED=''
-# LINKCC is the command that links the python executable -- default is $(CC).
-# If CXX is set, and if it is needed to link a main function that was
-# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
-# python might then depend on the C++ runtime
-# This is altered for AIX in order to build the export list before
-# linking.
-AC_SUBST(LINKCC)
-AC_MSG_CHECKING(LINKCC)
-if test -z "$LINKCC"
-then
- LINKCC='$(PURIFY) $(MAINCC)'
- case $ac_sys_system in
- AIX*)
- exp_extra="\"\""
- if test $ac_sys_release -ge 5 -o \
- $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
- exp_extra="."
- fi
- LINKCC="\$(srcdir)/lib/python/Modules/makexp_aix lib/python/Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
- Monterey64*)
- LINKCC="$LINKCC -L/usr/lib/ia64l64";;
- esac
-fi
-AC_MSG_RESULT($LINKCC)
-
-enable_shared="yes"
-
AC_MSG_CHECKING(LDLIBRARY)
-# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
-# library that we build, but we do not want to link against it (we
-# will find it with a -framework option). For this reason there is an
-# extra variable BLDLIBRARY against which Python and the extension
-# modules are linked, BLDLIBRARY. This is normally the same as
-# LDLIBRARY, but empty for MacOSX framework builds.
-if test "$enable_framework"
-then
- LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
- RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
- BLDLIBRARY=''
-else
- BLDLIBRARY='$(LDLIBRARY)'
-fi
-
# Other platforms follow
if test $enable_shared = "yes"; then
AC_DEFINE(Py_ENABLE_SHARED, 1, [Defined if Python is built as a shared library.])
@@ -469,15 +303,6 @@
AC_SUBST(AR)
AC_CHECK_PROGS(AR, ar aal, ar)
-AC_SUBST(SVNVERSION)
-AC_CHECK_PROG(SVNVERSION, svnversion, found, not-found)
-if test $SVNVERSION = found
-then
- SVNVERSION="svnversion \$(srcdir)"
-else
- SVNVERSION="echo exported"
-fi
-
case $MACHDEP in
bsdos*|hp*|HP*)
# install -d does not work on BSDI or HP-UX
More information about the samba-cvs
mailing list