# Default shared library extension
SHLIBEXT=".so"
+# See OpenBSD section in $host case below.
+need_pledge_inet=""
+
# Check for some target-specific stuff
case "$host" in
*-*-aix*)
[syslog_r function is safe to use in in a signal handler])
TEST_MALLOC_OPTIONS="SJRU"
AC_MSG_CHECKING([whether pledge(2) allows IP_TOS])
- need_pledge_inet=""
AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[
#include <sys/socket.h>
need_pledge_inet=1
],
[ AC_MSG_WARN([cross compiling: cannot test]) ])
- if test -z "$need_pledge_inet" ; then
- AC_DEFINE_UNQUOTED([PLEDGE_EXTRA_INET], [])
- else
- AC_DEFINE_UNQUOTED([PLEDGE_EXTRA_INET], ["inet "],
- [need inet in pledge for setsockopt IP_TOS])
- fi
;;
*-*-solaris*)
if test "x$withval" != "xno" ; then
[ AC_MSG_WARN([cross compiling: not checking compiler sanity]) ]
)
+dnl Finish up special pledge(2) handling from above.
+if test -z "$need_pledge_inet" ; then
+ AC_DEFINE_UNQUOTED([PLEDGE_EXTRA_INET], [])
+else
+ AC_DEFINE_UNQUOTED([PLEDGE_EXTRA_INET], ["inet "],
+ [need inet in pledge for setsockopt IP_TOS])
+fi
+
dnl Checks for header files.
# Checks for libraries.
AC_CHECK_FUNC([setsockopt], , [AC_CHECK_LIB([socket], [setsockopt])])