build: allow GZIP to be set to empty string in configure.

master
Samy Al Bahra 5 years ago
parent 9a76e490ae
commit cb63256ae2

23
configure vendored

@ -325,7 +325,7 @@ done
HEADERS=${HEADERS:-"${PREFIX}/include"} HEADERS=${HEADERS:-"${PREFIX}/include"}
LIBRARY=${LIBRARY:-"${PREFIX}/lib"} LIBRARY=${LIBRARY:-"${PREFIX}/lib"}
MANDIR=${MANDIR:-"${PREFIX}/share/man"} MANDIR=${MANDIR:-"${PREFIX}/share/man"}
GZIP=${GZIP:-"gzip -c"} GZIP=${GZIP-"gzip -c"}
POINTER_PACK_ENABLE=${POINTER_PACK_ENABLE:-"CK_MD_POINTER_PACK_DISABLE"} POINTER_PACK_ENABLE=${POINTER_PACK_ENABLE:-"CK_MD_POINTER_PACK_DISABLE"}
DISABLE_DOUBLE=${DISABLE_DOUBLE:-"CK_PR_ENABLE_DOUBLE"} DISABLE_DOUBLE=${DISABLE_DOUBLE:-"CK_PR_ENABLE_DOUBLE"}
PPC32_LWSYNC_ENABLE=${PPC32_LWSYNC_ENABLE:-"CK_MD_PPC32_LWSYNC_DISABLE"} PPC32_LWSYNC_ENABLE=${PPC32_LWSYNC_ENABLE:-"CK_MD_PPC32_LWSYNC_DISABLE"}
@ -583,21 +583,26 @@ else
echo "success [$BUILD_DIR]" echo "success [$BUILD_DIR]"
fi fi
printf "Finding gzip tool................" if test -n "$GZIP"; then
GZIP=`pathsearch "${GZIP:-gzip}"` printf "Finding gzip tool................"
if test -z "$GZIP" -o ! -x "$GZIP"; then GZIP=`pathsearch "${GZIP:-gzip}"`
if test -z "$GZIP" -o ! -x "$GZIP"; then
GZIP=`pathsearch "${GZIP:-gzip}"` GZIP=`pathsearch "${GZIP:-gzip}"`
GZIP="$GZIP" GZIP="$GZIP"
fi fi
if test -z "$GZIP"; then if test -z "$GZIP"; then
echo "not found" echo "not found"
GZIP=cat else
GZIP_SUFFIX=""
else
echo "success [$GZIP]" echo "success [$GZIP]"
GZIP="$GZIP -c" GZIP="$GZIP -c"
GZIP_SUFFIX=".gz" GZIP_SUFFIX=".gz"
fi
fi
if test -z "$GZIP"; then
GZIP=cat
GZIP_SUFFIX=""
fi fi
printf "Finding suitable compiler........" printf "Finding suitable compiler........"

Loading…
Cancel
Save