\doxysection{Building against liboggz}
\label{group__building}\index{Building against liboggz@{Building against liboggz}}
\doxysubsection{Using GNU autoconf}\label{group__building_autoconf}
If you are using GNU autoconf, you do not need to call pkg-\/config directly. Use the following macro to determine if liboggz is available\+:


\begin{DoxyPre}
PKG\_CHECK\_MODULES(\doxyref{OGGZ}{p.}{oggz_8h_a672d218df13da45a4b41d5366211bfee}, oggz >= 0.6.0,
                  HAVE\_OGGZ="{}yes"{}, HAVE\_OGGZ="{}no"{})
if test "{}x\$HAVE\_OGGZ"{} = "{}xyes"{} ; then
  AC\_SUBST(OGGZ\_CFLAGS)
  AC\_SUBST(OGGZ\_LIBS)
fi
\end{DoxyPre}


If liboggz is found, HAVE\+\_\+\+OGGZ will be set to "{}yes"{}, and the autoconf variables OGGZ\+\_\+\+CFLAGS and OGGZ\+\_\+\+LIBS will be set appropriately.\doxysubsection{Determining compiler options with pkg-\/config}\label{group__building_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.


\begin{DoxyPre}
OGGZ\_CFLAGS=`pkg-\/config -\/-\/cflags oggz`

OGGZ\_LIBS=`pkg-\/config -\/-\/libs oggz`
\end{DoxyPre}
 