configure: remove unused conditional statement

An AC_ARG_WITH macro is always expanded, so the surrounding 'if'
conditional is unused.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
Patrick McCarty
2016-12-20 15:39:13 -08:00
parent d2f3684524
commit 76762393fd
+6 -6
View File
@@ -140,12 +140,12 @@ AS_IF([test "x$enable_stateless" = "xno"],
# With/without options
if test "$enable_signature_verification" = "yes" ; then
AC_ARG_WITH([swupdcert],
[AS_HELP_STRING([--with-swupdcert=FILE], [swupd verification cert])],
[AC_DEFINE_UNQUOTED([SWUPDCERT], ["$withval"], [swupd verification cert])],
[AC_DEFINE([SWUPDCERT], ["ClearLinuxRoot.pem"], [swupd verification cert])])
fi
AC_ARG_WITH(
[swupdcert],
[AS_HELP_STRING([--with-swupdcert=FILE], [swupd verification cert])],
[AC_DEFINE_UNQUOTED([SWUPDCERT], ["$withval"], [swupd verification cert])],
[AC_DEFINE([SWUPDCERT], ["ClearLinuxRoot.pem"], [swupd verification cert])]
)
AS_IF([test -n "$with_swupdcert" -a "$with_swupdcert" != "no" -a "$with_swupdcert" != "yes"],
[SWUPDCERT="$with_swupdcert"],
[SWUPDCERT="ClearLinuxRoot.pem"]