[PATCHv3,1/2] config: abi: add --enable-abi-compat option with default=yes

Message ID 1474647321-7457-1-git-send-email-bill.fischofer@linaro.org
State New
Headers show

Commit Message

Bill Fischofer Sept. 23, 2016, 4:15 p.m.
Suggested-by Petri Savolainen <petri.savolainen@nokia.com>
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>

---
Note that this patch supersedes patch
http://patches.opendataplane.org/patch/6967/

Changes for v3:
- Correct default to be --enable-abi-compat=yes

Changes for v2:
- Correct test direction (yes vs. no)

 configure.ac | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

-- 
2.7.4

Patch

diff --git a/configure.ac b/configure.ac
index 982aff7..983b221 100644
--- a/configure.ac
+++ b/configure.ac
@@ -176,11 +176,15 @@  AM_CONDITIONAL([test_example], [test x$test_example = xyes ])
 AM_CONDITIONAL([HAVE_DOXYGEN], [test "x${DOXYGEN}" = "xdoxygen"])
 AM_CONDITIONAL([user_guide], [test "x${user_guides}" = "xyes" ])
 AM_CONDITIONAL([HAVE_MSCGEN], [test "x${MSCGEN}" = "xmscgen"])
-if test x$enable_shared != xyes;
+
+##########################################################################
+# Setup for ABI compatibility
+##########################################################################
+if test x$enable_shared != xno;
 then
-	_ODP_INLINES="_ODP_INLINES"
-else
 	_ODP_INLINES="_ODP_NO_INLINES"
+else
+	_ODP_INLINES="_ODP_INLINES"
 fi
 AC_SUBST(_ODP_INLINES)