|
From: Kenji O. <nul...@cl...> - 2013-12-26 01:43:07
|
Kenji Okimoto 2013-12-26 10:42:39 +0900 (Thu, 26 Dec 2013) New Revision: e8fe55061754ce439deef0a3cffb064ce457c66a https://github.com/clear-code/cutter/commit/e8fe55061754ce439deef0a3cffb064ce457c66a Message: configure: Add --with-ruby and --with-rd2 option to specify command path. These options are useful for rbenv user. Modified files: configure.ac Modified: configure.ac (+34 -7) =================================================================== --- configure.ac 2013-12-25 13:02:29 +0900 (1f0f919) +++ configure.ac 2013-12-26 10:42:39 +0900 (178d072) @@ -523,17 +523,44 @@ m4_ifdef([GTK_DOC_CHECK], AM_CONDITIONAL([ENABLE_GTK_DOC], [false])]) dnl ************************************************************** -dnl Checks for RD2 +dnl Checks for Ruby dnl ************************************************************** +ruby_available="no" +AC_ARG_WITH([ruby], + AS_HELP_STRING([--with-ruby=PATH], + [Ruby interpreter path (default: auto-detect)]), + [RUBY="$withval"]) + +if test "$RUBY" = "no"; then + : # ignore +elif test "$RUBY" = ""; then + AC_PATH_PROG(RUBY, ruby, ruby-not-found) +else + AC_CHECK_FILE([$RUBY], + [ruby_available="yes"], + [AC_MSG_ERROR([$RUBY is not found.])]) +fi -AC_PATH_PROG(RUBY, ruby, ruby-not-found) -AC_PATH_PROG(RD2, rd2, rd2-not-found) -if test x"$RD2" != x"rd2-not-found"; then - rd2_available=yes +dnl ************************************************************** +dnl Checks for RD2 +dnl ************************************************************** +rd2_available="no" +AC_ARG_WITH([rd2], + AS_HELP_STRING([--with-rd2=PATH], + [rd2 command path. (default: auto-detect)]), + [RD2="$withval"]) +if test "$RD2" = "no"; then + : # ignore +elif test "$RD2" = ""; then + AC_PATH_PROG(RD2, rd2, rd2-not-found) + if test x"$RD2" != x"rd2-not-found"; then + rd2_available=yes + fi else - rd2_available=no + AC_CHECK_FILE([$RD2], + [rd2_available="yes"], + [AC_MSG_ERROR([$RD2 is not found.])]) fi -AM_CONDITIONAL([HAVE_RD2], [test "$rd2_available" = "yes"]) if test "$rd2_available" = "yes" -o -f "$srcdir/doc/man-build.stamp"; then man_available=yes |