diff options
| author | Vincent Richard <[email protected]> | 2005-12-26 19:20:47 +0100 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2005-12-26 19:20:47 +0100 |
| commit | 69e0083549f8dcc986f31d83541bd214c1c22f08 (patch) | |
| tree | 112bfc048edb07f88bbfa093bc5969cd798cdd90 /SConstruct | |
| parent | Fixed typo causing infinite loop. (diff) | |
| download | vmime-69e0083549f8dcc986f31d83541bd214c1c22f08.tar.gz vmime-69e0083549f8dcc986f31d83541bd214c1c22f08.zip | |
Added support for getaddrinfo() on POSIX.
Diffstat (limited to 'SConstruct')
| -rw-r--r-- | SConstruct | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -827,6 +827,10 @@ if IsProtocolSupported(messaging_protocols, 'sendmail'): config_hpp.write(""" +// Additional defines +#define VMIME_HAVE_GETADDRINFO 1 + + #endif // VMIME_CONFIG_HPP_INCLUDED """) @@ -1661,10 +1665,17 @@ AC_PATH_PROG(SENDMAIL, sendmail, /usr/sbin/sendmail, /usr/sbin:/usr/lib) # Detect some platform-specific stuff # +# -- MLang (Windows) if test "x$VMIME_DETECT_PLATFORM" = "xwindows"; then AC_CHECK_HEADER(mlang.h, [VMIME_ADDITIONAL_DEFINES="$VMIME_ADDITIONAL_DEFINES HAVE_MLANG_H"]) fi +# -- getaddrinfo (POSIX) +if test "x$VMIME_DETECT_PLATFORM" = "xposix"; then + AC_CHECK_HEADERS(netdb.h sys/types.h sys/socket.h,) + AC_CHECK_FUNC(getaddrinfo, [VMIME_ADDITIONAL_DEFINES="$VMIME_ADDITIONAL_DEFINES HAVE_GETADDRINFO"]) +fi + """) |
