1dnl This can be moved into AC_INIT when AC_PREREQ reaches 2.64.
2m4_define([AC_PACKAGE_URL],[http://moc.daper.net/])
3
4AC_INIT([Music On Console],[2.5.2],[mocmaint@daper.net],[moc])
5AC_CONFIG_SRCDIR([main.c])
6AC_CONFIG_HEADERS([config.h])
7
8AM_INIT_AUTOMAKE
9
10AC_PREREQ(2.60)
11
12m4_version_prereq([2.64], , [AUTOCONF_DEPRECATED='yes'])
13
14dnl This can be removed when AC_PREREQ reaches 2.64.
15if test -z "$PACKAGE_URL"
16then
17	AC_SUBST([PACKAGE_URL],['AC_PACKAGE_URL'])
18	AC_DEFINE_UNQUOTED([PACKAGE_URL], ["$PACKAGE_URL"],
19	                   [Define to the home page for this package.])
20fi
21
22dnl Capture configuration options for this build.
23AC_DEFINE_UNQUOTED([CONFIGURATION], ["$ac_configure_args"],
24                   [Define to the configuration used to build MOC.])
25
26dnl Capture SVN revision number for this build.
27AC_PATH_PROG(SVNVERSION, [svnversion])
28if test -n "$SVNVERSION"
29then
30	SVNREVN=`$SVNVERSION -n $srcdir`
31	SVNREVN=`expr "$SVNREVN" : '\([[^:]]*\)'`
32	if test "x$SVNREVN" = "xexported"
33	then
34		unset SVNREVN
35	else
36		echo -n $SVNREVN > REVISION
37		EXTRA_DISTS="$EXTRA_DISTS REVISION"
38	fi
39fi
40if test -z "$SVNREVN" && test -f $srcdir/REVISION
41then
42	SVNREVN=`cat $srcdir/REVISION`
43	EXTRA_DISTS="$EXTRA_DISTS REVISION"
44fi
45if test -n "$SVNREVN"
46then
47	AC_DEFINE_UNQUOTED([PACKAGE_REVISION], ["$SVNREVN"],
48	                   [The SVN revision of this build.])
49fi
50
51AC_CANONICAL_HOST
52AC_PROG_CC
53AC_PROG_CXX
54AC_PROG_INSTALL
55
56dnl Test for an ISO C99 capable compiler so we can warn of pending
57dnl requirement.
58save_CC="$CC"
59AC_PROG_CC_C99
60CC="$save_CC"
61
62dnl Test for POSIX.1-2001 or better.
63AC_EGREP_CPP(posix_2001_compliant,
64             [#define _POSIX_C_SOURCE 200112L
65              #include <unistd.h>
66              #ifdef _POSIX_VERSION
67              #if _POSIX_VERSION >= 200112L
68              posix_2001_compliant
69              #endif
70              #endif
71             ],
72             [posix_2001_compliant='yes'],
73             [posix_2001_compliant='no'])
74
75AC_PROG_AWK
76AC_LIBTOOL_DLOPEN
77AC_DISABLE_STATIC
78AC_ENABLE_SHARED
79AC_PROG_LIBTOOL
80AC_LIB_LTDL
81
82AC_SUBST([EXTRA_OBJS])
83
84plugindir=$libdir/moc
85AC_SUBST([plugindir])
86PLUGIN_LDFLAGS='-module -avoid-version'
87AC_SUBST([PLUGIN_LDFLAGS])
88
89OS=`uname 2>/dev/null`
90
91case "$host_os" in
92	linux*)
93		AC_DEFINE([LINUX], 1, [Define if your system is GNU/Linux])
94		;;
95	openbsd*)
96		AC_DEFINE([OPENBSD], 1, [Define if your system is OpenBSD])
97		;;
98	freebsd*)
99		AC_DEFINE([FREEBSD], 1, [Define if your system is FreeBSD])
100		;;
101esac
102
103AC_DEFINE([_FILE_OFFSET_BITS], 64, [Use 64bit IO])
104
105AC_HEADER_STDC
106AC_HEADER_STDBOOL
107AC_CHECK_HEADERS([fcntl.h string.h strings.h sys/param.h unistd.h sys/un.h \
108		  sys/socket.h sys/types.h signal.h sys/time.h limits.h \
109		  sys/wait.h sys/ioctl.h pwd.h regex.h inttypes.h stdint.h \
110		  time.h errno.h sys/stat.h assert.h locale.h wchar.h],,
111		 AC_MSG_ERROR([Can't find required header files.]))
112AC_CHECK_HEADERS([sys/select.h byteswap.h])
113
114AC_CHECK_FUNCS([sched_get_priority_max])
115
116dnl langinfo
117AC_CHECK_HEADERS([langinfo.h])
118AC_CHECK_HEADERS([nl_types.h])
119AC_CHECK_FUNCS([nl_langinfo])
120
121dnl CODESET (taken from vim)
122AC_MSG_CHECKING(for nl_langinfo(CODESET))
123AC_TRY_LINK([
124	     #ifdef HAVE_LANGINFO_H
125	     # include <langinfo.h>
126	     #endif
127	     ], [char *cs = nl_langinfo(CODESET);],
128	     AC_MSG_RESULT(yes)
129	     AC_DEFINE([HAVE_NL_LANGINFO_CODESET], 1,
130		       [Define if you have CODESET constant]),
131	     AC_MSG_RESULT(no))
132
133AC_C_BIGENDIAN
134
135dnl Require with iconv for charset translation.
136AM_ICONV
137if test "x$am_cv_func_iconv" != xyes; then
138	AC_MSG_ERROR([No iconv library found.])
139fi
140EXTRA_LIBS="$EXTRA_LIBS $LIBICONV"
141
142dnl librcc
143COMPILE_RCC=no
144AC_ARG_WITH(rcc, AS_HELP_STRING([--without-rcc],
145                                [Compile without LIBRCC support]))
146if test "x$with_rcc" != "xno"
147then
148AC_CHECK_HEADERS([librcc.h],
149                 [AC_DEFINE([HAVE_RCC], 1, [Define if you have librcc.h])
150                  AC_CHECK_LIB(rcc, rccInit,
151                               [RCC_LIBS="-lrcc"
152                                AC_SUBST([RCC_LIBS])
153                                COMPILE_RCC=yes])
154                 ])
155fi
156
157AC_C_CONST
158AC_C_FLEXIBLE_ARRAY_MEMBER
159AC_C_INLINE
160AC_TYPE_OFF_T
161AC_TYPE_SIZE_T
162AC_TYPE_INTPTR_T
163AC_C99_FUNC_LRINTF
164AX_CFLAGS_GCC_OPTION(-Wall)
165AX_CFLAGS_GCC_OPTION(-W)
166
167PKG_PROG_PKG_CONFIG([0.20])
168
169if test "x$PKG_CONFIG" = "x"
170then
171	AC_MSG_WARN([No pkg-config utility found or it's too old, I will have trouble finding installed libraries.])
172fi
173
174AC_ARG_ENABLE(cache, AS_HELP_STRING([--enable-cache],
175                                    [Enable tags caching code]))
176
177if test "x$enable_cache" != "xno"
178then
179	AX_PATH_BDB([4.1], [], [BDB4_DEPRECATED="yes"])
180	AX_PATH_BDB([4], [
181		       EXTRA_LIBS="$EXTRA_LIBS $BDB_LIBS"
182		       LDFLAGS="$LDFLAGS $BDB_LDFLAGS"
183		       CPPFLAGS="$CPPFLAGS $BDB_CPPFLAGS"
184		       ],
185		       AC_MSG_ERROR([BerkeleyDB (libdb) not found.]))
186fi
187
188AC_ARG_WITH(oss, AS_HELP_STRING([--without-oss],
189                                [Compile without OSS support]))
190
191if test "x$with_oss" != "xno"
192then
193	OSSLIBDIR="$with_oss"
194	if test "x$with_oss" = "x" || test "x$with_oss" = "xyes"
195	then
196		OSSLIBDIR="/usr/lib/oss"
197		if test -f "/etc/oss.conf"
198		then
199			. /etc/oss.conf
200		fi
201	fi
202
203	if test -d "$OSSLIBDIR/include"
204	then
205		OSS_CFLAGS="-I$OSSLIBDIR/include"
206	fi
207
208	save_CPPFLAGS="$CPPFLAGS"
209	CPPFLAGS="$CPPFLAGS $OSS_CFLAGS"
210	AC_CHECK_HEADERS([sys/soundcard.h soundcard.h])
211	CPPFLAGS="$save_CPPFLAGS"
212
213	if test "$ac_cv_header_sys_soundcard_h" = "yes" -o \
214	        "$ac_cv_header_soundcard_h" = "yes"
215	then
216		AC_DEFINE([HAVE_OSS], 1, [Define if you have OSS.])
217		EXTRA_OBJS="$EXTRA_OBJS oss.o"
218		CFLAGS="$CFLAGS $OSS_CFLAGS"
219		SOUND_DRIVERS="$SOUND_DRIVERS OSS"
220		AC_CHECK_LIB([ossaudio], [_oss_ioctl],
221		             [EXTRA_LIBS="$EXTRA_LIBS -lossaudio"])
222	fi
223fi
224
225AC_ARG_WITH(sndio, AS_HELP_STRING([--without-sndio],
226                                  [Compile without SNDIO support]))
227
228if test "x$with_sndio" != "xno"
229then
230	AC_CHECK_HEADERS([sndio.h])
231	if test "$ac_cv_header_sndio_h" = "yes"
232	then
233		AC_DEFINE([HAVE_SNDIO], 1, [Define if you have SNDIO.])
234		EXTRA_OBJS="$EXTRA_OBJS sndio_out.o"
235		SOUND_DRIVERS="$SOUND_DRIVERS SNDIO"
236		AC_CHECK_LIB([sndio], [sio_open],
237		             [EXTRA_LIBS="$EXTRA_LIBS -lsndio"])
238	fi
239fi
240
241AC_ARG_WITH(alsa, AS_HELP_STRING([--without-alsa],
242                                 [Compile without ALSA support]))
243
244COMPILE_ALSA="no"
245if test "x$with_alsa" != "xno"
246then
247	PKG_CHECK_MODULES(ALSA, [alsa >= 0.9],
248	     [SOUND_DRIVERS="$SOUND_DRIVERS ALSA"
249	      EXTRA_OBJS="$EXTRA_OBJS alsa.o"
250	      AC_DEFINE([HAVE_ALSA], 1, [Define if you have ALSA.])
251	      EXTRA_LIBS="$EXTRA_LIBS $ALSA_LIBS"
252	      CFLAGS="$CFLAGS $ALSA_CFLAGS"
253		  if ! $PKG_CONFIG --atleast-version 1.0.11 alsa
254		  then
255			  ALSA_DEPRECATED="yes"
256		  fi
257	      COMPILE_ALSA="yes"
258	      need_usleep="yes"],
259	     [true])
260fi
261
262AC_ARG_WITH(jack, AS_HELP_STRING([--without-jack],
263                                 [Compile without JACK support]))
264
265if test "x$with_jack" != "xno"
266then
267	PKG_CHECK_MODULES(JACK, [jack >= 0.4],
268			  [SOUND_DRIVERS="$SOUND_DRIVERS JACK"
269			   EXTRA_OBJS="$EXTRA_OBJS jack.o"
270			   AC_DEFINE([HAVE_JACK], 1, [Define if you have JACK.])
271			   EXTRA_LIBS="$EXTRA_LIBS $JACK_LIBS"
272			   CFLAGS="$CFLAGS $JACK_CFLAGS"
273			   AC_SEARCH_LIBS(jack_client_open, jack,
274			       [AC_DEFINE([HAVE_JACK_CLIENT_OPEN], 1,
275			           [Define to 1 if you have the `jack_client_open' function.])])
276			   need_usleep="yes"],
277			  [true])
278fi
279
280AC_SUBST([SOUNDDRIVER])
281case "$host_os" in
282	openbsd*) SOUNDDRIVER="SNDIO:JACK:OSS";;
283	       *) SOUNDDRIVER="JACK:ALSA:OSS";;
284esac
285
286AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug],
287                                    [Enable debugging code]))
288
289if test "x$enable_debug" = "xno"
290then
291	AC_DEFINE([NDEBUG], 1, [Define if you don't want debugging code])
292	COMPILE_DEBUG='no'
293else
294	if test "x$enable_debug" = "xgdb"
295	then
296		AX_CFLAGS_GCC_OPTION([-ggdb])
297		AX_CFLAGS_GCC_OPTION([-O0])
298		COMPILE_DEBUG='gdb'
299	fi
300	if test "x$ac_cv_cflags_gcc_option__ggdb" = "x"
301	then
302		AX_CFLAGS_GCC_OPTION([-g])
303		COMPILE_DEBUG='yes'
304	fi
305	EXTRA_OBJS="$EXTRA_OBJS null_out.o md5.o"
306	need_usleep="yes"
307fi
308
309AC_FUNC_MALLOC
310AC_FUNC_STAT
311AC_CHECK_FUNCS([getcwd memmove strcasecmp strdup strerror strncasecmp strchr \
312		strrchr socket gettimeofday getenv fork setsid kill bind listen \
313		accept time connect unlink send recv select strftime access freopen \
314		localtime_r mbsrtowcs mbstowcs execvp wcswidth strspn geteuid],,
315	       AC_MSG_ERROR([Required standard C/UNIX functions are not present.]))
316
317AC_CHECK_FUNC([sin], ,
318              [AC_CHECK_LIB([m], [sin], ,
319               AC_MSG_ERROR([No sin() function found.]))
320               EXTRA_LIBS="$EXTRA_LIBS -lm"])
321
322AC_CHECK_FUNC([sinh], ,
323              [AC_CHECK_LIB([m], [sinh], ,
324               AC_MSG_ERROR([No sinh() function found.]))
325               EXTRA_LIBS="$EXTRA_LIBS -lm"])
326
327dnl optional functions
328AC_CHECK_FUNCS([strcasestr strerror_r syslog])
329AX_CHECK_UNAME_SYSCALL
330if test "x$need_usleep" = "xyes"
331then
332	AC_CHECK_FUNC([usleep], , AC_MSG_ERROR([No usleep() function found.]))
333fi
334
335dnl MIME magic
336AC_ARG_WITH(magic, AS_HELP_STRING([--without-magic],
337                                  [Compile without MIME magic support]))
338COMPILE_MAGIC="no"
339if test "x$with_magic" != "xno"
340then
341	AC_CHECK_LIB(magic, magic_open,
342		[COMPILE_MAGIC="yes"
343		 AC_DEFINE([HAVE_LIBMAGIC], 1, [Define if you have libmagic.])
344		 EXTRA_LIBS="$EXTRA_LIBS -lmagic"])
345fi
346
347dnl FIXME: Support for this in the source code
348AC_HEADER_DIRENT
349
350ACX_PTHREAD
351AC_FUNC_MMAP
352
353if test "$ax_pthread_ok" != "yes"
354then
355	AC_MSG_ERROR([[I don't know how to compile pthreads code on this system.]])
356fi
357
358CC="$PTHREAD_CC"
359CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
360EXTRA_LIBS="$EXTRA_LIBS $PTHREAD_LIBS"
361AC_CHECK_FUNCS([getrlimit pthread_attr_getstacksize])
362
363dnl __FUNCTION__
364AC_TRY_COMPILE(,[printf(__FUNCTION__);], [AC_DEFINE([HAVE__FUNCTION__], 1,
365	       [Define if we have __FUNCTION__ constant])])
366
367dnl __attribute__
368AC_TRY_COMPILE([#include <stdarg.h>],
369	       [int f(const char *f, ...)
370	       __attribute__((format (printf, 1, 2)))],
371	       [AC_DEFINE([HAVE__ATTRIBUTE__], 1,
372			  [Define if we have __attribute__ extension])])
373
374dnl ncurses
375dnl This 'unset' circumvents a notified bug in AX_WITH_CURSES when
376dnl _PKG_CONFIG succeeds but a stale 'pkg_failed' value is checked.
377dnl It can be removed once an updated 'ax_with_curses.m4' is committed.
378unset pkg_failed
379AX_WITH_CURSES
380if test "x$ax_cv_curses" != "xyes"
381then
382	AC_MSG_ERROR([You need curses/ncurses library and header files.])
383else
384	AC_CHECK_LIB([$CURSES_LIB], [set_escdelay],
385		AC_DEFINE([HAVE_SET_ESCDELAY], 1, [Define if you have set_escdelay.]),
386		[AC_CHECK_FUNC([setenv], ,
387			AC_MSG_ERROR([Required function setenv not found.]))])
388	EXTRA_LIBS="$EXTRA_LIBS $CURSES_LIB"
389fi
390EXTRA_LIBS="$EXTRA_LIBS $CURSES_LIBS"
391dnl Remove -D_GNU_SOURCE as it causes problems when defined mid-configure.
392for flag in $CURSES_CFLAGS
393do
394	if test "x$flag" != "x-D_GNU_SOURCE"
395	then
396		CPPFLAGS="$CPPFLAGS $flag"
397	fi
398done
399AC_RUN_LOG([: The test below is actually for set_escdelay in curses library.])
400AC_RUN_LOG([: Using 'm' avoids unpacking CURSES_LIBS.])
401AC_CHECK_LIB([m], [set_escdelay],
402	AC_DEFINE([HAVE_SET_ESCDELAY], 1, [Define if you have set_escdelay.]),
403	[], [$CURSES_LIBS])
404
405dnl popt
406AC_CHECK_LIB([popt], [poptGetContext], [true], [POPT_MISSING="yes"])
407
408dnl getopt
409AC_CHECK_FUNC(getopt_long,
410	      [AC_CHECK_HEADERS([getopt.h],,[AC_MSG_ERROR([You need getopt.h.])])],
411	      [#FreeBSD has it there
412	       AC_CHECK_LIB(gnugetopt,getopt_long,,
413			    [AC_LIBOBJ(getopt)
414			    AC_LIBOBJ(getopt1)
415			    AC_CONFIG_LINKS([getopt.h:gnugetopt.h])]
416			    )]
417	      )
418
419dnl samplerate
420AC_ARG_WITH(samplerate, AS_HELP_STRING([--without-samplerate],
421                                       [Compile without libsamplerate]))
422COMPILE_SAMPLERATE="no"
423if test "x$with_samplerate" != "xno"
424then
425	PKG_CHECK_MODULES(samplerate, samplerate >= 0.1.0,
426			  [EXTRA_LIBS="$EXTRA_LIBS $samplerate_LIBS"
427			   CFLAGS="$CFLAGS $samplerate_CFLAGS"
428			   AC_DEFINE([HAVE_SAMPLERATE], 1,
429				     [Define if you have libsamplerate])
430			   COMPILE_SAMPLERATE="yes"],
431			   [true])
432fi
433
434dnl Decoder plugins
435m4_include(decoder_plugins/decoders.m4)
436
437dnl curl
438COMPILE_CURL="no"
439AC_ARG_WITH(curl, AS_HELP_STRING([--without-curl],
440                                 [Compile without Network streams support]))
441if test "x$with_curl" != "xno"
442then
443	dnl FIXME: make a better curl test
444	AC_CHECK_PROG([CURL_CONFIG], [curl-config], [yes])
445	if test "x$CURL_CONFIG" = "xyes"
446	then
447		AC_MSG_CHECKING([libcurl version])
448		curl_ver=`curl-config --version | $AWK '{print $2}'`
449		curl_ver_major=`echo $curl_ver | $AWK -F. '{print $1}'`
450		curl_ver_minor=`echo $curl_ver | $AWK -F. '{print $2}'`
451		curl_ver_fix=`echo $curl_ver | $AWK -F. '{print $3}'`
452
453		# make 071202 from 7.12.2
454		curl_ver_number=`printf "%02d%02d%02d" $curl_ver_major \
455			$curl_ver_minor $curl_ver_fix`
456
457		if test "$curl_ver_number" -lt "071501"
458		then
459			CURL_DEPRECATED="yes"
460		fi
461
462		if test "$curl_ver_number" -ge "071202"
463		then
464			AC_MSG_RESULT([$curl_ver, OK])
465			CFLAGS="$CFLAGS `curl-config --cflags`"
466			EXTRA_LIBS="$EXTRA_LIBS `curl-config --libs`"
467			EXTRA_OBJS="$EXTRA_OBJS io_curl.o"
468			AC_DEFINE([HAVE_CURL], 1, [Define if you have libcurl])
469			COMPILE_CURL="yes"
470		else
471			AC_MSG_RESULT([$curl_ver, but minimum is 7.12.2])
472		fi
473	fi
474fi
475
476dnl Check for XZ.
477AC_CHECK_PROG([XZ_MISSING], [xz], [no], [yes])
478
479AC_SUBST(EXTRA_LIBS)
480AC_SUBST(EXTRA_DISTS)
481
482AC_OUTPUT([Makefile
483	  themes/Makefile
484	  config.example
485	  ])
486
487echo
488echo "-----------------------------------------------------------------------"
489echo "MOC will be compiled with:"
490echo
491if test `echo $DECODER_PLUGINS | $AWK '{print(length())}'` -le 50
492then
493	echo "Decoder plugins:  $DECODER_PLUGINS"
494else
495	DECODERS_IX=`echo $DECODER_PLUGINS | $AWK '{match(substr($0, 1, 51), /.* /);print(RLENGTH)}'`
496	DECODERS_1=`echo $DECODER_PLUGINS | $AWK "{print(substr(\\$0, 1, $DECODERS_IX - 1))}"`
497	DECODERS_2=`echo $DECODER_PLUGINS | $AWK "{print(substr(\\$0, $DECODERS_IX + 1))}"`
498	echo "Decoder plugins:   $DECODERS_1"
499	echo "                   $DECODERS_2"
500fi
501echo "Sound Drivers:    "$SOUND_DRIVERS
502echo "DEBUG:             "$COMPILE_DEBUG
503echo "RCC:               "$COMPILE_RCC
504echo "Network streams:   "$COMPILE_CURL
505echo "Resampling:        "$COMPILE_SAMPLERATE
506echo "MIME magic:        "$COMPILE_MAGIC
507echo "-----------------------------------------------------------------------"
508echo
509
510if test "x$AUTOCONF_DEPRECATED" = "xyes"
511then
512	echo "WARNING: After release 2.5 MOC will require Autoconf version"
513	echo "         2.64 or later.  Plan to upgrade your Autoconf soon."
514	echo
515fi
516
517if test "x$posix_2001_compliant" = "xno"
518then
519	echo "WARNING: After release 2.5, MOC will require a POSIX.1-2001"
520	echo "         compliant system; plan to upgrade your system soon."
521	echo
522fi
523
524if test "x$ac_cv_prog_cc_c99" = "xno"
525then
526	echo "WARNING: After release 2.5 MOC will require an ISO C99 capable"
527	echo "         compiler.  Plan to upgrade your compiler soon."
528	echo
529fi
530
531if test "x$FFMPEG_CONFIG" = "xyes"
532then
533	echo "WARNING: Use of Debian's ffmpeg-config is deprecated;"
534	echo "         please upgrade FFmpeg or it's libraries to a version"
535	echo "         using pkg-config (FFmpeg release 0.5 or later)."
536	echo
537fi
538
539if test "x$BDB4_DEPRECATED" = "xyes"
540then
541	echo "WARNING: After release 2.5 MOC will require Berkeley DB release"
542	echo "         4.1 or later.  Plan to upgrade your libraries soon."
543	echo
544fi
545
546if test "x$CURL_DEPRECATED" = "xyes"
547then
548	echo "WARNING: After release 2.5 MOC will require libcurl version"
549	echo "         7.15.1 or later.  Plan to upgrade your libraries soon."
550	echo
551fi
552
553if test "x$ALSA_DEPRECATED" = "xyes"
554then
555	echo "WARNING: After release 2.5 MOC will require ALSA version 1.0.11"
556	echo "         or later.  Plan to upgrade your ALSA soon."
557	echo
558fi
559
560if test "x$FFMPEG_DEPRECATED" = "xyes"
561then
562	echo "WARNING: After version 2.5, MOC will require FFmpeg/LibAV version"
563	echo "         1.0/10.0 or later.  Plan to upgrade your libraries soon."
564	echo
565fi
566
567if test "x$FLAC_DEPRECATED" = "xyes"
568then
569	echo "WARNING: After release 2.5 MOC will require FLAC release 1.1.3 or"
570	echo "         later.  Plan to upgrade your libraries soon."
571	echo
572fi
573
574if test "x$POPT_MISSING" = "xyes"
575then
576	echo "WARNING: After release 2.5 MOC will require libpopt.  Plan"
577	echo "         to install it before moving on from release 2.5."
578	echo
579fi
580
581if test "x$XZ_MISSING" = "xyes"
582then
583	echo "WARNING: After release 2.5 MOC will use XZ to create tarballs"
584	echo "         by default.  If you wish to build tarballs, either plan"
585	echo "         to install XZ soon or start using explicit 'dist-*'"
586	echo "         'make' targets."
587	echo
588fi
589
590if test "x$UPGRADE_TAGLIB" = "xyes"
591then
592	echo "WARNING: MOC will soon require TagLib version 1.5 or later;"
593	echo "         plan to upgrade your TagLib soon."
594	echo
595fi
596
597if test "x$UPGRADE_MUSEPACK" = "xyes"
598then
599	echo "WARNING: MOC will soon require Musepack libmpc (rather than libmpcdec);"
600	echo "         plan to upgrade your Musepack soon."
601	echo
602fi
603
604if test "x$DECODER_PLUGINS" = "x"
605then
606	echo "WARNING: No decoder plugins are to be compiled;"
607	echo "         you will have to provide them separately."
608	echo
609fi
610
611if test "x$SOUND_DRIVERS" = "x"
612then
613	echo "WARNING: No sound output methods are to be compiled;"
614	echo "         you will not hear any sound!"
615	echo
616fi
617
618if test "x$COMPILE_SAMPLERATE" = "xno" -a "x$COMPILE_ALSA" = "xyes"
619then
620	echo "WARNING: Without libsamplerate, the 'ALSAStutterDefeat' option"
621	echo "         may severely restrict the number of audios playable."
622	echo
623fi
624
625echo "WARNING: Since MOC version 2 the executable file name has changed to mocp!"
626echo "         Please remove old moc binary if you have installed an older version."
627echo
628