-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfigure.in
More file actions
73 lines (59 loc) · 2.05 KB
/
configure.in
File metadata and controls
73 lines (59 loc) · 2.05 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#
# Typical configure script source for an Agar application using the
# BSDBuild build system.
#
# To generate the configure script from this file, install BSDBuild
# on your system (download it from http://hypertriton.com/bsdbuild),
# and execute:
#
# $ cat configure.in |mkconfigure > configure
#
# Name and version of the application.
PACKAGE("nocsim-gui")
VERSION("2.0.0")
# Register our configure options.
REGISTER("--with-agar[=PREFIX]", "Agar installation path [default: auto]")
REGISTER("--with-tcl[=PREFIX]", "TCL installation path [default: auto]")
REGISTER("--enable-debugger", "Enable Agar debugger - requires libagar to be built with support for debugging [default: no]")
REGISTER("--enable-devmode", "Enable generation of debugging symbols and other development features [default: no]")
REGISTER("--enable-werror", "Treat all compiler warnings as errors [default: no]")
REGISTER("--disable-nocviz", "Disable nocviz, lift requirement for agar [default: no]")
# Require a C compiler.
REQUIRE(cc)
if [ "${enable_nocviz}" = "no" ] ; then
MDEFINE(NOCVIZDIR, "")
else
# Require at least Agar 1.6.0.
REQUIRE(agar, 1.6.0, ${prefix_agar})
# Require other Agar-based libraries.
#REQUIRE(agar-vg, 1.5.0, ${prefix_agar})
#REQUIRE(agar-dev, 1.5.0, ${prefix_agar})
REQUIRE(agar-math, 1.6.0, ${prefix_agar})
MDEFINE(NOCVIZDIR, "nocviz")
fi
if [ -z "$with_tcl" ] ; then
REQUIRE(tcl, 8.6.0)
else
MDEFINE(TCL_CFLAGS, "-I$with_tcl")
MDEFINE(TCL_LIBS, "-ltcl -ltclstub")
fi
# Import standard routines provided by Agar (without "AG"_ prefix).
#C_DEFINE(_USE_AGAR_STD)
#C_DEFINE(_USE_AGAR_CORE)
#C_DEFINE(_USE_AGAR_QUEUE)
#C_DEFINE(_USE_AGAR_GUI)
#C_DEFINE(_USE_AGAR_TYPES)
#C_DEFINE(_USE_AGAR_MATH)
if [ "${enable_debugger}" = "yes" ] ; then
MDEFINE(CFLAGS, "$CFLAGS -DENABLE_DEBUGGER")
fi
MDEFINE(CFLAGS, "$CFLAGS -Wall -Wextra -pedantic")
if [ "${enable_devmode}" = "yes" ] ; then
MDEFINE(CFLAGS, "$CFLAGS -DEBUG")
MDEFINE(CFLAGS, "$CFLAGS -Og -g")
else
MDEFINE(CFLAGS, "$CFLAGS -O3")
fi
if [ "${enable_werror}" = "yes" ] ; then
MDEFINE(CFLAGS, "$CFLAGS -Werror")
fi