Prefer libHcurses over libcurses
authorAndrew Deason <adeason@sinenomine.net>
Wed, 22 Dec 2010 14:46:48 +0000 (09:46 -0500)
committerDerrick Brashear <shadow@dementia.org>
Thu, 23 Dec 2010 04:32:29 +0000 (20:32 -0800)
Use the HP-UX-specific libHcurses instead of libcurses, like we used
to. Otherwise we fail to link some gtx programs.

Change-Id: I7b8a012d5d263c611a144e05466c5435b5ff310a
Reviewed-on: http://gerrit.openafs.org/3583
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

acinclude.m4

index 8375ed8..1a3cde0 100644 (file)
@@ -1235,7 +1235,10 @@ dnl check for curses-lib
 save_LIBS=$LIBS
 AC_CHECK_LIB( [ncurses], [setupterm],
 [LIB_curses=-lncurses],
-[AC_CHECK_LIB([curses], [setupterm], [LIB_curses=-lcurses])])
+    [AC_CHECK_LIB([Hcurses], [setupterm], [LIB_curses=-lHcurses],
+        [AC_CHECK_LIB([curses], [setupterm], [LIB_curses=-lcurses])
+    ])
+])
 LIBS=$save_LIBS
 AC_SUBST(LIB_curses)