Skip to content
Snippets Groups Projects
Commit ca8dc751 authored by Markus Blatt's avatar Markus Blatt
Browse files

[dunecontrol,bugfix] Stops using non-posix \s with sed and only uses sed if variable is there.

parent 1d8ba49d
No related branches found
No related tags found
No related merge requests found
......@@ -661,8 +661,8 @@ run_default_configure () {
# such that they are honored by cmake.
flags="CXX CC CXXFLAGS CFLAGS CPPFLAGS LDFLAGS F77 FFLAGS FLIBS FC FCFLAGS FCLIBS LIBS"
for i in $flags; do
cflags=`echo "$PARAMS" | sed "s/.*\($i=\"[^\"]*\"\|$i='[^']*'\|$i=[^\s^ ]*\).*/\1/"`
if test "$cflags" != "$PARAMS"; then
cflags=`echo "$PARAMS" | $GREP $i= | sed "s/.*\($i=\"[^\"]*\"\|$i='[^']*'\|$i=[^[$BLANK]^ ]*\).*/\1/"`
if test -n "$cflags" ; then
PREPARAMS="$PREPARAMS $cflags"
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment