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