Blame aclocal.m4

Packit Service 973b1a
AC_PREREQ(2.12)
Packit Service 973b1a
Packit Service 973b1a
AC_DEFUN(CL_PROG_INSTALL,
Packit Service 973b1a
[dnl This is mostly copied from AC_PROG_INSTALL.
Packit Service 973b1a
# Find a good install program.  We prefer a C program (faster),
Packit Service 973b1a
# so one script is as good as another.  But avoid the broken or
Packit Service 973b1a
# incompatible versions:
Packit Service 973b1a
# SysV /etc/install, /usr/sbin/install
Packit Service 973b1a
# SunOS /usr/etc/install
Packit Service 973b1a
# IRIX /sbin/install
Packit Service 973b1a
# AIX /bin/install
Packit Service 973b1a
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
Packit Service 973b1a
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Packit Service 973b1a
# ./install, which can be erroneously created by make from ./install.sh.
Packit Service 973b1a
AC_MSG_CHECKING(for a BSD compatible install)
Packit Service 973b1a
if test -z "$INSTALL"; then
Packit Service 973b1a
AC_CACHE_VAL(cl_cv_path_install,
Packit Service 973b1a
[  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
Packit Service 973b1a
  for ac_dir in $PATH; do
Packit Service 973b1a
    # Account for people who put trailing slashes in PATH elements.
Packit Service 973b1a
    case "$ac_dir/" in
Packit Service 973b1a
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
Packit Service 973b1a
    *)
Packit Service 973b1a
      # OSF1 and SCO ODT 3.0 have their own names for install.
Packit Service 973b1a
      for ac_prog in ginstall installbsd scoinst install; do
Packit Service 973b1a
        if test -f $ac_dir/$ac_prog; then
Packit Service 973b1a
	  if test $ac_prog = install &&
Packit Service 973b1a
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
Packit Service 973b1a
	    # AIX install.  It has an incompatible calling convention.
Packit Service 973b1a
	    # OSF/1 installbsd also uses dspmsg, but is usable.
Packit Service 973b1a
	    :
Packit Service 973b1a
	  else
Packit Service 973b1a
	    if test $ac_prog = installbsd &&
Packit Service 973b1a
	      strings $ac_dir/$ac_prog | grep src/bos >/dev/null 2>&1; then
Packit Service 973b1a
	      # AIX installbsd doesn't work without option "-g".
Packit Service 973b1a
	      :
Packit Service 973b1a
	    else
Packit Service 973b1a
	      cl_cv_path_install="$ac_dir/$ac_prog -c"
Packit Service 973b1a
	      break 2
Packit Service 973b1a
	    fi
Packit Service 973b1a
	  fi
Packit Service 973b1a
	fi
Packit Service 973b1a
      done
Packit Service 973b1a
      ;;
Packit Service 973b1a
    esac
Packit Service 973b1a
  done
Packit Service 973b1a
  IFS="$ac_save_ifs"
Packit Service 973b1a
  # As a last resort, use cp.
Packit Service 973b1a
  test -z "$cl_cv_path_install" && cl_cv_path_install="cp"
Packit Service 973b1a
])dnl
Packit Service 973b1a
  INSTALL="$cl_cv_path_install"
Packit Service 973b1a
fi
Packit Service 973b1a
dnl We do special magic for INSTALL instead of AC_SUBST, to get
Packit Service 973b1a
dnl relative paths right. 
Packit Service 973b1a
AC_MSG_RESULT($INSTALL)
Packit Service 973b1a
AC_SUBST(INSTALL)dnl
Packit Service 973b1a
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Packit Service 973b1a
# It thinks the first close brace ends the variable substitution.
Packit Service 973b1a
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='$(INSTALL)'
Packit Service 973b1a
AC_SUBST(INSTALL_PROGRAM)dnl
Packit Service 973b1a
if test -z "$INSTALL_DATA"; then
Packit Service 973b1a
  case "$INSTALL" in
Packit Service 973b1a
    cp | */cp ) INSTALL_DATA='$(INSTALL)' ;;
Packit Service 973b1a
    * )         INSTALL_DATA='$(INSTALL) -m 644' ;;
Packit Service 973b1a
  esac
Packit Service 973b1a
fi
Packit Service 973b1a
AC_SUBST(INSTALL_DATA)dnl
Packit Service 973b1a
])
Packit Service 973b1a