@@ -145,6 +145,12 @@ all::
145
145
#
146
146
# Define NEEDS_LIBICONV if linking with libc is not enough (Darwin).
147
147
#
148
+ # Define NEEDS_LIBINTL_BEFORE_LIBICONV if you need libintl before libiconv.
149
+ #
150
+ # Define NO_INTPTR_T if you don't have intptr_t nor uintptr_t.
151
+ #
152
+ # Define NO_UINTMAX_T if you don't have uintmax_t.
153
+ #
148
154
# Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
149
155
# Patrick Mauritz).
150
156
#
@@ -1321,6 +1327,61 @@ ifeq ($(uname_S),Minix)
1321
1327
NO_CURL =
1322
1328
NO_EXPAT =
1323
1329
endif
1330
+ ifeq ($(uname_S ) ,NONSTOP_KERNEL)
1331
+ # Needs some C99 features, "inline" is just one of them.
1332
+ # INLINE='' would just replace one set of warnings with another and
1333
+ # still not compile in c89 mode, due to non-const array initializations.
1334
+ CC = cc -c99
1335
+ # Disable all optimization, seems to result in bad code, with -O or -O2
1336
+ # or even -O1 (default), /usr/local/libexec/git-core/git-pack-objects
1337
+ # abends on "git push". Needs more investigation.
1338
+ CFLAGS = -g -O0
1339
+ # We'd want it to be here.
1340
+ prefix = /usr/local
1341
+ # Our's are in ${prefix}/bin (perl might also be in /usr/bin/perl).
1342
+ PERL_PATH = ${prefix}/bin/perl
1343
+ PYTHON_PATH = ${prefix}/bin/python
1344
+
1345
+ # As detected by './configure'.
1346
+ # Missdetected, hence commented out, see below.
1347
+ # NO_CURL = YesPlease
1348
+ # Added manually, see above.
1349
+ NEEDS_SSL_WITH_CURL = YesPlease
1350
+ HAVE_LIBCHARSET_H = YesPlease
1351
+ NEEDS_LIBICONV = YesPlease
1352
+ NEEDS_LIBINTL_BEFORE_LIBICONV = YesPlease
1353
+ NO_SYS_SELECT_H = UnfortunatelyYes
1354
+ NO_D_TYPE_IN_DIRENT = YesPlease
1355
+ NO_HSTRERROR = YesPlease
1356
+ NO_STRCASESTR = YesPlease
1357
+ NO_FNMATCH_CASEFOLD = YesPlease
1358
+ NO_MEMMEM = YesPlease
1359
+ NO_STRLCPY = YesPlease
1360
+ NO_SETENV = YesPlease
1361
+ NO_UNSETENV = YesPlease
1362
+ NO_MKDTEMP = YesPlease
1363
+ NO_MKSTEMPS = YesPlease
1364
+ # Currently libiconv-1.9.1.
1365
+ OLD_ICONV = UnfortunatelyYes
1366
+ NO_REGEX = YesPlease
1367
+ NO_PTHREADS = UnfortunatelyYes
1368
+
1369
+ # Not detected (nor checked for) by './configure'.
1370
+ # We don't have SA_RESTART on NonStop, unfortunalety.
1371
+ COMPAT_CFLAGS += -DSA_RESTART=0
1372
+ # Apparently needed in compat/fnmatch/fnmatch.c.
1373
+ COMPAT_CFLAGS += -DHAVE_STRING_H=1
1374
+ NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
1375
+ NO_NSEC = YesPlease
1376
+ NO_PREAD = YesPlease
1377
+ NO_MMAP = YesPlease
1378
+ NO_POLL = YesPlease
1379
+ NO_INTPTR_T = UnfortunatelyYes
1380
+ # Bug report 10-120822-4477 submitted to HP NonStop development.
1381
+ MKDIR_WO_TRAILING_SLASH = YesPlease
1382
+ # RFE 10-120912-4693 submitted to HP NonStop development.
1383
+ NO_SETITIMER = UnfortunatelyYes
1384
+ endif
1324
1385
ifneq (,$(findstring MINGW,$(uname_S ) ) )
1325
1386
pathsep = ;
1326
1387
NO_PREAD = YesPlease
@@ -1557,6 +1618,9 @@ ifdef NEEDS_LIBICONV
1557
1618
else
1558
1619
ICONV_LINK =
1559
1620
endif
1621
+ ifdef NEEDS_LIBINTL_BEFORE_LIBICONV
1622
+ ICONV_LINK += -lintl
1623
+ endif
1560
1624
EXTLIBS += $(ICONV_LINK) -liconv
1561
1625
endif
1562
1626
ifdef NEEDS_LIBGEN
@@ -1717,6 +1781,9 @@ endif
1717
1781
ifdef NO_IPV6
1718
1782
BASIC_CFLAGS += -DNO_IPV6
1719
1783
endif
1784
+ ifdef NO_INTPTR_T
1785
+ COMPAT_CFLAGS += -DNO_INTPTR_T
1786
+ endif
1720
1787
ifdef NO_UINTMAX_T
1721
1788
BASIC_CFLAGS += -Duintmax_t=uint32_t
1722
1789
endif
0 commit comments