0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 22:41:12 +01:00

configure: Add check for install -C support.

This commit is contained in:
Jason Volk 2022-08-11 13:26:28 -07:00
parent d15e95b2ac
commit e7f3bdafa6

View file

@ -26,8 +26,6 @@ AC_PATH_PROG(LDLLD, ld.lld)
AC_PATH_PROG(LD, ld.gold) AC_PATH_PROG(LD, ld.gold)
AC_PATH_PROG(XXD, xxd) AC_PATH_PROG(XXD, xxd)
AC_PATH_PROG(TOUCH, touch) AC_PATH_PROG(TOUCH, touch)
AC_PATH_PROG(INSTALL, install)
INSTALL="$INSTALL -C"
AC_SUBST(CFLAGS, "-pipe $CFLAGS") AC_SUBST(CFLAGS, "-pipe $CFLAGS")
AC_SUBST(CXXFLAGS, "-pipe $CXXFLAGS") AC_SUBST(CXXFLAGS, "-pipe $CXXFLAGS")
@ -1508,6 +1506,26 @@ AM_COND_IF([IOU],
dnl *************************************************************************** dnl ***************************************************************************
dnl
dnl Installation
dnl
AC_PATH_PROGS_FEATURE_CHECK([INSTALL], [install],
[
$ac_path_INSTALL -B --version > /dev/null 2>&1 \
&& ac_cv_path_INSTALL="$ac_path_INSTALL -C"
])
AC_MSG_CHECKING([if any install supports the -C flag])
if test -n "$ac_cv_path_INSTALL"; then
AC_MSG_RESULT([yes])
INSTALL=$ac_cv_path_INSTALL
else
AC_MSG_RESULT([no])
AC_MSG_WARN([Application should not be running during make install.])
AC_PATH_PROG(INSTALL, install)
fi
dnl dnl
dnl Installation Layout dnl Installation Layout
dnl dnl