diff --git a/Makefile.am b/Makefile.am index d4b9e9a..dc70382 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,9 +20,13 @@ SUBDIRS = lib pysearpc ${MAKE_DEMO} tests install-data-local: if MACOS - sed -i '' -e "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles) + sed -i '' -e "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles) else - ${SED} -i "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles) +if FBSD + sed -i '' -e "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles) +else + ${SED} -i "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles) +endif endif dist-hook: diff --git a/configure.ac b/configure.ac index 86fd256..53d7438 100644 --- a/configure.ac +++ b/configure.ac @@ -69,6 +69,20 @@ fi AM_CONDITIONAL([MACOS], [test "$bmac" = "yes"]) AC_SUBST(MACOS) +AC_MSG_CHECKING(for FreeBSD) + +if test "$(uname -s)" = "FreeBSD"; then + bfbsd=yes +fi + +if test x$bfbsd = "xyes"; then + server_pkg=no + AC_MSG_RESULT(compile in FreeBSD) +fi + +AM_CONDITIONAL([FBSD], [test "$bfbsd" = "yes"]) +AC_SUBST(FBSD) + # Checks for libraries. GLIB_REQUIRED=2.26.0