dnl Process this file with autoconf to produce a configure script. AC_INIT(src/xmms-status-plugin.c) AM_CONFIG_HEADER(config.h) VERSION=1.0 PACKAGE=xmms-status-plugin AM_INIT_AUTOMAKE($PACKAGE, $VERSION) AM_DISABLE_STATIC AC_PROG_CC AM_PROG_LIBTOOL AM_MAINTAINER_MODE dnl Checks for programs. AC_REQUIRE_CPP AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_ISC_POSIX dnl Checks for libraries. AM_PATH_GTK(1.2.0) AM_PATH_XMMS(1.0.1,, AC_MSG_ERROR([*** XMMS >= 1.0.1 not installed - please install first ***])) LIBS_save=$LIBS LIBS="$XMMS_LIBS $LIBS" AC_CHECK_FUNCS([xmms_remote_playlist_delete xmms_remote_quit xmms_remote_play_pause xmms_remote_playlist_show_adddfiles xmms_remote_playlist_show_adddir xmms_remote_playlist_show_addurl]) LIBS=$LIBS_save PTHREAD_LIBS=error AC_CHECK_LIB(pthread, pthread_attr_init, PTHREAD_LIBS="-lpthread") if test "x$PTHREAD_LIBS" = xerror; then AC_CHECK_LIB(pthreads, pthread_attr_init, PTHREAD_LIBS="-lpthreads") fi if test "x$PTHREAD_LIBS" = xerror; then AC_CHECK_LIB(c_r, pthread_attr_init, PTHREAD_LIBS="-lc_r") fi if test "x$PTHREAD_LIBS" = xerror; then AC_CHECK_FUNC(pthread_attr_init, PTHREAD_LIBS="") fi AC_SUBST(PTHREAD_LIBS) AC_DEFINE_UNQUOTED(XMMS_DATA_DIR, "$XMMS_DATA_DIR") ALL_LINGUAS="fr de nl" AM_GNU_GETTEXT dnl ############################################################# dnl turn warnings into errors to enforce clean code dnl ############################################################# AC_ARG_ENABLE(more-warnings, [ --enable-more-warnings Enable maximum compiler warnings [default=yes]], more_warnings="$enableval", more_warnings=yes) AC_ARG_ENABLE(fatal-warnings, [ --enable-fatal-warnings Turn compiler warnings into errors [default=yes]], fatal_warnings="$enableval", fatal_warnings=yes) if test "$GCC" = "yes" -a "$more_warnings" = "yes"; then CFLAGS="$CFLAGS \ -Wall -Wno-uninitialized \ -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \ -Wnested-externs -Wpointer-arith \ -Wno-sign-compare -Wsign-promo" fi if test "$GCC" = "yes" -a "$fatal_warnings" = "yes"; then CFLAGS="$CFLAGS -Werror" fi AC_OUTPUT([ Makefile xmms-status-plugin.spec src/Makefile images/Makefile intl/Makefile po/Makefile.in ])