diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-09-28 21:56:36 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-09-28 21:56:36 +0200 |
commit | 4da30b1131a569109940d64d8f0e51152b17dc75 (patch) | |
tree | 9f74a16aa4ab871ae1e851ebb94c145d1bffc818 /configure.ac | |
parent | ee92a56a930bb4e3398723055ac67803b8eb62da (diff) | |
download | osc-graphics-4da30b1131a569109940d64d8f0e51152b17dc75.tar.gz |
ensure that chuck wrapper's lib.ck contains the installation path
a custom Makefile rule must be used since the *dir output variables are not fully expanded
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index d12f2b8..dc05739 100644 --- a/configure.ac +++ b/configure.ac @@ -15,7 +15,10 @@ AC_CONFIG_HEADERS([config.h]) AC_CANONICAL_BUILD AC_CANONICAL_HOST -chuckdir=$datarootdir/$PACKAGE_TARNAME/chuck +pkgdatadir=$datadir/$PACKAGE_TARNAME +AC_SUBST(pkgdatadir) + +chuckdir=$pkgdatadir/chuck AC_SUBST(chuckdir) # Checks for programs. @@ -23,6 +26,7 @@ AC_PROG_CXX AC_PROG_CC AC_PROG_INSTALL AC_PROG_LIBTOOL +AC_PROG_SED # Checks for libraries. AC_CHECK_PROG(SDL_CONFIG, sdl-config, sdl-config) @@ -87,5 +91,4 @@ AC_CHECK_FUNCS([atexit strdup]) CXXFLAGS="$CXXFLAGS $CFLAGS" AC_CONFIG_FILES([Makefile src/Makefile chuck/Makefile]) -AC_CONFIG_FILES([chuck/lib.ck]) AC_OUTPUT |