| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -3294,11 +3294,19 @@ else | |
| TCLTK_LIBS="$with_tcltk_libs" | ||
| fi | ||
|
|
||
| # check for _gdbmmodulec dependencies | ||
| AC_CHECK_HEADERS([gdbm.h], [ | ||
| LIBS_SAVE=$LIBS | ||
| AC_CHECK_LIB([gdbm], [gdbm_open]) | ||
| LIBS=$LIBS_SAVE | ||
| dnl check for _gdbmmodule dependencies | ||
| dnl NOTE: gdbm does not provide a pkgconf file. | ||
| AC_ARG_VAR([GDBM_CFLAGS], [C compiler flags for gdbm]) | ||
| AC_ARG_VAR([GDBM_LIBS], [additional linker flags for gdbm]) | ||
| WITH_SAVE_ENV([ | ||
| CPPFLAGS="$GDBM_CFLAGS $CFLAGS" | ||
| LDFLAGS="$GDBM_LIBS $LDFLAGS" | ||
| AC_CHECK_HEADERS([gdbm.h], [ | ||
| AC_CHECK_LIB([gdbm], [gdbm_open], [ | ||
| have_gdbm=yes | ||
| GDBM_LIBS="$GDBM_LIBS -lgdbm" | ||
| ], [have_gdbm=no]) | ||
| ], [have_gdbm=no]) | ||
| ]) | ||
|
|
||
| # check for _dbmmodule.c dependencies | ||
| Expand Down Expand Up | @@ -3366,21 +3374,23 @@ AC_CHECK_HEADERS([db.h], [ | |
| AC_MSG_CHECKING(for --with-dbmliborder) | ||
| AC_ARG_WITH(dbmliborder, | ||
| AS_HELP_STRING([--with-dbmliborder=db1:db2:...], [override order to check db backends for dbm; a valid value is a colon separated string with the backend names `ndbm', `gdbm' and `bdb'.]), | ||
| [ | ||
| if test x$with_dbmliborder = xyes | ||
| then | ||
| AC_MSG_ERROR([proper usage is --with-dbmliborder=db1:db2:...]) | ||
| else | ||
| as_save_IFS=$IFS | ||
| IFS=: | ||
| for db in $with_dbmliborder; do | ||
| if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | ||
| then | ||
| AC_MSG_ERROR([proper usage is --with-dbmliborder=db1:db2:...]) | ||
| fi | ||
| done | ||
| IFS=$as_save_IFS | ||
| fi]) | ||
| [], [with_dbmliborder=ndbm:gdbm:bdb]) | ||
|
|
||
| have_gdbm_dbmliborder=no | ||
| as_save_IFS=$IFS | ||
| IFS=: | ||
| for db in $with_dbmliborder; do | ||
| AS_CASE([$db], | ||
| [ndbm], [], | ||
| [gdbm], [have_gdbm_dbmliborder=yes], | ||
| [bdb], [], | ||
| [with_dbmliborder=error] | ||
|
Comment thread
Copy link
Copy Markdown
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityI'd just put AC_MSG_ERROR here, avoiding the AS_VAR_IF below, but I'm fine with this variant as well.
Sorry, something went wrong.
All reactions
Copy link
Copy Markdown
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityI tried it. For unknown reasons it does not work. I get a bunch of shell error messages when the error case is triggered.
Sorry, something went wrong.
erlend-aasland reacted with eyes emoji
All reactions
|
||
| ) | ||
| done | ||
| IFS=$as_save_IFS | ||
| AS_VAR_IF([with_dbmliborder], [error], [ | ||
| AC_MSG_ERROR([proper usage is --with-dbmliborder=db1:db2:... (ndbm:gdbm:bdb)]) | ||
| ]) | ||
| AC_MSG_RESULT($with_dbmliborder) | ||
|
|
||
| # Templates for things AC_DEFINEd more than once. | ||
| Expand Down Expand Up | @@ -6193,6 +6203,9 @@ PY_STDLIB_MOD([_sha3], [test "$with_builtin_sha3" = yes]) | |
| PY_STDLIB_MOD([_blake2], [test "$with_builtin_blake2" = yes]) | ||
|
|
||
| PY_STDLIB_MOD([_decimal], [], [], [$LIBMPDEC_CFLAGS], [$LIBMPDEC_LDFLAGS]) | ||
| PY_STDLIB_MOD([_gdbm], | ||
| [test "$have_gdbm_dbmliborder" = yes], [test "$have_gdbm" = yes], | ||
| [$GDBM_CFLAGS], [$GDBM_LIBS]) | ||
| PY_STDLIB_MOD([nis], | ||
| [], [test "$have_nis" = yes -a "$ac_cv_header_rpc_rpc_h" = yes], | ||
| [$LIBNSL_CFLAGS], [$LIBNSL_LIBS]) | ||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityBTW, why do we save IFS here? AFAICS, there's nothing touching it, but I may be mistaken.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityI'm saving and setting IFS here so the for loop uses : as a field separator.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityYes, just found it in the man page. Learned something new today.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.