fixed leaking file descriptors (spritetool)
[swftools.git] / m4 / lowercase.m4
1 AC_DEFUN([RFX_CHECK_LOWERCASE_UPPERCASE],
2 [
3 AC_MSG_CHECKING([whether the filesystem normalizes file names])
4
5 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
6 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
7 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
8     AC_MSG_RESULT(yes)
9     AC_DEFINE([LOWERCASE_UPPERCASE], [1], [Define if the file system is case invariant])
10 else
11     AC_MSG_RESULT(no)
12 fi
13
14 rm -f __abcdefghijklmnopqrstuvwxyz.txt
15 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
16 ])
17