Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jul 23, 2009
  1. @drafnel

    configure.ac: rework/fix the NEEDS_RESOLV and NEEDS_LIBGEN tests

    drafnel authored committed
    The "action" parameters for these two tests were supplied incorrectly for
    the way the tests were implemented.  The tests check whether a program
    which calls hstrerror() or basename() successfully links when -lresolv or
    -lgen are used, respectively.  A successful linking would result in
    NEEDS_RESOLV or NEEDS_LIBGEN being unset, and failure would result in
    setting the respective variable.
    
    Aside from that issue, the tests did not handle the case where neither
    library was necessary for accessing the functions in question.  So solve
    both of these issues by re-working the two tests so that their form is like
    the NEEDS_SOCKET test which attempts to link with just the c library, and
    if it fails then assumes that the additional library is necessary and sets
    the appropriate variable.
    
    Also an entry in the config.mak.in file is necessary for the NEEDS_LIBGEN
    variable to appear in the config.mak.autogen file with the value assigned
    by the configure script.  Without it, the generated shell script would
    contain a snippet like this:
    
       for ac_lib in ; do
          ...
    
    which is incorrect.
    
    Signed-off-by: Brandon Casey <drafnel@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Jun 13, 2009
  1. Merge branch 'bc/solaris'

    authored
    * bc/solaris:
      configure: test whether -lresolv is needed
      Makefile: insert SANE_TOOL_PATH to PATH before /bin or /usr/bin
      git-compat-util.h: avoid using c99 flex array feature with Sun compiler 5.8
      Makefile: add section for SunOS 5.7
      Makefile: introduce SANE_TOOL_PATH for prepending required elements to PATH
      Makefile: define __sun__ on SunOS
      git-compat-util.h: tweak the way _XOPEN_SOURCE is set on Solaris
      On Solaris choose the OLD_ICONV iconv() declaration based on the UNIX spec
      Makefile: add NEEDS_RESOLV to optionally add -lresolv to compile arguments
      Makefile: use /usr/ucb/install on SunOS platforms rather than ginstall
    
    Conflicts:
    	Makefile
Commits on Jun 10, 2009
  1. configure: test whether -lresolv is needed

    Ralf Wildenhues authored committed
    Check if -lresolv is needed for hstrerror; set NEEDS_RESOLV
    accordingly, and substitute in config.mak.in.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Jun 1, 2009
  1. @davvid

    compat: add a basename() compatibility function

    davvid authored committed
    Some systems such as Windows lack libgen.h so provide a
    basename() implementation for cross-platform use.
    
    This introduces the NO_LIBGEN_H construct to the Makefile
    and autoconf scripts.
    
    Signed-off-by: David Aguilar <davvid@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  2. @davvid

    compat: add a mkstemps() compatibility function

    davvid authored committed
    mkstemps() is a BSD extension so provide an implementation
    for cross-platform use.
    
    Signed-off-by: David Aguilar <davvid@gmail.com>
    Tested-by: Johannes Sixt <j6t@kdbg.org> (Windows)
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Feb 5, 2009
  1. config.mak.in: define paths without trailing slash

    Pascal Obry authored committed
    The main Makefile defines gitexecdir and template_dir without trailing
    slash.  config.mak.in should do the same to be consistent.
    
    Signed-off-by: Pascal Obry <pascal@obry.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Dec 3, 2008
  1. @syzdek

    autoconf: Enable threaded delta search when pthreads are supported

    syzdek authored committed
    Automatically set THREADED_DELTA_SEARCH when autoconf test detects
    support for pthreads on the platform.  This will change the default for
    some platforms that did not enable threaded delta search previously.
    
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Dec 2, 2008
  1. Makefile: introduce NO_PTHREADS

    authored
    This introduces make variable NO_PTHREADS for platforms that lack the
    support for pthreads library or people who do not want to use it for
    whatever reason.  When defined, it makes the multi-threaded index
    preloading into a no-op, and also disables threaded delta searching by
    pack-objects.
    
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    Signed-off-by: Mike Ralphson <mike@abacus.co.uk>
    Tested-by: Johannes Sixt <j6t@kdbg.org> (AIX 4.3.x)
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Nov 9, 2008
  1. @syzdek

    Add autoconf tests for pthreads

    syzdek authored committed
    Set the value of PTHREAD_LIBS to the correct flags for linking pthreads on
    the current environment.
    
    Signed-off-by: David M. Syzdek <david.syzdek@acsalaska.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Nov 2, 2008
  1. @syzdek

    Build: add NO_UINTMAX_T to support ancient systems

    syzdek authored committed
    This adds NO_UINTMAX_T for ancient systems, such as FreeBSD 4.9-SECURITY.
    If NO_UINTMAX_T is defined, then uintmax_t is defined as uint32_t.
    
    Signed-off-by: David M. Syzdek <david.syzdek@acsalaska.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Sep 8, 2008
  1. Merge branch 'jc/cc-ld-dynpath'

    authored
    * jc/cc-ld-dynpath:
      configure: auto detect dynamic library path switches
      Makefile: Allow CC_LD_DYNPATH to be overriden
    
    Conflicts:
    	Makefile
    	config.mak.in
