-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
187 lines (176 loc) · 4.89 KB
/
configure.in
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
dnl Process this file with autoconf to produce a configure script.
AC_INIT(JSBSim.cpp, 1.0, [email protected])
dnl set the $host variable based on local machine/os
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE(JSBSim, 1.0)
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_ARG_ENABLE([libraries],
[AS_HELP_STRING([--enable-libraries],
[build JSBSim libraries [default=no]])],
[build_libraries=$enableval],
[build_libraries=no])
AM_CONDITIONAL(BUILD_LIBRARIES, test "x$build_libraries" = xyes)
dnl Checks for programs.
AC_DISABLE_SHARED
AC_PROG_CPP
AC_PROG_AWK
AC_PROG_CC
AC_PROG_LIBTOOL
AC_PROG_CXX
dnl Checks for libraries.
dnl Checks for header files.
AC_HEADER_STDC
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_STRUCT_TM
dnl Checks for library functions.
AC_FUNC_MEMCMP
case "${host}" in
*-*-irix*)
if test "$CXX" = "CC"; then
AR="CC -ar"
ARFLAGS="-o"
CXXFLAGS="$CXXFLAGS -I$(top_srcdir)/include/mipspro -LANG:libc_in_namespace_std=off"
else
AR="ar"
ARFLAGS="cru"
fi
;;
*-*-mingw32*)
LIBS="$LIBS -lwsock32"
;;
*)
if test "$CXX" = "g++"; then
CXXFLAGS="$CXXFLAGS -Wno-non-template-friend"
fi
if test "$CXX" = "colorgcc"; then
LIBS="$LIBS -lstdc++"
fi
AR="ar"
ARFLAGS="cru"
;;
esac
AC_SUBST(AR)
AC_SUBST(ARFLAGS)
dnl check for socklen_t (in Unix98)
AC_MSG_CHECKING(for socklen_t)
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
socklen_t apa;
],[],[
AC_MSG_RESULT(yes)],[
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
int accept (int, struct sockaddr *, size_t *);
],[],[
AC_MSG_RESULT(size_t)
AC_DEFINE(socklen_t,size_t)], [
AC_MSG_RESULT(int)
AC_DEFINE(socklen_t,int)])])
AC_OUTPUT( \
Makefile \
src/Makefile \
src/initialization/Makefile \
src/models/Makefile \
src/models/atmosphere/Makefile \
src/models/propulsion/Makefile \
src/models/flight_control/Makefile \
src/input_output/Makefile \
src/math/Makefile \
src/simgear/Makefile \
src/simgear/props/Makefile \
src/simgear/xml/Makefile \
src/simgear/magvar/Makefile \
src/simgear/misc/Makefile \
src/simgear/structure/Makefile \
src/utilities/Makefile \
src/utilities/aeromatic/Makefile \
examples/Makefile \
aircraft/Makefile \
aircraft/737/Makefile \
aircraft/A320/Makefile \
aircraft/B17/Makefile \
aircraft/B747/Makefile \
aircraft/F4N/Makefile \
aircraft/F4N/Engines/Makefile \
aircraft/J246/Makefile \
aircraft/J246/Systems/Makefile \
aircraft/OV10/Makefile \
aircraft/SGS/Makefile \
aircraft/Submarine_Scout/Makefile \
aircraft/Submarine_Scout/Systems/Makefile \
aircraft/Short_S23/Makefile \
aircraft/Short_S23/Systems/Makefile \
aircraft/Shuttle/Makefile \
aircraft/T37/Makefile \
aircraft/T38/Makefile \
aircraft/X15/Makefile \
aircraft/ZLT-NT/Makefile \
aircraft/ZLT-NT/Systems/Makefile \
aircraft/ah1s/Makefile \
aircraft/ah1s/Engines/Makefile \
aircraft/ah1s/Systems/Makefile \
aircraft/ball/Makefile \
aircraft/c172p/Makefile \
aircraft/c172r/Makefile \
aircraft/c172x/Makefile \
aircraft/c182/Makefile \
aircraft/c310/Makefile \
aircraft/f104/Makefile \
aircraft/f104/Systems/Makefile \
aircraft/f15/Makefile \
aircraft/f16/Makefile \
aircraft/f16/Systems/Makefile \
aircraft/f22/Makefile \
aircraft/fokker100/Makefile \
aircraft/fokker100/Systems/Makefile \
aircraft/fokker50/Makefile \
aircraft/minisgs/Makefile \
aircraft/mk82/Makefile \
aircraft/p51d/Makefile \
aircraft/p51d/Engines/Makefile \
aircraft/p51d/Systems/Makefile \
aircraft/pa28/Makefile \
aircraft/paraglider/Makefile \
aircraft/sgs126/Makefile \
aircraft/t6texan2/Makefile \
aircraft/x24b/Makefile \
aircraft/weather-balloon/Makefile \
data_output/Makefile \
data_plot/Makefile \
engine/Makefile \
systems/Makefile \
scripts/Makefile \
check_cases/Makefile \
check_cases/ground_tests/Makefile \
check_cases/ground_tests/aircraft/Makefile \
check_cases/ground_tests/aircraft/groundtest/Makefile \
check_cases/ground_tests/data_output/Makefile \
check_cases/ground_tests/data_plot/Makefile \
check_cases/ground_tests/engine/Makefile \
check_cases/ground_tests/logged_data/Makefile \
check_cases/ground_tests/scripts/Makefile \
check_cases/ground_tests/systems/Makefile
check_cases/orbit/Makefile \
check_cases/orbit/aircraft/Makefile \
check_cases/orbit/aircraft/ball/Makefile \
check_cases/orbit/data_output/Makefile \
check_cases/orbit/data_plot/Makefile \
check_cases/orbit/engine/Makefile \
check_cases/orbit/logged_data/Makefile \
check_cases/orbit/scripts/Makefile \
check_cases/orbit/systems/Makefile \
check_cases/piston_takeoff/Makefile \
check_cases/piston_takeoff/systems/Makefile \
check_cases/piston_takeoff/data_output/Makefile \
check_cases/piston_takeoff/engine/Makefile \
check_cases/piston_takeoff/logged_data/Makefile \
check_cases/piston_takeoff/scripts/Makefile \
check_cases/piston_takeoff/aircraft/Makefile \
check_cases/piston_takeoff/aircraft/c172x/Makefile \
check_cases/piston_takeoff/data_plot/Makefile
)