This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Conpigure support for GMP


On Thu, Jul 31, 2003 at 09:10:41PM +0100, Paul Brook wrote:
> The attached patch adds configure support for the GMP library, as required 
> by g95.
> 
> It's cobbled togeter from varioous bits i found lying about, but it seems to 
> work. Anyone care to test or pass judgement?

Some tweaks needed for portability and safety:


> +  if test "x$with_gmp_dir" != x -a -d "$with_gmp_dir"; then

This needs to be

    if test "x$with_gmp_dir" != x && test -d "$with_gmp_dir"; then

i.e., don't use -a and -o.


> +  if test "x$with_gmp" != x -a -d "$with_gmp"; then

Same here.


> +AC_SUBST(gmplibs)
> +AC_SUBST(gmpinc)

These should be set to something (presumably empty) outside the if branch.


> +++ gcc/gcc/fortran/config-lang.in	2003-07-30 22:22:43.000000000 +0100
>  
> +need_gmp="yes"
> +

I could have sworn that the config-lang.in files didn't work like that,
but I'm not an authoritative voice.


I'm assuming that you're using autoconf 2.13 to do the regeneration?

Phil


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]