File configure.ac changed (mode: 100644) (index 28dab14..38eae09) |
... |
... |
AM_INIT_AUTOMAKE |
16 |
16 |
# Checks for programs. |
# Checks for programs. |
17 |
17 |
AC_PROG_CC |
AC_PROG_CC |
18 |
18 |
|
|
|
19 |
|
# Mac-specific ncurses check |
|
20 |
|
AC_CANONICAL_HOST |
|
21 |
|
case $host_os in |
|
22 |
|
darwin*) |
|
23 |
|
AC_CHECK_LIB(ncurses, killwchar, [], [AC_MSG_ERROR([Could not find ncurses library])]) |
|
24 |
|
AC_CHECK_HEADER(curses.h) |
|
25 |
|
;; |
|
26 |
|
*) |
|
27 |
|
AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])]) |
|
28 |
|
AC_CHECK_HEADER(ncursesw/curses.h) |
|
29 |
|
;; |
|
30 |
|
esac |
|
31 |
|
|
19 |
32 |
# Checks for libraries. |
# Checks for libraries. |
20 |
|
AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])]) |
|
21 |
33 |
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])]) |
22 |
34 |
AC_CHECK_LIB(readline, using_history, [], [AC_MSG_ERROR([Could not find readline library])]) |
AC_CHECK_LIB(readline, using_history, [], [AC_MSG_ERROR([Could not find readline library])]) |
23 |
35 |
|
|
|
... |
... |
AC_CHECK_HEADER(fcntl.h) |
28 |
40 |
AC_CHECK_HEADER(getopt.h) |
AC_CHECK_HEADER(getopt.h) |
29 |
41 |
AC_CHECK_HEADER(locale.h) |
AC_CHECK_HEADER(locale.h) |
30 |
42 |
AC_CHECK_HEADER(math.h) |
AC_CHECK_HEADER(math.h) |
31 |
|
AC_CHECK_HEADER(ncursesw/curses.h) |
|
32 |
43 |
AC_CHECK_HEADER(readline/history.h) |
AC_CHECK_HEADER(readline/history.h) |
33 |
44 |
AC_CHECK_HEADER(regex.h) |
AC_CHECK_HEADER(regex.h) |
34 |
45 |
AC_CHECK_HEADER(signal.h) |
AC_CHECK_HEADER(signal.h) |