diff -urN abinit-5.1.3.orig/config/scripts/make-macros-extlibs abinit-5.1.3/config/scripts/make-macros-extlibs --- abinit-5.1.3.orig/config/scripts/make-macros-extlibs 2006-06-03 14:30:28.000000000 -0700 +++ abinit-5.1.3/config/scripts/make-macros-extlibs 2006-06-03 14:54:11.000000000 -0700 @@ -35,7 +35,7 @@ # EOF -while read ext_arg ext_default ext_lib ext_hdr ext_mod; do +while read ext_arg ext_default ext_lib ext_hdr ext_mod extra_libs; do ext_with="\${with_${ext_arg}_prefix}" ext_enable="\${enable_${ext_arg}}" @@ -145,7 +145,7 @@ dnl Look for library ${ext_arg}_lib="${ext_with}/lib/lib${ext_lib}.a" - ${ext_arg}_ldflags="-L${ext_with}/lib -l${ext_lib}" + ${ext_arg}_ldflags="-L${ext_with}/lib -l${ext_lib} ${extra_libs}" if test ! -s "\${${ext_arg}_lib}"; then build_${ext_arg}="yes" fi diff -urN abinit-5.1.3.orig/config/specs/extlibs.cf abinit-5.1.3/config/specs/extlibs.cf --- abinit-5.1.3.orig/config/specs/extlibs.cf 2006-06-03 14:30:28.000000000 -0700 +++ abinit-5.1.3/config/specs/extlibs.cf 2006-06-03 14:41:35.000000000 -0700 @@ -1,5 +1,5 @@ -blas required blas -lapack required lapack +blas required blas NONE NONE -lpthread +lapack required lapack NONE NONE -lpthread netcdf disabled netcdf netcdf.h netcdf.mod nqxc disabled nqxc NONE nqxc.mod xmlf90 disabled xmlf90 NONE flib_sax.mod