Index: /trunk/configure.ac
===================================================================
--- /trunk/configure.ac (revision 17)
+++ /trunk/configure.ac (revision 31)
@@ -68,7 +68,19 @@
 
 # Check if enable scripts
-AC_ARG_ENABLE([scripts], AC_HELP_STRING([--enable-scripts], [Enable TrinityScripts (default: yes) ]), [], [enable_scripts=yes])
-
-AM_CONDITIONAL([USE_TSCRIPTS], [test X$enable_scripts = Xyes])
+AC_ARG_ENABLE([scripts], AC_HELP_STRING([--enable-scripts], [Enable TrinityScripts (default: check) ]), [], [enable_scripts=yes])
+
+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
@@ -304,7 +316,10 @@
    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
