summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@beryl-project.org>2007-04-02 18:21:35 +0200
committerDennis kasprzyk <onestone@beryl-project.org>2007-04-02 18:21:35 +0200
commitf82d6bb002918c3033d2e719383c1aba9aad633b (patch)
treea12f85e64999dfaeb95493cc18ef52e1688e035a /configure.ac
parent5a236dc7cf528818738d97fd6e98fde605730bea (diff)
downloadberyl-premerge-f82d6bb002918c3033d2e719383c1aba9aad633b.tar.gz
beryl-premerge-f82d6bb002918c3033d2e719383c1aba9aad633b.tar.bz2
fixed build a little
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 34948c9..1d15505 100644
--- a/configure.ac
+++ b/configure.ac
@@ -92,7 +92,16 @@ AC_SUBST(PKG_CONFIG_PATH)
AC_MSG_NOTICE([Using PKG_CONFIG_PATH=$PKG_CONFIG_PATH])
PKG_CHECK_MODULES(COMPIZ, compiz)
-PKG_CHECK_MODULES(BCOP, bcop)
+PKG_CHECK_MODULES(BCOP, bcop, [bcop_found=yes], [bcop_found=no])
+if test "$bcop_found" = yes; then
+ if test -z "$PKG_CONFIG"; then
+ AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+ fi
+ if test "$PKG_CONFIG" != "no" ; then
+ BCOP_BIN=`$PKG_CONFIG --variable=bin bcop`
+ AC_SUBST(BCOP_BIN)
+ fi
+fi
AC_MSG_CHECKING(for GL_CFLAGS)
AC_ARG_WITH(gl-cflags, [ --with-gl-cflags=CFLAGS ],