1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
# 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
])
|