… | |
… | |
3859 | LIBS="$LIBS -lsocket" |
3859 | LIBS="$LIBS -lsocket" |
3860 | fi |
3860 | fi |
3861 | |
3861 | |
3862 | fi |
3862 | fi |
3863 | |
3863 | |
3864 | |
|
|
3865 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
|
|
3866 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 |
|
|
3867 | if test "${ac_cv_func_sched_yield+set}" = set; then |
|
|
3868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3869 | else |
|
|
3870 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3871 | /* confdefs.h. */ |
|
|
3872 | _ACEOF |
|
|
3873 | cat confdefs.h >>conftest.$ac_ext |
|
|
3874 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3875 | /* end confdefs.h. */ |
|
|
3876 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
|
|
3877 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3878 | #define sched_yield innocuous_sched_yield |
|
|
3879 | |
|
|
3880 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3881 | which can conflict with char sched_yield (); below. |
|
|
3882 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3883 | <limits.h> exists even on freestanding compilers. */ |
|
|
3884 | |
|
|
3885 | #ifdef __STDC__ |
|
|
3886 | # include <limits.h> |
|
|
3887 | #else |
|
|
3888 | # include <assert.h> |
|
|
3889 | #endif |
|
|
3890 | |
|
|
3891 | #undef sched_yield |
|
|
3892 | |
|
|
3893 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3894 | #ifdef __cplusplus |
|
|
3895 | extern "C" |
|
|
3896 | { |
|
|
3897 | #endif |
|
|
3898 | /* We use char because int might match the return type of a gcc2 |
|
|
3899 | builtin and then its argument prototype would still apply. */ |
|
|
3900 | char sched_yield (); |
|
|
3901 | /* The GNU C library defines this for functions which it implements |
|
|
3902 | to always fail with ENOSYS. Some functions are actually named |
|
|
3903 | something starting with __ and the normal name is an alias. */ |
|
|
3904 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) |
|
|
3905 | choke me |
|
|
3906 | #else |
|
|
3907 | char (*f) () = sched_yield; |
|
|
3908 | #endif |
|
|
3909 | #ifdef __cplusplus |
|
|
3910 | } |
|
|
3911 | #endif |
|
|
3912 | |
|
|
3913 | int |
|
|
3914 | main () |
|
|
3915 | { |
|
|
3916 | return f != sched_yield; |
|
|
3917 | ; |
|
|
3918 | return 0; |
|
|
3919 | } |
|
|
3920 | _ACEOF |
|
|
3921 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3923 | (eval $ac_link) 2>conftest.er1 |
|
|
3924 | ac_status=$? |
|
|
3925 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3926 | rm -f conftest.er1 |
|
|
3927 | cat conftest.err >&5 |
|
|
3928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3929 | (exit $ac_status); } && |
|
|
3930 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3932 | (eval $ac_try) 2>&5 |
|
|
3933 | ac_status=$? |
|
|
3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3935 | (exit $ac_status); }; } && |
|
|
3936 | { ac_try='test -s conftest$ac_exeext' |
|
|
3937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3938 | (eval $ac_try) 2>&5 |
|
|
3939 | ac_status=$? |
|
|
3940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3941 | (exit $ac_status); }; }; then |
|
|
3942 | ac_cv_func_sched_yield=yes |
|
|
3943 | else |
|
|
3944 | echo "$as_me: failed program was:" >&5 |
|
|
3945 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3946 | |
|
|
3947 | ac_cv_func_sched_yield=no |
|
|
3948 | fi |
|
|
3949 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3950 | conftest$ac_exeext conftest.$ac_ext |
|
|
3951 | fi |
|
|
3952 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 |
|
|
3953 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 |
|
|
3954 | if test $ac_cv_func_sched_yield = yes; then |
|
|
3955 | : |
|
|
3956 | else |
|
|
3957 | echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5 |
|
|
3958 | echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6 |
|
|
3959 | if test "${ac_cv_lib_rt_sched_yield+set}" = set; then |
|
|
3960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3961 | else |
|
|
3962 | ac_check_lib_save_LIBS=$LIBS |
|
|
3963 | LIBS="-lrt $LIBS" |
|
|
3964 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3965 | /* confdefs.h. */ |
|
|
3966 | _ACEOF |
|
|
3967 | cat confdefs.h >>conftest.$ac_ext |
|
|
3968 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3969 | /* end confdefs.h. */ |
|
|
3970 | |
|
|
3971 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3972 | #ifdef __cplusplus |
|
|
3973 | extern "C" |
|
|
3974 | #endif |
|
|
3975 | /* We use char because int might match the return type of a gcc2 |
|
|
3976 | builtin and then its argument prototype would still apply. */ |
|
|
3977 | char sched_yield (); |
|
|
3978 | int |
|
|
3979 | main () |
|
|
3980 | { |
|
|
3981 | sched_yield (); |
|
|
3982 | ; |
|
|
3983 | return 0; |
|
|
3984 | } |
|
|
3985 | _ACEOF |
|
|
3986 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3988 | (eval $ac_link) 2>conftest.er1 |
|
|
3989 | ac_status=$? |
|
|
3990 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3991 | rm -f conftest.er1 |
|
|
3992 | cat conftest.err >&5 |
|
|
3993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3994 | (exit $ac_status); } && |
|
|
3995 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3997 | (eval $ac_try) 2>&5 |
|
|
3998 | ac_status=$? |
|
|
3999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4000 | (exit $ac_status); }; } && |
|
|
4001 | { ac_try='test -s conftest$ac_exeext' |
|
|
4002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4003 | (eval $ac_try) 2>&5 |
|
|
4004 | ac_status=$? |
|
|
4005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4006 | (exit $ac_status); }; }; then |
|
|
4007 | ac_cv_lib_rt_sched_yield=yes |
|
|
4008 | else |
|
|
4009 | echo "$as_me: failed program was:" >&5 |
|
|
4010 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4011 | |
|
|
4012 | ac_cv_lib_rt_sched_yield=no |
|
|
4013 | fi |
|
|
4014 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4015 | conftest$ac_exeext conftest.$ac_ext |
|
|
4016 | LIBS=$ac_check_lib_save_LIBS |
|
|
4017 | fi |
|
|
4018 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5 |
|
|
4019 | echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6 |
|
|
4020 | if test $ac_cv_lib_rt_sched_yield = yes; then |
|
|
4021 | LIBS="$LIBS -lrt" |
|
|
4022 | fi |
|
|
4023 | |
|
|
4024 | fi |
|
|
4025 | |
|
|
4026 | |
|
|
4027 | echo "$as_me:$LINENO: checking for sched_yield support" >&5 |
|
|
4028 | echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6 |
|
|
4029 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4030 | /* confdefs.h. */ |
|
|
4031 | _ACEOF |
|
|
4032 | cat confdefs.h >>conftest.$ac_ext |
|
|
4033 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4034 | /* end confdefs.h. */ |
|
|
4035 | #include <sched.h> |
|
|
4036 | int |
|
|
4037 | main () |
|
|
4038 | { |
|
|
4039 | sched_yield () |
|
|
4040 | ; |
|
|
4041 | return 0; |
|
|
4042 | } |
|
|
4043 | _ACEOF |
|
|
4044 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4046 | (eval $ac_link) 2>conftest.er1 |
|
|
4047 | ac_status=$? |
|
|
4048 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4049 | rm -f conftest.er1 |
|
|
4050 | cat conftest.err >&5 |
|
|
4051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4052 | (exit $ac_status); } && |
|
|
4053 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4055 | (eval $ac_try) 2>&5 |
|
|
4056 | ac_status=$? |
|
|
4057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4058 | (exit $ac_status); }; } && |
|
|
4059 | { ac_try='test -s conftest$ac_exeext' |
|
|
4060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4061 | (eval $ac_try) 2>&5 |
|
|
4062 | ac_status=$? |
|
|
4063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4064 | (exit $ac_status); }; }; then |
|
|
4065 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
4066 | echo "${ECHO_T}yes" >&6 |
|
|
4067 | |
|
|
4068 | cat >>confdefs.h <<\_ACEOF |
|
|
4069 | #define HAVE_SCHED_YIELD 1 |
|
|
4070 | _ACEOF |
|
|
4071 | |
|
|
4072 | else |
|
|
4073 | echo "$as_me: failed program was:" >&5 |
|
|
4074 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4075 | |
|
|
4076 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4077 | echo "${ECHO_T}no" >&6 |
|
|
4078 | fi |
|
|
4079 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4080 | conftest$ac_exeext conftest.$ac_ext |
|
|
4081 | |
3864 | |
4082 | |
3865 | |
4083 | support_frills=yes |
3866 | support_frills=yes |
4084 | support_inheritpixmap=yes |
3867 | support_inheritpixmap=yes |
4085 | support_tinting=yes |
3868 | support_tinting=yes |