]> git.meshlink.io Git - meshlink/blobdiff - m4/curses.m4
Enable compiler hardening flags by default.
[meshlink] / m4 / curses.m4
index 408ae282424f8e6d40261e084b83e883d9c5a7fb..2e8d151041c9fce008c75a117374421bc2ebebe3 100644 (file)
@@ -31,12 +31,14 @@ AC_DEFUN([tinc_CURSES],
       [AC_MSG_ERROR("curses header files not found."); break]
     )
 
-    AC_CHECK_LIB(curses, initscr,
-      [CURSES_LIBS="-lcurses"],
-      [AC_MSG_ERROR("curses libraries not found.")]
+    AC_CHECK_LIB(ncurses, initscr,
+      [CURSES_LIBS="-lncurses"],
+      [AC_CHECK_LIB(curses, initscr,
+        [CURSES_LIBS="-lcurses"],
+        [AC_MSG_ERROR("curses libraries not found.")]
+      )]
     )
   ])
 
   AC_SUBST(CURSES_LIBS)
-  AM_CONDITIONAL(CURSES, test "$curses" = true)
 ])