242 |
local myopts |
local myopts |
243 |
if [[ ! -z ${CTARGET} ]] |
if [[ ! -z ${CTARGET} ]] |
244 |
then |
then |
245 |
myopts="--target=${CTARGET}" |
myopts+=" --target=${CTARGET}" |
246 |
fi |
fi |
247 |
|
# if requested disable-static |
248 |
|
if [[ ! -z $(./configure --help | grep -- '--.*able-static') ]] |
249 |
|
then |
250 |
|
if mqueryfeature '!static' |
251 |
|
then |
252 |
|
myopts+=" --disable-static" |
253 |
|
else |
254 |
|
myopts+=" --enable-static" |
255 |
|
fi |
256 |
|
fi |
257 |
|
|
258 |
|
# always enable shared by default |
259 |
|
if [[ ! -z $(./configure --help | grep -- '--.*able-shared') ]] |
260 |
|
then |
261 |
|
myopts+=" --enable-shared" |
262 |
|
fi |
263 |
|
|
264 |
if [ -x ./configure ] |
if [ -x ./configure ] |
265 |
then |
then |