Dear Akim,

> | +   * aclang.m4 (AC_F77_LIBRARY_LDFLAGS):
> | +   don't swallow -lm (if a Fortran compiler needs it, it is likely
> | +   to be required when linking C/C++ with Fortran)
> | +
> | +   -YP,... option: replace ^-YP, with -L 
> 
> This is not what you did: you refer to -YP without the anchor.  I
> trust you for this change, but you didn't explain why you also removed
> the ^P, stuff?  Since you -YP is not a super-pattern of it, you
> removed it.

> |          -YP,*)
> |            temp_arg=
> | -          for ac_i in `echo $ac_arg | sed -e 's%^P,%-L%' -e 's%:% -L%g'`; do
> | +          for ac_j in `echo $ac_arg | sed -e 's%-YP,%-L%' -e 's%:% -L%g'`; do

My reasoning was as follows: $ac_arg is "-YP,[something]".
Theerefore, sed -e 's%^P,%-L%" won't substitute anything, because the "P"
is not at the beginning of the expression:

echo '-YP,/usr/bogus:/usr/stuff' | sed -e 's%^P,%-L%' -e 's%:% -L%g'
-YP,/usr/bogus -L/usr/stuff

echo '-YP,/usr/bogus:/usr/stuff' | sed -e 's%^-YP,%-L%' -e 's%:% -L%g'
-L/usr/bogus -L/usr/stuff

the latter is what we want, right?

Regards, Martin


Reply via email to