diff options
-rw-r--r-- | configure.in | 17 | ||||
-rw-r--r-- | weechat/configure.in | 17 |
2 files changed, 18 insertions, 16 deletions
diff --git a/configure.in b/configure.in index 229fa3b69..fa69bdfd5 100644 --- a/configure.in +++ b/configure.in @@ -359,19 +359,20 @@ if test "x$debug" = "x2" ; then AC_DEFINE(DEBUG) fi +LIBS="$LIBS $INTLLIBS" + case "$host_os" in freebsd*) - if test "x$enable_perl" = "xyes" -o "x$enable_python" = "xyes" ; then + if test "x$enable_perl" = "xyes" -o "x$enable_python" = "xyes" ; then CFLAGS="$CFLAGS -pthread" - fi - LIBS="$LIBS $INTLLIBS" - CFLAGS="$CFLAGS $CPPFLAGS" + fi + CFLAGS="$CFLAGS $CPPFLAGS" ;; openbsd*) - if test "x$enable_python" = "xyes" ; then - CFLAGS="$CFLAGS -pthread" - fi - ;; + if test "x$enable_python" = "xyes" ; then + CFLAGS="$CFLAGS -pthread" + fi + ;; *) ;; esac diff --git a/weechat/configure.in b/weechat/configure.in index 229fa3b69..fa69bdfd5 100644 --- a/weechat/configure.in +++ b/weechat/configure.in @@ -359,19 +359,20 @@ if test "x$debug" = "x2" ; then AC_DEFINE(DEBUG) fi +LIBS="$LIBS $INTLLIBS" + case "$host_os" in freebsd*) - if test "x$enable_perl" = "xyes" -o "x$enable_python" = "xyes" ; then + if test "x$enable_perl" = "xyes" -o "x$enable_python" = "xyes" ; then CFLAGS="$CFLAGS -pthread" - fi - LIBS="$LIBS $INTLLIBS" - CFLAGS="$CFLAGS $CPPFLAGS" + fi + CFLAGS="$CFLAGS $CPPFLAGS" ;; openbsd*) - if test "x$enable_python" = "xyes" ; then - CFLAGS="$CFLAGS -pthread" - fi - ;; + if test "x$enable_python" = "xyes" ; then + CFLAGS="$CFLAGS -pthread" + fi + ;; *) ;; esac |