-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
33 lines (24 loc) · 761 Bytes
/
configure.ac
File metadata and controls
33 lines (24 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
AC_PREREQ([2.69])
AC_INIT([linux_traffic_signals], [1.0])
AC_CONFIG_SRCDIR([src/core/main.cc])
AC_CONFIG_HEADERS([config.h])
AC_INCLUDES_DEFAULT
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign -Wall -Werror subdir-objects])
AC_LANG(C++)
AC_PROG_CXXCPP
AC_SEARCH_LIBS([initscr], [curses], [have_ncurses=yes], [have_ncurses=no])
if test "x${have_ncurses}" = xyes; then
AC_CHECK_HEADERS([ncurses.h], [], [have_ncurses=no])
if test "x${have_ncurses}" = xno; then
AC_MSG_ERROR([
---------------------------------
ncurses.h is missing.
You need to install dev package.
---------------------------------
])
fi
fi
AC_CONFIG_FILES([Makefile])
AC_OUTPUT