root/sweep/branches/sweep-info-panel/configure.ac

Revision 452, 18.5 kB (checked in by radekk, 5 years ago)

Add TagLib? support - IDTAGs can be examined with info panel. In the future IDTAGs could be written.
Corrected newer automake and ${datadir} problems.

  • 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 dnl
369 dnl Check for TagLib 1.4
370 dnl
371 AC_CHECK_TAGLIB(1.4,
372                 [AC_DEFINE([HAVE_TAGLIB],1,[TagLib Support])] [HAVE_TAGLIB=yes],
373                 [AC_MSG_RESULT([no])
374                 echo "*** NOT compiling TagLib support"
375                 ]
376                 [HAVE_TAGLIB=no])
377
378 dnl Set PACKAGE_LOCALE_DIR in config.h.
379 if test "x${prefix}" = "xNONE"; then
380   AC_DEFINE_UNQUOTED([PACKAGE_LOCALE_DIR], "${ac_default_prefix}/${DATADIRNAME}/locale", [Define the PACKAGE_LOCALE_DIR.])
381 else
382   AC_DEFINE_UNQUOTED([PACKAGE_LOCALE_DIR], "${prefix}/${DATADIRNAME}/locale")
383 fi
384
385 dnl Set PACKAGE_DATA_DIR in config.h.
386 if test "x${datadir}" = 'x${prefix}/share'; then
387   if test "x${prefix}" = "xNONE"; then
388     AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${ac_default_prefix}/share/${PACKAGE}", [Define the PACKAGE_DATA_DIR.])
389   else
390     AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${prefix}/share/${PACKAGE}", [Define the PACKAGE_DATA_DIR.])
391   fi
392 elif test "x${datadir}" = 'x${datarootdir}'; then
393   if test "x${datarootdir}" = 'x${prefix}/share'; then
394     if test "x${prefix}" = "xNONE"; then
395       AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${ac_default_prefix}/share/${PACKAGE}", [Define the PACKAGE_DATA_DIR.])
396     else
397       AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${prefix}/share/${PACKAGE}", [Define the PACKAGE_DATA_DIR.])
398     fi
399   else
400     AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${datarootdir}/${PACKAGE}", [Define the PACKAGE_DATA_DIR.])
401   fi
402 else
403   AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${datadir}/${PACKAGE}", [Define the PACKAGE_DATA_DIR.])
404 fi
405
406 dnl Set PACKAGE_PLUGIN_DIR in Makefiles and config.h.
407 PACKAGE_PLUGIN_DIR=$libdir/sweep
408 AC_SUBST(PACKAGE_PLUGIN_DIR)
409 if test "x${prefix}" = "xNONE"; then
410   sweep_plugin_dir="${ac_default_prefix}/lib/${PACKAGE}"
411 else
412   sweep_plugin_dir="${prefix}/lib/${PACKAGE}"
413 fi
414 AC_DEFINE_UNQUOTED([PACKAGE_PLUGIN_DIR], "$sweep_plugin_dir", [Define the PACKAGE_PLUGIN_DIR.])
415
416 dnl Set PACKAGE_SOURCE_DIR in config.h.
417 packagesrcdir=`cd $srcdir && pwd`
418 AC_DEFINE_UNQUOTED([PACKAGE_SOURCE_DIR], "${packagesrcdir}", [Define the PACKAGE_SOURCE_DIR.])
419
420
421 AC_ARG_ENABLE(gcc-werror,
422         AC_HELP_STRING([--enable-gcc-werror], [enable -Werror in all Makefiles]))
423
424 dnl Use -Wall if we have gcc.
425 dnl changequote(,)dnl
426 if test "x$ac_cv_prog_gcc" = xyes ; then
427   CFLAGS="$CFLAGS -Wall"
428
429   if test x$enable_gcc_werror = "xyes" ; then
430     CFLAGS="$CFLAGS -Werror"
431         fi
432
433 fi
434 dnl changequote([,])dnl
435
436 dnl - Modified from www.nagios.org who modified it from www.erlang.org
437
438 dnl   Check how to export functions from the sweep executable, needed
439 dnl   when dynamically loaded drivers are loaded (so that they can find
440 dnl   sweep functions).
441 dnl   OS'es with ELF executables using the GNU linker (Linux and recent *BSD ,
442 dnl   in rare cases Solaris) typically need '-Wl,-export-dynamic' (i.e. pass
443 dnl   -export-dynamic to the linker - also known as -rdynamic and some other
444 dnl   variants); some sysVr4 system(s) instead need(s) '-Wl,-Bexport'.
445 dnl   AIX 4.x (perhaps only for x>=2) wants -Wl,-bexpall,-brtl and doesn't
446 dnl   reliably return an error for others, thus we separate it out.
447 dnl   Otherwise we assume that if the linker accepts the flag, it is needed.
448      
449        AC_MSG_CHECKING(for extra flags needed to export symbols)
450        case $host_os in
451                aix4*|aix5*)
452                        EXPORT_DYNAMIC_FLAGS="-Wl,-bexpall,-brtl"
453                ;;
454                bsdi*)
455                        EXPORT_DYNAMIC_FLAGS="-rdynamic"
456                ;;
457                *)
458                        save_ldflags="$LDFLAGS"
459                        LDFLAGS=-Wl,-export-dynamic
460                        AC_TRY_LINK(,,[EXPORT_DYNAMIC_FLAGS="-Wl,-export-dynamic"], [
461                                LDFLAGS=-Wl,-Bexport
462                                AC_TRY_LINK(,,[EXPORT_DYNAMIC_FLAGS="- Wl,-Bexport"],
463                                        AC_MSG_RESULT(none))])
464                        LDFLAGS="$save_ldflags"
465                ;;
466        esac
467        AC_SUBST(EXPORT_DYNAMIC_FLAGS)
468        test "x$EXPORT_DYNAMIC_FLAGS" != x && AC_MSG_RESULT([$EXPORT_DYNAMIC_FLAGS])
469
470
471
472 dnl
473 dnl  Configuration tests complete -- provide summary of results.
474 dnl
475
476 if test $sweep_config_ok = no ; then
477
478 AC_MSG_RESULT([
479 **************************************************************
480
481 *** Sweep $VERSION: Automatic configuration FAILED.
482
483 *** The file config.log has full details.
484
485 *** The following required libraries are missing or
486 *** misconfigured on your system:
487 ])
488
489 if test "x$HAVE_GLIB" != xyes ||  test "x$HAVE_GTHREADS" != xyes; then
490   AC_MSG_RESULT([
491 *** GLib version 2.2.x or greater, available from  http://www.gtk.org/
492 ])
493 fi
494
495 if test "x$HAVE_GLIB" = xmaybe || test "x$HAVE_GTHREADS" = xmaybe; then
496   AC_MSG_RESULT([
497       Development files missing: The libglib-2.0 binary seems
498       to be installed, but the pkg-config tool cannot find its build
499       information.
500 ])
501 fi
502
503 if test "x$HAVE_GTK" != xyes ; then
504   AC_MSG_RESULT([
505 *** GTK+ version 2.2.x or greater, available from  http://www.gtk.org/
506 ])
507 fi
508 if test "x$HAVE_GTK" = xmaybe ; then
509   AC_MSG_RESULT([
510       Development files missing: The libgtk binary seems
511       to be installed, but the pkg-config tool cannot find its build
512       information..
513 ])
514 fi
515
516 if test "x$HAVE_LIBSNDFILE1" != xyes ; then
517   AC_MSG_RESULT([
518 *** libsndfile version 1.0.0 or greater, available from
519 *** http://www.mega-nerd.com/libsndfile/
520 ])
521 fi
522 if test "x$HAVE_LIBSNDFILE1" = xmaybe ; then
523     AC_MSG_RESULT([
524       Development files missing: libsndfile-1.0.0 or greater
525       seems to exist on your system, however the header files
526       are missing and the pkg-config tool cannot find its build
527       information.
528 ])
529 fi
530
531 if test "x$HAVE_ALSA" = xmaybe ; then
532     AC_MSG_RESULT([
533       Development files missing: alsa-lib 1.0.0 or greater seems to exist
534       on your system, however the pkg-config tool cannot find the
535       build information.
536 ])
537 fi
538
539 if test "x$HAVE_ALSA" != xyes ; then
540   AC_MSG_RESULT([
541 *** alsa-lib version 1.0.0 or greater, available from
542 *** http://alsa-project.org/
543 ])
544 fi
545
546 if test "x$HAVE_VORBIS" = xmaybe ; then
547     AC_MSG_RESULT([
548       Development files missing: The libogg, libvorbis, libvorbisenc and
549       libvorbisfile library binaries seem to be installed, but building of
550       a test program failed.
551 ])
552 fi
553
554 if test "x$HAVE_VORBIS" != xyes ; then
555     AC_MSG_RESULT([
556 *** Ogg Vorbis libraries, available from  http://www.xiph.org/ogg/vorbis/
557 ])
558 fi
559
560 if test "x$HAVE_VORBIS" != xyes ; then
561     AC_MSG_RESULT([
562 *** Or, to build a version of Sweep without Ogg Vorbis support, do:
563 ***
564 ***         ./configure --disable-oggvorbis
565 ])
566 fi
567
568 if test "x$HAVE_GLIB" = xmaybe || test "x$HAVE_GTK" = xmaybe ||
569    test "x$HAVE_LIBSNDFILE1" = xmaybe || test "x$HAVE_TDB" = xmaybe ||
570    test "x$HAVE_GTHREADS" = xmaybe || test "x$HAVE_ALSA" = xmaybe ||
571    test "x$HAVE_OGG" = xmaybe || test "x$HAVE_VORBIS" = xmaybe ; then
572   AC_MSG_RESULT([
573 *** HOW TO FIX "development files missing": you have probably
574 *** installed the library package from your distribution. You
575 *** must also install the library's "development" package.
576 ])
577 fi
578
579 AC_MSG_RESULT([
580 *** If you install the required libraries from source, you
581 *** need to inform the dynamic linker of their location. If
582 *** you install them in a system-wide directory such as
583 *** /usr/local (the default), you must ensure that
584 *** /usr/local/lib is listed in /etc/ld.so.conf, then run
585 *** ldconfig to update the dynamic linking system.
586 *** Alternatively, you can set your LD_LIBRARY_PATH environment
587 *** variable to include the library installation directory.
588 ])
589
590
591 AC_MSG_RESULT([
592 **************************************************************
593 ])
594
595 AC_MSG_ERROR([
596 ***
597 *** After fixing the above problems, you must run ./configure again.
598 ***
599 ])
600
601 else
602
603 AC_OUTPUT([
604 Makefile
605 sweep.spec
606 m4/Makefile
607 include/Makefile
608 include/sweep/Makefile
609 src/Makefile
610 src/tdb/Makefile
611 plugins/Makefile
612 plugins/echo/Makefile
613 plugins/normalise/Makefile
614 plugins/fade/Makefile
615 plugins/reverse/Makefile
616 plugins/ladspa/Makefile
617 plugins/byenergy/Makefile
618 plugins/example/Makefile
619 doc/Makefile
620 intl/Makefile
621 po/Makefile.in
622 ])
623
624 AC_MSG_RESULT([
625   ************************************************************
626  * Sweep $VERSION:  Automatic configuration OK.
627 **
628 **  Configuration summary:
629 **
630 **     Experimental code: ....... ${ac_enable_experimental}
631 **     Audio device handling: ... $sweep_config_driver
632 **     PCM: libsndfile .......... $HAVE_LIBSNDFILE1
633 **     Ogg Vorbis support: ...... $HAVE_VORBIS
634 **     MPEG (MP3) loading: ...... $HAVE_MAD
635 **     Speex support: ........... $HAVE_SPEEX
636 **     Secret Rabbit Code: ...... $HAVE_LIBSAMPLERATE
637 **     TagLib Support: .......... $HAVE_TAGLIB
638 **     Translations: ............ $ALL_LINGUAS
639 **
640 **  Installation directories:
641 **
642 **     Program: ................. ${prefix}/bin
643 **     Plugins: ................. $sweep_plugin_dir
644 **
645 **************************************************************
646 **
647 **  Type 'make' to compile Sweep.
648 **
649 **  Type 'make install' to install Sweep. Plugins will not be
650 **  accessible until you have done this.
651 ** 
652 **  Have fun with Scrubby!
653  *
654   ************************************************************
655 ])
656
657 fi
Note: See TracBrowser for help on using the browser.