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