summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-01-11 12:39:33 +0000
committerRoy Marples <roy@marples.name>2019-01-11 12:39:33 +0000
commit2baa28fe39f3c1e780f8b1585c0ca518241f9677 (patch)
treef56d60772403874d4065cd0eb9108d061d95b822 /configure
parent5b735a784bffed91d83ec5ad6ceb43069424fe4c (diff)
downloaddhcpcd-2baa28fe39f3c1e780f8b1585c0ca518241f9677.tar.xz
configure: --with-udev explicity requires libudev to be present
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index 0f24a759..d0a80ba2 100755
--- a/configure
+++ b/configure
@@ -91,6 +91,7 @@ for x do
--without-sha256) SHA2=no;;
--without-hmac) HMAC=no;;
--without-dev) DEV=no;;
+ --with-udev) DEV=yes; UDEV=yes;;
--without-udev) UDEV=no;;
--with-poll) POLL="$var";;
--serviceexists) SERVICEEXISTS=$var;;
@@ -1344,6 +1345,10 @@ EOF
rm -f _udev.c _udev
elif [ "$DEV" != no -a "$UDEV" != no ]; then
echo "no"
+ if [ -n "$UDEV" ]; then
+ echo "udev has been explicity requested ... aborting" >&2
+ exit 1
+ fi
fi
if [ "$DEV" = yes ]; then