The following works: AM_PATH_GSL(0.2.5, LIBS="$LIBS -lgsl") but one needs the macro gsl.m4 and to specify the version of the library. I don't understand why I can find gslcblas and not gsl.