]> git.draconx.ca Git - rrace.git/commitdiff
Fix configuration w/ --with-curses.
authorNick Bowler <nbowler@draconx.ca>
Tue, 29 Nov 2022 01:53:27 +0000 (20:53 -0500)
committerNick Bowler <nbowler@draconx.ca>
Tue, 29 Nov 2022 01:53:27 +0000 (20:53 -0500)
A typo in the condition that verifies --with-curses means the check
always passes, defeating the point of this option.  Fix that up.

configure.ac

index 9b39749c2c0001a2c45d1a721378caaa3090055d..912adf0355f6a666b02dc1ee451df45bb0ac2adb 100644 (file)
@@ -35,7 +35,7 @@ AC_ARG_WITH([curses], [AS_HELP_STRING([--with-curses],
   [], [with_curses=auto])
 AS_IF([test x"$with_curses" != x"no"],
   [DX_LIB_CURSES([have_curses=yes], [have_curses=no])])
-AS_IF([test x"$with_curses" = x"yes" && x"$have_curses" != x"yes"],
+AS_IF([test x"$with_curses" = x"yes" && test x"$have_curses" != x"yes"],
   [AC_MSG_FAILURE([--with-curses requested but curses was not found])])
 AM_CONDITIONAL([HAVE_CURSES], [test x"$have_curses" = x"yes"])