Fix: don't accept configure --disable-shared
[lttng-ust.git] / configure.ac
index 830794425df41f7a474fb137f170ff0113b68840..d4926e425486b572849892f1c6994d9a41f77a6f 100644 (file)
@@ -267,6 +267,16 @@ AS_IF([test "x$with_sdt" = "xyes"],[
        ])
 ])
 
+AC_MSG_CHECKING([whether shared libraries are enabled])
+AS_IF([test "x$enable_shared" = "xyes"],
+       [
+               AC_MSG_RESULT([yes])
+       ],
+       [
+               AC_MSG_RESULT([no])
+               AC_MSG_ERROR([LTTng-UST requires shared libraries to be enabled])
+       ])
+
 AC_ARG_WITH([lttng-system-rundir],
        AS_HELP_STRING([--with-lttng-system-rundir],
        [Location of the system directory where LTTng-UST expects the system-wide lttng-sessiond runtime files. The default is "/var/run/lttng".]),
This page took 0.024487 seconds and 4 git commands to generate.