From: Martin v. Löwis Date: Thu, 19 Dec 2002 16:21:49 +0000 (+0000) Subject: Unsupport --without-universal-newlines. X-Git-Tag: v2.3c1~2953 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e4cfcb6bc6e6913fb69a7964bd61684ca3ad639;p=thirdparty%2FPython%2Fcpython.git Unsupport --without-universal-newlines. --- diff --git a/README b/README index abea8dba14b1..b7b53afb6459 100644 --- a/README +++ b/README @@ -245,6 +245,7 @@ longer: - Systems defining PY_PTHREAD_D4, PY_PTHREAD_D6, or PY_PTHREAD_D7 in thread_pthread.h - Systems using --with-dl-dld +- Systems using --without-universal-newlines Platform specific notes ----------------------- @@ -957,7 +958,7 @@ Modules/getpath.o. any of \r, \n or \r\n is acceptable as end-of-line character. If enabled import and execfile will automatically accept any newline in files. Python code can open a file with open(file, 'U') to - read it in universal newline mode. + read it in universal newline mode. THIS OPTION IS UNSUPPORTED. Building for multiple architectures (using the VPATH feature) diff --git a/configure b/configure index 20d7199c8820..a5e51b3ff39e 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 1.374 . +# From configure.in Revision: 1.375 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.53 for python 2.3. # @@ -11653,7 +11653,9 @@ fi; if test -z "$with_universal_newlines" then with_universal_newlines="yes" fi -if test "$with_universal_newlines" != "no" +if test "$with_universal_newlines" = "no" + echo --without-universal-newlines is unsupported, see README + exit 1 then cat >>confdefs.h <<\_ACEOF diff --git a/configure.in b/configure.in index f41b11d9c111..c6fd6a1902f6 100644 --- a/configure.in +++ b/configure.in @@ -1606,7 +1606,9 @@ AC_ARG_WITH(universal-newlines, if test -z "$with_universal_newlines" then with_universal_newlines="yes" fi -if test "$with_universal_newlines" != "no" +if test "$with_universal_newlines" = "no" + echo --without-universal-newlines is unsupported, see README + exit 1 then AC_DEFINE(WITH_UNIVERSAL_NEWLINES, 1, [Define if you want to read files with foreign newlines.])