[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Behave correctly when users specify SWIG binary instead of SWIG directory as configure option

From: David James <staple_at_gmail.com>
Date: 2004-08-26 21:42:50 CEST

Occasionally, users will forget to read instructions. When they do,
it's helpful for us to be as forgiving as we can.

In our configure documentation, we ask users to specify
--with-swig=PATH. Currently, when users specify the path to "swig" as
the path to the SWIG binary, the build fails with an error message
that is difficult to understand. This patch makes SWIG build correctly
in that situation, and it therefore will make the Subversion build
process just a little bit more user-friendly.

===================================================================
--- build/ac-macros/swig.m4 (revision 10736)
+++ build/ac-macros/swig.m4 (working copy)
@@ -75,6 +75,7 @@
     AC_PATH_PROG(SWIG, swig, none)
   else
     SWIG=$where/bin/swig
+ test -x $SWIG || SWIG=$where
   fi

   if test "$SWIG" != "none"; then

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 27 05:50:38 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.