akira yamada
akira****@arika*****
2004年 1月 29日 (木) 19:32:11 JST
>>>>> In <87ektjyziu.wl%komat****@taiya*****> >>>>> Hiroyuki Komatsu <komat****@taiya*****> wrote: > <http://prime.sourceforge.jp/src/prime-dict-0.6.7.tar.gz> CVSのほうですが、 acinclude.m4とconfigure.inにprimeと同様の変更を加える必要がありそうです。 # prime-dict-config.rbだけ違うところに入ってしまいます。 Index: acinclude.m4 =================================================================== RCS file: /cvsroot/prime/prime-dict/acinclude.m4,v retrieving revision 1.1 diff -u -r1.1 acinclude.m4 --- acinclude.m4 28 May 2003 09:48:49 -0000 1.1 +++ acinclude.m4 29 Jan 2004 10:25:42 -0000 @@ -14,5 +14,11 @@ test "x$exec_prefix" = xNONE && exec_prefix=$prefix ]) AC_DEFUN(AC_VAR_EXPAND, [`eval echo $1`]) +AC_DEFUN(MY_AC_PROG_RUBY, +[ + AC_SUBST(ruby_version, + [`ruby -r rbconfig -e "puts Config::CONFIG[['ruby_version']]"`]) +]) AC_DEFUN(AC_RUBY_SITELIBDIR, - [`ruby -r rbconfig -e "puts Config::CONFIG[['sitelibdir']]"`]) + ['$(libdir)/site_ruby/$(ruby_version)']) +# [`ruby -r rbconfig -e "puts Config::MAKEFILE_CONFIG[['rubylibdir']]"`]) Index: configure.in =================================================================== RCS file: /cvsroot/prime/prime-dict/configure.in,v retrieving revision 1.8 diff -u -r1.8 configure.in --- configure.in 29 Jan 2004 06:52:35 -0000 1.8 +++ configure.in 29 Jan 2004 10:25:42 -0000 @@ -17,10 +17,12 @@ # AM_MAINTAINER_MODE AC_INIT_DEFAULT_VALUES +MY_AC_PROG_RUBY + # Checks for user options. AC_ARG_WITH(rubydir, AC_HELP_STRING([--with-rubydir=DIR], - [ruby libraries directory [[ruby_sitelibdir]]]), + [ruby libraries directory [[LIBDIR/ruby/RUBY_VERSION]]]), [rubydir=$withval], [rubydir=AC_RUBY_SITELIBDIR]) AC_SUBST(rubydir) ところで、primeのほうでは以下のようになるのですが これは手元の環境が悪いのでしょうか? $ ./autogen.sh aclocal: configure.in: 0: macro `AM_PATH_PYTHON' not found in library automake: configure.in: required file `./config.guess' not found automake: configure.in: required file `./config.sub' not found $ ./configure $ make cd . && aclocal aclocal: configure.in: 0: macro `AM_PATH_PYTHON' not found in library make: *** [aclocal.m4] エラー 1 AC_DEFUN(MY_AC_PROG_PYTHON, の部分を 削除しておくことで問題を回避できています。 -- やまだあきら / akira yamada <http://arika.org/> (akira****@arika*****, akira****@vinec***** or akira****@linux*****)