Re: Using config binaries to find libraries and include dirs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paulo J. Matos wrote:
> Hi all,
> 
> Some libraries include a xxx-config which accepts --libs or --includes
> and report the flags and the include dirs the compiler should use. How
> can one use this information in the context of autotools?
Usually something as:
AC_PATH_PROG(FOO_CONFIG, foo-config)
if test -n "$FOO_CONFIG"; then
    AC_DEFINE(HAVE_FOO)
    FOO_LIBS=`$FOO_CONFIG --libs`
    FOO_CFLAGS=`$FOO_CONFIG --cflags`	
fi

> Is there a
> way to tell autoconf which config-binary to use to a given lib?
You mean encapsulating the previous logic ? You may define it as a m4
macro, as some libs already do for instance.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux