gprofng: fix build with --disable-shared
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Fri, 27 May 2022 01:38:33 +0000 (18:38 -0700)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Fri, 27 May 2022 06:51:37 +0000 (23:51 -0700)
gprofng/ChangeLog
2022-05-26  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

* libcollector/configure.ac: Use AC_MSG_WARN instead of AC_MSG_ERROR
* libcollector/configure: Rebuild.

gprofng/libcollector/configure
gprofng/libcollector/configure.ac

index 687a6eeda5dab635cb79842ed1da90ff9e792b83..52d9892faddeeac691bc1b735a290f31c18e3a27 100755 (executable)
@@ -15471,7 +15471,8 @@ fi
 
 
 if test "$enable_shared" != "yes"; then
-  as_fn_error $? "Cannot set --enable-shared for gprofng/libcollector." "$LINENO" 5
+  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot set --enable-shared for gprofng/libcollector. Profiling will be unavailable." >&5
+$as_echo "$as_me: WARNING: Cannot set --enable-shared for gprofng/libcollector. Profiling will be unavailable." >&2;}
 fi
 
 GPROFNG_VARIANT=unknown
index 6b6c5c03e27e341cfe5ba11227ee64e59bbfa9f0..2e67e740c9ec5dd30a60ffc63c6289bbf4bcd4f8 100644 (file)
@@ -38,7 +38,7 @@ AC_ENABLE_SHARED
 AC_DISABLE_STATIC
 
 if test "$enable_shared" != "yes"; then
-  AC_MSG_ERROR([Cannot set --enable-shared for gprofng/libcollector.])
+  AC_MSG_WARN([Cannot set --enable-shared for gprofng/libcollector. Profiling will be unavailable.])
 fi
 
 GPROFNG_VARIANT=unknown