]> git.meshlink.io Git - meshlink/commitdiff
Prefer ncurses over curses.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 7 Dec 2013 21:59:37 +0000 (22:59 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 7 Dec 2013 21:59:37 +0000 (22:59 +0100)
m4/curses.m4

index 50a90a5a57030934d5d23d2e0db80b38e7d89142..2e8d151041c9fce008c75a117374421bc2ebebe3 100644 (file)
@@ -31,9 +31,12 @@ 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.")]
+      )]
     )
   ])