 . "$LOCAL_ENV_DIR/otp.install.base"
 . "$LOCAL_ENV_DIR/otp.source.version"
 
+if [[ $otp_vsn_major -gt 16 ]]
+then
+    hipe_modes='false true'
+else
+    hipe_modes='false'
+fi
 arch_flags='-m64 -march=core2 -mcx16'
 arch_flags='-m64 -march=native -mcx16'
 case "$os_type" in

PATH="$ERL_TOP/bin:$PATH"
export  ERL_TOP PATH

for hipe in false true
do
    if $hipe
    then
        otp_label="$otp_name-h1"
        hipe_flag='--enable-hipe'
    else
        otp_label="$otp_name-h0"
        hipe_flag='--disable-hipe'
    fi
    otp_dest="$otp_install_base/$otp_label"

        ccands='icc /usr/bin/cc gcc cc'
        cccands='/usr/bin/c++ g++ c++'
        config_os='--enable-darwin-64bit --with-cocoa'
        hipe_modes='false'
        ;;
    linux )
        ccands='icc gcc cc'
