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

Re: [PATCH] --disable-swig argument for configure

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2002-09-08 03:54:11 CEST

On Saturday, September 7, 2002, at 09:18 PM, Greg Stein wrote:

> On Sat, Sep 07, 2002 at 07:53:00PM -0400, Garrett Rooney wrote:
>> ...
>> +AC_ARG_WITH(swig,
>> + [AC_HELP_STRING([--with-swig],
>> + [Try to find a suitable SWIG and build
>> the
>> SWIG
>
> Yup. Your mailer killed the patch. Nice wrap there :-)
>
> (while you'll be able to commit directly, it does make it hard for
> "us" to
> try out the patch... no matter; I'll just review/comment...)

sorry about that, thanks for the review...

>> + bindings with it.])],
>> +[
>> + if test "$withval" = "no" ; then
>> + SWIG_SUITABLE=no
>> + else
>> + AC_PATH_PROG(SWIG, swig, none)
>> + SVN_CHECK_SWIG
>> fi
>> -fi
>> -AC_SUBST(SWIG_BUILD_RULES)
>> -AC_SUBST(SWIG_INSTALL_RULES)
>> -AC_SUBST(SWIG_PY_INCLUDES)
>> +],
>> +[
>> + AC_PATH_PROG(SWIG, swig, none)
>> + SVN_CHECK_SWIG
>> +])
>
> It seems that SVN_CHECK_SWIG should take an optional directory. The
> AC_PATH_PROG would move inside SVN_CHECK_SWIG (note that the two are
> always
> paired in your code above).
>
> $withval will be "no" if somebody says --with-swig=no or
> --without-swig.
> $withval will be "yes" if they say --with-swig. $withval will contain
> VALUE
> if they say --with-swig=VALUE.
>
> The test conditions should consider the "yes" vs VALUE cases.

yeah, this occured to me when i was writing it, and wouldn't be too
hard to add. i should be able to add support for that sometime
tomorrow.

>> +++ ac-helpers/swig.m4 Sat Sep 7 19:30:16 2002
>> @@ -0,0 +1,36 @@
>> +dnl check to see if SWIG is current enough.
>> +dnl
>> +dnl if it is, then check to see if we have the correct version of
>> pyton.
>
> s/pyton/python/

oops.

>> ...
>
>
> In general, the patch is fine, but (if checked in now) could use a
> couple
> small iterations.

i'll make the changes people have requested and commit the patch either
later tonight or sometime tomorrow.

thanks for the extra sets of eyes everyone...

-garrett

-- 
garrett rooney                    Remember, any design flaw you're
rooneg@electricjellyfish.net      sufficiently snide about becomes
http://electricjellyfish.net/     a feature.       -- Dan Sugalski
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Sep 8 03:54:48 2002

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.