diff options
Diffstat (limited to 'mk/buildlink2/libtool-fix-la')
-rw-r--r-- | mk/buildlink2/libtool-fix-la | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mk/buildlink2/libtool-fix-la b/mk/buildlink2/libtool-fix-la index 0fe9d8cb69d..1ddbabf4ade 100644 --- a/mk/buildlink2/libtool-fix-la +++ b/mk/buildlink2/libtool-fix-la @@ -1,4 +1,4 @@ -# $NetBSD: libtool-fix-la,v 1.12 2002/10/30 00:23:00 jlam Exp $ +# $NetBSD: libtool-fix-la,v 1.13 2002/12/22 19:02:44 jlam Exp $ # # For *.la files, in the "relink_command" line, we make the following # replacements: @@ -16,7 +16,7 @@ labase=`@BASENAME@ $lafile .la` ladir=`@DIRNAME@ $lafile` latimestamp=${ladir}/.${labase}.la.timestamp laifile=${ladir}/.libs/${labase}.lai -if [ -f $lafile ]; then +if @TEST@ -f $lafile; then . ${ladir}/${labase}.la deps= @@ -44,7 +44,7 @@ if [ -f $lafile ]; then fixla=1 ;; esac - if [ $fixla -gt 0 ]; then + if @TEST@ $fixla -gt 0; then case "$deps" in *"-L$ltlibsdir "*) ;; *"-L$ltlibsdir") ;; @@ -89,7 +89,7 @@ if [ -f $lafile ]; then fixla=1 ;; esac - if [ $fixla -gt 0 ]; then + if @TEST@ $fixla -gt 0; then case "$relink" in *"-L$ltlibsdir "*) ;; *"-L$ltlibsdir") ;; @@ -103,10 +103,10 @@ if [ -f $lafile ]; then ;; esac done - if [ -n "$deps" -o -n "$relink" ] && \ + if @TEST@ -n "$deps" || @TEST@ -n "$relink" && \ ! @EGREP@ "^#.*modified by buildlink2" $lafile >/dev/null 2>&1; then @MV@ -f $lafile ${lafile}.blsav - if [ -n "$deps" ]; then + if @TEST@ -n "$deps"; then ( @CAT@ ${lafile}.blsav | @SED@ -e '/^dependency_libs=/,$d' @ECHO@ "dependency_libs='$deps'" @@ -115,7 +115,7 @@ if [ -f $lafile ]; then else @CAT@ ${lafile}.blsav > ${lafile}.tmp fi - if [ -n "$relink" ]; then + if @TEST@ -n "$relink"; then ( @CAT@ ${lafile}.tmp | @SED@ -e '/^relink_command=/,$d' @ECHO@ "relink_command='$relink'" @@ -129,7 +129,7 @@ if [ -f $lafile ]; then @RM@ ${lafile}.tmp @ECHO@ "==> Fixed $lafile" >> $wrapperlog fi - if [ -n "$laifile" ] && [ -f "$laifile" ] && \ + if @TEST@ -n "$laifile" && @TEST@ -f "$laifile" && \ ! @EGREP@ "^#.*modified by buildlink2" $laifile >/dev/null 2>&1; then @SED@ @_BLNK_WRAP_LT_UNTRANSFORM_SED@ \ @_BLNK_UNTRANSFORM_SED@ \ @@ -163,7 +163,7 @@ if [ -f $lafile ]; then esac prev="$i" done - if [ -z "$lexist" ]; then + if @TEST@ -z "$lexist"; then L= fi deps="$L$l" |