diff options
author | Erlend E. Aasland <erlend.aasland@protonmail.com> | 2023-06-06 10:58:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 10:58:13 (GMT) |
commit | 6f3a4fd4f23f8013cca5abdf03bcc7dd4adf8637 (patch) | |
tree | d5151ee4e03430c95a4900f919bd27bf42973e0a /configure | |
parent | 3aa3be4fe3f64ccaf2b6235bd3addeb5c1313002 (diff) | |
download | cpython-6f3a4fd4f23f8013cca5abdf03bcc7dd4adf8637.zip cpython-6f3a4fd4f23f8013cca5abdf03bcc7dd4adf8637.tar.gz cpython-6f3a4fd4f23f8013cca5abdf03bcc7dd4adf8637.tar.bz2 |
[3.12] gh-90005: Don't link with libbsd if not needed (#105236) (#105360)
The regression was introduced with commit 5b946cada.
Restore pre gh-29696 behaviour.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -19278,13 +19278,15 @@ fi printf "%s\n" "$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" = xyes then : printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h -fi - +else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 printf %s "checking for flock in -lbsd... " >&6; } if test ${ac_cv_lib_bsd_flock+y} @@ -19325,7 +19327,9 @@ then : FCNTL_LIBS="-lbsd" fi +fi +done fi |