Skip to content

Commit 4143bfd

Browse files
committed
Bugfix: configure: Only require SVG-rendering tools if GUI is being built
1 parent c5b87a1 commit 4143bfd

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

configure.ac

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -778,14 +778,6 @@ case $host in
778778
;;
779779
esac
780780

781-
AM_CONDITIONAL([CAN_RENDER_ICONS], [test "$can_render_icons" = "yes"])
782-
if test "$can_render_icons" != "yes"; then
783-
if test "$bitcoin_enable_qt" != "no" && test ! -f "${srcdir}/src/qt/res/rendered_icons/bitcoin.ico"; then
784-
AC_MSG_ERROR([Couldn't find ${can_render_icons} (required to build GUI from git)])
785-
fi
786-
AC_MSG_WARN([Couldn't find ${can_render_icons}; you won't get the Knots-branded Bitcoin icon])
787-
fi
788-
789781
if test "$use_extended_functional_tests" != "no"; then
790782
AC_SUBST(EXTENDED_FUNCTIONAL_TESTS, --extended)
791783
fi
@@ -1209,6 +1201,13 @@ else
12091201
fi
12101202
fi
12111203

1204+
AM_CONDITIONAL([CAN_RENDER_ICONS], [test "$can_render_icons" = "yes"])
1205+
if test "$can_render_icons" != "yes"; then
1206+
if test "$bitcoin_enable_qt" != "no" && test ! -f "${srcdir}/src/qt/res/rendered_icons/bitcoin.ico"; then
1207+
AC_MSG_ERROR([Couldn't find ${can_render_icons} (required to build GUI from git)])
1208+
fi
1209+
fi
1210+
12121211
if test "$enable_fuzz_binary" = "yes"; then
12131212
AC_MSG_CHECKING([whether main function is needed for fuzz binary])
12141213
AX_CHECK_LINK_FLAG(

0 commit comments

Comments
 (0)