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])]) |