Skip to content

Commit

Permalink
configure: Clean code for --enable-graphics
Browse files Browse the repository at this point in the history
* Remove unneeded arguments for AC_ARG_ENABLE
* Remove help text for --enable-graphics

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jul 19, 2018
1 parent cfc5ef6 commit e47a927
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,7 @@ AC_ARG_WITH([extra-libraries],

AC_MSG_CHECKING([--enable-graphics argument])
AC_ARG_ENABLE([graphics],
[AS_HELP_STRING([--enable-graphics],[enable graphics (ScrollView) (default)])
AS_HELP_STRING([--disable-graphics],[disable graphics (ScrollView)])],
[enable_graphics=$enableval],
[enable_graphics="yes"])
AS_HELP_STRING([--disable-graphics], [disable graphics (ScrollView)]))
AC_MSG_RESULT([$enable_graphics])
if test "$enable_graphics" = "no"; then
AC_DEFINE([GRAPHICS_DISABLED], [], [Disable graphics])
Expand Down

0 comments on commit e47a927

Please sign in to comment.