cp.m4 749 B

12345678910111213141516171819202122232425
  1. dnl Copyright (C) 1993-2002 Free Software Foundation, Inc.
  2. dnl This file is free software, distributed under the terms of the GNU
  3. dnl General Public License. As a special exception to the GNU General
  4. dnl Public License, this file may be distributed as part of a program
  5. dnl that contains a configuration script generated by Autoconf, under
  6. dnl the same distribution terms as the rest of that program.
  7. dnl From Bruno Haible, Marcus Daniels.
  8. AC_PREREQ(2.13)
  9. AC_DEFUN([CL_PROG_CP],
  10. [AC_CACHE_CHECK(how to copy files, cl_cv_prog_cp, [
  11. echo "blabla" > conftest.x
  12. err=`/bin/sh -c "cp -p conftest.x conftest.y 2>&1"`
  13. if test -z "$err"; then
  14. cl_cv_prog_cp='cp -p'
  15. else
  16. cl_cv_prog_cp='cp'
  17. fi
  18. rm -f conftest*
  19. ])
  20. CP="$cl_cv_prog_cp"
  21. AC_SUBST(CP)dnl
  22. ])