Skip to content

Commit 02a72f0

Browse files
authored
gh-98636: Fix detecting gdbm_compat for _dbm module (#98643)
Fix the gdbm_compat library detection logic to actually check for -lgdbm_compat independently of the ndbm detection. This fixes the build failure with `--with-dbmliborder=gdbm`, and implicit fallback to ndbm with the default value.
1 parent 07a87f7 commit 02a72f0

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

Misc/ACKS

+1
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@ Tiago Gonçalves
640640
Chris Gonnerman
641641
Shelley Gooch
642642
David Goodger
643+
Michał Górny
643644
Elliot Gorokhovsky
644645
Hans de Graaff
645646
Tim Graham
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix a regression in detecting ``gdbm_compat`` library for the ``_gdbm``
2+
module build.

configure

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+2-1
Original file line numberDiff line numberDiff line change
@@ -4120,8 +4120,9 @@ AS_VAR_IF([ac_cv_header_gdbm_dash_ndbm_h], [yes], [
41204120
AS_UNSET([ac_cv_header_gdbm_ndbm_h])
41214121

41224122
if test "$ac_cv_header_gdbm_slash_ndbm_h" = yes -o "$ac_cv_header_gdbm_dash_ndbm_h" = yes; then
4123+
AS_UNSET([ac_cv_search_dbm_open])
41234124
WITH_SAVE_ENV([
4124-
AC_SEARCH_LIBS([dbm_open], [gdbm_compat])
4125+
AC_SEARCH_LIBS([dbm_open], [gdbm_compat], [have_gdbm_compat=yes], [have_gdbm_compat=no])
41254126
])
41264127
fi
41274128

0 commit comments

Comments
 (0)