print time for debugging init time
[platform/core/uifw/libtdm.git] / configure.ac
index 9679295..f460e0a 100644 (file)
@@ -18,6 +18,7 @@ AM_MAINTAINER_MODE([enable])
 
 # Check for programs
 AC_PROG_CC
+AC_PROG_CXX
 
 AC_USE_SYSTEM_EXTENSIONS
 AC_SYS_LARGEFILE
@@ -30,6 +31,12 @@ LT_INIT([disable-static])
 # Enable quiet compiles on automake 1.11.
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
+AC_ARG_WITH(utest, AS_HELP_STRING([--with-utest=yes/no], [whether build/run unit tests or not]),
+                               [ utest="$withval" ],
+                               [ utest="no" ])
+
+AM_CONDITIONAL(HAVE_UTEST, test "x$utest" = "xyes")
+
 AC_PATH_PROG([wayland_scanner], [wayland-scanner])
 if test x$wayland_scanner = x; then
    AC_MSG_ERROR([wayland-scanner is needed to compile])
@@ -84,7 +91,8 @@ AC_OUTPUT([
        src/Makefile
        client/libtdm-client.pc
        client/Makefile
-       tools/Makefile])
+       tools/Makefile
+       ut/Makefile])
 
 echo ""
 echo "$PACKAGE_STRING will be compiled with:"