\section{Building against libfishsound}
\label{group__building}\index{Building against libfishsound@{Building against libfishsound}}
\subsection{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 libfishsound is available:

\small\begin{alltt}
 PKG\_CHECK\_MODULES(FISHSOUND, fishsound >= 0.6.0,
                   HAVE\_FISHSOUND="yes", HAVE\_FISHSOUND="no")
 if test "x$HAVE\_FISHSOUND" = "xyes" ; then
   AC\_SUBST(FISHSOUND\_CFLAGS)
   AC\_SUBST(FISHSOUND\_LIBS)
 fi
 \end{alltt}
\normalsize 
 (Note that if your application requires FLAC support, you should check for a version of fishsound $>$= 0.9.0).

If libfishsound is found, HAVE\_\-FISHSOUND will be set to \char`\"{}yes\char`\"{}, and the autoconf variables FISHSOUND\_\-CFLAGS and FISHSOUND\_\-LIBS will be set appropriately.\subsection{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.

\small\begin{alltt}
 FISHSOUND\_CFLAGS=`pkg-config --cflags fishsound`\end{alltt}
\normalsize 


\small\begin{alltt} FISHSOUND\_LIBS=`pkg-config --libs fishsound`
 \end{alltt}
\normalsize 
 