Skip to content

Commit

Permalink
configure.ac: Fixup the libpcap search loops.
Browse files Browse the repository at this point in the history
As soon as foundpcap has been set within a second-level for loop, break
out of both loops using the standard "break [num]" syntax, which dates
back to at least SUSv1 a.k.a. UNIX 95.
  • Loading branch information
infrastation committed Oct 30, 2024
1 parent 6fcbf03 commit 03ebd05
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -710,13 +710,9 @@ AC_ARG_WITH(libpcap,
LPCAP_LD_LIBRARY_PATH="$(dirname ${sharefile})"
LPCAPLIB="-L$LPCAP_LD_LIBRARY_PATH -lpcap"
foundpcap=$testdir
break
break 2
fi
done
if ! test $foundpcap = no; then
break
fi
done
else
dnl
Expand All @@ -728,10 +724,9 @@ AC_ARG_WITH(libpcap,
if test -n "${staticfile}"; then
LPCAPLIB="${staticfile}"
foundpcap=${testdir}
break
break 2
fi
done
done
fi
Expand Down

0 comments on commit 03ebd05

Please sign in to comment.