2016-05-31 21:45:07 +00:00
|
|
|
# Copyright (C) 1999-2011, International Business Machines Corporation and others. All Rights Reserved.
|
2010-01-28 06:31:51 +00:00
|
|
|
s%^\([a-zA-Z0-9\._-]*\)[ ]*+=%\1=$(\1) %
|
2002-05-07 03:10:28 +00:00
|
|
|
s%^[A-Z]*_SO_TARG*%## &%
|
2006-08-29 15:57:43 +00:00
|
|
|
s%^SHARED_OBJECT.*%## &%
|
2004-06-09 23:04:34 +00:00
|
|
|
s%^LD_SONAME.*%## &%
|
2002-05-07 03:10:28 +00:00
|
|
|
s%$(\([^\)]*\))%${\1}%g
|
|
|
|
s%^ %#M# %
|
|
|
|
s@^[a-zA-Z%$.][^=]*$@#M#&@
|
|
|
|
s@^\([a-zA-Z][-.a-zA-Z_0-9-]*\)[ ]*=[ ]*\(.*\)@\1="\2"@
|
|
|
|
s@^\([a-zA-Z][-a-zA-Z_0-9-]*\)\.\([a-zA-Z_0-9-]*\)[ ]*=[ ]*\(.*\)@\1_\2=\3@
|
|
|
|
s@^\([a-zA-Z][-a-zA-Z_0-9-]*\)\-\([a-zA-Z_0-9-]*\)[ ]*=[ ]*\(.*\)@\1_\2=\3@
|
2009-06-03 23:55:27 +00:00
|
|
|
s@\${\([a-zA-Z][-a-zA-Z_0-9-]*\)\.\([a-zA-Z_0-9-]*\)}@${\1_\2}@g
|
2002-05-07 03:10:28 +00:00
|
|
|
s@^\(prefix\)=\(.*\)@default_\1=\2\
|
2002-05-08 23:25:08 +00:00
|
|
|
if [ "x${\1}" = "x" ]; then \1="$default_\1"; fi@
|
2002-05-07 03:10:28 +00:00
|
|
|
s@^\(ENABLE_RPATH\)=\(.*\)@default_\1=\2\
|
2002-05-08 23:25:08 +00:00
|
|
|
if [ "x${\1}" = "x" ]; then \1="$default_\1"; fi@
|
2002-05-07 03:10:28 +00:00
|
|
|
s%^#SH#[ ]*%%
|
2011-10-15 21:52:43 +00:00
|
|
|
s%'\$\$'%\\\$\\\$%g
|