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

Re: [PATCH] Use swig binary from --with-swig configure switch

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-11-07 22:23:50 CET

On Thu, Nov 07, 2002 at 12:10:02PM -0800, Daniel Rall wrote:
>...
> Unfortunately, when $(SWIG) isn't defined (I'm assuming this happens
> when you don't pass --with-swig, I triggered it in testing by
> explicitly commenting out the SWIG= bit in the patch above), your
> getopt from setup.py seems to think that it should handle
> --bulid-base, which it doesn't define. I'm guessing that --build-base
> is handled by distutils' getopt processing.

If SWIG isn't defined, then we shouldn't try to invoke it. Since somebody
might want to do:

$ make swig-py-ext SWIG=/usr/local/bin/swig

We probably want a runtime test in the make rule. Something like:

swig-py-ext:
        if test -n "$(SWIG)"; then \
        (cd $(SWIG_SRC_DIR)/python; \
        ...
        else \
          echo "SWIG variable is not defined; this rule is unavailable." \
        fi

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 7 22:23:26 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.