| | 7842 | |
|---|
| | 7843 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
|---|
| | 7844 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
|---|
| | 7845 | if test "${ac_cv_type_ssize_t+set}" = set; then |
|---|
| | 7846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 7847 | else |
|---|
| | 7848 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 7849 | /* confdefs.h. */ |
|---|
| | 7850 | _ACEOF |
|---|
| | 7851 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 7852 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 7853 | /* end confdefs.h. */ |
|---|
| | 7854 | $ac_includes_default |
|---|
| | 7855 | typedef ssize_t ac__type_new_; |
|---|
| | 7856 | int |
|---|
| | 7857 | main () |
|---|
| | 7858 | { |
|---|
| | 7859 | if ((ac__type_new_ *) 0) |
|---|
| | 7860 | return 0; |
|---|
| | 7861 | if (sizeof (ac__type_new_)) |
|---|
| | 7862 | return 0; |
|---|
| | 7863 | ; |
|---|
| | 7864 | return 0; |
|---|
| | 7865 | } |
|---|
| | 7866 | _ACEOF |
|---|
| | 7867 | rm -f conftest.$ac_objext |
|---|
| | 7868 | if { (ac_try="$ac_compile" |
|---|
| | 7869 | case "(($ac_try" in |
|---|
| | 7870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 7871 | *) ac_try_echo=$ac_try;; |
|---|
| | 7872 | esac |
|---|
| | 7873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| | 7874 | (eval "$ac_compile") 2>conftest.er1 |
|---|
| | 7875 | ac_status=$? |
|---|
| | 7876 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 7877 | rm -f conftest.er1 |
|---|
| | 7878 | cat conftest.err >&5 |
|---|
| | 7879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 7880 | (exit $ac_status); } && |
|---|
| | 7881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|---|
| | 7882 | { (case "(($ac_try" in |
|---|
| | 7883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 7884 | *) ac_try_echo=$ac_try;; |
|---|
| | 7885 | esac |
|---|
| | 7886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| | 7887 | (eval "$ac_try") 2>&5 |
|---|
| | 7888 | ac_status=$? |
|---|
| | 7889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 7890 | (exit $ac_status); }; } && |
|---|
| | 7891 | { ac_try='test -s conftest.$ac_objext' |
|---|
| | 7892 | { (case "(($ac_try" in |
|---|
| | 7893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 7894 | *) ac_try_echo=$ac_try;; |
|---|
| | 7895 | esac |
|---|
| | 7896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| | 7897 | (eval "$ac_try") 2>&5 |
|---|
| | 7898 | ac_status=$? |
|---|
| | 7899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 7900 | (exit $ac_status); }; }; then |
|---|
| | 7901 | ac_cv_type_ssize_t=yes |
|---|
| | 7902 | else |
|---|
| | 7903 | echo "$as_me: failed program was:" >&5 |
|---|
| | 7904 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 7905 | |
|---|
| | 7906 | ac_cv_type_ssize_t=no |
|---|
| | 7907 | fi |
|---|
| | 7908 | |
|---|
| | 7909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| | 7910 | fi |
|---|
| | 7911 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
|---|
| | 7912 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
|---|
| | 7913 | if test $ac_cv_type_ssize_t = yes; then |
|---|
| | 7914 | : |
|---|
| | 7915 | else |
|---|
| | 7916 | |
|---|
| | 7917 | cat >>confdefs.h <<_ACEOF |
|---|
| | 7918 | #define ssize_t int |
|---|
| | 7919 | _ACEOF |
|---|
| | 7920 | |
|---|
| | 7921 | fi |
|---|
| 9881 | | |
|---|
| 9882 | | for ac_func in cbrt |
|---|
| 9883 | | do |
|---|
| 9884 | | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|---|
| 9885 | | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|---|
| 9886 | | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|---|
| 9887 | | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|---|
| 9888 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 9889 | | else |
|---|
| 9890 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 9891 | | /* confdefs.h. */ |
|---|
| 9892 | | _ACEOF |
|---|
| 9893 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 9894 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 9895 | | /* end confdefs.h. */ |
|---|
| 9896 | | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|---|
| 9897 | | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|---|
| 9898 | | #define $ac_func innocuous_$ac_func |
|---|
| 9899 | | |
|---|
| 9900 | | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| 9901 | | which can conflict with char $ac_func (); below. |
|---|
| 9902 | | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 9903 | | <limits.h> exists even on freestanding compilers. */ |
|---|
| 9904 | | |
|---|
| 9905 | | #ifdef __STDC__ |
|---|
| 9906 | | # include <limits.h> |
|---|
| 9907 | | #else |
|---|
| 9908 | | # include <assert.h> |
|---|
| 9909 | | #endif |
|---|
| 9910 | | |
|---|
| 9911 | | #undef $ac_func |
|---|
| 9912 | | |
|---|
| 9913 | | /* Override any GCC internal prototype to avoid an error. |
|---|
| 9914 | | Use char because int might match the return type of a GCC |
|---|
| 9915 | | builtin and then its argument prototype would still apply. */ |
|---|
| 9916 | | #ifdef __cplusplus |
|---|
| 9917 | | extern "C" |
|---|
| 9918 | | #endif |
|---|
| 9919 | | char $ac_func (); |
|---|
| 9920 | | /* The GNU C library defines this for functions which it implements |
|---|
| 9921 | | to always fail with ENOSYS. Some functions are actually named |
|---|
| 9922 | | something starting with __ and the normal name is an alias. */ |
|---|
| 9923 | | #if defined __stub_$ac_func || defined __stub___$ac_func |
|---|
| 9924 | | choke me |
|---|
| 9925 | | #endif |
|---|
| 9926 | | |
|---|
| 9927 | | int |
|---|
| 9928 | | main () |
|---|
| 9929 | | { |
|---|
| 9930 | | return $ac_func (); |
|---|
| 9931 | | ; |
|---|
| 9932 | | return 0; |
|---|
| 9933 | | } |
|---|
| 9934 | | _ACEOF |
|---|
| 9935 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 9936 | | if { (ac_try="$ac_link" |
|---|
| 9937 | | case "(($ac_try" in |
|---|
| 9938 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 9939 | | *) ac_try_echo=$ac_try;; |
|---|
| 9940 | | esac |
|---|
| 9941 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| 9942 | | (eval "$ac_link") 2>conftest.er1 |
|---|
| 9943 | | ac_status=$? |
|---|
| 9944 | | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 9945 | | rm -f conftest.er1 |
|---|
| 9946 | | cat conftest.err >&5 |
|---|
| 9947 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 9948 | | (exit $ac_status); } && |
|---|
| 9949 | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|---|
| 9950 | | { (case "(($ac_try" in |
|---|
| 9951 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 9952 | | *) ac_try_echo=$ac_try;; |
|---|
| 9953 | | esac |
|---|
| 9954 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| 9955 | | (eval "$ac_try") 2>&5 |
|---|
| 9956 | | ac_status=$? |
|---|
| 9957 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 9958 | | (exit $ac_status); }; } && |
|---|
| 9959 | | { ac_try='test -s conftest$ac_exeext' |
|---|
| 9960 | | { (case "(($ac_try" in |
|---|
| 9961 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 9962 | | *) ac_try_echo=$ac_try;; |
|---|
| 9963 | | esac |
|---|
| 9964 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| 9965 | | (eval "$ac_try") 2>&5 |
|---|
| 9966 | | ac_status=$? |
|---|
| 9967 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 9968 | | (exit $ac_status); }; }; then |
|---|
| 9969 | | eval "$as_ac_var=yes" |
|---|
| 9970 | | else |
|---|
| 9971 | | echo "$as_me: failed program was:" >&5 |
|---|
| 9972 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 9973 | | |
|---|
| 9974 | | eval "$as_ac_var=no" |
|---|
| 9975 | | fi |
|---|
| 9976 | | |
|---|
| 9977 | | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 9978 | | conftest$ac_exeext conftest.$ac_ext |
|---|
| 9979 | | fi |
|---|
| 9980 | | ac_res=`eval echo '${'$as_ac_var'}'` |
|---|
| 9981 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|---|
| 9982 | | echo "${ECHO_T}$ac_res" >&6; } |
|---|
| 9983 | | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|---|
| 9984 | | cat >>confdefs.h <<_ACEOF |
|---|
| 9985 | | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|---|
| 9986 | | _ACEOF |
|---|
| 9987 | | |
|---|
| 9988 | | fi |
|---|
| 9989 | | done |
|---|
| 9990 | | |
|---|
| 11839 | | |
|---|
| 11840 | | |
|---|
| 11841 | | for ac_func in getpriority setpriority |
|---|
| | 11814 | { echo "$as_me:$LINENO: checking for sigaction" >&5 |
|---|
| | 11815 | echo $ECHO_N "checking for sigaction... $ECHO_C" >&6; } |
|---|
| | 11816 | if test "${ac_cv_func_sigaction+set}" = set; then |
|---|
| | 11817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 11818 | else |
|---|
| | 11819 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 11820 | /* confdefs.h. */ |
|---|
| | 11821 | _ACEOF |
|---|
| | 11822 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 11823 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 11824 | /* end confdefs.h. */ |
|---|
| | 11825 | /* Define sigaction to an innocuous variant, in case <limits.h> declares sigaction. |
|---|
| | 11826 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|---|
| | 11827 | #define sigaction innocuous_sigaction |
|---|
| | 11828 | |
|---|
| | 11829 | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| | 11830 | which can conflict with char sigaction (); below. |
|---|
| | 11831 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| | 11832 | <limits.h> exists even on freestanding compilers. */ |
|---|
| | 11833 | |
|---|
| | 11834 | #ifdef __STDC__ |
|---|
| | 11835 | # include <limits.h> |
|---|
| | 11836 | #else |
|---|
| | 11837 | # include <assert.h> |
|---|
| | 11838 | #endif |
|---|
| | 11839 | |
|---|
| | 11840 | #undef sigaction |
|---|
| | 11841 | |
|---|
| | 11842 | /* Override any GCC internal prototype to avoid an error. |
|---|
| | 11843 | Use char because int might match the return type of a GCC |
|---|
| | 11844 | builtin and then its argument prototype would still apply. */ |
|---|
| | 11845 | #ifdef __cplusplus |
|---|
| | 11846 | extern "C" |
|---|
| | 11847 | #endif |
|---|
| | 11848 | char sigaction (); |
|---|
| | 11849 | /* The GNU C library defines this for functions which it implements |
|---|
| | 11850 | to always fail with ENOSYS. Some functions are actually named |
|---|
| | 11851 | something starting with __ and the normal name is an alias. */ |
|---|
| | 11852 | #if defined __stub_sigaction || defined __stub___sigaction |
|---|
| | 11853 | choke me |
|---|
| | 11854 | #endif |
|---|
| | 11855 | |
|---|
| | 11856 | int |
|---|
| | 11857 | main () |
|---|
| | 11858 | { |
|---|
| | 11859 | return sigaction (); |
|---|
| | 11860 | ; |
|---|
| | 11861 | return 0; |
|---|
| | 11862 | } |
|---|
| | 11863 | _ACEOF |
|---|
| | 11864 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 11865 | if { (ac_try="$ac_link" |
|---|
| | 11866 | case "(($ac_try" in |
|---|
| | 11867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 11868 | *) ac_try_echo=$ac_try;; |
|---|
| | 11869 | esac |
|---|
| | 11870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| | 11871 | (eval "$ac_link") 2>conftest.er1 |
|---|
| | 11872 | ac_status=$? |
|---|
| | 11873 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 11874 | rm -f conftest.er1 |
|---|
| | 11875 | cat conftest.err >&5 |
|---|
| | 11876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 11877 | (exit $ac_status); } && |
|---|
| | 11878 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|---|
| | 11879 | { (case "(($ac_try" in |
|---|
| | 11880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 11881 | *) ac_try_echo=$ac_try;; |
|---|
| | 11882 | esac |
|---|
| | 11883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| | 11884 | (eval "$ac_try") 2>&5 |
|---|
| | 11885 | ac_status=$? |
|---|
| | 11886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 11887 | (exit $ac_status); }; } && |
|---|
| | 11888 | { ac_try='test -s conftest$ac_exeext' |
|---|
| | 11889 | { (case "(($ac_try" in |
|---|
| | 11890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 11891 | *) ac_try_echo=$ac_try;; |
|---|
| | 11892 | esac |
|---|
| | 11893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| | 11894 | (eval "$ac_try") 2>&5 |
|---|
| | 11895 | ac_status=$? |
|---|
| | 11896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 11897 | (exit $ac_status); }; }; then |
|---|
| | 11898 | ac_cv_func_sigaction=yes |
|---|
| | 11899 | else |
|---|
| | 11900 | echo "$as_me: failed program was:" >&5 |
|---|
| | 11901 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 11902 | |
|---|
| | 11903 | ac_cv_func_sigaction=no |
|---|
| | 11904 | fi |
|---|
| | 11905 | |
|---|
| | 11906 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| | 11907 | conftest$ac_exeext conftest.$ac_ext |
|---|
| | 11908 | fi |
|---|
| | 11909 | { echo "$as_me:$LINENO: result: $ac_cv_func_sigaction" >&5 |
|---|
| | 11910 | echo "${ECHO_T}$ac_cv_func_sigaction" >&6; } |
|---|
| | 11911 | if test $ac_cv_func_sigaction = yes; then |
|---|
| | 11912 | cat >>confdefs.h <<\_ACEOF |
|---|
| | 11913 | #define HAS_SIGACTION 1 |
|---|
| | 11914 | _ACEOF |
|---|
| | 11915 | |
|---|
| | 11916 | fi |
|---|
| | 11917 | |
|---|
| | 11918 | { echo "$as_me:$LINENO: checking for sigprocmask" >&5 |
|---|
| | 11919 | echo $ECHO_N "checking for sigprocmask... $ECHO_C" >&6; } |
|---|
| | 11920 | if test "${ac_cv_func_sigprocmask+set}" = set; then |
|---|
| | 11921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 11922 | else |
|---|
| | 11923 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 11924 | /* confdefs.h. */ |
|---|
| | 11925 | _ACEOF |
|---|
| | 11926 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 11927 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 11928 | /* end confdefs.h. */ |
|---|
| | 11929 | /* Define sigprocmask to an innocuous variant, in case <limits.h> declares sigprocmask. |
|---|
| | 11930 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|---|
| | 11931 | #define sigprocmask innocuous_sigprocmask |
|---|
| | 11932 | |
|---|
| | 11933 | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| | 11934 | which can conflict with char sigprocmask (); below. |
|---|
| | 11935 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| | 11936 | <limits.h> exists even on freestanding compilers. */ |
|---|
| | 11937 | |
|---|
| | 11938 | #ifdef __STDC__ |
|---|
| | 11939 | # include <limits.h> |
|---|
| | 11940 | #else |
|---|
| | 11941 | # include <assert.h> |
|---|
| | 11942 | #endif |
|---|
| | 11943 | |
|---|
| | 11944 | #undef sigprocmask |
|---|
| | 11945 | |
|---|
| | 11946 | /* Override any GCC internal prototype to avoid an error. |
|---|
| | 11947 | Use char because int might match the return type of a GCC |
|---|
| | 11948 | builtin and then its argument prototype would still apply. */ |
|---|
| | 11949 | #ifdef __cplusplus |
|---|
| | 11950 | extern "C" |
|---|
| | 11951 | #endif |
|---|
| | 11952 | char sigprocmask (); |
|---|
| | 11953 | /* The GNU C library defines this for functions which it implements |
|---|
| | 11954 | to always fail with ENOSYS. Some functions are actually named |
|---|
| | 11955 | something starting with __ and the normal name is an alias. */ |
|---|
| | 11956 | #if defined __stub_sigprocmask || defined __stub___sigprocmask |
|---|
| | 11957 | choke me |
|---|
| | 11958 | #endif |
|---|
| | 11959 | |
|---|
| | 11960 | int |
|---|
| | 11961 | main () |
|---|
| | 11962 | { |
|---|
| | 11963 | return sigprocmask (); |
|---|
| | 11964 | ; |
|---|
| | 11965 | return 0; |
|---|
| | 11966 | } |
|---|
| | 11967 | _ACEOF |
|---|
| | 11968 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 11969 | if { (ac_try="$ac_link" |
|---|
| | 11970 | case "(($ac_try" in |
|---|
| | 11971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 11972 | *) ac_try_echo=$ac_try;; |
|---|
| | 11973 | esac |
|---|
| | 11974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| | 11975 | (eval "$ac_link") 2>conftest.er1 |
|---|
| | 11976 | ac_status=$? |
|---|
| | 11977 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 11978 | rm -f conftest.er1 |
|---|
| | 11979 | cat conftest.err >&5 |
|---|
| | 11980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 11981 | (exit $ac_status); } && |
|---|
| | 11982 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|---|
| | 11983 | { (case "(($ac_try" in |
|---|
| | 11984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 11985 | *) ac_try_echo=$ac_try;; |
|---|
| | 11986 | esac |
|---|
| | 11987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| | 11988 | (eval "$ac_try") 2>&5 |
|---|
| | 11989 | ac_status=$? |
|---|
| | 11990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 11991 | (exit $ac_status); }; } && |
|---|
| | 11992 | { ac_try='test -s conftest$ac_exeext' |
|---|
| | 11993 | { (case "(($ac_try" in |
|---|
| | 11994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 11995 | *) ac_try_echo=$ac_try;; |
|---|
| | 11996 | esac |
|---|
| | 11997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| | 11998 | (eval "$ac_try") 2>&5 |
|---|
| | 11999 | ac_status=$? |
|---|
| | 12000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 12001 | (exit $ac_status); }; }; then |
|---|
| | 12002 | ac_cv_func_sigprocmask=yes |
|---|
| | 12003 | else |
|---|
| | 12004 | echo "$as_me: failed program was:" >&5 |
|---|
| | 12005 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 12006 | |
|---|
| | 12007 | ac_cv_func_sigprocmask=no |
|---|
| | 12008 | fi |
|---|
| | 12009 | |
|---|
| | 12010 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| | 12011 | conftest$ac_exeext conftest.$ac_ext |
|---|
| | 12012 | fi |
|---|
| | 12013 | { echo "$as_me:$LINENO: result: $ac_cv_func_sigprocmask" >&5 |
|---|
| | 12014 | echo "${ECHO_T}$ac_cv_func_sigprocmask" >&6; } |
|---|
| | 12015 | if test $ac_cv_func_sigprocmask = yes; then |
|---|
| | 12016 | cat >>confdefs.h <<\_ACEOF |
|---|
| | 12017 | #define HAS_SIGPROCMASK 1 |
|---|
| | 12018 | _ACEOF |
|---|
| | 12019 | |
|---|
| | 12020 | fi |
|---|
| | 12021 | |
|---|
| | 12022 | |
|---|
| | 12023 | |
|---|
| | 12024 | |
|---|
| | 12025 | for ac_func in snprintf vsnprintf |
|---|
| 12143 | | ac_cv_func_sigprocmask=no |
|---|
| 12144 | | fi |
|---|
| 12145 | | |
|---|
| 12146 | | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 12147 | | conftest$ac_exeext conftest.$ac_ext |
|---|
| 12148 | | fi |
|---|
| 12149 | | { echo "$as_me:$LINENO: result: $ac_cv_func_sigprocmask" >&5 |
|---|
| 12150 | | echo "${ECHO_T}$ac_cv_func_sigprocmask" >&6; } |
|---|
| 12151 | | if test $ac_cv_func_sigprocmask = yes; then |
|---|
| 12152 | | cat >>confdefs.h <<\_ACEOF |
|---|
| 12153 | | #define HAS_SIGPROCMASK 1 |
|---|
| 12154 | | _ACEOF |
|---|
| 12155 | | |
|---|
| 12156 | | fi |
|---|
| 12157 | | |
|---|
| 12158 | | |
|---|
| 12159 | | |
|---|
| 12160 | | |
|---|
| 12161 | | for ac_func in snprintf vsnprintf |
|---|
| | 12268 | ( exit $ac_status ) |
|---|
| | 12269 | ac_cv_have_working_vsnprintf=no |
|---|
| | 12270 | fi |
|---|
| | 12271 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| | 12272 | fi |
|---|
| | 12273 | |
|---|
| | 12274 | |
|---|
| | 12275 | fi |
|---|
| | 12276 | |
|---|
| | 12277 | { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5 |
|---|
| | 12278 | echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; } |
|---|
| | 12279 | if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then |
|---|
| | 12280 | case " $LIBOBJS " in |
|---|
| | 12281 | *" snprintf.$ac_objext "* ) ;; |
|---|
| | 12282 | *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" |
|---|
| | 12283 | ;; |
|---|
| | 12284 | esac |
|---|
| | 12285 | |
|---|
| | 12286 | { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5 |
|---|
| | 12287 | echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;} |
|---|
| | 12288 | |
|---|
| | 12289 | cat >>confdefs.h <<\_ACEOF |
|---|
| | 12290 | #define PREFER_PORTABLE_SNPRINTF 1 |
|---|
| | 12291 | _ACEOF |
|---|
| | 12292 | |
|---|
| | 12293 | fi |
|---|
| | 12294 | if test "x$ac_cv_have_working_snprintf" = xyes; then |
|---|
| | 12295 | cat >>confdefs.h <<\_ACEOF |
|---|
| | 12296 | #define HAS_SNPRINTF 1 |
|---|
| | 12297 | _ACEOF |
|---|
| | 12298 | |
|---|
| | 12299 | fi |
|---|
| | 12300 | if test "x$ac_cv_have_working_vsnprintf" = xyes; then |
|---|
| | 12301 | cat >>confdefs.h <<\_ACEOF |
|---|
| | 12302 | #define HAS_VSNPRINTF 1 |
|---|
| | 12303 | _ACEOF |
|---|
| | 12304 | |
|---|
| | 12305 | fi |
|---|
| | 12306 | |
|---|
| | 12307 | # Assume that the strn versions are also there if these are |
|---|
| | 12308 | |
|---|
| | 12309 | |
|---|
| | 12310 | for ac_func in strcasecmp _stricmp |
|---|
| 12284 | | #include <stdio.h> |
|---|
| 12285 | | |
|---|
| 12286 | | int main(void) |
|---|
| 12287 | | { |
|---|
| 12288 | | char bufs[5] = { 'x', 'x', 'x', '\0', '\0' }; |
|---|
| 12289 | | char bufd[5] = { 'x', 'x', 'x', '\0', '\0' }; |
|---|
| 12290 | | int i; |
|---|
| 12291 | | i = snprintf (bufs, 2, "%s", "111"); |
|---|
| 12292 | | if (strcmp (bufs, "1")) exit (1); |
|---|
| 12293 | | if (i != 3) exit (1); |
|---|
| 12294 | | i = snprintf (bufd, 2, "%d", 111); |
|---|
| 12295 | | if (strcmp (bufd, "1")) exit (1); |
|---|
| 12296 | | if (i != 3) exit (1); |
|---|
| 12297 | | exit(0); |
|---|
| 12298 | | } |
|---|
| 12299 | | _ACEOF |
|---|
| 12300 | | rm -f conftest$ac_exeext |
|---|
| 12301 | | if { (ac_try="$ac_link" |
|---|
| 12302 | | case "(($ac_try" in |
|---|
| 12303 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 12304 | | *) ac_try_echo=$ac_try;; |
|---|
| 12305 | | esac |
|---|
| 12306 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| 12307 | | (eval "$ac_link") 2>&5 |
|---|
| 12308 | | ac_status=$? |
|---|
| 12309 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 12310 | | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|---|
| 12311 | | { (case "(($ac_try" in |
|---|
| 12312 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 12313 | | *) ac_try_echo=$ac_try;; |
|---|
| 12314 | | esac |
|---|
| 12315 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| 12316 | | (eval "$ac_try") 2>&5 |
|---|
| 12317 | | ac_status=$? |
|---|
| 12318 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 12319 | | (exit $ac_status); }; }; then |
|---|
| 12320 | | ac_cv_have_working_snprintf=yes |
|---|
| 12321 | | else |
|---|
| 12322 | | echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| 12323 | | echo "$as_me: failed program was:" >&5 |
|---|
| 12324 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 12325 | | |
|---|
| 12326 | | ( exit $ac_status ) |
|---|
| 12327 | | ac_cv_have_working_snprintf=no |
|---|
| 12328 | | fi |
|---|
| 12329 | | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| 12330 | | fi |
|---|
| 12331 | | |
|---|
| 12332 | | |
|---|
| 12333 | | fi |
|---|
| 12334 | | |
|---|
| 12335 | | { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5 |
|---|
| 12336 | | echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; } |
|---|
| 12337 | | { echo "$as_me:$LINENO: checking for working vsnprintf" >&5 |
|---|
| 12338 | | echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; } |
|---|
| 12339 | | if test "${ac_cv_have_working_vsnprintf+set}" = set; then |
|---|
| 12340 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 12341 | | else |
|---|
| 12342 | | if test "$cross_compiling" = yes; then |
|---|
| 12343 | | ac_cv_have_working_vsnprintf=cross |
|---|
| 12344 | | else |
|---|
| 12345 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 12346 | | /* confdefs.h. */ |
|---|
| 12347 | | _ACEOF |
|---|
| 12348 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 12349 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 12350 | | /* end confdefs.h. */ |
|---|
| 12351 | | #include <stdio.h> |
|---|
| 12352 | | #include <stdarg.h> |
|---|
| 12353 | | |
|---|
| 12354 | | int my_vsnprintf (char *buf, const char *tmpl, ...) |
|---|
| 12355 | | { |
|---|
| 12356 | | int i; |
|---|
| 12357 | | va_list args; |
|---|
| 12358 | | va_start (args, tmpl); |
|---|
| 12359 | | i = vsnprintf (buf, 2, tmpl, args); |
|---|
| 12360 | | va_end (args); |
|---|
| 12361 | | return i; |
|---|
| 12362 | | } |
|---|
| 12363 | | |
|---|
| 12364 | | int main(void) |
|---|
| 12365 | | { |
|---|
| 12366 | | char bufs[5] = { 'x', 'x', 'x', '\0', '\0' }; |
|---|
| 12367 | | char bufd[5] = { 'x', 'x', 'x', '\0', '\0' }; |
|---|
| 12368 | | int i; |
|---|
| 12369 | | i = my_vsnprintf (bufs, "%s", "111"); |
|---|
| 12370 | | if (strcmp (bufs, "1")) exit (1); |
|---|
| 12371 | | if (i != 3) exit (1); |
|---|
| 12372 | | i = my_vsnprintf (bufd, "%d", 111); |
|---|
| 12373 | | if (strcmp (bufd, "1")) exit (1); |
|---|
| 12374 | | if (i != 3) exit (1); |
|---|
| 12375 | | exit(0); |
|---|
| 12376 | | } |
|---|
| 12377 | | _ACEOF |
|---|
| 12378 | | rm -f conftest$ac_exeext |
|---|
| 12379 | | if { (ac_try="$ac_link" |
|---|
| 12380 | | case "(($ac_try" in |
|---|
| 12381 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 12382 | | *) ac_try_echo=$ac_try;; |
|---|
| 12383 | | esac |
|---|
| 12384 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| 12385 | | (eval "$ac_link") 2>&5 |
|---|
| 12386 | | ac_status=$? |
|---|
| 12387 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 12388 | | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|---|
| 12389 | | { (case "(($ac_try" in |
|---|
| 12390 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 12391 | | *) ac_try_echo=$ac_try;; |
|---|
| 12392 | | esac |
|---|
| 12393 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| 12394 | | (eval "$ac_try") 2>&5 |
|---|
| 12395 | | ac_status=$? |
|---|
| 12396 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 12397 | | (exit $ac_status); }; }; then |
|---|
| 12398 | | ac_cv_have_working_vsnprintf=yes |
|---|
| 12399 | | else |
|---|
| 12400 | | echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| 12401 | | echo "$as_me: failed program was:" >&5 |
|---|
| 12402 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 12403 | | |
|---|
| 12404 | | ( exit $ac_status ) |
|---|
| 12405 | | ac_cv_have_working_vsnprintf=no |
|---|
| 12406 | | fi |
|---|
| 12407 | | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| 12408 | | fi |
|---|
| 12409 | | |
|---|
| 12410 | | |
|---|
| 12411 | | fi |
|---|
| 12412 | | |
|---|
| 12413 | | { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5 |
|---|
| 12414 | | echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; } |
|---|
| 12415 | | if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then |
|---|
| 12416 | | case " $LIBOBJS " in |
|---|
| 12417 | | *" snprintf.$ac_objext "* ) ;; |
|---|
| 12418 | | *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" |
|---|
| 12419 | | ;; |
|---|
| 12420 | | esac |
|---|
| 12421 | | |
|---|
| 12422 | | { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5 |
|---|
| 12423 | | echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;} |
|---|
| 12424 | | |
|---|
| 12425 | | cat >>confdefs.h <<\_ACEOF |
|---|
| 12426 | | #define PREFER_PORTABLE_SNPRINTF 1 |
|---|
| 12427 | | _ACEOF |
|---|
| 12428 | | |
|---|
| 12429 | | fi |
|---|
| 12430 | | if test "x$ac_cv_have_working_snprintf" = xyes; then |
|---|
| 12431 | | cat >>confdefs.h <<\_ACEOF |
|---|
| 12432 | | #define HAS_SNPRINTF 1 |
|---|
| 12433 | | _ACEOF |
|---|
| 12434 | | |
|---|
| 12435 | | fi |
|---|
| 12436 | | if test "x$ac_cv_have_working_vsnprintf" = xyes; then |
|---|
| 12437 | | cat >>confdefs.h <<\_ACEOF |
|---|
| 12438 | | #define HAS_VSNPRINTF 1 |
|---|
| 12439 | | _ACEOF |
|---|
| 12440 | | |
|---|
| 12441 | | fi |
|---|
| 12442 | | |
|---|
| 12443 | | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
|---|
| 12444 | | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
|---|
| 12445 | | if test "${ac_cv_func_socketpair+set}" = set; then |
|---|
| 12446 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 12447 | | else |
|---|
| 12448 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 12449 | | /* confdefs.h. */ |
|---|
| 12450 | | _ACEOF |
|---|
| 12451 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 12452 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 12453 | | /* end confdefs.h. */ |
|---|
| 12454 | | /* Define socketpair to an innocuous variant, in case <limits.h> declares socketpair. |
|---|
| | 12431 | /* Define strdup to an innocuous variant, in case <limits.h> declares strdup. |
|---|