From: Ralf Wildenhues Date: Mon, 22 Sep 2008 20:32:08 +0000 (+0200) Subject: fix installation with ./ginstall in src X-Git-Tag: v7.0~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=beaee48f269f6e7a38be8dfb032e6e88c0a4bf5f;p=thirdparty%2Fcoreutils.git fix installation with ./ginstall in src * src/Makefile.am (cu_install_program): New variable, set to either ./ginstall or @INSTALL_PROGRAM@ (for cross compilation). (INSTALL_PROGRAM): Override AC_SUBST unconditionally, to avoid warning, and wrong initialization order. --- diff --git a/src/Makefile.am b/src/Makefile.am index 80313ae4ba..3625878853 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -466,6 +466,9 @@ sc_tight_scope: $(all_programs) exit 1; } || : # Use the just-built ./ginstall, when not cross-compiling. -if !CROSS_COMPILING -INSTALL_PROGRAM = ./ginstall +if CROSS_COMPILING +cu_install_program = @INSTALL_PROGRAM@ +else +cu_install_program = ./ginstall endif +INSTALL_PROGRAM = $(cu_install_program)