# git configure script

4 messages from 2008-11-26 to 2008-12-01. Participants: Neale T. Pickett, Matthieu Moy, Mike Ralphson.
Thread: https://gitlist.dev/t/16482

## Neale T. Pickett, 2008-11-26 19:30

Subject: git configure script
Message-ID: <njx4p1ub7zz.fsf@cfl-sunray1.lanl.gov>
URL: https://gitlist.dev/e/njx4p1ub7zz.fsf%40cfl-sunray1.lanl.gov

```
I downloaded 1.6.0.4 from
http://kernel.org/pub/software/scm/git/git-1.6.0.4.tar.gz 
and ran

  ./configure --prefix=$HOME/opt

But it installed everything in $HOME/bin and $HOME/libexec.  Looking
into it, it seems the shipped Makefile doesn't look to see what --prefix
is, despite the configure script claiming that "make install" would
honor this.

I'm guessing it should have shipped with a Makefile.in or something, but
honestly Autoconf confuses the dickens out of me.

Neale

```

## Matthieu Moy, 2008-11-26 20:53

Subject: Re: git configure script
Message-ID: <vpq7i6q8azp.fsf@bauges.imag.fr>
URL: https://gitlist.dev/e/vpq7i6q8azp.fsf%40bauges.imag.fr
In-Reply-To: <njx4p1ub7zz.fsf@cfl-sunray1.lanl.gov>

```
neale@lanl.gov (Neale T. Pickett) writes:

> But it installed everything in $HOME/bin and $HOME/libexec.  Looking
> into it, it seems the shipped Makefile doesn't look to see what --prefix
> is, despite the configure script claiming that "make install" would
> honor this.

It does, since it includes config.mak.autogen which overrides prefix
defined in Makefile.

I'm 99% sure you did something wrong. You should investigate by
looking into config.mak.autogen after running configure.

-- 
Matthieu

```

## Mike Ralphson, 2008-11-27 09:25

Subject: Re: git configure script
Message-ID: <e2b179460811270125r2b64fc23sdcb244de0594fbc0@mail.gmail.com>
URL: https://gitlist.dev/e/e2b179460811270125r2b64fc23sdcb244de0594fbc0%40mail.gmail.com
In-Reply-To: <vpq7i6q8azp.fsf@bauges.imag.fr>

```
2008/11/26 Matthieu Moy <Matthieu.Moy@imag.fr>
>
> neale@lanl.gov (Neale T. Pickett) writes:
>
> > But it installed everything in $HOME/bin and $HOME/libexec.  Looking
> > into it, it seems the shipped Makefile doesn't look to see what --prefix
> > is, despite the configure script claiming that "make install" would
> > honor this.
>
> It does, since it includes config.mak.autogen which overrides prefix
> defined in Makefile.
>
> I'm 99% sure you did something wrong. You should investigate by
> looking into config.mak.autogen after running configure.

Indeed. I believe something goes a little funny if you build as root.
Can you try again running ./configure and (g)make as a non-root user,
then only (g)make install as root / under sudo etc.

Cheers, Mike

```

## Neale T. Pickett, 2008-12-01 19:12

Subject: Re: git configure script
Message-ID: <njxk5aj3e2d.fsf@cfl-sunray1.lanl.gov>
URL: https://gitlist.dev/e/njxk5aj3e2d.fsf%40cfl-sunray1.lanl.gov
In-Reply-To: <vpq7i6q8azp.fsf@bauges.imag.fr>

```
Matthieu Moy <Matthieu.Moy@imag.fr> writes:

> It does, since it includes config.mak.autogen which overrides prefix
> defined in Makefile.
>
> I'm 99% sure you did something wrong. You should investigate by
> looking into config.mak.autogen after running configure.

This gave me the tip I needed.  I was doing this in my Makefile:

    make -C git-1.6.0.4 install

Instead of this:

    cd git-1.6.0.4 && make install

Since the include was prefixed with "-", I didn't get any warnings or
errors about not being able to find config.mak.autogen, and it fell back
to the default.

I'm not sure using the -C option to make is "something wrong", but then
again I am apparently the first person to run into this problem, so it's
probably not a big deal.

Thanks for your help :)

Neale

```
