Re: Question about top-level configure code and in-tree builds

2009-04-15 Thread Ben Elliston
On Fri, 2009-04-10 at 23:56 -0400, Kaveh R. GHAZI wrote: Ah, but cake is only easy when someone else bakes it. :-) While you're baking, Kaveh :-) could you see if your patch could also fix: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34818 Thanks, Ben

Re: Question about top-level configure code and in-tree builds

2009-04-15 Thread Kaveh R. Ghazi
From: Ben Elliston b...@au1.ibm.com On Fri, 2009-04-10 at 23:56 -0400, Kaveh R. GHAZI wrote: Ah, but cake is only easy when someone else bakes it. :-) While you're baking, Kaveh :-) could you see if your patch could also fix: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34818 Thanks, Ben

Question about top-level configure code and in-tree builds

2009-04-10 Thread Kaveh R. GHAZI
I'm seeing an issue with the top level configure code. Looking at it requires juggling m4, guile, shell and make syntax in one's head, I'm having some trouble so I'm seeking some assistance. I'm running into the actual problem when I'm integrating the mpc library with GCC and testing in-tree

Re: Question about top-level configure code and in-tree builds

2009-04-10 Thread Ian Lance Taylor
Kaveh R. GHAZI gh...@caip.rutgers.edu writes: What I would like to see is that the extra_configure_flags for mpfr actually check whether gmp is being built in-tree before passing --with-gmp-build=foo to mpfr's configure. But I don't get how to do that. If the mpfr case could be fixed, I

Re: Question about top-level configure code and in-tree builds

2009-04-10 Thread Kaveh R. GHAZI
On Fri, 10 Apr 2009, Ian Lance Taylor wrote: Add a new shell variable in configure.ac extra_mpfr_configure_args. Set it to what you want to pass to the mpfr configure. Call AC_SUBST(extra_mpfr_configure_args). In Makefile.in add a line EXTRA_MPFR_CONFIGURE_ARGS =

Re: Question about top-level configure code and in-tree builds

2009-04-10 Thread Ian Lance Taylor
Kaveh R. GHAZI gh...@caip.rutgers.edu writes: On Fri, 10 Apr 2009, Ian Lance Taylor wrote: Add a new shell variable in configure.ac extra_mpfr_configure_args. Set it to what you want to pass to the mpfr configure. Call AC_SUBST(extra_mpfr_configure_args). In Makefile.in add a line