Lines Matching +full:- +full:- +full:yes
3 AC_INIT(alsa-lib, 1.2.11)
19 AM_CONDITIONAL([INSTALL_M4], [test -n "${ACLOCAL}"])
24 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
65 if test "$enable_static" = "$enable_shared" -a "$enable_static" = "yes"; then
68 See INSTALL file for more details (do not use --enable-shared=yes with
69 --enable-static=yes).
76 AS_HELP_STRING([--with-configdir=dir],
79 if test -z "$confdir"; then
95 AS_HELP_STRING([--with-plugindir=dir],
98 if test -z "$plugindir"; then
106 AC_DEFINE_UNQUOTED(ALSA_PLUGIN_DIR, "$plugindir", [directory containing ALSA add-on modules])
111 AS_HELP_STRING([--with-pkgconfdir=dir],
114 if test -z "$pkgconfdir"; then
129 AS_HELP_STRING([--with-versioned],
130 [shared library will be compiled with versioned symbols (default = yes)]),
131 versioned="$withval", versioned="yes")
132 if test "$versioned" = "yes"; then
134 xres=`grep '^VERSION=' ${srcdir}/ltmain.sh | cut -d = -f 2 | cut -d \" -f 2`
135 major=`echo $xres | cut -d . -f 1`
136 minor=`echo $xres | cut -d . -f 2`
138 if test $major -eq 1 && test $minor -gt 3; then
141 if test $major -gt 1; then
145 if test $pass -eq 1; then
147 AC_MSG_RESULT(yes)
149 AC_MSG_RESULT(broken libtool - use libtool v1.4+; no versions)
156 dnl Check for symbolic-functions
157 AC_MSG_CHECKING(for symbolic-functions)
158 AC_ARG_ENABLE(symbolic-functions,
159 AS_HELP_STRING([--enable-symbolic-functions],
160 [use -Bsymbolic-functions option if available (optmization for size and speed)]),
162 if test "$symfuncs" = "yes"; then
163 if ld --help | grep -q -- '-Bsymbolic-functions'; then
164 AC_MSG_RESULT(yes)
178 | ${CPP-${CC-gcc} -E} - 2>&1 \
179 | ${EGREP-grep} "^PREFIX=" \
180 | ${SED-sed} "s:^PREFIX=::"`
188 AS_HELP_STRING([--with-debug],
189 [library will be compiled with asserts (default = yes)]),
190 debug="$withval", debug="yes")
191 if test "$debug" = "yes"; then
192 AC_MSG_RESULT(yes)
198 if test "$debug" = "yes"; then
200 AC_ARG_ENABLE(debug-assert,
201 AS_HELP_STRING([--enable-debug],
204 if test "$debug_assert" = "yes"; then
205 AC_MSG_RESULT(yes)
215 AS_HELP_STRING([--with-tmpdir=directory],
224 AS_HELP_STRING([--with-softfloat],
227 y|yes) softfloat=yes ;;
230 if test "$softfloat" = "yes" ; then
232 AC_MSG_RESULT(yes)
238 if test "$softfloat" != "yes"; then
239 ALSA_DEPLIBS="-lm"
246 [have_lfs=yes],
248 if test "$have_lfs" = "yes"; then
249 AC_MSG_RESULT(yes)
258 AS_HELP_STRING([--with-libdl], [Use libdl for plugins (default = yes)]),
259 [ have_libdl="$withval" ], [ have_libdl="yes" ])
261 if test "$have_libdl" = "yes"; then
262 AC_SEARCH_LIBS([dlsym], [dl], [HAVE_LIBDL="yes"])
263 if test "$HAVE_LIBDL" = "yes" ; then
269 AM_CONDITIONAL([BUILD_MODULES], [test "$HAVE_LIBDL" = "yes"])
274 AS_HELP_STRING([--with-pthread], [Use pthread (default = yes)]),
275 [ have_pthread="$withval" ], [ have_pthread="yes" ])
276 if test "$have_pthread" = "yes"; then
277 AC_CHECK_LIB([pthread], [pthread_join], [HAVE_LIBPTHREAD="yes"])
278 if test "$HAVE_LIBPTHREAD" = "yes"; then
279 ALSA_DEPLIBS="$ALSA_DEPLIBS -lpthread"
287 if test "$HAVE_LIBPTHREAD" = "yes"; then
298 #error gcc has this bug: http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html
302 AC_MSG_RESULT([yes])],
308 AS_HELP_STRING([--with-librt], [Use librt for monotonic clock (default = yes)]),
309 [ have_librt="$withval" ], [ have_librt="yes" ])
310 if test "$have_librt" = "yes"; then
311 AC_CHECK_LIB([rt], [clock_gettime], [HAVE_LIBRT="yes"])
312 if test "$HAVE_LIBRT" = "yes" ; then
313 ALSA_DEPLIBS="$ALSA_DEPLIBS -lrt"
326 AS_HELP_STRING([--with-wordexp],
329 y|yes) wordexp=yes ;;
332 if test "$wordexp" = "yes" ; then
334 AC_MSG_RESULT(yes)
346 AS_HELP_STRING([--enable-resmgr], [support resmgr (optional)]),
349 if test "$resmgr" = "yes"; then
352 AC_DEFINE(SUPPORT_RESMGR, "1", [Support resmgr with alsa-lib])
358 AS_HELP_STRING([--disable-aload], [disable reading /dev/aload*]),
359 aload="$enableval", aload="yes")
361 if test "$aload" = "yes"; then
362 AC_DEFINE(SUPPORT_ALOAD, "1", [Support /dev/aload* access for auto-loading])
365 dnl Check for non-standard /dev directory
367 AC_ARG_WITH(alsa-devdir,
368 AS_HELP_STRING([--with-alsa-devdir=dir],
373 if echo "$alsa_dev_dir" | grep -v '/$' > /dev/null; then
380 AC_ARG_WITH(aload-devdir,
381 AS_HELP_STRING([--with-aload-devdir=dir],
385 if echo "$aload_dev_dir" | grep -v '/$' > /dev/null; then
393 AS_HELP_STRING([--disable-mixer], [disable the mixer component]),
394 [build_mixer="$enableval"], [build_mixer="yes"])
396 AS_HELP_STRING([--disable-pcm], [disable the PCM component]),
397 [build_pcm="$enableval"], [build_pcm="yes"])
399 AS_HELP_STRING([--disable-rawmidi], [disable the raw MIDI component]),
400 [build_rawmidi="$enableval"], [build_rawmidi="yes"])
402 AS_HELP_STRING([--disable-hwdep], [disable the hwdep component]),
403 [build_hwdep="$enableval"], [build_hwdep="yes"])
405 AS_HELP_STRING([--disable-seq], [disable the sequencer component]),
406 [build_seq="$enableval"], [build_seq="yes"])
408 AS_HELP_STRING([--disable-ucm], [disable the use-case-manager component]),
409 [build_ucm="$enableval"], [build_ucm="yes"])
411 AS_HELP_STRING([--disable-topology], [disable the DSP topology component]),
412 [build_topology="$enableval"], [build_topology="yes"])
414 AS_HELP_STRING([--enable-alisp], [enable the alisp component]),
416 test "$softfloat" = "yes" && build_alisp="no"
417 AC_ARG_ENABLE(old-symbols,
418 AS_HELP_STRING([--disable-old-symbols], [disable old obsoleted symbols]),
419 [keep_old_symbols="$enableval"], [keep_old_symbols="yes"])
422 AC_ARG_ENABLE(mixer-modules,
423 AS_HELP_STRING([--enable-mixer-modules], [enable the additional mixer modules (experimental)]),
426 AC_ARG_ENABLE(mixer-pymods,
427 AS_HELP_STRING([--enable-mixer-pymods], [enable the mixer python modules (experimental)]),
431 AS_HELP_STRING([--disable-python], [disable the python components]),
432 [build_python="$enableval"], [build_python="yes"])
435 AS_HELP_STRING([--enable-python2], [prefer python2]),
439 if test "$build_python" = "yes" -a "$build_mixer_pymodules" = "yes"; then
442 if test "$build_python2" != "yes"; then
443 pythonlibs0=$(python3-config --libs --embed 2> /dev/null)
444 if test -z "$pythonlibs0"; then
445 pythonlibs0=$(python3-config --libs)
447 pythoninc0=$(python3-config --includes)
449 if test -z "$pythonlibs0"; then
450 pythonlibs0=$(python-config --libs)
451 pythoninc0=$(python-config --includes)
454 AS_HELP_STRING([--with-pythonlibs=ldflags],
455 [specify python libraries (-lpthread -lm -ldl -lpython2.4)]),
458 AS_HELP_STRING([--with-pythonincludes=Cflags],
459 [specify python C header files (-I/usr/include/python)]),
461 if test -z "$pythonlibs"; then
462 echo "Unable to determine python libraries! Probably python-config is not"
463 echo "available on this system. Please, use --with-pythonlibs and"
464 echo "--with-pythonincludes options. Python components are disabled in this build."
471 if test "$build_python" != "yes"; then
488 if test "$build_mixer" = "yes"; then
491 if test "$build_pcm" = "yes"; then
494 if test "$build_rawmidi" = "yes"; then
497 if test "$build_hwdep" = "yes"; then
500 if test "$build_seq" = "yes"; then
503 if test "$build_ucm" = "yes"; then
506 if test "$build_topology" = "yes"; then
512 if test "$build_pcm" = "yes"; then
513 AC_ARG_WITH(pcm-plugins,
514 AS_HELP_STRING([--with-pcm-plugins=<list>],
524 if test -z "$gcc_have_atomics"; then
531 [gcc_have_atomics=yes],
553 if test "$p" = "$t" -o "$p" = "all"; then
554 eval build_pcm_$t="yes"
555 build_pcm_plugin="yes"
561 if test "$build_pcm_plug" = "yes"; then
562 build_pcm_linear="yes"
563 build_pcm_copy="yes"
566 if test "$build_pcm_ioplug" = "yes"; then
567 build_pcm_extplug="yes"
570 if test "$HAVE_LIBDL" != "yes"; then
577 if test "$HAVE_LIBPTHREAD" != "yes"; then
581 if test "$softfloat" = "yes"; then
586 if test "$gcc_have_atomics" != "yes"; then
590 if test "$ac_cv_header_sys_shm_h" != "yes"; then
627 if test "$build_pcm_rate" = "yes"; then
630 if test "$build_pcm_route" = "yes"; then
633 if test "$build_pcm_lfloat" = "yes"; then
636 if test "$build_pcm_adpcm" = "yes"; then
639 if test "$build_pcm_mulaw" = "yes"; then
642 if test "$build_pcm_alaw" = "yes"; then
645 if test "$build_pcm_iec958" = "yes"; then
648 if test "$build_pcm_mmap_emul" = "yes"; then
649 AC_DEFINE([BUILD_PCM_PLUGIN_MMAP_EMUL], "1", [Build PCM mmap-emul plugin])
652 if test "$build_pcm_dmix" = "yes"; then
654 AC_ARG_ENABLE(lockless-dmix,
655 AS_HELP_STRING([--enable-lockless-dmix],
658 if test "$lockless_dmix" = "yes"; then
659 AC_MSG_RESULT(yes)
667 rm -f "$srcdir"/src/pcm/pcm_symbols_list.c
670 if eval test \$build_pcm_$t = yes; then
677 AC_ARG_WITH(ctl-plugins,
678 AS_HELP_STRING([--with-ctl-plugins=<list>],
692 if test "$p" = "$t" -o "$p" = "all"; then
693 eval build_ctl_$t="yes"
694 build_ctl_plugin="yes"
699 if test "$ac_cv_header_sys_shm_h" != "yes"; then
709 rm -f "$srcdir"/src/control/ctl_symbols_list.c
712 if eval test \$build_ctl_$t = yes; then
719 AC_ARG_WITH(max-cards,
720 AS_HELP_STRING([--with-max-cards], [Specify the max number of cards (default = 32)]),
724 if test "$max_cards" -lt 1; then
726 elif test "$max_cards" -gt 256; then
731 dnl Check for thread-safe API functions
732 if test "$HAVE_LIBPTHREAD" = "yes"; then
733 AC_MSG_CHECKING(for thread-safe API functions)
734 AC_ARG_ENABLE(thread-safety,
735 AS_HELP_STRING([--disable-thread-safety],
736 [disable thread-safe API functions]),
737 threadsafe="$enableval", threadsafe="yes")
738 if test "$threadsafe" = "yes"; then
739 AC_MSG_RESULT(yes)
740 AC_DEFINE([THREAD_SAFE_API], "1", [Disable thread-safe API functions])
747 if test ! -L "$srcdir"/include/alsa ; then
749 rm -f "$srcdir"/include/alsa
750 ln -sf . "$srcdir"/include/alsa
768 utils/Makefile utils/alsa-lib.spec utils/alsa.pc utils/alsa-topology.pc)
774 cp "$srcdir"/include/asoundlib-head.h include/asoundlib.h
775 if test "$ac_cv_header_sys_endian_h" != "yes"; then
776 test "$ac_cv_header_endian_h" = "yes" && echo "#include <endian.h>" >> include/asoundlib.h
807 test "$build_pcm" = "yes" && echo "#include <alsa/pcm.h>" >> include/asoundlib.h
808 test "$build_rawmidi" = "yes" && echo "#include <alsa/rawmidi.h>" >> include/asoundlib.h
809 test "$build_rawmidi" = "yes" && echo "#include <alsa/ump.h>" >> include/asoundlib.h
810 test "$build_pcm" = "yes" && echo "#include <alsa/timer.h>" >> include/asoundlib.h
811 test "$build_hwdep" = "yes" && echo "#include <alsa/hwdep.h>" >> include/asoundlib.h
813 test "$build_mixer" = "yes" && echo "#include <alsa/mixer.h>" >> include/asoundlib.h
814 test "$build_seq" = "yes" && echo "#include <alsa/seq_event.h>" >> include/asoundlib.h
815 test "$build_seq" = "yes" && echo "#include <alsa/seq.h>" >> include/asoundlib.h
816 test "$build_seq" = "yes" && echo "#include <alsa/seqmid.h>" >> include/asoundlib.h
817 test "$build_seq" = "yes" && echo "#include <alsa/seq_midi_event.h>" >> include/asoundlib.h
818 cat "$srcdir"/include/asoundlib-tail.h >> include/asoundlib.h