1# make-case.m4 serial 1 2 3# Copyright (C) 2008-2012 Free Software Foundation, Inc. 4 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. 9 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. 14# 15AC_DEFUN([AC_PROG_MAKE_CASE_SENSITIVE], 16[AC_REQUIRE([AC_PROG_MAKE_SET])dnl 17AC_CACHE_CHECK([whether ${MAKE-make} is case sensitive], 18[ac_cv_prog_make_${ac_make}_case], 19[echo all: >conftest.make 20if ${MAKE-make} -f conftest.make ALL >/dev/null 2>&1; then 21 ac_res=no 22else 23 ac_res=yes 24fi 25eval ac_cv_prog_make_${ac_make}_case=$ac_res 26rm -f conftest.make]) 27AM_CONDITIONAL([MAKE_CASE_SENSITIVE], 28 [eval test \$ac_cv_prog_make_${ac_make}_case = yes]) 29]) 30