Fixed bug 3797 - configure check for float.h
authorSam Lantinga <slouken@libsdl.org>
Wed, 06 Sep 2017 01:14:23 -0700
changeset 114573db9f2a42870
parent 11456 14800ea6ff4c
child 11458 ab430a52b113
Fixed bug 3797 - configure check for float.h

Ozkan Sezer

Cmake checks for float.h, but configure does not: the attached patch
adds float.h to checked headers in configury, and it adds the missing
HAVE_FLOAT_H macro to SDL_config.h.cmake and SDL_config.h.in.

In SDL_config_macosx.h and SDL_config_windows.h, defined HAVE_FLOAT_H
as 1, where I know that it's true.
configure
configure.in
include/SDL_config.h.cmake
include/SDL_config.h.in
include/SDL_config_macosx.h
include/SDL_config_windows.h
     1.1 --- a/configure	Wed Sep 06 01:10:10 2017 -0700
     1.2 +++ b/configure	Wed Sep 06 01:14:23 2017 -0700
     1.3 @@ -16169,7 +16169,7 @@
     1.4  
     1.5  fi
     1.6  
     1.7 -    for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
     1.8 +    for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h ctype.h math.h float.h iconv.h signal.h
     1.9  do :
    1.10    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    1.11  ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
     2.1 --- a/configure.in	Wed Sep 06 01:10:10 2017 -0700
     2.2 +++ b/configure.in	Wed Sep 06 01:14:23 2017 -0700
     2.3 @@ -234,7 +234,7 @@
     2.4  
     2.5      dnl Check for C library headers
     2.6      AC_HEADER_STDC
     2.7 -    AC_CHECK_HEADERS(sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h)
     2.8 +    AC_CHECK_HEADERS(sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h ctype.h math.h float.h iconv.h signal.h)
     2.9  
    2.10      dnl Check for typedefs, structures, etc.
    2.11      AC_TYPE_SIZE_T
     3.1 --- a/include/SDL_config.h.cmake	Wed Sep 06 01:10:10 2017 -0700
     3.2 +++ b/include/SDL_config.h.cmake	Wed Sep 06 01:14:23 2017 -0700
     3.3 @@ -78,6 +78,7 @@
     3.4  #cmakedefine HAVE_STDINT_H 1
     3.5  #cmakedefine HAVE_CTYPE_H 1
     3.6  #cmakedefine HAVE_MATH_H 1
     3.7 +#cmakedefine HAVE_FLOAT_H 1
     3.8  #cmakedefine HAVE_ICONV_H 1
     3.9  #cmakedefine HAVE_SIGNAL_H 1
    3.10  #cmakedefine HAVE_ALTIVEC_H 1
     4.1 --- a/include/SDL_config.h.in	Wed Sep 06 01:10:10 2017 -0700
     4.2 +++ b/include/SDL_config.h.in	Wed Sep 06 01:14:23 2017 -0700
     4.3 @@ -78,6 +78,7 @@
     4.4  #undef HAVE_STDINT_H
     4.5  #undef HAVE_CTYPE_H
     4.6  #undef HAVE_MATH_H
     4.7 +#undef HAVE_FLOAT_H
     4.8  #undef HAVE_ICONV_H
     4.9  #undef HAVE_SIGNAL_H
    4.10  #undef HAVE_ALTIVEC_H
     5.1 --- a/include/SDL_config_macosx.h	Wed Sep 06 01:10:10 2017 -0700
     5.2 +++ b/include/SDL_config_macosx.h	Wed Sep 06 01:14:23 2017 -0700
     5.3 @@ -46,6 +46,7 @@
     5.4  #define HAVE_STDINT_H   1
     5.5  #define HAVE_CTYPE_H    1
     5.6  #define HAVE_MATH_H 1
     5.7 +#define HAVE_FLOAT_H    1
     5.8  #define HAVE_SIGNAL_H   1
     5.9  
    5.10  /* C library functions */
     6.1 --- a/include/SDL_config_windows.h	Wed Sep 06 01:10:10 2017 -0700
     6.2 +++ b/include/SDL_config_windows.h	Wed Sep 06 01:14:23 2017 -0700
     6.3 @@ -91,6 +91,7 @@
     6.4  #define HAVE_STRING_H 1
     6.5  #define HAVE_CTYPE_H 1
     6.6  #define HAVE_MATH_H 1
     6.7 +#define HAVE_FLOAT_H 1
     6.8  #define HAVE_SIGNAL_H 1
     6.9  
    6.10  /* C library functions */