This fixes the failure to find native modules when installing to unexpected
prefixes.
libseed/Makefile
po/Makefile.in
src/Makefile
-extensions/Seed.js
extensions/Makefile
tests/Makefile
tests/javascript/Makefile
repldir=$(datadir)/seed
repl_DATA = repl.js
+
+Seed.js: Seed.js.in
+ $(AM_V_GEN) $(SED) -e "s|%pkglibdir%|$(pkglibdir)|" -e "s|%pkgdatadir%|$(pkgdatadir)|" $< > $@
\ No newline at end of file
if(!imports.searchPath || (imports.searchPath.length == 0))
{
imports.searchPath = [ "@GNOME_JS_DIR@",
- "@libdir@/seed",
- "@prefix@/share/seed",
+ "%pkglibdir%",
+ "%pkgdatadir%",
"/usr/local/lib/seed",
"/usr/local/share/seed",
"/usr/lib/seed",