Skip to content

Commit

Permalink
Merge pull request #1292 from boggle/fix1291
Browse files Browse the repository at this point in the history
Changes to configure (Fix for #1291)
  • Loading branch information
graydon committed Dec 14, 2011
2 parents fa9ad98 + 9c4b3c2 commit f09eb20
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ valopt() {
local DOC="$*"
if [ $HELP -eq 0 ]
then
local UOP=$(echo $OP | tr 'a-z-' 'A-Z_')
local UOP=$(echo $OP | tr '[:lower:]' '[:upper:]' | tr '\-' '\_')
local V="CFG_${UOP}"
eval $V="$DEFAULT"
for arg in $CFG_CONFIGURE_ARGS
Expand Down Expand Up @@ -335,6 +335,11 @@ then
CFG_PREFIX=/usr/local
fi

if [ -z "$CFG_HOST_TRIPLE" ]
then
CFG_HOST_TRIPLE="$DEFAULT_HOST_TRIPLE"
fi

if [ -z "$CFG_TARGET_TRIPLES" ]
then
CFG_TARGET_TRIPLES="${CFG_HOST_TRIPLE}"
Expand Down

0 comments on commit f09eb20

Please sign in to comment.