forked from kartikkumar/sgp4deorbit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
56 lines (47 loc) · 1.51 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
AC_PREREQ([2.61])
AC_INIT([sgp4], 1.0, [[email protected]])
AM_INIT_AUTOMAKE
AM_SILENT_RULES([yes])
AC_CONFIG_SRCDIR([libsgp4/Tle.cpp])
CFLAGS=" $CFLAGS"
CXXFLAGS=" $CXXFLAGS"
AC_PROG_RANLIB
AC_PROG_CXX
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],
[build debug library (default=no)])
,
,
enable_debug=no)
if test x$enable_debug = xyes; then
AM_CXXFLAGS="-g -O0 -std=c++0x -Wextra -W -Wall -Wno-switch-enum -Wconversion"
else
AM_CXXFLAGS="-DNDEBUG -O2 -fomit-frame-pointer -std=c++0x -Wextra -W -Wall -Wno-switch-enum -Wconversion"
fi
AC_SEARCH_LIBS([clock_gettime],
[rt],
[AC_DEFINE(HAVE_CLOCK_GETTIME,
[1],
[Define if clock_gettime is available.])])
AC_SUBST(AM_CXXFLAGS)
AC_CONFIG_FILES([Makefile
libsgp4/Makefile
passpredict/Makefile
runtest/Makefile
sattrack/Makefile
groundtrack/Makefile])
AC_OUTPUT
echo "---"
echo "Configuration summary for $PACKAGE_NAME version $VERSION"
echo ""
echo " * Installation prefix: $prefix"
echo " * System type: $build_vendor-$build_os"
echo " * Host CPU: $build_cpu"
echo " C Compiler: ${CC}"
echo " C++ Compiler: ${CXX}"
echo " Compiler flags: ${AM_CXXFLAGS}"
echo " Linker flags: ${AM_LDFLAGS}"
echo " Libraries: ${LIBS}"
echo " Debug enabled: $enable_debug"
echo ""
echo "---"