comparison m4/ltoptions.m4 @ 20:dd5b333a7960

Regenerate Autotools files myself with Ron's patch
author Adam Chlipala <adam@chlipala.net>
date Sat, 23 Jun 2012 09:58:31 -0400
parents a40cf9c8d615
children
comparison
equal deleted inserted replaced
19:287a0e02f1a6 20:dd5b333a7960
324 # implement the --with-pic flag, and support the `pic-only' and `no-pic' 324 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
325 # LT_INIT options. 325 # LT_INIT options.
326 # MODE is either `yes' or `no'. If omitted, it defaults to `both'. 326 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
327 m4_define([_LT_WITH_PIC], 327 m4_define([_LT_WITH_PIC],
328 [AC_ARG_WITH([pic], 328 [AC_ARG_WITH([pic],
329 [AS_HELP_STRING([--with-pic], 329 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
330 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 330 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
331 [pic_mode="$withval"], 331 [lt_p=${PACKAGE-default}
332 case $withval in
333 yes|no) pic_mode=$withval ;;
334 *)
335 pic_mode=default
336 # Look at the argument we got. We use all the common list separators.
337 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
338 for lt_pkg in $withval; do
339 IFS="$lt_save_ifs"
340 if test "X$lt_pkg" = "X$lt_p"; then
341 pic_mode=yes
342 fi
343 done
344 IFS="$lt_save_ifs"
345 ;;
346 esac],
332 [pic_mode=default]) 347 [pic_mode=default])
333 348
334 test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 349 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
335 350
336 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 351 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl