diff options
author | Benny Prijono <bennylp@teluu.com> | 2013-04-26 11:44:26 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2013-04-26 11:44:26 +0000 |
commit | 4f0aa07c68c652e53aca43486602ea341b769d1e (patch) | |
tree | 8e6e7501901868a583cf283a4d696c61c8cb01a9 /configure-bb10 | |
parent | 2de06e3f431ff32b0d54624c3f592a6d27765ffb (diff) |
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
Diffstat (limited to 'configure-bb10')
-rwxr-xr-x | configure-bb10 | 16 |
1 files changed, 13 insertions, 3 deletions
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 |