Commit 0293ad13 authored by David Lawrence's avatar David Lawrence
Browse files

make sure INSTALL has an absolute path [RT 36]

parent 02da394e
This diff is collapsed.
......@@ -13,7 +13,7 @@ dnl PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
dnl ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
dnl SOFTWARE.
AC_REVISION($Revision: 1.97 $)
AC_REVISION($Revision: 1.98 $)
AC_PREREQ(2.13)
......@@ -73,6 +73,32 @@ case "$prefix" in
;;
esac
dnl
dnl Make sure INSTALL uses an absolute path, else it will be wrong in all
dnl Makefiles, since they use make/rules.in and INSTALL will be adjusted by
dnl configure based on the location of the file where it is substituted.
dnl Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
dnl subdirectory of install-sh, This relative path will be wrong for all
dnl directories more than one level down from install-sh.
dnl
case "$INSTALL" in
/*)
;;
*)
dnl
dnl Not all systems have dirname.
dnl
changequote({, })
ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
changequote([, ])
ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
test "$ac_dir" = "$ac_prog" && ac_dir=.
test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
INSTALL="$ac_dir/$ac_prog"
;;
esac
dnl
dnl On these hosts, we really want to use cc, not gcc, even if it is
dnl found. The gcc that these systems have will not correctly handle
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment