comparison src/auto/configure @ 30421:425b686c5244 v9.0.0546

patch 9.0.0546: supporting Ruby 1.8 makes code complicated Commit: https://github.com/vim/vim/commit/236ccbf6f8a671a45b773de4b34558ecfdf9ac02 Author: K.Takata <kentkt@csc.jp> Date: Thu Sep 22 16:12:06 2022 +0100 patch 9.0.0546: supporting Ruby 1.8 makes code complicated Problem: Supporting Ruby 1.8 makes code complicated. Solution: Drop Ruby 1.8 support, it is ancient. (Ken Takata, closes https://github.com/vim/vim/issues/11195)
author Bram Moolenaar <Bram@vim.org>
date Thu, 22 Sep 2022 17:15:03 +0200
parents 029c59bf78f1
children 101f08b49ed3
comparison
equal deleted inserted replaced
30420:920fc6b9b395 30421:425b686c5244
7637 7637
7638 7638
7639 if test "X$vi_cv_path_ruby" != "X"; then 7639 if test "X$vi_cv_path_ruby" != "X"; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
7641 $as_echo_n "checking Ruby version... " >&6; } 7641 $as_echo_n "checking Ruby version... " >&6; }
7642 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 7642 if $vi_cv_path_ruby -e 'RUBY_VERSION >= "1.9.1" or exit 1' >/dev/null 2>/dev/null; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
7644 $as_echo "OK" >&6; } 7644 $as_echo "OK" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
7646 $as_echo_n "checking Ruby rbconfig... " >&6; } 7646 $as_echo_n "checking Ruby rbconfig... " >&6; }
7647 ruby_rbconfig="RbConfig" 7647 ruby_rbconfig="RbConfig"
7661 if test -d "$rubyarchdir"; then 7661 if test -d "$rubyarchdir"; then
7662 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" 7662 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7663 fi 7663 fi
7664 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` 7664 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7665 if test "X$rubyversion" = "X"; then 7665 if test "X$rubyversion" = "X"; then
7666 rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"` 7666 rubyversion=`$vi_cv_path_ruby -e "print RUBY_VERSION.gsub(/\./, '')[0,2]"`
7667 fi 7667 fi
7668 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 7668 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7669 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` 7669 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7670 if test "X$rubylibs" != "X"; then 7670 if test "X$rubylibs" != "X"; then
7671 RUBY_LIBS="$rubylibs" 7671 RUBY_LIBS="$rubylibs"
7713 else 7713 else
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7715 $as_echo "not found; disabling Ruby" >&6; } 7715 $as_echo "not found; disabling Ruby" >&6; }
7716 fi 7716 fi
7717 else 7717 else
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.9.1 or later" >&5
7719 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 7719 $as_echo "too old; need Ruby version 1.9.1 or later" >&6; }
7720 fi 7720 fi
7721 fi 7721 fi
7722 7722
7723 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then 7723 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7724 as_fn_error $? "could not configure Ruby" "$LINENO" 5 7724 as_fn_error $? "could not configure Ruby" "$LINENO" 5