From: Richard Kettlewell Date: Fri, 4 Jan 2008 21:35:53 +0000 (+0000) Subject: Recognize FreeBSD and adjust LDFLAGS/CPPFLAGS to cope with X-Git-Tag: 5.0.3~237 X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/commitdiff_plain/70f47acd6b573060c23eafe8ec290bd9b6ca2e01?hp=3effdc300f80c262546757e081448b0ba1e0cbed Recognize FreeBSD and adjust LDFLAGS/CPPFLAGS to cope with compiler/ports mismatch brain damage, Move PCRE UTF-8 test after check for pcre.h, to avoid false positives if pcre.h isn't found. --- diff --git a/configure.ac b/configure.ac index 9e353f8..c167d8d 100644 --- a/configure.ac +++ b/configure.ac @@ -82,6 +82,12 @@ case "$host" in fi browser=open ;; +*-freebsd* ) + AC_MSG_RESULT([FreeBSD]) + want_server=yes + LDFLAGS="${LDFLAGS} -L/usr/local/lib" + CPPFLAGS="${CPPFLAGS} -I/usr/local/include" + ;; * ) AC_MSG_RESULT([unknown, winging it]) want_server=no @@ -233,9 +239,6 @@ if test ! -z "$missing_libraries"; then AC_MSG_ERROR([missing libraries:$missing_libraries]) fi -# We require that libpcre support UTF-8 -RJK_REQUIRE_PCRE_UTF8([-lpcre]) - # Checks for header files. RJK_FIND_GC_H if test $want_oss = yes; then @@ -268,6 +271,9 @@ if test ! -z "$missing_headers"; then AC_MSG_ERROR([missing headers:$missing_headers]) fi +# We require that libpcre support UTF-8 +RJK_REQUIRE_PCRE_UTF8([-lpcre]) + # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T