Skip to content

Commit

Permalink
Restore LIBS
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran committed Nov 22, 2021
1 parent d592dd9 commit b73b169
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Modules/Setup.stdlib.in
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
@MODULE__QUEUE_TRUE@_queue _queuemodule.c
@MODULE__RANDOM_TRUE@_random _randommodule.c
@MODULE__TYPING_TRUE@_typing _typingmodule.c
@MODULE__XXSUBINTERPRETERS_TRUE@_xxsubinterpreters __xxsubinterpretersmodule.c
@MODULE__XXSUBINTERPRETERS_TRUE@_xxsubinterpreters _xxsubinterpretersmodule.c
@MODULE__ZONEINFO_TRUE@_zoneinfo _zoneinfo.c

# needs libm
Expand Down
30 changes: 28 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -11141,7 +11141,13 @@ fi


LIBNSL_CFLAGS=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing yp_match" >&5
save_CFLAGS=$CFLAGS
save_CPPFLAGS=$CPPFLAGS
save_LDFLAGS=$LDFLAGS
save_LIBS=$LIBS


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing yp_match" >&5
$as_echo_n "checking for library containing yp_match... " >&6; }
if ${ac_cv_search_yp_match+:} false; then :
$as_echo_n "(cached) " >&6
Expand Down Expand Up @@ -11199,6 +11205,13 @@ else
have_nis=no
fi


CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
LDFLAGS=$save_LDFLAGS
LIBS=$save_LIBS


case $ac_cv_search_yp_match in #(
no) :
LIBNSL_LIBS= ;; #(
Expand All @@ -11214,7 +11227,13 @@ elif test $pkg_failed = untried; then
$as_echo "no" >&6; }

LIBNSL_CFLAGS=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing yp_match" >&5
save_CFLAGS=$CFLAGS
save_CPPFLAGS=$CPPFLAGS
save_LDFLAGS=$LDFLAGS
save_LIBS=$LIBS


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing yp_match" >&5
$as_echo_n "checking for library containing yp_match... " >&6; }
if ${ac_cv_search_yp_match+:} false; then :
$as_echo_n "(cached) " >&6
Expand Down Expand Up @@ -11272,6 +11291,13 @@ else
have_nis=no
fi


CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
LDFLAGS=$save_LDFLAGS
LIBS=$save_LIBS


case $ac_cv_search_yp_match in #(
no) :
LIBNSL_LIBS= ;; #(
Expand Down
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3196,7 +3196,9 @@ dnl check for NIS / libnsl dependencies
dnl libnsl dependencies include tirpc includes and lib
PKG_CHECK_MODULES([LIBNSL], [libnsl], [have_nis=yes], [
LIBNSL_CFLAGS=
AC_SEARCH_LIBS([yp_match], [nsl], [have_nis=yes], [have_nis=no])
WITH_SAVE_ENV([
AC_SEARCH_LIBS([yp_match], [nsl], [have_nis=yes], [have_nis=no])
])
AS_CASE([$ac_cv_search_yp_match],
[no], [LIBNSL_LIBS=],
["none required"], [LIBNSL_LIBS=],
Expand Down

0 comments on commit b73b169

Please sign in to comment.