Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
fa3bdea0
Kaydet (Commit)
fa3bdea0
authored
Eyl 04, 2003
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Will backport to 2.2.
üst
e81e9b1d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
3 deletions
+77
-3
configure
configure
+59
-2
configure.in
configure.in
+18
-1
No files found.
configure
Dosyayı görüntüle @
fa3bdea0
#! /bin/sh
#! /bin/sh
# From configure.in Revision: 1.4
29
.
# From configure.in Revision: 1.4
30
.
# Guess values for system-dependent variables and create Makefiles.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.57 for python 2.4.
# Generated by GNU Autoconf 2.57 for python 2.4.
#
#
...
@@ -17520,6 +17520,58 @@ _ACEOF
...
@@ -17520,6 +17520,58 @@ _ACEOF
fi
fi
echo
"
$as_me
:
$LINENO
: checking for UCS-4 tcl"
>
&5
echo
$ECHO_N
"checking for UCS-4 tcl...
$ECHO_C
"
>
&6
have_ucs4_tcl
=
no
cat
>
conftest.
$ac_ext
<<
_ACEOF
#line
$LINENO
"configure"
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <tcl.h>
#if TCL_UTF_MAX != 6
# error "NOT UCS4_TCL"
#endif
int
main ()
{
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_compile
\"
"
)
>
&5
(
eval
$ac_compile
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -s conftest.$ac_objext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
cat
>>
confdefs.h
<<
\
_ACEOF
#define HAVE_UCS4_TCL 1
_ACEOF
have_ucs4_tcl
=
yes
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
fi
rm
-f
conftest.
$ac_objext
conftest.
$ac_ext
echo
"
$as_me
:
$LINENO
: result:
$have_ucs4_tcl
"
>
&5
echo
"
${
ECHO_T
}
$have_ucs4_tcl
"
>
&6
echo
"
$as_me
:
$LINENO
: checking what type to use for unicode"
>
&5
echo
"
$as_me
:
$LINENO
: checking what type to use for unicode"
>
&5
echo
$ECHO_N
"checking what type to use for unicode...
$ECHO_C
"
>
&6
echo
$ECHO_N
"checking what type to use for unicode...
$ECHO_C
"
>
&6
# Check whether --enable-unicode or --disable-unicode was given.
# Check whether --enable-unicode or --disable-unicode was given.
...
@@ -17533,7 +17585,12 @@ fi;
...
@@ -17533,7 +17585,12 @@ fi;
if
test
$enable_unicode
=
yes
if
test
$enable_unicode
=
yes
then
then
# Without any arguments, Py_UNICODE defaults to two-byte mode
# Without any arguments, Py_UNICODE defaults to two-byte mode
enable_unicode="ucs2"
case
"
$have_ucs4_tcl
"
in
yes
)
enable_unicode
=
"ucs4"
;;
*
)
enable_unicode
=
"ucs2"
;;
esac
fi
fi
...
...
configure.in
Dosyayı görüntüle @
fa3bdea0
...
@@ -2647,6 +2647,18 @@ then
...
@@ -2647,6 +2647,18 @@ then
AC_CHECK_SIZEOF(wchar_t, 4, [#include <wchar.h>])
AC_CHECK_SIZEOF(wchar_t, 4, [#include <wchar.h>])
fi
fi
AC_MSG_CHECKING(for UCS-4 tcl)
have_ucs4_tcl=no
AC_TRY_COMPILE([
#include <tcl.h>
#if TCL_UTF_MAX != 6
# error "NOT UCS4_TCL"
#endif], [], [
AC_DEFINE(HAVE_UCS4_TCL, 1, [Define this if you have tcl and TCL_UTF_MAX==6])
have_ucs4_tcl=yes
])
AC_MSG_RESULT($have_ucs4_tcl)
AC_MSG_CHECKING(what type to use for unicode)
AC_MSG_CHECKING(what type to use for unicode)
dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output
dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output
AC_ARG_ENABLE(unicode,
AC_ARG_ENABLE(unicode,
...
@@ -2657,7 +2669,12 @@ AC_ARG_ENABLE(unicode,
...
@@ -2657,7 +2669,12 @@ AC_ARG_ENABLE(unicode,
if test $enable_unicode = yes
if test $enable_unicode = yes
then
then
# Without any arguments, Py_UNICODE defaults to two-byte mode
# Without any arguments, Py_UNICODE defaults to two-byte mode
enable_unicode="ucs2"
case "$have_ucs4_tcl" in
yes) enable_unicode="ucs4"
;;
*) enable_unicode="ucs2"
;;
esac
fi
fi
AH_TEMPLATE(Py_UNICODE_SIZE,
AH_TEMPLATE(Py_UNICODE_SIZE,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment