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