diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2007-05-09 19:40:04 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2007-05-09 19:40:04 +0000 |
| commit | ee1d3823a0e6c1d62554311341dc01cc002b5a1a (patch) | |
| tree | f5fdc482256b6eb458f90c9ed566208f84af6054 /configure.in | |
| parent | 8ff61aeef7ab6e4100c739ec881a5011e650879b (diff) | |
Modified 'configure.in' to overcome the Cygwin bug of adding a ^M to the output of the 'sizeof' test code. From all I read, the notation seems to be shell scripting standard and should be available everywhere.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 26aa58b3a..70a17d1f9 100644 --- a/configure.in +++ b/configure.in @@ -312,20 +312,20 @@ AC_C_BIGENDIAN AC_CHECK_SIZEOF(short, 2) AC_CHECK_SIZEOF(int, 4) AC_CHECK_SIZEOF(long, 4) -if test $ac_cv_sizeof_short -eq 2; then +if test ${ac_cv_sizeof_short:0:1} -eq 2; then AC_DEFINE(U16,unsigned short) fi -if test $ac_cv_sizeof_int -eq 4; then +if test ${ac_cv_sizeof_int:0:1} -eq 4; then AC_DEFINE(U32,unsigned) else - if test $ac_cv_sizeof_long -eq 4; then + if test ${ac_cv_sizeof_long:0:1} -eq 4; then AC_DEFINE(U32,unsigned long) fi fi -if test $ac_cv_sizeof_int -eq 8; then +if test ${ac_cv_sizeof_int:0:1} -eq 8; then AC_DEFINE(U64,unsigned) else - if test $ac_cv_sizeof_long -eq 8; then + if test ${ac_cv_sizeof_long:0:1} -eq 8; then AC_DEFINE(U64,unsigned long) fi fi |
