crossconfig.m4 revision 146897
1132720Skandnl 2132720Skandnl This file contains stuff. 3132720Skandnl 4132720Skan 5132720Skan# Base decisions on target environment. 6132720Skancase "${host}" in 7132720Skan *-darwin*) 8132720Skan # Darwin versions vary, but the linker should work in a cross environment, 9132720Skan # so we just check for all the features here. 10132720Skan # Check for available headers. 11132720Skan AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \ 12132720Skan machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \ 13132720Skan sys/types.h]) 14132720Skan 15132720Skan GLIBCXX_CHECK_COMPILER_FEATURES 16132720Skan # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld 17132720Skan GLIBCXX_CHECK_MATH_SUPPORT 18132720Skan GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT 19132720Skan GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT 20132720Skan GLIBCXX_CHECK_WCHAR_T_SUPPORT 21132720Skan GLIBCXX_CHECK_STDLIB_SUPPORT 22132720Skan 23132720Skan # For showmanyc_helper(). 24132720Skan AC_CHECK_HEADERS(sys/ioctl.h sys/filio.h) 25132720Skan GLIBCXX_CHECK_POLL 26132720Skan GLIBCXX_CHECK_S_ISREG_OR_S_IFREG 27132720Skan 28132720Skan # For xsputn_2(). 29132720Skan AC_CHECK_HEADERS(sys/uio.h) 30132720Skan GLIBCXX_CHECK_WRITEV 31132720Skan 32132720Skan AC_DEFINE(HAVE_LC_MESSAGES) 33132720Skan 34132720Skan AC_TRY_COMPILE( 35132720Skan [#include <setjmp.h>], 36132720Skan [sigjmp_buf env; 37132720Skan while (! sigsetjmp (env, 1)) 38132720Skan siglongjmp (env, 1); 39132720Skan ], 40132720Skan [AC_DEFINE(HAVE_SIGSETJMP, 1, [Define if sigsetjmp is available.])]) 41132720Skan 42132720Skan AC_DEFINE(HAVE_MMAP) 43132720Skan ;; 44132720Skan 45132720Skan *djgpp) 46132720Skan AC_CHECK_HEADERS([float.h ieeefp.h inttypes.h locale.h \ 47132720Skan memory.h stdint.h stdlib.h strings.h string.h unistd.h \ 48132720Skan wchar.h wctype.h machine/endian.h sys/ioctl.h sys/param.h \ 49132720Skan sys/resource.h sys/stat.h sys/time.h sys/types.h sys/uio.h]) 50132720Skan GLIBCXX_CHECK_COMPILER_FEATURES 51132720Skan GLIBCXX_CHECK_LINKER_FEATURES 52132720Skan GLIBCXX_CHECK_MATH_SUPPORT 53132720Skan GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT 54132720Skan GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT 55132720Skan GLIBCXX_CHECK_WCHAR_T_SUPPORT 56132720Skan GLIBCXX_CHECK_STDLIB_SUPPORT 57132720Skan GLIBCXX_CHECK_S_ISREG_OR_S_IFREG 58132720Skan AC_DEFINE(HAVE_WRITEV) 59132720Skan ;; 60132720Skan 61132720Skan *-freebsd*) 62132720Skan AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \ 63132720Skan machine/endian.h machine/param.h sys/machine.h sys/types.h \ 64132720Skan fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \ 65132720Skan sys/time.h unistd.h]) 66132720Skan SECTION_FLAGS='-ffunction-sections -fdata-sections' 67132720Skan AC_SUBST(SECTION_FLAGS) 68132720Skan GLIBCXX_CHECK_LINKER_FEATURES 69132720Skan GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT 70132720Skan GLIBCXX_CHECK_WCHAR_T_SUPPORT 71132720Skan AC_DEFINE(HAVE_LC_MESSAGES) 72132720Skan AC_DEFINE(HAVE_GETPAGESIZE) 73132720Skan AC_DEFINE(HAVE_SETENV) 74132720Skan AC_DEFINE(HAVE_SIGSETJMP) 75132720Skan AC_DEFINE(HAVE_COPYSIGN) 76132720Skan AC_DEFINE(HAVE_COPYSIGNF) 77132720Skan AC_DEFINE(HAVE_FINITEF) 78132720Skan AC_DEFINE(HAVE_FINITE) 79132720Skan AC_DEFINE(HAVE_FREXPF) 80132720Skan AC_DEFINE(HAVE_HYPOT) 81132720Skan AC_DEFINE(HAVE_HYPOTF) 82132720Skan AC_DEFINE(HAVE_ISINF) 83132720Skan AC_DEFINE(HAVE_ISNAN) 84132720Skan AC_DEFINE(HAVE_ISNANF) 85132720Skan 86132720Skan AC_DEFINE(HAVE_MMAP) 87132720Skan AC_DEFINE(HAVE_ACOSF) 88132720Skan AC_DEFINE(HAVE_ASINF) 89132720Skan AC_DEFINE(HAVE_ATAN2F) 90132720Skan AC_DEFINE(HAVE_ATANF) 91132720Skan AC_DEFINE(HAVE_CEILF) 92132720Skan AC_DEFINE(HAVE_COPYSIGN) 93132720Skan AC_DEFINE(HAVE_COPYSIGNF) 94132720Skan AC_DEFINE(HAVE_COSF) 95132720Skan AC_DEFINE(HAVE_COSHF) 96132720Skan AC_DEFINE(HAVE_EXPF) 97132720Skan AC_DEFINE(HAVE_FABSF) 98132720Skan AC_DEFINE(HAVE_FLOORF) 99132720Skan AC_DEFINE(HAVE_FMODF) 100132720Skan AC_DEFINE(HAVE_FREXPF) 101132720Skan AC_DEFINE(HAVE_LDEXPF) 102132720Skan AC_DEFINE(HAVE_LOG10F) 103132720Skan AC_DEFINE(HAVE_LOGF) 104132720Skan AC_DEFINE(HAVE_MODFF) 105132720Skan AC_DEFINE(HAVE_POWF) 106132720Skan AC_DEFINE(HAVE_SINF) 107132720Skan AC_DEFINE(HAVE_SINHF) 108132720Skan AC_DEFINE(HAVE_SQRTF) 109132720Skan AC_DEFINE(HAVE_TANF) 110132720Skan AC_DEFINE(HAVE_TANHF) 111132720Skan if test x"long_double_math_on_this_cpu" = x"yes"; then 112132720Skan AC_DEFINE(HAVE_FINITEL) 113132720Skan AC_DEFINE(HAVE_ISINFL) 114132720Skan AC_DEFINE(HAVE_ISNANL) 115132720Skan fi 116132720Skan ;; 117132720Skan *-hpux*) 118132720Skan AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \ 119132720Skan machine/endian.h machine/param.h sys/machine.h sys/types.h \ 120132720Skan fp.h locale.h float.h inttypes.h]) 121132720Skan SECTION_FLAGS='-ffunction-sections -fdata-sections' 122132720Skan AC_SUBST(SECTION_FLAGS) 123132720Skan GLIBCXX_CHECK_LINKER_FEATURES 124132720Skan GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT 125132720Skan GLIBCXX_CHECK_WCHAR_T_SUPPORT 126132720Skan AC_DEFINE(HAVE_COPYSIGN) 127132720Skan AC_DEFINE(HAVE_COPYSIGNF) 128132720Skan AC_DEFINE(HAVE_FREXPF) 129132720Skan AC_DEFINE(HAVE_HYPOT) 130132720Skan case "$target" in 131132720Skan *-hpux10*) 132132720Skan AC_DEFINE(HAVE_FINITE) 133132720Skan AC_DEFINE(HAVE_FINITEF) 134132720Skan AC_DEFINE(HAVE_ISINF) 135132720Skan AC_DEFINE(HAVE_ISINFF) 136132720Skan AC_DEFINE(HAVE_ISNAN) 137132720Skan AC_DEFINE(HAVE_ISNANF) 138132720Skan ;; 139132720Skan esac 140132720Skan ;; 141132720Skan *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu) 142132720Skan AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \ 143132720Skan machine/endian.h machine/param.h sys/machine.h sys/types.h \ 144132720Skan fp.h float.h endian.h inttypes.h locale.h float.h stdint.h]) 145132720Skan SECTION_FLAGS='-ffunction-sections -fdata-sections' 146132720Skan AC_SUBST(SECTION_FLAGS) 147132720Skan GLIBCXX_CHECK_LINKER_FEATURES 148132720Skan GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT 149132720Skan GLIBCXX_CHECK_WCHAR_T_SUPPORT 150132720Skan 151132720Skan # For LFS. 152132720Skan AC_DEFINE(HAVE_INT64_T) 153132720Skan case "$target" in 154132720Skan *-uclinux*) 155132720Skan # Don't enable LFS with uClibc 156132720Skan ;; 157132720Skan *) 158132720Skan AC_DEFINE(_GLIBCXX_USE_LFS) 159132720Skan esac 160132720Skan 161132720Skan # For showmanyc_helper(). 162132720Skan AC_CHECK_HEADERS(sys/ioctl.h sys/filio.h) 163132720Skan GLIBCXX_CHECK_POLL 164132720Skan GLIBCXX_CHECK_S_ISREG_OR_S_IFREG 165132720Skan 166132720Skan # For xsputn_2(). 167132720Skan AC_CHECK_HEADERS(sys/uio.h) 168132720Skan GLIBCXX_CHECK_WRITEV 169132720Skan 170132720Skan AC_DEFINE(HAVE_ACOSF) 171132720Skan AC_DEFINE(HAVE_ASINF) 172132720Skan AC_DEFINE(HAVE_ATANF) 173132720Skan AC_DEFINE(HAVE_ATAN2F) 174132720Skan AC_DEFINE(HAVE_CEILF) 175132720Skan AC_DEFINE(HAVE_COPYSIGN) 176132720Skan AC_DEFINE(HAVE_COPYSIGNF) 177132720Skan AC_DEFINE(HAVE_COSF) 178132720Skan AC_DEFINE(HAVE_COSHF) 179132720Skan AC_DEFINE(HAVE_EXPF) 180132720Skan AC_DEFINE(HAVE_FABSF) 181132720Skan AC_DEFINE(HAVE_FINITE) 182132720Skan AC_DEFINE(HAVE_FINITEF) 183132720Skan AC_DEFINE(HAVE_FLOORF) 184132720Skan AC_DEFINE(HAVE_FMODF) 185132720Skan AC_DEFINE(HAVE_FREXPF) 186132720Skan AC_DEFINE(HAVE_HYPOT) 187132720Skan AC_DEFINE(HAVE_HYPOTF) 188132720Skan AC_DEFINE(HAVE_ISINF) 189132720Skan AC_DEFINE(HAVE_ISINFF) 190132720Skan AC_DEFINE(HAVE_ISNAN) 191132720Skan AC_DEFINE(HAVE_ISNANF) 192132720Skan AC_DEFINE(HAVE_LOGF) 193132720Skan AC_DEFINE(HAVE_LOG10F) 194132720Skan AC_DEFINE(HAVE_MODFF) 195132720Skan AC_DEFINE(HAVE_SINF) 196132720Skan AC_DEFINE(HAVE_SINHF) 197132720Skan AC_DEFINE(HAVE_SINCOS) 198132720Skan AC_DEFINE(HAVE_SINCOSF) 199132720Skan AC_DEFINE(HAVE_SQRTF) 200132720Skan AC_DEFINE(HAVE_TANF) 201132720Skan AC_DEFINE(HAVE_TANHF) 202132720Skan if test x"long_double_math_on_this_cpu" = x"yes"; then 203132720Skan AC_DEFINE(HAVE_ACOSL) 204132720Skan AC_DEFINE(HAVE_ASINL) 205132720Skan AC_DEFINE(HAVE_ATANL) 206132720Skan AC_DEFINE(HAVE_ATAN2L) 207132720Skan AC_DEFINE(HAVE_CEILL) 208132720Skan AC_DEFINE(HAVE_COPYSIGNL) 209132720Skan AC_DEFINE(HAVE_COSL) 210132720Skan AC_DEFINE(HAVE_COSHL) 211132720Skan AC_DEFINE(HAVE_EXPL) 212132720Skan AC_DEFINE(HAVE_FABSL) 213132720Skan AC_DEFINE(HAVE_FINITEL) 214132720Skan AC_DEFINE(HAVE_FLOORL) 215132720Skan AC_DEFINE(HAVE_FMODL) 216132720Skan AC_DEFINE(HAVE_FREXPL) 217132720Skan AC_DEFINE(HAVE_HYPOTL) 218132720Skan AC_DEFINE(HAVE_ISINFL) 219132720Skan AC_DEFINE(HAVE_ISNANL) 220132720Skan AC_DEFINE(HAVE_LOGL) 221132720Skan AC_DEFINE(HAVE_LOG10L) 222132720Skan AC_DEFINE(HAVE_MODFL) 223132720Skan AC_DEFINE(HAVE_POWL) 224132720Skan AC_DEFINE(HAVE_SINL) 225132720Skan AC_DEFINE(HAVE_SINHL) 226132720Skan AC_DEFINE(HAVE_SINCOSL) 227132720Skan AC_DEFINE(HAVE_SQRTL) 228132720Skan AC_DEFINE(HAVE_TANL) 229132720Skan AC_DEFINE(HAVE_TANHL) 230132720Skan fi 231132720Skan ;; 232132720Skan *-mingw32*) 233132720Skan AC_CHECK_HEADERS([sys/types.h locale.h float.h]) 234132720Skan GLIBCXX_CHECK_LINKER_FEATURES 235132720Skan GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT 236132720Skan GLIBCXX_CHECK_WCHAR_T_SUPPORT 237132720Skan ;; 238132720Skan *-netbsd*) 239132720Skan AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \ 240132720Skan machine/endian.h machine/param.h sys/machine.h sys/types.h \ 241132720Skan fp.h locale.h float.h inttypes.h]) 242132720Skan SECTION_FLAGS='-ffunction-sections -fdata-sections' 243132720Skan AC_SUBST(SECTION_FLAGS) 244132720Skan GLIBCXX_CHECK_LINKER_FEATURES 245132720Skan GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT 246132720Skan GLIBCXX_CHECK_WCHAR_T_SUPPORT 247132720Skan AC_DEFINE(HAVE_COPYSIGN) 248132720Skan AC_DEFINE(HAVE_COPYSIGNF) 249132720Skan AC_DEFINE(HAVE_FINITEF) 250132720Skan AC_DEFINE(HAVE_FINITE) 251132720Skan AC_DEFINE(HAVE_FREXPF) 252132720Skan AC_DEFINE(HAVE_HYPOTF) 253132720Skan AC_DEFINE(HAVE_ISINF) 254132720Skan AC_DEFINE(HAVE_ISINFF) 255132720Skan AC_DEFINE(HAVE_ISNAN) 256132720Skan AC_DEFINE(HAVE_ISNANF) 257132720Skan if test x"long_double_math_on_this_cpu" = x"yes"; then 258132720Skan AC_DEFINE(HAVE_FINITEL) 259132720Skan AC_DEFINE(HAVE_ISINFL) 260132720Skan AC_DEFINE(HAVE_ISNANL) 261132720Skan fi 262132720Skan ;; 263132720Skan *-qnx6.1* | *-qnx6.2*) 264132720Skan SECTION_FLAGS='-ffunction-sections -fdata-sections' 265132720Skan AC_SUBST(SECTION_FLAGS) 266132720Skan GLIBCXX_CHECK_LINKER_FEATURES 267132720Skan GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT 268132720Skan GLIBCXX_CHECK_WCHAR_T_SUPPORT 269132720Skan AC_DEFINE(HAVE_COSF) 270132720Skan AC_DEFINE(HAVE_COSL) 271132720Skan AC_DEFINE(HAVE_COSHF) 272132720Skan AC_DEFINE(HAVE_COSHL) 273132720Skan AC_DEFINE(HAVE_LOGF) 274132720Skan AC_DEFINE(HAVE_LOGL) 275132720Skan AC_DEFINE(HAVE_LOG10F) 276132720Skan AC_DEFINE(HAVE_LOG10L) 277132720Skan AC_DEFINE(HAVE_SINF) 278132720Skan AC_DEFINE(HAVE_SINL) 279132720Skan AC_DEFINE(HAVE_SINHF) 280132720Skan AC_DEFINE(HAVE_SINHL) 281132720Skan ;; 282132720Skan *-solaris*) 283132720Skan case "$target" in 284132720Skan # *-solaris2.5) 285132720Skan # os_include_dir="os/solaris/solaris2.5" 286132720Skan # ;; 287132720Skan # *-solaris2.6) 288132720Skan # os_include_dir="os/solaris/solaris2.6" 289132720Skan # ;; 290132720Skan *-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10) 291132720Skan AC_DEFINE(HAVE_GETPAGESIZE) 292132720Skan AC_DEFINE(HAVE_SIGSETJMP) 293132720Skan AC_DEFINE(HAVE_MBSTATE_T) 294132720Skan AC_DEFINE(HAVE_POLL) 295132720Skan AC_DEFINE(HAVE_S_ISREG) 296132720Skan AC_DEFINE(HAVE_LC_MESSAGES) 297132720Skan AC_DEFINE(HAVE_BTOWC) 298132720Skan AC_DEFINE(HAVE_FGETWC) 299132720Skan AC_DEFINE(HAVE_FGETWS) 300132720Skan AC_DEFINE(HAVE_FINITE) 301132720Skan AC_DEFINE(HAVE_FPCLASS) 302132720Skan AC_DEFINE(HAVE_FPUTWC) 303132720Skan AC_DEFINE(HAVE_FPUTWS) 304132720Skan AC_DEFINE(HAVE_FWIDE) 305132720Skan AC_DEFINE(HAVE_FWPRINTF) 306132720Skan AC_DEFINE(HAVE_FWSCANF) 307132720Skan AC_DEFINE(HAVE_GETPAGESIZE) 308132720Skan AC_DEFINE(HAVE_GETWC) 309132720Skan AC_DEFINE(HAVE_GETWCHAR) 310132720Skan AC_DEFINE(HAVE_MBRLEN) 311132720Skan AC_DEFINE(HAVE_MBRTOWC) 312132720Skan AC_DEFINE(HAVE_MBSINIT) 313132720Skan AC_DEFINE(HAVE_MBSRTOWCS) 314132720Skan AC_DEFINE(HAVE_NL_LANGINFO) 315132720Skan AC_DEFINE(HAVE_PUTWC) 316132720Skan AC_DEFINE(HAVE_PUTWCHAR) 317132720Skan AC_DEFINE(HAVE_SWPRINTF) 318132720Skan AC_DEFINE(HAVE_SWSCANF) 319132720Skan AC_DEFINE(HAVE_UNGETWC) 320132720Skan AC_DEFINE(HAVE_VFWPRINTF) 321132720Skan AC_DEFINE(HAVE_VSWPRINTF) 322132720Skan AC_DEFINE(HAVE_VWPRINTF) 323132720Skan AC_DEFINE(HAVE_WCRTOMB) 324132720Skan AC_DEFINE(HAVE_WCSCAT) 325132720Skan AC_DEFINE(HAVE_WCSCHR) 326132720Skan AC_DEFINE(HAVE_WCSCMP) 327132720Skan AC_DEFINE(HAVE_WCSCOLL) 328132720Skan AC_DEFINE(HAVE_WCSCPY) 329132720Skan AC_DEFINE(HAVE_WCSCSPN) 330132720Skan AC_DEFINE(HAVE_WCSFTIME) 331132720Skan AC_DEFINE(HAVE_WCSLEN) 332132720Skan AC_DEFINE(HAVE_WCSNCAT) 333132720Skan AC_DEFINE(HAVE_WCSNCMP) 334132720Skan AC_DEFINE(HAVE_WCSNCPY) 335132720Skan AC_DEFINE(HAVE_WCSPBRK) 336132720Skan AC_DEFINE(HAVE_WCSRCHR) 337132720Skan AC_DEFINE(HAVE_WCSRTOMBS) 338132720Skan AC_DEFINE(HAVE_WCSSPN) 339132720Skan AC_DEFINE(HAVE_WCSSTR) 340132720Skan AC_DEFINE(HAVE_WCSTOD) 341132720Skan AC_DEFINE(HAVE_WCSTOK) 342132720Skan AC_DEFINE(HAVE_WCSTOL) 343132720Skan AC_DEFINE(HAVE_WCSTOUL) 344132720Skan AC_DEFINE(HAVE_WCSXFRM) 345132720Skan AC_DEFINE(HAVE_WCTOB) 346132720Skan AC_DEFINE(HAVE_WMEMCHR) 347132720Skan AC_DEFINE(HAVE_WMEMCMP) 348132720Skan AC_DEFINE(HAVE_WMEMCPY) 349132720Skan AC_DEFINE(HAVE_WMEMMOVE) 350132720Skan AC_DEFINE(HAVE_WMEMSET) 351132720Skan AC_DEFINE(HAVE_WPRINTF) 352132720Skan AC_DEFINE(HAVE_WSCANF) 353132720Skan AC_DEFINE(HAVE_ICONV) 354132720Skan AC_DEFINE(HAVE_ICONV_CLOSE) 355132720Skan AC_DEFINE(HAVE_ICONV_OPEN) 356132720Skan # Look for the pieces required for wchar_t support in order to 357132720Skan # get all the right HAVE_* macros defined. 358132720Skan GLIBCXX_CHECK_WCHAR_T_SUPPORT 359132720Skan # All of the dependencies for wide character support are here, so 360132720Skan # turn it on. This requires some syncronization with the 361132720Skan # GLIBCXX_CHECK_WCHAR_T_SUPPORT in acinclude.m4 362132720Skan AC_DEFINE(_GLIBCXX_USE_WCHAR_T) 363132720Skan # Are these tested for even when cross? 364132720Skan AC_DEFINE(HAVE_FLOAT_H) 365132720Skan AC_DEFINE(HAVE_IEEEFP_H) 366132720Skan AC_DEFINE(HAVE_INTTYPES_H) 367132720Skan AC_DEFINE(HAVE_LOCALE_H) 368132720Skan AC_DEFINE(HAVE_NAN_H) 369132720Skan AC_DEFINE(HAVE_SYS_FILIO_H) 370132720Skan AC_DEFINE(HAVE_SYS_IOCTL_H) 371132720Skan AC_DEFINE(HAVE_SYS_ISA_DEFS_H) 372132720Skan AC_DEFINE(HAVE_SYS_RESOURCE_H) 373132720Skan AC_DEFINE(HAVE_SYS_TIME_H) 374132720Skan AC_DEFINE(HAVE_SYS_TYPES_H) 375132720Skan AC_DEFINE(HAVE_UNISTD_H) 376132720Skan AC_DEFINE(HAVE_WCHAR_H) 377132720Skan AC_DEFINE(HAVE_WCTYPE_H) 378132720Skan AC_DEFINE(HAVE_LIBM) 379132720Skan ;; 380132720Skan esac 381132720Skan case "$target" in 382132720Skan sparc*-*-solaris2.8 | sparc*-*-solaris2.9 | sparc*-*-solaris2.10) 383132720Skan # I saw these on sparc-sun-solaris2.8, but not 2.6, and not on i386 384132720Skan AC_DEFINE(HAVE___BUILTIN_ABS) 385132720Skan AC_DEFINE(HAVE___BUILTIN_LABS) 386132720Skan AC_DEFINE(HAVE___BUILTIN_FABS) 387132720Skan AC_DEFINE(HAVE___BUILTIN_FABSF) 388132720Skan AC_DEFINE(HAVE___BUILTIN_FABSL) 389132720Skan AC_DEFINE(HAVE___BUILTIN_COS) 390132720Skan AC_DEFINE(HAVE___BUILTIN_COSF) 391132720Skan AC_DEFINE(HAVE___BUILTIN_SIN) 392132720Skan AC_DEFINE(HAVE___BUILTIN_SINF) 393132720Skan ;; 394132720Skan esac 395146897Skan case "$target" in 396146897Skan *-*-solaris2.10) 397146897Skan # These two C99 functions are present only in Solaris >= 10 398146897Skan AC_DEFINE(HAVE_STRTOF) 399146897Skan AC_DEFINE(HAVE_STRTOLD) 400146897Skan ;; 401146897Skan esac 402132720Skan AC_DEFINE(HAVE_MMAP) 403132720Skan AC_DEFINE(HAVE_COPYSIGN) 404132720Skan AC_DEFINE(HAVE_ISNAN) 405132720Skan AC_DEFINE(HAVE_ISNANF) 406132720Skan AC_DEFINE(HAVE_MODFF) 407132720Skan AC_DEFINE(HAVE_HYPOT) 408132720Skan ;; 409132720Skan *-tpf) 410132720Skan AC_CHECK_HEADERS([nan.h endian.h machine/endian.h \ 411132720Skan sys/param.h sys/types.h locale.h float.h inttypes.h]) 412132720Skan SECTION_FLAGS='-ffunction-sections -fdata-sections' 413132720Skan AC_SUBST(SECTION_FLAGS) 414132720Skan GLIBCXX_CHECK_LINKER_FEATURES 415132720Skan GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT 416132720Skan GLIBCXX_CHECK_WCHAR_T_SUPPORT 417132720Skan AC_DEFINE(HAVE_COPYSIGN) 418132720Skan AC_DEFINE(HAVE_COPYSIGNF) 419132720Skan AC_DEFINE(HAVE_FINITE) 420132720Skan AC_DEFINE(HAVE_FINITEF) 421132720Skan AC_DEFINE(HAVE_FREXPF) 422132720Skan AC_DEFINE(HAVE_HYPOTF) 423132720Skan AC_DEFINE(HAVE_ISINF) 424132720Skan AC_DEFINE(HAVE_ISINFF) 425132720Skan AC_DEFINE(HAVE_ISNAN) 426132720Skan AC_DEFINE(HAVE_ISNANF) 427132720Skan AC_DEFINE(HAVE_SINCOS) 428132720Skan AC_DEFINE(HAVE_SINCOSF) 429132720Skan if test x"long_double_math_on_this_cpu" = x"yes"; then 430132720Skan AC_DEFINE(HAVE_FINITEL) 431132720Skan AC_DEFINE(HAVE_HYPOTL) 432132720Skan AC_DEFINE(HAVE_ISINFL) 433132720Skan AC_DEFINE(HAVE_ISNANL) 434132720Skan fi 435132720Skan ;; 436132720Skan *-vxworks) 437132720Skan AC_DEFINE(HAVE_MMAP) 438132720Skan AC_DEFINE(HAVE_ACOSF) 439132720Skan AC_DEFINE(HAVE_ASINF) 440132720Skan AC_DEFINE(HAVE_ATAN2F) 441132720Skan AC_DEFINE(HAVE_ATANF) 442132720Skan AC_DEFINE(HAVE_CEILF) 443132720Skan AC_DEFINE(HAVE_COSF) 444132720Skan AC_DEFINE(HAVE_COSHF) 445132720Skan AC_DEFINE(HAVE_EXPF) 446132720Skan AC_DEFINE(HAVE_FABSF) 447132720Skan AC_DEFINE(HAVE_FLOORF) 448132720Skan AC_DEFINE(HAVE_FMODF) 449132720Skan AC_DEFINE(HAVE_HYPOT) 450132720Skan AC_DEFINE(HAVE_LOG10F) 451132720Skan AC_DEFINE(HAVE_LOGF) 452132720Skan AC_DEFINE(HAVE_POWF) 453132720Skan AC_DEFINE(HAVE_SINF) 454132720Skan AC_DEFINE(HAVE_SINHF) 455132720Skan AC_DEFINE(HAVE_SQRTF) 456132720Skan AC_DEFINE(HAVE_TANF) 457132720Skan AC_DEFINE(HAVE_TANHF) 458132720Skan ;; 459132720Skan *-windiss*) 460132720Skan AC_DEFINE(HAVE_ACOSF) 461132720Skan AC_DEFINE(HAVE_ACOSL) 462132720Skan AC_DEFINE(HAVE_ASINF) 463132720Skan AC_DEFINE(HAVE_ASINL) 464132720Skan AC_DEFINE(HAVE_ATAN2F) 465132720Skan AC_DEFINE(HAVE_ATAN2L) 466132720Skan AC_DEFINE(HAVE_ATANF) 467132720Skan AC_DEFINE(HAVE_ATANL) 468132720Skan AC_DEFINE(HAVE_CEILF) 469132720Skan AC_DEFINE(HAVE_CEILL) 470132720Skan AC_DEFINE(HAVE_COPYSIGN) 471132720Skan AC_DEFINE(HAVE_COPYSIGNF) 472132720Skan AC_DEFINE(HAVE_COSF) 473132720Skan AC_DEFINE(HAVE_COSL) 474132720Skan AC_DEFINE(HAVE_COSHF) 475132720Skan AC_DEFINE(HAVE_COSHL) 476132720Skan AC_DEFINE(HAVE_EXPF) 477132720Skan AC_DEFINE(HAVE_EXPL) 478132720Skan AC_DEFINE(HAVE_FABSF) 479132720Skan AC_DEFINE(HAVE_FABSL) 480132720Skan AC_DEFINE(HAVE_FLOORF) 481132720Skan AC_DEFINE(HAVE_FLOORL) 482132720Skan AC_DEFINE(HAVE_FMODF) 483132720Skan AC_DEFINE(HAVE_FMODL) 484132720Skan AC_DEFINE(HAVE_FREXPF) 485132720Skan AC_DEFINE(HAVE_FREXPL) 486132720Skan AC_DEFINE(HAVE_LDEXPF) 487132720Skan AC_DEFINE(HAVE_LDEXPL) 488132720Skan AC_DEFINE(HAVE_LOG10F) 489132720Skan AC_DEFINE(HAVE_LOG10L) 490132720Skan AC_DEFINE(HAVE_LOGF) 491132720Skan AC_DEFINE(HAVE_MODFF) 492132720Skan AC_DEFINE(HAVE_MODFL) 493132720Skan AC_DEFINE(HAVE_POWF) 494132720Skan AC_DEFINE(HAVE_POWL) 495132720Skan AC_DEFINE(HAVE_SINF) 496132720Skan AC_DEFINE(HAVE_SINL) 497132720Skan AC_DEFINE(HAVE_SINHF) 498132720Skan AC_DEFINE(HAVE_SINHL) 499132720Skan AC_DEFINE(HAVE_SQRTF) 500132720Skan AC_DEFINE(HAVE_SQRTL) 501132720Skan AC_DEFINE(HAVE_TANF) 502132720Skan AC_DEFINE(HAVE_TANL) 503132720Skan AC_DEFINE(HAVE_TANHF) 504132720Skan AC_DEFINE(HAVE_TANHL) 505132720Skan ;; 506132720Skan *) 507132720Skan AC_MSG_ERROR([No support for this host/target combination.]) 508132720Skan ;; 509132720Skanesac 510132720Skan 511