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