autotools: install .pc files to the correct directory on FreeBSD

This commit is contained in:
q66 2014-08-07 22:49:09 +01:00
parent 5a4ca7008f
commit 38645b22b1
2 changed files with 12 additions and 0 deletions

View File

@ -71,7 +71,12 @@ m4/efl_doxygen.m4 \
config.rpath \
pkgbuild/PKGBUILD
if HAVE_FREEBSD
pkgconfigdir = $(libdir)data/pkgconfig
else
pkgconfigdir = $(libdir)/pkgconfig
endif
pkgconfig_DATA = elementary.pc
cmakeconfigdir = $(libdir)/cmake/Elementary

View File

@ -37,6 +37,12 @@ ELM_UNIX_DEF="#undef"
ELM_WIN32_DEF="#undef"
have_windows="no"
have_dlopen="no"
have_freebsd="no"
case "$host_os" in
freebsd*)
have_freebsd="yes"
;;
esac
case "$host_os" in
mingw*)
PKG_CHECK_MODULES([EVIL], [evil])
@ -88,6 +94,7 @@ esac
AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"])
AM_CONDITIONAL([BUILD_MODULES], [test "x$have_dlopen" = "xyes"])
AM_CONDITIONAL([HAVE_FREEBSD], [test "x${have_freebsd}" = "xyes"])
AC_SUBST([default_engine])
AC_DEFINE_UNQUOTED([DEFAULT_ENGINE], ["$default_engine"], ["Default engine according to host"])