X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=config;h=00f90876118383224f0bd0e1b1f38246da700092;hp=14d735c6181ab36eb3905094cb7e0daf85c53032;hb=fe191b49b3eb1f14afa528b5f64a687488470daa;hpb=f19a5ff9ab85313f5b30cfc9fbed3a2eea60a59d diff --git a/config b/config index 14d735c618..00f9087611 100755 --- a/config +++ b/config @@ -35,7 +35,8 @@ See INSTALL for instructions. EOF ;; -*) options=$options" $i" ;; +*) i=`echo "$i" | sed -e "s|'|'\\\\\\''|g"` + options="$options '$i'" ;; esac done @@ -848,7 +849,7 @@ case "$GUESSOS" in i386-*) options="$options 386" ;; esac -for i in aes aria bf camellia cast des dh dsa ec hmac idea md2 md5 mdc2 rc2 rc4 rc5 ripemd rsa seed sm4 sha +for i in aes aria bf camellia cast des dh dsa ec hmac idea md2 md5 mdc2 rc2 rc4 rc5 ripemd rsa seed sha sm3 sm4 do if [ ! -d $THERE/crypto/$i ] then @@ -902,7 +903,9 @@ if [ $? = "0" ]; then echo $PERL $THERE/Configure $OUT $options fi if [ "$DRYRUN" = "false" ]; then - $PERL $THERE/Configure $OUT $options + # eval to make sure quoted options, possibly with spaces inside, + # are treated right + eval $PERL $THERE/Configure $OUT $options fi else echo "This system ($OUT) is not supported. See file INSTALL for details."