--- configure.orig2 2019-12-12 09:12:17.000000000 +0300 +++ configure 2020-01-16 10:48:56.442357000 +0300 @@ -17226,7 +17168,8 @@ LIBS="$LIBS -L${d}/lib" fi have_libjson="yes" - elif test -f "${d}/include/json-c/json.h" + fi + if test -f "${d}/include/json-c/json.h" then if test ${d} != /usr then @@ -17244,7 +17187,8 @@ libjson_cflags="-I${use_libjson}/include" LIBS="$LIBS -L${use_libjson}/lib" have_libjson="yes" - elif test -f "${use_libjson}/include/json-c/json.h" + fi + if test -f "${use_libjson}/include/json-c/json.h" then libjson_cflags="-I${use_libjson}/include" LIBS="$LIBS -L${use_libjson}/lib"