36 |
|
|
37 |
AC_PATH_PROG(RUBY, ruby, AC_MSG_ERROR([ruby not found])) |
AC_PATH_PROG(RUBY, ruby, AC_MSG_ERROR([ruby not found])) |
38 |
|
|
39 |
|
AC_MSG_CHECKING([where to install Ruby script files]) |
40 |
|
RUBYDIR=[`$RUBY -rrbconfig -e 'print Config::CONFIG["sitelibdir"]'`] |
41 |
|
AC_MSG_RESULT($RUBYDIR) |
42 |
|
AC_SUBST(RUBYDIR) |
43 |
|
|
44 |
AC_MSG_CHECKING([whether dRuby is available]) |
AC_MSG_CHECKING([whether dRuby is available]) |
45 |
if $RUBY -rdrb/drb -e exit >/dev/null 2>&1; then |
if $RUBY -rdrb/drb -e exit >/dev/null 2>&1; then |
46 |
: |
: |
65 |
fi |
fi |
66 |
AC_MSG_RESULT([yes]) |
AC_MSG_RESULT([yes]) |
67 |
|
|
68 |
AC_CONFIG_FILES([Makefile src/Makefile]) |
AC_MSG_CHECKING([whether eRuby is available]) |
69 |
|
if $RUBY -rerb/erbl -e exit >/dev/null 2>&1; then |
70 |
|
: |
71 |
|
else |
72 |
|
AC_MSG_ERROR([eRuby not found]) |
73 |
|
fi |
74 |
|
AC_MSG_RESULT([yes]) |
75 |
|
|
76 |
|
AC_MSG_CHECKING([whether Iconv for Ruby is available]) |
77 |
|
if $RUBY -riconv -e exit >/dev/null 2>&1; then |
78 |
|
: |
79 |
|
else |
80 |
|
AC_MSG_ERROR([Iconv for Ruby not found]) |
81 |
|
fi |
82 |
|
AC_MSG_RESULT([yes]) |
83 |
|
|
84 |
|
AC_MSG_CHECKING([whether RubyMail is available]) |
85 |
|
if $RUBY -rrmail/message -e exit >/dev/null 2>&1; then |
86 |
|
: |
87 |
|
else |
88 |
|
AC_MSG_ERROR([RubyMail not found]) |
89 |
|
fi |
90 |
|
AC_MSG_RESULT([yes]) |
91 |
|
|
92 |
|
AC_CONFIG_FILES([Makefile src/Makefile lib/Makefile |
93 |
|
lib/bugcomm/Makefile data/Makefile]) |
94 |
AC_CONFIG_FILES([src/bugcomm], [chmod +x src/bugcomm]) |
AC_CONFIG_FILES([src/bugcomm], [chmod +x src/bugcomm]) |
95 |
AC_CONFIG_FILES([src/bugcomm.cgi], [chmod +x src/bugcomm.cgi]) |
AC_CONFIG_FILES([src/bugcomm.cgi], [chmod +x src/bugcomm.cgi]) |
96 |
AC_CONFIG_FILES([src/bugcommd], [chmod +x src/bugcommd]) |
AC_CONFIG_FILES([src/bugcommd], [chmod +x src/bugcommd]) |