configure.in.in
来自「konqueror3 embedded版本, KDE环境下的当家浏览器的嵌入式版」· IN 代码 · 共 123 行
IN
123 行
dnl --------dnl KSocketAddress/KExtendedSocket extra configurationdnl --------dnldnl This is to be merged with toplevel configure.in.in soonAC_CHECK_FUNCS(inet_ntop inet_pton getpeername getsockname getsockopt gethostbyname2_r gethostbyname_r gethostbyname2)AC_SUBST(HAVE_GETADDRINFO)AC_SUBST(GETADDRINFO_RETURNS_UNIX)AC_SUBST(HAVE_BROKEN_GETADDRINFO)AC_SUBST(HAVE_STRUCT_ADDRINFO)AC_MSG_CHECKING([for struct addrinfo])AC_TRY_COMPILE(dnl [ #include <netdb.h> ], [ struct addrinfo ai; ], [ AC_DEFINE(HAVE_STRUCT_ADDRINFO, 1, [Define if netdb.h defines struct addrinfo]) AC_MSG_RESULT(yes) ], AC_MSG_RESULT(no))my_LIBS="$LIBS"LIBS="$LIBS $LIBSOCKET"AC_CHECK_FUNC(getaddrinfo, [ AC_DEFINE(HAVE_GETADDRINFO, 1, [Define if getaddrinfo is present]) dnl Even though we now know that getaddrinfo is there, make sure getnameinfo is there too kde_gai_ok=true AC_CHECK_FUNCS(freeaddrinfo getnameinfo gai_strerror, : , [ kde_gai_ok=false AC_DEFINE(HAVE_BROKEN_GETADDRINFO, 1, [Define if getaddrinfo is broken and should be replaced]) AC_DEFINE(GETADDRINFO_RETURNS_UNIX, 1, [Define if getaddrinfo returns AF_UNIX sockets]) break ]) if $kde_gai_ok ; then AC_MSG_CHECKING([if getaddrinfo returns AF_UNIX]) dnl At least one system has a bad implementation of getaddrinfo dnl FreeBSD's libc getaddrinfo code has AF_UNIX disabled dnl This is rather stupid, but since it's there... AC_TRY_RUN(dnl [ #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> int main() { struct addrinfo hint, *res; int err; hint.ai_family = AF_UNSPEC; hint.ai_protocol = 0; hint.ai_socktype = SOCK_STREAM; hint.ai_flags = 0; err = getaddrinfo(0, "/tmp/conftest-sock", &hint, &res); if (err != 0 || res == 0 || res->ai_family != AF_UNIX) return 1; return 0; } ], [ AC_MSG_RESULT(yes) AC_DEFINE(GETADDRINFO_RETURNS_UNIX, 1, [Define if getaddrinfo returns AF_UNIX sockets]) ], [ AC_MSG_RESULT(no) ], [ case "$target" in *-*-freebsd*) AC_MSG_RESULT(assuming it doesn't) ;; *) AC_MSG_RESULT(assuming it does) AC_DEFINE(GETADDRINFO_RETURNS_UNIX, 1, [Define if getaddrinfo returns AF_UNIX sockets]) ;; esac ] ) fi # test $kde_gai_broken ], [ dnl Our getaddrinfo returns AF_UNIX sockets AC_DEFINE(GETADDRINFO_RETURNS_UNIX, 1, [Define if getaddrinfo returns AF_UNIX sockets]) ])LIBS="$kde_safe_LIBS"AC_CHECK_MEMBERS([struct sockaddr.sa_len],,,[#include <sys/socket.h>])AC_CHECK_TYPES([struct sockaddr_in6], [AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_scope_id],,,[#include <netinet/in.h>])],, [#include <sys/types.h>#include <netinet/in.h>])AC_SUBST(KDE_IPV6_LOOKUP_MODE)AC_ARG_WITH(ipv6-lookup, [ --with-ipv6-lookup=mode Set the mode for IPv6 lookups: yes, auto and no],[ AC_MSG_CHECKING([how we should treat IPv6 lookups]) if test "$withval" = yes -o "$withval" = always; then AC_DEFINE(KDE_IPV6_LOOKUP_MODE, 0, [Lookup mode for IPv6 addresses: 0 for always, 1 for check and 2 for disabled]) AC_MSG_RESULT([always do the lookup]) elif test "$withval" = auto; then AC_DEFINE(KDE_IPV6_LOOKUP_MODE, 1, [Lookup mode for IPv6 addresses: 0 for always, 1 for check and 2 for disabled]) AC_MSG_RESULT([check for IPv6 stack]) else AC_DEFINE(KDE_IPV6_LOOKUP_MODE, 2, [Lookup mode for IPv6 addresses: 0 for always, 1 for check and 2 for disabled]) AC_MSG_RESULT([never do the lookup]) fi], [ AC_DEFINE(KDE_IPV6_LOOKUP_MODE, 1, [Lookup mode for IPv6 addresses: 0 for always, 1 for check and 2 for disabled])]) AM_CONFIG_HEADER(konq-embed/kdesrc/kdecore/kdemacros.h)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?