Building against libremix

Using GNU autoconf

If you are using GNU autoconf, you do not need to call pkg-config directly. Use the following macro to determine if libremix is available:

 PKG_CHECK_MODULES(REMIX, remix >= 0.2.0,
                   HAVE_REMIX="yes", HAVE_REMIX="no")
 if test "x$HAVE_REMIX" = "xyes" ; then
   AC_SUBST(REMIX_CFLAGS)
   AC_SUBST(REMIX_LIBS)
 fi
 

If libremix is found, HAVE_REMIX will be set to "yes", and the autoconf variables REMIX_CFLAGS and REMIX_LIBS will be set appropriately.

Determining compiler options with pkg-config

If you are not using GNU autoconf in your project, you can use the pkg-config tool directly to determine the correct compiler options.

 REMIX_CFLAGS=`pkg-config --cflags remix`
 REMIX_LIBS=`pkg-config --libs remix`