mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Patch #874083: Bluetooth support for socket module.
This commit is contained in:
parent
4d205e366c
commit
12af0485f8
7 changed files with 126 additions and 63 deletions
60
configure
vendored
60
configure
vendored
|
@ -1,5 +1,5 @@
|
|||
#! /bin/sh
|
||||
# From configure.in Revision: 1.445 .
|
||||
# From configure.in Revision: 1.447 .
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.57 for python 2.4.
|
||||
#
|
||||
|
@ -3008,7 +3008,7 @@ rm -f conftest*
|
|||
|
||||
# Check for unsupported systems
|
||||
case $ac_sys_system/$ac_sys_release in
|
||||
SunOS/4*|Linux*/1*)
|
||||
Linux*/1*)
|
||||
echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
|
||||
echo See README for details.
|
||||
exit 1;;
|
||||
|
@ -4347,6 +4347,7 @@ done
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
for ac_header in dlfcn.h fcntl.h grp.h limits.h langinfo.h \
|
||||
|
@ -4356,7 +4357,7 @@ unistd.h utime.h \
|
|||
sys/audioio.h sys/bsdtty.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \
|
||||
sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
|
||||
sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \
|
||||
sys/resource.h netpacket/packet.h sysexits.h
|
||||
sys/resource.h netpacket/packet.h sysexits.h bluetooth/bluetooth.h
|
||||
do
|
||||
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
||||
|
@ -9362,7 +9363,7 @@ fi
|
|||
echo "$as_me:$LINENO: result: $SO" >&5
|
||||
echo "${ECHO_T}$SO" >&6
|
||||
# LDSHARED is the ld *command* used to create shared library
|
||||
# -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
|
||||
# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
|
||||
# (Shared libraries in this instance are shared modules to be loaded into
|
||||
# Python, as opposed to building Python itself as a shared library.)
|
||||
echo "$as_me:$LINENO: checking LDSHARED" >&5
|
||||
|
@ -9380,7 +9381,6 @@ then
|
|||
;;
|
||||
IRIX/5*) LDSHARED="ld -shared";;
|
||||
IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
|
||||
SunOS/4*) LDSHARED="ld";;
|
||||
SunOS/5*)
|
||||
if test "$GCC" = "yes"
|
||||
then LDSHARED='$(CC) -shared'
|
||||
|
@ -15518,56 +15518,6 @@ rm -f conftest.$ac_objext conftest.$ac_ext
|
|||
echo "$as_me:$LINENO: result: $works" >&5
|
||||
echo "${ECHO_T}$works" >&6
|
||||
|
||||
if test "$have_prototypes" = yes; then
|
||||
bad_prototypes=no
|
||||
echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5
|
||||
echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6
|
||||
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 <unistd.h>
|
||||
int
|
||||
main ()
|
||||
{
|
||||
char **t;execve("@",t,t);
|
||||
;
|
||||
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
|
||||
:
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define BAD_EXEC_PROTOTYPES 1
|
||||
_ACEOF
|
||||
|
||||
bad_prototypes=yes
|
||||
|
||||
fi
|
||||
rm -f conftest.$ac_objext conftest.$ac_ext
|
||||
echo "$as_me:$LINENO: result: $bad_prototypes" >&5
|
||||
echo "${ECHO_T}$bad_prototypes" >&6
|
||||
fi
|
||||
|
||||
# check if sockaddr has sa_len member
|
||||
echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
|
||||
echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue