I have been trying to install gretl 1.6.0 on a PC with an AMD64 processor running Mandriva 2007.  In my most recent attempt I downloaded and unpacked gretl-1.6.0.tar.bz2.  When I ran ./configure it failed because it couldn't find lapack.  Here are the relevant lines from config.log:
  configure:24845: checking for LAPACK
  configure:24884: gcc -o conftest -I./lib/src -g -O2   conftest.c -L/usr/lib -llapack -lblas    -lgfortran -lc -lc -lm  >&5
 /usr/bin/ld: skipping incompatible /usr/lib/liblapack.so when searching for -llapack
 /usr/bin/ld: skipping incompatible /usr/lib/liblapack.a when searching for -llapack
 /usr/bin/ld: skipping incompatible /usr/lib/liblapack.so when searching for -llapack
 /usr/bin/ld: skipping incompatible /usr/lib/liblapack.a when searching for -llapack
 /usr/bin/ld: cannot find -llapack
 collect2: ld returned 1 exit status
 configure:24887: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */

The relevant files in /usr/lib are: liblapack.a; liblapack.so; liblapack.so.3.0.

I would appreciate any advice people could give.

Robin Carter