Merge branch 'jk/tag-sort'
[git/debian.git] / config.mak.uname
blob00cf4c6b832c19143bd7c8f8015f793f8142c548
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         HAVE_ALLOCA_H = YesPlease
32         NO_STRLCPY = YesPlease
33         NO_MKSTEMPS = YesPlease
34         HAVE_PATHS_H = YesPlease
35         LIBC_CONTAINS_LIBINTL = YesPlease
36         HAVE_DEV_TTY = YesPlease
37         HAVE_CLOCK_GETTIME = YesPlease
38 endif
39 ifeq ($(uname_S),GNU/kFreeBSD)
40         HAVE_ALLOCA_H = YesPlease
41         NO_STRLCPY = YesPlease
42         NO_MKSTEMPS = YesPlease
43         HAVE_PATHS_H = YesPlease
44         DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
45         LIBC_CONTAINS_LIBINTL = YesPlease
46 endif
47 ifeq ($(uname_S),UnixWare)
48         CC = cc
49         NEEDS_SOCKET = YesPlease
50         NEEDS_NSL = YesPlease
51         NEEDS_SSL_WITH_CRYPTO = YesPlease
52         NEEDS_LIBICONV = YesPlease
53         SHELL_PATH = /usr/local/bin/bash
54         NO_IPV6 = YesPlease
55         NO_HSTRERROR = YesPlease
56         NO_MKSTEMPS = YesPlease
57         BASIC_CFLAGS += -Kthread
58         BASIC_CFLAGS += -I/usr/local/include
59         BASIC_LDFLAGS += -L/usr/local/lib
60         INSTALL = ginstall
61         TAR = gtar
62         NO_STRCASESTR = YesPlease
63         NO_MEMMEM = YesPlease
64 endif
65 ifeq ($(uname_S),SCO_SV)
66         ifeq ($(uname_R),3.2)
67                 CFLAGS = -O2
68         endif
69         ifeq ($(uname_R),5)
70                 CC = cc
71                 BASIC_CFLAGS += -Kthread
72         endif
73         NEEDS_SOCKET = YesPlease
74         NEEDS_NSL = YesPlease
75         NEEDS_SSL_WITH_CRYPTO = YesPlease
76         NEEDS_LIBICONV = YesPlease
77         SHELL_PATH = /usr/bin/bash
78         NO_IPV6 = YesPlease
79         NO_HSTRERROR = YesPlease
80         NO_MKSTEMPS = YesPlease
81         BASIC_CFLAGS += -I/usr/local/include
82         BASIC_LDFLAGS += -L/usr/local/lib
83         NO_STRCASESTR = YesPlease
84         NO_MEMMEM = YesPlease
85         INSTALL = ginstall
86         TAR = gtar
87 endif
88 ifeq ($(uname_S),Darwin)
89         NEEDS_CRYPTO_WITH_SSL = YesPlease
90         NEEDS_SSL_WITH_CRYPTO = YesPlease
91         NEEDS_LIBICONV = YesPlease
92         ifeq ($(shell expr "$(uname_R)" : '[15678]\.'),2)
93                 OLD_ICONV = UnfortunatelyYes
94         endif
95         ifeq ($(shell expr "$(uname_R)" : '[15]\.'),2)
96                 NO_STRLCPY = YesPlease
97         endif
98         NO_MEMMEM = YesPlease
99         USE_ST_TIMESPEC = YesPlease
100         HAVE_DEV_TTY = YesPlease
101         COMPAT_OBJS += compat/precompose_utf8.o
102         BASIC_CFLAGS += -DPRECOMPOSE_UNICODE
103 endif
104 ifeq ($(uname_S),SunOS)
105         NEEDS_SOCKET = YesPlease
106         NEEDS_NSL = YesPlease
107         SHELL_PATH = /bin/bash
108         SANE_TOOL_PATH = /usr/xpg6/bin:/usr/xpg4/bin
109         HAVE_ALLOCA_H = YesPlease
110         NO_STRCASESTR = YesPlease
111         NO_MEMMEM = YesPlease
112         NO_MKDTEMP = YesPlease
113         NO_MKSTEMPS = YesPlease
114         NO_REGEX = YesPlease
115         NO_MSGFMT_EXTENDED_OPTIONS = YesPlease
116         HAVE_DEV_TTY = YesPlease
117         ifeq ($(uname_R),5.6)
118                 SOCKLEN_T = int
119                 NO_HSTRERROR = YesPlease
120                 NO_IPV6 = YesPlease
121                 NO_SOCKADDR_STORAGE = YesPlease
122                 NO_UNSETENV = YesPlease
123                 NO_SETENV = YesPlease
124                 NO_STRLCPY = YesPlease
125                 NO_STRTOUMAX = YesPlease
126                 GIT_TEST_CMP = cmp
127         endif
128         ifeq ($(uname_R),5.7)
129                 NEEDS_RESOLV = YesPlease
130                 NO_IPV6 = YesPlease
131                 NO_SOCKADDR_STORAGE = YesPlease
132                 NO_UNSETENV = YesPlease
133                 NO_SETENV = YesPlease
134                 NO_STRLCPY = YesPlease
135                 NO_STRTOUMAX = YesPlease
136                 GIT_TEST_CMP = cmp
137         endif
138         ifeq ($(uname_R),5.8)
139                 NO_UNSETENV = YesPlease
140                 NO_SETENV = YesPlease
141                 NO_STRTOUMAX = YesPlease
142                 GIT_TEST_CMP = cmp
143         endif
144         ifeq ($(uname_R),5.9)
145                 NO_UNSETENV = YesPlease
146                 NO_SETENV = YesPlease
147                 NO_STRTOUMAX = YesPlease
148                 GIT_TEST_CMP = cmp
149         endif
150         INSTALL = /usr/ucb/install
151         TAR = gtar
152         BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__
153 endif
154 ifeq ($(uname_O),Cygwin)
155         ifeq ($(shell expr "$(uname_R)" : '1\.[1-6]\.'),4)
156                 NO_D_TYPE_IN_DIRENT = YesPlease
157                 NO_D_INO_IN_DIRENT = YesPlease
158                 NO_STRCASESTR = YesPlease
159                 NO_MEMMEM = YesPlease
160                 NO_MKSTEMPS = YesPlease
161                 NO_SYMLINK_HEAD = YesPlease
162                 NO_IPV6 = YesPlease
163                 OLD_ICONV = UnfortunatelyYes
164                 # There are conflicting reports about this.
165                 # On some boxes NO_MMAP is needed, and not so elsewhere.
166                 # Try commenting this out if you suspect MMAP is more efficient
167                 NO_MMAP = YesPlease
168         else
169                 NO_REGEX = UnfortunatelyYes
170         endif
171         HAVE_ALLOCA_H = YesPlease
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         HAVE_ALLOCA_H = YesPlease
247         NO_STRLCPY = YesPlease
248         NO_MKSTEMPS = YesPlease
249         HAVE_PATHS_H = YesPlease
250         LIBC_CONTAINS_LIBINTL = YesPlease
251 endif
252 ifeq ($(uname_S),IRIX)
253         NO_SETENV = YesPlease
254         NO_UNSETENV = YesPlease
255         NO_STRCASESTR = YesPlease
256         NO_MEMMEM = YesPlease
257         NO_MKSTEMPS = YesPlease
258         NO_MKDTEMP = YesPlease
259         # When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
260         # (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
261         # git dies with a segmentation fault when trying to access the first
262         # entry of a reflog.  The conservative choice is made to always set
263         # NO_MMAP.  If you suspect that your compiler is not affected by this
264         # issue, comment out the NO_MMAP statement.
265         NO_MMAP = YesPlease
266         NO_REGEX = YesPlease
267         SNPRINTF_RETURNS_BOGUS = YesPlease
268         SHELL_PATH = /usr/gnu/bin/bash
269         NEEDS_LIBGEN = YesPlease
270 endif
271 ifeq ($(uname_S),IRIX64)
272         NO_SETENV = YesPlease
273         NO_UNSETENV = YesPlease
274         NO_STRCASESTR = YesPlease
275         NO_MEMMEM = YesPlease
276         NO_MKSTEMPS = YesPlease
277         NO_MKDTEMP = YesPlease
278         # When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
279         # (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
280         # git dies with a segmentation fault when trying to access the first
281         # entry of a reflog.  The conservative choice is made to always set
282         # NO_MMAP.  If you suspect that your compiler is not affected by this
283         # issue, comment out the NO_MMAP statement.
284         NO_MMAP = YesPlease
285         NO_REGEX = YesPlease
286         SNPRINTF_RETURNS_BOGUS = YesPlease
287         SHELL_PATH = /usr/gnu/bin/bash
288         NEEDS_LIBGEN = YesPlease
289 endif
290 ifeq ($(uname_S),HP-UX)
291         INLINE = __inline
292         NO_IPV6 = YesPlease
293         NO_SETENV = YesPlease
294         NO_STRCASESTR = YesPlease
295         NO_MEMMEM = YesPlease
296         NO_MKSTEMPS = YesPlease
297         NO_STRLCPY = YesPlease
298         NO_MKDTEMP = YesPlease
299         NO_UNSETENV = YesPlease
300         NO_HSTRERROR = YesPlease
301         NO_SYS_SELECT_H = YesPlease
302         SNPRINTF_RETURNS_BOGUS = YesPlease
303         NO_NSEC = YesPlease
304         ifeq ($(uname_R),B.11.00)
305                 NO_INET_NTOP = YesPlease
306                 NO_INET_PTON = YesPlease
307         endif
308         ifeq ($(uname_R),B.10.20)
309                 # Override HP-UX 11.x setting:
310                 INLINE =
311                 SOCKLEN_T = size_t
312                 NO_PREAD = YesPlease
313                 NO_INET_NTOP = YesPlease
314                 NO_INET_PTON = YesPlease
315         endif
316         GIT_TEST_CMP = cmp
317 endif
318 ifeq ($(uname_S),Windows)
319         GIT_VERSION := $(GIT_VERSION).MSVC
320         pathsep = ;
321         HAVE_ALLOCA_H = YesPlease
322         NO_PREAD = YesPlease
323         NEEDS_CRYPTO_WITH_SSL = YesPlease
324         NO_LIBGEN_H = YesPlease
325         NO_POLL = YesPlease
326         NO_SYMLINK_HEAD = YesPlease
327         NO_IPV6 = YesPlease
328         NO_UNIX_SOCKETS = YesPlease
329         NO_SETENV = YesPlease
330         NO_UNSETENV = YesPlease
331         NO_STRCASESTR = YesPlease
332         NO_STRLCPY = YesPlease
333         NO_MEMMEM = YesPlease
334         # NEEDS_LIBICONV = YesPlease
335         NO_ICONV = YesPlease
336         NO_STRTOUMAX = YesPlease
337         NO_MKDTEMP = YesPlease
338         NO_MKSTEMPS = YesPlease
339         SNPRINTF_RETURNS_BOGUS = YesPlease
340         NO_SVN_TESTS = YesPlease
341         RUNTIME_PREFIX = YesPlease
342         NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
343         NO_NSEC = YesPlease
344         USE_WIN32_MMAP = YesPlease
345         # USE_NED_ALLOCATOR = YesPlease
346         UNRELIABLE_FSTAT = UnfortunatelyYes
347         OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
348         NO_REGEX = YesPlease
349         NO_GETTEXT = YesPlease
350         NO_PYTHON = YesPlease
351         BLK_SHA1 = YesPlease
352         ETAGS_TARGET = ETAGS
353         NO_INET_PTON = YesPlease
354         NO_INET_NTOP = YesPlease
355         NO_POSIX_GOODIES = UnfortunatelyYes
356         NATIVE_CRLF = YesPlease
357         DEFAULT_HELP_FORMAT = html
358         NO_D_INO_IN_DIRENT = YesPlease
360         CC = compat/vcbuild/scripts/clink.pl
361         AR = compat/vcbuild/scripts/lib.pl
362         CFLAGS =
363         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
364         COMPAT_OBJS = compat/msvc.o compat/winansi.o \
365                 compat/win32/pthread.o compat/win32/syslog.o \
366                 compat/win32/dirent.o
367         COMPAT_CFLAGS = -D__USE_MINGW_ACCESS -DNOGDI -DHAVE_STRING_H -Icompat -Icompat/regex -Icompat/win32 -DSTRIP_EXTENSION=\".exe\"
368         BASIC_LDFLAGS = -IGNORE:4217 -IGNORE:4049 -NOLOGO -SUBSYSTEM:CONSOLE
369         EXTLIBS = user32.lib advapi32.lib shell32.lib wininet.lib ws2_32.lib invalidcontinue.obj
370         PTHREAD_LIBS =
371         lib =
372 ifndef DEBUG
373         BASIC_CFLAGS += -GL -Os -MD
374         BASIC_LDFLAGS += -LTCG
375         AR += -LTCG
376 else
377         BASIC_CFLAGS += -Zi -MDd
378 endif
379         X = .exe
380 endif
381 ifeq ($(uname_S),Interix)
382         NO_INITGROUPS = YesPlease
383         NO_IPV6 = YesPlease
384         NO_MEMMEM = YesPlease
385         NO_MKDTEMP = YesPlease
386         NO_STRTOUMAX = YesPlease
387         NO_NSEC = YesPlease
388         NO_MKSTEMPS = YesPlease
389         ifeq ($(uname_R),3.5)
390                 NO_INET_NTOP = YesPlease
391                 NO_INET_PTON = YesPlease
392                 NO_SOCKADDR_STORAGE = YesPlease
393         endif
394         ifeq ($(uname_R),5.2)
395                 NO_INET_NTOP = YesPlease
396                 NO_INET_PTON = YesPlease
397                 NO_SOCKADDR_STORAGE = 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
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_MEMMEM = YesPlease
443         NO_STRLCPY = YesPlease
444         NO_SETENV = YesPlease
445         NO_UNSETENV = YesPlease
446         NO_MKDTEMP = YesPlease
447         NO_MKSTEMPS = YesPlease
448         # Currently libiconv-1.9.1.
449         OLD_ICONV = UnfortunatelyYes
450         NO_REGEX = YesPlease
451         NO_PTHREADS = UnfortunatelyYes
453         # Not detected (nor checked for) by './configure'.
454         # We don't have SA_RESTART on NonStop, unfortunalety.
455         COMPAT_CFLAGS += -DSA_RESTART=0
456         # Apparently needed in compat/fnmatch/fnmatch.c.
457         COMPAT_CFLAGS += -DHAVE_STRING_H=1
458         NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
459         NO_NSEC = YesPlease
460         NO_PREAD = YesPlease
461         NO_MMAP = YesPlease
462         NO_POLL = YesPlease
463         NO_INTPTR_T = UnfortunatelyYes
464         # Bug report 10-120822-4477 submitted to HP NonStop development.
465         MKDIR_WO_TRAILING_SLASH = YesPlease
466         # RFE 10-120912-4693 submitted to HP NonStop development.
467         NO_SETITIMER = UnfortunatelyYes
468         SANE_TOOL_PATH = /usr/coreutils/bin:/usr/local/bin
469         SHELL_PATH = /usr/local/bin/bash
470         # as of H06.25/J06.14, we might better use this
471         #SHELL_PATH = /usr/coreutils/bin/bash
472 endif
473 ifneq (,$(findstring MINGW,$(uname_S)))
474         pathsep = ;
475         HAVE_ALLOCA_H = YesPlease
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_MEMMEM = YesPlease
487         NEEDS_LIBICONV = YesPlease
488         NO_STRTOUMAX = YesPlease
489         NO_MKDTEMP = YesPlease
490         NO_MKSTEMPS = YesPlease
491         NO_SVN_TESTS = YesPlease
492         NO_PERL_MAKEMAKER = YesPlease
493         RUNTIME_PREFIX = YesPlease
494         NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
495         NO_NSEC = YesPlease
496         USE_WIN32_MMAP = YesPlease
497         USE_NED_ALLOCATOR = YesPlease
498         UNRELIABLE_FSTAT = UnfortunatelyYes
499         OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
500         NO_REGEX = YesPlease
501         NO_PYTHON = YesPlease
502         BLK_SHA1 = YesPlease
503         ETAGS_TARGET = ETAGS
504         NO_INET_PTON = YesPlease
505         NO_INET_NTOP = YesPlease
506         NO_POSIX_GOODIES = UnfortunatelyYes
507         DEFAULT_HELP_FORMAT = html
508         NO_D_INO_IN_DIRENT = YesPlease
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_GETPAGESIZE = YesPlease
541         NO_ICONV = YesPlease
542         NO_MEMMEM = YesPlease
543         NO_MKDTEMP = YesPlease
544         NO_MKSTEMPS = YesPlease
545         NO_NSEC = YesPlease
546         NO_PTHREADS = YesPlease
547         NO_R_TO_GCC_LINKER = YesPlease
548         NO_STRCASESTR = YesPlease
549         NO_STRLCPY = YesPlease
550 endif