Commits on Aug 22, 2008
  1. @bpeel

    config.mak.in: Pass on LDFLAGS from configure

    bpeel authored committed
    The configure script allows you to specify flags to pass to the linker
    step in the LDFLAGS environment variable but this was being ignored in
    the Makefile. Now a make variable gets set to the value passed down
    from the configure script.
    
    Signed-off-by: Neil Roberts <bpeeluk@yahoo.co.uk>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Aug 18, 2008
  1. @funchal

    configure: auto detect dynamic library path switches

    funchal authored committed
    Most systems (e.g. Linux gcc) use "-Wl,-rpath," to pass to the linker the
    runtime dynamic library paths. Some other systems (e.g. Sun, some BSD) use
    "-R" etc. This patch adds tests in configure for the three most common
    switches (to my best knowledge) which should cover all current platforms
    where Git is used.
    
    Signed-Off-By: Giovanni Funchal <gafunchal@gmail.com>
    
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Jun 19, 2008
  1. @pclouds

    Move all dashed-form commands to libexecdir

    pclouds authored committed
    Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Mar 11, 2008
  1. autoconf: Test FREAD_READS_DIRECTORIES

    Michal Rokos authored committed
    Add test for FREAD_READS_DIRECTORIES to detect when fread() reads fopen'ed
    directory.
    
    Tested on these platforms:
    
      AIX 5.3 - FREAD_READS_DIRECTORIES=UnfortunatelyYes
      HP-UX B.11.11 - FREAD_READS_DIRECTORIES=UnfortunatelyYes
      HP-UX B.11.23 - FREAD_READS_DIRECTORIES=UnfortunatelyYes
      Linux 2.6.25-rc4 - FREAD_READS_DIRECTORIES=
      Tru64 V5.1 - FREAD_READS_DIRECTORIES=UnfortunatelyYes
      Windows - FREAD_READS_DIRECTORIES=
    
    Signed-off-by: Michal Rokos <michal.rokos@nextsoft.cz>
    Tested-by: Mike Ralphson <mike@abacus.co.uk>
    Tested-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Mar 5, 2008
  1. Add compat/snprintf.c for systems that return bogus

    Michal Rokos authored committed
    Some systems (namely HPUX and Windows) return -1 when maxsize in snprintf()
    and in vsnprintf() is reached. So replace snprintf() and vsnprintf()
    functions with our own ones that return correct value upon overflow.
    
    [jc: verified that review comments by J6t have been incorporated, and
     tightened the check to verify the resulting buffer contents, suggested
     by Wayne Davison]
    
    Signed-off-by: Michal Rokos <michal.rokos@nextsoft.cz>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Jan 26, 2008
  1. @jnareb

    autoconf: define NO_SYS_SELECT_H on systems without <sys/select.h>.

    jnareb authored committed
    Pre-POSIX.1-2001 systems don't have <sys/select.h>, but select(2)
    is declared in <sys/time.h>, which git-compat-util.h includes.
    
    Signed-off-by: Jakub Narebski <jnareb@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Jan 18, 2008
  1. @jnareb

    autoconf: Add checking for unsetenv function

    jnareb authored committed
    Update configure.ac (and config.mak.in) by adding test for unsetenv
    (NO_UNSETENV).  Add comment about NO_UNSETENV to Makefile header, as
    original commit 731043f adding compat/unsetenv.c didn't do that.
    
    Signed-off-by: Jakub Narebski <jnareb@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Dec 11, 2007
  1. @jnareb

    autoconf: Check asciidoc version to automatically set ASCIIDOC8

    jnareb authored committed
    Check for asciidoc, and if it exists check asciidoc version, setting
    ASCIIDOC8 when needed.  Currently it just runs asciidoc in asciidoc7
    compatibility mode (see: Documentation/Makefile).
    
    Signed-off-by: Jakub Narebski <jnareb@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Dec 7, 2007
  1. @jnareb

    autoconf: Add test for OLD_ICONV (squelching compiler warning)

    jnareb authored committed
    Update configure.ac (and config.mak.in) to keep up with git
    development by adding [compile] test whether your library has an old
    iconv(), where the second (input buffer pointer) parameter is declared
    with type (const char **) (OLD_ICONV).
    
    Test-proposed-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Jakub Narebski <jnareb@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Nov 20, 2007
  1. @jnareb

    autoconf: Add tests for memmem, strtoumax and mkdtemp functions

    jnareb authored committed
    Update configure.ac (and config.mak.in) to keep up with git
    development by adding tests for memmem (NO_MEMMEM), strtoumax
    (NO_STRTOUMAX) and mkdtemp (NO_MKDTEMP) functions.
    
    Signed-off-by: Jakub Narebski <jnareb@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Nov 8, 2007
  1. @dsymonds

    Improve accuracy of check for presence of deflateBound.

    dsymonds authored committed
    ZLIB_VERNUM isn't defined in some zlib versions, so this patch does a proper
    linking test in autoconf to see whether deflateBound exists in zlib. Also,
    setting NO_DEFLATE_BOUND will also work for folk not using autoconf.
    
    Signed-off-by: David Symonds <dsymonds@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Jun 7, 2007
  1. War on whitespace

    authored
    This uses "git-apply --whitespace=strip" to fix whitespace errors that have
    crept in to our source files over time.  There are a few files that need
    to have trailing whitespaces (most notably, test vectors).  The results
    still passes the test, and build result in Documentation/ area is unchanged.
    
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Apr 1, 2007
  1. Add --with-tcltk and --without-tcltk to configure.

    Eygene Ryabinkin authored Junio C Hamano committed
    --with-tcltk enables the search of the Tcl/Tk interpreter. If no
    interpreter is found then Tcl/Tk dependend parts are disabled.
    
    --without-tcltk unconditionally disables Tcl/Tk dependent parts.
    
    The original behaviour is not changed: bare './configure' just
    installs the Tcl/Tk part doing no checks for the interpreter.
    
    Signed-off-by: Eygene Ryabinkin <rea-git@codelabs.ru>
