Do not error about missing zstd unless --with-zstd.
authorMartin Liska <mliska@suse.cz>
Wed, 25 Mar 2020 12:34:53 +0000 (13:34 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 25 Mar 2020 12:34:53 +0000 (13:34 +0100)
PR lto/94259
* configure.ac: Report error only when --with-zstd
is used.
* configure: Regenerate.

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index b2743d6..baf0ab7 100644 (file)
@@ -1,3 +1,10 @@
+2020-03-25  Martin Liska  <mliska@suse.cz>
+
+       PR lto/94259
+       * configure.ac: Report error only when --with-zstd
+       is used.
+       * configure: Regenerate.
+
 2020-03-25  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/94308
index b4231fe..dfdc5d8 100755 (executable)
@@ -10019,7 +10019,7 @@ if test $gcc_cv_header_zstd_h = yes; then
 
 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
 
-else
+elif test "x$with_zstd" != x; then
     as_fn_error $? "Unable to find zstd.h.  See config.log for details." "$LINENO" 5
 fi
 
index 0051963..fdee9ea 100644 (file)
@@ -1371,7 +1371,7 @@ AC_MSG_RESULT($gcc_cv_header_zstd_h)
 if test $gcc_cv_header_zstd_h = yes; then
   AC_DEFINE(HAVE_ZSTD_H, 1,
        [Define if you have a working <zstd.h> header file.])
-else
+elif test "x$with_zstd" != x; then
     as_fn_error $? "Unable to find zstd.h.  See config.log for details." "$LINENO" 5
 fi