diff options
| author | Paul Eggert | 2011-02-20 00:48:52 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-20 00:48:52 -0800 |
| commit | 61353ac8cdbdda53d75f5ab9aa7f0b637aee5a00 (patch) | |
| tree | 2cfc088246ad9c97eea1ba1c7a1b7e5af64bea2d /configure | |
| parent | 01baa1e6f227a87530f65b7e45049968a1afc12a (diff) | |
| parent | ff05203ec64be4e2148ca607d4f7e04375426916 (diff) | |
| download | emacs-61353ac8cdbdda53d75f5ab9aa7f0b637aee5a00.tar.gz emacs-61353ac8cdbdda53d75f5ab9aa7f0b637aee5a00.zip | |
Merge: Import crypto/md5 and stdint modules from gnulib.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 1359 |
1 files changed, 1317 insertions, 42 deletions
| @@ -679,6 +679,30 @@ NEXT_AS_FIRST_DIRECTIVE_TIME_H | |||
| 679 | NEXT_TIME_H | 679 | NEXT_TIME_H |
| 680 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H | 680 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H |
| 681 | NEXT_STDLIB_H | 681 | NEXT_STDLIB_H |
| 682 | STDINT_H | ||
| 683 | WINT_T_SUFFIX | ||
| 684 | WCHAR_T_SUFFIX | ||
| 685 | SIG_ATOMIC_T_SUFFIX | ||
| 686 | SIZE_T_SUFFIX | ||
| 687 | PTRDIFF_T_SUFFIX | ||
| 688 | HAVE_SIGNED_WINT_T | ||
| 689 | HAVE_SIGNED_WCHAR_T | ||
| 690 | HAVE_SIGNED_SIG_ATOMIC_T | ||
| 691 | BITSIZEOF_WINT_T | ||
| 692 | BITSIZEOF_WCHAR_T | ||
| 693 | BITSIZEOF_SIG_ATOMIC_T | ||
| 694 | BITSIZEOF_SIZE_T | ||
| 695 | BITSIZEOF_PTRDIFF_T | ||
| 696 | HAVE_SYS_BITYPES_H | ||
| 697 | HAVE_SYS_INTTYPES_H | ||
| 698 | HAVE_STDINT_H | ||
| 699 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H | ||
| 700 | NEXT_STDINT_H | ||
| 701 | HAVE_SYS_TYPES_H | ||
| 702 | HAVE_INTTYPES_H | ||
| 703 | HAVE_WCHAR_H | ||
| 704 | HAVE_UNSIGNED_LONG_LONG_INT | ||
| 705 | HAVE_LONG_LONG_INT | ||
| 682 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H | 706 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H |
| 683 | NEXT_STDDEF_H | 707 | NEXT_STDDEF_H |
| 684 | STDDEF_H | 708 | STDDEF_H |
| @@ -2431,6 +2455,184 @@ $as_echo "$ac_res" >&6; } | |||
| 2431 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 2455 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2432 | 2456 | ||
| 2433 | } # ac_fn_c_check_type | 2457 | } # ac_fn_c_check_type |
| 2458 | |||
| 2459 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | ||
| 2460 | # -------------------------------------------- | ||
| 2461 | # Tries to find the compile-time value of EXPR in a program that includes | ||
| 2462 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||
| 2463 | # computed | ||
| 2464 | ac_fn_c_compute_int () | ||
| 2465 | { | ||
| 2466 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 2467 | if test "$cross_compiling" = yes; then | ||
| 2468 | # Depending upon the size, compute the lo and hi bounds. | ||
| 2469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2470 | /* end confdefs.h. */ | ||
| 2471 | $4 | ||
| 2472 | int | ||
| 2473 | main () | ||
| 2474 | { | ||
| 2475 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||
| 2476 | test_array [0] = 0 | ||
| 2477 | |||
| 2478 | ; | ||
| 2479 | return 0; | ||
| 2480 | } | ||
| 2481 | _ACEOF | ||
| 2482 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2483 | ac_lo=0 ac_mid=0 | ||
| 2484 | while :; do | ||
| 2485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2486 | /* end confdefs.h. */ | ||
| 2487 | $4 | ||
| 2488 | int | ||
| 2489 | main () | ||
| 2490 | { | ||
| 2491 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
| 2492 | test_array [0] = 0 | ||
| 2493 | |||
| 2494 | ; | ||
| 2495 | return 0; | ||
| 2496 | } | ||
| 2497 | _ACEOF | ||
| 2498 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2499 | ac_hi=$ac_mid; break | ||
| 2500 | else | ||
| 2501 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||
| 2502 | if test $ac_lo -le $ac_mid; then | ||
| 2503 | ac_lo= ac_hi= | ||
| 2504 | break | ||
| 2505 | fi | ||
| 2506 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||
| 2507 | fi | ||
| 2508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2509 | done | ||
| 2510 | else | ||
| 2511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2512 | /* end confdefs.h. */ | ||
| 2513 | $4 | ||
| 2514 | int | ||
| 2515 | main () | ||
| 2516 | { | ||
| 2517 | static int test_array [1 - 2 * !(($2) < 0)]; | ||
| 2518 | test_array [0] = 0 | ||
| 2519 | |||
| 2520 | ; | ||
| 2521 | return 0; | ||
| 2522 | } | ||
| 2523 | _ACEOF | ||
| 2524 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2525 | ac_hi=-1 ac_mid=-1 | ||
| 2526 | while :; do | ||
| 2527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2528 | /* end confdefs.h. */ | ||
| 2529 | $4 | ||
| 2530 | int | ||
| 2531 | main () | ||
| 2532 | { | ||
| 2533 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||
| 2534 | test_array [0] = 0 | ||
| 2535 | |||
| 2536 | ; | ||
| 2537 | return 0; | ||
| 2538 | } | ||
| 2539 | _ACEOF | ||
| 2540 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2541 | ac_lo=$ac_mid; break | ||
| 2542 | else | ||
| 2543 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||
| 2544 | if test $ac_mid -le $ac_hi; then | ||
| 2545 | ac_lo= ac_hi= | ||
| 2546 | break | ||
| 2547 | fi | ||
| 2548 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||
| 2549 | fi | ||
| 2550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2551 | done | ||
| 2552 | else | ||
| 2553 | ac_lo= ac_hi= | ||
| 2554 | fi | ||
| 2555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2556 | fi | ||
| 2557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2558 | # Binary search between lo and hi bounds. | ||
| 2559 | while test "x$ac_lo" != "x$ac_hi"; do | ||
| 2560 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||
| 2561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2562 | /* end confdefs.h. */ | ||
| 2563 | $4 | ||
| 2564 | int | ||
| 2565 | main () | ||
| 2566 | { | ||
| 2567 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
| 2568 | test_array [0] = 0 | ||
| 2569 | |||
| 2570 | ; | ||
| 2571 | return 0; | ||
| 2572 | } | ||
| 2573 | _ACEOF | ||
| 2574 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2575 | ac_hi=$ac_mid | ||
| 2576 | else | ||
| 2577 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||
| 2578 | fi | ||
| 2579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2580 | done | ||
| 2581 | case $ac_lo in #(( | ||
| 2582 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||
| 2583 | '') ac_retval=1 ;; | ||
| 2584 | esac | ||
| 2585 | else | ||
| 2586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2587 | /* end confdefs.h. */ | ||
| 2588 | $4 | ||
| 2589 | static long int longval () { return $2; } | ||
| 2590 | static unsigned long int ulongval () { return $2; } | ||
| 2591 | #include <stdio.h> | ||
| 2592 | #include <stdlib.h> | ||
| 2593 | int | ||
| 2594 | main () | ||
| 2595 | { | ||
| 2596 | |||
| 2597 | FILE *f = fopen ("conftest.val", "w"); | ||
| 2598 | if (! f) | ||
| 2599 | return 1; | ||
| 2600 | if (($2) < 0) | ||
| 2601 | { | ||
| 2602 | long int i = longval (); | ||
| 2603 | if (i != ($2)) | ||
| 2604 | return 1; | ||
| 2605 | fprintf (f, "%ld", i); | ||
| 2606 | } | ||
| 2607 | else | ||
| 2608 | { | ||
| 2609 | unsigned long int i = ulongval (); | ||
| 2610 | if (i != ($2)) | ||
| 2611 | return 1; | ||
| 2612 | fprintf (f, "%lu", i); | ||
| 2613 | } | ||
| 2614 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
| 2615 | on some platforms. */ | ||
| 2616 | return ferror (f) || fclose (f) != 0; | ||
| 2617 | |||
| 2618 | ; | ||
| 2619 | return 0; | ||
| 2620 | } | ||
| 2621 | _ACEOF | ||
| 2622 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 2623 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||
| 2624 | else | ||
| 2625 | ac_retval=1 | ||
| 2626 | fi | ||
| 2627 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 2628 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 2629 | rm -f conftest.val | ||
| 2630 | |||
| 2631 | fi | ||
| 2632 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
| 2633 | as_fn_set_status $ac_retval | ||
| 2634 | |||
| 2635 | } # ac_fn_c_compute_int | ||
| 2434 | cat >config.log <<_ACEOF | 2636 | cat >config.log <<_ACEOF |
| 2435 | This file contains any messages produced by compilers while | 2637 | This file contains any messages produced by compilers while |
| 2436 | running configure, to aid debugging if configure makes a mistake. | 2638 | running configure, to aid debugging if configure makes a mistake. |
| @@ -2721,6 +2923,8 @@ as_fn_append ac_header_list " sys/param.h" | |||
| 2721 | gl_getopt_required=GNU | 2923 | gl_getopt_required=GNU |
| 2722 | as_fn_append ac_header_list " getopt.h" | 2924 | as_fn_append ac_header_list " getopt.h" |
| 2723 | as_fn_append ac_func_list " alarm" | 2925 | as_fn_append ac_func_list " alarm" |
| 2926 | as_fn_append ac_header_list " wchar.h" | ||
| 2927 | as_fn_append ac_header_list " stdint.h" | ||
| 2724 | as_fn_append ac_func_list " tzset" | 2928 | as_fn_append ac_func_list " tzset" |
| 2725 | as_fn_append ac_header_list " sys/time.h" | 2929 | as_fn_append ac_header_list " sys/time.h" |
| 2726 | as_fn_append ac_func_list " localtime_r" | 2930 | as_fn_append ac_func_list " localtime_r" |
| @@ -5881,6 +6085,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |||
| 5881 | 6085 | ||
| 5882 | # Code from module arg-nonnull: | 6086 | # Code from module arg-nonnull: |
| 5883 | # Code from module c++defs: | 6087 | # Code from module c++defs: |
| 6088 | # Code from module crypto/md5: | ||
| 5884 | # Code from module dtoastr: | 6089 | # Code from module dtoastr: |
| 5885 | # Code from module extensions: | 6090 | # Code from module extensions: |
| 5886 | 6091 | ||
| @@ -5895,6 +6100,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |||
| 5895 | # Code from module multiarch: | 6100 | # Code from module multiarch: |
| 5896 | # Code from module stdbool: | 6101 | # Code from module stdbool: |
| 5897 | # Code from module stddef: | 6102 | # Code from module stddef: |
| 6103 | # Code from module stdint: | ||
| 5898 | # Code from module stdlib: | 6104 | # Code from module stdlib: |
| 5899 | # Code from module strftime: | 6105 | # Code from module strftime: |
| 5900 | # Code from module time: | 6106 | # Code from module time: |
| @@ -13201,6 +13407,274 @@ fi | |||
| 13201 | export LIBC_FATAL_STDERR_ | 13407 | export LIBC_FATAL_STDERR_ |
| 13202 | 13408 | ||
| 13203 | 13409 | ||
| 13410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
| 13411 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
| 13412 | if ${ac_cv_c_bigendian+:} false; then : | ||
| 13413 | $as_echo_n "(cached) " >&6 | ||
| 13414 | else | ||
| 13415 | ac_cv_c_bigendian=unknown | ||
| 13416 | # See if we're dealing with a universal compiler. | ||
| 13417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13418 | /* end confdefs.h. */ | ||
| 13419 | #ifndef __APPLE_CC__ | ||
| 13420 | not a universal capable compiler | ||
| 13421 | #endif | ||
| 13422 | typedef int dummy; | ||
| 13423 | |||
| 13424 | _ACEOF | ||
| 13425 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13426 | |||
| 13427 | # Check for potential -arch flags. It is not universal unless | ||
| 13428 | # there are at least two -arch flags with different values. | ||
| 13429 | ac_arch= | ||
| 13430 | ac_prev= | ||
| 13431 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
| 13432 | if test -n "$ac_prev"; then | ||
| 13433 | case $ac_word in | ||
| 13434 | i?86 | x86_64 | ppc | ppc64) | ||
| 13435 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
| 13436 | ac_arch=$ac_word | ||
| 13437 | else | ||
| 13438 | ac_cv_c_bigendian=universal | ||
| 13439 | break | ||
| 13440 | fi | ||
| 13441 | ;; | ||
| 13442 | esac | ||
| 13443 | ac_prev= | ||
| 13444 | elif test "x$ac_word" = "x-arch"; then | ||
| 13445 | ac_prev=arch | ||
| 13446 | fi | ||
| 13447 | done | ||
| 13448 | fi | ||
| 13449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13450 | if test $ac_cv_c_bigendian = unknown; then | ||
| 13451 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
| 13452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13453 | /* end confdefs.h. */ | ||
| 13454 | #include <sys/types.h> | ||
| 13455 | #include <sys/param.h> | ||
| 13456 | |||
| 13457 | int | ||
| 13458 | main () | ||
| 13459 | { | ||
| 13460 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
| 13461 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
| 13462 | && LITTLE_ENDIAN) | ||
| 13463 | bogus endian macros | ||
| 13464 | #endif | ||
| 13465 | |||
| 13466 | ; | ||
| 13467 | return 0; | ||
| 13468 | } | ||
| 13469 | _ACEOF | ||
| 13470 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13471 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
| 13472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13473 | /* end confdefs.h. */ | ||
| 13474 | #include <sys/types.h> | ||
| 13475 | #include <sys/param.h> | ||
| 13476 | |||
| 13477 | int | ||
| 13478 | main () | ||
| 13479 | { | ||
| 13480 | #if BYTE_ORDER != BIG_ENDIAN | ||
| 13481 | not big endian | ||
| 13482 | #endif | ||
| 13483 | |||
| 13484 | ; | ||
| 13485 | return 0; | ||
| 13486 | } | ||
| 13487 | _ACEOF | ||
| 13488 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13489 | ac_cv_c_bigendian=yes | ||
| 13490 | else | ||
| 13491 | ac_cv_c_bigendian=no | ||
| 13492 | fi | ||
| 13493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13494 | fi | ||
| 13495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13496 | fi | ||
| 13497 | if test $ac_cv_c_bigendian = unknown; then | ||
| 13498 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
| 13499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13500 | /* end confdefs.h. */ | ||
| 13501 | #include <limits.h> | ||
| 13502 | |||
| 13503 | int | ||
| 13504 | main () | ||
| 13505 | { | ||
| 13506 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
| 13507 | bogus endian macros | ||
| 13508 | #endif | ||
| 13509 | |||
| 13510 | ; | ||
| 13511 | return 0; | ||
| 13512 | } | ||
| 13513 | _ACEOF | ||
| 13514 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13515 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
| 13516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13517 | /* end confdefs.h. */ | ||
| 13518 | #include <limits.h> | ||
| 13519 | |||
| 13520 | int | ||
| 13521 | main () | ||
| 13522 | { | ||
| 13523 | #ifndef _BIG_ENDIAN | ||
| 13524 | not big endian | ||
| 13525 | #endif | ||
| 13526 | |||
| 13527 | ; | ||
| 13528 | return 0; | ||
| 13529 | } | ||
| 13530 | _ACEOF | ||
| 13531 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13532 | ac_cv_c_bigendian=yes | ||
| 13533 | else | ||
| 13534 | ac_cv_c_bigendian=no | ||
| 13535 | fi | ||
| 13536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13537 | fi | ||
| 13538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13539 | fi | ||
| 13540 | if test $ac_cv_c_bigendian = unknown; then | ||
| 13541 | # Compile a test program. | ||
| 13542 | if test "$cross_compiling" = yes; then : | ||
| 13543 | # Try to guess by grepping values from an object file. | ||
| 13544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13545 | /* end confdefs.h. */ | ||
| 13546 | short int ascii_mm[] = | ||
| 13547 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
| 13548 | short int ascii_ii[] = | ||
| 13549 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
| 13550 | int use_ascii (int i) { | ||
| 13551 | return ascii_mm[i] + ascii_ii[i]; | ||
| 13552 | } | ||
| 13553 | short int ebcdic_ii[] = | ||
| 13554 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
| 13555 | short int ebcdic_mm[] = | ||
| 13556 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
| 13557 | int use_ebcdic (int i) { | ||
| 13558 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
| 13559 | } | ||
| 13560 | extern int foo; | ||
| 13561 | |||
| 13562 | int | ||
| 13563 | main () | ||
| 13564 | { | ||
| 13565 | return use_ascii (foo) == use_ebcdic (foo); | ||
| 13566 | ; | ||
| 13567 | return 0; | ||
| 13568 | } | ||
| 13569 | _ACEOF | ||
| 13570 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13571 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
| 13572 | ac_cv_c_bigendian=yes | ||
| 13573 | fi | ||
| 13574 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
| 13575 | if test "$ac_cv_c_bigendian" = unknown; then | ||
| 13576 | ac_cv_c_bigendian=no | ||
| 13577 | else | ||
| 13578 | # finding both strings is unlikely to happen, but who knows? | ||
| 13579 | ac_cv_c_bigendian=unknown | ||
| 13580 | fi | ||
| 13581 | fi | ||
| 13582 | fi | ||
| 13583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13584 | else | ||
| 13585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13586 | /* end confdefs.h. */ | ||
| 13587 | $ac_includes_default | ||
| 13588 | int | ||
| 13589 | main () | ||
| 13590 | { | ||
| 13591 | |||
| 13592 | /* Are we little or big endian? From Harbison&Steele. */ | ||
| 13593 | union | ||
| 13594 | { | ||
| 13595 | long int l; | ||
| 13596 | char c[sizeof (long int)]; | ||
| 13597 | } u; | ||
| 13598 | u.l = 1; | ||
| 13599 | return u.c[sizeof (long int) - 1] == 1; | ||
| 13600 | |||
| 13601 | ; | ||
| 13602 | return 0; | ||
| 13603 | } | ||
| 13604 | _ACEOF | ||
| 13605 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 13606 | ac_cv_c_bigendian=no | ||
| 13607 | else | ||
| 13608 | ac_cv_c_bigendian=yes | ||
| 13609 | fi | ||
| 13610 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 13611 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 13612 | fi | ||
| 13613 | |||
| 13614 | fi | ||
| 13615 | fi | ||
| 13616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
| 13617 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
| 13618 | case $ac_cv_c_bigendian in #( | ||
| 13619 | yes) | ||
| 13620 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
| 13621 | ;; #( | ||
| 13622 | no) | ||
| 13623 | ;; #( | ||
| 13624 | universal) | ||
| 13625 | |||
| 13626 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
| 13627 | |||
| 13628 | ;; #( | ||
| 13629 | *) | ||
| 13630 | as_fn_error $? "unknown endianness | ||
| 13631 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
| 13632 | esac | ||
| 13633 | |||
| 13634 | |||
| 13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
| 13636 | $as_echo_n "checking for inline... " >&6; } | ||
| 13637 | if ${ac_cv_c_inline+:} false; then : | ||
| 13638 | $as_echo_n "(cached) " >&6 | ||
| 13639 | else | ||
| 13640 | ac_cv_c_inline=no | ||
| 13641 | for ac_kw in inline __inline__ __inline; do | ||
| 13642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13643 | /* end confdefs.h. */ | ||
| 13644 | #ifndef __cplusplus | ||
| 13645 | typedef int foo_t; | ||
| 13646 | static $ac_kw foo_t static_foo () {return 0; } | ||
| 13647 | $ac_kw foo_t foo () {return 0; } | ||
| 13648 | #endif | ||
| 13649 | |||
| 13650 | _ACEOF | ||
| 13651 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13652 | ac_cv_c_inline=$ac_kw | ||
| 13653 | fi | ||
| 13654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13655 | test "$ac_cv_c_inline" != no && break | ||
| 13656 | done | ||
| 13657 | |||
| 13658 | fi | ||
| 13659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
| 13660 | $as_echo "$ac_cv_c_inline" >&6; } | ||
| 13661 | |||
| 13662 | case $ac_cv_c_inline in | ||
| 13663 | inline | yes) ;; | ||
| 13664 | *) | ||
| 13665 | case $ac_cv_c_inline in | ||
| 13666 | no) ac_val=;; | ||
| 13667 | *) ac_val=$ac_cv_c_inline;; | ||
| 13668 | esac | ||
| 13669 | cat >>confdefs.h <<_ACEOF | ||
| 13670 | #ifndef __cplusplus | ||
| 13671 | #define inline $ac_val | ||
| 13672 | #endif | ||
| 13673 | _ACEOF | ||
| 13674 | ;; | ||
| 13675 | esac | ||
| 13676 | |||
| 13677 | |||
| 13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5 | 13678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5 |
| 13205 | $as_echo_n "checking whether strtold conforms to C99... " >&6; } | 13679 | $as_echo_n "checking whether strtold conforms to C99... " >&6; } |
| 13206 | if ${gl_cv_func_c99_strtold+:} false; then : | 13680 | if ${gl_cv_func_c99_strtold+:} false; then : |
| @@ -13964,48 +14438,6 @@ $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h | |||
| 13964 | fi | 14438 | fi |
| 13965 | 14439 | ||
| 13966 | 14440 | ||
| 13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
| 13968 | $as_echo_n "checking for inline... " >&6; } | ||
| 13969 | if ${ac_cv_c_inline+:} false; then : | ||
| 13970 | $as_echo_n "(cached) " >&6 | ||
| 13971 | else | ||
| 13972 | ac_cv_c_inline=no | ||
| 13973 | for ac_kw in inline __inline__ __inline; do | ||
| 13974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13975 | /* end confdefs.h. */ | ||
| 13976 | #ifndef __cplusplus | ||
| 13977 | typedef int foo_t; | ||
| 13978 | static $ac_kw foo_t static_foo () {return 0; } | ||
| 13979 | $ac_kw foo_t foo () {return 0; } | ||
| 13980 | #endif | ||
| 13981 | |||
| 13982 | _ACEOF | ||
| 13983 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13984 | ac_cv_c_inline=$ac_kw | ||
| 13985 | fi | ||
| 13986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13987 | test "$ac_cv_c_inline" != no && break | ||
| 13988 | done | ||
| 13989 | |||
| 13990 | fi | ||
| 13991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
| 13992 | $as_echo "$ac_cv_c_inline" >&6; } | ||
| 13993 | |||
| 13994 | case $ac_cv_c_inline in | ||
| 13995 | inline | yes) ;; | ||
| 13996 | *) | ||
| 13997 | case $ac_cv_c_inline in | ||
| 13998 | no) ac_val=;; | ||
| 13999 | *) ac_val=$ac_cv_c_inline;; | ||
| 14000 | esac | ||
| 14001 | cat >>confdefs.h <<_ACEOF | ||
| 14002 | #ifndef __cplusplus | ||
| 14003 | #define inline $ac_val | ||
| 14004 | #endif | ||
| 14005 | _ACEOF | ||
| 14006 | ;; | ||
| 14007 | esac | ||
| 14008 | |||
| 14009 | 14441 | ||
| 14010 | GNULIB_MKTIME=0; | 14442 | GNULIB_MKTIME=0; |
| 14011 | GNULIB_NANOSLEEP=0; | 14443 | GNULIB_NANOSLEEP=0; |
| @@ -14206,6 +14638,127 @@ $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h | |||
| 14206 | fi | 14638 | fi |
| 14207 | 14639 | ||
| 14208 | 14640 | ||
| 14641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 | ||
| 14642 | $as_echo_n "checking for unsigned long long int... " >&6; } | ||
| 14643 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : | ||
| 14644 | $as_echo_n "(cached) " >&6 | ||
| 14645 | else | ||
| 14646 | ac_cv_type_unsigned_long_long_int=yes | ||
| 14647 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then | ||
| 14648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14649 | /* end confdefs.h. */ | ||
| 14650 | |||
| 14651 | /* For now, do not test the preprocessor; as of 2007 there are too many | ||
| 14652 | implementations with broken preprocessors. Perhaps this can | ||
| 14653 | be revisited in 2012. In the meantime, code should not expect | ||
| 14654 | #if to work with literals wider than 32 bits. */ | ||
| 14655 | /* Test literals. */ | ||
| 14656 | long long int ll = 9223372036854775807ll; | ||
| 14657 | long long int nll = -9223372036854775807LL; | ||
| 14658 | unsigned long long int ull = 18446744073709551615ULL; | ||
| 14659 | /* Test constant expressions. */ | ||
| 14660 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | ||
| 14661 | ? 1 : -1)]; | ||
| 14662 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | ||
| 14663 | ? 1 : -1)]; | ||
| 14664 | int i = 63; | ||
| 14665 | int | ||
| 14666 | main () | ||
| 14667 | { | ||
| 14668 | /* Test availability of runtime routines for shift and division. */ | ||
| 14669 | long long int llmax = 9223372036854775807ll; | ||
| 14670 | unsigned long long int ullmax = 18446744073709551615ull; | ||
| 14671 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | ||
| 14672 | | (llmax / ll) | (llmax % ll) | ||
| 14673 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | ||
| 14674 | | (ullmax / ull) | (ullmax % ull)); | ||
| 14675 | ; | ||
| 14676 | return 0; | ||
| 14677 | } | ||
| 14678 | |||
| 14679 | _ACEOF | ||
| 14680 | if ac_fn_c_try_link "$LINENO"; then : | ||
| 14681 | |||
| 14682 | else | ||
| 14683 | ac_cv_type_unsigned_long_long_int=no | ||
| 14684 | fi | ||
| 14685 | rm -f core conftest.err conftest.$ac_objext \ | ||
| 14686 | conftest$ac_exeext conftest.$ac_ext | ||
| 14687 | fi | ||
| 14688 | fi | ||
| 14689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 | ||
| 14690 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } | ||
| 14691 | if test $ac_cv_type_unsigned_long_long_int = yes; then | ||
| 14692 | |||
| 14693 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h | ||
| 14694 | |||
| 14695 | fi | ||
| 14696 | |||
| 14697 | |||
| 14698 | |||
| 14699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 | ||
| 14700 | $as_echo_n "checking for long long int... " >&6; } | ||
| 14701 | if ${ac_cv_type_long_long_int+:} false; then : | ||
| 14702 | $as_echo_n "(cached) " >&6 | ||
| 14703 | else | ||
| 14704 | ac_cv_type_long_long_int=yes | ||
| 14705 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then | ||
| 14706 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int | ||
| 14707 | if test $ac_cv_type_long_long_int = yes; then | ||
| 14708 | if test "$cross_compiling" = yes; then : | ||
| 14709 | : | ||
| 14710 | else | ||
| 14711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14712 | /* end confdefs.h. */ | ||
| 14713 | #include <limits.h> | ||
| 14714 | #ifndef LLONG_MAX | ||
| 14715 | # define HALF \ | ||
| 14716 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) | ||
| 14717 | # define LLONG_MAX (HALF - 1 + HALF) | ||
| 14718 | #endif | ||
| 14719 | int | ||
| 14720 | main () | ||
| 14721 | { | ||
| 14722 | long long int n = 1; | ||
| 14723 | int i; | ||
| 14724 | for (i = 0; ; i++) | ||
| 14725 | { | ||
| 14726 | long long int m = n << i; | ||
| 14727 | if (m >> i != n) | ||
| 14728 | return 1; | ||
| 14729 | if (LLONG_MAX / 2 < m) | ||
| 14730 | break; | ||
| 14731 | } | ||
| 14732 | return 0; | ||
| 14733 | ; | ||
| 14734 | return 0; | ||
| 14735 | } | ||
| 14736 | _ACEOF | ||
| 14737 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 14738 | |||
| 14739 | else | ||
| 14740 | ac_cv_type_long_long_int=no | ||
| 14741 | fi | ||
| 14742 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 14743 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 14744 | fi | ||
| 14745 | |||
| 14746 | fi | ||
| 14747 | fi | ||
| 14748 | fi | ||
| 14749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 | ||
| 14750 | $as_echo "$ac_cv_type_long_long_int" >&6; } | ||
| 14751 | if test $ac_cv_type_long_long_int = yes; then | ||
| 14752 | |||
| 14753 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h | ||
| 14754 | |||
| 14755 | fi | ||
| 14756 | |||
| 14757 | |||
| 14758 | |||
| 14759 | |||
| 14760 | |||
| 14761 | |||
| 14209 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> | 14762 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> |
| 14210 | " | 14763 | " |
| 14211 | if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : | 14764 | if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : |
| @@ -14460,6 +15013,23 @@ fi | |||
| 14460 | gl_source_base='lib' | 15013 | gl_source_base='lib' |
| 14461 | # Code from module arg-nonnull: | 15014 | # Code from module arg-nonnull: |
| 14462 | # Code from module c++defs: | 15015 | # Code from module c++defs: |
| 15016 | # Code from module crypto/md5: | ||
| 15017 | |||
| 15018 | |||
| 15019 | |||
| 15020 | |||
| 15021 | |||
| 15022 | |||
| 15023 | |||
| 15024 | |||
| 15025 | |||
| 15026 | gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext" | ||
| 15027 | |||
| 15028 | |||
| 15029 | |||
| 15030 | |||
| 15031 | : | ||
| 15032 | |||
| 14463 | # Code from module dtoastr: | 15033 | # Code from module dtoastr: |
| 14464 | 15034 | ||
| 14465 | # Code from module extensions: | 15035 | # Code from module extensions: |
| @@ -15424,6 +15994,710 @@ $as_echo "$gl_cv_next_stddef_h" >&6; } | |||
| 15424 | 15994 | ||
| 15425 | fi | 15995 | fi |
| 15426 | 15996 | ||
| 15997 | # Code from module stdint: | ||
| 15998 | |||
| 15999 | |||
| 16000 | |||
| 16001 | if test $ac_cv_type_long_long_int = yes; then | ||
| 16002 | HAVE_LONG_LONG_INT=1 | ||
| 16003 | else | ||
| 16004 | HAVE_LONG_LONG_INT=0 | ||
| 16005 | fi | ||
| 16006 | |||
| 16007 | |||
| 16008 | if test $ac_cv_type_unsigned_long_long_int = yes; then | ||
| 16009 | HAVE_UNSIGNED_LONG_LONG_INT=1 | ||
| 16010 | else | ||
| 16011 | HAVE_UNSIGNED_LONG_LONG_INT=0 | ||
| 16012 | fi | ||
| 16013 | |||
| 16014 | |||
| 16015 | |||
| 16016 | if test $ac_cv_header_wchar_h = yes; then | ||
| 16017 | HAVE_WCHAR_H=1 | ||
| 16018 | else | ||
| 16019 | HAVE_WCHAR_H=0 | ||
| 16020 | fi | ||
| 16021 | |||
| 16022 | |||
| 16023 | if test $ac_cv_header_inttypes_h = yes; then | ||
| 16024 | HAVE_INTTYPES_H=1 | ||
| 16025 | else | ||
| 16026 | HAVE_INTTYPES_H=0 | ||
| 16027 | fi | ||
| 16028 | |||
| 16029 | |||
| 16030 | if test $ac_cv_header_sys_types_h = yes; then | ||
| 16031 | HAVE_SYS_TYPES_H=1 | ||
| 16032 | else | ||
| 16033 | HAVE_SYS_TYPES_H=0 | ||
| 16034 | fi | ||
| 16035 | |||
| 16036 | |||
| 16037 | |||
| 16038 | |||
| 16039 | |||
| 16040 | |||
| 16041 | |||
| 16042 | |||
| 16043 | |||
| 16044 | |||
| 16045 | |||
| 16046 | if test $gl_cv_have_include_next = yes; then | ||
| 16047 | gl_cv_next_stdint_h='<'stdint.h'>' | ||
| 16048 | else | ||
| 16049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 | ||
| 16050 | $as_echo_n "checking absolute name of <stdint.h>... " >&6; } | ||
| 16051 | if ${gl_cv_next_stdint_h+:} false; then : | ||
| 16052 | $as_echo_n "(cached) " >&6 | ||
| 16053 | else | ||
| 16054 | |||
| 16055 | if test $ac_cv_header_stdint_h = yes; then | ||
| 16056 | |||
| 16057 | |||
| 16058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16059 | /* end confdefs.h. */ | ||
| 16060 | #include <stdint.h> | ||
| 16061 | |||
| 16062 | _ACEOF | ||
| 16063 | case "$host_os" in | ||
| 16064 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | ||
| 16065 | *) gl_absname_cpp="$ac_cpp" ;; | ||
| 16066 | esac | ||
| 16067 | gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | ||
| 16068 | sed -n '\#/stdint.h#{ | ||
| 16069 | s#.*"\(.*/stdint.h\)".*#\1# | ||
| 16070 | s#^/[^/]#//&# | ||
| 16071 | p | ||
| 16072 | q | ||
| 16073 | }'`'"' | ||
| 16074 | else | ||
| 16075 | gl_cv_next_stdint_h='<'stdint.h'>' | ||
| 16076 | fi | ||
| 16077 | |||
| 16078 | |||
| 16079 | fi | ||
| 16080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 | ||
| 16081 | $as_echo "$gl_cv_next_stdint_h" >&6; } | ||
| 16082 | fi | ||
| 16083 | NEXT_STDINT_H=$gl_cv_next_stdint_h | ||
| 16084 | |||
| 16085 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | ||
| 16086 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | ||
| 16087 | gl_next_as_first_directive='<'stdint.h'>' | ||
| 16088 | else | ||
| 16089 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | ||
| 16090 | gl_next_as_first_directive=$gl_cv_next_stdint_h | ||
| 16091 | fi | ||
| 16092 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive | ||
| 16093 | |||
| 16094 | |||
| 16095 | |||
| 16096 | |||
| 16097 | if test $ac_cv_header_stdint_h = yes; then | ||
| 16098 | HAVE_STDINT_H=1 | ||
| 16099 | else | ||
| 16100 | HAVE_STDINT_H=0 | ||
| 16101 | fi | ||
| 16102 | |||
| 16103 | |||
| 16104 | if test $ac_cv_header_stdint_h = yes; then | ||
| 16105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 | ||
| 16106 | $as_echo_n "checking whether stdint.h conforms to C99... " >&6; } | ||
| 16107 | if ${gl_cv_header_working_stdint_h+:} false; then : | ||
| 16108 | $as_echo_n "(cached) " >&6 | ||
| 16109 | else | ||
| 16110 | gl_cv_header_working_stdint_h=no | ||
| 16111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16112 | /* end confdefs.h. */ | ||
| 16113 | |||
| 16114 | |||
| 16115 | #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ | ||
| 16116 | #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ | ||
| 16117 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ | ||
| 16118 | #include <stdint.h> | ||
| 16119 | /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ | ||
| 16120 | #if !(defined WCHAR_MIN && defined WCHAR_MAX) | ||
| 16121 | #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" | ||
| 16122 | #endif | ||
| 16123 | |||
| 16124 | |||
| 16125 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
| 16126 | included before <wchar.h>. */ | ||
| 16127 | #include <stddef.h> | ||
| 16128 | #include <signal.h> | ||
| 16129 | #if HAVE_WCHAR_H | ||
| 16130 | # include <stdio.h> | ||
| 16131 | # include <time.h> | ||
| 16132 | # include <wchar.h> | ||
| 16133 | #endif | ||
| 16134 | |||
| 16135 | |||
| 16136 | #ifdef INT8_MAX | ||
| 16137 | int8_t a1 = INT8_MAX; | ||
| 16138 | int8_t a1min = INT8_MIN; | ||
| 16139 | #endif | ||
| 16140 | #ifdef INT16_MAX | ||
| 16141 | int16_t a2 = INT16_MAX; | ||
| 16142 | int16_t a2min = INT16_MIN; | ||
| 16143 | #endif | ||
| 16144 | #ifdef INT32_MAX | ||
| 16145 | int32_t a3 = INT32_MAX; | ||
| 16146 | int32_t a3min = INT32_MIN; | ||
| 16147 | #endif | ||
| 16148 | #ifdef INT64_MAX | ||
| 16149 | int64_t a4 = INT64_MAX; | ||
| 16150 | int64_t a4min = INT64_MIN; | ||
| 16151 | #endif | ||
| 16152 | #ifdef UINT8_MAX | ||
| 16153 | uint8_t b1 = UINT8_MAX; | ||
| 16154 | #else | ||
| 16155 | typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; | ||
| 16156 | #endif | ||
| 16157 | #ifdef UINT16_MAX | ||
| 16158 | uint16_t b2 = UINT16_MAX; | ||
| 16159 | #endif | ||
| 16160 | #ifdef UINT32_MAX | ||
| 16161 | uint32_t b3 = UINT32_MAX; | ||
| 16162 | #endif | ||
| 16163 | #ifdef UINT64_MAX | ||
| 16164 | uint64_t b4 = UINT64_MAX; | ||
| 16165 | #endif | ||
| 16166 | int_least8_t c1 = INT8_C (0x7f); | ||
| 16167 | int_least8_t c1max = INT_LEAST8_MAX; | ||
| 16168 | int_least8_t c1min = INT_LEAST8_MIN; | ||
| 16169 | int_least16_t c2 = INT16_C (0x7fff); | ||
| 16170 | int_least16_t c2max = INT_LEAST16_MAX; | ||
| 16171 | int_least16_t c2min = INT_LEAST16_MIN; | ||
| 16172 | int_least32_t c3 = INT32_C (0x7fffffff); | ||
| 16173 | int_least32_t c3max = INT_LEAST32_MAX; | ||
| 16174 | int_least32_t c3min = INT_LEAST32_MIN; | ||
| 16175 | int_least64_t c4 = INT64_C (0x7fffffffffffffff); | ||
| 16176 | int_least64_t c4max = INT_LEAST64_MAX; | ||
| 16177 | int_least64_t c4min = INT_LEAST64_MIN; | ||
| 16178 | uint_least8_t d1 = UINT8_C (0xff); | ||
| 16179 | uint_least8_t d1max = UINT_LEAST8_MAX; | ||
| 16180 | uint_least16_t d2 = UINT16_C (0xffff); | ||
| 16181 | uint_least16_t d2max = UINT_LEAST16_MAX; | ||
| 16182 | uint_least32_t d3 = UINT32_C (0xffffffff); | ||
| 16183 | uint_least32_t d3max = UINT_LEAST32_MAX; | ||
| 16184 | uint_least64_t d4 = UINT64_C (0xffffffffffffffff); | ||
| 16185 | uint_least64_t d4max = UINT_LEAST64_MAX; | ||
| 16186 | int_fast8_t e1 = INT_FAST8_MAX; | ||
| 16187 | int_fast8_t e1min = INT_FAST8_MIN; | ||
| 16188 | int_fast16_t e2 = INT_FAST16_MAX; | ||
| 16189 | int_fast16_t e2min = INT_FAST16_MIN; | ||
| 16190 | int_fast32_t e3 = INT_FAST32_MAX; | ||
| 16191 | int_fast32_t e3min = INT_FAST32_MIN; | ||
| 16192 | int_fast64_t e4 = INT_FAST64_MAX; | ||
| 16193 | int_fast64_t e4min = INT_FAST64_MIN; | ||
| 16194 | uint_fast8_t f1 = UINT_FAST8_MAX; | ||
| 16195 | uint_fast16_t f2 = UINT_FAST16_MAX; | ||
| 16196 | uint_fast32_t f3 = UINT_FAST32_MAX; | ||
| 16197 | uint_fast64_t f4 = UINT_FAST64_MAX; | ||
| 16198 | #ifdef INTPTR_MAX | ||
| 16199 | intptr_t g = INTPTR_MAX; | ||
| 16200 | intptr_t gmin = INTPTR_MIN; | ||
| 16201 | #endif | ||
| 16202 | #ifdef UINTPTR_MAX | ||
| 16203 | uintptr_t h = UINTPTR_MAX; | ||
| 16204 | #endif | ||
| 16205 | intmax_t i = INTMAX_MAX; | ||
| 16206 | uintmax_t j = UINTMAX_MAX; | ||
| 16207 | |||
| 16208 | #include <limits.h> /* for CHAR_BIT */ | ||
| 16209 | #define TYPE_MINIMUM(t) \ | ||
| 16210 | ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) | ||
| 16211 | #define TYPE_MAXIMUM(t) \ | ||
| 16212 | ((t) ((t) 0 < (t) -1 \ | ||
| 16213 | ? (t) -1 \ | ||
| 16214 | : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) | ||
| 16215 | struct s { | ||
| 16216 | int check_PTRDIFF: | ||
| 16217 | PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) | ||
| 16218 | && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) | ||
| 16219 | ? 1 : -1; | ||
| 16220 | /* Detect bug in FreeBSD 6.0 / ia64. */ | ||
| 16221 | int check_SIG_ATOMIC: | ||
| 16222 | SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) | ||
| 16223 | && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) | ||
| 16224 | ? 1 : -1; | ||
| 16225 | int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; | ||
| 16226 | int check_WCHAR: | ||
| 16227 | WCHAR_MIN == TYPE_MINIMUM (wchar_t) | ||
| 16228 | && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) | ||
| 16229 | ? 1 : -1; | ||
| 16230 | /* Detect bug in mingw. */ | ||
| 16231 | int check_WINT: | ||
| 16232 | WINT_MIN == TYPE_MINIMUM (wint_t) | ||
| 16233 | && WINT_MAX == TYPE_MAXIMUM (wint_t) | ||
| 16234 | ? 1 : -1; | ||
| 16235 | |||
| 16236 | /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ | ||
| 16237 | int check_UINT8_C: | ||
| 16238 | (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; | ||
| 16239 | int check_UINT16_C: | ||
| 16240 | (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; | ||
| 16241 | |||
| 16242 | /* Detect bugs in OpenBSD 3.9 stdint.h. */ | ||
| 16243 | #ifdef UINT8_MAX | ||
| 16244 | int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; | ||
| 16245 | #endif | ||
| 16246 | #ifdef UINT16_MAX | ||
| 16247 | int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; | ||
| 16248 | #endif | ||
| 16249 | #ifdef UINT32_MAX | ||
| 16250 | int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; | ||
| 16251 | #endif | ||
| 16252 | #ifdef UINT64_MAX | ||
| 16253 | int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; | ||
| 16254 | #endif | ||
| 16255 | int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; | ||
| 16256 | int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; | ||
| 16257 | int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; | ||
| 16258 | int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; | ||
| 16259 | int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; | ||
| 16260 | int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; | ||
| 16261 | int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; | ||
| 16262 | int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; | ||
| 16263 | int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; | ||
| 16264 | int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; | ||
| 16265 | int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; | ||
| 16266 | }; | ||
| 16267 | |||
| 16268 | int | ||
| 16269 | main () | ||
| 16270 | { | ||
| 16271 | |||
| 16272 | ; | ||
| 16273 | return 0; | ||
| 16274 | } | ||
| 16275 | _ACEOF | ||
| 16276 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 16277 | if test "$cross_compiling" = yes; then : | ||
| 16278 | gl_cv_header_working_stdint_h=yes | ||
| 16279 | |||
| 16280 | else | ||
| 16281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16282 | /* end confdefs.h. */ | ||
| 16283 | |||
| 16284 | |||
| 16285 | #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ | ||
| 16286 | #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ | ||
| 16287 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ | ||
| 16288 | #include <stdint.h> | ||
| 16289 | |||
| 16290 | |||
| 16291 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
| 16292 | included before <wchar.h>. */ | ||
| 16293 | #include <stddef.h> | ||
| 16294 | #include <signal.h> | ||
| 16295 | #if HAVE_WCHAR_H | ||
| 16296 | # include <stdio.h> | ||
| 16297 | # include <time.h> | ||
| 16298 | # include <wchar.h> | ||
| 16299 | #endif | ||
| 16300 | |||
| 16301 | |||
| 16302 | #include <stdio.h> | ||
| 16303 | #include <string.h> | ||
| 16304 | #define MVAL(macro) MVAL1(macro) | ||
| 16305 | #define MVAL1(expression) #expression | ||
| 16306 | static const char *macro_values[] = | ||
| 16307 | { | ||
| 16308 | #ifdef INT8_MAX | ||
| 16309 | MVAL (INT8_MAX), | ||
| 16310 | #endif | ||
| 16311 | #ifdef INT16_MAX | ||
| 16312 | MVAL (INT16_MAX), | ||
| 16313 | #endif | ||
| 16314 | #ifdef INT32_MAX | ||
| 16315 | MVAL (INT32_MAX), | ||
| 16316 | #endif | ||
| 16317 | #ifdef INT64_MAX | ||
| 16318 | MVAL (INT64_MAX), | ||
| 16319 | #endif | ||
| 16320 | #ifdef UINT8_MAX | ||
| 16321 | MVAL (UINT8_MAX), | ||
| 16322 | #endif | ||
| 16323 | #ifdef UINT16_MAX | ||
| 16324 | MVAL (UINT16_MAX), | ||
| 16325 | #endif | ||
| 16326 | #ifdef UINT32_MAX | ||
| 16327 | MVAL (UINT32_MAX), | ||
| 16328 | #endif | ||
| 16329 | #ifdef UINT64_MAX | ||
| 16330 | MVAL (UINT64_MAX), | ||
| 16331 | #endif | ||
| 16332 | NULL | ||
| 16333 | }; | ||
| 16334 | |||
| 16335 | int | ||
| 16336 | main () | ||
| 16337 | { | ||
| 16338 | |||
| 16339 | const char **mv; | ||
| 16340 | for (mv = macro_values; *mv != NULL; mv++) | ||
| 16341 | { | ||
| 16342 | const char *value = *mv; | ||
| 16343 | /* Test whether it looks like a cast expression. */ | ||
| 16344 | if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 | ||
| 16345 | || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 | ||
| 16346 | || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 | ||
| 16347 | || strncmp (value, "((int)"/*)*/, 6) == 0 | ||
| 16348 | || strncmp (value, "((signed short)"/*)*/, 15) == 0 | ||
| 16349 | || strncmp (value, "((signed char)"/*)*/, 14) == 0) | ||
| 16350 | return mv - macro_values + 1; | ||
| 16351 | } | ||
| 16352 | return 0; | ||
| 16353 | |||
| 16354 | ; | ||
| 16355 | return 0; | ||
| 16356 | } | ||
| 16357 | _ACEOF | ||
| 16358 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 16359 | gl_cv_header_working_stdint_h=yes | ||
| 16360 | fi | ||
| 16361 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 16362 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 16363 | fi | ||
| 16364 | |||
| 16365 | |||
| 16366 | fi | ||
| 16367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 16368 | |||
| 16369 | fi | ||
| 16370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 | ||
| 16371 | $as_echo "$gl_cv_header_working_stdint_h" >&6; } | ||
| 16372 | fi | ||
| 16373 | if test "$gl_cv_header_working_stdint_h" = yes; then | ||
| 16374 | STDINT_H= | ||
| 16375 | else | ||
| 16376 | for ac_header in sys/inttypes.h sys/bitypes.h | ||
| 16377 | do : | ||
| 16378 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
| 16379 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
| 16380 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
| 16381 | cat >>confdefs.h <<_ACEOF | ||
| 16382 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
| 16383 | _ACEOF | ||
| 16384 | |||
| 16385 | fi | ||
| 16386 | |||
| 16387 | done | ||
| 16388 | |||
| 16389 | if test $ac_cv_header_sys_inttypes_h = yes; then | ||
| 16390 | HAVE_SYS_INTTYPES_H=1 | ||
| 16391 | else | ||
| 16392 | HAVE_SYS_INTTYPES_H=0 | ||
| 16393 | fi | ||
| 16394 | |||
| 16395 | if test $ac_cv_header_sys_bitypes_h = yes; then | ||
| 16396 | HAVE_SYS_BITYPES_H=1 | ||
| 16397 | else | ||
| 16398 | HAVE_SYS_BITYPES_H=0 | ||
| 16399 | fi | ||
| 16400 | |||
| 16401 | |||
| 16402 | |||
| 16403 | |||
| 16404 | if test $APPLE_UNIVERSAL_BUILD = 0; then | ||
| 16405 | |||
| 16406 | |||
| 16407 | for gltype in ptrdiff_t size_t ; do | ||
| 16408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 | ||
| 16409 | $as_echo_n "checking for bit size of $gltype... " >&6; } | ||
| 16410 | if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : | ||
| 16411 | $as_echo_n "(cached) " >&6 | ||
| 16412 | else | ||
| 16413 | if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " | ||
| 16414 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
| 16415 | included before <wchar.h>. */ | ||
| 16416 | #include <stddef.h> | ||
| 16417 | #include <signal.h> | ||
| 16418 | #if HAVE_WCHAR_H | ||
| 16419 | # include <stdio.h> | ||
| 16420 | # include <time.h> | ||
| 16421 | # include <wchar.h> | ||
| 16422 | #endif | ||
| 16423 | |||
| 16424 | #include <limits.h>"; then : | ||
| 16425 | |||
| 16426 | else | ||
| 16427 | result=unknown | ||
| 16428 | fi | ||
| 16429 | |||
| 16430 | eval gl_cv_bitsizeof_${gltype}=\$result | ||
| 16431 | |||
| 16432 | fi | ||
| 16433 | eval ac_res=\$gl_cv_bitsizeof_${gltype} | ||
| 16434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 16435 | $as_echo "$ac_res" >&6; } | ||
| 16436 | eval result=\$gl_cv_bitsizeof_${gltype} | ||
| 16437 | if test $result = unknown; then | ||
| 16438 | result=0 | ||
| 16439 | fi | ||
| 16440 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | ||
| 16441 | cat >>confdefs.h <<_ACEOF | ||
| 16442 | #define BITSIZEOF_${GLTYPE} $result | ||
| 16443 | _ACEOF | ||
| 16444 | |||
| 16445 | eval BITSIZEOF_${GLTYPE}=\$result | ||
| 16446 | done | ||
| 16447 | |||
| 16448 | |||
| 16449 | fi | ||
| 16450 | |||
| 16451 | |||
| 16452 | for gltype in sig_atomic_t wchar_t wint_t ; do | ||
| 16453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 | ||
| 16454 | $as_echo_n "checking for bit size of $gltype... " >&6; } | ||
| 16455 | if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : | ||
| 16456 | $as_echo_n "(cached) " >&6 | ||
| 16457 | else | ||
| 16458 | if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " | ||
| 16459 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
| 16460 | included before <wchar.h>. */ | ||
| 16461 | #include <stddef.h> | ||
| 16462 | #include <signal.h> | ||
| 16463 | #if HAVE_WCHAR_H | ||
| 16464 | # include <stdio.h> | ||
| 16465 | # include <time.h> | ||
| 16466 | # include <wchar.h> | ||
| 16467 | #endif | ||
| 16468 | |||
| 16469 | #include <limits.h>"; then : | ||
| 16470 | |||
| 16471 | else | ||
| 16472 | result=unknown | ||
| 16473 | fi | ||
| 16474 | |||
| 16475 | eval gl_cv_bitsizeof_${gltype}=\$result | ||
| 16476 | |||
| 16477 | fi | ||
| 16478 | eval ac_res=\$gl_cv_bitsizeof_${gltype} | ||
| 16479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 16480 | $as_echo "$ac_res" >&6; } | ||
| 16481 | eval result=\$gl_cv_bitsizeof_${gltype} | ||
| 16482 | if test $result = unknown; then | ||
| 16483 | result=0 | ||
| 16484 | fi | ||
| 16485 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | ||
| 16486 | cat >>confdefs.h <<_ACEOF | ||
| 16487 | #define BITSIZEOF_${GLTYPE} $result | ||
| 16488 | _ACEOF | ||
| 16489 | |||
| 16490 | eval BITSIZEOF_${GLTYPE}=\$result | ||
| 16491 | done | ||
| 16492 | |||
| 16493 | |||
| 16494 | |||
| 16495 | |||
| 16496 | for gltype in sig_atomic_t wchar_t wint_t ; do | ||
| 16497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 | ||
| 16498 | $as_echo_n "checking whether $gltype is signed... " >&6; } | ||
| 16499 | if eval \${gl_cv_type_${gltype}_signed+:} false; then : | ||
| 16500 | $as_echo_n "(cached) " >&6 | ||
| 16501 | else | ||
| 16502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16503 | /* end confdefs.h. */ | ||
| 16504 | |||
| 16505 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
| 16506 | included before <wchar.h>. */ | ||
| 16507 | #include <stddef.h> | ||
| 16508 | #include <signal.h> | ||
| 16509 | #if HAVE_WCHAR_H | ||
| 16510 | # include <stdio.h> | ||
| 16511 | # include <time.h> | ||
| 16512 | # include <wchar.h> | ||
| 16513 | #endif | ||
| 16514 | |||
| 16515 | int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; | ||
| 16516 | int | ||
| 16517 | main () | ||
| 16518 | { | ||
| 16519 | |||
| 16520 | ; | ||
| 16521 | return 0; | ||
| 16522 | } | ||
| 16523 | _ACEOF | ||
| 16524 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 16525 | result=yes | ||
| 16526 | else | ||
| 16527 | result=no | ||
| 16528 | fi | ||
| 16529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 16530 | eval gl_cv_type_${gltype}_signed=\$result | ||
| 16531 | |||
| 16532 | fi | ||
| 16533 | eval ac_res=\$gl_cv_type_${gltype}_signed | ||
| 16534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 16535 | $as_echo "$ac_res" >&6; } | ||
| 16536 | eval result=\$gl_cv_type_${gltype}_signed | ||
| 16537 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | ||
| 16538 | if test "$result" = yes; then | ||
| 16539 | cat >>confdefs.h <<_ACEOF | ||
| 16540 | #define HAVE_SIGNED_${GLTYPE} 1 | ||
| 16541 | _ACEOF | ||
| 16542 | |||
| 16543 | eval HAVE_SIGNED_${GLTYPE}=1 | ||
| 16544 | else | ||
| 16545 | eval HAVE_SIGNED_${GLTYPE}=0 | ||
| 16546 | fi | ||
| 16547 | done | ||
| 16548 | |||
| 16549 | |||
| 16550 | gl_cv_type_ptrdiff_t_signed=yes | ||
| 16551 | gl_cv_type_size_t_signed=no | ||
| 16552 | if test $APPLE_UNIVERSAL_BUILD = 0; then | ||
| 16553 | |||
| 16554 | |||
| 16555 | for gltype in ptrdiff_t size_t ; do | ||
| 16556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 | ||
| 16557 | $as_echo_n "checking for $gltype integer literal suffix... " >&6; } | ||
| 16558 | if eval \${gl_cv_type_${gltype}_suffix+:} false; then : | ||
| 16559 | $as_echo_n "(cached) " >&6 | ||
| 16560 | else | ||
| 16561 | eval gl_cv_type_${gltype}_suffix=no | ||
| 16562 | eval result=\$gl_cv_type_${gltype}_signed | ||
| 16563 | if test "$result" = yes; then | ||
| 16564 | glsufu= | ||
| 16565 | else | ||
| 16566 | glsufu=u | ||
| 16567 | fi | ||
| 16568 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do | ||
| 16569 | case $glsuf in | ||
| 16570 | '') gltype1='int';; | ||
| 16571 | l) gltype1='long int';; | ||
| 16572 | ll) gltype1='long long int';; | ||
| 16573 | i64) gltype1='__int64';; | ||
| 16574 | u) gltype1='unsigned int';; | ||
| 16575 | ul) gltype1='unsigned long int';; | ||
| 16576 | ull) gltype1='unsigned long long int';; | ||
| 16577 | ui64)gltype1='unsigned __int64';; | ||
| 16578 | esac | ||
| 16579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16580 | /* end confdefs.h. */ | ||
| 16581 | |||
| 16582 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
| 16583 | included before <wchar.h>. */ | ||
| 16584 | #include <stddef.h> | ||
| 16585 | #include <signal.h> | ||
| 16586 | #if HAVE_WCHAR_H | ||
| 16587 | # include <stdio.h> | ||
| 16588 | # include <time.h> | ||
| 16589 | # include <wchar.h> | ||
| 16590 | #endif | ||
| 16591 | |||
| 16592 | extern $gltype foo; | ||
| 16593 | extern $gltype1 foo; | ||
| 16594 | int | ||
| 16595 | main () | ||
| 16596 | { | ||
| 16597 | |||
| 16598 | ; | ||
| 16599 | return 0; | ||
| 16600 | } | ||
| 16601 | _ACEOF | ||
| 16602 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 16603 | eval gl_cv_type_${gltype}_suffix=\$glsuf | ||
| 16604 | fi | ||
| 16605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 16606 | eval result=\$gl_cv_type_${gltype}_suffix | ||
| 16607 | test "$result" != no && break | ||
| 16608 | done | ||
| 16609 | fi | ||
| 16610 | eval ac_res=\$gl_cv_type_${gltype}_suffix | ||
| 16611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 16612 | $as_echo "$ac_res" >&6; } | ||
| 16613 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | ||
| 16614 | eval result=\$gl_cv_type_${gltype}_suffix | ||
| 16615 | test "$result" = no && result= | ||
| 16616 | eval ${GLTYPE}_SUFFIX=\$result | ||
| 16617 | cat >>confdefs.h <<_ACEOF | ||
| 16618 | #define ${GLTYPE}_SUFFIX $result | ||
| 16619 | _ACEOF | ||
| 16620 | |||
| 16621 | done | ||
| 16622 | |||
| 16623 | |||
| 16624 | fi | ||
| 16625 | |||
| 16626 | |||
| 16627 | for gltype in sig_atomic_t wchar_t wint_t ; do | ||
| 16628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 | ||
| 16629 | $as_echo_n "checking for $gltype integer literal suffix... " >&6; } | ||
| 16630 | if eval \${gl_cv_type_${gltype}_suffix+:} false; then : | ||
| 16631 | $as_echo_n "(cached) " >&6 | ||
| 16632 | else | ||
| 16633 | eval gl_cv_type_${gltype}_suffix=no | ||
| 16634 | eval result=\$gl_cv_type_${gltype}_signed | ||
| 16635 | if test "$result" = yes; then | ||
| 16636 | glsufu= | ||
| 16637 | else | ||
| 16638 | glsufu=u | ||
| 16639 | fi | ||
| 16640 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do | ||
| 16641 | case $glsuf in | ||
| 16642 | '') gltype1='int';; | ||
| 16643 | l) gltype1='long int';; | ||
| 16644 | ll) gltype1='long long int';; | ||
| 16645 | i64) gltype1='__int64';; | ||
| 16646 | u) gltype1='unsigned int';; | ||
| 16647 | ul) gltype1='unsigned long int';; | ||
| 16648 | ull) gltype1='unsigned long long int';; | ||
| 16649 | ui64)gltype1='unsigned __int64';; | ||
| 16650 | esac | ||
| 16651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16652 | /* end confdefs.h. */ | ||
| 16653 | |||
| 16654 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
| 16655 | included before <wchar.h>. */ | ||
| 16656 | #include <stddef.h> | ||
| 16657 | #include <signal.h> | ||
| 16658 | #if HAVE_WCHAR_H | ||
| 16659 | # include <stdio.h> | ||
| 16660 | # include <time.h> | ||
| 16661 | # include <wchar.h> | ||
| 16662 | #endif | ||
| 16663 | |||
| 16664 | extern $gltype foo; | ||
| 16665 | extern $gltype1 foo; | ||
| 16666 | int | ||
| 16667 | main () | ||
| 16668 | { | ||
| 16669 | |||
| 16670 | ; | ||
| 16671 | return 0; | ||
| 16672 | } | ||
| 16673 | _ACEOF | ||
| 16674 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 16675 | eval gl_cv_type_${gltype}_suffix=\$glsuf | ||
| 16676 | fi | ||
| 16677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 16678 | eval result=\$gl_cv_type_${gltype}_suffix | ||
| 16679 | test "$result" != no && break | ||
| 16680 | done | ||
| 16681 | fi | ||
| 16682 | eval ac_res=\$gl_cv_type_${gltype}_suffix | ||
| 16683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 16684 | $as_echo "$ac_res" >&6; } | ||
| 16685 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | ||
| 16686 | eval result=\$gl_cv_type_${gltype}_suffix | ||
| 16687 | test "$result" = no && result= | ||
| 16688 | eval ${GLTYPE}_SUFFIX=\$result | ||
| 16689 | cat >>confdefs.h <<_ACEOF | ||
| 16690 | #define ${GLTYPE}_SUFFIX $result | ||
| 16691 | _ACEOF | ||
| 16692 | |||
| 16693 | done | ||
| 16694 | |||
| 16695 | |||
| 16696 | |||
| 16697 | STDINT_H=stdint.h | ||
| 16698 | fi | ||
| 16699 | |||
| 16700 | |||
| 15427 | # Code from module stdlib: | 16701 | # Code from module stdlib: |
| 15428 | 16702 | ||
| 15429 | 16703 | ||
| @@ -17861,6 +19135,7 @@ if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then | |||
| 17861 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 19135 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17862 | fi | 19136 | fi |
| 17863 | 19137 | ||
| 19138 | |||
| 17864 | gl_libobjs= | 19139 | gl_libobjs= |
| 17865 | gl_ltlibobjs= | 19140 | gl_ltlibobjs= |
| 17866 | if test -n "$gl_LIBOBJS"; then | 19141 | if test -n "$gl_LIBOBJS"; then |