diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-10-20 09:34:12 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-10-20 09:34:12 +0000 |
commit | 784d0322464c748d7f9f43c8d41f7feea7b22199 (patch) | |
tree | 6b586a29a12155ed86f3a22fca71907fc0474722 /Build/source/m4/ltoptions.m4 | |
parent | dd0dfea56152032b37ed567aace96ca8c60d2f41 (diff) |
libtool 2.4.2
git-svn-id: svn://tug.org/texlive/trunk@24338 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/m4/ltoptions.m4')
-rw-r--r-- | Build/source/m4/ltoptions.m4 | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Build/source/m4/ltoptions.m4 b/Build/source/m4/ltoptions.m4 index 17cfd51c0b3..5d9acd8e23b 100644 --- a/Build/source/m4/ltoptions.m4 +++ b/Build/source/m4/ltoptions.m4 @@ -326,9 +326,24 @@ dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # MODE is either `yes' or `no'. If omitted, it defaults to `both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], - [AS_HELP_STRING([--with-pic], + [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], - [pic_mode="$withval"], + [lt_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 lt_pkg in $withval; do + IFS="$lt_save_ifs" + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], [pic_mode=default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) |