[前][次][番号順一覧][スレッド一覧]

ruby-changes:23959

From: naruse <ko1@a...>
Date: Sun, 10 Jun 2012 14:29:02 +0900 (JST)
Subject: [ruby-changes:23959] naruse:r36010 (trunk): * configure.in: NetBSD 6 adds libexecinfo but it only works on amd64.

naruse	2012-06-10 14:28:51 +0900 (Sun, 10 Jun 2012)

  New Revision: 36010

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36010

  Log:
    * configure.in: NetBSD 6 adds libexecinfo but it only works on amd64.
      http://www.mail-archive.com/source-changes-full@n.../msg38729.html

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 36009)
+++ configure.in	(revision 36010)
@@ -2079,14 +2079,19 @@
     test x$rb_cv_fork_with_pthread = xyes || AC_DEFINE(CANNOT_FORK_WITH_PTHREAD)
 fi
 
-AS_CASE(["$target_os"],
-[freebsd*], [
+AS_CASE(["$target_cpu-$target_os"],
+[*-freebsd*], [
     AC_CHECK_HEADERS([/usr/local/include/execinfo.h])
     if test "x$ac_cv_header__usr_local_include_execinfo_h" = xyes; then :
 	RUBY_APPEND_OPTION(CPPFLAGS, -I/usr/local/include)
 	LDFLAGS="${LDFLAGS:+$LDFLAGS }-L/usr/local/lib"
 	DLDFLAGS="${DLDFLAGS:+$DLDFLAGS }-L/usr/local/lib"
 	AC_CHECK_LIB([execinfo], [backtrace])
+    fi],
+[x86_64-netbsd*], [
+    AC_CHECK_HEADERS([execinfo.h])
+	if test "x$ac_cv_header_execinfo_h" = xyes; then :
+	AC_CHECK_LIB([execinfo], [backtrace])
     fi])
 AC_CHECK_FUNCS(backtrace)
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36009)
+++ ChangeLog	(revision 36010)
@@ -1,3 +1,8 @@
+Sun Jun 10 14:19:33 2012  NARUSE, Yui  <naruse@r...>
+
+	* configure.in: NetBSD 6 adds libexecinfo but it only works on amd64.
+	  http://www.mail-archive.com/source-changes-full@n.../msg38729.html
+
 Sun Jun 10 12:43:23 2012  Tanaka Akira  <akr@f...>
 
 	* process.c (rb_f_exec): call rb_exec_async_signal_safe except on

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]