-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
31 lines (27 loc) · 822 Bytes
/
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
# Check for types
# ===============
# Add OpenGL libraries for gdsoglviewer. This should only be done for
# that program really!
if test "$enable_ogl" = "yes"; then
if test "$MINGW32" = "yes"; then
OPENGL_LIBS="-lopengl32 -lglu32 -lglut32 -lgdi32"
else
if test "$SOLARIS" = "yes"; then
OPENGL_LIBS="-lGLU -lGL -lX11"
else
OPENGL_LIBS="-lGLU -lGL"
fi
fi
else
OPENGL_LIBS=""
fi
AC_ARG_ENABLE([profile],
AC_HELP_STRING([--enable-profile], [enable gprof profiling]),
[enable_profile=yes],
[enable_profile=no])
if test "$enable_profile" = yes; then
CFLAGS="-ggdb -pg -fprofile-arcs -ftest-coverage"
CXXFLAGS="-ggdb -pg -fprofile-arcs -ftest-coverage"
CFLAGS="-g -pg -fno-stack-protector-all -fno-stack-protector -nopie"
CXXFLAGS="-g -pg -fno-stack-protector-all -fno-stack-protector -nopie"
fi