Fix thinkos in DW_FORM_strx detection in configure.ac
authorDodji Seketeli <dodji@redhat.com>
Tue, 1 Oct 2019 14:50:37 +0000 (16:50 +0200)
committerDodji Seketeli <dodji@redhat.com>
Tue, 1 Oct 2019 14:50:37 +0000 (16:50 +0200)
My patch "568dee1 PR25042 - Support string form DW_FORM_strx{1,4} from
DWARF 5" introduced a thinko in configure.ac.  The thinko triggers a
regression test issue on old systems where we don't support
DW_FORM_strx from DWARF 5.  Fixed thus.

* configure.ac: Fix thinko when setting the HAVE_DW_FORM_strx
macro.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
configure.ac

index df3b6b922b3a513a918f552d0eaa430c9781b857..87605a373f5198453b9d4956c9b7585a48c1cf60 100644 (file)
@@ -830,10 +830,10 @@ if test x$HAS_DW_FORM_strx4 = xyes; then
             [Define to 1 if dwarf.h has the DW_FORM_strx4 enumerator])
 fi
 
-if test x$HAS_DW_FORM_strx1 -a \
-       x$HAS_DW_FORM_strx2 -a \
-       x$HAS_DW_FORM_strx3 -a \
-       x$HAS_DW_FORM_strx4; then
+if test x$HAS_DW_FORM_strx1 = xyes -a \
+       x$HAS_DW_FORM_strx2 = xyes -a \
+       x$HAS_DW_FORM_strx3 = xyes -a \
+       x$HAS_DW_FORM_strx4 = xyes ; then
    AC_DEFINE([HAVE_DW_FORM_strx],
             1,
             [Define to 1 if dwarf.h has the DW_FORM_strx enumerators])