aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libjava/configure
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/libjava/configure')
-rwxr-xr-xgcc-4.9/libjava/configure17
1 files changed, 16 insertions, 1 deletions
diff --git a/gcc-4.9/libjava/configure b/gcc-4.9/libjava/configure
index 6fb813f4b..8ae991d6a 100755
--- a/gcc-4.9/libjava/configure
+++ b/gcc-4.9/libjava/configure
@@ -9962,7 +9962,22 @@ fi
# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then :
- withval=$with_pic; pic_mode="$withval"
+ withval=$with_pic; p=${PACKAGE-default}
+ case "$withval" in
+ yes|no) pic_mode="$withval" ;;
+ *)
+ pic_mode=default
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $withval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ pic_mode=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
else
pic_mode=default
fi