Skip to content
Permalink
Browse files
Honor enable/disable-tests configure flag (neethi)
JIRA: AXIS2C-1690
  • Loading branch information
bblough committed Apr 28, 2018
1 parent 3a31e75 commit b1fae7cf45d2a46f30be81f2bd82cad59147e7ad
Showing 2 changed files with 22 additions and 1 deletion.
@@ -12,6 +12,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
SUBDIRS = src test
SUBDIRS = src $(TESTDIR)
includedir=$(prefix)/include/axis2-${PACKAGE_VERSION}
include_HEADERS=$(top_builddir)/include/*.h
@@ -130,6 +130,26 @@ AC_ARG_ENABLE(coverage, [ --enable-coverage
)


AC_MSG_CHECKING(whether to build tests)
AC_ARG_ENABLE(tests, [ --enable-tests build tests. default=no],
[ case "${enableval}" in
yes)
AC_MSG_RESULT(yes)
TESTDIR="test"
;;
*)
AC_MSG_RESULT(no)
TESTDIR=""
;;
esac ],
AC_MSG_RESULT(no)
TESTDIR=""
)




dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdio.h stdlib.h string.h])
@@ -152,6 +172,7 @@ VERSION_NO="7:0:7"

AC_SUBST(VERSION_NO)
AC_SUBST(WRAPPER_DIR)
AC_SUBST(TESTDIR)

export WRAPPER_DIR

0 comments on commit b1fae7c

Please sign in to comment.