42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
enable_files="no"
ac_cv_snprintf_useful_ret="yes"
;;
m68k-*-amigaos*)
AS_IF([test x"$OBJCFLAGS" = x""], [
OBJCFLAGS="-O0"
])
OBJCFLAGS="$OBJCFLAGS -noixemul"
OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS -noixemul"
LDFLAGS="$LDFLAGS -noixemul"
enable_shared="no"
enable_threads="no"
enable_sockets="no"
enable_files="yes" # Required for reading ENV:
supports_amiga_lib="yes"
ac_cv_snprintf_useful_ret="yes"
AS_IF([test x"$enable_amiga_lib" != x"no"], [
AC_SUBST(OBJFWRT_AMIGA_LIB, objfwrt68k.library)
AC_SUBST(SFDC_TARGET, m68k-amigaos)
|
|
<
|
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
enable_files="no"
ac_cv_snprintf_useful_ret="yes"
;;
m68k-*-amigaos*)
AS_IF([test x"$OBJCFLAGS" = x""], [
OBJCFLAGS="-O0"
])
OBJCFLAGS="$OBJCFLAGS -noixemul -D__NO_NET_API"
OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS -noixemul"
LDFLAGS="$LDFLAGS -noixemul"
enable_shared="no"
enable_threads="no"
enable_files="yes" # Required for reading ENV:
supports_amiga_lib="yes"
ac_cv_snprintf_useful_ret="yes"
AS_IF([test x"$enable_amiga_lib" != x"no"], [
AC_SUBST(OBJFWRT_AMIGA_LIB, objfwrt68k.library)
AC_SUBST(SFDC_TARGET, m68k-amigaos)
|
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
|
AC_CHECK_HEADERS(xlocale.h)
AC_CHECK_FUNCS([strtod_l strtof_l asprintf_l])
AC_CHECK_HEADERS(sys/utsname.h)
AC_CHECK_FUNCS(uname)
AC_CHECK_FUNC(pipe, [
AC_DEFINE(OF_HAVE_PIPE, 1, [Whether we have pipe()])
])
AC_ARG_ENABLE(sockets,
AS_HELP_STRING([--disable-sockets], [disable socket support]))
AS_IF([test x"$enable_sockets" != x"no"], [
AC_DEFINE(OF_HAVE_SOCKETS, 1, [Whether we have sockets])
AC_SUBST(USE_SRCS_SOCKETS, '${SRCS_SOCKETS}')
AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
case "$host_os" in
mingw*)
LIBS="$LIBS -lws2_32 -liphlpapi"
;;
haiku*)
LIBS="$LIBS -lnetwork"
;;
esac
AC_CHECK_HEADER(sys/socket.h, [
AC_DEFINE(OF_HAVE_SYS_SOCKET_H, 1,
[Whether we have sys/socket.h])
])
AC_CHECK_HEADER(netinet/in.h, [
AC_DEFINE(OF_HAVE_NETINET_IN_H, 1,
[Whether we have netinet/in.h])
])
AC_CHECK_HEADER(netinet/tcp.h, [
AC_DEFINE(OF_HAVE_NETINET_TCP_H, 1,
[Whether we have netinet/tcp.h])
])
AC_CHECK_HEADERS([arpa/inet.h netdb.h])
AC_CHECK_MEMBER([struct sockaddr_in6.sin6_addr], [
AC_EGREP_CPP(egrep_cpp_yes, [
typedef int BOOL;
#ifdef OF_HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef _WIN32
# ifdef __MINGW32__
|
>
>
>
>
|
|
|
>
>
<
<
>
>
>
>
>
|
|
>
>
|
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
|
AC_CHECK_HEADERS(xlocale.h)
AC_CHECK_FUNCS([strtod_l strtof_l asprintf_l])
AC_CHECK_HEADERS(sys/utsname.h)
AC_CHECK_FUNCS(uname)
case "$host_os" in
amigaos*)
;;
*)
AC_CHECK_FUNC(pipe, [
AC_DEFINE(OF_HAVE_PIPE, 1, [Whether we have pipe()])
])
;;
esac
AC_ARG_ENABLE(sockets,
AS_HELP_STRING([--disable-sockets], [disable socket support]))
AS_IF([test x"$enable_sockets" != x"no"], [
AC_DEFINE(OF_HAVE_SOCKETS, 1, [Whether we have sockets])
AC_SUBST(USE_SRCS_SOCKETS, '${SRCS_SOCKETS}')
case "$host_os" in
amigaos*)
;;
haiku*)
LIBS="$LIBS -lnetwork"
;;
mingw*)
LIBS="$LIBS -lws2_32 -liphlpapi"
;;
*)
AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
;;
esac
AC_CHECK_HEADER(sys/socket.h, [
AC_DEFINE(OF_HAVE_SYS_SOCKET_H, 1,
[Whether we have sys/socket.h])
])
AC_CHECK_HEADER(netinet/in.h, [
AC_DEFINE(OF_HAVE_NETINET_IN_H, 1,
[Whether we have netinet/in.h])
])
AC_CHECK_HEADER(netinet/tcp.h, [
AC_DEFINE(OF_HAVE_NETINET_TCP_H, 1,
[Whether we have netinet/tcp.h])
])
AC_CHECK_HEADERS([arpa/inet.h netdb.h])
AC_CHECK_MEMBER([struct sockaddr_in6.sin6_addr], [
AC_EGREP_CPP(egrep_cpp_yes, [
#ifdef _WIN32
typedef int BOOL;
#endif
#ifdef OF_HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef _WIN32
# ifdef __MINGW32__
|
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
|
egrep_cpp_yes
#endif
], [
AC_DEFINE(OF_HAVE_IPV6, 1, [Whether we have IPv6])
])
], [
], [
typedef int BOOL;
#ifdef OF_HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#ifdef _WIN32
# ifdef __MINGW32__
|
>
>
|
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
|
egrep_cpp_yes
#endif
], [
AC_DEFINE(OF_HAVE_IPV6, 1, [Whether we have IPv6])
])
], [
], [
#ifdef _WIN32
typedef int BOOL;
#endif
#ifdef OF_HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#ifdef _WIN32
# ifdef __MINGW32__
|
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
|
AC_DEFINE(HAVE_POLL, 1, [Whether we have poll()])
AC_SUBST(OFPOLLKERNELEVENTOBSERVER_M,
"OFPollKernelEventObserver.m")
])
])
case "$host_os" in
mingw* | morphos*)
AC_DEFINE(HAVE_SELECT, 1,
[Whether we have select() or similar])
AC_SUBST(OFSELECTKERNELEVENTOBSERVER_M,
"OFSelectKernelEventObserver.m")
;;
*)
AC_CHECK_HEADERS(sys/select.h)
|
|
|
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
|
AC_DEFINE(HAVE_POLL, 1, [Whether we have poll()])
AC_SUBST(OFPOLLKERNELEVENTOBSERVER_M,
"OFPollKernelEventObserver.m")
])
])
case "$host_os" in
amigaos* | mingw* | morphos*)
AC_DEFINE(HAVE_SELECT, 1,
[Whether we have select() or similar])
AC_SUBST(OFSELECTKERNELEVENTOBSERVER_M,
"OFSelectKernelEventObserver.m")
;;
*)
AC_CHECK_HEADERS(sys/select.h)
|