diff options
| author | Roy Marples <roy@marples.name> | 2016-09-20 09:29:39 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-09-20 09:29:39 +0000 |
| commit | 8113e962fb7819ece43a91be82397e5dcc38f45f (patch) | |
| tree | 84e138bfe566972b5f1d759d90c52d37877fefcb /configure | |
| parent | c13106142596583e81a81a866e363056d010721a (diff) | |
| download | dhcpcd-8113e962fb7819ece43a91be82397e5dcc38f45f.tar.xz | |
Allow IPv4LL to be compiled out.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -7,6 +7,7 @@ exec 3>config.log # Ensure that we do not inherit these from env HOOKSET=false INET= +IPV4LL= INET6= ARC4RANDOM= CLOSEFROM= @@ -45,6 +46,8 @@ for x do --enable-static) STATIC=yes;; --disable-ipv4) INET=no;; --enable-ipv4) INET=yes;; + --disable-ipv4ll) IPV4LL=no;; + --enable-ipv4ll) IPV4LL=yes; INET=yes;; --disable-ipv6) INET6=no;; --enable-ipv6) INET6=yes;; --disable-embedded) EMBEDDED=no;; @@ -438,7 +441,11 @@ esac if [ -z "$INET" -o "$INET" = yes ]; then echo "CPPFLAGS+= -DINET" >>$CONFIG_MK - echo "DHCPCD_SRCS+= arp.c dhcp.c ipv4.c ipv4ll.c" >>$CONFIG_MK + echo "DHCPCD_SRCS+= arp.c dhcp.c ipv4.c" >>$CONFIG_MK +fi +if [ -z "$IPV4LL" -o "$IPV4LL" = yes ]; then + echo "CPPFLAGS+= -DIPV4LL" >>$CONFIG_MK + echo "DHCPCD_SRCS+= ipv4ll.c" >>$CONFIG_MK fi if [ -z "$INET6" -o "$INET6" = yes ]; then echo "CPPFLAGS+= -DINET6" >>$CONFIG_MK |
