mirror of
https://github.com/dvorka/hstr.git
synced 2025-09-24 13:25:43 +08:00
Merge branch 'master' of https://github.com/jlec/hstr into jlec-master
Conflicts: src/Makefile.am
This commit is contained in:
commit
6e776ef112
2 changed files with 17 additions and 11 deletions
|
@ -31,7 +31,9 @@ AC_PROG_CC
|
|||
|
||||
# Platform specific ncurses check.
|
||||
AC_CANONICAL_HOST
|
||||
AS_CASE([$host_os],
|
||||
PKG_CHECK_MODULES([NCURSES], [ncursesw], [], [
|
||||
PKG_CHECK_MODULES([NCURSES], [ncurses], [], [
|
||||
AS_CASE([$host_os],
|
||||
[darwin*],
|
||||
[
|
||||
AC_CHECK_LIB(ncurses, killwchar, [], [AC_MSG_ERROR([Could not find ncurses library])])
|
||||
|
@ -41,7 +43,9 @@ AS_CASE([$host_os],
|
|||
AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])])
|
||||
AC_CHECK_HEADER(ncursesw/curses.h)
|
||||
]
|
||||
)
|
||||
)
|
||||
])
|
||||
])
|
||||
|
||||
# Checks for libraries.
|
||||
AC_CHECK_LIB(m, cos, [], [AC_MSG_ERROR([Could not find m library])])
|
||||
|
|
|
@ -35,3 +35,5 @@ hh_SOURCES = \
|
|||
# create hh > hstr hard link on installation
|
||||
install-exec-hook:
|
||||
ln $(DESTDIR)$(bindir)/hh$(EXEEXT) $(DESTDIR)$(bindir)/hstr$(EXEEXT)
|
||||
|
||||
hh_LDADD = $(NCURSES_LIBS)
|
||||
|
|
Loading…
Add table
Reference in a new issue