Commits on Nov 22, 2006
  1. remove merge-recursive-old

    Junio C Hamano authored
    This frees the Porcelain-ish that comes with the core Python-free.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Oct 1, 2006
  1. Merge branch 'jc/gitpm'

    Junio C Hamano authored
    * jc/gitpm: (52 commits)
      Remove -fPIC which was only needed for Git.xs
      Git.pm: Kill Git.xs for now
      Revert "Make it possible to set up libgit directly (instead of from the environment)"
      Revert "Git.pm: Introduce fast get_object() method"
      Revert "Convert git-annotate to use Git.pm"
      Fix compilation with Sun CC
      pass DESTDIR to the generated perl/Makefile
      Eliminate Scalar::Util usage from private-Error.pm
      Convert git-annotate to use Git.pm
      Git.pm: Introduce fast get_object() method
      Make it possible to set up libgit directly (instead of from the environment)
      Work around sed and make interactions on the backslash at the end of line.
      Git.pm: Introduce ident() and ident_person() methods
      Convert git-send-email to use Git.pm
      Git.pm: Add config() method
      Use $GITPERLLIB instead of $RUNNING_GIT_TESTS and centralize @INC munging
      INSTALL: a tip for running after building but without installing.
      Perly Git: make sure we do test the freshly built one.
      Git.pm: Don't #define around die
      Git.xs: older perl do not know const char *
      ...
