5e11be698a7da777c3f04ff4d9222ad527eccb5e
[terminatorX.git] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(src/tX_global.h)
3 AM_INIT_AUTOMAKE(terminatorX, 3.74)
4 AM_CONFIG_HEADER(config.h)
5
6 dnl AC_ARG_ENABLE(closedev, [  --enable-closedev       close audio device if not in use. [default=yes] ])
7 AC_ARG_ENABLE(sox, [  --enable-sox            use sox as input converter. (default=auto) ])
8 AC_ARG_ENABLE(mpg123, [  --enable-mpg123         use mpg123 as input converter. (default=auto) ])
9 AC_ARG_ENABLE(ogg123, [  --enable-ogg123         use ogg123 as input converter. (default=auto) ])
10 dnl AC_ARG_ENABLE(wavonly,  [  --enable-wavonly        enable the builtin wav routines. ])
11 dnl AC_ARG_ENABLE(scheduler,[  --enable-scheduler      enable rt-scheduling (req. root-priv). (default=yes) ])
12 AC_ARG_ENABLE(debug,    [  --enable-debug          enable debug output. (default=no) ])
13 dnl AC_ARG_ENABLE(3dnow,    [  --enable-3dnow          enables 3DNow! support. (default=no) ])
14 dnl AC_ARG_ENABLE(benchmark,[  --enable-benchmark      creates a non-functional test version (default=no) ])
15 AC_ARG_ENABLE(wav,          [  --enable-wav            enables the builtin wav-loader (default=yes) ])
16 AC_ARG_ENABLE(xsetpointer,  [  --enable-xsetpointer    enables executing of xsetpointer (default=auto) ])
17 dnl AC_ARG_ENABLE(alsa,         [  --enable-alsa           use ALSA for sound output (default=auto) ])
18 AC_ARG_ENABLE(oss,          [  --enable-oss            use OSS for sound output (default=auto) ])
19 dnl AC_ARG_ENABLE(movqfix,          [  --disable-movqfix       don't use movq fix for gcc >= 2.96 [default=on] ])
20 dnl AC_ARG_ENABLE(dga2,     [  --enable-dga2           use DGA2 instead of DGA1. (experimental) (default=no) ])
21 AC_ARG_ENABLE(libxml2,      [  --disable-libxml2       use libxml even if verion 2 detected (default=auto) ])
22 AC_ARG_ENABLE(mad,              [  --disable-mad           disable mad for mp3 support (default=auto) ])
23 AC_ARG_ENABLE(vorbis,   [  --disable-vorbis        disable libvorbis support (default=auto) ])
24 AC_ARG_ENABLE(audiofile,        [  --disable-audiofile     disable audiofile support (default=auto) ])
25 AC_ARG_ENABLE(legacy,           [  --disable-legacy        disable support for old terminatorX files (default=on) ])
26 AC_ARG_ENABLE(alsamidi,         [  --disable-alsamidi      disable support  ALSA MIDI in (default=auto) ])
27
28 dnl Checks for programs.
29 AC_PROG_AWK
30 AC_PROG_CC
31 AC_PROG_CXX
32 AC_PROG_INSTALL
33 AC_PROG_LN_S
34 AC_PROG_RANLIB
35
36 OPTION_SOX="no"
37 OPTION_MPG123="no"
38 OPTION_MAD="no"
39 OPTION_OGG123="no"
40 OPTION_VORBIS="no"
41 OPTION_AUDIOFILE="no"
42 OPTION_WAV="no"
43 OPTION_GNOME="no"
44 OPTION_SCHEDULER="no"
45 OPTION_ALSAMIDI="no"
46 OPTION_LEGACY="no"
47
48 dnl Checks for libraries.
49 AC_CHECK_LIB(m, floor,, AC_MSG_ERROR([** math-lib not installed or broken **]))
50
51 dnl Checking whether -pthreads, -lpthreads or simply nothing
52
53 tX_threads=no
54
55 dnl Some machines don't require any switches for pthread support...
56
57 AC_MSG_CHECKING([whether pthreads works without switches])
58         no_threads_flags=no
59         AC_LANG_SAVE
60         AC_LANG_C
61         AC_TRY_LINK([#include <pthread.h>], [ pthread_t thread; pthread_create(&thread, NULL, NULL, NULL);],
62                 no_threads_flags=yes,
63                 no_threads_flags=no
64         )
65         AC_LANG_RESTORE
66 AC_MSG_RESULT([$no_threads_flags])
67
68 if test "$no_threads_flags" = "yes"; then
69         tX_threads=auto
70 fi
71
72 dnl Some machines prefer the -lpthread...
73
74 if test "$tX_threads" = "no"; then
75         pthread_lib=no
76         AC_CHECK_LIB(pthread, pthread_detach, pthread_lib=yes, pthread_lib=no)
77         
78         if test "$pthread_lib" = "yes"; then
79                 tX_threads=lpthread
80                 LIBS="$LIBS -lpthread"
81         fi
82 fi
83
84 dnl Some machines prefer a -pthread...
85
86 if test "$tX_threads" = "no"; then
87         AC_MSG_CHECKING([whether -pthread is required for pthreads])
88                 use_gcc_threads=no
89                 ac_save_CFLAGS=$CFLAGS
90                 CFLAGS="$CFLAGS -pthread"
91                 AC_LANG_SAVE
92                 AC_LANG_C
93                 AC_TRY_LINK([#include <pthread.h>], [ pthread_t thread; pthread_create(&thread, NULL, NULL, NULL);],
94                         use_gcc_threads=yes,
95                         use_gcc_threads=no
96                 )
97                 AC_LANG_RESTORE
98                 CFLAGS=$ac_save_CFLAGS
99         AC_MSG_RESULT([$use_gcc_threads])
100         
101         if test "$use_gcc_threads" = "yes"; then
102                 tX_threads=gcc
103                 CFLAGS="$CFLAGS -pthread"
104         fi
105 fi
106
107 dnl If we still haven't found pthreads, we panic...
108
109 if test "$tX_threads" = "no"; then
110         AC_MSG_ERROR([** failed to detect pthreads implementation **])
111 fi
112
113 AM_PATH_GTK_2_0(, [
114   GTK2_CFLAGS="$GTK_CFLAGS"
115   GTK2_LIBS="$GTK_LIBS"
116   gtk2="yes"
117   GTK2_VERSION="`$PKG_CONFIG --modversion gtk+-2.0`"], [ gtk2="yes" ]) 
118   OPTION_GTK_VERSION="Version 2 - ($GTK2_VERSION)"
119
120 if test "$gtk2" = "no"; then
121         AC_MSG_ERROR([** couldn't find gtk+ > Version 2. Please upgrade (http://www.gtk.org). **])
122 fi
123
124 dnl Checks for header files.
125 AC_HEADER_STDC
126 AC_CHECK_HEADERS(fcntl.h limits.h malloc.h unistd.h)
127
128 dnl Disable LADSPA caching..
129 unset ac_cv_header_ladspa_h
130
131 have_ladspa=no
132 AC_CHECK_HEADERS(ladspa.h, have_ladspa=yes, have_ladspa=no)
133
134 dnl Disable LADSPA caching..
135 unset ac_cv_header_ladspa_h
136
137 dnl Some people install LADSPA in /usr/local
138
139 if test "$have_ladspa" = "no"; then
140         ac_save_CFLAGS=$CFLAGS
141         CFLAGS="$CFLAGS -I/usr/local/include"
142         AC_CHECK_HEADERS(ladspa.h, have_ladspa=yes, have_ladspa=no)
143         CFLAGS=$ac_save_CFLAGS
144         
145         if test "$have_ladspa" = "yes"; then
146                 CFLAGS="$CFLAGS -I/usr/local/include"
147         fi
148 fi
149
150 if test "$have_ladspa" = "no"; then
151         AC_MSG_ERROR([** couldn't find ladspa.h - Install the LADSPA SDK from http://www.ladspa.org first. **])
152 fi
153
154 dnl Checks for typedefs, structures, and compiler characteristics.
155 AC_C_BIGENDIAN
156 AC_TYPE_SIZE_T
157
158 dnl Checks for library functions.
159 AC_PROG_GCC_TRADITIONAL
160
161 dnl Eval args
162 if test "$enable_closedev" = "no"; then
163         AC_DEFINE_UNQUOTED([KEEP_DEV_OPEN], 1, [Define if you want keep device open])
164 fi
165
166
167 if test "$enable_sox" != "no"; then
168         AC_CHECK_PROG(SOX_PROG, sox, yes)
169         if test "$SOX_PROG" = "yes"; then
170                 AC_DEFINE_UNQUOTED([USE_SOX_INPUT], 1, [Define if you want to use sox as input converter])
171                 OPTION_SOX="yes"
172         fi
173 fi
174
175 if test "$enable_mad" != "no"; then
176         AC_CHECK_HEADERS(mad.h,madheader=yes,madheader=no)
177         if test "$madheader" = "yes"; then
178                 AC_CHECK_LIB(mad,mad_decoder_init,madlib=yes,madlib=no)
179                 if test "$madlib" = "yes"; then
180                         LIBS="$LIBS -lmad"
181                         AC_DEFINE_UNQUOTED([USE_MAD_INPUT], 1, [Define to use MAD for mp3 support])
182                         OPTION_MAD="yes"
183                 fi
184         fi
185 fi
186
187 if test "$enable_vorbis" != "no"; then
188         AC_CHECK_HEADERS(vorbis/codec.h vorbis/vorbisfile.h,vorbis_headers=yes,vorbis_headers="no")
189         if test "$vorbis_headers" = "yes"; then
190                 AC_CHECK_LIB(vorbis,vorbis_info_init,vorbis_libs=yes,vorbis_libs=no)
191                 if test "$vorbis_libs" = "yes"; then
192                         PREV_LIBS=LIBS
193                         LIBS="$LIBS -lvorbis"
194                         AC_CHECK_LIB(vorbisfile,ov_open_callbacks,vorbisfile_libs=yes,vorbisfile_libs=no)
195                         if test "$vorbisfile_libs" = "yes"; then
196                                 LIBS="$LIBS -lvorbisfile"
197                                 AC_DEFINE_UNQUOTED([USE_VORBIS_INPUT], 1, [Define to use libvorbis for ogg support])
198                                 OPTION_VORBIS="yes"
199                         else
200                                 LIBS=PREV_LIBS
201                         fi
202                 fi
203         fi
204 fi
205
206 if test "$enable_audiofile" != "no"; then
207         AC_CHECK_PROG(af_config,audiofile-config,yes,no)
208         if test "$af_config" = "yes"; then
209                 af_cflags=`audiofile-config --cflags`
210                 if test "$af_cflags" != ""; then
211                         CFLAGS="$CFLAGS $af_cflags"
212                 fi
213                 af_libs=`audiofile-config --libs`
214                 LIBS="$LIBS $af_libs"
215                 AC_DEFINE_UNQUOTED([USE_AUDIOFILE_INPUT], 1, [Define to compile libaudiofile support])
216                 OPTION_AUDIOFILE="yes"
217         else
218                 AC_CHECK_HEADERS(audiofile.h,audiofile_headers=yes,audiofile_headers=no)
219                 if test "$audiofile_headers" = "yes"; then
220                         AC_CHECK_LIB(audiofile,afOpenFile,audiofile_libs=yes,audiofile_libs=no)
221                         if test "$audiofile_libs" = "yes"; then
222                                 LIBS="$LIBS -laudiofile"
223                                 AC_DEFINE_UNQUOTED([USE_AUDIOFILE_INPUT], 1, [Define to compile libaudiofile support])
224                                 OPTION_AUDIOFILE="yes"
225                         fi
226                 fi
227         fi
228 fi
229
230 if test "$enable_mpg123" != "no"; then
231         AC_CHECK_PROG(MPG123_PROG, mpg123, yes)
232         if test "$MPG123_PROG" = "yes"; then
233                 if test "$SOX_PROG" = "yes"; then       
234                         AC_DEFINE_UNQUOTED([USE_MPG123_INPUT], 1, [Define mp3-input through mpg123 - requires sox as well])
235                         OPTION_MPG123="yes"
236                 else
237                         AC_CHECK_PROG(SOX_PROG, sox, yes)
238                         if test "$SOX_PROG" = "yes"; then       
239                                 AC_DEFINE_UNQUOTED([USE_MPG123_INPUT], 1, [Define mp3-input through mpg123 - requires sox as well])
240                                 OPTION_MPG123="yes"
241                         else
242                                 AC_MSG_RESULT([** mpg123 support disabled: couldn't find sox! **])
243                         fi
244                 fi
245         fi
246 fi
247
248 if test "$enable_ogg123" != "no"; then
249         AC_CHECK_PROG(OGG123_PROG, ogg123, yes)
250         if test "$OGG123_PROG" = "yes"; then
251                 AC_DEFINE_UNQUOTED([USE_OGG123_INPUT], 1, [Define if you want UGLY ogg-input "support" - also requires sox])
252                 OPTION_OGG123="yes"
253         fi
254 fi
255
256 if test "$enable_xsetpointer" != "no"; then
257         AC_CHECK_PROG(XSETPOINTER_PROG, xsetpointer, yes)
258         if test "$XSETPOINTER_PROG" = "yes"; then
259                 AC_DEFINE_UNQUOTED([USE_XSETPOINTER], 1, [Exec xsetpointer instead of using Xlib-calls.])
260         else
261                 if test "$enable_xsetpointer" = "yes"; then
262                         AC_MSG_ERROR([** xsetpointer not found. **])
263                 fi
264         fi
265 fi
266
267 if test "$enable_movqfix" = "no"; then
268         AC_DEFINE_UNQUOTED([OVERRIDE_MOVQ_AUTODETECT], 1, [Don't use movqfix])
269 fi
270
271 using_alsa=no
272 using_oss=no
273
274 dnl if test "$enable_alsa" != "no"; then
275 dnl     AC_CHECK_LIB(asound, snd_ctl_open,alsalib=yes,alsalib=no)
276 dnl     AC_CHECK_HEADERS(sys/asoundlib.h,alsaheader=yes,alsaheader=no)
277 dnl
278 dnl     if test "$alsalib" = "yes"; then
279 dnl             if test "$alsaheader" = "yes"; then
280 dnl                     AC_DEFINE(USE_ALSA)
281 dnl                     using_alsa=yes;
282 dnl             else 
283 dnl                     if test "$enable_alsa" = "yes"; then
284 dnl                             AC_MSG_ERROR([** Coulnd't find ALSA header file sys/asoundlib.h **])
285 dnl                     fi
286 dnl             fi
287 dnl     else
288 dnl             if test "$enable_alsa" = "yes"; then
289 dnl                     AC_MSG_ERROR([** Coulnd'f find ALSA library libasound. **])
290 dnl             fi
291 dnl     fi
292 dnl fi
293
294 if test "$enable_oss" != "no"; then
295         AC_CHECK_HEADERS(sys/ioctl.h sys/soundcard.h,oss=yes,oss=no)
296         
297         if test "$oss" = "yes"; then
298                 AC_DEFINE_UNQUOTED([USE_OSS], 1, [Use OSS])
299                 using_oss=yes;
300         else
301                 if test "$enable_oss" = "yes"; then
302                         AC_MSG_ERROR([** Couldn't find OSS header files. ***])
303                 fi
304         fi
305 fi
306
307 if test "$enable_alsamidi" != "no"; then
308     AC_CHECK_LIB(asound, snd_seq_open,alsalib=yes,alsalib=no)
309     AC_CHECK_HEADERS(alsa/asoundlib.h,alsaheader=yes,alsaheader=no)
310
311     if test "$alsalib" = "yes"; then
312             if test "$alsaheader" = "yes"; then
313                     AC_DEFINE_UNQUOTED([USE_ALSA_MIDI_IN], 1, [Define for ALSA MIDI in support])
314                     LIBS="$LIBS -lasound"
315                     OPTION_ALSAMIDI="yes"
316             else 
317                     if test "$enable_alsamidi" = "yes"; then
318                             AC_MSG_ERROR([** Coulnd't find ALSA header file alsa/asoundlib.h **])
319                     fi
320             fi
321     else
322             if test "$enable_alsamidin" = "yes"; then
323                     AC_MSG_ERROR([** Couldn't find ALSA library libasound. **])
324             fi
325     fi
326 fi
327
328
329 dnl if test "$using_alsa" = "yes"; then
330 dnl     AC_MSG_RESULT([termnatorX audiodevice: using ALSA.])
331 dnl fi
332
333 if test "$using_oss" = "yes"; then
334         AC_MSG_RESULT([termnatorX audiodevice: using OSS.])
335 fi
336
337 if test "$using_alsa" != "yes"; then
338         if test "$using_oss" != "yes"; then
339                 AC_MSG_ERROR([** Found neither OSS nor ALSA! **])
340         fi
341 fi      
342         
343 if test "$enable_wav" != "no";
344 then
345         AC_DEFINE_UNQUOTED([USE_BUILTIN_WAV], 1, [Define to enable the built-in wav loading routines])
346         OPTION_WAV="yes"
347 fi
348
349 dnl if test "$enable_flash" = "no"; then
350 dnl     AC_DEFINE(DONT_USE_FLASH)
351 dnl fi 
352
353 if test "$enable_3dnow" = "yes"; then
354         AC_DEFINE_UNQUOTED([USE_3DNOW], 1, [Do not define this])
355 fi 
356
357 if test "$enable_scheduler" != "no"; then
358         OPTION_SCHEDULER="yes";
359         AC_DEFINE_UNQUOTED([USE_SCHEDULER], 1, [Define this to compile with rt scheduling support])
360 fi
361
362 if test "$enable_debug" = yes; then
363         AC_DEFINE_UNQUOTED([ENABLE_DEBUG_OUTPUT], 1, [Define this to enable debug output.])
364 fi
365
366 if test "$enable_benchmark" = yes; then
367         AC_DEFINE_UNQUOTED([CREATE_BENCHMARK], 1, [Define this to build an performance benchmark - WARNING: You cannot use the resulting binary for normal operation])
368 fi
369
370 dnl AC_MSG_CHECKING(whether to use dials)
371 dnl if test "$enable_dial" = no; then
372 dnl     AC_MSG_RESULT(no)
373 dnl else
374 dnl     AC_MSG_RESULT(yes)
375         AC_DEFINE_UNQUOTED([USE_DIAL], 1, [Keep this defined])
376 dnl fi
377
378 AC_MSG_CHECKING(for necessary scratching skillz)
379 AC_MSG_RESULT(yes)
380
381 dnl if test "$enable_bigdial" = yes; then
382 dnl     AC_DEFINE(USE_DIAL)
383 dnl     AC_DEFINE(USE_BIG_BUTTONS)
384 dnl fi
385
386 if test "$enable_legacy" != no; then
387         AC_DEFINE_UNQUOTED([ENABLE_TX_LEGACY], 1, [Define this to enable support for old tX set files])
388         OPTION_LEGACY="yes"
389 fi
390
391 dnl if test "$enable_dga2" = yes; then
392 dnl     AC_DEFINE(USE_DGA2)
393 dnl fi
394
395 AC_MSG_CHECKING(for GNOME)
396         AC_MSG_RESULT([in progress])
397         AC_CHECK_PROG(gnomepresent, gnome-name-service, yes, no)
398         if test "$gnomepresent" = yes; then
399                 AC_CHECK_PROG(gnomeconfig, gnome-config, yes)
400                 if test "$gnomeconfig" = yes; then
401                         gnomedatadir=`gnome-config --datadir`
402                 else
403                         gnomedatadir=${datadir}
404                 fi
405                 AC_SUBST(gnomedatadir)
406                 AM_CONDITIONAL(GNOMEpresent, test "$gnomepresent" = yes)
407                 AC_MSG_RESULT([Found GNOME - installing terminatorX.desktop.])
408                 OPTION_GNOME="yes"
409         else
410                 AC_MSG_RESULT([GNOME not found.])
411         fi
412
413
414 dnl Detecting libxml. Based on dia's test.
415 found_libxml=false
416
417 if test "$enable_libxml2" != "no"; then
418         if ! $found_libxml; then
419           AC_CHECK_PROG(XML2_CONFIG, xml2-config, xml2-config)
420           if test "x$XML2_CONFIG" != x ; then
421             AC_MSG_CHECKING(for libxml >= 2.3.9)
422             vers=`$XML2_CONFIG --version | sed -e "s/libxml //" | awk 'BEGIN {FS=".";} { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
423
424             if test "$vers" -ge 2003009; then
425               AC_MSG_RESULT(yes)
426               found_libxml=true
427               XML_LIBS="`$XML2_CONFIG --libs`"
428               XML_CFLAGS="`$XML2_CONFIG --cflags`"
429             else
430               AC_MSG_RESULT(no)
431             fi
432           fi
433         fi
434 fi      
435
436 if ! $found_libxml 
437 then
438         AC_CHECK_PROG(XML_CONFIG, xml-config, xml-config)
439         if test "x$XML_CONFIG" != x ; then
440           AC_MSG_CHECKING(for libxml >= 1.8.14)
441           vers=`$XML_CONFIG --version | sed -e "s/libxml //" | awk 'BEGIN {FS=".";} { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
442
443           dnl 1.18.14 is required for xmlUseNewParser()    
444           if test "$vers" -ge 1008014; then
445             AC_MSG_RESULT(yes)
446             found_libxml=true
447             XML_LIBS="`$XML_CONFIG --libs`"
448             XML_CFLAGS="`$XML_CONFIG --cflags`"
449           else
450             AC_MSG_RESULT(no)
451           fi
452         fi
453 fi
454
455 if ! $found_libxml; then
456     AC_MSG_ERROR([** libxml not found. Get libxml(2) at http://www.libxml.org **])
457 fi
458
459 AC_SUBST(XML_LIBS)
460 AC_SUBST(XML_CFLAGS)
461
462 CFLAGS="$XML_CFLAGS $CFLAGS"
463 LIBS="$XML_LIBS $LIBS"
464
465 dnl Scrollkeeper
466 AC_PATH_PROG(SK_CONFIG,scrollkeeper-config,no)
467 if test x$SK_CONFIG = xno; then
468   AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package: http://scrollkeeper.sourceforge.net)
469 fi
470
471 dnl Now Check for Xlibs - I do this here as other tests fail if these run earlier
472 AC_PATH_XTRA
473
474 AC_SUBST(X_CFLAGS)
475 AC_SUBST(X_PRE_LIBS)
476 AC_SUBST(X_EXTRA_LIBS)
477 AC_SUBST(X_LIBS)
478 AC_SUBST(x_libraries)
479
480 GTK_LIBS="$GTK_LIBS $X_LIBS"
481 AC_CHECK_LIB(X11, XOpenDisplay,, AC_MSG_ERROR([** X11-libs not installed or broken **]), $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS)
482 AC_CHECK_LIB(Xext, XShmQueryExtension,, AC_MSG_ERROR([** Xext-libs not installed or broken **]), $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS)
483 AC_CHECK_LIB(Xi, XOpenDevice,, AC_MSG_ERROR([** XInput not installed or broken **]), $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS)
484 AC_CHECK_LIB(Xxf86dga, XF86DGAQueryExtension,, AC_MSG_ERROR([** DGA not installed or broken **]), $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS)
485 if test "$enable_dga2" = yes; then
486         AC_CHECK_LIB(Xxf86dga, XDGASelectInput,, AC_MSG_ERROR([** DGA2 not installed. Try using dga1 instead. **]), $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS)
487 fi
488 AC_OUTPUT(Makefile 
489         src/Makefile 
490         gnome-support/Makefile 
491         gnome-support/terminatorX.keys 
492         src/gui_icons/Makefile 
493         src/smallknob/Makefile 
494         doc/Makefile 
495         doc/img/Makefile 
496         doc/terminatorX-manual/Makefile
497         doc/termintorX-manual/C/Makefile        
498         terminatorX.spec 
499         terminatorX.1)
500
501 option_info() {
502         echo "$option support: $option_val"
503         if test "$option_val" != "yes"; then
504                 echo "  - If you want $option support get $option from"
505                 echo "  -       $option_url"
506                 echo "  - and reconfigure terminatorX"
507         fi
508 }
509
510 echo
511 echo configured terminatorX for:
512 echo ---------------------------
513 echo
514
515 option=sox; option_val=$OPTION_SOX; option_url=http://sox.sourceforge.net/
516 option_info;
517
518 echo "mpg123 support: $OPTION_MPG123"
519 if test "$OPTION_MPG123" = "no"; then
520 echo "  - If you want mpg123 support get either mpg321 from"
521 echo "  -       http://mpg321.sourceforge.net/ or mpg123 from"
522 echo "  -       http://www.mpg123.de/"
523 echo "  - and reconfigure terminatorX"
524 fi
525
526 option=mad; option_val=$OPTION_MAD; option_url=http://www.mars.org/home/rob/proj/mpeg/
527 option_info;
528
529 option=ogg123; option_val=$OPTION_OGG123; option_url=http://www.xiph.org/ogg/vorbis/
530 option_info;
531
532 option=libvorbis; option_val=$OPTION_VORBIS; option_url=http://www.xiph.org/ogg/vorbis/
533 option_info;
534
535 option=audiofile; option_val=$OPTION_AUDIOFILE; option_url=http://www.68k.org/~michael/audiofile/
536 option_info;
537
538 option="ALSA (MIDI in)"; option_val=$OPTION_ALSAMIDI; option_url=http://www.alsa-project.org
539 option_info;
540
541 echo "legacy files supprt: $OPTION_LEGACY"
542 echo "builtin-wav support: $OPTION_WAV"
543 echo "enhanced scheduling support: $OPTION_SCHEDULER"
544 echo "GNOME support: $OPTION_GNOME"
545 echo
546 echo You can now run \'make\' to compile terminatorX