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
a4e4ae27
Commit
a4e4ae27
authored
Sep 10, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Followup to #4026: better patch for flock detection.
parent
66d00ad2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
56 deletions
+42
-56
configure
configure
+26
-36
configure.in
configure.in
+16
-20
No files found.
configure
View file @
a4e4ae27
#! /bin/sh
# From configure.in Revision: 845
12
.
# From configure.in Revision: 845
84
.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.65 for python 3.2.
#
...
...
@@ -9586,55 +9586,44 @@ $as_echo "no" >&6; }
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for flock"
>
&5
$as_echo_n
"checking for flock... "
>
&6
;
}
have_flock
=
no
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for flock declaration"
>
&5
$as_echo_n
"checking for flock declaration... "
>
&6
;
}
if
test
"
${
ac_cv_flock_decl
+set
}
"
=
set
;
then
:
$as_echo_n
"(cached) "
>
&6
else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#include <sys/file.h>
int
main ()
{
void* p = flock
;
return 0;
}
_ACEOF
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
$as_echo
"#define HAVE_FLOCK 1"
>>
confdefs.h
have_flock
=
yes
ac_cv_flock_decl
=
yes
else
ac_cv_flock_decl
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$have_flock
"
>
&5
$as_echo
"
$have_flock
"
>
&6
;
}
if
test
"
$have_flock
"
=
yes
;
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking if flock requires additional libraries."
>
&5
$as_echo_n
"checking if flock requires additional libraries.... "
>
&6
;
}
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#include <sys/file.h>
int
main ()
{
void *p = flock; flock(0, 0)
;
return 0;
}
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_flock_decl
"
>
&5
$as_echo
"
$ac_cv_flock_decl
"
>
&6
;
}
if
test
"x
${
ac_cv_flock_decl
}
"
=
xyes
;
then
for
ac_func
in
flock
do
:
ac_fn_c_check_func
"
$LINENO
"
"flock"
"ac_cv_func_flock"
if
test
"x
$ac_cv_func_flock
"
=
x
""
yes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_FLOCK 1
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
else
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: yes"
>
&5
$as_echo
"yes"
>
&6
;
}
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for flock in -lbsd"
>
&5
$as_echo_n
"checking for flock in -lbsd... "
>
&6
;
}
if
test
"
${
ac_cv_lib_bsd_flock
+set
}
"
=
set
;
then
:
...
...
@@ -9672,6 +9661,7 @@ fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_lib_bsd_flock
"
>
&5
$as_echo
"
$ac_cv_lib_bsd_flock
"
>
&6
;
}
if
test
"x
$ac_cv_lib_bsd_flock
"
=
x
""
yes
;
then
:
$as_echo
"#define HAVE_FLOCK 1"
>>
confdefs.h
$as_echo
"#define FLOCK_NEEDS_LIBBSD 1"
>>
confdefs.h
...
...
@@ -9681,8 +9671,8 @@ fi
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
done
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for getpagesize"
>
&5
...
...
configure.in
View file @
a4e4ae27
...
...
@@ -2641,27 +2641,23 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
[AC_MSG_RESULT(no)
])
AC_MSG_CHECKING(for flock)
have_flock=no
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <sys/file.h>
]], [[void* p = flock]])],
[AC_DEFINE(HAVE_FLOCK, 1, Define if you have the 'flock' function.)
have_flock=yes
AC_CACHE_CHECK([for flock declaration], [ac_cv_flock_decl],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[#include <sys/file.h>],
[void* p = flock]
)],
[ac_cv_flock_decl=yes],
[ac_cv_flock_decl=no]
)
])
AC_MSG_RESULT($have_flock)
if test "$have_flock" = yes ; then
AC_MSG_CHECKING(if flock requires additional libraries.)
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <sys/file.h>
]], [[void *p = flock; flock(0, 0)]])],
[AC_MSG_RESULT(no)],
[AC_MSG_RESULT(yes)
AC_CHECK_LIB(bsd,flock, [
if test "x${ac_cv_flock_decl}" = xyes; then
AC_CHECK_FUNCS(flock,,
AC_CHECK_LIB(bsd,flock,
[AC_DEFINE(HAVE_FLOCK)
AC_DEFINE(FLOCK_NEEDS_LIBBSD, 1, Define if flock needs to be linked with bsd library.)
])
]
)
)
fi
AC_MSG_CHECKING(for getpagesize)
...
...
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