Commits on Sep 30, 2006
  1. Remove -fPIC which was only needed for Git.xs

    Junio C Hamano authored
    The distinction between BASIC_ vs ALL_ is still kept, since it
    is not Git.xs specific -- we could face the same issue when we
    do other language bindings (e.g. Python).
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Sep 7, 2006
  1. @jnareb

    autoconf: Add support for setting NO_ICONV and ICONVDIR

    jnareb authored Junio C Hamano committed
    Add support for ./configure options --without-iconv (if neither libc
    nor libiconv properly support iconv), and for --with-iconv=PATH (to
    set prefix to libiconv library and headers, used only when
    NEED_LIBICONV is set).  While at it, make ./configure set or unset
    NO_ICONV always (it is not autodetected in Makefile).
    
    Signed-off-by: Jakub Narebski <jnareb@gmail.com>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Aug 15, 2006
  1. @dstosberg

    Fix compilation with Sun CC

    dstosberg authored Junio C Hamano committed
    - Add the CFLAGS variable to config.mak.in to override the Makefile's
      default, which is gcc-specific and won't work with Sun CC.
    - Prefer "cc" over "gcc", because Pasky's Git.pm will not compile with gcc
      on Solaris at all. On Linux and the free BSDs "cc" is linked to "gcc"
      anyway.
    - Set correct flag to generate position-independent code.
    - Add "-xO3" (= use default optimization level) to CFLAGS.
    
    Signed-off-by: Dennis Stosberg <dennis@stosberg.net>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Aug 9, 2006
  1. @jnareb

    autoconf: Move variables which we always set to config.mak.in

    jnareb authored Junio C Hamano committed
    Move detected NO_STH and NEED_STH variables, which we always output,
    either setting or unsetting (setting to empty string) to config.mak.in
    and use setting appropriately named variables and doing AC_SUBST
    instead of adding them via GIT_CONF_APPEND_LINE macro and
    config.mak.append temporary file.
    
    Variables which might and might not be set are still added via
    config.mak.append; this include all STH_PATH variables.
    
    Signed-off-by: Jakub Narebski <jnareb@gmail.com>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Jul 15, 2006
  1. @proski

    Set datarootdir in config.mak.in

    proski authored Junio C Hamano committed
    Autoconf 2.60 expresses datadir in terms of datarootdir.  If datarootdir
    is not substituted, configure issues a warning and uses a compatibility
    substitution for datadir.
    
    Signed-off-by: Pavel Roskin <proski@gnu.org>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Jul 9, 2006
  1. @jnareb

    autoconf: Checks for some programs

    jnareb authored Junio C Hamano committed
    ./configure script checks now for the following programs:
     * CC  - using AC_PROG_CC
     * AR  - using AC_CHECK_TOOL among ar
     * TAR - among gtar, tar
    
    Checks not implemented:
     * INSTALL  - needs install-sh or install.sh in sources
     * RPMBUILD - not known alternatives for rpmbuild
     * PYTHON   - no PYTHON variable in Makefile,
                  has to set NO_PYTHON if not present
    
    Signed-off-by: Jakub Narebski <jnareb@gmail.com>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Jul 3, 2006
  1. @jnareb

    autoconf: Use autoconf to write installation directories to config.ma…

    jnareb authored Junio C Hamano committed
    …k.autogen
    
    This is beginning of patch series introducing installation configuration
    using autoconf (and no other autotools) to git. The idea is to generate
    config.mak.autogen using ./configure (generated from configure.ac by running
    autoconf) from config.mak.in, so one can use autoconf as an _alternative_ to
    ordinary Makefile, and creating one's own config.mak. Local settings in
    config.mak override generated settings in config.mak.autogen
    
    This patch includes minimal configure.ac and config.mak.in, so one can set
    installation directories using autoconf generated ./configure script
    e.g. ./configure --prefix=/usr
    
    Signed-off-by: Jakub Narebski <jnareb@gmail.com>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Something went wrong with that request. Please try again.