diff options
| author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-27 14:45:48 +0000 |
|---|---|---|
| committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-27 14:45:48 +0000 |
| commit | 8d224e0a3357659aceef145916536dfea71d17d8 (patch) | |
| tree | e9d7d5f41225292f11cdd13ff7d22ccf3ef3a5c3 | |
| parent | dcbd2088f5dc0ac32d973698d7cf8e3c9d069ceb (diff) | |
| download | ruby-8d224e0a3357659aceef145916536dfea71d17d8.tar.gz ruby-8d224e0a3357659aceef145916536dfea71d17d8.tar.xz ruby-8d224e0a3357659aceef145916536dfea71d17d8.zip | |
* configure.in: fix "test: too many arguments" error.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.in | 12 |
2 files changed, 10 insertions, 6 deletions
@@ -1,3 +1,7 @@ +Sat Dec 27 23:41:46 2003 WATANABE Hirofumi <eban@ruby-lang.org> + + * configure.in: fix "test: too many arguments" error. + Sat Dec 27 15:32:19 2003 Dave Thomas <dave@wireless_3.local.thomases.com> * time.c: RDoc comments added diff --git a/configure.in b/configure.in index e49b8d3bf..1704619fe 100644 --- a/configure.in +++ b/configure.in @@ -684,13 +684,13 @@ int main() ], rb_cv_stack_grow_dir=-1, rb_cv_stack_grow_dir=+1, rb_cv_stack_grow_dir=0)]) AC_DEFINE_UNQUOTED(STACK_GROW_DIRECTION, $rb_cv_stack_grow_dir) -if test "$enable_pthread" = "yes"; then +if test x"$enable_pthread" = xyes; then for pthread_lib in pthread pthreads c c_r; do AC_CHECK_LIB($pthread_lib, pthread_kill, rb_with_pthread=yes, rb_with_pthread=no) if test "$rb_with_pthread" = "yes"; then break; fi done - if test $rb_with_pthread = yes; then + if test x"$rb_with_pthread" = xyes; then AC_DEFINE(_REENTRANT) AC_DEFINE(_THREAD_SAFE) AC_DEFINE(HAVE_LIBPTHREAD) @@ -708,15 +708,15 @@ if test "$enable_pthread" = "yes"; then AC_MSG_WARN("Don't know how to find pthread library on your system -- thread support disabled") fi AC_CHECK_FUNC(nanosleep) - if test "$ac_cv_func_nanosleep" = "no"; then + if test x"$ac_cv_func_nanosleep" = xno; then AC_CHECK_LIB(rt, nanosleep) - if test "$ac_cv_lib_rt_nanosleep" = "yes"; then + if test x"$ac_cv_lib_rt_nanosleep" = xyes; then AC_DEFINE(HAVE_NANOSLEEP) fi fi fi -if test $ac_cv_header_ucontext_h = yes; then - if test $target_cpu = ia64 -o $rb_with_pthread = yes; then +if test x"$ac_cv_header_ucontext_h" = xyes; then + if test x"$target_cpu" = xia64 -o x"$rb_with_pthread" = xyes; then AC_CHECK_FUNCS(getcontext setcontext) fi fi |
