config.mak.unameon commit Merge branch 'sk/submodules-absolute-path-on-windows' (ee82139)
   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
  37endif
  38ifeq ($(uname_S),GNU/kFreeBSD)
  39        HAVE_ALLOCA_H = YesPlease
  40        NO_STRLCPY = YesPlease
  41        NO_MKSTEMPS = YesPlease
  42        HAVE_PATHS_H = YesPlease
  43        DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
  44        LIBC_CONTAINS_LIBINTL = YesPlease
  45endif
  46ifeq ($(uname_S),UnixWare)
  47        CC = cc
  48        NEEDS_SOCKET = YesPlease
  49        NEEDS_NSL = YesPlease
  50        NEEDS_SSL_WITH_CRYPTO = YesPlease
  51        NEEDS_LIBICONV = YesPlease
  52        SHELL_PATH = /usr/local/bin/bash
  53        NO_IPV6 = YesPlease
  54        NO_HSTRERROR = YesPlease
  55        NO_MKSTEMPS = YesPlease
  56        BASIC_CFLAGS += -Kthread
  57        BASIC_CFLAGS += -I/usr/local/include
  58        BASIC_LDFLAGS += -L/usr/local/lib
  59        INSTALL = ginstall
  60        TAR = gtar
  61        NO_STRCASESTR = YesPlease
  62        NO_MEMMEM = YesPlease
  63endif
  64ifeq ($(uname_S),SCO_SV)
  65        ifeq ($(uname_R),3.2)
  66                CFLAGS = -O2
  67        endif
  68        ifeq ($(uname_R),5)
  69                CC = cc
  70                BASIC_CFLAGS += -Kthread
  71        endif
  72        NEEDS_SOCKET = YesPlease
  73        NEEDS_NSL = YesPlease
  74        NEEDS_SSL_WITH_CRYPTO = YesPlease
  75        NEEDS_LIBICONV = YesPlease
  76        SHELL_PATH = /usr/bin/bash
  77        NO_IPV6 = YesPlease
  78        NO_HSTRERROR = YesPlease
  79        NO_MKSTEMPS = YesPlease
  80        BASIC_CFLAGS += -I/usr/local/include
  81        BASIC_LDFLAGS += -L/usr/local/lib
  82        NO_STRCASESTR = YesPlease
  83        NO_MEMMEM = YesPlease
  84        INSTALL = ginstall
  85        TAR = gtar
  86endif
  87ifeq ($(uname_S),Darwin)
  88        NEEDS_CRYPTO_WITH_SSL = YesPlease
  89        NEEDS_SSL_WITH_CRYPTO = YesPlease
  90        NEEDS_LIBICONV = YesPlease
  91        ifeq ($(shell expr "$(uname_R)" : '[15678]\.'),2)
  92                OLD_ICONV = UnfortunatelyYes
  93        endif
  94        ifeq ($(shell expr "$(uname_R)" : '[15]\.'),2)
  95                NO_STRLCPY = YesPlease
  96        endif
  97        NO_MEMMEM = YesPlease
  98        USE_ST_TIMESPEC = YesPlease
  99        HAVE_DEV_TTY = YesPlease
 100        COMPAT_OBJS += compat/precompose_utf8.o
 101        BASIC_CFLAGS += -DPRECOMPOSE_UNICODE
 102endif
 103ifeq ($(uname_S),SunOS)
 104        NEEDS_SOCKET = YesPlease
 105        NEEDS_NSL = YesPlease
 106        SHELL_PATH = /bin/bash
 107        SANE_TOOL_PATH = /usr/xpg6/bin:/usr/xpg4/bin
 108        HAVE_ALLOCA_H = YesPlease
 109        NO_STRCASESTR = YesPlease
 110        NO_MEMMEM = YesPlease
 111        NO_MKDTEMP = YesPlease
 112        NO_MKSTEMPS = YesPlease
 113        NO_REGEX = YesPlease
 114        NO_MSGFMT_EXTENDED_OPTIONS = YesPlease
 115        HAVE_DEV_TTY = YesPlease
 116        ifeq ($(uname_R),5.6)
 117                SOCKLEN_T = int
 118                NO_HSTRERROR = YesPlease
 119                NO_IPV6 = YesPlease
 120                NO_SOCKADDR_STORAGE = YesPlease
 121                NO_UNSETENV = YesPlease
 122                NO_SETENV = YesPlease
 123                NO_STRLCPY = YesPlease
 124                NO_STRTOUMAX = YesPlease
 125                GIT_TEST_CMP = cmp
 126        endif
 127        ifeq ($(uname_R),5.7)
 128                NEEDS_RESOLV = YesPlease
 129                NO_IPV6 = YesPlease
 130                NO_SOCKADDR_STORAGE = YesPlease
 131                NO_UNSETENV = YesPlease
 132                NO_SETENV = YesPlease
 133                NO_STRLCPY = YesPlease
 134                NO_STRTOUMAX = YesPlease
 135                GIT_TEST_CMP = cmp
 136        endif
 137        ifeq ($(uname_R),5.8)
 138                NO_UNSETENV = YesPlease
 139                NO_SETENV = YesPlease
 140                NO_STRTOUMAX = YesPlease
 141                GIT_TEST_CMP = cmp
 142        endif
 143        ifeq ($(uname_R),5.9)
 144                NO_UNSETENV = YesPlease
 145                NO_SETENV = YesPlease
 146                NO_STRTOUMAX = YesPlease
 147                GIT_TEST_CMP = cmp
 148        endif
 149        INSTALL = /usr/ucb/install
 150        TAR = gtar
 151        BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__
 152endif
 153ifeq ($(uname_O),Cygwin)
 154        ifeq ($(shell expr "$(uname_R)" : '1\.[1-6]\.'),4)
 155                NO_D_TYPE_IN_DIRENT = YesPlease
 156                NO_D_INO_IN_DIRENT = YesPlease
 157                NO_STRCASESTR = YesPlease
 158                NO_MEMMEM = YesPlease
 159                NO_MKSTEMPS = YesPlease
 160                NO_SYMLINK_HEAD = YesPlease
 161                NO_IPV6 = YesPlease
 162                OLD_ICONV = UnfortunatelyYes
 163                # There are conflicting reports about this.
 164                # On some boxes NO_MMAP is needed, and not so elsewhere.
 165                # Try commenting this out if you suspect MMAP is more efficient
 166                NO_MMAP = YesPlease
 167        else
 168                NO_REGEX = UnfortunatelyYes
 169        endif
 170        HAVE_ALLOCA_H = YesPlease
 171        NEEDS_LIBICONV = YesPlease
 172        NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes
 173        NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
 174        X = .exe
 175        UNRELIABLE_FSTAT = UnfortunatelyYes
 176        SPARSE_FLAGS = -isystem /usr/include/w32api -Wno-one-bit-signed-bitfield
 177endif
 178ifeq ($(uname_S),FreeBSD)
 179        NEEDS_LIBICONV = YesPlease
 180        OLD_ICONV = YesPlease
 181        NO_MEMMEM = YesPlease
 182        BASIC_CFLAGS += -I/usr/local/include
 183        BASIC_LDFLAGS += -L/usr/local/lib
 184        DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
 185        USE_ST_TIMESPEC = YesPlease
 186        ifeq ($(shell expr "$(uname_R)" : '4\.'),2)
 187                PTHREAD_LIBS = -pthread
 188                NO_UINTMAX_T = YesPlease
 189                NO_STRTOUMAX = YesPlease
 190        endif
 191        PYTHON_PATH = /usr/local/bin/python
 192        HAVE_PATHS_H = YesPlease
 193        GMTIME_UNRELIABLE_ERRORS = UnfortunatelyYes
 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),MirBSD)
 205        NO_STRCASESTR = YesPlease
 206        NO_MEMMEM = YesPlease
 207        USE_ST_TIMESPEC = YesPlease
 208        NEEDS_LIBICONV = YesPlease
 209        HAVE_PATHS_H = YesPlease
 210endif
 211ifeq ($(uname_S),NetBSD)
 212        ifeq ($(shell expr "$(uname_R)" : '[01]\.'),2)
 213                NEEDS_LIBICONV = YesPlease
 214        endif
 215        BASIC_CFLAGS += -I/usr/pkg/include
 216        BASIC_LDFLAGS += -L/usr/pkg/lib $(CC_LD_DYNPATH)/usr/pkg/lib
 217        USE_ST_TIMESPEC = YesPlease
 218        NO_MKSTEMPS = YesPlease
 219        HAVE_PATHS_H = YesPlease
 220endif
 221ifeq ($(uname_S),AIX)
 222        DEFAULT_PAGER = more
 223        NO_STRCASESTR = YesPlease
 224        NO_MEMMEM = YesPlease
 225        NO_MKDTEMP = YesPlease
 226        NO_MKSTEMPS = YesPlease
 227        NO_STRLCPY = YesPlease
 228        NO_NSEC = YesPlease
 229        FREAD_READS_DIRECTORIES = UnfortunatelyYes
 230        INTERNAL_QSORT = UnfortunatelyYes
 231        NEEDS_LIBICONV = YesPlease
 232        BASIC_CFLAGS += -D_LARGE_FILES
 233        ifeq ($(shell expr "$(uname_V)" : '[1234]'),1)
 234                NO_PTHREADS = YesPlease
 235        else
 236                PTHREAD_LIBS = -lpthread
 237        endif
 238        ifeq ($(shell expr "$(uname_V).$(uname_R)" : '5\.1'),3)
 239                INLINE = ''
 240        endif
 241        GIT_TEST_CMP = cmp
 242endif
 243ifeq ($(uname_S),GNU)
 244        # GNU/Hurd
 245        HAVE_ALLOCA_H = YesPlease
 246        NO_STRLCPY = YesPlease
 247        NO_MKSTEMPS = YesPlease
 248        HAVE_PATHS_H = YesPlease
 249        LIBC_CONTAINS_LIBINTL = YesPlease
 250endif
 251ifeq ($(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
 269endif
 270ifeq ($(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
 288endif
 289ifeq ($(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
 316endif
 317ifeq ($(uname_S),Windows)
 318        GIT_VERSION := $(GIT_VERSION).MSVC
 319        pathsep = ;
 320        HAVE_ALLOCA_H = YesPlease
 321        NO_PREAD = YesPlease
 322        NEEDS_CRYPTO_WITH_SSL = YesPlease
 323        NO_LIBGEN_H = YesPlease
 324        NO_POLL = YesPlease
 325        NO_SYMLINK_HEAD = YesPlease
 326        NO_IPV6 = YesPlease
 327        NO_UNIX_SOCKETS = YesPlease
 328        NO_SETENV = YesPlease
 329        NO_UNSETENV = YesPlease
 330        NO_STRCASESTR = YesPlease
 331        NO_STRLCPY = YesPlease
 332        NO_MEMMEM = YesPlease
 333        # NEEDS_LIBICONV = YesPlease
 334        NO_ICONV = YesPlease
 335        NO_STRTOUMAX = YesPlease
 336        NO_MKDTEMP = YesPlease
 337        NO_MKSTEMPS = YesPlease
 338        SNPRINTF_RETURNS_BOGUS = YesPlease
 339        NO_SVN_TESTS = YesPlease
 340        RUNTIME_PREFIX = YesPlease
 341        NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
 342        NO_NSEC = YesPlease
 343        USE_WIN32_MMAP = YesPlease
 344        # USE_NED_ALLOCATOR = YesPlease
 345        UNRELIABLE_FSTAT = UnfortunatelyYes
 346        OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
 347        NO_REGEX = 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 -Icompat -Icompat/regex -Icompat/win32 -DSTRIP_EXTENSION=\".exe\"
 366        BASIC_LDFLAGS = -IGNORE:4217 -IGNORE:4049 -NOLOGO -SUBSYSTEM:CONSOLE
 367        EXTLIBS = user32.lib advapi32.lib shell32.lib wininet.lib ws2_32.lib invalidcontinue.obj
 368        PTHREAD_LIBS =
 369        lib =
 370ifndef DEBUG
 371        BASIC_CFLAGS += -GL -Os -MD
 372        BASIC_LDFLAGS += -LTCG
 373        AR += -LTCG
 374else
 375        BASIC_CFLAGS += -Zi -MDd
 376endif
 377        X = .exe
 378endif
 379ifeq ($(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        endif
 392        ifeq ($(uname_R),5.2)
 393                NO_INET_NTOP = YesPlease
 394                NO_INET_PTON = YesPlease
 395                NO_SOCKADDR_STORAGE = YesPlease
 396        endif
 397endif
 398ifeq ($(uname_S),Minix)
 399        NO_IPV6 = YesPlease
 400        NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
 401        NO_NSEC = YesPlease
 402        NEEDS_LIBGEN =
 403        NEEDS_CRYPTO_WITH_SSL = YesPlease
 404        NEEDS_IDN_WITH_CURL = YesPlease
 405        NEEDS_SSL_WITH_CURL = YesPlease
 406        NEEDS_RESOLV =
 407        NO_HSTRERROR = YesPlease
 408        NO_MMAP = YesPlease
 409        NO_CURL =
 410        NO_EXPAT =
 411endif
 412ifeq ($(uname_S),NONSTOP_KERNEL)
 413        # Needs some C99 features, "inline" is just one of them.
 414        # INLINE='' would just replace one set of warnings with another and
 415        # still not compile in c89 mode, due to non-const array initializations.
 416        CC = cc -c99
 417        # Disable all optimization, seems to result in bad code, with -O or -O2
 418        # or even -O1 (default), /usr/local/libexec/git-core/git-pack-objects
 419        # abends on "git push". Needs more investigation.
 420        CFLAGS = -g -O0
 421        # We'd want it to be here.
 422        prefix = /usr/local
 423        # Our's are in ${prefix}/bin (perl might also be in /usr/bin/perl).
 424        PERL_PATH = ${prefix}/bin/perl
 425        PYTHON_PATH = ${prefix}/bin/python
 426
 427        # As detected by './configure'.
 428        # Missdetected, hence commented out, see below.
 429        #NO_CURL = YesPlease
 430        # Added manually, see above.
 431        NEEDS_SSL_WITH_CURL = YesPlease
 432        HAVE_LIBCHARSET_H = YesPlease
 433        HAVE_STRINGS_H = YesPlease
 434        NEEDS_LIBICONV = YesPlease
 435        NEEDS_LIBINTL_BEFORE_LIBICONV = YesPlease
 436        NO_SYS_SELECT_H = UnfortunatelyYes
 437        NO_D_TYPE_IN_DIRENT = YesPlease
 438        NO_HSTRERROR = YesPlease
 439        NO_STRCASESTR = YesPlease
 440        NO_MEMMEM = YesPlease
 441        NO_STRLCPY = YesPlease
 442        NO_SETENV = YesPlease
 443        NO_UNSETENV = YesPlease
 444        NO_MKDTEMP = YesPlease
 445        NO_MKSTEMPS = YesPlease
 446        # Currently libiconv-1.9.1.
 447        OLD_ICONV = UnfortunatelyYes
 448        NO_REGEX = YesPlease
 449        NO_PTHREADS = UnfortunatelyYes
 450
 451        # Not detected (nor checked for) by './configure'.
 452        # We don't have SA_RESTART on NonStop, unfortunalety.
 453        COMPAT_CFLAGS += -DSA_RESTART=0
 454        # Apparently needed in compat/fnmatch/fnmatch.c.
 455        COMPAT_CFLAGS += -DHAVE_STRING_H=1
 456        NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
 457        NO_NSEC = YesPlease
 458        NO_PREAD = YesPlease
 459        NO_MMAP = YesPlease
 460        NO_POLL = YesPlease
 461        NO_INTPTR_T = UnfortunatelyYes
 462        # Bug report 10-120822-4477 submitted to HP NonStop development.
 463        MKDIR_WO_TRAILING_SLASH = YesPlease
 464        # RFE 10-120912-4693 submitted to HP NonStop development.
 465        NO_SETITIMER = UnfortunatelyYes
 466        SANE_TOOL_PATH = /usr/coreutils/bin:/usr/local/bin
 467        SHELL_PATH = /usr/local/bin/bash
 468        # as of H06.25/J06.14, we might better use this
 469        #SHELL_PATH = /usr/coreutils/bin/bash
 470endif
 471ifneq (,$(findstring MINGW,$(uname_S)))
 472        pathsep = ;
 473        HAVE_ALLOCA_H = YesPlease
 474        NO_PREAD = YesPlease
 475        NEEDS_CRYPTO_WITH_SSL = YesPlease
 476        NO_LIBGEN_H = YesPlease
 477        NO_POLL = YesPlease
 478        NO_SYMLINK_HEAD = YesPlease
 479        NO_UNIX_SOCKETS = YesPlease
 480        NO_SETENV = YesPlease
 481        NO_UNSETENV = YesPlease
 482        NO_STRCASESTR = YesPlease
 483        NO_STRLCPY = YesPlease
 484        NO_MEMMEM = YesPlease
 485        NEEDS_LIBICONV = YesPlease
 486        NO_STRTOUMAX = YesPlease
 487        NO_MKDTEMP = YesPlease
 488        NO_MKSTEMPS = YesPlease
 489        NO_SVN_TESTS = YesPlease
 490        NO_PERL_MAKEMAKER = YesPlease
 491        RUNTIME_PREFIX = YesPlease
 492        NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
 493        NO_NSEC = YesPlease
 494        USE_WIN32_MMAP = YesPlease
 495        USE_NED_ALLOCATOR = YesPlease
 496        UNRELIABLE_FSTAT = UnfortunatelyYes
 497        OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
 498        NO_REGEX = YesPlease
 499        NO_PYTHON = YesPlease
 500        BLK_SHA1 = YesPlease
 501        ETAGS_TARGET = ETAGS
 502        NO_INET_PTON = YesPlease
 503        NO_INET_NTOP = YesPlease
 504        NO_POSIX_GOODIES = UnfortunatelyYes
 505        DEFAULT_HELP_FORMAT = html
 506        COMPAT_CFLAGS += -D__USE_MINGW_ACCESS -D_USE_32BIT_TIME_T -DNOGDI -Icompat -Icompat/win32
 507        COMPAT_CFLAGS += -DSTRIP_EXTENSION=\".exe\"
 508        COMPAT_OBJS += compat/mingw.o compat/winansi.o \
 509                compat/win32/pthread.o compat/win32/syslog.o \
 510                compat/win32/dirent.o
 511        BASIC_LDFLAGS += -Wl,--large-address-aware
 512        EXTLIBS += -lws2_32
 513        GITLIBS += git.res
 514        PTHREAD_LIBS =
 515        RC = windres -O coff
 516        NATIVE_CRLF = YesPlease
 517        X = .exe
 518        SPARSE_FLAGS = -Wno-one-bit-signed-bitfield
 519ifneq (,$(wildcard ../THIS_IS_MSYSGIT))
 520        htmldir = doc/git/html/
 521        prefix =
 522        INSTALL = /bin/install
 523        EXTLIBS += /mingw/lib/libz.a
 524        NO_R_TO_GCC_LINKER = YesPlease
 525        INTERNAL_QSORT = YesPlease
 526        HAVE_LIBCHARSET_H = YesPlease
 527        NO_GETTEXT = YesPlease
 528else
 529        NO_CURL = YesPlease
 530endif
 531endif
 532ifeq ($(uname_S),QNX)
 533        COMPAT_CFLAGS += -DSA_RESTART=0
 534        EXPAT_NEEDS_XMLPARSE_H = YesPlease
 535        HAVE_STRINGS_H = YesPlease
 536        NEEDS_SOCKET = 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