configure.in: suppress error messages

* configure.in: suppress error messages, rm: cannot remove
  'conftest.dSYM', from AC_EGREP_CPP with CFLAGS=-g on Darwin.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-03-08 05:24:26 +00:00
Родитель 5ebffacf17
Коммит d415f2abac
1 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -11,6 +11,20 @@ AC_DEFUN([RUBY_PREREQ_AC],
AC_DISABLE_OPTION_CHECKING
# suppress error messages, rm: cannot remove 'conftest.dSYM', from
# AC_EGREP_CPP with CFLAGS=-g on Darwin.
rm() {
local recursive
for arg do
AS_CASE("$arg",
[--*], [],
[-*r*], [break],
[conftest.*], [if test -d "$arg"; then recursive=-r; break; fi],
[])
done
command rm $recursive "$@"
}
{ # environment section
AC_ARG_WITH(baseruby,