diff options
author | derex_tri <none@none> | 2008-10-10 05:30:48 -0500 |
---|---|---|
committer | derex_tri <none@none> | 2008-10-10 05:30:48 -0500 |
commit | 44c6fcc76935b11bc13b341e19ce807e0b75a47e (patch) | |
tree | e122856959fac2b42de2626f3ae4178c2456fac8 /configure.ac | |
parent | 631ebe5b612d9dae66d64c9195445678e1693a34 (diff) |
[svn] Restore configure.ac for removal of trinityscripts.
* configure.ac will autodetect if scripts are installed and use them.
--HG--
branch : trunk
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 1ae64778152..206eec5ce0f 100644 --- a/configure.ac +++ b/configure.ac @@ -67,9 +67,21 @@ AC_PROG_INSTALL AM_PROG_CC_C_O # Check if enable scripts -AC_ARG_ENABLE([scripts], AC_HELP_STRING([--enable-scripts], [Enable TrinityScripts (default: yes) ]), [], [enable_scripts=yes]) +AC_ARG_ENABLE([scripts], AC_HELP_STRING([--enable-scripts], [Enable TrinityScripts (default: check) ]), [], [enable_scripts=yes]) -AM_CONDITIONAL([USE_TSCRIPTS], [test X$enable_scripts = Xyes]) +AC_MSG_CHECKING(whether to build scripting module) +if test X$enable_scripts = Xyes -a -d $srcdir/src/bindings/scripts/scripts; then + tri_build_scripts=yes + AC_MSG_RESULT(yes) +else + tri_build_scripts=no + AC_MSG_RESULT(no) + if test X$enable_scripts = Xyes; then + AC_MSG_WARN([src/bindings/scripts/scripts folder does not exist, scripts will be disabled]) + fi +fi + +AM_CONDITIONAL([USE_TSCRIPTS], [test X$tri_build_scripts = Xyes]) # Check for doxygen AC_ARG_ENABLE(doxygen, AC_HELP_STRING([--enable-doxygen], [turn on generating documentation])) @@ -303,10 +315,13 @@ AC_CONFIG_FILES([ src/trinityrealm/Makefile src/trinitycore/Makefile src/bindings/Makefile - src/bindings/scripts/Makefile src/bindings/interface/Makefile ]) +if test X$tri_build_scripts = Xyes; then +AC_CONFIG_FILES([src/bindings/scripts/Makefile]) +fi + ## Configure ACE if test X$tri_need_to_build_ace = Xyes; then AC_CONFIG_SUBDIRS([dep/ACE_wrappers]) |