* two Mac guile patches
@ 2009-10-29 17:51 Ken Raeburn
2009-10-30 21:15 ` Neil Jerram
2009-10-31 14:50 ` Ludovic Courtès
0 siblings, 2 replies; 3+ messages in thread
From: Ken Raeburn @ 2009-10-29 17:51 UTC (permalink / raw)
To: guile-devel
Two patches here, both relating to the fact that the GNU "libtool"
package is installed as "glibtool" (both in the main OS and in
macports; haven't checked fink), and "/usr/bin/libtool" is a different
tool, from Apple.
The autogen script wants to display a version number from libtool
before it'll run autoreconf, and will error out if it can't do so.
The gdb-uninstalled-guile script assumes it can find a working
"libtool" via $PATH, and there's a "libtool" at the top of the build
tree which is presumably the one we actually want, but uninstalled-env
doesn't add ${top_builddir} to $PATH. Since the libtool script is the
only thing there we'd want to find that way, I changed gdb-uninstalled-
guile rather than uninstalled-env.
Fix autogen.sh for Mac OS X.
* autogen.sh: If uname indicates that the OS is Darwin, run
"glibtool"
instead of "libtool" for the version number check.
diff --git a/autogen.sh b/autogen.sh
index 8062d7e..78b6802 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -15,7 +15,11 @@ autoconf --version
echo ""
automake --version
echo ""
-libtool --version
+if test "`uname -s`" = Darwin; then
+ glibtool --version
+else
+ libtool --version
+fi
echo ""
${M4:-/usr/bin/m4} --version
echo ""
* meta/gdb-uninstalled-guile.in: Specify a path to libtool.
diff --git a/meta/gdb-uninstalled-guile.in b/meta/gdb-uninstalled-
guile.in
index 21a9e86..389bcc9 100644
--- a/meta/gdb-uninstalled-guile.in
+++ b/meta/gdb-uninstalled-guile.in
@@ -36,7 +36,7 @@ set -e
top_builddir="@top_builddir_absolute@"
XDG_CACHE_HOME=${top_builddir}/cache
export XDG_CACHE_HOME
-exec ${top_builddir}/meta/uninstalled-env libtool --mode=execute \
+exec ${top_builddir}/meta/uninstalled-env ${top_builddir}/libtool --
mode=execute \
gdb --args ${top_builddir}/libguile/guile "$@"
# And for GDB in Emacs, evaluate this form:
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-31 14:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-29 17:51 two Mac guile patches Ken Raeburn
2009-10-30 21:15 ` Neil Jerram
2009-10-31 14:50 ` Ludovic Courtès
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).