-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
52 lines (37 loc) · 1.08 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
AC_INIT([TBB-Community-Game], [1.0], [])
AC_CANONICAL_TARGET
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_ARG_WITH([build-type],[--with-build-type=<build type>. Allows you to configure the type of build. Defaults to release. Acceptable values are debug, debug-sanitize, and release],
[
build_type=$withval
],
[
build_type=release
])
AC_SUBST([build_type])
shell=/bin/bash
AC_SUBST([shell])
os=${target_os}
AC_SUBST([os])
AC_CONFIG_FILES([Makefile util/Makefile util/io/Makefile util/net/Makefile util/collect/Makefile util/shadenbt/Makefile])
AC_CONFIG_COMMANDS([SDL],[
mkdir -p SDL
pushd SDL
../$ac_top_srcdir/SDL/configure || exit 1
popd
])
AC_CONFIG_COMMANDS([pipeworks],[
mkdir -p pipeworks
pushd pipeworks
CPPFLAGS="$CPPFLAGS -I../$ac_top_srcdir/SDL/include -I../SDL/include" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS -L../SDL/build/.libs" ../$ac_top_srcdir/pipeworks/configure --with-build-type=$build_type || exit 1
popd
])
AC_CONFIG_COMMANDS([openssl],[
mkdir -p openssl
pushd openssl
../$ac_top_srcdir/openssl/config || exit 1
popd
])
AC_OUTPUT