configure script with --prefix=/path/to/install/to doesn't "work"

JG
John Graham
Mon, Sep 14, 2009 12:45 PM

This is just a small thing, but I'm not sure how to change it in a way
that's "neat", not being familiar with the internals of
autoconf/automake etc.

The "prefix" makefile variable (line 73 of the top-level makefile) is
hard-coded to be /usr/local. As a result, when configuring with
--prefix=/some/path, the "make install" command tries to install there

  • can this be changed so it automatically tries to install to the
    correct directory? It's easy enough to manually change the line in the
    makefile, but it might cause confusion to someone not so familiar with
    make etc.

John G

This is just a small thing, but I'm not sure how to change it in a way that's "neat", not being familiar with the internals of autoconf/automake etc. The "prefix" makefile variable (line 73 of the top-level makefile) is hard-coded to be /usr/local. As a result, when configuring with --prefix=/some/path, the "make install" command tries to install there - can this be changed so it automatically tries to install to the correct directory? It's easy enough to manually change the line in the makefile, but it might cause confusion to someone not so familiar with make etc. John G