diff options
Diffstat (limited to 'config.tests/unix/ipv6/ConfigureChecks.cmake')
-rw-r--r-- | config.tests/unix/ipv6/ConfigureChecks.cmake | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/config.tests/unix/ipv6/ConfigureChecks.cmake b/config.tests/unix/ipv6/ConfigureChecks.cmake new file mode 100644 index 000000000..ca0bbddf0 --- /dev/null +++ b/config.tests/unix/ipv6/ConfigureChecks.cmake @@ -0,0 +1,33 @@ +########################################### +# # +# Improvements and feedback are welcome # +# # +# This file is released under GPL >= 3 # +# # +########################################### + + +##### check for IPv6 support + +if( NOT WITH_IPV6) + set( TQT_NO_IPV6 1 ) + else() + check_cxx_source_compiles(" + #include <sys/types.h> + #include <sys/socket.h> + #include <netinet/in.h> + + int main() + { + sockaddr_in6 tmp; + sockaddr_storage tmp2; + (void)tmp; + (void)tmp2; + return 0; + }" + IPV6_SUPPORT) + + if( NOT IPV6_SUPPORT ) + set( NO_IPV6 TQT_NO_IPV6 ) + endif() +endif( NOT WITH_IPV6 ) |