-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
59 lines (45 loc) · 1.3 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
AC_INIT(atque, 1.1.3, [https://github.com/treellama/atque/issues], atque, [https://github.com/treellama/atque] )
AC_CONFIG_MACRO_DIR([m4])
AC_PREREQ([2.59])
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_HEADER(config.h)
AC_ARG_ENABLE(gui, [ --enable-gui build atque GUI [default=yes]], , enable_gui=yes)
AC_LANG(C++)
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_CXXCPP
AC_PROG_INSTALL
AC_PROG_LIBTOOL
case "$host" in
*-mingw32*)
AC_CHECK_TOOL(WINDRES, windres, :)
make_windows=true
LDFLAGS="$LDFLAGS -Wl,-S"
;;
*)
make_windows=false
;;
esac
AC_CHECK_HEADERS([sndfile.h], , AC_ERROR([Atque requires libsndfile]))
AC_CHECK_LIB(sndfile, sf_open, LIBS="-lsndfile $LIBS", AC_ERROR([Atque requires libsndfile]))
AX_BOOST_BASE([1.33.1])
if [[ "x$enable_gui" = "xyes" ]]; then
AM_OPTIONS_WXCONFIG
reqwx=3.0.0
AM_PATH_WXCONFIG($reqwx, wxWin=1)
fi
if test "$wxWin" != 1; then
AC_MSG_WARN([wxWidgets not enabled, building command line tools only])
else
CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
LIBS="$LIBS $WX_LIBS"
fi
AM_CONDITIONAL(BUILD_ATQUEGUI, [test "$wxWin" = 1 ])
AM_CONDITIONAL(MAKE_WINDOWS, test x$make_windows = xtrue)
AC_CONFIG_FILES([Makefile ferro/Makefile])
AC_OUTPUT
echo "Configuration done. Now type \"make\"."