mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
distcheck fixen
* examples/Makefile.am: Fix the installed guile-config invocation to set PKG_CONFIG_PATH. * meta/Makefile.am (EXTRA_DIST): Dist the bin_SCRIPTS. * meta/guile-config (pkg-config): Better error messages if pkg-config invocation fails. * meta/uninstalled-env.in (PATH): Now that guile-config and guile-tools are not generated, make it the srcdir/meta instead of the builddir. (Guile itself will be picked up from libguile.)
This commit is contained in:
parent
71d903c881
commit
d4876cb413
4 changed files with 10 additions and 5 deletions
|
@ -38,8 +38,8 @@ EXTRA_DIST = README ChangeLog-2008 check.test \
|
|||
\
|
||||
safe/README safe/safe safe/untrusted.scm safe/evil.scm
|
||||
|
||||
AM_CFLAGS = `$(bindir)/guile-config compile`
|
||||
AM_LIBS = `$(bindir)/guile-config link`
|
||||
AM_CFLAGS = `PKG_CONFIG_PATH=$(libdir)/pkgconfig $(bindir)/guile-config compile`
|
||||
AM_LIBS = `PKG_CONFIG_PATH=$(libdir)/pkgconfig $(bindir)/guile-config link`
|
||||
|
||||
|
||||
box/box: box/box.o
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
## Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
bin_SCRIPTS=guile-config guile-tools
|
||||
EXTRA_DIST=guile.m4 ChangeLog-2008 \
|
||||
EXTRA_DIST= $(bin_SCRIPTS) \
|
||||
guile.m4 ChangeLog-2008 \
|
||||
guile-1.8.pc.in guile-1.8-uninstalled.pc.in
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
|
|
|
@ -79,7 +79,11 @@ exec guile -e main -s $0 "$@"
|
|||
(ret (close-pipe pipe)))
|
||||
(case (status:exit-val ret)
|
||||
((0) (if (eof-object? output) "" output))
|
||||
(else (error "error calling pkg-config: ~A" output)))))
|
||||
(else (display-line-error
|
||||
(format #f "error: ~s exited with non-zero error code ~A"
|
||||
(cons "pkg-config" args) (status:exit-val ret)))
|
||||
;; assume pkg-config sent diagnostics to stdout
|
||||
(exit (status:exit-val ret))))))
|
||||
|
||||
(define (show-version args)
|
||||
(format (current-error-port) "~A - Guile version ~A"
|
||||
|
|
|
@ -93,7 +93,7 @@ export PKG_CONFIG_PATH
|
|||
|
||||
# handle PATH (no clobber)
|
||||
PATH="${top_builddir}/libguile:${PATH}"
|
||||
PATH="${top_builddir}/meta:${PATH}"
|
||||
PATH="${top_srcdir}/meta:${PATH}"
|
||||
export PATH
|
||||
|
||||
exec "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue