diff --git a/configure b/configure index 564f906..3a0f85c 100755 --- a/configure +++ b/configure @@ -128,12 +128,24 @@ for arg ; do case "$arg" in esac; done #******************************************************************************# -# Evaluate variables # +# Little things # #******************************************************************************# +# Cross-compilation things +if [ ! $prefix_set ] && [ $target ]; then + prefix="$prefix"/"$target" +fi + +# Check MS-Windows targets +case "$target" in *-mingw32) windows=y ;; + +# Evaluate variables for var in prefix bindir mandir; do eval $var'='$(eval 'echo $'$var) done +# Check if is on Cygwin +[ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ] && windows=y + #******************************************************************************# # Create Makefile configuration # #******************************************************************************#