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