diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0f75e81..88613d6 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -13,6 +13,10 @@ case $host_os in | |||
13 | HOST_OS=darwin; | 13 | HOST_OS=darwin; |
14 | LDFLAGS="$LDFLAGS -Qunused-arguments" | 14 | LDFLAGS="$LDFLAGS -Qunused-arguments" |
15 | ;; | 15 | ;; |
16 | *freebsd*) | ||
17 | HOST_OS=freebsd; | ||
18 | AC_SUBST([PROG_LDADD], ['-lthr']) | ||
19 | ;; | ||
16 | *linux*) | 20 | *linux*) |
17 | HOST_OS=linux; | 21 | HOST_OS=linux; |
18 | CFLAGS="$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE" | 22 | CFLAGS="$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE" |
@@ -33,6 +37,7 @@ case $host_os in | |||
33 | esac | 37 | esac |
34 | 38 | ||
35 | AM_CONDITIONAL(HOST_DARWIN, test x$HOST_OS = xdarwin) | 39 | AM_CONDITIONAL(HOST_DARWIN, test x$HOST_OS = xdarwin) |
40 | AM_CONDITIONAL(HOST_FREEBSD, test x$HOST_OS = xfreebsd) | ||
36 | AM_CONDITIONAL(HOST_LINUX, test x$HOST_OS = xlinux) | 41 | AM_CONDITIONAL(HOST_LINUX, test x$HOST_OS = xlinux) |
37 | AM_CONDITIONAL(HOST_SOLARIS, test x$HOST_OS = xsolaris) | 42 | AM_CONDITIONAL(HOST_SOLARIS, test x$HOST_OS = xsolaris) |
38 | AM_CONDITIONAL(HOST_WIN, test x$HOST_OS = xwin) | 43 | AM_CONDITIONAL(HOST_WIN, test x$HOST_OS = xwin) |
@@ -81,7 +86,7 @@ AM_CONDITIONAL([HAVE_TIMINGSAFE_MEMCMP], [test "x$ac_cv_func_timingsafe_memcmp" | |||
81 | 86 | ||
82 | # overrides for arc4random_buf implementations with known issues | 87 | # overrides for arc4random_buf implementations with known issues |
83 | AM_CONDITIONAL([HAVE_ARC4RANDOM_BUF], | 88 | AM_CONDITIONAL([HAVE_ARC4RANDOM_BUF], |
84 | [test "x$HOST_OS" != xdarwin -a "x$NO_ARC4RANDOM_BUF" = xtrue]) | 89 | [test "x$HOST_OS" != xdarwin -a "x$HOST_OS" != xfreebsd -a "x$ac_cv_func_arc4random_buf" = xyes]) |
85 | 90 | ||
86 | AC_CACHE_CHECK([whether va_copy exists], ac_cv_have_va_copy, [ | 91 | AC_CACHE_CHECK([whether va_copy exists], ac_cv_have_va_copy, [ |
87 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ | 92 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ |