[pulseaudio-discuss,webrtc-audio-processing] build: support other GNU systems

Submitted by Pino Toscano on July 22, 2017, 10:09 p.m.

Details

Message ID 20170722220944.26692-1-toscano.pino@tiscali.it
State New
Headers show
Series "build: support other GNU systems" ( rev: 1 ) in PulseAudio

Not browsing as part of any series.

Commit Message

Pino Toscano July 22, 2017, 10:09 p.m.
Add a case for generic GNU-based systems, enabling POSIX flags, and
pthreads too.
---
 configure.ac | 7 +++++++
 1 file changed, 7 insertions(+)

Patch hide | download patch | download mbox

diff --git a/configure.ac b/configure.ac
index e78bf27..bc222c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,6 +77,13 @@  AS_CASE(["${host}"],
          PLATFORM_CFLAGS="-DWEBRTC_WIN -D_WIN32 -U__STRICT_ANSI__"
          HAVE_WIN=1
         ],
+    [*-gnu*],
+        [
+         OS_CFLAGS=""  # no extra CFLAGS on other GNU systems
+         PLATFORM_CFLAGS="-DWEBRTC_POSIX"
+         OS_LDFLAGS="-lrt -lpthread"
+         HAVE_POSIX=1
+        ],
     [AC_MSG_ERROR([Unsupported host $host])]
 )
 AC_SUBST(PLATFORM_CFLAGS)