aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/if_gre/Makefile
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2014-11-08 14:41:32 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2014-11-08 14:41:32 +0000
commit4dbd7c5dc4084ba195ed0ca6686ededfa5ce8999 (patch)
treef8715417a761ba48befc904b137cbca0541f689f /sys/modules/if_gre/Makefile
parent13235011d5592f7695e823a806870647be116add (diff)
Notes
Diffstat (limited to 'sys/modules/if_gre/Makefile')
-rw-r--r--sys/modules/if_gre/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/modules/if_gre/Makefile b/sys/modules/if_gre/Makefile
index db8f9f197a89..54ef274419a1 100644
--- a/sys/modules/if_gre/Makefile
+++ b/sys/modules/if_gre/Makefile
@@ -6,10 +6,24 @@
KMOD= if_gre
SRCS= if_gre.c opt_inet.h opt_inet6.h
+.if defined(KERNBUILDDIR)
+OPT_INET!= cat ${KERNBUILDDIR}/opt_inet.h; echo
+.if empty(OPT_INET)
+MK_INET_SUPPORT=no
+.endif
+.endif
+
.if ${MK_INET_SUPPORT} != "no"
SRCS+= ip_gre.c
.endif
+.if defined(KERNBUILDDIR)
+OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h; echo
+.if empty(OPT_INET6)
+MK_INET6_SUPPORT=no
+.endif
+.endif
+
.if ${MK_INET6_SUPPORT} != "no"
SRCS+= ip6_gre.c
.endif