root/sweep/branches/sweep-ui-manager/configure.ac

Revision 383, 18.8 kB (checked in by kickback, 6 years ago)

fix makefile generation and add the pngs to EXTRA_DIST to include them in the dist tarball

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