When building gtk-sharp and gnome-sharp outside source tree:

,-----
| $ /home/thep/vcs/gnome_svn/gtk-sharp/bootstrap-2.14 --prefix
/opt/gnome2 --libdir '${exec_prefix}/lib64'  --disable-static
--disable-gtk-doc
| /home/thep/vcs/gnome_svn/gtk-sharp/bootstrap-2.14: line 13:
./bootstrap-generic: No such file or directory
`-----

It should be nice to allow off-tree builds. And the attached
patches were what I did to make it.

Note that I'm not in the list. So, please Cc: me on any reply.

Regards,
-- 
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/
Index: bootstrap-generic
===================================================================
--- bootstrap-generic	(revision 125053)
+++ bootstrap-generic	(working copy)
@@ -96,6 +96,9 @@
 esac
 
 
+topdir=`pwd`
+cd $srcdir
+
 if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
   if test -z "$NO_LIBTOOLIZE" ; then 
     echo "Running libtoolize..."
@@ -125,7 +128,9 @@
 echo "Running autoconf ..."
 autoconf || { echo "**Error**: autoconf failed."; exit 1; }
 
+cd $topdir
 
+
 conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
 
 if test x$NOCONFIGURE = x; then
Index: bootstrap-2.14
===================================================================
--- bootstrap-2.14	(revision 125053)
+++ bootstrap-2.14	(working copy)
@@ -10,4 +10,7 @@
 VERSIONCFLAGS="-DGTK_SHARP_2_6 -DGTK_SHARP_2_8 -DGTK_SHARP_2_10 -DGTK_SHARP_2_12 -DGTK_SHARP_2_14"
 GTK_API_TAG=2.14
 
-. ./bootstrap-generic "$@"
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+. $srcdir/bootstrap-generic "$@"
Index: bootstrap-generic
===================================================================
--- bootstrap-generic	(revision 125053)
+++ bootstrap-generic	(working copy)
@@ -93,6 +93,9 @@
 esac
 
 
+topdir=`pwd`
+cd $srcdir
+
 if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
   if test -z "$NO_LIBTOOLIZE" ; then 
     echo "Running libtoolize..."
@@ -122,7 +125,9 @@
 echo "Running autoconf ..."
 autoconf || { echo "**Error**: autoconf failed."; exit 1; }
 
+cd $topdir
 
+
 conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
 
 if test x$NOCONFIGURE = x; then
Index: bootstrap-2.24
===================================================================
--- bootstrap-2.24	(revision 125053)
+++ bootstrap-2.24	(working copy)
@@ -12,4 +12,7 @@
 VERSIONCFLAGS="-DGTK_SHARP_2_6 -DGTK_SHARP_2_8 -DGNOME_SHARP_2_16 -DGNOME_SHARP_2_20 -DGNOME_SHARP_2_24"
 GNOME_API_TAG=2.20
 
-. ./bootstrap-generic "$@"
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+. $srcdir/bootstrap-generic "$@"
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to