diff options
Diffstat (limited to 'gcc-4.9/libffi/configure')
-rwxr-xr-x | gcc-4.9/libffi/configure | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/gcc-4.9/libffi/configure b/gcc-4.9/libffi/configure index efb62cdea..00d32b8f5 100755 --- a/gcc-4.9/libffi/configure +++ b/gcc-4.9/libffi/configure @@ -7508,7 +7508,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 @@ -10907,7 +10922,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10910 "configure" +#line 10924 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11013,7 +11028,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11016 "configure" +#line 11030 "configure" #include "confdefs.h" #if HAVE_DLFCN_H |