root/sweep/branches/display-cache/configure.ac

Revision 389, 17.7 kB (checked in by erikd, 6 years ago)

configure.ac : Make ALSA the default on linux.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 dnl Process this file with autoconf to produce a configure script.
2
3 dnl Require minimum autoconf version
4 AC_PREREQ(2.50)
5
6 AC_INIT(configure.ac)
7 AM_INIT_AUTOMAKE(sweep, 0.9.1)
8 AM_CONFIG_HEADER(config.h)
9
10 AC_ISC_POSIX
11 AC_PROG_CC
12 AM_PROG_CC_STDC
13 AC_HEADER_STDC
14 AM_PROG_LIBTOOL
15
16 AC_CHECK_PROG(HAVE_GNOME_MOZ_REMOTE, 'gnome-moz-remote', yes, no)
17
18 AC_C_BIGENDIAN
19
20 AC_CHECK_FUNCS(strchr)
21 AC_CHECK_FUNCS(madvise)
22
23 ALL_LINGUAS="de el es_ES fr hu it pl ru en_AU"
24 AM_GNU_GETTEXT
25
26 dnl Overall configuration success flag
27 sweep_config_ok=yes
28
29 dnl Default audio handling to build in
30 sweep_config_driver=none
31
32 dnl
33 dnl  Configuration option for building of experimental code.
34 dnl
35
36 ac_enable_experimental=no
37 AC_ARG_ENABLE(experimental,
38      [  --enable-experimental   enable building of experimental code ],
39      [ ac_enable_experimental=yes ])
40
41 if test "x${ac_enable_experimental}" = xyes ; then
42     AC_DEFINE([DEVEL_CODE], [], [Whether to build the develpment code.])
43 fi
44
45
46 dnl
47 dnl  Detect pthreads libraries
48 dnl
49
50 PTHREAD_LIBS=error
51 AC_CHECK_LIB(pthread, pthread_attr_init, PTHREAD_LIBS="-lpthread")
52 if test "x$PTHREAD_LIBS" = xerror; then
53         AC_CHECK_LIB(pthreads, pthread_attr_init, PTHREAD_LIBS="-lpthreads")
54 fi
55 if test "x$PTHREAD_LIBS" = xerror; then
56         AC_CHECK_LIB(c_r, pthread_attr_init, PTHREAD_LIBS="-lc_r")
57 fi
58 if test "x$PTHREAD_LIBS" = xerror; then
59         AC_CHECK_FUNC(pthread_attr_init, PTHREAD_LIBS="")
60 fi
61 AC_SUBST(PTHREAD_LIBS)
62
63
64
65 dnl
66 dnl  Detect Gthread, GLib and GTK+ libraries
67 dnl
68
69 PKG_CHECK_MODULES(GTK, gtk+-2.0 >=  2.2.0, HAVE_GTK="yes", sweep_config_ok="no")
70 AC_SUBST(GTK_CFLAGS)
71 AC_SUBST(GTK_LIBS)
72 if test "x$HAVE_GTK" != xyes ; then
73     AC_CHECK_LIB(gtk-x11-2.0, gtk_init, HAVE_GTK="maybe", sweep_config_ok="no")
74 fi
75
76 PKG_CHECK_MODULES(GLIB, glib-2.0 >=  2.2.0, HAVE_GLIB="yes", sweep_config_ok="no")
77 AC_SUBST(GLIB_CFLAGS)
78 AC_SUBST(GLIB_LIBS)
79 if test "x$HAVE_GLIB" != xyes ; then
80   AC_CHECK_LIB(glib-2.0, g_list_append, HAVE_GLIB="maybe", sweep_config_ok="no")
81 fi
82
83 PKG_CHECK_MODULES(GTHREADS, gthread-2.0 >=  2.2.0, HAVE_GTHREADS="yes", sweep_config_ok="no")
84 AC_SUBST(GTHREADS_CFLAGS)
85 AC_SUBST(GTHREADS_LIBS)
86 if test "x$HAVE_GTHREADS" != xyes ; then
87   AC_CHECK_LIB(gthread-2.0, g_thread_init, HAVE_GTHREADS="maybe", sweep_config_ok="no")
88 fi
89
90 dnl
91 dnl  Detect libsndfile 1.0
92 dnl
93
94 PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.0,
95                   HAVE_LIBSNDFILE1="yes", HAVE_LIBSNDFILE1="no")
96
97 if test "x$HAVE_LIBSNDFILE1" = xyes ; then
98   AC_DEFINE([HAVE_LIBSNDFILE1], [], [Define if we have libsndfile1.])
99   AC_SUBST(SNDFILE_LIBS)
100 else
101   sweep_config_ok="no"
102   AC_CHECK_LIB(sndfile, sf_open, HAVE_LIBSNDFILE1="maybe")
103 fi
104
105 if test "x$HAVE_LIBSNDFILE1" = xmaybe ; then
106   AC_CHECK_HEADERS(sndfile.h, HAVE_LIBSNDFILE1="ouch")
107   if test "x$HAVE_LIBSNDFILE1" = xouch ; then
108     AC_MSG_ERROR([
109 ***
110 *** libsndfile-1.0.0 or greater seems to exist on your system, however
111 *** the pkg-config tool cannot find its build information.
112 ***
113 *** Please set your PKG_CONFIG_PATH environment variable to include the
114 *** directory in which sndfile.pc was installed. For example, sndfile.pc
115 *** is installed in /usr/local/lib/pkgconfig by default; if that is the
116 *** case do:
117 ***
118 ***     export PKG_CONFIG_PATH="\$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
119 ***
120 *** then run this ./configure again. If you configured libsndfile with a
121 *** different --prefix option, replace /usr/local above with that prefix.
122 ***
123 ])
124   fi
125 fi
126
127 AC_CHECK_SIZEOF(off_t,1)
128
129
130 dnl
131 dnl Detect Ogg
132 dnl
133
134 HAVE_OGG=no
135 HAVE_VORBIS=no
136 HAVE_SPEEX=no
137
138 ac_enable_oggvorbis=yes
139 AC_ARG_ENABLE(oggvorbis,
140      [  --disable-oggvorbis     disable Ogg Vorbis support],
141      [ ac_enable_oggvorbis=no ], [ ac_enable_oggvorbis=yes ])
142
143 ac_enable_speex=yes
144 AC_ARG_ENABLE(speex,
145      [  --disable-speex         disable Speex support],
146      [ ac_enable_speex=no ], [ ac_enable_speex=yes ])
147
148 dnl Both Vorbis and Speex require Ogg, so check for it first either way
149 if test "x${ac_enable_oggvorbis}" != xno ||
150    test "x${ac_enable_speex}" != xno ; then
151
152   XIPH_PATH_OGG(HAVE_OGG="yes", HAVE_OGG="no")
153   if test "x$HAVE_OGG" = xno ; then
154     AC_CHECK_LIB(ogg, ogg_stream_init, HAVE_OGG="maybe")
155   fi
156   if test "x$HAVE_OGG" = xmaybe; then
157     AC_CHECK_HEADER([ogg/ogg.h], HAVE_OGG="yes", HAVE_OGG="no")
158   fi
159
160   AC_SUBST(OGG_LIBS)
161 fi
162
163 dnl
164 dnl Detect Vorbis
165 dnl
166 dnl LIBS="$LIBS -lm -logg -lvorbis -lvorbisenc -lvorbisfile"
167
168 if test "x$HAVE_OGG" = xyes && test "x${ac_enable_oggvorbis}" != xno ; then
169
170   XIPH_PATH_VORBIS(HAVE_VORBIS="yes", HAVE_VORBIS="no")
171
172   dnl Fall back to explicit checks if this fails
173   if test "x$HAVE_VORBIS" = xno ; then
174     AC_MSG_RESULT([
175 *** Trying explicit detection of Ogg Vorbis libraries and headers ...])
176     AC_CHECK_LIB(vorbis, vorbis_info_init, HAVE_VORBIS="maybe", ,
177                  [-lm -logg])
178     AC_CHECK_LIB(vorbisenc, vorbis_encode_init, HAVE_VORBISENC="maybe", ,
179                  [-lm -logg -lvorbis])
180     AC_CHECK_LIB(vorbisfile, ov_open, HAVE_VORBISFILE="maybe", ,
181                  [-lm -logg -lvorbis])
182     AC_CHECK_HEADERS([vorbis/codec.h vorbis/vorbisfile.h vorbis/vorbisenc.h],
183                      HAVE_VORBIS_HEADERS="yes", HAVE_VORBIS_HEADERS="no")
184
185     if test "x$HAVE_VORBIS" = xmaybe && test "x$HAVE_VORBISENC" = xmaybe &&
186        test "x$HAVE_VORBISFILE" = xmaybe &&
187        test "x$HAVE_VORBIS_HEADERS" = xyes ; then
188
189        VORBIS_LIBS="-lvorbis -lm"
190        VORBISFILE_LIBS="-lvorbisfile"
191        VORBISENC_LIBS="-lvorbisenc"
192        VORBIS_CFLAGS=""
193
194        dnl HAVE_VORBIS="maybe"
195        HAVE_VORBIS="yes"
196     else
197        HAVE_VORBIS="no"
198     fi
199   fi
200
201   AC_SUBST(VORBIS_LIBS)
202   AC_SUBST(VORBISENC_LIBS)
203   AC_SUBST(VORBISFILE_LIBS)
204
205   if test "x$HAVE_VORBIS" = xyes ; then
206     AC_DEFINE([HAVE_OGGVORBIS], [], [Define if we have Ogg Vorbis.])
207
208     dnl Test out ov_read_float
209     AC_MSG_CHECKING([for deprecated ov_read_float() interface])
210
211     ac_save_CFLAGS="$CFLAGS"
212     ac_save_LIBS="$LIBS"
213     CFLAGS="$CFLAGS $OGG_CFLAGS $VORBIS_CFLAGS"
214     LIBS="$LIBS $OGG_LIBS $VORBIS_LIBS $VORBISFILE_LIBS"
215
216     AC_TRY_COMPILE([#include <vorbis/codec.h>
217                     #include <vorbis/vorbisfile.h> ],
218                    [OggVorbis_File * vf; float ** pcm; int b;
219                     ov_read_float (vf, &pcm, &b);],
220                    [ AC_DEFINE([OV_READ_FLOAT_THREE_ARGS], [], [Define if ov_read_float takes 3 arguments.])
221                      AC_MSG_RESULT(yes) ],
222                    [ AC_MSG_RESULT(no) ])
223
224     CFLAGS="$ac_save_CFLAGS"
225     LIBS="$ac_save_LIBS"
226
227   else
228     sweep_config_ok="no"
229   fi
230
231 else
232   HAVE_VORBIS=disabled
233 fi
234
235 dnl
236 dnl Detect speex
237 dnl
238 dnl LIBS="$LIBS -lm -logg -lspeex"
239
240 if test "x$HAVE_OGG" = xyes && test "x${ac_enable_speex}" != xno ; then
241
242   XIPH_PATH_SPEEX(HAVE_SPEEX="yes", HAVE_SPEEX="no")
243
244   dnl Fall back to explicit checks if this fails
245   if test "x$HAVE_SPEEX" = xno ; then
246     AC_CHECK_LIB(speex, speex_encoder_init, HAVE_SPEEX="maybe", , [-lm -logg])
247     if test "x$HAVE_SPEEX" = xmaybe; then
248       AC_CHECK_HEADER(speex.h, HAVE_SPEEX="yes",
249         [AC_CHECK_HEADER([speex/speex.h], HAVE_SPEEX="yes", HAVE_SPEEX="no")]
250       )
251     fi
252   fi
253
254   if test "x$HAVE_SPEEX" = xyes ; then
255     AC_CHECK_HEADER([speex/speex.h],
256                     AC_DEFINE(HAVE_SPEEX_SUBDIR, [1], [Define to 1 if speex headers are eg. <speex/speex.h>])
257     )
258
259     AC_DEFINE([HAVE_SPEEX], [], [Define if we have speex.])
260     SPEEX_LIBS="-lspeex -lm"
261     AC_SUBST(SPEEX_LIBS)
262   fi
263
264 else
265   HAVE_SPEEX=disabled
266 fi
267
268
269 dnl
270 dnl Detect libmad
271 dnl
272
273 HAVE_MAD=no
274
275 ac_enable_mad=yes
276 AC_ARG_ENABLE(mad,
277      [  --disable-mad           disable libmad (MPEG audio loading) support],
278      [ ac_enable_mad=no ], [ ac_enable_mad=yes ])
279
280 if test "x${ac_enable_mad}" != xno ; then
281   AC_CHECK_LIB(mad, mad_decoder_init, HAVE_MAD="maybe")
282
283   if test "x$HAVE_MAD" = xmaybe ; then
284     AC_CHECK_HEADER(mad.h, HAVE_MAD="yes", HAVE_MAD="no")
285   fi
286   if test "x$HAVE_MAD" = xyes ; then
287     AC_DEFINE([HAVE_MAD], [], [Define if we have mad.])
288     MAD_LIBS="-lmad"
289     AC_SUBST(MAD_LIBS)
290   fi
291
292 else
293   HAVE_MAD=disabled
294 fi
295
296 dnl
297 dnl Detect secret rabbit code
298 dnl
299
300 HAVE_LIBSAMPLERATE=no
301
302 ac_enable_src=yes
303 AC_ARG_ENABLE(src,
304      [  --disable-src            enable secret rabbit code (libsamplerate)],
305      [ ac_enable_src=no ], [ ac_enable_src=yes])
306
307 if test "x${ac_enable_src}" != xno ; then
308   PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.0.9,
309                     HAVE_LIBSAMPLERATE="yes", HAVE_LIBSAMPLERATE="no")
310
311   if test "x$HAVE_LIBSAMPLERATE" = xyes ; then
312     AC_DEFINE([HAVE_LIBSAMPLERATE], [], [Define if we have libsamplerate.])
313     AC_SUBST(SAMPLERATE_LIBS)
314   fi
315 else
316   HAVE_LIBSAMPLERATE=disabled
317 fi
318
319
320 dnl
321 dnl Test for ALSA -- requires explicit enabling
322 dnl
323
324
325 ac_enable_alsa=yes
326 AC_ARG_ENABLE(alsa,
327      [  --enable-alsa           enable use of ALSA, and disable use of OSS ],
328      [ ac_enable_alsa=yes ])
329
330 if test "x${ac_enable_alsa}" != xno ; then
331
332   PKG_CHECK_MODULES(ALSA, alsa >= 1.0.0,
333                   HAVE_ALSA="yes", sweep_config_ok="no")
334   AC_SUBST(ALSA_CFLAGS)
335   AC_SUBST(ALSA_LIBS)
336   AC_DEFINE([DRIVER_ALSA], [], [Define if we have and want alsa.])
337   if test "x$HAVE_ALSA" != xyes ; then
338     AC_CHECK_LIB(asound, snd_seq_open, HAVE_ALSA="maybe", sweep_config_ok="no")
339   fi   
340   sweep_config_driver="ALSA"
341 fi
342
343 dnl Test for OSS
344 AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h)
345 if test "x${ac_cv_header_sys_soundcard_h}" = xyes || \
346   test "x${ac_cv_header_machine_soundcard_h}" = xyes; then
347   if test "x$ac_enable_alsa" = xno ; then
348     AC_DEFINE([DRIVER_OSS], [], [Define if we have and want OSS.])
349
350     dnl Check for NetBSD's OSS compatability layer
351     AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBS="$LIBS -lossaudio")
352
353     sweep_config_driver="OSS"
354   fi
355 fi
356
357 dnl Test for Solaris audio
358 case $host in
359 *-*-solaris*)
360 AC_CHECK_HEADERS(sys/audioio.h)
361 if test "x${ac_cv_header_sys_audioio_h}" = xyes; then
362     AC_DEFINE([DRIVER_SOLARIS_AUDIO], [], [Define if we have and want the solaris audio driver.])
363     sweep_config_driver="Solaris"
364 fi
365 ;;
366 esac
367
368
369 dnl Set PACKAGE_LOCALE_DIR in config.h.
370 if test "x${prefix}" = xNONE; then
371   AC_DEFINE_UNQUOTED([PACKAGE_LOCALE_DIR], "${ac_default_prefix}/${DATADIRNAME}/locale", [Define the PACKAGE_LOCALE_DIR.])
372 else
373   AC_DEFINE_UNQUOTED([PACKAGE_LOCALE_DIR], "${prefix}/${DATADIRNAME}/locale")
374 fi
375
376 dnl Set PACKAGE_DATA_DIR in config.h.
377 if test "x${datadir}" = 'x${prefix}/share'; then
378   if test "x${prefix}" = xNONE; then
379     AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${ac_default_prefix}/share/${PACKAGE}", [Define the PACKAGE_DATA_DIR.])
380   else
381     AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}")
382   fi
383 else
384   AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}")
385 fi
386
387 dnl Set PACKAGE_PLUGIN_DIR in Makefiles and config.h.
388 PACKAGE_PLUGIN_DIR=$libdir/sweep
389 AC_SUBST(PACKAGE_PLUGIN_DIR)
390 if test "x${prefix}" = xNONE; then
391   sweep_plugin_dir="${ac_default_prefix}/lib/${PACKAGE}"
392 else
393   sweep_plugin_dir="${prefix}/lib/${PACKAGE}"
394 fi
395 AC_DEFINE_UNQUOTED([PACKAGE_PLUGIN_DIR], "$sweep_plugin_dir", [Define the PACKAGE_PLUGIN_DIR.])
396
397 dnl Set PACKAGE_SOURCE_DIR in config.h.
398 packagesrcdir=`cd $srcdir && pwd`
399 AC_DEFINE_UNQUOTED([PACKAGE_SOURCE_DIR], "${packagesrcdir}", [Define the PACKAGE_SOURCE_DIR.])
400
401
402 AC_ARG_ENABLE(gcc-werror,
403         AC_HELP_STRING([--enable-gcc-werror], [enable -Werror in all Makefiles]))
404
405 dnl Use -Wall if we have gcc.
406 dnl changequote(,)dnl
407 if test "x$ac_cv_prog_gcc" = xyes ; then
408   CFLAGS="$CFLAGS -Wall"
409
410   if test x$enable_gcc_werror = "xyes" ; then
411     CFLAGS="$CFLAGS -Werror"
412         fi
413
414 fi
415 dnl changequote([,])dnl
416
417 dnl - Modified from www.nagios.org who modified it from www.erlang.org
418
419 dnl   Check how to export functions from the sweep executable, needed
420 dnl   when dynamically loaded drivers are loaded (so that they can find
421 dnl   sweep functions).
422 dnl   OS'es with ELF executables using the GNU linker (Linux and recent *BSD ,
423 dnl   in rare cases Solaris) typically need '-Wl,-export-dynamic' (i.e. pass
424 dnl   -export-dynamic to the linker - also known as -rdynamic and some other
425 dnl   variants); some sysVr4 system(s) instead need(s) '-Wl,-Bexport'.
426 dnl   AIX 4.x (perhaps only for x>=2) wants -Wl,-bexpall,-brtl and doesn't
427 dnl   reliably return an error for others, thus we separate it out.
428 dnl   Otherwise we assume that if the linker accepts the flag, it is needed.
429      
430        AC_MSG_CHECKING(for extra flags needed to export symbols)
431        case $host_os in
432                aix4*|aix5*)
433                        EXPORT_DYNAMIC_FLAGS="-Wl,-bexpall,-brtl"
434                ;;
435                bsdi*)
436                        EXPORT_DYNAMIC_FLAGS="-rdynamic"
437                ;;
438                *)
439                        save_ldflags="$LDFLAGS"
440                        LDFLAGS=-Wl,-export-dynamic
441                        AC_TRY_LINK(,,[EXPORT_DYNAMIC_FLAGS="-Wl,-export-dynamic"], [
442                                LDFLAGS=-Wl,-Bexport
443                                AC_TRY_LINK(,,[EXPORT_DYNAMIC_FLAGS="- Wl,-Bexport"],
444                                        AC_MSG_RESULT(none))])
445                        LDFLAGS="$save_ldflags"
446                ;;
447        esac
448        AC_SUBST(EXPORT_DYNAMIC_FLAGS)
449        test "x$EXPORT_DYNAMIC_FLAGS" != x && AC_MSG_RESULT([$EXPORT_DYNAMIC_FLAGS])
450
451
452
453 dnl
454 dnl  Configuration tests complete -- provide summary of results.
455 dnl
456
457 if test $sweep_config_ok = no ; then
458
459 AC_MSG_RESULT([
460 **************************************************************
461
462 *** Sweep $VERSION: Automatic configuration FAILED.
463
464 *** The file config.log has full details.
465
466 *** The following required libraries are missing or
467 *** misconfigured on your system:
468 ])
469
470 if test "x$HAVE_GLIB" != xyes ||  test "x$HAVE_GTHREADS" != xyes; then
471   AC_MSG_RESULT([
472 *** GLib version 2.2.x or greater, available from  http://www.gtk.org/
473 ])
474 fi
475
476 if test "x$HAVE_GLIB" = xmaybe || test "x$HAVE_GTHREADS" = xmaybe; then
477   AC_MSG_RESULT([
478       Development files missing: The libglib-2.0 binary seems
479       to be installed, but the pkg-config tool cannot find its build
480       information.
481 ])
482 fi
483
484 if test "x$HAVE_GTK" != xyes ; then
485   AC_MSG_RESULT([
486 *** GTK+ version 2.2.x or greater, available from  http://www.gtk.org/
487 ])
488 fi
489 if test "x$HAVE_GTK" = xmaybe ; then
490   AC_MSG_RESULT([
491       Development files missing: The libgtk binary seems
492       to be installed, but the pkg-config tool cannot find its build
493       information..
494 ])
495 fi
496
497 if test "x$HAVE_LIBSNDFILE1" != xyes ; then
498   AC_MSG_RESULT([
499 *** libsndfile version 1.0.0 or greater, available from
500 *** http://www.mega-nerd.com/libsndfile/
501 ])
502 fi
503 if test "x$HAVE_LIBSNDFILE1" = xmaybe ; then
504     AC_MSG_RESULT([
505       Development files missing: libsndfile-1.0.0 or greater
506       seems to exist on your system, however the header files
507       are missing and the pkg-config tool cannot find its build
508       information.
509 ])
510 fi
511
512 if test "x$HAVE_ALSA" = xmaybe ; then
513     AC_MSG_RESULT([
514       Development files missing: alsa-lib 1.0.0 or greater seems to exist
515       on your system, however the pkg-config tool cannot find the
516       build information.
517 ])
518 fi
519
520 if test "x$HAVE_ALSA" != xyes ; then
521   AC_MSG_RESULT([
522 *** alsa-lib version 1.0.0 or greater, available from
523 *** http://alsa-project.org/
524 ])
525 fi
526
527 if test "x$HAVE_VORBIS" = xmaybe ; then
528     AC_MSG_RESULT([
529       Development files missing: The libogg, libvorbis, libvorbisenc and
530       libvorbisfile library binaries seem to be installed, but building of
531       a test program failed.
532 ])
533 fi
534
535 if test "x$HAVE_VORBIS" != xyes ; then
536     AC_MSG_RESULT([
537 *** Ogg Vorbis libraries, available from  http://www.xiph.org/ogg/vorbis/
538 ])
539 fi
540
541 if test "x$HAVE_VORBIS" != xyes ; then
542     AC_MSG_RESULT([
543 *** Or, to build a version of Sweep without Ogg Vorbis support, do:
544 ***
545 ***         ./configure --disable-oggvorbis
546 ])
547 fi
548
549 if test "x$HAVE_GLIB" = xmaybe || test "x$HAVE_GTK" = xmaybe ||
550    test "x$HAVE_LIBSNDFILE1" = xmaybe || test "x$HAVE_TDB" = xmaybe ||
551    test "x$HAVE_GTHREADS" = xmaybe || test "x$HAVE_ALSA" = xmaybe ||
552    test "x$HAVE_OGG" = xmaybe || test "x$HAVE_VORBIS" = xmaybe ; then
553   AC_MSG_RESULT([
554 *** HOW TO FIX "development files missing": you have probably
555 *** installed the library package from your distribution. You
556 *** must also install the library's "development" package.
557 ])
558 fi
559
560 AC_MSG_RESULT([
561 *** If you install the required libraries from source, you
562 *** need to inform the dynamic linker of their location. If
563 *** you install them in a system-wide directory such as
564 *** /usr/local (the default), you must ensure that
565 *** /usr/local/lib is listed in /etc/ld.so.conf, then run
566 *** ldconfig to update the dynamic linking system.
567 *** Alternatively, you can set your LD_LIBRARY_PATH environment
568 *** variable to include the library installation directory.
569 ])
570
571
572 AC_MSG_RESULT([
573 **************************************************************
574 ])
575
576 AC_MSG_ERROR([
577 ***
578 *** After fixing the above problems, you must run ./configure again.
579 ***
580 ])
581
582 else
583
584 AC_OUTPUT([
585 Makefile
586 sweep.spec
587 m4/Makefile
588 include/Makefile
589 include/sweep/Makefile
590 src/Makefile
591 src/tdb/Makefile
592 plugins/Makefile
593 plugins/echo/Makefile
594 plugins/normalise/Makefile
595 plugins/fade/Makefile
596 plugins/reverse/Makefile
597 plugins/ladspa/Makefile
598 plugins/byenergy/Makefile
599 plugins/example/Makefile
600 doc/Makefile
601 intl/Makefile
602 po/Makefile.in
603 ])
604
605 AC_MSG_RESULT([
606   ************************************************************
607  * Sweep $VERSION:  Automatic configuration OK.
608 **
609 **  Configuration summary:
610 **
611 **     Experimental code: ....... ${ac_enable_experimental}
612 **     Audio device handling: ... $sweep_config_driver
613 **     PCM: libsndfile .......... $HAVE_LIBSNDFILE1
614 **     Ogg Vorbis support: ...... $HAVE_VORBIS
615 **     MPEG (MP3) loading: ...... $HAVE_MAD
616 **     Speex support: ........... $HAVE_SPEEX
617 **     Secret Rabbit Code: ...... $HAVE_LIBSAMPLERATE
618 **     Translations: ............ $ALL_LINGUAS
619 **
620 **  Installation directories:
621 **
622 **     Program: ................. ${prefix}/bin
623 **     Plugins: ................. $sweep_plugin_dir
624 **
625 **************************************************************
626 **
627 **  Type 'make' to compile Sweep.
628 **
629 **  Type 'make install' to install Sweep. Plugins will not be
630 **  accessible until you have done this.
631 ** 
632 **  Have fun with Scrubby!
633  *
634   ************************************************************
635 ])
636
637 fi
Note: See TracBrowser for help on using the browser.