https://bugs.gentoo.org/729734 --- a/libmaitretarot.m4 +++ b/libmaitretarot.m4 @@ -9,10 +9,10 @@ AC_DEFUN([AM_LIB_MAITRETAROT], --with-libmaitretarot path to libmaitretarot libraries, [ LIBMT_CFLAGS="-I${withval}/include" - LIBMT_LIBS="-L${withval}/lib -lmaitretarot" + LIBMT_LIBS="-L${withval}/${libdir} -lmaitretarot" ],[ - LIBMT_CFLAGS="-I/usr/local/include -I/usr/include" - LIBMT_LIBS="-L/usr/local/lib -L/usr/lib -lmaitretarot" + LIBMT_CFLAGS="-I/usr/include" + LIBMT_LIBS="-L${libdir} -lmaitretarot" ]) ac_save_CPPFLAGS="$CPPFLAGS" ac_save_CFLAGS="$CFLAGS"