From f786808a36deab01f301905ecdae27e6e17ce197 Mon Sep 17 00:00:00 2001
From: Charles Barcza <info@blackpanther.hu>
Date: Mon, 13 Mar 2017 14:46:34 +0100
Subject: [PATCH 1/2] Build fix on Linux
Upstream: submitted, https://github.com/AGProjects/python-sipsimple/pull/1

---
 setup_pjsip.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/setup_pjsip.py b/setup_pjsip.py
index 7dd6c13ff..82e7bd1ca 100644
--- a/setup_pjsip.py
+++ b/setup_pjsip.py
@@ -160,6 +160,7 @@ class PJSIP_build_ext(build_ext):
         if sys_platform == "win32":
             cmd = ["bash", "configure"]
         else:
+            os.system("chmod +x "+ self.build_dir +"/*configure")
             cmd = ["./configure"]
         cmd.extend(["--disable-g7221-codec"])
         ffmpeg_path = env.get("SIPSIMPLE_FFMPEG_PATH", None)