summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@sudo.ws>2022-12-06 16:45:47 -0700
committerTodd C. Miller <Todd.Miller@sudo.ws>2022-12-06 16:45:47 -0700
commitfebc8bc2be7055ec2fc989aec96ee5bc621aca79 (patch)
tree13c88d7bc5d56b3781e74c8c4fbdb578d0989ef5
parente391b3bf658ade585f5f5cef08a36735756440dc (diff)
downloadsudo-febc8bc2be7055ec2fc989aec96ee5bc621aca79.tar.gz
Initialize "found" in SUDO_CHECK_NET_FUNC.
-rwxr-xr-xconfigure10
-rw-r--r--m4/sudo.m42
2 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index 7bc4248cb..9b39d71a8 100755
--- a/configure
+++ b/configure
@@ -26398,6 +26398,7 @@ fi
_LIBS="$LIBS"
LIBS="${LIBS} ${NET_LIBS}"
+ found=true
ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
if test "x$ac_cv_func_socket" = xyes
then :
@@ -26406,6 +26407,7 @@ else case e in #(
e)
# Look for socket in network libraries appending to NET_LIBS as needed.
# May need to link with -lnsl and -lsocket due to unresolved symbols
+ found=false
for libs in "-lsocket" "-linet" "-lsocket -lnsl" "-lresolv"; do
_libs=
for lib in $libs; do
@@ -26502,6 +26504,7 @@ ONET_LIBS="$NET_LIBS"
_LIBS="$LIBS"
LIBS="${LIBS} ${NET_LIBS}"
+ found=true
ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
if test "x$ac_cv_func_inet_pton" = xyes
then :
@@ -26520,6 +26523,7 @@ else case e in #(
e)
# Look for inet_pton in network libraries appending to NET_LIBS as needed.
# May need to link with -lnsl and -lsocket due to unresolved symbols
+ found=false
for libs in "-lsocket" "-linet" "-lsocket -lnsl" "-lresolv"; do
_libs=
for lib in $libs; do
@@ -26641,6 +26645,7 @@ fi
_LIBS="$LIBS"
LIBS="${LIBS} ${NET_LIBS}"
+ found=true
ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
if test "x$ac_cv_func_inet_ntop" = xyes
then :
@@ -26652,6 +26657,7 @@ else case e in #(
e)
# Look for inet_ntop in network libraries appending to NET_LIBS as needed.
# May need to link with -lnsl and -lsocket due to unresolved symbols
+ found=false
for libs in "-lsocket" "-linet" "-lsocket -lnsl" "-lresolv"; do
_libs=
for lib in $libs; do
@@ -26766,6 +26772,7 @@ fi
_LIBS="$LIBS"
LIBS="${LIBS} ${NET_LIBS}"
+ found=true
ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
if test "x$ac_cv_func_syslog" = xyes
then :
@@ -26774,6 +26781,7 @@ else case e in #(
e)
# Look for syslog in network libraries appending to NET_LIBS as needed.
# May need to link with -lnsl and -lsocket due to unresolved symbols
+ found=false
for libs in "-lsocket" "-linet" "-lsocket -lnsl" "-lresolv"; do
_libs=
for lib in $libs; do
@@ -26985,6 +26993,7 @@ case " $LIBOBJS " in
_LIBS="$LIBS"
LIBS="${LIBS} ${NET_LIBS}"
+ found=true
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
if test "x$ac_cv_func_gethostbyname" = xyes
then :
@@ -26993,6 +27002,7 @@ else case e in #(
e)
# Look for gethostbyname in network libraries appending to NET_LIBS as needed.
# May need to link with -lnsl and -lsocket due to unresolved symbols
+ found=false
for libs in "-lsocket" "-linet" "-lsocket -lnsl" "-lresolv"; do
_libs=
for lib in $libs; do
diff --git a/m4/sudo.m4 b/m4/sudo.m4
index 9f3ac20c9..137fea0a2 100644
--- a/m4/sudo.m4
+++ b/m4/sudo.m4
@@ -303,9 +303,11 @@ AC_DEFUN([SUDO_CHECK_LIB], [
AC_DEFUN([SUDO_CHECK_NET_FUNC], [
_LIBS="$LIBS"
LIBS="${LIBS} ${NET_LIBS}"
+ found=true
AC_CHECK_FUNC([$1], [$2], [
# Look for $1 in network libraries appending to NET_LIBS as needed.
# May need to link with -lnsl and -lsocket due to unresolved symbols
+ found=false
for libs in "-lsocket" "-linet" "-lsocket -lnsl" "-lresolv"; do
_libs=
for lib in $libs; do