diff options
author | onestone <onestone> | 2007-02-01 15:54:01 +0000 |
---|---|---|
committer | onestone <onestone> | 2007-02-01 15:54:01 +0000 |
commit | 715979874ef6ba54f3d6698f1829be264aa6f6e6 (patch) | |
tree | 55b775ee9a846332ffeedbed3a20413f3c00323d | |
parent | 42aef7ff3f01c749776445b3e89ddc43e70e084a (diff) | |
download | aquamarine-715979874ef6ba54f3d6698f1829be264aa6f6e6.tar.gz aquamarine-715979874ef6ba54f3d6698f1829be264aa6f6e6.tar.bz2 |
aquamarine: get beryl libdir from pkg-config to install backend to the right place
-rw-r--r-- | configure.in.in | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.in.in b/configure.in.in index de9f4ed..668e535 100644 --- a/configure.in.in +++ b/configure.in.in @@ -24,7 +24,16 @@ if test "$berylsettings" = "yes"; then if test "$berylsettings_found" = "yes"; then AC_DEFINE(HAVE_BERYL_SETTINGS,1,[check for berylsettings]) - plugindir=$prefix/lib/beryl + if test -z "$PKG_CONFIG"; then + AC_PATH_PROG(PKG_CONFIG, pkg-config, no) + fi + + if test "$PKG_CONFIG" = "no" ; then + plugindir=$prefix/lib/beryl + else + bs_libdir=`$PKG_CONFIG --variable=libdir berylsettings` + plugindir=$bs_libdir/beryl + fi AC_SUBST(plugindir) fi |