diff --git a/configure.ac b/configure.ac
index c708b7febfa7bac7fd5c1606f9820a8d99cd149f..4aadbeb0b14d6e3e10b7aa1d52880d86e953a6a5 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AC_INIT
AC_CONFIG_SRCDIR([src/main.c])
-AM_INIT_AUTOMAKE(ncmpc, 0.11.0-svn)
+AM_INIT_AUTOMAKE(ncmpc, 0.11.0-svn-20040630)
AM_CONFIG_HEADER([config.h])
dnl Check for programs
dnl initialize variables
dnl =======================================================
+dnl i18n
+ALL_LINGUAS="sv"
+
set -- $CFLAGS
dnl
dnl
dnl ncurses
-AC_CHECK_LIB([ncurses], [initscr],,
+AC_CHECK_LIB([ncurses],
+ [initscr],
+ [LIBS="$LIBS -lncurses"],
[AC_MSG_ERROR(ncurses library is required)])
-LIBS="$LIBS -lncurses"
-
-dnl popt
-AC_CHECK_LIB([popt],
- [poptGetArg],
- [LIBS="$LIBS -lpopt"],
- AC_MSG_ERROR([Missing popt command line parsing library]))
dnl Check for glib-2.4
dnl i18n
-ALL_LINGUAS="sv"
-
AM_NLS
if test "x$glib24" = "xyes"; then
nls=$USE_NLS
AC_MSG_CHECKING([whether to build with debug support])
AC_ARG_ENABLE([debug],
AC_HELP_STRING([--enable-debug],
- [Enable debugging @<:@default=no@:>@)]),
+ [Enable debugging @<:@default=no@:>@]),
[enable_debug="$enableval"],
[enable_debug=no])
AC_MSG_RESULT([$enable_debug])
CFLAGS="$CFLAGS -Wall -g -DDEBUG"
fi
+dnl Optional screen - help screen
+#AC_MSG_CHECKING([whether to include the help screen])
+#AC_ARG_ENABLE([help-screen],
+# AC_HELP_STRING([--enable-help-screen],
+# [Enable the help screen @<:@default=yes@:>@]),
+# [help_screen="$enableval"],
+# [help_screen=yes])
+#AC_MSG_RESULT([$help_screen])
+#if test "x$help_screen" = "xyes" ; then
+# AC_DEFINE(ENABLE_HELP_SCREEN, 1, [Enable the help screen])
+#fi
+
+dnl Optional screen - browse screen
+#AC_MSG_CHECKING([whether to include the browse screen])
+#AC_ARG_ENABLE([browse-screen],
+# AC_HELP_STRING([--enable-browse-screen],
+# [Enable the browse screen @<:@default=yes@:>@]),
+# [browse_screen="$enableval"],
+# [browse_screen=yes])
+#AC_MSG_RESULT([$browse_screen])
+#if test "x$browse_screen" = "xyes" ; then
+# AC_DEFINE(ENABLE_BROWSE_SCREEN, 1, [Enable the browse screen])
+#fi
+
dnl Optional screen - key editor
AC_MSG_CHECKING([whether to include the key editor screen])
AC_ARG_ENABLE([key-screen],