diff options
Diffstat (limited to 'libgo/configure')
-rw-r--r-- | libgo/configure | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/libgo/configure b/libgo/configure index ca3544e5f2b..6fe02592306 100644 --- a/libgo/configure +++ b/libgo/configure @@ -603,6 +603,8 @@ am__EXEEXT_TRUE LTLIBOBJS LIBOBJS STRINGOPS_FLAG +HAVE_STRERROR_R_FALSE +HAVE_STRERROR_R_TRUE HAVE_SYS_MMAN_H_FALSE HAVE_SYS_MMAN_H_TRUE PTHREAD_LIBS @@ -10898,7 +10900,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10901 "configure" +#line 10903 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11004,7 +11006,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11007 "configure" +#line 11009 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -14151,7 +14153,8 @@ else HAVE_SYS_MMAN_H_FALSE= fi -for ac_func in srandom random strsignal + +for ac_func in srandom random strerror_r strsignal do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" @@ -14164,6 +14167,14 @@ _ACEOF fi done + if test "$ac_cv_func_strerror_r" = yes; then + HAVE_STRERROR_R_TRUE= + HAVE_STRERROR_R_FALSE='#' +else + HAVE_STRERROR_R_TRUE='#' + HAVE_STRERROR_R_FALSE= +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; } @@ -14537,6 +14548,10 @@ if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then + as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi : ${CONFIG_STATUS=./config.status} ac_write_fail=0 |