Merge CV, ver=5.1; ops/methods from HV, and interface from CV where possible
[goodguy/history.git] / cinelerra-5.1 / libzmpeg3 / a52dec-0.7.3 / libao / configure.incl
diff --git a/cinelerra-5.1/libzmpeg3/a52dec-0.7.3/libao/configure.incl b/cinelerra-5.1/libzmpeg3/a52dec-0.7.3/libao/configure.incl
new file mode 100644 (file)
index 0000000..bfd1391
--- /dev/null
@@ -0,0 +1,34 @@
+AC_SUBST([LIBAO_LIBS])
+
+dnl check for oss
+AC_ARG_ENABLE([oss],
+    [  --disable-oss           make a version not using oss])
+if test x"$enable_oss" != x"no"; then
+    case "$host" in
+    *-linux*|*-openbsd*|*-freebsd*|*-bsdi*)
+       AC_DEFINE([LIBAO_OSS],,[libao OSS support])
+       AC_CHECK_LIB([ossaudio],[_oss_ioctl],
+           [LIBAO_LIBS="$LIBAO_LIBS -lossaudio"]);;
+    esac
+fi
+
+dnl check for solaris
+AC_ARG_ENABLE([solaris-audio],
+    [  --disable-solaris-audio make a version not using solaris audio])
+if test x"$enable_solaris_audio" != x"no"; then
+    case "$host" in
+    *-sun-solaris*)
+       AC_DEFINE([LIBAO_SOLARIS],,[libao solaris support]);;
+    esac
+fi
+
+dnl check for al
+AC_ARG_ENABLE([al-audio],
+    [  --disable-al-audio      make a version not using al audio])
+if test x"$enable_al" != x"no"; then
+    case "$host" in
+    *-sgi-irix*)
+       LIBAO_LIBS="$LIBAO_LIBS -laudio"
+       AC_DEFINE([LIBAO_AL],,[libao al support]);;
+    esac
+fi