xaizek / hstr (License: Apachev2) (since 2018-12-07)
Bash and Zsh shell history suggest box - easily view, navigate, search and manage your command history.
Commit 36f678bd88d61b057cf14079b10b3a2246bae58d

Improving NCURSES check.
Author: Martin Dvorak
Author date (UTC): 2017-04-09 17:45
Committer name: Martin Dvorak
Committer date (UTC): 2017-04-09 18:00
Parent(s): 76135f2fe585c96eaec45797af5a972a8b0b3ddf
Signing key:
Tree: 4676179f46d314071fc60c2540b8213c7acc5261
File Lines added Lines deleted
configure.ac 12 8
File configure.ac changed (mode: 100644) (index 7ca0341..c92ca27)
... ... AM_INIT_AUTOMAKE
29 29 # Checks for programs. # Checks for programs.
30 30 AC_PROG_CC AC_PROG_CC
31 31
32 # Platform specific ncurses check.
32 # Determine OS for NCURSES check
33 33 AC_CANONICAL_HOST AC_CANONICAL_HOST
34 PKG_CHECK_MODULES([NCURSES], [ncursesw], [], [
35 PKG_CHECK_MODULES([NCURSES], [ncurses], [], [
36 AS_CASE([$host_os],
34 # Platform specific ncurses check: if NCURSES not found, then look for ncurses
35 PKG_CHECK_MODULES([NCURSES], [ncursesw],
36 [AC_DEFINE([HAVE_NCURSESW],[1],[Use NCURSESW])],
37 [PKG_CHECK_MODULES([NCURSES], [ncurses],
38 [AC_DEFINE([HAVE_NCURSES],[1],[Use NCURSES])],
39 [AS_CASE([$host_os],
37 40 [darwin*], [darwin*],
38 41 [ [
39 42 AC_CHECK_LIB(ncurses, killwchar, [], [AC_MSG_ERROR([Could not find ncurses library])]) AC_CHECK_LIB(ncurses, killwchar, [], [AC_MSG_ERROR([Could not find ncurses library])])
 
... ... PKG_CHECK_MODULES([NCURSES], [ncursesw], [], [
42 45 [ [
43 46 AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])]) AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])])
44 47 AC_CHECK_HEADER(ncursesw/curses.h) AC_CHECK_HEADER(ncursesw/curses.h)
45 ]
46 )
47 ])
48 ])
48 ])
49 ]
50 )
51 ]
52 )
49 53
50 54 # Checks for libraries. # Checks for libraries.
51 55 AC_CHECK_LIB(m, cos, [], [AC_MSG_ERROR([Could not find m library])]) AC_CHECK_LIB(m, cos, [], [AC_MSG_ERROR([Could not find m library])])
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/hstr

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/hstr

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master