+ ],
+ [
+ char buf[100];
+ char x = *strerror_r (0, buf, sizeof buf);
+ ],
+ ac_cv_func_strerror_r_works=yes,
+ ac_cv_func_strerror_r_works=no
+ )
+ if test $ac_cv_func_strerror_r_works = no; then
+ # strerror_r seems not to work, but now we have to choose between
+ # systems that have relatively inaccessible declarations for the
+ # function. BeOS and DEC UNIX 4.0 fall in this category, but the
+ # former has a strerror_r that returns char*, while the latter
+ # has a strerror_r that returns `int'.
+ # This test should segfault on the DEC system.
+ AC_TRY_RUN(