[Python-checkins] python/dist/src configure,1.311,1.312 configure.in,1.321,1.322 pyconfig.h.in,1.38,1.39
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Sun, 09 Jun 2002 06:33:56 -0700
Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv2244
Modified Files:
configure configure.in pyconfig.h.in
Log Message:
Patch #505375: Make doc strings optional.
Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.311
retrieving revision 1.312
diff -C2 -d -r1.311 -r1.312
*** configure 6 Jun 2002 13:03:40 -0000 1.311
--- configure 9 Jun 2002 13:33:47 -0000 1.312
***************
*** 1,4 ****
#! /bin/sh
! # From configure.in Revision: 1.320 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53.
--- 1,4 ----
#! /bin/sh
! # From configure.in Revision: 1.321 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53.
***************
*** 846,849 ****
--- 846,850 ----
--with(out)-cycle-gc disable/enable garbage collection
--with(out)-universal-newlines disable/enable foreign newlines
+ --with(out)-doc-strings disable/enable documentation strings
--with(out)-pymalloc disable/enable specialized mallocs
--with-wctype-functions use wctype.h functions
***************
*** 10964,10967 ****
--- 10965,10992 ----
echo "$as_me:$LINENO: result: $with_universal_newlines" >&5
echo "${ECHO_T}$with_universal_newlines" >&6
+
+ # Check for --with-doc-strings
+ echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
+ echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
+
+ # Check whether --with-doc-strings or --without-doc-strings was given.
+ if test "${with_doc_strings+set}" = set; then
+ withval="$with_doc_strings"
+
+ fi;
+
+ if test -z "$with_doc_strings"
+ then with_doc_strings="yes"
+ fi
+ if test "$with_doc_strings" != "no"
+ then
+
+ cat >>confdefs.h <<\_ACEOF
+ #define WITH_DOC_STRINGS 1
+ _ACEOF
+
+ fi
+ echo "$as_me:$LINENO: result: $with_doc_strings" >&5
+ echo "${ECHO_T}$with_doc_strings" >&6
# Check for Python-specific malloc support
Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.321
retrieving revision 1.322
diff -C2 -d -r1.321 -r1.322
*** configure.in 6 Jun 2002 13:03:40 -0000 1.321
--- configure.in 9 Jun 2002 13:33:53 -0000 1.322
***************
*** 1456,1459 ****
--- 1456,1474 ----
AC_MSG_RESULT($with_universal_newlines)
+ # Check for --with-doc-strings
+ AC_MSG_CHECKING(for --with-doc-strings)
+ AC_ARG_WITH(doc-strings,
+ [ --with(out)-doc-strings disable/enable documentation strings])
+
+ if test -z "$with_doc_strings"
+ then with_doc_strings="yes"
+ fi
+ if test "$with_doc_strings" != "no"
+ then
+ AC_DEFINE(WITH_DOC_STRINGS, 1,
+ [Define if you want documentation strings in extension modules])
+ fi
+ AC_MSG_RESULT($with_doc_strings)
+
# Check for Python-specific malloc support
AC_MSG_CHECKING(for --with-pymalloc)
Index: pyconfig.h.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/pyconfig.h.in,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** pyconfig.h.in 6 Jun 2002 13:03:44 -0000 1.38
--- pyconfig.h.in 9 Jun 2002 13:33:53 -0000 1.39
***************
*** 727,730 ****
--- 727,733 ----
#undef WITH_DL_DLD
+ /* Define if you want documentation strings in extension modules */
+ #undef WITH_DOC_STRINGS
+
/* Define if you want to use the new-style (Openstep, Rhapsody, MacOS) dynamic
linker (dyld) instead of the old-style (NextStep) dynamic linker (rld).