diff --git a/configure.in b/configure.in index 4efa667b..28a66023 100644 --- a/configure.in +++ b/configure.in @@ -37,12 +37,15 @@ case $host in *solaris*) AM_CONDITIONAL(COND_NEED_STRCASESTR,true) AM_CONDITIONAL(COND_NEED_STRSEP,true) - CPPFLAGS="$CPPFLAGS -DHAVE_SOCKLEN_T" + CPPFLAGS="$CPPFLAGS -DNOT_HAVE_SA_LEN -D_XPG4_2 " + CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__ -DHAVE_BROKEN_RECVIF_NAME" LDFLAGS="$LDFLAGS -lnsl -lsocket";; *linux*) - CPPFLAGS="$CPPFLAGS -DHAVE_SOCKLEN_T";; + CPPFLAGS="$CPPFLAGS -DNOT_HAVE_SA_LEN";; +*openbsd*) + CPPFLAGS="$CPPFLAGS -DHAVE_BROKEN_RECVDSTADDR";; *darwin*) - CPPFLAGS="$CPPFLAGS -no-cpp-precomp -DHAVE_SOCKADDR_SA_LEN -DHAVE_SOCKLEN_T -DMAC" + CPPFLAGS="$CPPFLAGS -no-cpp-precomp -DMAC" LDFLAGS="$LDFLAGS -framework CoreFoundation" AM_CONDITIONAL(COND_REND_OSX,true)