… | |
… | |
684 | X_CFLAGS |
684 | X_CFLAGS |
685 | X_PRE_LIBS |
685 | X_PRE_LIBS |
686 | X_LIBS |
686 | X_LIBS |
687 | X_EXTRA_LIBS |
687 | X_EXTRA_LIBS |
688 | afterimage_config |
688 | afterimage_config |
689 | rxvt_int16_typedef |
|
|
690 | rxvt_uint16_typedef |
|
|
691 | rxvt_int32_typedef |
|
|
692 | rxvt_uint32_typedef |
|
|
693 | rxvt_intp_define |
|
|
694 | rxvt_u_intp_define |
|
|
695 | PKG_CONFIG |
689 | PKG_CONFIG |
696 | XFT_CONFIG |
690 | XFT_CONFIG |
697 | PERL |
691 | PERL |
698 | PERLLIB |
692 | PERLLIB |
699 | PERLFLAGS |
693 | PERLFLAGS |
… | |
… | |
701 | IF_PERL |
695 | IF_PERL |
702 | PERL_O |
696 | PERL_O |
703 | AFTERIMAGE_CFLAGS |
697 | AFTERIMAGE_CFLAGS |
704 | AFTERIMAGE_LIBS |
698 | AFTERIMAGE_LIBS |
705 | include_stdint_h |
699 | include_stdint_h |
706 | include_stdarg_h |
|
|
707 | include_stdlib_h |
|
|
708 | include_unistd_h |
|
|
709 | include_string_h |
|
|
710 | include_fcntl_h |
|
|
711 | include_util_h |
|
|
712 | include_assert_h |
|
|
713 | include_sys_ioctl_h |
700 | include_sys_ioctl_h |
714 | include_sys_select_h |
|
|
715 | include_sys_strredir_h |
701 | include_sys_strredir_h |
716 | include_sys_time_h |
|
|
717 | include_time_h |
|
|
718 | LIBOBJS |
702 | LIBOBJS |
719 | LTLIBOBJS' |
703 | LTLIBOBJS' |
720 | ac_subst_files='' |
704 | ac_subst_files='' |
721 | ac_precious_vars='build_alias |
705 | ac_precious_vars='build_alias |
722 | host_alias |
706 | host_alias |
… | |
… | |
7373 | |
7357 | |
7374 | |
7358 | |
7375 | |
7359 | |
7376 | |
7360 | |
7377 | |
7361 | |
7378 | |
|
|
7379 | |
|
|
7380 | |
|
|
7381 | |
|
|
7382 | |
|
|
7383 | |
|
|
7384 | |
|
|
7385 | |
|
|
7386 | |
|
|
7387 | for ac_header in \ |
7362 | for ac_header in \ |
7388 | assert.h \ |
|
|
7389 | fcntl.h \ |
|
|
7390 | stdarg.h \ |
|
|
7391 | stdlib.h \ |
|
|
7392 | string.h \ |
|
|
7393 | termios.h \ |
|
|
7394 | unistd.h \ |
|
|
7395 | sys/byteorder.h \ |
7363 | sys/byteorder.h \ |
7396 | sys/ioctl.h \ |
7364 | sys/ioctl.h \ |
7397 | sys/select.h \ |
|
|
7398 | sys/sockio.h \ |
7365 | sys/sockio.h \ |
7399 | sys/strredir.h \ |
7366 | sys/strredir.h \ |
7400 | sys/time.h \ |
|
|
7401 | stdint.h \ |
7367 | stdint.h \ |
7402 | wchar.h \ |
7368 | wchar.h \ |
7403 | cwchar \ |
7369 | cwchar \ |
7404 | clocale \ |
7370 | clocale \ |
7405 | |
7371 | |
… | |
… | |
7553 | cat confdefs.h >>conftest.$ac_ext |
7519 | cat confdefs.h >>conftest.$ac_ext |
7554 | cat >>conftest.$ac_ext <<_ACEOF |
7520 | cat >>conftest.$ac_ext <<_ACEOF |
7555 | /* end confdefs.h. */ |
7521 | /* end confdefs.h. */ |
7556 | #include <stdio.h> |
7522 | #include <stdio.h> |
7557 | #include <sys/ioctl.h> |
7523 | #include <sys/ioctl.h> |
7558 | #ifdef HAVE_TERMIOS_H |
|
|
7559 | #include <termios.h> |
7524 | #include <termios.h> |
7560 | #endif |
7525 | |
7561 | int |
7526 | int |
7562 | main () |
7527 | main () |
7563 | { |
7528 | { |
7564 | int a = ECHO; |
7529 | int a = ECHO; |
7565 | ; |
7530 | ; |
… | |
… | |
7880 | _ACEOF |
7845 | _ACEOF |
7881 | |
7846 | |
7882 | fi |
7847 | fi |
7883 | |
7848 | |
7884 | |
7849 | |
7885 | { echo "$as_me:$LINENO: checking for short" >&5 |
7850 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
7886 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
7851 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
7887 | if test "${ac_cv_type_short+set}" = set; then |
7852 | if test "${ac_cv_c_int16_t+set}" = set; then |
7888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7889 | else |
7854 | else |
|
|
7855 | ac_cv_c_int16_t=no |
|
|
7856 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
7857 | 'long long int' 'short int' 'signed char'; do |
7890 | cat >conftest.$ac_ext <<_ACEOF |
7858 | cat >conftest.$ac_ext <<_ACEOF |
7891 | /* confdefs.h. */ |
7859 | /* confdefs.h. */ |
7892 | _ACEOF |
7860 | _ACEOF |
7893 | cat confdefs.h >>conftest.$ac_ext |
7861 | cat confdefs.h >>conftest.$ac_ext |
7894 | cat >>conftest.$ac_ext <<_ACEOF |
7862 | cat >>conftest.$ac_ext <<_ACEOF |
7895 | /* end confdefs.h. */ |
7863 | /* end confdefs.h. */ |
7896 | $ac_includes_default |
7864 | $ac_includes_default |
7897 | typedef short ac__type_new_; |
|
|
7898 | int |
7865 | int |
7899 | main () |
7866 | main () |
7900 | { |
7867 | { |
7901 | if ((ac__type_new_ *) 0) |
7868 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
7902 | return 0; |
7869 | test_array [0] = 0 |
7903 | if (sizeof (ac__type_new_)) |
7870 | |
7904 | return 0; |
|
|
7905 | ; |
7871 | ; |
7906 | return 0; |
7872 | return 0; |
7907 | } |
7873 | } |
7908 | _ACEOF |
7874 | _ACEOF |
7909 | rm -f conftest.$ac_objext |
7875 | rm -f conftest.$ac_objext |
… | |
… | |
7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7922 | (exit $ac_status); } && { |
7888 | (exit $ac_status); } && { |
7923 | test -z "$ac_cxx_werror_flag" || |
7889 | test -z "$ac_cxx_werror_flag" || |
7924 | test ! -s conftest.err |
7890 | test ! -s conftest.err |
7925 | } && test -s conftest.$ac_objext; then |
7891 | } && test -s conftest.$ac_objext; then |
7926 | ac_cv_type_short=yes |
|
|
7927 | else |
|
|
7928 | echo "$as_me: failed program was:" >&5 |
|
|
7929 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7930 | |
|
|
7931 | ac_cv_type_short=no |
|
|
7932 | fi |
|
|
7933 | |
|
|
7934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7935 | fi |
|
|
7936 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
7937 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
7938 | |
|
|
7939 | # The cast to long int works around a bug in the HP C Compiler |
|
|
7940 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
7941 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
7942 | # This bug is HP SR number 8606223364. |
|
|
7943 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
7944 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
7945 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
7946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7947 | else |
|
|
7948 | if test "$cross_compiling" = yes; then |
|
|
7949 | # Depending upon the size, compute the lo and hi bounds. |
|
|
7950 | cat >conftest.$ac_ext <<_ACEOF |
7892 | cat >conftest.$ac_ext <<_ACEOF |
7951 | /* confdefs.h. */ |
7893 | /* confdefs.h. */ |
7952 | _ACEOF |
7894 | _ACEOF |
7953 | cat confdefs.h >>conftest.$ac_ext |
7895 | cat confdefs.h >>conftest.$ac_ext |
7954 | cat >>conftest.$ac_ext <<_ACEOF |
7896 | cat >>conftest.$ac_ext <<_ACEOF |
7955 | /* end confdefs.h. */ |
7897 | /* end confdefs.h. */ |
7956 | $ac_includes_default |
7898 | $ac_includes_default |
7957 | typedef short ac__type_sizeof_; |
|
|
7958 | int |
7899 | int |
7959 | main () |
7900 | main () |
7960 | { |
7901 | { |
7961 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
7902 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
7903 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
7962 | test_array [0] = 0 |
7904 | test_array [0] = 0 |
7963 | |
7905 | |
7964 | ; |
7906 | ; |
7965 | return 0; |
7907 | return 0; |
7966 | } |
7908 | } |
… | |
… | |
7980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7981 | (exit $ac_status); } && { |
7923 | (exit $ac_status); } && { |
7982 | test -z "$ac_cxx_werror_flag" || |
7924 | test -z "$ac_cxx_werror_flag" || |
7983 | test ! -s conftest.err |
7925 | test ! -s conftest.err |
7984 | } && test -s conftest.$ac_objext; then |
7926 | } && test -s conftest.$ac_objext; then |
7985 | ac_lo=0 ac_mid=0 |
7927 | : |
7986 | while :; do |
7928 | else |
|
|
7929 | echo "$as_me: failed program was:" >&5 |
|
|
7930 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7931 | |
|
|
7932 | case $ac_type in |
|
|
7933 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
7934 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
7935 | esac |
|
|
7936 | |
|
|
7937 | fi |
|
|
7938 | |
|
|
7939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7940 | else |
|
|
7941 | echo "$as_me: failed program was:" >&5 |
|
|
7942 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7943 | |
|
|
7944 | |
|
|
7945 | fi |
|
|
7946 | |
|
|
7947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7948 | test "$ac_cv_c_int16_t" != no && break |
|
|
7949 | done |
|
|
7950 | fi |
|
|
7951 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
7952 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
7953 | case $ac_cv_c_int16_t in #( |
|
|
7954 | no|yes) ;; #( |
|
|
7955 | *) |
|
|
7956 | |
|
|
7957 | cat >>confdefs.h <<_ACEOF |
|
|
7958 | #define int16_t $ac_cv_c_int16_t |
|
|
7959 | _ACEOF |
|
|
7960 | ;; |
|
|
7961 | esac |
|
|
7962 | |
|
|
7963 | |
|
|
7964 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
7965 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
7966 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
7967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7968 | else |
|
|
7969 | ac_cv_c_uint16_t=no |
|
|
7970 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
7971 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
7987 | cat >conftest.$ac_ext <<_ACEOF |
7972 | cat >conftest.$ac_ext <<_ACEOF |
7988 | /* confdefs.h. */ |
7973 | /* confdefs.h. */ |
7989 | _ACEOF |
7974 | _ACEOF |
7990 | cat confdefs.h >>conftest.$ac_ext |
7975 | cat confdefs.h >>conftest.$ac_ext |
7991 | cat >>conftest.$ac_ext <<_ACEOF |
7976 | cat >>conftest.$ac_ext <<_ACEOF |
7992 | /* end confdefs.h. */ |
7977 | /* end confdefs.h. */ |
7993 | $ac_includes_default |
7978 | $ac_includes_default |
7994 | typedef short ac__type_sizeof_; |
|
|
7995 | int |
7979 | int |
7996 | main () |
7980 | main () |
7997 | { |
7981 | { |
7998 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
7982 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
7999 | test_array [0] = 0 |
7983 | test_array [0] = 0 |
8000 | |
7984 | |
8001 | ; |
7985 | ; |
8002 | return 0; |
7986 | return 0; |
8003 | } |
7987 | } |
… | |
… | |
8017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8018 | (exit $ac_status); } && { |
8002 | (exit $ac_status); } && { |
8019 | test -z "$ac_cxx_werror_flag" || |
8003 | test -z "$ac_cxx_werror_flag" || |
8020 | test ! -s conftest.err |
8004 | test ! -s conftest.err |
8021 | } && test -s conftest.$ac_objext; then |
8005 | } && test -s conftest.$ac_objext; then |
8022 | ac_hi=$ac_mid; break |
8006 | case $ac_type in |
|
|
8007 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8008 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8009 | esac |
|
|
8010 | |
8023 | else |
8011 | else |
8024 | echo "$as_me: failed program was:" >&5 |
8012 | echo "$as_me: failed program was:" >&5 |
8025 | sed 's/^/| /' conftest.$ac_ext >&5 |
8013 | sed 's/^/| /' conftest.$ac_ext >&5 |
8026 | |
8014 | |
8027 | ac_lo=`expr $ac_mid + 1` |
8015 | |
8028 | if test $ac_lo -le $ac_mid; then |
|
|
8029 | ac_lo= ac_hi= |
|
|
8030 | break |
|
|
8031 | fi |
|
|
8032 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8033 | fi |
8016 | fi |
8034 | |
8017 | |
8035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8019 | test "$ac_cv_c_uint16_t" != no && break |
8036 | done |
8020 | done |
8037 | else |
8021 | fi |
8038 | echo "$as_me: failed program was:" >&5 |
8022 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
8039 | sed 's/^/| /' conftest.$ac_ext >&5 |
8023 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8024 | case $ac_cv_c_uint16_t in #( |
|
|
8025 | no|yes) ;; #( |
|
|
8026 | *) |
8040 | |
8027 | |
|
|
8028 | |
|
|
8029 | cat >>confdefs.h <<_ACEOF |
|
|
8030 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8031 | _ACEOF |
|
|
8032 | ;; |
|
|
8033 | esac |
|
|
8034 | |
|
|
8035 | |
|
|
8036 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8037 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8038 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8040 | else |
|
|
8041 | ac_cv_c_int32_t=no |
|
|
8042 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8043 | 'long long int' 'short int' 'signed char'; do |
8041 | cat >conftest.$ac_ext <<_ACEOF |
8044 | cat >conftest.$ac_ext <<_ACEOF |
8042 | /* confdefs.h. */ |
8045 | /* confdefs.h. */ |
8043 | _ACEOF |
8046 | _ACEOF |
8044 | cat confdefs.h >>conftest.$ac_ext |
8047 | cat confdefs.h >>conftest.$ac_ext |
8045 | cat >>conftest.$ac_ext <<_ACEOF |
8048 | cat >>conftest.$ac_ext <<_ACEOF |
8046 | /* end confdefs.h. */ |
8049 | /* end confdefs.h. */ |
8047 | $ac_includes_default |
8050 | $ac_includes_default |
8048 | typedef short ac__type_sizeof_; |
|
|
8049 | int |
8051 | int |
8050 | main () |
8052 | main () |
8051 | { |
8053 | { |
8052 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8054 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
8053 | test_array [0] = 0 |
8055 | test_array [0] = 0 |
8054 | |
8056 | |
8055 | ; |
8057 | ; |
8056 | return 0; |
8058 | return 0; |
8057 | } |
8059 | } |
… | |
… | |
8071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8072 | (exit $ac_status); } && { |
8074 | (exit $ac_status); } && { |
8073 | test -z "$ac_cxx_werror_flag" || |
8075 | test -z "$ac_cxx_werror_flag" || |
8074 | test ! -s conftest.err |
8076 | test ! -s conftest.err |
8075 | } && test -s conftest.$ac_objext; then |
8077 | } && test -s conftest.$ac_objext; then |
8076 | ac_hi=-1 ac_mid=-1 |
|
|
8077 | while :; do |
|
|
8078 | cat >conftest.$ac_ext <<_ACEOF |
8078 | cat >conftest.$ac_ext <<_ACEOF |
8079 | /* confdefs.h. */ |
8079 | /* confdefs.h. */ |
8080 | _ACEOF |
8080 | _ACEOF |
8081 | cat confdefs.h >>conftest.$ac_ext |
8081 | cat confdefs.h >>conftest.$ac_ext |
8082 | cat >>conftest.$ac_ext <<_ACEOF |
8082 | cat >>conftest.$ac_ext <<_ACEOF |
8083 | /* end confdefs.h. */ |
8083 | /* end confdefs.h. */ |
8084 | $ac_includes_default |
8084 | $ac_includes_default |
8085 | typedef short ac__type_sizeof_; |
|
|
8086 | int |
8085 | int |
8087 | main () |
8086 | main () |
8088 | { |
8087 | { |
8089 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8088 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8089 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
8090 | test_array [0] = 0 |
8090 | test_array [0] = 0 |
8091 | |
8091 | |
8092 | ; |
8092 | ; |
8093 | return 0; |
8093 | return 0; |
8094 | } |
8094 | } |
… | |
… | |
8108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8109 | (exit $ac_status); } && { |
8109 | (exit $ac_status); } && { |
8110 | test -z "$ac_cxx_werror_flag" || |
8110 | test -z "$ac_cxx_werror_flag" || |
8111 | test ! -s conftest.err |
8111 | test ! -s conftest.err |
8112 | } && test -s conftest.$ac_objext; then |
8112 | } && test -s conftest.$ac_objext; then |
8113 | ac_lo=$ac_mid; break |
8113 | : |
8114 | else |
8114 | else |
8115 | echo "$as_me: failed program was:" >&5 |
8115 | echo "$as_me: failed program was:" >&5 |
8116 | sed 's/^/| /' conftest.$ac_ext >&5 |
8116 | sed 's/^/| /' conftest.$ac_ext >&5 |
8117 | |
8117 | |
8118 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8118 | case $ac_type in |
8119 | if test $ac_mid -le $ac_hi; then |
8119 | int32_t) ac_cv_c_int32_t=yes ;; |
8120 | ac_lo= ac_hi= |
8120 | *) ac_cv_c_int32_t=$ac_type ;; |
8121 | break |
8121 | esac |
8122 | fi |
8122 | |
8123 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8124 | fi |
8123 | fi |
8125 | |
8124 | |
8126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8127 | done |
|
|
8128 | else |
8126 | else |
8129 | echo "$as_me: failed program was:" >&5 |
8127 | echo "$as_me: failed program was:" >&5 |
8130 | sed 's/^/| /' conftest.$ac_ext >&5 |
8128 | sed 's/^/| /' conftest.$ac_ext >&5 |
8131 | |
8129 | |
8132 | ac_lo= ac_hi= |
8130 | |
8133 | fi |
8131 | fi |
8134 | |
8132 | |
8135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8134 | test "$ac_cv_c_int32_t" != no && break |
|
|
8135 | done |
8136 | fi |
8136 | fi |
|
|
8137 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8138 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8139 | case $ac_cv_c_int32_t in #( |
|
|
8140 | no|yes) ;; #( |
|
|
8141 | *) |
8137 | |
8142 | |
8138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8143 | cat >>confdefs.h <<_ACEOF |
8139 | # Binary search between lo and hi bounds. |
8144 | #define int32_t $ac_cv_c_int32_t |
8140 | while test "x$ac_lo" != "x$ac_hi"; do |
8145 | _ACEOF |
8141 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8146 | ;; |
|
|
8147 | esac |
|
|
8148 | |
|
|
8149 | |
|
|
8150 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8151 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8152 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8154 | else |
|
|
8155 | ac_cv_c_uint32_t=no |
|
|
8156 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8157 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8142 | cat >conftest.$ac_ext <<_ACEOF |
8158 | cat >conftest.$ac_ext <<_ACEOF |
8143 | /* confdefs.h. */ |
8159 | /* confdefs.h. */ |
8144 | _ACEOF |
8160 | _ACEOF |
8145 | cat confdefs.h >>conftest.$ac_ext |
8161 | cat confdefs.h >>conftest.$ac_ext |
8146 | cat >>conftest.$ac_ext <<_ACEOF |
8162 | cat >>conftest.$ac_ext <<_ACEOF |
8147 | /* end confdefs.h. */ |
8163 | /* end confdefs.h. */ |
8148 | $ac_includes_default |
8164 | $ac_includes_default |
8149 | typedef short ac__type_sizeof_; |
|
|
8150 | int |
8165 | int |
8151 | main () |
8166 | main () |
8152 | { |
8167 | { |
8153 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8168 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
8154 | test_array [0] = 0 |
8169 | test_array [0] = 0 |
8155 | |
8170 | |
8156 | ; |
8171 | ; |
8157 | return 0; |
8172 | return 0; |
8158 | } |
8173 | } |
… | |
… | |
8172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8173 | (exit $ac_status); } && { |
8188 | (exit $ac_status); } && { |
8174 | test -z "$ac_cxx_werror_flag" || |
8189 | test -z "$ac_cxx_werror_flag" || |
8175 | test ! -s conftest.err |
8190 | test ! -s conftest.err |
8176 | } && test -s conftest.$ac_objext; then |
8191 | } && test -s conftest.$ac_objext; then |
8177 | ac_hi=$ac_mid |
8192 | case $ac_type in |
|
|
8193 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8194 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8195 | esac |
|
|
8196 | |
8178 | else |
8197 | else |
8179 | echo "$as_me: failed program was:" >&5 |
8198 | echo "$as_me: failed program was:" >&5 |
8180 | sed 's/^/| /' conftest.$ac_ext >&5 |
8199 | sed 's/^/| /' conftest.$ac_ext >&5 |
8181 | |
8200 | |
8182 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8201 | |
8183 | fi |
8202 | fi |
8184 | |
8203 | |
8185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8186 | done |
8205 | test "$ac_cv_c_uint32_t" != no && break |
8187 | case $ac_lo in |
8206 | done |
8188 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
8189 | '') if test "$ac_cv_type_short" = yes; then |
|
|
8190 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8191 | See \`config.log' for more details." >&5 |
|
|
8192 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8193 | See \`config.log' for more details." >&2;} |
|
|
8194 | { (exit 77); exit 77; }; } |
|
|
8195 | else |
|
|
8196 | ac_cv_sizeof_short=0 |
|
|
8197 | fi ;; |
|
|
8198 | esac |
|
|
8199 | else |
|
|
8200 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8201 | /* confdefs.h. */ |
|
|
8202 | _ACEOF |
|
|
8203 | cat confdefs.h >>conftest.$ac_ext |
|
|
8204 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8205 | /* end confdefs.h. */ |
|
|
8206 | $ac_includes_default |
|
|
8207 | typedef short ac__type_sizeof_; |
|
|
8208 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8209 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8210 | #include <stdio.h> |
|
|
8211 | #include <stdlib.h> |
|
|
8212 | int |
|
|
8213 | main () |
|
|
8214 | { |
|
|
8215 | |
|
|
8216 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8217 | if (! f) |
|
|
8218 | return 1; |
|
|
8219 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8220 | { |
|
|
8221 | long int i = longval (); |
|
|
8222 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8223 | return 1; |
|
|
8224 | fprintf (f, "%ld\n", i); |
|
|
8225 | } |
|
|
8226 | else |
|
|
8227 | { |
|
|
8228 | unsigned long int i = ulongval (); |
|
|
8229 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8230 | return 1; |
|
|
8231 | fprintf (f, "%lu\n", i); |
|
|
8232 | } |
|
|
8233 | return ferror (f) || fclose (f) != 0; |
|
|
8234 | |
|
|
8235 | ; |
|
|
8236 | return 0; |
|
|
8237 | } |
|
|
8238 | _ACEOF |
|
|
8239 | rm -f conftest$ac_exeext |
|
|
8240 | if { (ac_try="$ac_link" |
|
|
8241 | case "(($ac_try" in |
|
|
8242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8243 | *) ac_try_echo=$ac_try;; |
|
|
8244 | esac |
|
|
8245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8246 | (eval "$ac_link") 2>&5 |
|
|
8247 | ac_status=$? |
|
|
8248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8249 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8250 | { (case "(($ac_try" in |
|
|
8251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8252 | *) ac_try_echo=$ac_try;; |
|
|
8253 | esac |
|
|
8254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8255 | (eval "$ac_try") 2>&5 |
|
|
8256 | ac_status=$? |
|
|
8257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8258 | (exit $ac_status); }; }; then |
|
|
8259 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
8260 | else |
|
|
8261 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8262 | echo "$as_me: failed program was:" >&5 |
|
|
8263 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8264 | |
|
|
8265 | ( exit $ac_status ) |
|
|
8266 | if test "$ac_cv_type_short" = yes; then |
|
|
8267 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8268 | See \`config.log' for more details." >&5 |
|
|
8269 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8270 | See \`config.log' for more details." >&2;} |
|
|
8271 | { (exit 77); exit 77; }; } |
|
|
8272 | else |
|
|
8273 | ac_cv_sizeof_short=0 |
|
|
8274 | fi |
|
|
8275 | fi |
8207 | fi |
8276 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8277 | fi |
|
|
8278 | rm -f conftest.val |
|
|
8279 | fi |
|
|
8280 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8208 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8281 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8209 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8210 | case $ac_cv_c_uint32_t in #( |
|
|
8211 | no|yes) ;; #( |
|
|
8212 | *) |
8282 | |
8213 | |
|
|
8214 | cat >>confdefs.h <<\_ACEOF |
|
|
8215 | #define _UINT32_T 1 |
|
|
8216 | _ACEOF |
8283 | |
8217 | |
8284 | |
8218 | |
8285 | cat >>confdefs.h <<_ACEOF |
8219 | cat >>confdefs.h <<_ACEOF |
8286 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8220 | #define uint32_t $ac_cv_c_uint32_t |
8287 | _ACEOF |
8221 | _ACEOF |
8288 | |
8222 | ;; |
8289 | |
|
|
8290 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
8291 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
8292 | if test "${ac_cv_type_int+set}" = set; then |
|
|
8293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8294 | else |
|
|
8295 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8296 | /* confdefs.h. */ |
|
|
8297 | _ACEOF |
|
|
8298 | cat confdefs.h >>conftest.$ac_ext |
|
|
8299 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8300 | /* end confdefs.h. */ |
|
|
8301 | $ac_includes_default |
|
|
8302 | typedef int ac__type_new_; |
|
|
8303 | int |
|
|
8304 | main () |
|
|
8305 | { |
|
|
8306 | if ((ac__type_new_ *) 0) |
|
|
8307 | return 0; |
|
|
8308 | if (sizeof (ac__type_new_)) |
|
|
8309 | return 0; |
|
|
8310 | ; |
|
|
8311 | return 0; |
|
|
8312 | } |
|
|
8313 | _ACEOF |
|
|
8314 | rm -f conftest.$ac_objext |
|
|
8315 | if { (ac_try="$ac_compile" |
|
|
8316 | case "(($ac_try" in |
|
|
8317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8318 | *) ac_try_echo=$ac_try;; |
|
|
8319 | esac |
8223 | esac |
8320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8321 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8322 | ac_status=$? |
|
|
8323 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8324 | rm -f conftest.er1 |
|
|
8325 | cat conftest.err >&5 |
|
|
8326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8327 | (exit $ac_status); } && { |
|
|
8328 | test -z "$ac_cxx_werror_flag" || |
|
|
8329 | test ! -s conftest.err |
|
|
8330 | } && test -s conftest.$ac_objext; then |
|
|
8331 | ac_cv_type_int=yes |
|
|
8332 | else |
|
|
8333 | echo "$as_me: failed program was:" >&5 |
|
|
8334 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8335 | |
|
|
8336 | ac_cv_type_int=no |
|
|
8337 | fi |
|
|
8338 | |
|
|
8339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8340 | fi |
|
|
8341 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8342 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8343 | |
|
|
8344 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8345 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8346 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8347 | # This bug is HP SR number 8606223364. |
|
|
8348 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8349 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8350 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8352 | else |
|
|
8353 | if test "$cross_compiling" = yes; then |
|
|
8354 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8355 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8356 | /* confdefs.h. */ |
|
|
8357 | _ACEOF |
|
|
8358 | cat confdefs.h >>conftest.$ac_ext |
|
|
8359 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8360 | /* end confdefs.h. */ |
|
|
8361 | $ac_includes_default |
|
|
8362 | typedef int ac__type_sizeof_; |
|
|
8363 | int |
|
|
8364 | main () |
|
|
8365 | { |
|
|
8366 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8367 | test_array [0] = 0 |
|
|
8368 | |
|
|
8369 | ; |
|
|
8370 | return 0; |
|
|
8371 | } |
|
|
8372 | _ACEOF |
|
|
8373 | rm -f conftest.$ac_objext |
|
|
8374 | if { (ac_try="$ac_compile" |
|
|
8375 | case "(($ac_try" in |
|
|
8376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8377 | *) ac_try_echo=$ac_try;; |
|
|
8378 | esac |
|
|
8379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8380 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8381 | ac_status=$? |
|
|
8382 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8383 | rm -f conftest.er1 |
|
|
8384 | cat conftest.err >&5 |
|
|
8385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8386 | (exit $ac_status); } && { |
|
|
8387 | test -z "$ac_cxx_werror_flag" || |
|
|
8388 | test ! -s conftest.err |
|
|
8389 | } && test -s conftest.$ac_objext; then |
|
|
8390 | ac_lo=0 ac_mid=0 |
|
|
8391 | while :; do |
|
|
8392 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8393 | /* confdefs.h. */ |
|
|
8394 | _ACEOF |
|
|
8395 | cat confdefs.h >>conftest.$ac_ext |
|
|
8396 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8397 | /* end confdefs.h. */ |
|
|
8398 | $ac_includes_default |
|
|
8399 | typedef int ac__type_sizeof_; |
|
|
8400 | int |
|
|
8401 | main () |
|
|
8402 | { |
|
|
8403 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8404 | test_array [0] = 0 |
|
|
8405 | |
|
|
8406 | ; |
|
|
8407 | return 0; |
|
|
8408 | } |
|
|
8409 | _ACEOF |
|
|
8410 | rm -f conftest.$ac_objext |
|
|
8411 | if { (ac_try="$ac_compile" |
|
|
8412 | case "(($ac_try" in |
|
|
8413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8414 | *) ac_try_echo=$ac_try;; |
|
|
8415 | esac |
|
|
8416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8417 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8418 | ac_status=$? |
|
|
8419 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8420 | rm -f conftest.er1 |
|
|
8421 | cat conftest.err >&5 |
|
|
8422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8423 | (exit $ac_status); } && { |
|
|
8424 | test -z "$ac_cxx_werror_flag" || |
|
|
8425 | test ! -s conftest.err |
|
|
8426 | } && test -s conftest.$ac_objext; then |
|
|
8427 | ac_hi=$ac_mid; break |
|
|
8428 | else |
|
|
8429 | echo "$as_me: failed program was:" >&5 |
|
|
8430 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8431 | |
|
|
8432 | ac_lo=`expr $ac_mid + 1` |
|
|
8433 | if test $ac_lo -le $ac_mid; then |
|
|
8434 | ac_lo= ac_hi= |
|
|
8435 | break |
|
|
8436 | fi |
|
|
8437 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8438 | fi |
|
|
8439 | |
|
|
8440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8441 | done |
|
|
8442 | else |
|
|
8443 | echo "$as_me: failed program was:" >&5 |
|
|
8444 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8445 | |
|
|
8446 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8447 | /* confdefs.h. */ |
|
|
8448 | _ACEOF |
|
|
8449 | cat confdefs.h >>conftest.$ac_ext |
|
|
8450 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8451 | /* end confdefs.h. */ |
|
|
8452 | $ac_includes_default |
|
|
8453 | typedef int ac__type_sizeof_; |
|
|
8454 | int |
|
|
8455 | main () |
|
|
8456 | { |
|
|
8457 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8458 | test_array [0] = 0 |
|
|
8459 | |
|
|
8460 | ; |
|
|
8461 | return 0; |
|
|
8462 | } |
|
|
8463 | _ACEOF |
|
|
8464 | rm -f conftest.$ac_objext |
|
|
8465 | if { (ac_try="$ac_compile" |
|
|
8466 | case "(($ac_try" in |
|
|
8467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8468 | *) ac_try_echo=$ac_try;; |
|
|
8469 | esac |
|
|
8470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8471 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8472 | ac_status=$? |
|
|
8473 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8474 | rm -f conftest.er1 |
|
|
8475 | cat conftest.err >&5 |
|
|
8476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8477 | (exit $ac_status); } && { |
|
|
8478 | test -z "$ac_cxx_werror_flag" || |
|
|
8479 | test ! -s conftest.err |
|
|
8480 | } && test -s conftest.$ac_objext; then |
|
|
8481 | ac_hi=-1 ac_mid=-1 |
|
|
8482 | while :; do |
|
|
8483 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8484 | /* confdefs.h. */ |
|
|
8485 | _ACEOF |
|
|
8486 | cat confdefs.h >>conftest.$ac_ext |
|
|
8487 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8488 | /* end confdefs.h. */ |
|
|
8489 | $ac_includes_default |
|
|
8490 | typedef int ac__type_sizeof_; |
|
|
8491 | int |
|
|
8492 | main () |
|
|
8493 | { |
|
|
8494 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8495 | test_array [0] = 0 |
|
|
8496 | |
|
|
8497 | ; |
|
|
8498 | return 0; |
|
|
8499 | } |
|
|
8500 | _ACEOF |
|
|
8501 | rm -f conftest.$ac_objext |
|
|
8502 | if { (ac_try="$ac_compile" |
|
|
8503 | case "(($ac_try" in |
|
|
8504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8505 | *) ac_try_echo=$ac_try;; |
|
|
8506 | esac |
|
|
8507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8508 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8509 | ac_status=$? |
|
|
8510 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8511 | rm -f conftest.er1 |
|
|
8512 | cat conftest.err >&5 |
|
|
8513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8514 | (exit $ac_status); } && { |
|
|
8515 | test -z "$ac_cxx_werror_flag" || |
|
|
8516 | test ! -s conftest.err |
|
|
8517 | } && test -s conftest.$ac_objext; then |
|
|
8518 | ac_lo=$ac_mid; break |
|
|
8519 | else |
|
|
8520 | echo "$as_me: failed program was:" >&5 |
|
|
8521 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8522 | |
|
|
8523 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8524 | if test $ac_mid -le $ac_hi; then |
|
|
8525 | ac_lo= ac_hi= |
|
|
8526 | break |
|
|
8527 | fi |
|
|
8528 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8529 | fi |
|
|
8530 | |
|
|
8531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8532 | done |
|
|
8533 | else |
|
|
8534 | echo "$as_me: failed program was:" >&5 |
|
|
8535 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8536 | |
|
|
8537 | ac_lo= ac_hi= |
|
|
8538 | fi |
|
|
8539 | |
|
|
8540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8541 | fi |
|
|
8542 | |
|
|
8543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8544 | # Binary search between lo and hi bounds. |
|
|
8545 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8546 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8547 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8548 | /* confdefs.h. */ |
|
|
8549 | _ACEOF |
|
|
8550 | cat confdefs.h >>conftest.$ac_ext |
|
|
8551 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8552 | /* end confdefs.h. */ |
|
|
8553 | $ac_includes_default |
|
|
8554 | typedef int ac__type_sizeof_; |
|
|
8555 | int |
|
|
8556 | main () |
|
|
8557 | { |
|
|
8558 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8559 | test_array [0] = 0 |
|
|
8560 | |
|
|
8561 | ; |
|
|
8562 | return 0; |
|
|
8563 | } |
|
|
8564 | _ACEOF |
|
|
8565 | rm -f conftest.$ac_objext |
|
|
8566 | if { (ac_try="$ac_compile" |
|
|
8567 | case "(($ac_try" in |
|
|
8568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8569 | *) ac_try_echo=$ac_try;; |
|
|
8570 | esac |
|
|
8571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8572 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8573 | ac_status=$? |
|
|
8574 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8575 | rm -f conftest.er1 |
|
|
8576 | cat conftest.err >&5 |
|
|
8577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8578 | (exit $ac_status); } && { |
|
|
8579 | test -z "$ac_cxx_werror_flag" || |
|
|
8580 | test ! -s conftest.err |
|
|
8581 | } && test -s conftest.$ac_objext; then |
|
|
8582 | ac_hi=$ac_mid |
|
|
8583 | else |
|
|
8584 | echo "$as_me: failed program was:" >&5 |
|
|
8585 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8586 | |
|
|
8587 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8588 | fi |
|
|
8589 | |
|
|
8590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8591 | done |
|
|
8592 | case $ac_lo in |
|
|
8593 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8594 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8595 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8596 | See \`config.log' for more details." >&5 |
|
|
8597 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8598 | See \`config.log' for more details." >&2;} |
|
|
8599 | { (exit 77); exit 77; }; } |
|
|
8600 | else |
|
|
8601 | ac_cv_sizeof_int=0 |
|
|
8602 | fi ;; |
|
|
8603 | esac |
|
|
8604 | else |
|
|
8605 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8606 | /* confdefs.h. */ |
|
|
8607 | _ACEOF |
|
|
8608 | cat confdefs.h >>conftest.$ac_ext |
|
|
8609 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8610 | /* end confdefs.h. */ |
|
|
8611 | $ac_includes_default |
|
|
8612 | typedef int ac__type_sizeof_; |
|
|
8613 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8614 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8615 | #include <stdio.h> |
|
|
8616 | #include <stdlib.h> |
|
|
8617 | int |
|
|
8618 | main () |
|
|
8619 | { |
|
|
8620 | |
|
|
8621 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8622 | if (! f) |
|
|
8623 | return 1; |
|
|
8624 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8625 | { |
|
|
8626 | long int i = longval (); |
|
|
8627 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8628 | return 1; |
|
|
8629 | fprintf (f, "%ld\n", i); |
|
|
8630 | } |
|
|
8631 | else |
|
|
8632 | { |
|
|
8633 | unsigned long int i = ulongval (); |
|
|
8634 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8635 | return 1; |
|
|
8636 | fprintf (f, "%lu\n", i); |
|
|
8637 | } |
|
|
8638 | return ferror (f) || fclose (f) != 0; |
|
|
8639 | |
|
|
8640 | ; |
|
|
8641 | return 0; |
|
|
8642 | } |
|
|
8643 | _ACEOF |
|
|
8644 | rm -f conftest$ac_exeext |
|
|
8645 | if { (ac_try="$ac_link" |
|
|
8646 | case "(($ac_try" in |
|
|
8647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8648 | *) ac_try_echo=$ac_try;; |
|
|
8649 | esac |
|
|
8650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8651 | (eval "$ac_link") 2>&5 |
|
|
8652 | ac_status=$? |
|
|
8653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8654 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8655 | { (case "(($ac_try" in |
|
|
8656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8657 | *) ac_try_echo=$ac_try;; |
|
|
8658 | esac |
|
|
8659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8660 | (eval "$ac_try") 2>&5 |
|
|
8661 | ac_status=$? |
|
|
8662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8663 | (exit $ac_status); }; }; then |
|
|
8664 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8665 | else |
|
|
8666 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8667 | echo "$as_me: failed program was:" >&5 |
|
|
8668 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8669 | |
|
|
8670 | ( exit $ac_status ) |
|
|
8671 | if test "$ac_cv_type_int" = yes; then |
|
|
8672 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8673 | See \`config.log' for more details." >&5 |
|
|
8674 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8675 | See \`config.log' for more details." >&2;} |
|
|
8676 | { (exit 77); exit 77; }; } |
|
|
8677 | else |
|
|
8678 | ac_cv_sizeof_int=0 |
|
|
8679 | fi |
|
|
8680 | fi |
|
|
8681 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8682 | fi |
|
|
8683 | rm -f conftest.val |
|
|
8684 | fi |
|
|
8685 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
8686 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
8687 | |
|
|
8688 | |
|
|
8689 | |
|
|
8690 | cat >>confdefs.h <<_ACEOF |
|
|
8691 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
8692 | _ACEOF |
|
|
8693 | |
|
|
8694 | |
|
|
8695 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
8696 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
8697 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
8698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8699 | else |
|
|
8700 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8701 | /* confdefs.h. */ |
|
|
8702 | _ACEOF |
|
|
8703 | cat confdefs.h >>conftest.$ac_ext |
|
|
8704 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8705 | /* end confdefs.h. */ |
|
|
8706 | $ac_includes_default |
|
|
8707 | typedef long long ac__type_new_; |
|
|
8708 | int |
|
|
8709 | main () |
|
|
8710 | { |
|
|
8711 | if ((ac__type_new_ *) 0) |
|
|
8712 | return 0; |
|
|
8713 | if (sizeof (ac__type_new_)) |
|
|
8714 | return 0; |
|
|
8715 | ; |
|
|
8716 | return 0; |
|
|
8717 | } |
|
|
8718 | _ACEOF |
|
|
8719 | rm -f conftest.$ac_objext |
|
|
8720 | if { (ac_try="$ac_compile" |
|
|
8721 | case "(($ac_try" in |
|
|
8722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8723 | *) ac_try_echo=$ac_try;; |
|
|
8724 | esac |
|
|
8725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8726 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8727 | ac_status=$? |
|
|
8728 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8729 | rm -f conftest.er1 |
|
|
8730 | cat conftest.err >&5 |
|
|
8731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8732 | (exit $ac_status); } && { |
|
|
8733 | test -z "$ac_cxx_werror_flag" || |
|
|
8734 | test ! -s conftest.err |
|
|
8735 | } && test -s conftest.$ac_objext; then |
|
|
8736 | ac_cv_type_long_long=yes |
|
|
8737 | else |
|
|
8738 | echo "$as_me: failed program was:" >&5 |
|
|
8739 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8740 | |
|
|
8741 | ac_cv_type_long_long=no |
|
|
8742 | fi |
|
|
8743 | |
|
|
8744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8745 | fi |
|
|
8746 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
8747 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
8748 | |
|
|
8749 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8750 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8751 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8752 | # This bug is HP SR number 8606223364. |
|
|
8753 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
8754 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
8755 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
8756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8757 | else |
|
|
8758 | if test "$cross_compiling" = yes; then |
|
|
8759 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8760 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8761 | /* confdefs.h. */ |
|
|
8762 | _ACEOF |
|
|
8763 | cat confdefs.h >>conftest.$ac_ext |
|
|
8764 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8765 | /* end confdefs.h. */ |
|
|
8766 | $ac_includes_default |
|
|
8767 | typedef long long ac__type_sizeof_; |
|
|
8768 | int |
|
|
8769 | main () |
|
|
8770 | { |
|
|
8771 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8772 | test_array [0] = 0 |
|
|
8773 | |
|
|
8774 | ; |
|
|
8775 | return 0; |
|
|
8776 | } |
|
|
8777 | _ACEOF |
|
|
8778 | rm -f conftest.$ac_objext |
|
|
8779 | if { (ac_try="$ac_compile" |
|
|
8780 | case "(($ac_try" in |
|
|
8781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8782 | *) ac_try_echo=$ac_try;; |
|
|
8783 | esac |
|
|
8784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8785 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8786 | ac_status=$? |
|
|
8787 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8788 | rm -f conftest.er1 |
|
|
8789 | cat conftest.err >&5 |
|
|
8790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8791 | (exit $ac_status); } && { |
|
|
8792 | test -z "$ac_cxx_werror_flag" || |
|
|
8793 | test ! -s conftest.err |
|
|
8794 | } && test -s conftest.$ac_objext; then |
|
|
8795 | ac_lo=0 ac_mid=0 |
|
|
8796 | while :; do |
|
|
8797 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8798 | /* confdefs.h. */ |
|
|
8799 | _ACEOF |
|
|
8800 | cat confdefs.h >>conftest.$ac_ext |
|
|
8801 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8802 | /* end confdefs.h. */ |
|
|
8803 | $ac_includes_default |
|
|
8804 | typedef long long ac__type_sizeof_; |
|
|
8805 | int |
|
|
8806 | main () |
|
|
8807 | { |
|
|
8808 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8809 | test_array [0] = 0 |
|
|
8810 | |
|
|
8811 | ; |
|
|
8812 | return 0; |
|
|
8813 | } |
|
|
8814 | _ACEOF |
|
|
8815 | rm -f conftest.$ac_objext |
|
|
8816 | if { (ac_try="$ac_compile" |
|
|
8817 | case "(($ac_try" in |
|
|
8818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8819 | *) ac_try_echo=$ac_try;; |
|
|
8820 | esac |
|
|
8821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8822 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8823 | ac_status=$? |
|
|
8824 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8825 | rm -f conftest.er1 |
|
|
8826 | cat conftest.err >&5 |
|
|
8827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8828 | (exit $ac_status); } && { |
|
|
8829 | test -z "$ac_cxx_werror_flag" || |
|
|
8830 | test ! -s conftest.err |
|
|
8831 | } && test -s conftest.$ac_objext; then |
|
|
8832 | ac_hi=$ac_mid; break |
|
|
8833 | else |
|
|
8834 | echo "$as_me: failed program was:" >&5 |
|
|
8835 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8836 | |
|
|
8837 | ac_lo=`expr $ac_mid + 1` |
|
|
8838 | if test $ac_lo -le $ac_mid; then |
|
|
8839 | ac_lo= ac_hi= |
|
|
8840 | break |
|
|
8841 | fi |
|
|
8842 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8843 | fi |
|
|
8844 | |
|
|
8845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8846 | done |
|
|
8847 | else |
|
|
8848 | echo "$as_me: failed program was:" >&5 |
|
|
8849 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8850 | |
|
|
8851 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8852 | /* confdefs.h. */ |
|
|
8853 | _ACEOF |
|
|
8854 | cat confdefs.h >>conftest.$ac_ext |
|
|
8855 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8856 | /* end confdefs.h. */ |
|
|
8857 | $ac_includes_default |
|
|
8858 | typedef long long ac__type_sizeof_; |
|
|
8859 | int |
|
|
8860 | main () |
|
|
8861 | { |
|
|
8862 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8863 | test_array [0] = 0 |
|
|
8864 | |
|
|
8865 | ; |
|
|
8866 | return 0; |
|
|
8867 | } |
|
|
8868 | _ACEOF |
|
|
8869 | rm -f conftest.$ac_objext |
|
|
8870 | if { (ac_try="$ac_compile" |
|
|
8871 | case "(($ac_try" in |
|
|
8872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8873 | *) ac_try_echo=$ac_try;; |
|
|
8874 | esac |
|
|
8875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8876 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8877 | ac_status=$? |
|
|
8878 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8879 | rm -f conftest.er1 |
|
|
8880 | cat conftest.err >&5 |
|
|
8881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8882 | (exit $ac_status); } && { |
|
|
8883 | test -z "$ac_cxx_werror_flag" || |
|
|
8884 | test ! -s conftest.err |
|
|
8885 | } && test -s conftest.$ac_objext; then |
|
|
8886 | ac_hi=-1 ac_mid=-1 |
|
|
8887 | while :; do |
|
|
8888 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8889 | /* confdefs.h. */ |
|
|
8890 | _ACEOF |
|
|
8891 | cat confdefs.h >>conftest.$ac_ext |
|
|
8892 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8893 | /* end confdefs.h. */ |
|
|
8894 | $ac_includes_default |
|
|
8895 | typedef long long ac__type_sizeof_; |
|
|
8896 | int |
|
|
8897 | main () |
|
|
8898 | { |
|
|
8899 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8900 | test_array [0] = 0 |
|
|
8901 | |
|
|
8902 | ; |
|
|
8903 | return 0; |
|
|
8904 | } |
|
|
8905 | _ACEOF |
|
|
8906 | rm -f conftest.$ac_objext |
|
|
8907 | if { (ac_try="$ac_compile" |
|
|
8908 | case "(($ac_try" in |
|
|
8909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8910 | *) ac_try_echo=$ac_try;; |
|
|
8911 | esac |
|
|
8912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8913 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8914 | ac_status=$? |
|
|
8915 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8916 | rm -f conftest.er1 |
|
|
8917 | cat conftest.err >&5 |
|
|
8918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8919 | (exit $ac_status); } && { |
|
|
8920 | test -z "$ac_cxx_werror_flag" || |
|
|
8921 | test ! -s conftest.err |
|
|
8922 | } && test -s conftest.$ac_objext; then |
|
|
8923 | ac_lo=$ac_mid; break |
|
|
8924 | else |
|
|
8925 | echo "$as_me: failed program was:" >&5 |
|
|
8926 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8927 | |
|
|
8928 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8929 | if test $ac_mid -le $ac_hi; then |
|
|
8930 | ac_lo= ac_hi= |
|
|
8931 | break |
|
|
8932 | fi |
|
|
8933 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8934 | fi |
|
|
8935 | |
|
|
8936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8937 | done |
|
|
8938 | else |
|
|
8939 | echo "$as_me: failed program was:" >&5 |
|
|
8940 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8941 | |
|
|
8942 | ac_lo= ac_hi= |
|
|
8943 | fi |
|
|
8944 | |
|
|
8945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8946 | fi |
|
|
8947 | |
|
|
8948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8949 | # Binary search between lo and hi bounds. |
|
|
8950 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8951 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8952 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8953 | /* confdefs.h. */ |
|
|
8954 | _ACEOF |
|
|
8955 | cat confdefs.h >>conftest.$ac_ext |
|
|
8956 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8957 | /* end confdefs.h. */ |
|
|
8958 | $ac_includes_default |
|
|
8959 | typedef long long ac__type_sizeof_; |
|
|
8960 | int |
|
|
8961 | main () |
|
|
8962 | { |
|
|
8963 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8964 | test_array [0] = 0 |
|
|
8965 | |
|
|
8966 | ; |
|
|
8967 | return 0; |
|
|
8968 | } |
|
|
8969 | _ACEOF |
|
|
8970 | rm -f conftest.$ac_objext |
|
|
8971 | if { (ac_try="$ac_compile" |
|
|
8972 | case "(($ac_try" in |
|
|
8973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8974 | *) ac_try_echo=$ac_try;; |
|
|
8975 | esac |
|
|
8976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8977 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8978 | ac_status=$? |
|
|
8979 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8980 | rm -f conftest.er1 |
|
|
8981 | cat conftest.err >&5 |
|
|
8982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8983 | (exit $ac_status); } && { |
|
|
8984 | test -z "$ac_cxx_werror_flag" || |
|
|
8985 | test ! -s conftest.err |
|
|
8986 | } && test -s conftest.$ac_objext; then |
|
|
8987 | ac_hi=$ac_mid |
|
|
8988 | else |
|
|
8989 | echo "$as_me: failed program was:" >&5 |
|
|
8990 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8991 | |
|
|
8992 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8993 | fi |
|
|
8994 | |
|
|
8995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8996 | done |
|
|
8997 | case $ac_lo in |
|
|
8998 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
8999 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
9000 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9001 | See \`config.log' for more details." >&5 |
|
|
9002 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9003 | See \`config.log' for more details." >&2;} |
|
|
9004 | { (exit 77); exit 77; }; } |
|
|
9005 | else |
|
|
9006 | ac_cv_sizeof_long_long=0 |
|
|
9007 | fi ;; |
|
|
9008 | esac |
|
|
9009 | else |
|
|
9010 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9011 | /* confdefs.h. */ |
|
|
9012 | _ACEOF |
|
|
9013 | cat confdefs.h >>conftest.$ac_ext |
|
|
9014 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9015 | /* end confdefs.h. */ |
|
|
9016 | $ac_includes_default |
|
|
9017 | typedef long long ac__type_sizeof_; |
|
|
9018 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9019 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9020 | #include <stdio.h> |
|
|
9021 | #include <stdlib.h> |
|
|
9022 | int |
|
|
9023 | main () |
|
|
9024 | { |
|
|
9025 | |
|
|
9026 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9027 | if (! f) |
|
|
9028 | return 1; |
|
|
9029 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9030 | { |
|
|
9031 | long int i = longval (); |
|
|
9032 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9033 | return 1; |
|
|
9034 | fprintf (f, "%ld\n", i); |
|
|
9035 | } |
|
|
9036 | else |
|
|
9037 | { |
|
|
9038 | unsigned long int i = ulongval (); |
|
|
9039 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9040 | return 1; |
|
|
9041 | fprintf (f, "%lu\n", i); |
|
|
9042 | } |
|
|
9043 | return ferror (f) || fclose (f) != 0; |
|
|
9044 | |
|
|
9045 | ; |
|
|
9046 | return 0; |
|
|
9047 | } |
|
|
9048 | _ACEOF |
|
|
9049 | rm -f conftest$ac_exeext |
|
|
9050 | if { (ac_try="$ac_link" |
|
|
9051 | case "(($ac_try" in |
|
|
9052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9053 | *) ac_try_echo=$ac_try;; |
|
|
9054 | esac |
|
|
9055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9056 | (eval "$ac_link") 2>&5 |
|
|
9057 | ac_status=$? |
|
|
9058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9059 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9060 | { (case "(($ac_try" in |
|
|
9061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9062 | *) ac_try_echo=$ac_try;; |
|
|
9063 | esac |
|
|
9064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9065 | (eval "$ac_try") 2>&5 |
|
|
9066 | ac_status=$? |
|
|
9067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9068 | (exit $ac_status); }; }; then |
|
|
9069 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
9070 | else |
|
|
9071 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9072 | echo "$as_me: failed program was:" >&5 |
|
|
9073 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9074 | |
|
|
9075 | ( exit $ac_status ) |
|
|
9076 | if test "$ac_cv_type_long_long" = yes; then |
|
|
9077 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9078 | See \`config.log' for more details." >&5 |
|
|
9079 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9080 | See \`config.log' for more details." >&2;} |
|
|
9081 | { (exit 77); exit 77; }; } |
|
|
9082 | else |
|
|
9083 | ac_cv_sizeof_long_long=0 |
|
|
9084 | fi |
|
|
9085 | fi |
|
|
9086 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9087 | fi |
|
|
9088 | rm -f conftest.val |
|
|
9089 | fi |
|
|
9090 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
9091 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
9092 | |
|
|
9093 | |
|
|
9094 | |
|
|
9095 | cat >>confdefs.h <<_ACEOF |
|
|
9096 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
9097 | _ACEOF |
|
|
9098 | |
|
|
9099 | |
|
|
9100 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
9101 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
9102 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
9103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9104 | else |
|
|
9105 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9106 | /* confdefs.h. */ |
|
|
9107 | _ACEOF |
|
|
9108 | cat confdefs.h >>conftest.$ac_ext |
|
|
9109 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9110 | /* end confdefs.h. */ |
|
|
9111 | $ac_includes_default |
|
|
9112 | typedef int * ac__type_new_; |
|
|
9113 | int |
|
|
9114 | main () |
|
|
9115 | { |
|
|
9116 | if ((ac__type_new_ *) 0) |
|
|
9117 | return 0; |
|
|
9118 | if (sizeof (ac__type_new_)) |
|
|
9119 | return 0; |
|
|
9120 | ; |
|
|
9121 | return 0; |
|
|
9122 | } |
|
|
9123 | _ACEOF |
|
|
9124 | rm -f conftest.$ac_objext |
|
|
9125 | if { (ac_try="$ac_compile" |
|
|
9126 | case "(($ac_try" in |
|
|
9127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9128 | *) ac_try_echo=$ac_try;; |
|
|
9129 | esac |
|
|
9130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9131 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9132 | ac_status=$? |
|
|
9133 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9134 | rm -f conftest.er1 |
|
|
9135 | cat conftest.err >&5 |
|
|
9136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9137 | (exit $ac_status); } && { |
|
|
9138 | test -z "$ac_cxx_werror_flag" || |
|
|
9139 | test ! -s conftest.err |
|
|
9140 | } && test -s conftest.$ac_objext; then |
|
|
9141 | ac_cv_type_int_p=yes |
|
|
9142 | else |
|
|
9143 | echo "$as_me: failed program was:" >&5 |
|
|
9144 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9145 | |
|
|
9146 | ac_cv_type_int_p=no |
|
|
9147 | fi |
|
|
9148 | |
|
|
9149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9150 | fi |
|
|
9151 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
9152 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
9153 | |
|
|
9154 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9155 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9156 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9157 | # This bug is HP SR number 8606223364. |
|
|
9158 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
9159 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
9160 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
9161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9162 | else |
|
|
9163 | if test "$cross_compiling" = yes; then |
|
|
9164 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9165 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9166 | /* confdefs.h. */ |
|
|
9167 | _ACEOF |
|
|
9168 | cat confdefs.h >>conftest.$ac_ext |
|
|
9169 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9170 | /* end confdefs.h. */ |
|
|
9171 | $ac_includes_default |
|
|
9172 | typedef int * ac__type_sizeof_; |
|
|
9173 | int |
|
|
9174 | main () |
|
|
9175 | { |
|
|
9176 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9177 | test_array [0] = 0 |
|
|
9178 | |
|
|
9179 | ; |
|
|
9180 | return 0; |
|
|
9181 | } |
|
|
9182 | _ACEOF |
|
|
9183 | rm -f conftest.$ac_objext |
|
|
9184 | if { (ac_try="$ac_compile" |
|
|
9185 | case "(($ac_try" in |
|
|
9186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9187 | *) ac_try_echo=$ac_try;; |
|
|
9188 | esac |
|
|
9189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9190 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9191 | ac_status=$? |
|
|
9192 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9193 | rm -f conftest.er1 |
|
|
9194 | cat conftest.err >&5 |
|
|
9195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9196 | (exit $ac_status); } && { |
|
|
9197 | test -z "$ac_cxx_werror_flag" || |
|
|
9198 | test ! -s conftest.err |
|
|
9199 | } && test -s conftest.$ac_objext; then |
|
|
9200 | ac_lo=0 ac_mid=0 |
|
|
9201 | while :; do |
|
|
9202 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9203 | /* confdefs.h. */ |
|
|
9204 | _ACEOF |
|
|
9205 | cat confdefs.h >>conftest.$ac_ext |
|
|
9206 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9207 | /* end confdefs.h. */ |
|
|
9208 | $ac_includes_default |
|
|
9209 | typedef int * ac__type_sizeof_; |
|
|
9210 | int |
|
|
9211 | main () |
|
|
9212 | { |
|
|
9213 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9214 | test_array [0] = 0 |
|
|
9215 | |
|
|
9216 | ; |
|
|
9217 | return 0; |
|
|
9218 | } |
|
|
9219 | _ACEOF |
|
|
9220 | rm -f conftest.$ac_objext |
|
|
9221 | if { (ac_try="$ac_compile" |
|
|
9222 | case "(($ac_try" in |
|
|
9223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9224 | *) ac_try_echo=$ac_try;; |
|
|
9225 | esac |
|
|
9226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9227 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9228 | ac_status=$? |
|
|
9229 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9230 | rm -f conftest.er1 |
|
|
9231 | cat conftest.err >&5 |
|
|
9232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9233 | (exit $ac_status); } && { |
|
|
9234 | test -z "$ac_cxx_werror_flag" || |
|
|
9235 | test ! -s conftest.err |
|
|
9236 | } && test -s conftest.$ac_objext; then |
|
|
9237 | ac_hi=$ac_mid; break |
|
|
9238 | else |
|
|
9239 | echo "$as_me: failed program was:" >&5 |
|
|
9240 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9241 | |
|
|
9242 | ac_lo=`expr $ac_mid + 1` |
|
|
9243 | if test $ac_lo -le $ac_mid; then |
|
|
9244 | ac_lo= ac_hi= |
|
|
9245 | break |
|
|
9246 | fi |
|
|
9247 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9248 | fi |
|
|
9249 | |
|
|
9250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9251 | done |
|
|
9252 | else |
|
|
9253 | echo "$as_me: failed program was:" >&5 |
|
|
9254 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9255 | |
|
|
9256 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9257 | /* confdefs.h. */ |
|
|
9258 | _ACEOF |
|
|
9259 | cat confdefs.h >>conftest.$ac_ext |
|
|
9260 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9261 | /* end confdefs.h. */ |
|
|
9262 | $ac_includes_default |
|
|
9263 | typedef int * ac__type_sizeof_; |
|
|
9264 | int |
|
|
9265 | main () |
|
|
9266 | { |
|
|
9267 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9268 | test_array [0] = 0 |
|
|
9269 | |
|
|
9270 | ; |
|
|
9271 | return 0; |
|
|
9272 | } |
|
|
9273 | _ACEOF |
|
|
9274 | rm -f conftest.$ac_objext |
|
|
9275 | if { (ac_try="$ac_compile" |
|
|
9276 | case "(($ac_try" in |
|
|
9277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9278 | *) ac_try_echo=$ac_try;; |
|
|
9279 | esac |
|
|
9280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9281 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9282 | ac_status=$? |
|
|
9283 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9284 | rm -f conftest.er1 |
|
|
9285 | cat conftest.err >&5 |
|
|
9286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9287 | (exit $ac_status); } && { |
|
|
9288 | test -z "$ac_cxx_werror_flag" || |
|
|
9289 | test ! -s conftest.err |
|
|
9290 | } && test -s conftest.$ac_objext; then |
|
|
9291 | ac_hi=-1 ac_mid=-1 |
|
|
9292 | while :; do |
|
|
9293 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9294 | /* confdefs.h. */ |
|
|
9295 | _ACEOF |
|
|
9296 | cat confdefs.h >>conftest.$ac_ext |
|
|
9297 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9298 | /* end confdefs.h. */ |
|
|
9299 | $ac_includes_default |
|
|
9300 | typedef int * ac__type_sizeof_; |
|
|
9301 | int |
|
|
9302 | main () |
|
|
9303 | { |
|
|
9304 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9305 | test_array [0] = 0 |
|
|
9306 | |
|
|
9307 | ; |
|
|
9308 | return 0; |
|
|
9309 | } |
|
|
9310 | _ACEOF |
|
|
9311 | rm -f conftest.$ac_objext |
|
|
9312 | if { (ac_try="$ac_compile" |
|
|
9313 | case "(($ac_try" in |
|
|
9314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9315 | *) ac_try_echo=$ac_try;; |
|
|
9316 | esac |
|
|
9317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9318 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9319 | ac_status=$? |
|
|
9320 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9321 | rm -f conftest.er1 |
|
|
9322 | cat conftest.err >&5 |
|
|
9323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9324 | (exit $ac_status); } && { |
|
|
9325 | test -z "$ac_cxx_werror_flag" || |
|
|
9326 | test ! -s conftest.err |
|
|
9327 | } && test -s conftest.$ac_objext; then |
|
|
9328 | ac_lo=$ac_mid; break |
|
|
9329 | else |
|
|
9330 | echo "$as_me: failed program was:" >&5 |
|
|
9331 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9332 | |
|
|
9333 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9334 | if test $ac_mid -le $ac_hi; then |
|
|
9335 | ac_lo= ac_hi= |
|
|
9336 | break |
|
|
9337 | fi |
|
|
9338 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9339 | fi |
|
|
9340 | |
|
|
9341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9342 | done |
|
|
9343 | else |
|
|
9344 | echo "$as_me: failed program was:" >&5 |
|
|
9345 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9346 | |
|
|
9347 | ac_lo= ac_hi= |
|
|
9348 | fi |
|
|
9349 | |
|
|
9350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9351 | fi |
|
|
9352 | |
|
|
9353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9354 | # Binary search between lo and hi bounds. |
|
|
9355 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9356 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9357 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9358 | /* confdefs.h. */ |
|
|
9359 | _ACEOF |
|
|
9360 | cat confdefs.h >>conftest.$ac_ext |
|
|
9361 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9362 | /* end confdefs.h. */ |
|
|
9363 | $ac_includes_default |
|
|
9364 | typedef int * ac__type_sizeof_; |
|
|
9365 | int |
|
|
9366 | main () |
|
|
9367 | { |
|
|
9368 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9369 | test_array [0] = 0 |
|
|
9370 | |
|
|
9371 | ; |
|
|
9372 | return 0; |
|
|
9373 | } |
|
|
9374 | _ACEOF |
|
|
9375 | rm -f conftest.$ac_objext |
|
|
9376 | if { (ac_try="$ac_compile" |
|
|
9377 | case "(($ac_try" in |
|
|
9378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9379 | *) ac_try_echo=$ac_try;; |
|
|
9380 | esac |
|
|
9381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9382 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9383 | ac_status=$? |
|
|
9384 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9385 | rm -f conftest.er1 |
|
|
9386 | cat conftest.err >&5 |
|
|
9387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9388 | (exit $ac_status); } && { |
|
|
9389 | test -z "$ac_cxx_werror_flag" || |
|
|
9390 | test ! -s conftest.err |
|
|
9391 | } && test -s conftest.$ac_objext; then |
|
|
9392 | ac_hi=$ac_mid |
|
|
9393 | else |
|
|
9394 | echo "$as_me: failed program was:" >&5 |
|
|
9395 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9396 | |
|
|
9397 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9398 | fi |
|
|
9399 | |
|
|
9400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9401 | done |
|
|
9402 | case $ac_lo in |
|
|
9403 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9404 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9405 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9406 | See \`config.log' for more details." >&5 |
|
|
9407 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9408 | See \`config.log' for more details." >&2;} |
|
|
9409 | { (exit 77); exit 77; }; } |
|
|
9410 | else |
|
|
9411 | ac_cv_sizeof_int_p=0 |
|
|
9412 | fi ;; |
|
|
9413 | esac |
|
|
9414 | else |
|
|
9415 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9416 | /* confdefs.h. */ |
|
|
9417 | _ACEOF |
|
|
9418 | cat confdefs.h >>conftest.$ac_ext |
|
|
9419 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9420 | /* end confdefs.h. */ |
|
|
9421 | $ac_includes_default |
|
|
9422 | typedef int * ac__type_sizeof_; |
|
|
9423 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9424 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9425 | #include <stdio.h> |
|
|
9426 | #include <stdlib.h> |
|
|
9427 | int |
|
|
9428 | main () |
|
|
9429 | { |
|
|
9430 | |
|
|
9431 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9432 | if (! f) |
|
|
9433 | return 1; |
|
|
9434 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9435 | { |
|
|
9436 | long int i = longval (); |
|
|
9437 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9438 | return 1; |
|
|
9439 | fprintf (f, "%ld\n", i); |
|
|
9440 | } |
|
|
9441 | else |
|
|
9442 | { |
|
|
9443 | unsigned long int i = ulongval (); |
|
|
9444 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9445 | return 1; |
|
|
9446 | fprintf (f, "%lu\n", i); |
|
|
9447 | } |
|
|
9448 | return ferror (f) || fclose (f) != 0; |
|
|
9449 | |
|
|
9450 | ; |
|
|
9451 | return 0; |
|
|
9452 | } |
|
|
9453 | _ACEOF |
|
|
9454 | rm -f conftest$ac_exeext |
|
|
9455 | if { (ac_try="$ac_link" |
|
|
9456 | case "(($ac_try" in |
|
|
9457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9458 | *) ac_try_echo=$ac_try;; |
|
|
9459 | esac |
|
|
9460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9461 | (eval "$ac_link") 2>&5 |
|
|
9462 | ac_status=$? |
|
|
9463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9464 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9465 | { (case "(($ac_try" in |
|
|
9466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9467 | *) ac_try_echo=$ac_try;; |
|
|
9468 | esac |
|
|
9469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9470 | (eval "$ac_try") 2>&5 |
|
|
9471 | ac_status=$? |
|
|
9472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9473 | (exit $ac_status); }; }; then |
|
|
9474 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9475 | else |
|
|
9476 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9477 | echo "$as_me: failed program was:" >&5 |
|
|
9478 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9479 | |
|
|
9480 | ( exit $ac_status ) |
|
|
9481 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9482 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9483 | See \`config.log' for more details." >&5 |
|
|
9484 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9485 | See \`config.log' for more details." >&2;} |
|
|
9486 | { (exit 77); exit 77; }; } |
|
|
9487 | else |
|
|
9488 | ac_cv_sizeof_int_p=0 |
|
|
9489 | fi |
|
|
9490 | fi |
|
|
9491 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9492 | fi |
|
|
9493 | rm -f conftest.val |
|
|
9494 | fi |
|
|
9495 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9496 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9497 | |
|
|
9498 | |
|
|
9499 | |
|
|
9500 | cat >>confdefs.h <<_ACEOF |
|
|
9501 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9502 | _ACEOF |
|
|
9503 | |
|
|
9504 | |
|
|
9505 | |
|
|
9506 | |
|
|
9507 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9508 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9509 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9511 | else |
|
|
9512 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9513 | /* confdefs.h. */ |
|
|
9514 | _ACEOF |
|
|
9515 | cat confdefs.h >>conftest.$ac_ext |
|
|
9516 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9517 | /* end confdefs.h. */ |
|
|
9518 | #include <stdint.h> |
|
|
9519 | int |
|
|
9520 | main () |
|
|
9521 | { |
|
|
9522 | int16_t dummy; |
|
|
9523 | ; |
|
|
9524 | return 0; |
|
|
9525 | } |
|
|
9526 | _ACEOF |
|
|
9527 | rm -f conftest.$ac_objext |
|
|
9528 | if { (ac_try="$ac_compile" |
|
|
9529 | case "(($ac_try" in |
|
|
9530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9531 | *) ac_try_echo=$ac_try;; |
|
|
9532 | esac |
|
|
9533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9534 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9535 | ac_status=$? |
|
|
9536 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9537 | rm -f conftest.er1 |
|
|
9538 | cat conftest.err >&5 |
|
|
9539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9540 | (exit $ac_status); } && { |
|
|
9541 | test -z "$ac_cxx_werror_flag" || |
|
|
9542 | test ! -s conftest.err |
|
|
9543 | } && test -s conftest.$ac_objext; then |
|
|
9544 | rxvt_cv_int16_t=yes |
|
|
9545 | else |
|
|
9546 | echo "$as_me: failed program was:" >&5 |
|
|
9547 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9548 | |
|
|
9549 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9550 | rxvt_cv_int16_t=" char" |
|
|
9551 | else |
|
|
9552 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9553 | rxvt_cv_int16_t=" short" |
|
|
9554 | else |
|
|
9555 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9556 | rxvt_cv_int16_t=" int" |
|
|
9557 | else |
|
|
9558 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9559 | rxvt_cv_int16_t=" long" |
|
|
9560 | else |
|
|
9561 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9562 | rxvt_cv_int16_t=" long long" |
|
|
9563 | else |
|
|
9564 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9565 | fi |
|
|
9566 | fi |
|
|
9567 | fi |
|
|
9568 | fi |
|
|
9569 | fi |
|
|
9570 | fi |
|
|
9571 | |
|
|
9572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9573 | fi |
|
|
9574 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9575 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9576 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9577 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9578 | else |
|
|
9579 | if test x"" = x; then |
|
|
9580 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9581 | else |
|
|
9582 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9583 | fi |
|
|
9584 | fi |
|
|
9585 | |
|
|
9586 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9587 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9588 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9590 | else |
|
|
9591 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9592 | /* confdefs.h. */ |
|
|
9593 | _ACEOF |
|
|
9594 | cat confdefs.h >>conftest.$ac_ext |
|
|
9595 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9596 | /* end confdefs.h. */ |
|
|
9597 | #include <stdint.h> |
|
|
9598 | int |
|
|
9599 | main () |
|
|
9600 | { |
|
|
9601 | uint16_t dummy; |
|
|
9602 | ; |
|
|
9603 | return 0; |
|
|
9604 | } |
|
|
9605 | _ACEOF |
|
|
9606 | rm -f conftest.$ac_objext |
|
|
9607 | if { (ac_try="$ac_compile" |
|
|
9608 | case "(($ac_try" in |
|
|
9609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9610 | *) ac_try_echo=$ac_try;; |
|
|
9611 | esac |
|
|
9612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9613 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9614 | ac_status=$? |
|
|
9615 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9616 | rm -f conftest.er1 |
|
|
9617 | cat conftest.err >&5 |
|
|
9618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9619 | (exit $ac_status); } && { |
|
|
9620 | test -z "$ac_cxx_werror_flag" || |
|
|
9621 | test ! -s conftest.err |
|
|
9622 | } && test -s conftest.$ac_objext; then |
|
|
9623 | rxvt_cv_uint16_t=yes |
|
|
9624 | else |
|
|
9625 | echo "$as_me: failed program was:" >&5 |
|
|
9626 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9627 | |
|
|
9628 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9629 | rxvt_cv_uint16_t="unsigned char" |
|
|
9630 | else |
|
|
9631 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9632 | rxvt_cv_uint16_t="unsigned short" |
|
|
9633 | else |
|
|
9634 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9635 | rxvt_cv_uint16_t="unsigned int" |
|
|
9636 | else |
|
|
9637 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9638 | rxvt_cv_uint16_t="unsigned long" |
|
|
9639 | else |
|
|
9640 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9641 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9642 | else |
|
|
9643 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9644 | fi |
|
|
9645 | fi |
|
|
9646 | fi |
|
|
9647 | fi |
|
|
9648 | fi |
|
|
9649 | fi |
|
|
9650 | |
|
|
9651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9652 | fi |
|
|
9653 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9654 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
9655 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9656 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9657 | else |
|
|
9658 | if test x"unsigned" = x; then |
|
|
9659 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9660 | else |
|
|
9661 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9662 | fi |
|
|
9663 | fi |
|
|
9664 | |
|
|
9665 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9666 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
9667 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9669 | else |
|
|
9670 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9671 | /* confdefs.h. */ |
|
|
9672 | _ACEOF |
|
|
9673 | cat confdefs.h >>conftest.$ac_ext |
|
|
9674 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9675 | /* end confdefs.h. */ |
|
|
9676 | #include <stdint.h> |
|
|
9677 | int |
|
|
9678 | main () |
|
|
9679 | { |
|
|
9680 | int32_t dummy; |
|
|
9681 | ; |
|
|
9682 | return 0; |
|
|
9683 | } |
|
|
9684 | _ACEOF |
|
|
9685 | rm -f conftest.$ac_objext |
|
|
9686 | if { (ac_try="$ac_compile" |
|
|
9687 | case "(($ac_try" in |
|
|
9688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9689 | *) ac_try_echo=$ac_try;; |
|
|
9690 | esac |
|
|
9691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9692 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9693 | ac_status=$? |
|
|
9694 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9695 | rm -f conftest.er1 |
|
|
9696 | cat conftest.err >&5 |
|
|
9697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9698 | (exit $ac_status); } && { |
|
|
9699 | test -z "$ac_cxx_werror_flag" || |
|
|
9700 | test ! -s conftest.err |
|
|
9701 | } && test -s conftest.$ac_objext; then |
|
|
9702 | rxvt_cv_int32_t=yes |
|
|
9703 | else |
|
|
9704 | echo "$as_me: failed program was:" >&5 |
|
|
9705 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9706 | |
|
|
9707 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9708 | rxvt_cv_int32_t=" char" |
|
|
9709 | else |
|
|
9710 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9711 | rxvt_cv_int32_t=" short" |
|
|
9712 | else |
|
|
9713 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9714 | rxvt_cv_int32_t=" int" |
|
|
9715 | else |
|
|
9716 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9717 | rxvt_cv_int32_t=" long" |
|
|
9718 | else |
|
|
9719 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9720 | rxvt_cv_int32_t=" long long" |
|
|
9721 | else |
|
|
9722 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
9723 | fi |
|
|
9724 | fi |
|
|
9725 | fi |
|
|
9726 | fi |
|
|
9727 | fi |
|
|
9728 | fi |
|
|
9729 | |
|
|
9730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9731 | fi |
|
|
9732 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
9733 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
9734 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
9735 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
9736 | else |
|
|
9737 | if test x"" = x; then |
|
|
9738 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9739 | else |
|
|
9740 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9741 | fi |
|
|
9742 | fi |
|
|
9743 | |
|
|
9744 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
9745 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
9746 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
9747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9748 | else |
|
|
9749 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9750 | /* confdefs.h. */ |
|
|
9751 | _ACEOF |
|
|
9752 | cat confdefs.h >>conftest.$ac_ext |
|
|
9753 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9754 | /* end confdefs.h. */ |
|
|
9755 | #include <stdint.h> |
|
|
9756 | int |
|
|
9757 | main () |
|
|
9758 | { |
|
|
9759 | uint32_t dummy; |
|
|
9760 | ; |
|
|
9761 | return 0; |
|
|
9762 | } |
|
|
9763 | _ACEOF |
|
|
9764 | rm -f conftest.$ac_objext |
|
|
9765 | if { (ac_try="$ac_compile" |
|
|
9766 | case "(($ac_try" in |
|
|
9767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9768 | *) ac_try_echo=$ac_try;; |
|
|
9769 | esac |
|
|
9770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9771 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9772 | ac_status=$? |
|
|
9773 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9774 | rm -f conftest.er1 |
|
|
9775 | cat conftest.err >&5 |
|
|
9776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9777 | (exit $ac_status); } && { |
|
|
9778 | test -z "$ac_cxx_werror_flag" || |
|
|
9779 | test ! -s conftest.err |
|
|
9780 | } && test -s conftest.$ac_objext; then |
|
|
9781 | rxvt_cv_uint32_t=yes |
|
|
9782 | else |
|
|
9783 | echo "$as_me: failed program was:" >&5 |
|
|
9784 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9785 | |
|
|
9786 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9787 | rxvt_cv_uint32_t="unsigned char" |
|
|
9788 | else |
|
|
9789 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9790 | rxvt_cv_uint32_t="unsigned short" |
|
|
9791 | else |
|
|
9792 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9793 | rxvt_cv_uint32_t="unsigned int" |
|
|
9794 | else |
|
|
9795 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9796 | rxvt_cv_uint32_t="unsigned long" |
|
|
9797 | else |
|
|
9798 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9799 | rxvt_cv_uint32_t="unsigned long long" |
|
|
9800 | else |
|
|
9801 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
9802 | fi |
|
|
9803 | fi |
|
|
9804 | fi |
|
|
9805 | fi |
|
|
9806 | fi |
|
|
9807 | fi |
|
|
9808 | |
|
|
9809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9810 | fi |
|
|
9811 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
9812 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
9813 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
9814 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
9815 | else |
|
|
9816 | if test x"unsigned" = x; then |
|
|
9817 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
9818 | else |
|
|
9819 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
9820 | fi |
|
|
9821 | fi |
|
|
9822 | |
|
|
9823 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
9824 | rxvt_intp_define="#define intp_t int64_t" |
|
|
9825 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
9826 | else |
|
|
9827 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
9828 | rxvt_intp_define="#define intp_t int32_t" |
|
|
9829 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
9830 | else |
|
|
9831 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
9832 | rxvt_intp_define="#define intp_t int16_t" |
|
|
9833 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
9834 | else |
|
|
9835 | rxvt_intp_define="#error set intp_t" |
|
|
9836 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
9837 | fi |
|
|
9838 | fi |
|
|
9839 | fi |
|
|
9840 | |
|
|
9841 | |
8224 | |
9842 | |
8225 | |
9843 | |
8226 | |
9844 | for ac_func in unsetenv |
8227 | for ac_func in unsetenv |
9845 | do |
8228 | do |
… | |
… | |
13283 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
11666 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
13284 | include_stdint_h="#include <stdint.h>" |
11667 | include_stdint_h="#include <stdint.h>" |
13285 | else |
11668 | else |
13286 | include_stdint_h="/* #include <stdint.h> */" |
11669 | include_stdint_h="/* #include <stdint.h> */" |
13287 | fi |
11670 | fi |
13288 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13289 | include_stdarg_h="#include <cstdarg>" |
|
|
13290 | else |
|
|
13291 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13292 | fi |
|
|
13293 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13294 | include_stdlib_h="#include <cstdlib>" |
|
|
13295 | else |
|
|
13296 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13297 | fi |
|
|
13298 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13299 | include_unistd_h="#include <unistd.h>" |
|
|
13300 | else |
|
|
13301 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13302 | fi |
|
|
13303 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13304 | include_string_h="#include <cstring>" |
|
|
13305 | else |
|
|
13306 | include_string_h="/* #include <cstring> */" |
|
|
13307 | fi |
|
|
13308 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13309 | include_fcntl_h="#include <fcntl.h>" |
|
|
13310 | else |
|
|
13311 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13312 | fi |
|
|
13313 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13314 | include_util_h="#include <util.h>" |
|
|
13315 | else |
|
|
13316 | include_util_h="/* #include <util.h> */" |
|
|
13317 | fi |
|
|
13318 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13319 | include_assert_h="#include <assert.h>" |
|
|
13320 | else |
|
|
13321 | include_assert_h="/* #include <assert.h> */" |
|
|
13322 | fi |
|
|
13323 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
11671 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
13324 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
11672 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
13325 | else |
11673 | else |
13326 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
11674 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
13327 | fi |
11675 | fi |
13328 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13329 | include_sys_select_h="#include <sys/select.h>" |
|
|
13330 | else |
|
|
13331 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13332 | fi |
|
|
13333 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
11676 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
13334 | include_sys_strredir_h="#include <sys/strredir.h>" |
11677 | include_sys_strredir_h="#include <sys/strredir.h>" |
13335 | else |
11678 | else |
13336 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
11679 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
13337 | fi |
|
|
13338 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13339 | include_sys_time_h="#include <sys/time.h>" |
|
|
13340 | else |
|
|
13341 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13342 | fi |
|
|
13343 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13344 | include_time_h="#include <time.h>" |
|
|
13345 | else |
|
|
13346 | include_time_h="/* #include <time.h> */" |
|
|
13347 | fi |
11680 | fi |
13348 | |
11681 | |
13349 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11682 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
13350 | |
11683 | |
13351 | cat >confcache <<\_ACEOF |
11684 | cat >confcache <<\_ACEOF |
… | |
… | |
14038 | X_CFLAGS!$X_CFLAGS$ac_delim |
12371 | X_CFLAGS!$X_CFLAGS$ac_delim |
14039 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12372 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14040 | X_LIBS!$X_LIBS$ac_delim |
12373 | X_LIBS!$X_LIBS$ac_delim |
14041 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12374 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14042 | afterimage_config!$afterimage_config$ac_delim |
12375 | afterimage_config!$afterimage_config$ac_delim |
14043 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
14044 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
14045 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
14046 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
14047 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
14048 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
14049 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12376 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
14050 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12377 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
14051 | PERL!$PERL$ac_delim |
12378 | PERL!$PERL$ac_delim |
14052 | PERLLIB!$PERLLIB$ac_delim |
12379 | PERLLIB!$PERLLIB$ac_delim |
14053 | PERLFLAGS!$PERLFLAGS$ac_delim |
12380 | PERLFLAGS!$PERLFLAGS$ac_delim |
… | |
… | |
14055 | IF_PERL!$IF_PERL$ac_delim |
12382 | IF_PERL!$IF_PERL$ac_delim |
14056 | PERL_O!$PERL_O$ac_delim |
12383 | PERL_O!$PERL_O$ac_delim |
14057 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12384 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
14058 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12385 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
14059 | include_stdint_h!$include_stdint_h$ac_delim |
12386 | include_stdint_h!$include_stdint_h$ac_delim |
14060 | include_stdarg_h!$include_stdarg_h$ac_delim |
|
|
14061 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
14062 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
14063 | include_string_h!$include_string_h$ac_delim |
|
|
14064 | include_fcntl_h!$include_fcntl_h$ac_delim |
12387 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
14065 | include_util_h!$include_util_h$ac_delim |
|
|
14066 | include_assert_h!$include_assert_h$ac_delim |
12388 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
12389 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
12390 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
14067 | _ACEOF |
12391 | _ACEOF |
14068 | |
12392 | |
14069 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12393 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then |
14070 | break |
12394 | break |
14071 | elif $ac_last_try; then |
12395 | elif $ac_last_try; then |
14072 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12396 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14073 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12397 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14074 | { (exit 1); exit 1; }; } |
12398 | { (exit 1); exit 1; }; } |
… | |
… | |
14083 | ac_eof=`expr $ac_eof + 1` |
12407 | ac_eof=`expr $ac_eof + 1` |
14084 | fi |
12408 | fi |
14085 | |
12409 | |
14086 | cat >>$CONFIG_STATUS <<_ACEOF |
12410 | cat >>$CONFIG_STATUS <<_ACEOF |
14087 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12411 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
14088 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
14089 | _ACEOF |
|
|
14090 | sed ' |
|
|
14091 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
14092 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
14093 | :n |
|
|
14094 | t n |
|
|
14095 | s/'"$ac_delim"'$/,g/; t |
|
|
14096 | s/$/\\/; p |
|
|
14097 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
14098 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
14099 | rm -f conf$$subs.sed |
|
|
14100 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14101 | CEOF$ac_eof |
|
|
14102 | _ACEOF |
|
|
14103 | |
|
|
14104 | |
|
|
14105 | ac_delim='%!_!# ' |
|
|
14106 | for ac_last_try in false false false false false :; do |
|
|
14107 | cat >conf$$subs.sed <<_ACEOF |
|
|
14108 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
14109 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
14110 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
14111 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
14112 | include_time_h!$include_time_h$ac_delim |
|
|
14113 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
14114 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
14115 | _ACEOF |
|
|
14116 | |
|
|
14117 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then |
|
|
14118 | break |
|
|
14119 | elif $ac_last_try; then |
|
|
14120 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
14121 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
14122 | { (exit 1); exit 1; }; } |
|
|
14123 | else |
|
|
14124 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
14125 | fi |
|
|
14126 | done |
|
|
14127 | |
|
|
14128 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
14129 | if test -n "$ac_eof"; then |
|
|
14130 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
14131 | ac_eof=`expr $ac_eof + 1` |
|
|
14132 | fi |
|
|
14133 | |
|
|
14134 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14135 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
14136 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12412 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
14137 | _ACEOF |
12413 | _ACEOF |
14138 | sed ' |
12414 | sed ' |
14139 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12415 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
14140 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12416 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14393 | s&@builddir@&$ac_builddir&;t t |
12669 | s&@builddir@&$ac_builddir&;t t |
14394 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12670 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14395 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12671 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14396 | s&@INSTALL@&$ac_INSTALL&;t t |
12672 | s&@INSTALL@&$ac_INSTALL&;t t |
14397 | $ac_datarootdir_hack |
12673 | $ac_datarootdir_hack |
14398 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12674 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14399 | |
12675 | |
14400 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12676 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14401 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12677 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14402 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12678 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14403 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12679 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |