You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-commits@axis.apache.org by bi...@apache.org on 2018/04/28 23:27:26 UTC

svn commit: r1830481 - in /axis/axis2/c/core/trunk/neethi: Makefile.am configure.ac

Author: billblough
Date: Sat Apr 28 23:27:26 2018
New Revision: 1830481

URL: http://svn.apache.org/viewvc?rev=1830481&view=rev
Log:
Honor enable/disable-tests configure flag (neethi)

JIRA: AXIS2C-1690

Modified:
    axis/axis2/c/core/trunk/neethi/Makefile.am
    axis/axis2/c/core/trunk/neethi/configure.ac

Modified: axis/axis2/c/core/trunk/neethi/Makefile.am
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/neethi/Makefile.am?rev=1830481&r1=1830480&r2=1830481&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/neethi/Makefile.am (original)
+++ axis/axis2/c/core/trunk/neethi/Makefile.am Sat Apr 28 23:27:26 2018
@@ -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

Modified: axis/axis2/c/core/trunk/neethi/configure.ac
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/neethi/configure.ac?rev=1830481&r1=1830480&r2=1830481&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/neethi/configure.ac (original)
+++ axis/axis2/c/core/trunk/neethi/configure.ac Sat Apr 28 23:27:26 2018
@@ -130,6 +130,26 @@ AC_ARG_ENABLE(coverage, [  --enable-cove
 )
 
 
+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