Balance parentheses in _AC_CACHE_DUMP.
[autoconf.git] / m4 / make-case.m4
blobb23ccf976a0a24beb2fa12c7a8f33355e3f98433
1 # make-case.m4 serial 0
2 dnl Copyright (C) 2008 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
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.
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
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])