Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1b80b240
Commit
1b80b240
authored
Apr 12, 2016
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: fix HAVE_GETRANDOM_SYSCALL check
syscall() function requires #include <unistd.h>.
parent
9d24271d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
83 deletions
+85
-83
configure
configure
+1
-0
configure.ac
configure.ac
+84
-83
No files found.
configure
View file @
1b80b240
...
@@ -16276,6 +16276,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
...
@@ -16276,6 +16276,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* end confdefs.h. */
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/syscall.h>
int main() {
int main() {
...
...
configure.ac
View file @
1b80b240
...
@@ -86,7 +86,7 @@ dnl can cause trouble.
...
@@ -86,7 +86,7 @@ dnl can cause trouble.
dnl Last slash shouldn't be stripped if prefix=/
dnl Last slash shouldn't be stripped if prefix=/
if test "$prefix" != "/"; then
if test "$prefix" != "/"; then
prefix=`echo "$prefix" | sed -e 's/\/$//g'`
prefix=`echo "$prefix" | sed -e 's/\/$//g'`
fi
fi
dnl This is for stuff that absolutely must end up in pyconfig.h.
dnl This is for stuff that absolutely must end up in pyconfig.h.
dnl Please use pyport.h instead, if possible.
dnl Please use pyport.h instead, if possible.
...
@@ -178,7 +178,7 @@ AC_ARG_ENABLE(universalsdk,
...
@@ -178,7 +178,7 @@ AC_ARG_ENABLE(universalsdk,
fi
fi
;;
;;
esac
esac
],[
],[
UNIVERSALSDK=
UNIVERSALSDK=
enable_universalsdk=
enable_universalsdk=
...
@@ -240,7 +240,7 @@ AC_ARG_ENABLE(framework,
...
@@ -240,7 +240,7 @@ AC_ARG_ENABLE(framework,
AS_HELP_STRING([--enable-framework@<:@=INSTALLDIR@:>@], [Build (MacOSX|Darwin) framework]),
AS_HELP_STRING([--enable-framework@<:@=INSTALLDIR@:>@], [Build (MacOSX|Darwin) framework]),
[
[
case $enableval in
case $enableval in
yes)
yes)
enableval=/Library/Frameworks
enableval=/Library/Frameworks
esac
esac
case $enableval in
case $enableval in
...
@@ -297,7 +297,7 @@ AC_ARG_ENABLE(framework,
...
@@ -297,7 +297,7 @@ AC_ARG_ENABLE(framework,
FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
if test "${prefix}" = "NONE"; then
if test "${prefix}" = "NONE"; then
# User hasn't specified the
# User hasn't specified the
# --prefix option, but wants to install
# --prefix option, but wants to install
# the framework in a non-default location,
# the framework in a non-default location,
# ensure that the compatibility links get
# ensure that the compatibility links get
...
@@ -442,7 +442,7 @@ case $ac_sys_system/$ac_sys_release in
...
@@ -442,7 +442,7 @@ case $ac_sys_system/$ac_sys_release in
# Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
# Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
# In addition, Stefan Krah confirms that issue #1244610 exists through
# In addition, Stefan Krah confirms that issue #1244610 exists through
# OpenBSD 4.6, but is fixed in 4.7.
# OpenBSD 4.6, but is fixed in 4.7.
OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.@<:@0123456@:>@)
OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.@<:@0123456@:>@)
define_xopen_source=no
define_xopen_source=no
# OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
# OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
# also defined. This can be overridden by defining _BSD_SOURCE
# also defined. This can be overridden by defining _BSD_SOURCE
...
@@ -480,12 +480,12 @@ case $ac_sys_system/$ac_sys_release in
...
@@ -480,12 +480,12 @@ case $ac_sys_system/$ac_sys_release in
# with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
# with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
FreeBSD/4.*)
FreeBSD/4.*)
define_xopen_source=no;;
define_xopen_source=no;;
# On MacOS X 10.2, a bug in ncurses.h means that it craps out if
# On MacOS X 10.2, a bug in ncurses.h means that it craps out if
# _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
# _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
# identifies itself as Darwin/7.*
# identifies itself as Darwin/7.*
# On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
# On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
# disables platform specific features beyond repair.
# disables platform specific features beyond repair.
# On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
# On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
# has no effect, don't bother defining them
# has no effect, don't bother defining them
Darwin/@<:@6789@:>@.*)
Darwin/@<:@6789@:>@.*)
define_xopen_source=no;;
define_xopen_source=no;;
...
@@ -690,7 +690,7 @@ AC_ARG_WITH(cxx_main,
...
@@ -690,7 +690,7 @@ AC_ARG_WITH(cxx_main,
AS_HELP_STRING([--with-cxx-main=<compiler>],
AS_HELP_STRING([--with-cxx-main=<compiler>],
[compile main() and link python executable with C++ compiler]),
[compile main() and link python executable with C++ compiler]),
[
[
case $withval in
case $withval in
no) with_cxx_main=no
no) with_cxx_main=no
MAINCC='$(CC)';;
MAINCC='$(CC)';;
...
@@ -870,7 +870,7 @@ if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
...
@@ -870,7 +870,7 @@ if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
AC_MSG_ERROR([internal configure error for the platform triplet, please file a bug report])
AC_MSG_ERROR([internal configure error for the platform triplet, please file a bug report])
fi
fi
fi
fi
PLATDIR=plat-$MACHDEP
PLATDIR=plat-$MACHDEP
AC_SUBST(PLATDIR)
AC_SUBST(PLATDIR)
AC_SUBST(PLATFORM_TRIPLET)
AC_SUBST(PLATFORM_TRIPLET)
...
@@ -959,7 +959,7 @@ AC_MSG_RESULT($LIBRARY)
...
@@ -959,7 +959,7 @@ AC_MSG_RESULT($LIBRARY)
# systems without shared libraries, LDLIBRARY is the same as LIBRARY
# systems without shared libraries, LDLIBRARY is the same as LIBRARY
# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
# DLLLIBRARY is the shared (i.e., DLL) library.
# DLLLIBRARY is the shared (i.e., DLL) library.
#
#
# RUNSHARED is used to run shared python without installed libraries
# RUNSHARED is used to run shared python without installed libraries
#
#
# INSTSONAME is the name of the shared library that will be use to install
# INSTSONAME is the name of the shared library that will be use to install
...
@@ -987,7 +987,7 @@ LDVERSION="$VERSION"
...
@@ -987,7 +987,7 @@ LDVERSION="$VERSION"
# If CXX is set, and if it is needed to link a main function that was
# 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:
# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
# python might then depend on the C++ runtime
# python might then depend on the C++ runtime
# This is altered for AIX in order to build the export list before
# This is altered for AIX in order to build the export list before
# linking.
# linking.
AC_SUBST(LINKCC)
AC_SUBST(LINKCC)
AC_MSG_CHECKING(LINKCC)
AC_MSG_CHECKING(LINKCC)
...
@@ -1041,7 +1041,7 @@ AC_ARG_ENABLE(shared,
...
@@ -1041,7 +1041,7 @@ AC_ARG_ENABLE(shared,
AS_HELP_STRING([--enable-shared], [disable/enable building shared python library]))
AS_HELP_STRING([--enable-shared], [disable/enable building shared python library]))
if test -z "$enable_shared"
if test -z "$enable_shared"
then
then
case $ac_sys_system in
case $ac_sys_system in
CYGWIN*)
CYGWIN*)
enable_shared="yes";;
enable_shared="yes";;
...
@@ -1086,7 +1086,7 @@ then
...
@@ -1086,7 +1086,7 @@ then
BLDLIBRARY=''
BLDLIBRARY=''
else
else
BLDLIBRARY='$(LDLIBRARY)'
BLDLIBRARY='$(LDLIBRARY)'
fi
fi
# Other platforms follow
# Other platforms follow
if test $enable_shared = "yes"; then
if test $enable_shared = "yes"; then
...
@@ -1221,14 +1221,14 @@ ABIFLAGS=""
...
@@ -1221,14 +1221,14 @@ ABIFLAGS=""
# Check for --with-pydebug
# Check for --with-pydebug
AC_MSG_CHECKING(for --with-pydebug)
AC_MSG_CHECKING(for --with-pydebug)
AC_ARG_WITH(pydebug,
AC_ARG_WITH(pydebug,
AS_HELP_STRING([--with-pydebug], [build with Py_DEBUG defined]),
AS_HELP_STRING([--with-pydebug], [build with Py_DEBUG defined]),
[
[
if test "$withval" != no
if test "$withval" != no
then
then
AC_DEFINE(Py_DEBUG, 1,
AC_DEFINE(Py_DEBUG, 1,
[Define if you want to build an interpreter with many run-time checks.])
[Define if you want to build an interpreter with many run-time checks.])
AC_MSG_RESULT(yes);
AC_MSG_RESULT(yes);
Py_DEBUG='true'
Py_DEBUG='true'
ABIFLAGS="${ABIFLAGS}d"
ABIFLAGS="${ABIFLAGS}d"
else AC_MSG_RESULT(no); Py_DEBUG='false'
else AC_MSG_RESULT(no); Py_DEBUG='false'
...
@@ -1696,7 +1696,7 @@ int main(){
...
@@ -1696,7 +1696,7 @@ int main(){
AC_MSG_RESULT($ac_cv_pthread_is_default)
AC_MSG_RESULT($ac_cv_pthread_is_default)
if test $ac_cv_pthread_is_default = yes
if test $ac_cv_pthread_is_default = yes
then
then
ac_cv_kpthread=no
ac_cv_kpthread=no
else
else
...
@@ -1795,14 +1795,14 @@ ac_save_cxx="$CXX"
...
@@ -1795,14 +1795,14 @@ ac_save_cxx="$CXX"
if test "$ac_cv_kpthread" = "yes"
if test "$ac_cv_kpthread" = "yes"
then
then
CXX="$CXX -Kpthread"
CXX="$CXX -Kpthread"
ac_cv_cxx_thread=yes
ac_cv_cxx_thread=yes
elif test "$ac_cv_kthread" = "yes"
elif test "$ac_cv_kthread" = "yes"
then
then
CXX="$CXX -Kthread"
CXX="$CXX -Kthread"
ac_cv_cxx_thread=yes
ac_cv_cxx_thread=yes
elif test "$ac_cv_pthread" = "yes"
elif test "$ac_cv_pthread" = "yes"
then
then
CXX="$CXX -pthread"
CXX="$CXX -pthread"
ac_cv_cxx_thread=yes
ac_cv_cxx_thread=yes
fi
fi
...
@@ -1950,11 +1950,11 @@ if test "$use_lfs" = "yes"; then
...
@@ -1950,11 +1950,11 @@ if test "$use_lfs" = "yes"; then
# These may affect some typedefs
# These may affect some typedefs
case $ac_sys_system/$ac_sys_release in
case $ac_sys_system/$ac_sys_release in
AIX*)
AIX*)
AC_DEFINE(_LARGE_FILES, 1,
AC_DEFINE(_LARGE_FILES, 1,
[This must be defined on AIX systems to enable large file support.])
[This must be defined on AIX systems to enable large file support.])
;;
;;
esac
esac
AC_DEFINE(_LARGEFILE_SOURCE, 1,
AC_DEFINE(_LARGEFILE_SOURCE, 1,
[This must be defined on some systems to enable large file support.])
[This must be defined on some systems to enable large file support.])
AC_DEFINE(_FILE_OFFSET_BITS, 64,
AC_DEFINE(_FILE_OFFSET_BITS, 64,
[This must be set to 64 on some systems to enable large file support.])
[This must be set to 64 on some systems to enable large file support.])
...
@@ -2018,7 +2018,7 @@ AC_CHECK_SIZEOF(pid_t, 4)
...
@@ -2018,7 +2018,7 @@ AC_CHECK_SIZEOF(pid_t, 4)
AC_MSG_CHECKING(for long long support)
AC_MSG_CHECKING(for long long support)
have_long_long=no
have_long_long=no
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[long long x; x = (long long)0;]])],[
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[long long x; x = (long long)0;]])],[
AC_DEFINE(HAVE_LONG_LONG, 1, [Define this if you have the type long long.])
AC_DEFINE(HAVE_LONG_LONG, 1, [Define this if you have the type long long.])
have_long_long=yes
have_long_long=yes
],[])
],[])
AC_MSG_RESULT($have_long_long)
AC_MSG_RESULT($have_long_long)
...
@@ -2029,7 +2029,7 @@ fi
...
@@ -2029,7 +2029,7 @@ fi
AC_MSG_CHECKING(for long double support)
AC_MSG_CHECKING(for long double support)
have_long_double=no
have_long_double=no
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[long double x; x = (long double)0;]])],[
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[long double x; x = (long double)0;]])],[
AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define this if you have the type long double.])
AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define this if you have the type long double.])
have_long_double=yes
have_long_double=yes
],[])
],[])
AC_MSG_RESULT($have_long_double)
AC_MSG_RESULT($have_long_double)
...
@@ -2041,7 +2041,7 @@ fi
...
@@ -2041,7 +2041,7 @@ fi
AC_MSG_CHECKING(for _Bool support)
AC_MSG_CHECKING(for _Bool support)
have_c99_bool=no
have_c99_bool=no
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[_Bool x; x = (_Bool)0;]])],[
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[_Bool x; x = (_Bool)0;]])],[
AC_DEFINE(HAVE_C99_BOOL, 1, [Define this if you have the type _Bool.])
AC_DEFINE(HAVE_C99_BOOL, 1, [Define this if you have the type _Bool.])
have_c99_bool=yes
have_c99_bool=yes
],[])
],[])
AC_MSG_RESULT($have_c99_bool)
AC_MSG_RESULT($have_c99_bool)
...
@@ -2049,8 +2049,8 @@ if test "$have_c99_bool" = yes ; then
...
@@ -2049,8 +2049,8 @@ if test "$have_c99_bool" = yes ; then
AC_CHECK_SIZEOF(_Bool, 1)
AC_CHECK_SIZEOF(_Bool, 1)
fi
fi
AC_CHECK_TYPES(uintptr_t,
AC_CHECK_TYPES(uintptr_t,
[AC_CHECK_SIZEOF(uintptr_t, 4)],
[AC_CHECK_SIZEOF(uintptr_t, 4)],
[], [#ifdef HAVE_STDINT_H
[], [#ifdef HAVE_STDINT_H
#include <stdint.h>
#include <stdint.h>
#endif
#endif
...
@@ -2069,7 +2069,7 @@ if test "$have_long_long" = yes
...
@@ -2069,7 +2069,7 @@ if test "$have_long_long" = yes
then
then
if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
AC_DEFINE(HAVE_LARGEFILE_SUPPORT, 1,
AC_DEFINE(HAVE_LARGEFILE_SUPPORT, 1,
[Defined to enable large file support when an off_t is bigger than a long
[Defined to enable large file support when an off_t is bigger than a long
and long long is available and at least as big as an off_t. You may need
and long long is available and at least as big as an off_t. You may need
to add some flags for configuration and compilation to enable this mode.
to add some flags for configuration and compilation to enable this mode.
...
@@ -2118,7 +2118,7 @@ CC="$ac_save_cc"
...
@@ -2118,7 +2118,7 @@ CC="$ac_save_cc"
AC_SUBST(OTHER_LIBTOOL_OPT)
AC_SUBST(OTHER_LIBTOOL_OPT)
case $ac_sys_system/$ac_sys_release in
case $ac_sys_system/$ac_sys_release in
Darwin/@<:@01567@:>@\..*)
Darwin/@<:@01567@:>@\..*)
OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
;;
;;
Darwin/*)
Darwin/*)
...
@@ -2129,7 +2129,7 @@ esac
...
@@ -2129,7 +2129,7 @@ esac
AC_SUBST(LIBTOOL_CRUFT)
AC_SUBST(LIBTOOL_CRUFT)
case $ac_sys_system/$ac_sys_release in
case $ac_sys_system/$ac_sys_release in
Darwin/@<:@01567@:>@\..*)
Darwin/@<:@01567@:>@\..*)
LIBTOOL_CRUFT="-framework System -lcc_dynamic"
LIBTOOL_CRUFT="-framework System -lcc_dynamic"
if test "${enable_universalsdk}"; then
if test "${enable_universalsdk}"; then
:
:
...
@@ -2143,7 +2143,7 @@ case $ac_sys_system/$ac_sys_release in
...
@@ -2143,7 +2143,7 @@ case $ac_sys_system/$ac_sys_release in
if test ${gcc_version} '<' 4.0
if test ${gcc_version} '<' 4.0
then
then
LIBTOOL_CRUFT="-lcc_dynamic"
LIBTOOL_CRUFT="-lcc_dynamic"
else
else
LIBTOOL_CRUFT=""
LIBTOOL_CRUFT=""
fi
fi
AC_RUN_IFELSE([AC_LANG_SOURCE([[
AC_RUN_IFELSE([AC_LANG_SOURCE([[
...
@@ -2157,14 +2157,14 @@ case $ac_sys_system/$ac_sys_release in
...
@@ -2157,14 +2157,14 @@ case $ac_sys_system/$ac_sys_release in
}
}
}
}
]])],[ac_osx_32bit=yes],[ac_osx_32bit=no],[ac_osx_32bit=yes])
]])],[ac_osx_32bit=yes],[ac_osx_32bit=no],[ac_osx_32bit=yes])
if test "${ac_osx_32bit}" = "yes"; then
if test "${ac_osx_32bit}" = "yes"; then
case `/usr/bin/arch` in
case `/usr/bin/arch` in
i386)
i386)
MACOSX_DEFAULT_ARCH="i386"
MACOSX_DEFAULT_ARCH="i386"
;;
;;
ppc)
ppc)
MACOSX_DEFAULT_ARCH="ppc"
MACOSX_DEFAULT_ARCH="ppc"
;;
;;
*)
*)
AC_MSG_ERROR([Unexpected output of 'arch' on OSX])
AC_MSG_ERROR([Unexpected output of 'arch' on OSX])
...
@@ -2172,11 +2172,11 @@ case $ac_sys_system/$ac_sys_release in
...
@@ -2172,11 +2172,11 @@ case $ac_sys_system/$ac_sys_release in
esac
esac
else
else
case `/usr/bin/arch` in
case `/usr/bin/arch` in
i386)
i386)
MACOSX_DEFAULT_ARCH="x86_64"
MACOSX_DEFAULT_ARCH="x86_64"
;;
;;
ppc)
ppc)
MACOSX_DEFAULT_ARCH="ppc64"
MACOSX_DEFAULT_ARCH="ppc64"
;;
;;
*)
*)
AC_MSG_ERROR([Unexpected output of 'arch' on OSX])
AC_MSG_ERROR([Unexpected output of 'arch' on OSX])
...
@@ -2193,9 +2193,9 @@ AC_MSG_CHECKING(for --enable-framework)
...
@@ -2193,9 +2193,9 @@ AC_MSG_CHECKING(for --enable-framework)
if test "$enable_framework"
if test "$enable_framework"
then
then
BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
# -F. is needed to allow linking to the framework while
# -F. is needed to allow linking to the framework while
# in the build location.
# in the build location.
AC_DEFINE(WITH_NEXT_FRAMEWORK, 1,
AC_DEFINE(WITH_NEXT_FRAMEWORK, 1,
[Define if you want to produce an OpenStep/Rhapsody framework
[Define if you want to produce an OpenStep/Rhapsody framework
(shared library plus accessory files).])
(shared library plus accessory files).])
AC_MSG_RESULT(yes)
AC_MSG_RESULT(yes)
...
@@ -2210,7 +2210,7 @@ fi
...
@@ -2210,7 +2210,7 @@ fi
AC_MSG_CHECKING(for dyld)
AC_MSG_CHECKING(for dyld)
case $ac_sys_system/$ac_sys_release in
case $ac_sys_system/$ac_sys_release in
Darwin/*)
Darwin/*)
AC_DEFINE(WITH_DYLD, 1,
AC_DEFINE(WITH_DYLD, 1,
[Define if you want to use the new-style (Openstep, Rhapsody, MacOS)
[Define if you want to use the new-style (Openstep, Rhapsody, MacOS)
dynamic linker (dyld) instead of the old-style (NextStep) dynamic
dynamic linker (dyld) instead of the old-style (NextStep) dynamic
linker (rld). Dyld is necessary to support frameworks.])
linker (rld). Dyld is necessary to support frameworks.])
...
@@ -2260,7 +2260,7 @@ then
...
@@ -2260,7 +2260,7 @@ then
;;
;;
IRIX/5*) LDSHARED="ld -shared";;
IRIX/5*) LDSHARED="ld -shared";;
IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
SunOS/5*)
SunOS/5*)
if test "$GCC" = "yes" ; then
if test "$GCC" = "yes" ; then
LDSHARED='$(CC) -shared'
LDSHARED='$(CC) -shared'
LDCXXSHARED='$(CXX) -shared'
LDCXXSHARED='$(CXX) -shared'
...
@@ -2436,7 +2436,7 @@ then
...
@@ -2436,7 +2436,7 @@ then
BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
# -u libsys_s pulls in all symbols in libsys
# -u libsys_s pulls in all symbols in libsys
Darwin/*)
Darwin/*)
LINKFORSHARED="$extra_undefs -framework CoreFoundation"
LINKFORSHARED="$extra_undefs -framework CoreFoundation"
# Issue #18075: the default maximum stack size (8MBytes) is too
# Issue #18075: the default maximum stack size (8MBytes) is too
...
@@ -2452,7 +2452,7 @@ then
...
@@ -2452,7 +2452,7 @@ then
OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then
then
LINKFORSHARED="-Wl,--export-dynamic"
LINKFORSHARED="-Wl,--export-dynamic"
...
@@ -2778,7 +2778,7 @@ then
...
@@ -2778,7 +2778,7 @@ then
# Defining _REENTRANT on system with POSIX threads should not hurt.
# Defining _REENTRANT on system with POSIX threads should not hurt.
AC_DEFINE(_REENTRANT)
AC_DEFINE(_REENTRANT)
posix_threads=yes
posix_threads=yes
THREADOBJ="Python/thread.o"
THREADOBJ="Python/thread.o"
elif test "$ac_cv_kpthread" = "yes"
elif test "$ac_cv_kpthread" = "yes"
then
then
CC="$CC -Kpthread"
CC="$CC -Kpthread"
...
@@ -2872,7 +2872,7 @@ pthread_create (NULL, NULL, start_routine, NULL)]])],[
...
@@ -2872,7 +2872,7 @@ pthread_create (NULL, NULL, start_routine, NULL)]])],[
THREADOBJ="Python/thread.o"
THREADOBJ="Python/thread.o"
USE_THREAD_MODULE=""])
USE_THREAD_MODULE=""])
if test "$posix_threads" != "yes"; then
if test "$posix_threads" != "yes"; then
AC_CHECK_LIB(thread, thr_create, [AC_DEFINE(WITH_THREAD)
AC_CHECK_LIB(thread, thr_create, [AC_DEFINE(WITH_THREAD)
LIBS="$LIBS -lthread"
LIBS="$LIBS -lthread"
THREADOBJ="Python/thread.o"
THREADOBJ="Python/thread.o"
...
@@ -2883,7 +2883,7 @@ fi
...
@@ -2883,7 +2883,7 @@ fi
if test "$posix_threads" = "yes"; then
if test "$posix_threads" = "yes"; then
if test "$unistd_defines_pthreads" = "no"; then
if test "$unistd_defines_pthreads" = "no"; then
AC_DEFINE(_POSIX_THREADS, 1,
AC_DEFINE(_POSIX_THREADS, 1,
[Define if you have POSIX threads,
[Define if you have POSIX threads,
and your system does not define that.])
and your system does not define that.])
fi
fi
...
@@ -3138,9 +3138,9 @@ AC_MSG_CHECKING(for --with-tsc)
...
@@ -3138,9 +3138,9 @@ AC_MSG_CHECKING(for --with-tsc)
AC_ARG_WITH(tsc,
AC_ARG_WITH(tsc,
AS_HELP_STRING([--with(out)-tsc],[enable/disable timestamp counter profile]),[
AS_HELP_STRING([--with(out)-tsc],[enable/disable timestamp counter profile]),[
if test "$withval" != no
if test "$withval" != no
then
then
AC_DEFINE(WITH_TSC, 1,
AC_DEFINE(WITH_TSC, 1,
[Define to profile with the Pentium timestamp counter])
[Define to profile with the Pentium timestamp counter])
AC_MSG_RESULT(yes)
AC_MSG_RESULT(yes)
else AC_MSG_RESULT(no)
else AC_MSG_RESULT(no)
fi],
fi],
...
@@ -3157,7 +3157,7 @@ then
...
@@ -3157,7 +3157,7 @@ then
fi
fi
if test "$with_pymalloc" != "no"
if test "$with_pymalloc" != "no"
then
then
AC_DEFINE(WITH_PYMALLOC, 1,
AC_DEFINE(WITH_PYMALLOC, 1,
[Define if you want to compile in Python-specific mallocs])
[Define if you want to compile in Python-specific mallocs])
ABIFLAGS="${ABIFLAGS}m"
ABIFLAGS="${ABIFLAGS}m"
fi
fi
...
@@ -3444,12 +3444,12 @@ dnl before searching for static libraries. setup.py adds -Wl,-search_paths_first
...
@@ -3444,12 +3444,12 @@ dnl before searching for static libraries. setup.py adds -Wl,-search_paths_first
dnl to revert to a more traditional unix behaviour and make it possible to
dnl to revert to a more traditional unix behaviour and make it possible to
dnl override the system libz with a local static library of libz. Temporarily
dnl override the system libz with a local static library of libz. Temporarily
dnl add that flag to our CFLAGS as well to ensure that we check the version
dnl add that flag to our CFLAGS as well to ensure that we check the version
dnl of libz that will be used by setup.py.
dnl of libz that will be used by setup.py.
dnl The -L/usr/local/lib is needed as wel to get the same compilation
dnl The -L/usr/local/lib is needed as wel to get the same compilation
dnl environment as setup.py (and leaving it out can cause configure to use the
dnl environment as setup.py (and leaving it out can cause configure to use the
dnl wrong version of the library)
dnl wrong version of the library)
case $ac_sys_system/$ac_sys_release in
case $ac_sys_system/$ac_sys_release in
Darwin/*)
Darwin/*)
_CUR_CFLAGS="${CFLAGS}"
_CUR_CFLAGS="${CFLAGS}"
_CUR_LDFLAGS="${LDFLAGS}"
_CUR_LDFLAGS="${LDFLAGS}"
CFLAGS="${CFLAGS} -Wl,-search_paths_first"
CFLAGS="${CFLAGS} -Wl,-search_paths_first"
...
@@ -3460,7 +3460,7 @@ esac
...
@@ -3460,7 +3460,7 @@ esac
AC_CHECK_LIB(z, inflateCopy, AC_DEFINE(HAVE_ZLIB_COPY, 1, [Define if the zlib library has inflateCopy]))
AC_CHECK_LIB(z, inflateCopy, AC_DEFINE(HAVE_ZLIB_COPY, 1, [Define if the zlib library has inflateCopy]))
case $ac_sys_system/$ac_sys_release in
case $ac_sys_system/$ac_sys_release in
Darwin/*)
Darwin/*)
CFLAGS="${_CUR_CFLAGS}"
CFLAGS="${_CUR_CFLAGS}"
LDFLAGS="${_CUR_LDFLAGS}"
LDFLAGS="${_CUR_LDFLAGS}"
;;
;;
...
@@ -3514,14 +3514,14 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
...
@@ -3514,14 +3514,14 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
# check for openpty and forkpty
# check for openpty and forkpty
AC_CHECK_FUNCS(openpty,,
AC_CHECK_FUNCS(openpty,,
AC_CHECK_LIB(util,openpty,
AC_CHECK_LIB(util,openpty,
[AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lutil"],
[AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lutil"],
AC_CHECK_LIB(bsd,openpty, [AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lbsd"])
AC_CHECK_LIB(bsd,openpty, [AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lbsd"])
)
)
)
)
AC_CHECK_FUNCS(forkpty,,
AC_CHECK_FUNCS(forkpty,,
AC_CHECK_LIB(util,forkpty,
AC_CHECK_LIB(util,forkpty,
[AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lutil"],
[AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lutil"],
AC_CHECK_LIB(bsd,forkpty, [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lbsd"])
AC_CHECK_LIB(bsd,forkpty, [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lbsd"])
)
)
...
@@ -3534,7 +3534,7 @@ AC_CHECK_FUNCS(memmove)
...
@@ -3534,7 +3534,7 @@ AC_CHECK_FUNCS(memmove)
AC_CHECK_FUNCS(fseek64 fseeko fstatvfs ftell64 ftello statvfs)
AC_CHECK_FUNCS(fseek64 fseeko fstatvfs ftell64 ftello statvfs)
AC_REPLACE_FUNCS(dup2 strdup)
AC_REPLACE_FUNCS(dup2 strdup)
AC_CHECK_FUNCS(getpgrp,
AC_CHECK_FUNCS(getpgrp,
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[getpgrp(0);]])],
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[getpgrp(0);]])],
[AC_DEFINE(GETPGRP_HAVE_ARG, 1, [Define if getpgrp() must be called as getpgrp(0).])],
[AC_DEFINE(GETPGRP_HAVE_ARG, 1, [Define if getpgrp() must be called as getpgrp(0).])],
[])
[])
...
@@ -3544,7 +3544,7 @@ AC_CHECK_FUNCS(setpgrp,
...
@@ -3544,7 +3544,7 @@ AC_CHECK_FUNCS(setpgrp,
[AC_DEFINE(SETPGRP_HAVE_ARG, 1, [Define if setpgrp() must be called as setpgrp(0, 0).])],
[AC_DEFINE(SETPGRP_HAVE_ARG, 1, [Define if setpgrp() must be called as setpgrp(0, 0).])],
[])
[])
)
)
AC_CHECK_FUNCS(gettimeofday,
AC_CHECK_FUNCS(gettimeofday,
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/time.h>]],
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/time.h>]],
[[gettimeofday((struct timeval*)0,(struct timezone*)0);]])],
[[gettimeofday((struct timeval*)0,(struct timezone*)0);]])],
[],
[],
...
@@ -3589,7 +3589,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
...
@@ -3589,7 +3589,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
])
])
# On OSF/1 V5.1, getaddrinfo is available, but a define
# On OSF/1 V5.1, getaddrinfo is available, but a define
# for [no]getaddrinfo in netdb.h.
# for [no]getaddrinfo in netdb.h.
AC_MSG_CHECKING(for getaddrinfo)
AC_MSG_CHECKING(for getaddrinfo)
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <sys/types.h>
#include <sys/types.h>
...
@@ -3749,7 +3749,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
...
@@ -3749,7 +3749,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
]], [[;]])],[
]], [[;]])],[
AC_DEFINE(SYS_SELECT_WITH_SYS_TIME, 1,
AC_DEFINE(SYS_SELECT_WITH_SYS_TIME, 1,
[Define if you can safely include both <sys/select.h> and <sys/time.h>
[Define if you can safely include both <sys/select.h> and <sys/time.h>
(which you can't on SCO ODT 3.0).])
(which you can't on SCO ODT 3.0).])
was_it_defined=yes
was_it_defined=yes
],[])
],[])
AC_MSG_RESULT($was_it_defined)
AC_MSG_RESULT($was_it_defined)
...
@@ -3800,8 +3800,8 @@ AC_MSG_RESULT($works)
...
@@ -3800,8 +3800,8 @@ AC_MSG_RESULT($works)
have_prototypes=no
have_prototypes=no
AC_MSG_CHECKING(for prototypes)
AC_MSG_CHECKING(for prototypes)
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int foo(int x) { return 0; }]], [[return foo(10);]])],
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int foo(int x) { return 0; }]], [[return foo(10);]])],
[AC_DEFINE(HAVE_PROTOTYPES, 1,
[AC_DEFINE(HAVE_PROTOTYPES, 1,
[Define if your compiler supports function prototype])
[Define if your compiler supports function prototype])
have_prototypes=yes],
have_prototypes=yes],
[]
[]
)
)
...
@@ -3822,7 +3822,7 @@ int foo(int x, ...) {
...
@@ -3822,7 +3822,7 @@ int foo(int x, ...) {
]], [[return foo(10, "", 3.14);]])],[
]], [[return foo(10, "", 3.14);]])],[
AC_DEFINE(HAVE_STDARG_PROTOTYPES, 1,
AC_DEFINE(HAVE_STDARG_PROTOTYPES, 1,
[Define if your compiler supports variable length function prototypes
[Define if your compiler supports variable length function prototypes
(e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>])
(e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>])
works=yes
works=yes
],[])
],[])
AC_MSG_RESULT($works)
AC_MSG_RESULT($works)
...
@@ -3857,7 +3857,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
...
@@ -3857,7 +3857,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <varargs.h>
#include <varargs.h>
#endif
#endif
]], [[va_list list1, list2; list1 = list2;]])],[],[
]], [[va_list list1, list2; list1 = list2;]])],[],[
AC_DEFINE(VA_LIST_IS_ARRAY, 1, [Define if a va_list is an array of some kind])
AC_DEFINE(VA_LIST_IS_ARRAY, 1, [Define if a va_list is an array of some kind])
va_list_is_array=yes
va_list_is_array=yes
])
])
AC_MSG_RESULT($va_list_is_array)
AC_MSG_RESULT($va_list_is_array)
...
@@ -3952,9 +3952,9 @@ AC_ARG_WITH(fpectl,
...
@@ -3952,9 +3952,9 @@ AC_ARG_WITH(fpectl,
AS_HELP_STRING([--with-fpectl], [enable SIGFPE catching]),
AS_HELP_STRING([--with-fpectl], [enable SIGFPE catching]),
[
[
if test "$withval" != no
if test "$withval" != no
then
then
AC_DEFINE(WANT_SIGFPE_HANDLER, 1,
AC_DEFINE(WANT_SIGFPE_HANDLER, 1,
[Define if you want SIGFPE handled (see Include/pyfpe.h).])
[Define if you want SIGFPE handled (see Include/pyfpe.h).])
AC_MSG_RESULT(yes)
AC_MSG_RESULT(yes)
else AC_MSG_RESULT(no)
else AC_MSG_RESULT(no)
fi],
fi],
...
@@ -4325,8 +4325,8 @@ AC_DEFINE_UNQUOTED(PYLONG_BITS_IN_DIGIT, $enable_big_digits, [Define as the pref
...
@@ -4325,8 +4325,8 @@ AC_DEFINE_UNQUOTED(PYLONG_BITS_IN_DIGIT, $enable_big_digits, [Define as the pref
# check for wchar.h
# check for wchar.h
AC_CHECK_HEADER(wchar.h, [
AC_CHECK_HEADER(wchar.h, [
AC_DEFINE(HAVE_WCHAR_H, 1,
AC_DEFINE(HAVE_WCHAR_H, 1,
[Define if the compiler provides a wchar.h header file.])
[Define if the compiler provides a wchar.h header file.])
wchar_h="yes"
wchar_h="yes"
],
],
wchar_h="no"
wchar_h="no"
...
@@ -4609,7 +4609,7 @@ then
...
@@ -4609,7 +4609,7 @@ then
[Define if poll() sets errno on invalid file descriptors.])
[Define if poll() sets errno on invalid file descriptors.])
fi
fi
# Before we can test tzset, we need to check if struct tm has a tm_zone
# Before we can test tzset, we need to check if struct tm has a tm_zone
# (which is not required by ISO C or UNIX spec) and/or if we support
# (which is not required by ISO C or UNIX spec) and/or if we support
# tzname[]
# tzname[]
AC_STRUCT_TIMEZONE
AC_STRUCT_TIMEZONE
...
@@ -4635,7 +4635,7 @@ int main()
...
@@ -4635,7 +4635,7 @@ int main()
tm->tm_zone does not exist since it is the alternative way
tm->tm_zone does not exist since it is the alternative way
of getting timezone info.
of getting timezone info.
Red Hat 6.2 doesn't understand the southern hemisphere
Red Hat 6.2 doesn't understand the southern hemisphere
after New Year's Day.
after New Year's Day.
*/
*/
...
@@ -4648,7 +4648,7 @@ int main()
...
@@ -4648,7 +4648,7 @@ int main()
exit(1);
exit(1);
#if HAVE_TZNAME
#if HAVE_TZNAME
/* For UTC, tzname[1] is sometimes "", sometimes " " */
/* For UTC, tzname[1] is sometimes "", sometimes " " */
if (strcmp(tzname[0], "UTC") ||
if (strcmp(tzname[0], "UTC") ||
(tzname[1][0] != 0 && tzname[1][0] != ' '))
(tzname[1][0] != 0 && tzname[1][0] != ' '))
exit(1);
exit(1);
#endif
#endif
...
@@ -4766,7 +4766,7 @@ AC_MSG_RESULT($ac_cv_window_has_flags)
...
@@ -4766,7 +4766,7 @@ AC_MSG_RESULT($ac_cv_window_has_flags)
if test "$ac_cv_window_has_flags" = yes
if test "$ac_cv_window_has_flags" = yes
then
then
AC_DEFINE(WINDOW_HAS_FLAGS, 1,
AC_DEFINE(WINDOW_HAS_FLAGS, 1,
[Define if WINDOW in curses.h offers a field _flags.])
[Define if WINDOW in curses.h offers a field _flags.])
fi
fi
...
@@ -4965,7 +4965,7 @@ AC_MSG_RESULT($ac_cv_broken_mbstowcs)
...
@@ -4965,7 +4965,7 @@ AC_MSG_RESULT($ac_cv_broken_mbstowcs)
if test "$ac_cv_broken_mbstowcs" = yes
if test "$ac_cv_broken_mbstowcs" = yes
then
then
AC_DEFINE(HAVE_BROKEN_MBSTOWCS, 1,
AC_DEFINE(HAVE_BROKEN_MBSTOWCS, 1,
[Define if mbstowcs(NULL, "text", 0) does not return the number of
[Define if mbstowcs(NULL, "text", 0) does not return the number of
wide chars that would be converted.])
wide chars that would be converted.])
fi
fi
...
@@ -4976,15 +4976,15 @@ AC_ARG_WITH(computed-gotos,
...
@@ -4976,15 +4976,15 @@ AC_ARG_WITH(computed-gotos,
[Use computed gotos in evaluation loop (enabled by default on supported compilers)]),
[Use computed gotos in evaluation loop (enabled by default on supported compilers)]),
[
[
if test "$withval" = yes
if test "$withval" = yes
then
then
AC_DEFINE(USE_COMPUTED_GOTOS, 1,
AC_DEFINE(USE_COMPUTED_GOTOS, 1,
[Define if you want to use computed gotos in ceval.c.])
[Define if you want to use computed gotos in ceval.c.])
AC_MSG_RESULT(yes)
AC_MSG_RESULT(yes)
fi
fi
if test "$withval" = no
if test "$withval" = no
then
then
AC_DEFINE(USE_COMPUTED_GOTOS, 0,
AC_DEFINE(USE_COMPUTED_GOTOS, 0,
[Define if you want to use computed gotos in ceval.c.])
[Define if you want to use computed gotos in ceval.c.])
AC_MSG_RESULT(no)
AC_MSG_RESULT(no)
fi
fi
],
],
...
@@ -5018,7 +5018,7 @@ case "$ac_cv_computed_gotos" in yes*)
...
@@ -5018,7 +5018,7 @@ case "$ac_cv_computed_gotos" in yes*)
esac
esac
case $ac_sys_system in
case $ac_sys_system in
AIX*)
AIX*)
AC_DEFINE(HAVE_BROKEN_PIPE_BUF, 1, [Define if the system reports an invalid PIPE_BUF value.]) ;;
AC_DEFINE(HAVE_BROKEN_PIPE_BUF, 1, [Define if the system reports an invalid PIPE_BUF value.]) ;;
esac
esac
...
@@ -5204,6 +5204,7 @@ AC_MSG_CHECKING(for the Linux getrandom() syscall)
...
@@ -5204,6 +5204,7 @@ AC_MSG_CHECKING(for the Linux getrandom() syscall)
AC_LINK_IFELSE(
AC_LINK_IFELSE(
[
[
AC_LANG_SOURCE([[
AC_LANG_SOURCE([[
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/syscall.h>
int main() {
int main() {
...
...
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