fi
browser=open
;;
+*-freebsd* )
+ AC_MSG_RESULT([FreeBSD])
+ want_server=yes
+ # Ports install to /usr/local but the compiler stupidly doesn't look
+ # there by default
+ LDFLAGS="${LDFLAGS} -L/usr/local/lib"
+ CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
+ # libdb installs elsewhere again
+ LDFLAGS="${LDFLAGS} -L/usr/local/lib/db44"
+ CPPFLAGS="${CPPFLAGS} -I/usr/local/include/db44"
+ ;;
* )
AC_MSG_RESULT([unknown, winging it])
want_server=no
AC_PROG_LIBTOOL
+AC_CACHE_CHECK([for GNU sed],[rjk_cv_gnused],[
+ rjk_cv_gnused="not found"
+ for candidate in sed gsed; do
+ if $candidate --version >/dev/null 2>&1; then
+ rjk_cv_gnused=$candidate
+ fi
+ done
+])
+GNUSED="${GNUSED:-$rjk_cv_gnused}"
+if test "$GNUSED" = "not found"; then
+ AC_MSG_ERROR([GNU sed is required to build this program])
+fi
+AC_SUBST([GNUSED])
+
missing_libraries=""
missing_headers=""
missing_functions=""
[AC_SUBST(LIBFLAC,[-lFLAC])],
[missing_libraries="$missing_libraries libFLAC"])
fi
+AC_CHECK_LIB([pthread], [pthread_create],
+ [AC_SUBST(LIBPTHREAD,[-lpthread])],
+ [missing_libraries="$missing_libraries libpthread"])
if test $want_gtk = yes; then
AM_PATH_GLIB_2_0([],[],[missing_libraries="$missing_libraries libglib"])
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
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