b36fec39a14e43c2d1f9f9e8b8e8df981db19c6e
[profile/ivi/pulseaudio-panda.git] / configure.ac
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 # This file is part of PulseAudio.
5 #
6 # Copyright 2004-2008 Lennart Poettering
7 # Copyright 2006-2007 Pierre Ossman <ossman@cendio.se> for Cendio AB
8 #
9 # PulseAudio is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU Lesser General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
13 #
14 # PulseAudio is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details.
18 #
19 # You should have received a copy of the GNU Lesser General Public License
20 # along with PulseAudio; if not, write to the Free Software Foundation,
21 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
22
23 AC_PREREQ(2.63)
24
25 m4_define(PA_MAJOR, [0])
26 m4_define(PA_MINOR, [9])
27 m4_define(PA_MICRO, [14])
28
29 AC_INIT([pulseaudio],[PA_MAJOR.PA_MINOR.PA_MICRO],[mzchyfrnhqvb (at) 0pointer (dot) net])
30 AC_CONFIG_SRCDIR([src/daemon/main.c])
31 AC_CONFIG_MACRO_DIR([m4])
32 AC_CONFIG_HEADERS([config.h])
33 AM_INIT_AUTOMAKE([foreign 1.10 -Wall])
34
35 AC_SUBST(PA_MAJORMINOR, PA_MAJOR.PA_MINOR)
36 AC_SUBST(PA_MAJORMINORMICRO, PA_MAJOR.PA_MINOR.PA_MICRO)
37 AC_SUBST(PACKAGE_URL, [http://pulseaudio.org/])
38
39 AC_SUBST(PA_API_VERSION, 12)
40 AC_SUBST(PA_PROTOCOL_VERSION, 15)
41
42 # The stable ABI for client applications, for the version info x:y:z
43 # always will hold y=z
44 AC_SUBST(LIBPULSE_VERSION_INFO, [7:0:7])
45
46 # A simplified, synchronous, ABI-stable interface for client
47 # applications, for the version info x:y:z always will hold y=z
48 AC_SUBST(LIBPULSE_SIMPLE_VERSION_INFO, [0:2:0])
49
50 # The ABI-stable network browsing interface for client applications,
51 # for the version info x:y:z always will hold y=z
52 AC_SUBST(LIBPULSE_BROWSE_VERSION_INFO, [1:1:1])
53
54 # The ABI-stable GLib adapter for client applications, for the version
55 # info x:y:z always will hold y=z
56 AC_SUBST(LIBPULSE_MAINLOOP_GLIB_VERSION_INFO, [0:4:0])
57
58 AC_CANONICAL_HOST
59 AC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
60
61 if type -p stow > /dev/null && test -d /usr/local/stow ; then
62    AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***])
63    ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
64 fi
65
66 #### Platform hacks ####
67
68 case $host in
69    *-*-solaris* )
70       AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Needed to get declarations for msg_control and msg_controllen on Solaris)
71       AC_DEFINE(_XOPEN_SOURCE,          2, Needed to get declarations for msg_control and msg_controllen on Solaris)
72       AC_DEFINE(__EXTENSIONS__,         1, Needed to get declarations for msg_control and msg_controllen on Solaris)
73       ;;
74 esac
75
76 #### Checks for programs. ####
77
78 # mkdir -p
79
80 AC_PROG_MKDIR_P
81
82 # CC
83
84 AC_PROG_CC
85 AC_PROG_CC_C99
86 AM_PROG_CC_C_O
87 AC_PROG_GCC_TRADITIONAL
88 AC_USE_SYSTEM_EXTENSIONS
89
90 # M4
91
92 AC_PATH_PROG([M4], [m4 gm4], [no])
93 if test "x$M4" = xno ; then
94    AC_MSG_ERROR([m4 missing])
95 fi
96
97 dnl Compiler flags
98 DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wno-long-long -Wvla -Wno-overlength-strings -Wconversion -Wundef -Wformat -Wlogical-op -Wpacked -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Wno-unused-parameter -ffast-math"
99
100 for flag in $DESIRED_FLAGS ; do
101   CC_CHECK_CFLAGS([$flag], [CFLAGS="$CFLAGS $flag"])
102 done
103
104 # Native atomic operation support
105 AC_ARG_ENABLE([atomic-arm-linux-helpers],
106     AS_HELP_STRING([--disable-atomic-arm-linux-helpers],[use inline asm or libatomic_ops instead]),
107         [
108             case "${enableval}" in
109                 yes) atomic_arm_linux_helpers=yes ;;
110                 no) atomic_arm_linux_helpers=no ;;
111                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-atomic-arm-linux-helpers) ;;
112             esac
113         ],
114         [atomic_arm_linux_helpers=auto])
115
116 AC_ARG_ENABLE([atomic-arm-memory-barrier],
117     AS_HELP_STRING([--enable-atomic-arm-memory-barrier],[only really needed in SMP arm systems]),
118         [
119             case "${enableval}" in
120                 yes) AC_DEFINE_UNQUOTED(ATOMIC_ARM_MEMORY_BARRIER_ENABLED, 1, [Enable memory barriers]) ;;
121                 no) ;;
122                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-atomic-arm-linux-helpers) ;;
123             esac
124         ],)
125
126 AC_MSG_CHECKING([target operating system])
127 case $host in
128         *-*-linux*)
129             AC_MSG_RESULT([linux])
130             pulse_target_os=linux
131         ;;
132         *)
133             AC_MSG_RESULT([unknown])
134             pulse_target_os=unknown
135         ;;
136 esac
137
138 # If everything else fails use libatomic_ops
139 need_libatomic_ops=yes
140
141 AC_CACHE_CHECK([whether $CC knows __sync_bool_compare_and_swap()],
142   pulseaudio_cv_sync_bool_compare_and_swap,
143   [AC_LINK_IFELSE(
144      AC_LANG_PROGRAM([], [[int a = 4; __sync_bool_compare_and_swap(&a, 4, 5);]]),
145      [pulseaudio_cv_sync_bool_compare_and_swap=yes],
146      [pulseaudio_cv_sync_bool_compare_and_swap=no])
147   ])
148
149 if test "$pulseaudio_cv_sync_bool_compare_and_swap" = "yes" ; then
150     AC_DEFINE([HAVE_ATOMIC_BUILTINS], 1, [Have __sync_bool_compare_and_swap() and friends.])
151     need_libatomic_ops=no
152 else
153     # HW specific atomic ops stuff
154     AC_MSG_CHECKING([architecture for native atomic operations])
155     case $host_cpu in
156         arm*)
157             AC_MSG_RESULT([arm])
158             AC_MSG_CHECKING([whether we can use Linux kernel helpers])
159             # The Linux kernel helper functions have been there since 2.6.16. However
160             # compile time checking for kernel version in cross compile environment
161             # (which is usually the case for arm cpu) is tricky (or impossible).
162             if test "x$pulse_target_os" = "xlinux" && test "x$atomic_arm_linux_helpers" != "xno"; then
163                 AC_MSG_RESULT([yes])
164                 AC_DEFINE_UNQUOTED(ATOMIC_ARM_LINUX_HELPERS, 1, [special arm linux implementation])
165                 need_libatomic_ops=no
166             else
167                AC_MSG_RESULT([no])
168                AC_CACHE_CHECK([compiler support for arm inline asm atomic operations],
169                  pulseaudio_cv_support_arm_atomic_ops,
170                  [AC_COMPILE_IFELSE(
171                     AC_LANG_PROGRAM([],
172                       [[volatile int a=0;
173                         int o=0, n=1, r;
174                         asm volatile ("ldrex    %0, [%1]\n"
175                                          "subs  %0, %0, %2\n"
176                                          "strexeq %0, %3, [%1]\n"
177                                          : "=&r" (r)
178                                          : "r" (&a), "Ir" (o), "r" (n)
179                                          : "cc");
180                         return (a==1 ? 0 : -1);
181                       ]]),
182                     [pulseaudio_cv_support_arm_atomic_ops=yes],
183                     [pulseaudio_cv_support_arm_atomic_ops=no])
184                  ])
185                AS_IF([test "$pulseaudio_cv_support_arm_atomic_ops" = "yes"], [
186                    AC_DEFINE([ATOMIC_ARM_INLINE_ASM], 1, [Have ARMv6 instructions.])
187                    need_libatomic_ops=no
188                  ])
189            fi
190         ;;
191         *)
192             AC_MSG_RESULT([unknown])
193         ;;
194     esac
195 fi
196
197 CC_CHECK_TLS
198
199 AC_CACHE_CHECK([whether $CC knows _Bool],
200   pulseaudio_cv__Bool,
201   [AC_COMPILE_IFELSE(
202      AC_LANG_PROGRAM([], [[_Bool b;]]),
203      [pulseaudio_cv__Bool=yes],
204      [pulseaudio_cv__Bool=no])
205   ])
206
207 AS_IF([test "$pulseaudio_cv__Bool" = "yes"], [
208     AC_DEFINE([HAVE_STD_BOOL], 1, [Have _Bool.])
209   ])
210
211 #### libtool stuff ####
212 LT_PREREQ(2.2)
213 LT_CONFIG_LTDL_DIR([libltdl])
214 LT_INIT([dlopen win32-dll disable-static])
215 LTDL_INIT([convenience recursive])
216
217 #### Determine build environment ####
218
219 os_is_win32=0
220
221 case "$host_os" in
222         mingw*)
223         AC_DEFINE([OS_IS_WIN32], 1, [Build target is Windows.])
224         os_is_win32=1
225                 ;;
226         esac
227
228 AM_CONDITIONAL(OS_IS_WIN32, test "x$os_is_win32" = "x1")
229
230 ###################################
231 #   Basic environment checks      #
232 ###################################
233
234 #### Checks for header files. ####
235
236 # ISO
237 AC_HEADER_STDC
238
239 # POSIX
240 AC_CHECK_HEADERS([arpa/inet.h glob.h grp.h netdb.h netinet/in.h \
241     netinet/in_systm.h netinet/tcp.h poll.h pwd.h sched.h \
242     sys/mman.h sys/resource.h sys/select.h sys/socket.h sys/wait.h \
243     syslog.h sys/dl.h dlfcn.h linux/sockios.h])
244 AC_CHECK_HEADERS([netinet/ip.h], [], [],
245                  [#include <sys/types.h>
246                   #if HAVE_NETINET_IN_H
247                   # include <netinet/in.h>
248                   #endif
249                   #if HAVE_NETINET_IN_SYSTM_H
250                   # include <netinet/in_systm.h>
251                   #endif
252                  ])
253 AC_CHECK_HEADERS([regex.h], [HAVE_REGEX=1], [HAVE_REGEX=0])
254 AC_CHECK_HEADERS([sys/un.h], [HAVE_AF_UNIX=1], [HAVE_AF_UNIX=0])
255
256 AM_CONDITIONAL(HAVE_REGEX, test "x$HAVE_REGEX" = "x1")
257 AM_CONDITIONAL(HAVE_AF_UNIX, test "x$HAVE_AF_UNIX" = "x1")
258
259 # Linux
260 AC_CHECK_HEADERS([linux/input.h], [HAVE_EVDEV=1], [HAVE_EVDEV=0])
261
262 AM_CONDITIONAL([HAVE_EVDEV], [test "x$HAVE_EVDEV" = "x1"])
263
264 AC_CHECK_HEADERS([sys/prctl.h])
265
266 # Solaris
267 AC_CHECK_HEADERS([sys/filio.h])
268
269 # Windows
270 AC_CHECK_HEADERS([windows.h winsock2.h ws2tcpip.h])
271
272 # Other
273 AC_CHECK_HEADERS([sys/ioctl.h])
274 AC_CHECK_HEADERS([byteswap.h])
275 AC_CHECK_HEADERS([sys/syscall.h])
276 AC_CHECK_HEADERS([sys/eventfd.h])
277 AC_CHECK_HEADERS([execinfo.h])
278
279 #### Typdefs, structures, etc. ####
280
281 AC_C_CONST
282 AC_C_BIGENDIAN
283 AC_TYPE_PID_T
284 AC_TYPE_SIZE_T
285 AC_CHECK_TYPES(ssize_t, , [AC_DEFINE([ssize_t], [signed long],
286     [Define ssize_t if it is not done by the standard libs.])])
287 AC_TYPE_OFF_T
288
289 AC_TYPE_UID_T
290 AC_CHECK_DECLS(environ)
291
292 AC_CHECK_DEFINE([SIGXCPU], [signal.h], [
293 HAVE_SIGXCPU=1
294 AC_DEFINE([HAVE_SIGXCPU], 1, [Have SIGXCPU?])
295 ], [HAVE_SIGXCPU=0])
296 AM_CONDITIONAL(HAVE_SIGXCPU, test "x$HAVE_SIGXCPU" = "x1")
297
298 # Solaris lacks this
299 AC_CHECK_DEFINE([INADDR_NONE], [netinet/in.h], [],
300     [AC_CHECK_DEFINE([INADDR_NONE], [winsock2.h], [],
301         [AC_DEFINE([INADDR_NONE],  [0xffffffff], [Define INADDR_NONE if not found in <netinet/in.h>])])])
302
303 #### POSIX threads ####
304
305 ACX_PTHREAD
306
307 #### Check for libs ####
308
309 # ISO
310 AC_SEARCH_LIBS([pow], [m])
311
312 # POSIX
313 AC_SEARCH_LIBS([sched_setscheduler], [rt])
314 AC_SEARCH_LIBS([dlopen], [dl])
315 AC_SEARCH_LIBS([shm_open], [rt])
316 AC_SEARCH_LIBS([inet_ntop], [nsl])
317 AC_SEARCH_LIBS([timer_create], [rt])
318
319 # BSD
320 AC_SEARCH_LIBS([connect], [socket])
321
322 # Non-standard
323
324 # This magic is needed so we do not needlessly add static libs to the win32
325 # build, disabling its ability to make dlls.
326 AC_CHECK_FUNCS([getopt_long], [], [AC_CHECK_LIB([iberty], [getopt_long])])
327
328 AC_CHECK_LIB(gdbm, gdbm_open)
329 AC_CHECK_HEADERS(gdbm.h, [], [AC_MSG_ERROR([gdbm.h not found])])
330
331 #### Check for functions ####
332
333 # ISO
334 AC_CHECK_FUNCS([lrintf strtof])
335
336 # POSIX
337 AC_FUNC_FORK
338 AC_FUNC_GETGROUPS
339 AC_FUNC_SELECT_ARGTYPES
340 AC_CHECK_FUNCS([chmod chown clock_gettime getaddrinfo getgrgid_r \
341     getpwuid_r gettimeofday getuid inet_ntop inet_pton mlock nanosleep \
342     pipe posix_fadvise posix_madvise posix_memalign setpgid setsid shm_open \
343     sigaction sleep sysconf])
344 AC_CHECK_FUNCS([mkfifo], [HAVE_MKFIFO=1], [HAVE_MKFIFO=0])
345
346 AM_CONDITIONAL(HAVE_MKFIFO, test "x$HAVE_MKFIFO" = "x1")
347
348 # X/OPEN
349 AC_CHECK_FUNCS([readlink])
350
351 # SUSv2
352 AC_CHECK_FUNCS([ctime_r usleep])
353
354 # SUSv3
355 AC_CHECK_FUNCS([strerror_r])
356
357 # BSD
358 AC_CHECK_FUNCS([lstat])
359
360 # Non-standard
361
362 AC_CHECK_FUNCS([setresuid setresgid setreuid setregid seteuid setegid ppoll strsignal sig2str strtof_l])
363
364 AC_FUNC_ALLOCA
365
366 AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
367   pulseaudio_cv_PTHREAD_PRIO_INHERIT,
368   [save_CC=$CC; CC=$PTHREAD_CC
369    save_CFLAGS=$CFLAGS; CFLAGS=$PTHREAD_CFLAGS
370    save_LIBS=$LIBS; LIBS=$PTHREAD_LIBS
371    AC_LINK_IFELSE(
372      AC_LANG_PROGRAM(
373        [[
374          #include <pthread.h>
375        ]],
376        [[int i = PTHREAD_PRIO_INHERIT;]]),
377      [pulseaudio_cv_PTHREAD_PRIO_INHERIT=yes],
378      [pulseaudio_cv_PTHREAD_PRIO_INHERIT=no])
379    CC=$save_CC
380    CFLAGS=$save_CFLAGS
381    LIBS=$save_LIBS
382   ])
383
384 AS_IF([test "$pulseaudio_cv_PTHREAD_PRIO_INHERIT" = "yes"], [
385     AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], 1, [Have PTHREAD_PRIO_INHERIT.])
386   ])
387
388 AC_DEFINE_UNQUOTED(PA_CFLAGS,"$CFLAGS", [The CFLAGS used during compilation])
389
390 #### Large File-Support (LFS) ####
391
392 AC_SYS_LARGEFILE
393
394 # Check for open64 to know if the current system does have open64() and similar functions
395 AC_CHECK_FUNCS([open64])
396
397 #### [lib]iconv ####
398
399 AM_ICONV
400
401 IT_PROG_INTLTOOL([0.35.0])
402 GETTEXT_PACKAGE=pulseaudio
403 AC_SUBST([GETTEXT_PACKAGE])
404 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
405 AM_GLIB_GNU_GETTEXT
406
407 pulselocaledir='${prefix}/${DATADIRNAME}/locale'
408 AC_SUBST(pulselocaledir)
409
410 ###################################
411 #      External libraries         #
412 ###################################
413
414 #### X11 (optional) ####
415
416 HAVE_X11=0
417
418 # The macro tests the host, not the build target
419 if test "x$os_is_win32" != "x1" ; then
420     AC_PATH_XTRA
421     test "x$no_x" != "xyes" && HAVE_X11=1
422 fi
423
424 AC_SUBST(HAVE_X11)
425 AM_CONDITIONAL(HAVE_X11, test "x$HAVE_X11" = "x1")
426 if test "x$HAVE_X11" = "x1" ; then
427     AC_DEFINE([HAVE_X11], 1, [Have X11])
428 fi
429
430 #### Capabilities (optional) ####
431
432 CAP_LIBS=''
433
434 AC_ARG_WITH(
435         [caps],
436         AS_HELP_STRING([--without-caps],[Omit support for POSIX capabilities.]))
437
438 if test "x${with_caps}" != "xno"; then
439     AC_SEARCH_LIBS([cap_init], [cap], [], [
440                     if test "x${with_caps}" = "xyes" ; then
441                         AC_MSG_ERROR([*** POSIX caps libraries not found])
442                     fi])
443     AC_CHECK_HEADERS([sys/capability.h], [], [
444                     if test "x${with_caps}" = "xyes" ; then
445                         AC_MSG_ERROR([*** POSIX caps headers not found])
446                     fi])
447 fi
448
449 #### Valgrind (optional) ####
450
451 AC_CHECK_HEADERS([valgrind/memcheck.h])
452
453 #### pkg-config ####
454
455 # Check for pkg-config manually first, as if its not installed the
456 # PKG_PROG_PKG_CONFIG macro won't be defined.
457 AC_CHECK_PROG(have_pkg_config, pkg-config, yes, no)
458
459 if test x"$have_pkg_config" = "xno"; then
460     AC_MSG_ERROR(pkg-config is required to install this program)
461 fi
462
463 PKG_PROG_PKG_CONFIG
464
465 #### Sound file ####
466
467 PKG_CHECK_MODULES(LIBSNDFILE, [ sndfile >= 1.0.10 ])
468 AC_SUBST(LIBSNDFILE_CFLAGS)
469 AC_SUBST(LIBSNDFILE_LIBS)
470
471 PKG_CHECK_MODULES(LIBSPEEX, [ speexdsp >= 1.2 ])
472 AC_SUBST(LIBSPEEX_CFLAGS)
473 AC_SUBST(LIBSPEEX_LIBS)
474
475 #### atomic-ops ###
476
477 AC_MSG_CHECKING([whether we need libatomic_ops])
478 if test "x$need_libatomic_ops" = "xyes"; then
479    AC_MSG_RESULT([yes])
480    AC_CHECK_HEADERS([atomic_ops.h], [], [
481    AC_MSG_ERROR([*** libatomic-ops headers not found])
482    ])
483
484    # Win32 does not need the lib and breaks horribly if we try to include it
485    if test "x$os_is_win32" != "x1" ; then
486        LIBS="$LIBS -latomic_ops"
487    fi
488 else
489    AC_MSG_RESULT([no])
490 fi
491
492 #### Libsamplerate support (optional) ####
493
494 AC_ARG_ENABLE([samplerate],
495     AS_HELP_STRING([--disable-samplerate],[Disable optional libsamplerate support]),
496         [
497             case "${enableval}" in
498                 yes) samplerate=yes ;;
499                 no) samplerate=no ;;
500                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-samplerate) ;;
501             esac
502         ],
503         [samplerate=auto])
504
505 if test "x${samplerate}" != xno ; then
506     PKG_CHECK_MODULES(LIBSAMPLERATE, [ samplerate >= 0.1.0 ],
507         HAVE_LIBSAMPLERATE=1,
508         [
509             HAVE_LIBSAMPLERATE=0
510             if test "x$samplerate" = xyes ; then
511                 AC_MSG_ERROR([*** Libsamplerate not found])
512             fi
513         ])
514 else
515     HAVE_LIBSAMPLERATE=0
516 fi
517
518 if test "x${HAVE_LIBSAMPLERATE}" = x1 ; then
519    AC_DEFINE([HAVE_LIBSAMPLERATE], 1, [Have libsamplerate?])
520 fi
521
522 AC_SUBST(LIBSAMPLERATE_CFLAGS)
523 AC_SUBST(LIBSAMPLERATE_LIBS)
524 AC_SUBST(HAVE_LIBSAMPLERATE)
525 AM_CONDITIONAL([HAVE_LIBSAMPLERATE], [test "x$HAVE_LIBSAMPLERATE" = x1])
526
527 #### OSS support (optional) ####
528
529 AC_ARG_ENABLE([oss],
530     AS_HELP_STRING([--disable-oss],[Disable optional OSS support]),
531         [
532             case "${enableval}" in
533                 yes) oss=yes ;;
534                 no) oss=no ;;
535                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-oss) ;;
536             esac
537         ],
538         [oss=auto])
539
540 if test "x${oss}" != xno ; then
541     AC_CHECK_HEADERS([sys/soundcard.h],
542         [
543             HAVE_OSS=1
544             AC_DEFINE([HAVE_OSS], 1, [Have OSS?])
545         ],
546         [
547             HAVE_OSS=0
548             if test "x$oss" = xyes ; then
549                 AC_MSG_ERROR([*** OSS support not found])
550             fi
551         ])
552 else
553     HAVE_OSS=0
554 fi
555
556 AC_SUBST(HAVE_OSS)
557 AM_CONDITIONAL([HAVE_OSS], [test "x$HAVE_OSS" = x1])
558
559
560 #### ALSA support (optional) ####
561
562 AC_ARG_ENABLE([alsa],
563     AS_HELP_STRING([--disable-alsa],[Disable optional ALSA support]),
564         [
565             case "${enableval}" in
566                 yes) alsa=yes ;;
567                 no) alsa=no ;;
568                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-alsa) ;;
569             esac
570         ],
571         [alsa=auto])
572
573 if test "x${alsa}" != xno ; then
574     PKG_CHECK_MODULES(ASOUNDLIB, [ alsa >= 1.0.17 ],
575         [
576             HAVE_ALSA=1
577             AC_DEFINE([HAVE_ALSA], 1, [Have ALSA?])
578         ],
579         [
580             HAVE_ALSA=0
581             if test "x$alsa" = xyes ; then
582                 AC_MSG_ERROR([*** Needed alsa >= 1.0.17 support not found])
583             fi
584         ])
585 else
586     HAVE_ALSA=0
587 fi
588
589 AC_SUBST(ASOUNDLIB_CFLAGS)
590 AC_SUBST(ASOUNDLIB_LIBS)
591 AC_SUBST(HAVE_ALSA)
592 AM_CONDITIONAL([HAVE_ALSA], [test "x$HAVE_ALSA" = x1])
593
594 #### Solaris audio support (optional) ####
595
596 AC_ARG_ENABLE([solaris],
597     AS_HELP_STRING([--disable-solaris],[Disable optional Solaris audio support]),
598         [
599             case "${enableval}" in
600                 yes) solaris=yes ;;
601                 no) solaris=no ;;
602                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-solaris) ;;
603             esac
604         ],
605         [solaris=auto])
606
607 if test "x${solaris}" != xno ; then
608     AC_CHECK_HEADERS([sys/audio.h],
609         [
610             HAVE_SOLARIS=1
611             AC_DEFINE([HAVE_SOLARIS], 1, [Have Solaris audio?])
612         ],
613         [
614             HAVE_SOLARIS=0
615             if test "x$solaris" = xyes ; then
616                 AC_MSG_ERROR([*** Solaris audio support not found])
617             fi
618         ])
619 else
620     HAVE_SOLARIS=0
621 fi
622
623 AC_SUBST(HAVE_SOLARIS)
624 AM_CONDITIONAL([HAVE_SOLARIS], [test "x$HAVE_SOLARIS" = x1])
625
626 #### GLib 2 support (optional) ####
627
628 AC_ARG_ENABLE([glib2],
629     AS_HELP_STRING([--disable-glib2],[Disable optional GLib 2 support]),
630         [
631             case "${enableval}" in
632                 yes) glib2=yes ;;
633                 no) glib2=no ;;
634                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-glib2) ;;
635             esac
636         ],
637         [glib2=auto])
638
639 if test "x${glib2}" != xno ; then
640     PKG_CHECK_MODULES(GLIB20, [ glib-2.0 >= 2.4.0 ],
641         HAVE_GLIB20=1,
642         [
643             HAVE_GLIB20=0
644             if test "x$glib2" = xyes ; then
645                 AC_MSG_ERROR([*** GLib 2 support not found])
646             fi
647         ])
648 else
649     HAVE_GLIB20=0
650 fi
651
652 AC_SUBST(GLIB20_CFLAGS)
653 AC_SUBST(GLIB20_LIBS)
654 AC_SUBST(HAVE_GLIB20)
655 AM_CONDITIONAL([HAVE_GLIB20], [test "x$HAVE_GLIB20" = x1])
656
657 #### GConf support (optional) ####
658
659 AC_ARG_ENABLE([gconf],
660     AS_HELP_STRING([--disable-gconf],[Disable optional GConf support]),
661         [
662             case "${enableval}" in
663                 yes) gconf=yes ;;
664                 no) gconf=no ;;
665                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-gconf) ;;
666             esac
667         ],
668         [gconf=auto])
669
670 if test "x${gconf}" != xno ; then
671     PKG_CHECK_MODULES(GCONF, [ gconf-2.0 >= 2.4.0 ],
672         HAVE_GCONF=1,
673         [
674             HAVE_GCONF=0
675             if test "x$gconf" = xyes ; then
676                 AC_MSG_ERROR([*** GConf support not found])
677             fi
678         ])
679 else
680     HAVE_GCONF=0
681 fi
682
683 AC_SUBST(GCONF_CFLAGS)
684 AC_SUBST(GCONF_LIBS)
685 AC_SUBST(HAVE_GCONF)
686 AM_CONDITIONAL([HAVE_GCONF], [test "x$HAVE_GCONF" = x1])
687
688 #### Avahi support (optional) ####
689
690 AC_ARG_ENABLE([avahi],
691     AS_HELP_STRING([--disable-avahi],[Disable optional Avahi support]),
692         [
693             case "${enableval}" in
694                 yes) avahi=yes ;;
695                 no) avahi=no ;;
696                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-avahi) ;;
697             esac
698         ],
699         [avahi=auto])
700
701 if test "x${avahi}" != xno ; then
702     PKG_CHECK_MODULES(AVAHI, [ avahi-client >= 0.6.0 ],
703         HAVE_AVAHI=1,
704         [
705                 HAVE_AVAHI=0
706                 if test "x$avahi" = xyes ; then
707                         AC_MSG_ERROR([*** Avahi support not found])
708                 fi
709         ])
710 else
711     HAVE_AVAHI=0
712 fi
713
714 AC_SUBST(AVAHI_CFLAGS)
715 AC_SUBST(AVAHI_LIBS)
716 AC_SUBST(HAVE_AVAHI)
717 AM_CONDITIONAL([HAVE_AVAHI], [test "x$HAVE_AVAHI" = x1])
718
719 ### LIBOIL ####
720
721 PKG_CHECK_MODULES(LIBOIL, [ liboil-0.3 >= 0.3.0 ])
722 AC_SUBST(LIBOIL_CFLAGS)
723 AC_SUBST(LIBOIL_LIBS)
724
725 ### JACK (optional) ####
726
727 AC_ARG_ENABLE([jack],
728     AS_HELP_STRING([--disable-jack],[Disable optional JACK support]),
729         [
730             case "${enableval}" in
731                 yes) jack=yes ;;
732                 no) jack=no ;;
733                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-jack) ;;
734             esac
735         ],
736         [jack=auto])
737
738 if test "x${jack}" != xno ; then
739     PKG_CHECK_MODULES(JACK, [ jack >= 0.100 ],
740         HAVE_JACK=1,
741         [
742             HAVE_JACK=0
743             if test "x$jack" = xyes ; then
744                 AC_MSG_ERROR([*** JACK support not found])
745             fi
746         ])
747 else
748     HAVE_JACK=0
749 fi
750
751 AC_SUBST(JACK_CFLAGS)
752 AC_SUBST(JACK_LIBS)
753 AC_SUBST(HAVE_JACK)
754 AM_CONDITIONAL([HAVE_JACK], [test "x$HAVE_JACK" = x1])
755
756 #### Async DNS support (optional) ####
757
758 AC_ARG_ENABLE([asyncns],
759     AS_HELP_STRING([--disable-asyncns],[Disable optional Async DNS support]),
760         [
761             case "${enableval}" in
762                 yes) asyncns=yes ;;
763                 no) asyncns=no ;;
764                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-asyncns) ;;
765             esac
766         ],
767         [asyncns=auto])
768
769 if test "x${asyncns}" != xno ; then
770     PKG_CHECK_MODULES(LIBASYNCNS, [ libasyncns >= 0.1 ],
771         HAVE_LIBASYNCNS=1,
772         [
773             HAVE_LIBASYNCNS=0
774             if test "x$asyncns" = xyes ; then
775                 AC_MSG_ERROR([*** Async DNS support not found])
776             fi
777         ])
778 else
779     HAVE_LIBASYNCNS=0
780 fi
781
782 AC_SUBST(LIBASYNCNS_CFLAGS)
783 AC_SUBST(LIBASYNCNS_LIBS)
784 AC_SUBST(HAVE_LIBASYNCNS)
785 AM_CONDITIONAL([HAVE_LIBASYNCNS], [test "x$HAVE_LIBASYNCNS" = x1])
786
787 if test "x$HAVE_LIBASYNCNS" != "x0" ; then
788    AC_DEFINE([HAVE_LIBASYNCNS], 1, [Have libasyncns?])
789 fi
790
791 #### TCP wrappers (optional) ####
792
793 AC_ARG_ENABLE([tcpwrap],
794     AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
795         [
796             case "${enableval}" in
797                 yes) tcpwrap=yes ;;
798                 no) tcpwrap=no ;;
799                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
800             esac
801         ],
802         [tcpwrap=auto])
803
804 if test "x${tcpwrap}" != xno ; then
805     ACX_LIBWRAP
806     if test "x${LIBWRAP_LIBS}" = x && test "x$tcpwrap" = xyes ; then
807         AC_MSG_ERROR([*** TCP wrappers support not found])
808     fi
809 else
810     LIBWRAP_LIBS=
811 fi
812
813 AC_SUBST(LIBWRAP_LIBS)
814
815 #### LIRC support (optional) ####
816
817 AC_ARG_ENABLE([lirc],
818     AS_HELP_STRING([--disable-lirc],[Disable optional LIRC support]),
819         [
820             case "${enableval}" in
821                 yes) lirc=yes ;;
822                 no) lirc=no ;;
823                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-lirc) ;;
824             esac
825         ],
826         [lirc=auto])
827
828 if test "x${lirc}" != xno ; then
829     ACX_LIRC
830     if test "x${HAVE_LIRC}" = x0 && test "x$lirc" = xyes ; then
831         AC_MSG_ERROR([*** LIRC support not found])
832     fi
833 else
834     HAVE_LIRC=0
835 fi
836
837 AC_SUBST(LIRC_CFLAGS)
838 AC_SUBST(LIRC_LIBS)
839 AM_CONDITIONAL([HAVE_LIRC], [test "x$HAVE_LIRC" = x1])
840
841 #### HAL support (optional) ####
842
843 AC_ARG_ENABLE([hal],
844     AS_HELP_STRING([--disable-hal],[Disable optional HAL support]),
845         [
846             case "${enableval}" in
847                 yes) hal=yes ;;
848                 no) hal=no ;;
849                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-hal) ;;
850             esac
851         ],
852         [hal=auto])
853 if test "x${hal}" != xno -a \( "x$HAVE_OSS" = "x1" -o "x$HAVE_ALSA" = "x1" \) ; then
854     PKG_CHECK_MODULES(HAL, [ hal >= 0.5.7 ],
855         HAVE_HAL=1,
856         [
857             HAVE_HAL=0
858             if test "x$hal" = xyes ; then
859                 AC_MSG_ERROR([*** HAL support not found])
860             fi
861         ])
862 else
863     HAVE_HAL=0
864 fi
865
866 AC_SUBST(HAL_CFLAGS)
867 AC_SUBST(HAL_LIBS)
868 AC_SUBST(HAVE_HAL)
869 AM_CONDITIONAL([HAVE_HAL], [test "x$HAVE_HAL" = x1])
870
871 #### BlueZ support (optional) ####
872
873 AC_ARG_ENABLE([bluez],
874     AS_HELP_STRING([--disable-bluez],[Disable optional BlueZ support]),
875         [
876             case "${enableval}" in
877                 yes) bluez=yes ;;
878                 no) bluez=no ;;
879                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-bluez) ;;
880             esac
881         ],
882         [bluez=auto])
883 if test "x${bluez}" != xno ; then
884     PKG_CHECK_MODULES(BLUEZ, [ bluez >= 3.0 ],
885         HAVE_BLUEZ=1,
886         [
887             HAVE_BLUEZ=0
888             if test "x$bluez" = xyes ; then
889                 AC_MSG_ERROR([*** BLUEZ support not found])
890             fi
891         ])
892 else
893     HAVE_BLUEZ=0
894 fi
895
896 AC_SUBST(BLUEZ_CFLAGS)
897 AC_SUBST(BLUEZ_LIBS)
898 AC_SUBST(HAVE_BLUEZ)
899 AM_CONDITIONAL([HAVE_BLUEZ], [test "x$HAVE_BLUEZ" = x1])
900
901 #### D-Bus support (optional) ####
902
903 AC_ARG_ENABLE([dbus],
904     AS_HELP_STRING([--disable-dbus],[Disable optional D-Bus support]),
905         [
906             case "${enableval}" in
907                 yes) dbus=yes ;;
908                 no) dbus=no ;;
909                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-dbus) ;;
910             esac
911         ],
912         [dbus=auto])
913
914 if test "x$HAVE_HAL" = x1 ; then
915    dbus=yes
916 fi
917
918 if test "x${dbus}" != xno || test "x${bluez}" != xno || "x${hal}" != xno ; then
919
920     PKG_CHECK_MODULES(DBUS, [ dbus-1 >= 1.0.0 ],
921         [
922             HAVE_DBUS=1
923             saved_LIBS="$LIBS"
924             LIBS="$LIBS $DBUS_LIBS"
925             AC_CHECK_FUNCS(dbus_watch_get_unix_fd)
926             LIBS="$saved_LIBS"
927             AC_DEFINE([HAVE_DBUS], 1, [Have D-Bus.])
928         ],
929         [
930             HAVE_DBUS=0
931             if test "x$dbus" = xyes ; then
932                 AC_MSG_ERROR([*** D-Bus support not found])
933             fi
934         ])
935 else
936     HAVE_DBUS=0
937 fi
938
939 AC_SUBST(DBUS_CFLAGS)
940 AC_SUBST(DBUS_LIBS)
941 AC_SUBST(HAVE_DBUS)
942 AM_CONDITIONAL([HAVE_DBUS], [test "x$HAVE_DBUS" = x1])
943
944 #### PolicyKit support (optional) ####
945
946 AC_ARG_ENABLE([polkit],
947     AS_HELP_STRING([--disable-polkit],[Disable optional PolicyKit support]),
948         [
949             case "${enableval}" in
950                 yes) polkit=yes ;;
951                 no) polkit=no ;;
952                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-polkit) ;;
953             esac
954         ],
955         [polkit=auto])
956
957 if test "x${polkit}" != xno ; then
958
959     PKG_CHECK_MODULES(POLKIT, [ polkit-dbus >= 0.7 ],
960         [
961             HAVE_POLKIT=1
962             AC_DEFINE([HAVE_POLKIT], 1, [Have PolicyKit])
963             policydir=`pkg-config polkit-dbus --variable prefix`/share/PolicyKit/policy/
964             AC_SUBST(policydir)
965         ],
966         [
967             HAVE_POLKIT=0
968             if test "x$polkit" = xyes ; then
969                 AC_MSG_ERROR([*** PolicyKit support not found])
970             fi
971         ])
972 else
973     HAVE_POLKIT=0
974 fi
975
976 AC_SUBST(POLKIT_CFLAGS)
977 AC_SUBST(POLKIT_LIBS)
978 AC_SUBST(HAVE_POLKIT)
979 AM_CONDITIONAL([HAVE_POLKIT], [test "x$HAVE_POLKIT" = x1])
980
981 #### OpenSSL support (optional) ####
982
983 AC_ARG_ENABLE([openssl],
984     AS_HELP_STRING([--disable-openssl],[Disable OpenSSL support (used for Airtunes/RAOP)]),
985         [
986             case "${enableval}" in
987                 yes) openssl=yes ;;
988                 no) openssl=no ;;
989                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-openssl) ;;
990             esac
991         ],
992         [openssl=auto])
993
994 if test "x${openssl}" != xno ; then
995
996     PKG_CHECK_MODULES(OPENSSL, [ openssl > 0.9 ],
997         [
998             HAVE_OPENSSL=1
999             AC_DEFINE([HAVE_OPENSSL], 1, [Have OpenSSL])
1000         ],
1001         [
1002             HAVE_OPENSSL=0
1003             if test "x$openssl" = xyes ; then
1004                 AC_MSG_ERROR([*** OpenSSL support not found])
1005             fi
1006         ])
1007 else
1008     HAVE_OPENSSL=0
1009 fi
1010
1011 AC_SUBST(OPENSSL_CFLAGS)
1012 AC_SUBST(OPENSSL_LIBS)
1013 AC_SUBST(HAVE_OPENSSL)
1014 AM_CONDITIONAL([HAVE_OPENSSL], [test "x$HAVE_OPENSSL" = x1])
1015
1016 ### Build and Install man pages ###
1017 AC_ARG_ENABLE(manpages,
1018         AS_HELP_STRING([--disable-manpages],[Disable building and installation of man pages]),
1019 [case "${enableval}" in
1020   yes) manpages=yes ;;
1021   no)  manpages=no ;;
1022   *) AC_MSG_ERROR([bad value ${enableval} for --disable-manpages]) ;;
1023 esac],[manpages=yes])
1024
1025 AM_CONDITIONAL([BUILD_MANPAGES], [test "x$manpages" = xyes])
1026
1027 #### PulseAudio system group & user  #####
1028
1029 AC_ARG_WITH(system_user, AS_HELP_STRING([--with-system-user=<user>],[User for running the PulseAudio daemon as a system-wide instance (pulse)]))
1030 if test -z "$with_system_user" ; then
1031     PA_SYSTEM_USER=pulse
1032 else
1033     PA_SYSTEM_USER=$with_system_user
1034 fi
1035 AC_SUBST(PA_SYSTEM_USER)
1036 AC_DEFINE_UNQUOTED(PA_SYSTEM_USER,"$PA_SYSTEM_USER", [User for running the PulseAudio system daemon])
1037
1038 AC_ARG_WITH(system_group,AS_HELP_STRING([--with-system-group=<group>],[Group for running the PulseAudio daemon as a system-wide instance (pulse)]))
1039 if test -z "$with_system_group" ; then
1040     PA_SYSTEM_GROUP=pulse
1041 else
1042     PA_SYSTEM_GROUP=$with_system_group
1043 fi
1044 AC_SUBST(PA_SYSTEM_GROUP)
1045 AC_DEFINE_UNQUOTED(PA_SYSTEM_GROUP,"$PA_SYSTEM_GROUP", [Group for the PulseAudio system daemon])
1046
1047 AC_ARG_WITH(realtime_group,AS_HELP_STRING([--with-realtime-group=<group>],[Group for users that are allowed to start the PulseAudio daemon with realtime scheduling (realtime)]))
1048 if test -z "$with_realtime_group" ; then
1049     PA_REALTIME_GROUP=pulse-rt
1050 else
1051     PA_REALTIME_GROUP=$with_realtime_group
1052 fi
1053 AC_SUBST(PA_REALTIME_GROUP)
1054 AC_DEFINE_UNQUOTED(PA_REALTIME_GROUP,"$PA_REALTIME_GROUP", [Realtime group])
1055
1056 AC_ARG_WITH(access_group,AS_HELP_STRING([--with-access-group=<group>],[Group which is allowed access to a system-wide PulseAudio daemon (pulse-access)]))
1057 if test -z "$with_access_group" ; then
1058     PA_ACCESS_GROUP=pulse-access
1059 else
1060     PA_ACCESS_GROUP=$with_access_group
1061 fi
1062 AC_SUBST(PA_ACCESS_GROUP)
1063 AC_DEFINE_UNQUOTED(PA_ACCESS_GROUP,"$PA_ACCESS_GROUP", [Access group])
1064
1065 AC_ARG_ENABLE(
1066         per_user_esound_socket,
1067         AS_HELP_STRING([--disable-per-user-esound-socket], [Use global esound socket directory /tmp/.esd/socket.]),
1068         [
1069             case "${enableval}" in
1070                 yes) per_user_esound_socket=1 ;;
1071                 no) per_user_esound_socket=0 ;;
1072                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-per-user-esound-socket) ;;
1073             esac
1074         ],
1075         [per_user_esound_socket=1])
1076
1077 if test "x$per_user_esound_socket" = "x1"; then
1078    AC_DEFINE([USE_PER_USER_ESOUND_SOCKET], [1], [Define this if you want per-user esound socket directories])
1079 fi
1080
1081 #### PulseAudio system runtime dir ####
1082 PA_SYSTEM_RUNTIME_PATH="${localstatedir}/run/pulse"
1083 AC_SUBST(PA_SYSTEM_RUNTIME_PATH)
1084 PA_SYSTEM_CONFIG_PATH="${localstatedir}/lib/pulse"
1085 AC_SUBST(PA_SYSTEM_CONFIG_PATH)
1086 PA_SYSTEM_STATE_PATH="${localstatedir}/lib/pulse"
1087 AC_SUBST(PA_SYSTEM_STATE_PATH)
1088
1089 ###################################
1090 #            Output               #
1091 ###################################
1092
1093 AC_ARG_ENABLE(
1094         [static-bins],
1095         AS_HELP_STRING([--enable-static-bins],[Statically link executables.]),
1096         [STATIC_BINS=1], [STATIC_BINS=0])
1097 AM_CONDITIONAL([STATIC_BINS], [test "x$STATIC_BINS" = "x1"])
1098
1099 AC_ARG_WITH(
1100         [preopen-mods],
1101         AS_HELP_STRING([--with-preopen-mods],[Modules to preopen in daemon (default: all).]),
1102         [PREOPEN_MODS=$withval], [PREOPEN_MODS="all"])
1103 AM_CONDITIONAL([PREOPEN_MODS], [test "x$PREOPEN_MODS" != "xall"])
1104 if test "x$PREOPEN_MODS" != "xall" ; then
1105     tmpLIBS=""
1106     for mod in $PREOPEN_MODS; do
1107         tmpLIBS="$tmpLIBS module-$mod.la"
1108     done
1109     PREOPEN_MODS="$tmpLIBS"
1110     AC_SUBST(PREOPEN_MODS)
1111 fi
1112
1113 AC_ARG_WITH(
1114         [module-dir],
1115         AS_HELP_STRING([--with-module-dir],[Directory where to install the modules to (defaults to ${libdir}/pulse-${PA_MAJORMINORMICRO}/modules/]),
1116         [modlibexecdir=$withval], [modlibexecdir="${libdir}/pulse-${PA_MAJORMINORMICRO}/modules/"])
1117
1118 AC_SUBST(modlibexecdir)
1119
1120 AC_ARG_ENABLE(
1121         [force-preopen],
1122         AS_HELP_STRING([--enable-force-preopen],[Preopen modules, even when dlopen() is supported.]),
1123         [FORCE_PREOPEN=1], [FORCE_PREOPEN=0])
1124 AM_CONDITIONAL([FORCE_PREOPEN], [test "x$FORCE_PREOPEN" = "x1"])
1125
1126 AC_CONFIG_FILES([
1127 Makefile
1128 libltdl/Makefile
1129 src/Makefile
1130 man/Makefile
1131 libpulse.pc
1132 libpulse-simple.pc
1133 libpulse-browse.pc
1134 libpulse-mainloop-glib.pc
1135 doxygen/Makefile
1136 doxygen/doxygen.conf
1137 src/pulse/version.h
1138 po/Makefile.in
1139 ])
1140 AC_OUTPUT
1141
1142 # ==========================================================================
1143 ENABLE_X11=no
1144 if test "x$HAVE_X11" = "x1" ; then
1145    ENABLE_X11=yes
1146 fi
1147
1148 ENABLE_OSS=no
1149 if test "x$HAVE_OSS" = "x1" ; then
1150    ENABLE_OSS=yes
1151 fi
1152
1153 ENABLE_ALSA=no
1154 if test "x$HAVE_ALSA" = "x1" ; then
1155    ENABLE_ALSA=yes
1156 fi
1157
1158 ENABLE_SOLARIS=no
1159 if test "x$HAVE_SOLARIS" = "x1" ; then
1160    ENABLE_SOLARIS=yes
1161 fi
1162
1163 ENABLE_GLIB20=no
1164 if test "x$HAVE_GLIB20" = "x1" ; then
1165    ENABLE_GLIB20=yes
1166 fi
1167
1168 ENABLE_GCONF=no
1169 if test "x$HAVE_GCONF" = "x1" ; then
1170    ENABLE_GCONF=yes
1171 fi
1172
1173 ENABLE_AVAHI=no
1174 if test "x$HAVE_AVAHI" = "x1" ; then
1175    ENABLE_AVAHI=yes
1176 fi
1177
1178 ENABLE_JACK=no
1179 if test "x$HAVE_JACK" = "x1" ; then
1180    ENABLE_JACK=yes
1181 fi
1182
1183 ENABLE_LIBASYNCNS=no
1184 if test "x$HAVE_LIBASYNCNS" = "x1" ; then
1185    ENABLE_LIBASYNCNS=yes
1186 fi
1187
1188 ENABLE_LIRC=no
1189 if test "x$HAVE_LIRC" = "x1" ; then
1190    ENABLE_LIRC=yes
1191 fi
1192
1193 ENABLE_HAL=no
1194 if test "x$HAVE_HAL" = "x1" ; then
1195    ENABLE_HAL=yes
1196 fi
1197
1198 ENABLE_TCPWRAP=no
1199 if test "x${LIBWRAP_LIBS}" != x ; then
1200    ENABLE_TCPWRAP=yes
1201 fi
1202
1203 ENABLE_LIBSAMPLERATE=no
1204 if test "x${HAVE_LIBSAMPLERATE}" = "x1" ; then
1205    ENABLE_LIBSAMPLERATE=yes
1206 fi
1207
1208 ENABLE_BLUEZ=no
1209 if test "x${HAVE_BLUEZ}" = "x1" ; then
1210    ENABLE_BLUEZ=yes
1211 fi
1212
1213 ENABLE_POLKIT=no
1214 if test "x${HAVE_POLKIT}" = "x1" ; then
1215    ENABLE_POLKIT=yes
1216 fi
1217
1218 ENABLE_OPENSSL=no
1219 if test "x${HAVE_OPENSSL}" = "x1" ; then
1220    ENABLE_OPENSSL=yes
1221 fi
1222
1223 ENABLE_PER_USER_ESOUND_SOCKET=no
1224 if test "x$per_user_esound_socket" = "x1" ; then
1225    ENABLE_PER_USER_ESOUND_SOCKET=yes
1226 fi
1227
1228 echo "
1229  ---{ $PACKAGE_NAME $VERSION }---
1230
1231     prefix:                        ${prefix}
1232     sysconfdir:                    ${sysconfdir}
1233     localstatedir:                 ${localstatedir}
1234     System Runtime Path:           ${PA_SYSTEM_RUNTIME_PATH}
1235     System State Path:             ${PA_SYSTEM_STATE_PATH}
1236     System Config Path:            ${PA_SYSTEM_CONFIG_PATH}
1237     Compiler:                      ${CC}
1238     CFLAGS:                        ${CFLAGS}
1239     Have X11:                      ${ENABLE_X11}
1240     Enable OSS:                    ${ENABLE_OSS}
1241     Enable Alsa:                   ${ENABLE_ALSA}
1242     Enable Solaris:                ${ENABLE_SOLARIS}
1243     Enable GLib 2.0:               ${ENABLE_GLIB20}
1244     Enable GConf:                  ${ENABLE_GCONF}
1245     Enable Avahi:                  ${ENABLE_AVAHI}
1246     Enable Jack:                   ${ENABLE_JACK}
1247     Enable Async DNS:              ${ENABLE_LIBASYNCNS}
1248     Enable LIRC:                   ${ENABLE_LIRC}
1249     Enable HAL:                    ${ENABLE_HAL}
1250     Enable BlueZ:                  ${ENABLE_BLUEZ}
1251     Enable TCP Wrappers:           ${ENABLE_TCPWRAP}
1252     Enable libsamplerate:          ${ENABLE_LIBSAMPLERATE}
1253     Enable PolicyKit:              ${ENABLE_POLKIT}
1254     Enable OpenSSL (for Airtunes): ${ENABLE_OPENSSL}
1255     System User:                   ${PA_SYSTEM_USER}
1256     System Group:                  ${PA_SYSTEM_GROUP}
1257     Realtime Group:                ${PA_REALTIME_GROUP}
1258     Access Group:                  ${PA_ACCESS_GROUP}
1259     Enable per-user EsounD socket: ${ENABLE_PER_USER_ESOUND_SOCKET}
1260 "