-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
35 lines (32 loc) · 1.02 KB
/
configure.ac
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
34
35
AC_INIT([CppViews], [0.1], [[email protected]],
[cppviews], [https://bitbucket.org/losvald/cppviews])
AC_PREREQ([2.59])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([1.10 foreign -Wall no-define])
AC_PROG_CXX
AC_PROG_RANLIB
LT_INIT
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile src/Makefile test/Makefile bench/Makefile \
bench/gui/Makefile])
# Check for wxWidgets version >= 3 (required for test/gui)
AM_OPTIONS_WXCONFIG
reqwx=3.0.0
AM_PATH_WXCONFIG($reqwx, wxWin=1)
if test "$wxWin" != 1; then
AC_MSG_ERROR([
wxWidgets must be installed on your system.
Please check that wx-config is in path, the directory where
wxWidgets libraries are installed (returned by
'wx-config --libs' or 'wx-config --static --libs'
command) is in LD_LIBRARY_PATH or equivalent variable
and wxWidgets version is $reqwx or above.
])
fi
AC_LANG(C++)
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([#include <gtest/gtest.h>],
[])],
[TEST_LIBS="$TEST_LIBS -lgtest"] [HAVE_GTEST=1],
[AC_MSG_ERROR([libgtest is not installed.])])
AC_OUTPUT