Alain SMEJKAL on Wed, 24 Jan 2007 21:10:32 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: GMP build on OSX


----- Original Message ----- 
From: "Phil Carmody" <thefatphil@yahoo.co.uk>
To: <pari-dev@list.cr.yp.to>
Sent: Wednesday, January 24, 2007 5:22 PM
Subject: GMP build on OSX

> Can someone please either give me hints how to fix the problem, or arrange
to
> ship me a prebuilt G5 binary.
>

I cannot help on OSX, but why not try to skip Gmp version test in
config/get_gmp.
Of course, compilation or link could fail later...

if test -n "$gmp"; then
  GMPINCLUDE="-I$gmp_include"
  GMPLIBS="-L$gmp -lgmp"
  LIBS="$LIBS $GMPLIBS"
gmp_version="4.2.1"
#  exe=$osname-$arch-rlv$$
#
#  $CC $extraflag $GMPINCLUDE -o $exe gmp_version.c $GMPLIBS 2> /dev/null
#  if test -r $exe; then
#    gmp_version=`env LD_LIBRARY_PATH="$LD_LIBRARY_PATH$dir_sep$gmp" $exe`;
#  else
#    echo "### Your version of GMP is too old for PARI. Please upgrade"
#    gmp=
#  fi
#
#  rm -f $exe $exe$exe_suff
fi

Before that I would look closer at build and run of gmp_version.c line

Regards,

Alain.