Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
b9cd3616
Commit
b9cd3616
authored
Aug 28, 2002
by
Kurt Zeilenga
Browse files
Add check for sockaddr_storage before enabling IPv6
parent
bfa89d6e
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
configure
View file @
b9cd3616
This diff is collapsed.
Click to expand it.
configure.in
View file @
b9cd3616
...
...
@@ -1020,10 +1020,25 @@ elif test $ol_enable_ipv6 != no ; then
# endif
], [ol_cv_inet6_addrstrlen=yes], [ol_cv_inet6_addrstrlen=no])])
if test $ol_cv_inet6_addrstrlen = yes ; then
AC_CACHE_CHECK([struct sockaddr_storage],ol_cv_struct_sockaddr_storage,[
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
],[
struct sockaddr_storage ss;
], [ol_cv_struct_sockaddr_storage=yes],
[ol_cv_struct_sockaddr_storage=no])])
if test $ol_cv_inet6_addrstrlen = yes \
-a $ol_cv_struct_sockaddr_storage = yes ; then
ol_link_ipv6=yes
elif test $ol_enable_ipv6 = yes ; then
elif test $ol_enable_ipv6 = yes \
-a $ol_cv_inet6_addrstrlen = no ; then
AC_MSG_ERROR([IPv6 support requires INET6_ADDRSTRLEN])
elif test $ol_enable_ipv6 = yes \
-a $ol_cv_struct_sockaddr_storage = no ; then
AC_MSG_ERROR([IPv6 support requires struct sockaddr_storage])
fi
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment