From: Ralf Wildenhues Date: Sat, 11 Jun 2005 11:01:59 +0000 (+0000) Subject: * m4/libtool.m4 (_LT_COMPILER_OPTION, _LT_LINKER_OPTION): No X-Git-Tag: release-2-1b~632 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a797e82eb92a9b49036a81a4ac60f1e81869e694;p=thirdparty%2Flibtool.git * m4/libtool.m4 (_LT_COMPILER_OPTION, _LT_LINKER_OPTION): No need for $ECHO here. Fix sed script syntax to be portable. This should now put the pic-flag right after the last $*FLAGS variable again, if any. Necessary for Fortran AC_FC_SRCEXT. --- diff --git a/ChangeLog b/ChangeLog index 2143117f3..8ffb571d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-06-11 Ralf Wildenhues + + * m4/libtool.m4 (_LT_COMPILER_OPTION, _LT_LINKER_OPTION): No + need for $ECHO here. Fix sed script syntax to be portable. + This should now put the pic-flag right after the last $*FLAGS + variable again, if any. Necessary for Fortran AC_FC_SRCEXT. + 2005-06-09 Ralf Wildenhues * m4/libtool.m4 (_LT_CONFIG_COMMANDS): Remove long lines. diff --git a/m4/libtool.m4 b/m4/libtool.m4 index e44889d15..a68f1bdb4 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1075,8 +1075,8 @@ AC_CACHE_CHECK([$1], [$2], # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. - lt_compile=`$ECHO "$ac_compile" | $SED \ - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) @@ -1497,8 +1497,8 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`$ECHO "$ac_compile" | $SED \ - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)