restore CFLAGS if v6 is not detected
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9770 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -8,6 +8,7 @@ AC_ARG_WITH(ipv6,
|
|||||||
if test "$withval" = "no"; then
|
if test "$withval" = "no"; then
|
||||||
ac_cv_lib_ipv6=no
|
ac_cv_lib_ipv6=no
|
||||||
fi])
|
fi])
|
||||||
|
save_CFLAGS="${CFLAGS}"
|
||||||
AC_CACHE_VAL(ac_cv_lib_ipv6,
|
AC_CACHE_VAL(ac_cv_lib_ipv6,
|
||||||
[dnl check for different v6 implementations (by itojun)
|
[dnl check for different v6 implementations (by itojun)
|
||||||
v6type=unknown
|
v6type=unknown
|
||||||
@@ -118,5 +119,7 @@ AC_MSG_CHECKING(for IPv6)
|
|||||||
AC_MSG_RESULT($ac_cv_lib_ipv6)
|
AC_MSG_RESULT($ac_cv_lib_ipv6)
|
||||||
if test "$ac_cv_lib_ipv6" = yes; then
|
if test "$ac_cv_lib_ipv6" = yes; then
|
||||||
AC_DEFINE(HAVE_IPV6, 1, [Define if you have IPv6.])
|
AC_DEFINE(HAVE_IPV6, 1, [Define if you have IPv6.])
|
||||||
|
else
|
||||||
|
CFLAGS="${save_CFLAGS}"
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
Reference in New Issue
Block a user