# Configure paths for xmms .h files # Chris Reed 23-01-2000 dnl AM_PATH_XMMS() dnl Get xmms path dnl AC_DEFUN(AM_PATH_XMMS, [dnl dnl Get the cflags for xmms .h files dnl AC_ARG_WITH(xmms-prefix,[ --with-xmms-prefix=PFX Prefix where XMMS header files are], xmms_incl_prefix="$withval", xmms_incl_prefix="") AC_MSG_CHECKING(for XMMS include files) if test x$xmms_incl_prefix != x ; then xmms_include=$xmms_incl_prefix else for i in /usr/include /usr/local/include $HOME/include $HOME/users-usr/include ; do if test -r $i/xmms/plugin.h ; then if test x$xmms_include = x ; then xmms_include=$i fi fi done fi if test x$xmms_include = x ; then AC_MSG_RESULT(no) else if test x$xmms_include != /usr/include ; then dnl Leave the path alone if it's in /usr/include; we ought to include this anyhows... AC_MSG_RESULT(yes) CFLAGS="$CFLAGS -I${xmms_include}" fi fi ])