From 4f0aa07c68c652e53aca43486602ea341b769d1e Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Fri, 26 Apr 2013 11:44:26 +0000 Subject: Re #1657: allow --simulator argument to appear at any position in configure-bb10 arguments git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4508 74dad513-b988-da41-8d7b-12977e46ad98 --- configure-bb10 | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'configure-bb10') diff --git a/configure-bb10 b/configure-bb10 index 65644726..4474947e 100755 --- a/configure-bb10 +++ b/configure-bb10 @@ -15,8 +15,18 @@ if test "$*" = "--help" -o "$*" = "-h"; then exit 0 fi -if test "$1" = "--simulator"; then - shift +# Find simulator argument +args="" +simulator="no" +for arg in "$@"; do + if test "$arg" = "--simulator"; then + simulator="yes" + else + args="$args $arg" + fi +done + +if test "$simulator" = "yes"; then TARGET_ARCH="x86" TARGET_ARCHEND=${TARGET_ARCH} LIBDIR=${TARGET_ARCH} @@ -41,7 +51,7 @@ fi export CFLAGS="$CFLAGS -fPIC -DPJ_CONFIG_BB10=1 -DPJMEDIA_AUDIO_DEV_HAS_BB10=1" # Invoke configure -./configure --host=${TARGET_HOST} --disable-oss $* +./configure --host=${TARGET_HOST} --disable-oss $args RETVAL=$? # Write to pjsip.pri only if configure was successful -- cgit v1.2.3