make-case.m4 936 B

1234567891011121314151617181920212223242526272829
  1. # make-case.m4 serial 1
  2. # Copyright (C) 2008-2012 Free Software Foundation, Inc.
  3. # Copying and distribution of this file, with or without modification,
  4. # are permitted in any medium without royalty provided the notice and
  5. # this notice are preserved. This file is offered as-is, without
  6. # warranty of any kind.
  7. # AC_PROG_MAKE_CASE_SENSITIVE
  8. # ---------------------------
  9. # Checks whether make is configured to be case insensitive; if yes,
  10. # sets AM_CONDITIONAL MAKE_CASE_SENSITIVE.
  11. #
  12. AC_DEFUN([AC_PROG_MAKE_CASE_SENSITIVE],
  13. [AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  14. AC_CACHE_CHECK([whether ${MAKE-make} is case sensitive],
  15. [ac_cv_prog_make_${ac_make}_case],
  16. [echo all: >conftest.make
  17. if ${MAKE-make} -f conftest.make ALL >/dev/null 2>&1; then
  18. ac_res=no
  19. else
  20. ac_res=yes
  21. fi
  22. eval ac_cv_prog_make_${ac_make}_case=$ac_res
  23. rm -f conftest.make])
  24. AM_CONDITIONAL([MAKE_CASE_SENSITIVE],
  25. [eval test \$ac_cv_prog_make_${ac_make}_case = yes])
  26. ])