config.mak.uname: add hint on uname_R for MacOS X
[git/jrn.git] / config.mak.uname
blobfde196f63ab4b6f6a31dfe490c93b65f059ef756
1 # Platform specific Makefile tweaks based on uname detection
3 uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
4 uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not')
5 uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
6 uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not')
7 uname_P := $(shell sh -c 'uname -p 2>/dev/null || echo not')
8 uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo not')
10 ifdef MSVC
11         # avoid the MingW and Cygwin configuration sections
12         uname_S := Windows
13         uname_O := Windows
14 endif
16 # We choose to avoid "if .. else if .. else .. endif endif"
17 # because maintaining the nesting to match is a pain.  If
18 # we had "elif" things would have been much nicer...
20 ifeq ($(uname_M),x86_64)
21         XDL_FAST_HASH = YesPlease
22 endif
23 ifeq ($(uname_S),OSF1)
24         # Need this for u_short definitions et al
25         BASIC_CFLAGS += -D_OSF_SOURCE
26         SOCKLEN_T = int
27         NO_STRTOULL = YesPlease
28         NO_NSEC = YesPlease
29 endif
30 ifeq ($(uname_S),Linux)
31         NO_STRLCPY = YesPlease
32         NO_MKSTEMPS = YesPlease
33         HAVE_PATHS_H = YesPlease
34         LIBC_CONTAINS_LIBINTL = YesPlease
35         HAVE_DEV_TTY = YesPlease
36 endif
37 ifeq ($(uname_S),GNU/kFreeBSD)
38         NO_STRLCPY = YesPlease
39         NO_MKSTEMPS = YesPlease
40         HAVE_PATHS_H = YesPlease
41         DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
42         LIBC_CONTAINS_LIBINTL = YesPlease
43 endif
44 ifeq ($(uname_S),UnixWare)
45         CC = cc
46         NEEDS_SOCKET = YesPlease
47         NEEDS_NSL = YesPlease
48         NEEDS_SSL_WITH_CRYPTO = YesPlease
49         NEEDS_LIBICONV = YesPlease
50         SHELL_PATH = /usr/local/bin/bash
51         NO_IPV6 = YesPlease
52         NO_HSTRERROR = YesPlease
53         NO_MKSTEMPS = YesPlease
54         BASIC_CFLAGS += -Kthread
55         BASIC_CFLAGS += -I/usr/local/include
56         BASIC_LDFLAGS += -L/usr/local/lib
57         INSTALL = ginstall
58         TAR = gtar
59         NO_STRCASESTR = YesPlease
60         NO_MEMMEM = YesPlease
61 endif
62 ifeq ($(uname_S),SCO_SV)
63         ifeq ($(uname_R),3.2)
64                 CFLAGS = -O2
65         endif
66         ifeq ($(uname_R),5)
67                 CC = cc
68                 BASIC_CFLAGS += -Kthread
69         endif
70         NEEDS_SOCKET = YesPlease
71         NEEDS_NSL = YesPlease
72         NEEDS_SSL_WITH_CRYPTO = YesPlease
73         NEEDS_LIBICONV = YesPlease
74         SHELL_PATH = /usr/bin/bash
75         NO_IPV6 = YesPlease
76         NO_HSTRERROR = YesPlease
77         NO_MKSTEMPS = YesPlease
78         BASIC_CFLAGS += -I/usr/local/include
79         BASIC_LDFLAGS += -L/usr/local/lib
80         NO_STRCASESTR = YesPlease
81         NO_MEMMEM = YesPlease
82         INSTALL = ginstall
83         TAR = gtar
84 endif
85 ifeq ($(uname_S),Darwin)
86         NEEDS_CRYPTO_WITH_SSL = YesPlease
87         NEEDS_SSL_WITH_CRYPTO = YesPlease
88         NEEDS_LIBICONV = YesPlease
89         # Note: $(uname_R) gives us the underlying Darwin version.
90         # - MacOS 10.0.* and MacOS 10.1.0 = Darwin 1.*
91         # - MacOS 10.x.* = Darwin (x+4).* for (1 <= x)
92         # i.e. "begins with [15678] and a dot" means "10.4.* or older".
93         ifeq ($(shell expr "$(uname_R)" : '[15678]\.'),2)
94                 OLD_ICONV = UnfortunatelyYes
95                 NO_APPLE_COMMON_CRYPTO = YesPlease
96         endif
97         ifeq ($(shell expr "$(uname_R)" : '[15]\.'),2)
98                 NO_STRLCPY = YesPlease
99         endif
100         NO_MEMMEM = YesPlease
101         USE_ST_TIMESPEC = YesPlease
102         HAVE_DEV_TTY = YesPlease
103         COMPAT_OBJS += compat/precompose_utf8.o
104         BASIC_CFLAGS += -DPRECOMPOSE_UNICODE
105 endif
106 ifeq ($(uname_S),SunOS)
107         NEEDS_SOCKET = YesPlease
108         NEEDS_NSL = YesPlease
109         SHELL_PATH = /bin/bash
110         SANE_TOOL_PATH = /usr/xpg6/bin:/usr/xpg4/bin
111         NO_STRCASESTR = YesPlease
112         NO_MEMMEM = YesPlease
113         NO_MKDTEMP = YesPlease
114         NO_MKSTEMPS = YesPlease
115         NO_REGEX = YesPlease
116         NO_MSGFMT_EXTENDED_OPTIONS = YesPlease
117         HAVE_DEV_TTY = YesPlease
118         ifeq ($(uname_R),5.6)
119                 SOCKLEN_T = int
120                 NO_HSTRERROR = YesPlease
121                 NO_IPV6 = YesPlease
122                 NO_SOCKADDR_STORAGE = YesPlease
123                 NO_UNSETENV = YesPlease
124                 NO_SETENV = YesPlease
125                 NO_STRLCPY = YesPlease
126                 NO_STRTOUMAX = YesPlease
127                 GIT_TEST_CMP = cmp
128         endif
129         ifeq ($(uname_R),5.7)
130                 NEEDS_RESOLV = YesPlease
131                 NO_IPV6 = YesPlease
132                 NO_SOCKADDR_STORAGE = YesPlease
133                 NO_UNSETENV = YesPlease
134                 NO_SETENV = YesPlease
135                 NO_STRLCPY = YesPlease
136                 NO_STRTOUMAX = YesPlease
137                 GIT_TEST_CMP = cmp
138         endif
139         ifeq ($(uname_R),5.8)
140                 NO_UNSETENV = YesPlease
141                 NO_SETENV = YesPlease
142                 NO_STRTOUMAX = YesPlease
143                 GIT_TEST_CMP = cmp
144         endif
145         ifeq ($(uname_R),5.9)
146                 NO_UNSETENV = YesPlease
147                 NO_SETENV = YesPlease
148                 NO_STRTOUMAX = YesPlease
149                 GIT_TEST_CMP = cmp
150         endif
151         INSTALL = /usr/ucb/install
152         TAR = gtar
153         BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__ -DHAVE_ALLOCA_H
154 endif
155 ifeq ($(uname_O),Cygwin)
156         ifeq ($(shell expr "$(uname_R)" : '1\.[1-6]\.'),4)
157                 NO_D_TYPE_IN_DIRENT = YesPlease
158                 NO_D_INO_IN_DIRENT = YesPlease
159                 NO_STRCASESTR = YesPlease
160                 NO_MEMMEM = YesPlease
161                 NO_MKSTEMPS = YesPlease
162                 NO_SYMLINK_HEAD = YesPlease
163                 NO_IPV6 = YesPlease
164                 OLD_ICONV = UnfortunatelyYes
165                 # There are conflicting reports about this.
166                 # On some boxes NO_MMAP is needed, and not so elsewhere.
167                 # Try commenting this out if you suspect MMAP is more efficient
168                 NO_MMAP = YesPlease
169         else
170                 NO_REGEX = UnfortunatelyYes
171         endif
172         NEEDS_LIBICONV = YesPlease
173         NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes
174         NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
175         X = .exe
176         UNRELIABLE_FSTAT = UnfortunatelyYes
177         SPARSE_FLAGS = -isystem /usr/include/w32api -Wno-one-bit-signed-bitfield
178 endif
179 ifeq ($(uname_S),FreeBSD)
180         NEEDS_LIBICONV = YesPlease
181         OLD_ICONV = YesPlease
182         NO_MEMMEM = YesPlease
183         BASIC_CFLAGS += -I/usr/local/include
184         BASIC_LDFLAGS += -L/usr/local/lib
185         DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
186         USE_ST_TIMESPEC = YesPlease
187         ifeq ($(shell expr "$(uname_R)" : '4\.'),2)
188                 PTHREAD_LIBS = -pthread
189                 NO_UINTMAX_T = YesPlease
190                 NO_STRTOUMAX = YesPlease
191         endif
192         PYTHON_PATH = /usr/local/bin/python
193         HAVE_PATHS_H = YesPlease
194         GMTIME_UNRELIABLE_ERRORS = UnfortunatelyYes
195 endif
196 ifeq ($(uname_S),OpenBSD)
197         NO_STRCASESTR = YesPlease
198         NO_MEMMEM = YesPlease
199         USE_ST_TIMESPEC = YesPlease
200         NEEDS_LIBICONV = YesPlease
201         BASIC_CFLAGS += -I/usr/local/include
202         BASIC_LDFLAGS += -L/usr/local/lib
203         HAVE_PATHS_H = YesPlease
204 endif
205 ifeq ($(uname_S),MirBSD)
206         NO_STRCASESTR = YesPlease
207         NO_MEMMEM = YesPlease
208         USE_ST_TIMESPEC = YesPlease
209         NEEDS_LIBICONV = YesPlease
210         HAVE_PATHS_H = YesPlease
211 endif
212 ifeq ($(uname_S),NetBSD)
213         ifeq ($(shell expr "$(uname_R)" : '[01]\.'),2)
214                 NEEDS_LIBICONV = YesPlease
215         endif
216         BASIC_CFLAGS += -I/usr/pkg/include
217         BASIC_LDFLAGS += -L/usr/pkg/lib $(CC_LD_DYNPATH)/usr/pkg/lib
218         USE_ST_TIMESPEC = YesPlease
219         NO_MKSTEMPS = YesPlease
220         HAVE_PATHS_H = YesPlease
221 endif
222 ifeq ($(uname_S),AIX)
223         DEFAULT_PAGER = more
224         NO_STRCASESTR = YesPlease
225         NO_MEMMEM = YesPlease
226         NO_MKDTEMP = YesPlease
227         NO_MKSTEMPS = YesPlease
228         NO_STRLCPY = YesPlease
229         NO_NSEC = YesPlease
230         FREAD_READS_DIRECTORIES = UnfortunatelyYes
231         INTERNAL_QSORT = UnfortunatelyYes
232         NEEDS_LIBICONV = YesPlease
233         BASIC_CFLAGS += -D_LARGE_FILES
234         ifeq ($(shell expr "$(uname_V)" : '[1234]'),1)
235                 NO_PTHREADS = YesPlease
236         else
237                 PTHREAD_LIBS = -lpthread
238         endif
239         ifeq ($(shell expr "$(uname_V).$(uname_R)" : '5\.1'),3)
240                 INLINE = ''
241         endif
242         GIT_TEST_CMP = cmp
243 endif
244 ifeq ($(uname_S),GNU)
245         # GNU/Hurd
246         NO_STRLCPY = YesPlease
247         NO_MKSTEMPS = YesPlease
248         HAVE_PATHS_H = YesPlease
249         LIBC_CONTAINS_LIBINTL = YesPlease
250 endif
251 ifeq ($(uname_S),IRIX)
252         NO_SETENV = YesPlease
253         NO_UNSETENV = YesPlease
254         NO_STRCASESTR = YesPlease
255         NO_MEMMEM = YesPlease
256         NO_MKSTEMPS = YesPlease
257         NO_MKDTEMP = YesPlease
258         # When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
259         # (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
260         # git dies with a segmentation fault when trying to access the first
261         # entry of a reflog.  The conservative choice is made to always set
262         # NO_MMAP.  If you suspect that your compiler is not affected by this
263         # issue, comment out the NO_MMAP statement.
264         NO_MMAP = YesPlease
265         NO_REGEX = YesPlease
266         SNPRINTF_RETURNS_BOGUS = YesPlease
267         SHELL_PATH = /usr/gnu/bin/bash
268         NEEDS_LIBGEN = YesPlease
269 endif
270 ifeq ($(uname_S),IRIX64)
271         NO_SETENV = YesPlease
272         NO_UNSETENV = YesPlease
273         NO_STRCASESTR = YesPlease
274         NO_MEMMEM = YesPlease
275         NO_MKSTEMPS = YesPlease
276         NO_MKDTEMP = YesPlease
277         # When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
278         # (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
279         # git dies with a segmentation fault when trying to access the first
280         # entry of a reflog.  The conservative choice is made to always set
281         # NO_MMAP.  If you suspect that your compiler is not affected by this
282         # issue, comment out the NO_MMAP statement.
283         NO_MMAP = YesPlease
284         NO_REGEX = YesPlease
285         SNPRINTF_RETURNS_BOGUS = YesPlease
286         SHELL_PATH = /usr/gnu/bin/bash
287         NEEDS_LIBGEN = YesPlease
288 endif
289 ifeq ($(uname_S),HP-UX)
290         INLINE = __inline
291         NO_IPV6 = YesPlease
292         NO_SETENV = YesPlease
293         NO_STRCASESTR = YesPlease
294         NO_MEMMEM = YesPlease
295         NO_MKSTEMPS = YesPlease
296         NO_STRLCPY = YesPlease
297         NO_MKDTEMP = YesPlease
298         NO_UNSETENV = YesPlease
299         NO_HSTRERROR = YesPlease
300         NO_SYS_SELECT_H = YesPlease
301         SNPRINTF_RETURNS_BOGUS = YesPlease
302         NO_NSEC = YesPlease
303         ifeq ($(uname_R),B.11.00)
304                 NO_INET_NTOP = YesPlease
305                 NO_INET_PTON = YesPlease
306         endif
307         ifeq ($(uname_R),B.10.20)
308                 # Override HP-UX 11.x setting:
309                 INLINE =
310                 SOCKLEN_T = size_t
311                 NO_PREAD = YesPlease
312                 NO_INET_NTOP = YesPlease
313                 NO_INET_PTON = YesPlease
314         endif
315         GIT_TEST_CMP = cmp
316 endif
317 ifeq ($(uname_S),Windows)
318         GIT_VERSION := $(GIT_VERSION).MSVC
319         pathsep = ;
320         NO_PREAD = YesPlease
321         NEEDS_CRYPTO_WITH_SSL = YesPlease
322         NO_LIBGEN_H = YesPlease
323         NO_POLL = YesPlease
324         NO_SYMLINK_HEAD = YesPlease
325         NO_IPV6 = YesPlease
326         NO_UNIX_SOCKETS = YesPlease
327         NO_SETENV = YesPlease
328         NO_UNSETENV = YesPlease
329         NO_STRCASESTR = YesPlease
330         NO_STRLCPY = YesPlease
331         NO_MEMMEM = YesPlease
332         # NEEDS_LIBICONV = YesPlease
333         NO_ICONV = YesPlease
334         NO_STRTOUMAX = YesPlease
335         NO_MKDTEMP = YesPlease
336         NO_MKSTEMPS = YesPlease
337         SNPRINTF_RETURNS_BOGUS = YesPlease
338         NO_SVN_TESTS = YesPlease
339         RUNTIME_PREFIX = YesPlease
340         NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
341         NO_NSEC = YesPlease
342         USE_WIN32_MMAP = YesPlease
343         # USE_NED_ALLOCATOR = YesPlease
344         UNRELIABLE_FSTAT = UnfortunatelyYes
345         OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
346         NO_REGEX = YesPlease
347         NO_GETTEXT = YesPlease
348         NO_PYTHON = YesPlease
349         BLK_SHA1 = YesPlease
350         ETAGS_TARGET = ETAGS
351         NO_INET_PTON = YesPlease
352         NO_INET_NTOP = YesPlease
353         NO_POSIX_GOODIES = UnfortunatelyYes
354         NATIVE_CRLF = YesPlease
355         DEFAULT_HELP_FORMAT = html
357         CC = compat/vcbuild/scripts/clink.pl
358         AR = compat/vcbuild/scripts/lib.pl
359         CFLAGS =
360         BASIC_CFLAGS = -nologo -I. -I../zlib -Icompat/vcbuild -Icompat/vcbuild/include -DWIN32 -D_CONSOLE -DHAVE_STRING_H -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE
361         COMPAT_OBJS = compat/msvc.o compat/winansi.o \
362                 compat/win32/pthread.o compat/win32/syslog.o \
363                 compat/win32/dirent.o
364         COMPAT_CFLAGS = -D__USE_MINGW_ACCESS -DNOGDI -DHAVE_STRING_H -DHAVE_ALLOCA_H -Icompat -Icompat/regex -Icompat/win32 -DSTRIP_EXTENSION=\".exe\"
365         BASIC_LDFLAGS = -IGNORE:4217 -IGNORE:4049 -NOLOGO -SUBSYSTEM:CONSOLE -NODEFAULTLIB:MSVCRT.lib
366         EXTLIBS = user32.lib advapi32.lib shell32.lib wininet.lib ws2_32.lib invalidcontinue.obj
367         PTHREAD_LIBS =
368         lib =
369 ifndef DEBUG
370         BASIC_CFLAGS += -GL -Os -MT
371         BASIC_LDFLAGS += -LTCG
372         AR += -LTCG
373 else
374         BASIC_CFLAGS += -Zi -MTd
375 endif
376         X = .exe
377 endif
378 ifeq ($(uname_S),Interix)
379         NO_INITGROUPS = YesPlease
380         NO_IPV6 = YesPlease
381         NO_MEMMEM = YesPlease
382         NO_MKDTEMP = YesPlease
383         NO_STRTOUMAX = YesPlease
384         NO_NSEC = YesPlease
385         NO_MKSTEMPS = YesPlease
386         ifeq ($(uname_R),3.5)
387                 NO_INET_NTOP = YesPlease
388                 NO_INET_PTON = YesPlease
389                 NO_SOCKADDR_STORAGE = YesPlease
390         endif
391         ifeq ($(uname_R),5.2)
392                 NO_INET_NTOP = YesPlease
393                 NO_INET_PTON = YesPlease
394                 NO_SOCKADDR_STORAGE = YesPlease
395         endif
396 endif
397 ifeq ($(uname_S),Minix)
398         NO_IPV6 = YesPlease
399         NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
400         NO_NSEC = YesPlease
401         NEEDS_LIBGEN =
402         NEEDS_CRYPTO_WITH_SSL = YesPlease
403         NEEDS_IDN_WITH_CURL = YesPlease
404         NEEDS_SSL_WITH_CURL = YesPlease
405         NEEDS_RESOLV =
406         NO_HSTRERROR = YesPlease
407         NO_MMAP = YesPlease
408         NO_CURL =
409         NO_EXPAT =
410 endif
411 ifeq ($(uname_S),NONSTOP_KERNEL)
412         # Needs some C99 features, "inline" is just one of them.
413         # INLINE='' would just replace one set of warnings with another and
414         # still not compile in c89 mode, due to non-const array initializations.
415         CC = cc -c99
416         # Disable all optimization, seems to result in bad code, with -O or -O2
417         # or even -O1 (default), /usr/local/libexec/git-core/git-pack-objects
418         # abends on "git push". Needs more investigation.
419         CFLAGS = -g -O0
420         # We'd want it to be here.
421         prefix = /usr/local
422         # Our's are in ${prefix}/bin (perl might also be in /usr/bin/perl).
423         PERL_PATH = ${prefix}/bin/perl
424         PYTHON_PATH = ${prefix}/bin/python
426         # As detected by './configure'.
427         # Missdetected, hence commented out, see below.
428         #NO_CURL = YesPlease
429         # Added manually, see above.
430         NEEDS_SSL_WITH_CURL = YesPlease
431         HAVE_LIBCHARSET_H = YesPlease
432         HAVE_STRINGS_H = YesPlease
433         NEEDS_LIBICONV = YesPlease
434         NEEDS_LIBINTL_BEFORE_LIBICONV = YesPlease
435         NO_SYS_SELECT_H = UnfortunatelyYes
436         NO_D_TYPE_IN_DIRENT = YesPlease
437         NO_HSTRERROR = YesPlease
438         NO_STRCASESTR = YesPlease
439         NO_MEMMEM = YesPlease
440         NO_STRLCPY = YesPlease
441         NO_SETENV = YesPlease
442         NO_UNSETENV = YesPlease
443         NO_MKDTEMP = YesPlease
444         NO_MKSTEMPS = YesPlease
445         # Currently libiconv-1.9.1.
446         OLD_ICONV = UnfortunatelyYes
447         NO_REGEX = YesPlease
448         NO_PTHREADS = UnfortunatelyYes
450         # Not detected (nor checked for) by './configure'.
451         # We don't have SA_RESTART on NonStop, unfortunalety.
452         COMPAT_CFLAGS += -DSA_RESTART=0
453         # Apparently needed in compat/fnmatch/fnmatch.c.
454         COMPAT_CFLAGS += -DHAVE_STRING_H=1
455         NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
456         NO_NSEC = YesPlease
457         NO_PREAD = YesPlease
458         NO_MMAP = YesPlease
459         NO_POLL = YesPlease
460         NO_INTPTR_T = UnfortunatelyYes
461         # Bug report 10-120822-4477 submitted to HP NonStop development.
462         MKDIR_WO_TRAILING_SLASH = YesPlease
463         # RFE 10-120912-4693 submitted to HP NonStop development.
464         NO_SETITIMER = UnfortunatelyYes
465         SANE_TOOL_PATH = /usr/coreutils/bin:/usr/local/bin
466         SHELL_PATH = /usr/local/bin/bash
467         # as of H06.25/J06.14, we might better use this
468         #SHELL_PATH = /usr/coreutils/bin/bash
469 endif
470 ifneq (,$(findstring MINGW,$(uname_S)))
471         pathsep = ;
472         NO_PREAD = YesPlease
473         NEEDS_CRYPTO_WITH_SSL = YesPlease
474         NO_LIBGEN_H = YesPlease
475         NO_POLL = YesPlease
476         NO_SYMLINK_HEAD = YesPlease
477         NO_UNIX_SOCKETS = YesPlease
478         NO_SETENV = YesPlease
479         NO_UNSETENV = YesPlease
480         NO_STRCASESTR = YesPlease
481         NO_STRLCPY = YesPlease
482         NO_MEMMEM = YesPlease
483         NEEDS_LIBICONV = YesPlease
484         NO_STRTOUMAX = YesPlease
485         NO_MKDTEMP = YesPlease
486         NO_MKSTEMPS = YesPlease
487         NO_SVN_TESTS = YesPlease
488         NO_PERL_MAKEMAKER = YesPlease
489         RUNTIME_PREFIX = YesPlease
490         NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
491         NO_NSEC = YesPlease
492         USE_WIN32_MMAP = YesPlease
493         USE_NED_ALLOCATOR = YesPlease
494         UNRELIABLE_FSTAT = UnfortunatelyYes
495         OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
496         NO_REGEX = YesPlease
497         NO_PYTHON = YesPlease
498         BLK_SHA1 = YesPlease
499         ETAGS_TARGET = ETAGS
500         NO_INET_PTON = YesPlease
501         NO_INET_NTOP = YesPlease
502         NO_POSIX_GOODIES = UnfortunatelyYes
503         DEFAULT_HELP_FORMAT = html
504         COMPAT_CFLAGS += -D__USE_MINGW_ACCESS -D_USE_32BIT_TIME_T -DNOGDI -Icompat -Icompat/win32
505         COMPAT_CFLAGS += -DSTRIP_EXTENSION=\".exe\"
506         COMPAT_OBJS += compat/mingw.o compat/winansi.o \
507                 compat/win32/pthread.o compat/win32/syslog.o \
508                 compat/win32/dirent.o
509         BASIC_LDFLAGS += -Wl,--large-address-aware
510         EXTLIBS += -lws2_32
511         GITLIBS += git.res
512         PTHREAD_LIBS =
513         RC = windres -O coff
514         NATIVE_CRLF = YesPlease
515         X = .exe
516         SPARSE_FLAGS = -Wno-one-bit-signed-bitfield
517 ifneq (,$(wildcard ../THIS_IS_MSYSGIT))
518         htmldir = doc/git/html/
519         prefix =
520         INSTALL = /bin/install
521         EXTLIBS += /mingw/lib/libz.a
522         NO_R_TO_GCC_LINKER = YesPlease
523         INTERNAL_QSORT = YesPlease
524         HAVE_LIBCHARSET_H = YesPlease
525         NO_GETTEXT = YesPlease
526 else
527         NO_CURL = YesPlease
528 endif
529 endif
530 ifeq ($(uname_S),QNX)
531         COMPAT_CFLAGS += -DSA_RESTART=0
532         EXPAT_NEEDS_XMLPARSE_H = YesPlease
533         HAVE_STRINGS_H = YesPlease
534         NEEDS_SOCKET = YesPlease
535         NO_GETPAGESIZE = YesPlease
536         NO_ICONV = YesPlease
537         NO_MEMMEM = YesPlease
538         NO_MKDTEMP = YesPlease
539         NO_MKSTEMPS = YesPlease
540         NO_NSEC = YesPlease
541         NO_PTHREADS = YesPlease
542         NO_R_TO_GCC_LINKER = YesPlease
543         NO_STRCASESTR = YesPlease
544         NO_STRLCPY = YesPlease
545 endif