valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
valopt libdir "${CFG_PREFIX}/lib" "install libraries"
-#Deprecated opts to keep compatibility
-valopt build-triple "" "LLVM build triple"
-valopt host-triples "" "LLVM host triples"
-valopt target-triples "" "LLVM target triples"
-
# Validate Options
step_msg "validating $CFG_SELF args"
validate_opt
# extract the first 2 version fields, ignore everything else
sed 's/pandoc \([0-9]*\)\.\([0-9]*\).*/\1 \2/')
+ MIN_PV_MAJOR="1"
+ MIN_PV_MINOR="9"
# these patterns are shell globs, *not* regexps
PV_MAJOR=${PV_MAJOR_MINOR% *}
PV_MINOR=${PV_MAJOR_MINOR#* }
- if [ "$PV_MAJOR" -lt "1" ] || [ "$PV_MINOR" -lt "8" ]
+ if [ "$PV_MAJOR" -lt "$MIN_PV_MAJOR" ] || [ "$PV_MINOR" -lt "$MIN_PV_MINOR" ]
then
- step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. disabling"
+ step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. Need at least $MIN_PV_MAJOR.$MIN_PV_MINOR. Disabling"
BAD_PANDOC=1
fi
fi
fi
fi
+BIN_SUF=
+if [ $CFG_OSTYPE = "pc-mingw32" ]
+then
+ BIN_SUF=.exe
+fi
+
if [ ! -z "$CFG_ENABLE_LOCAL_RUST" ]
then
- if [ ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc ]
+ if [ ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} ]
then
err "no local rust to use"
else
- LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc --version`
- step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: " $LRV
+ LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} --version`
+ step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: $LRV"
fi
fi
fi
# a little post-processing of various config values
-
-# XXX: Support for deprecated syntax, should be dropped.
-if [ ! -z "$CFG_BUILD_TRIPLE" ]; then
- CFG_BUILD=${CFG_BUILD_TRIPLE}
-fi
-if [ ! -z "$CFG_HOST_TRIPLES" ]; then
- CFG_HOST=${CFG_HOST_TRIPLES}
-fi
-if [ ! -z "$CFG_TARGET_TRIPLES" ]; then
- CFG_TARGET=${CFG_TARGET_TRIPLES}
-fi
-
-
CFG_PREFIX=${CFG_PREFIX%/}
CFG_MANDIR=${CFG_MANDIR%/}
CFG_HOST="$(echo $CFG_HOST | tr ',' ' ')"
fi
;;
+ arm-apple-darwin)
+ if [ $CFG_OSTYPE != apple-darwin ]
+ then
+ err "The iOS target is only supported on Mac OS X"
+ fi
+ ;;
+
*)
;;
esac