From: Kalle Wallin Date: Wed, 24 Mar 2004 16:48:03 +0000 (+0000) Subject: Added --enable-colors option, disabled AC_PROG_LIBTOOL X-Git-Tag: v0.12_alpha1~660 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6777db4e48d23b9841ebd5e081c8dd3f4437a586;p=ncmpc.git Added --enable-colors option, disabled AC_PROG_LIBTOOL git-svn-id: https://svn.musicpd.org/ncmpc/trunk@456 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- diff --git a/configure.ac b/configure.ac index 7e4ae61..501e00e 100644 --- a/configure.ac +++ b/configure.ac @@ -8,7 +8,7 @@ AM_INIT_AUTOMAKE(ncmpc, 0.10.0-svn) dnl Check for programs AC_PROG_CC AC_PROG_INSTALL -AC_PROG_LIBTOOL +dnl AC_PROG_LIBTOOL dnl ======================================================= dnl initialize variables @@ -79,10 +79,20 @@ if test "$enable_debug" = yes; then CFLAGS="$CFLAGS -g -DDEBUG" fi +dnl Enable +AC_ARG_ENABLE(colors, + [ --enable-colors Enable colors [default=no]], + , + enable_colors=no) + +if test "$enable_colors" = yes; then + CFLAGS="$CFLAGS -DENABLE_COLORS" +fi + + dnl Default charset AC_ARG_WITH(default-charset, [ --with-default-charset=ARG Default charset (ISO-8859-1)], - DEFAULT_CHARSET="$withval", DEFAULT_CHARSET="ISO-8859-1") dnl Default host