diff options
author | John Högberg <john@erlang.org> | 2022-04-06 16:42:07 +0200 |
---|---|---|
committer | John Högberg <john@erlang.org> | 2022-04-08 09:47:54 +0200 |
commit | 0aeaa3b44e409eda7b0f3658a1db79250f157edb (patch) | |
tree | c0ae7eeae8a23fcffcac6b7f34b411ad4925eb8c /erts/configure | |
parent | 8ef52d6ddda656c77465b984673adef0cddc01e2 (diff) | |
download | erlang-0aeaa3b44e409eda7b0f3658a1db79250f157edb.tar.gz |
otp: Refactor esock build
Diffstat (limited to 'erts/configure')
-rwxr-xr-x | erts/configure | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/erts/configure b/erts/configure index c36bdb56c4..170eeeb5b5 100755 --- a/erts/configure +++ b/erts/configure @@ -672,7 +672,6 @@ HAVE_VALGRIND LIBSCTP SYSTEMD_DAEMON_LIBS SOCKET_LIBS -USE_ESOCK Z_LIB TERMCAP_LIB THR_DEFS @@ -15665,22 +15664,21 @@ fi # Check whether --enable-esock was given. if test ${enable_esock+y} then : - enableval=$enable_esock; + enableval=$enable_esock; case "$enableval" in + no) enable_esock=no ;; + *) enable_esock=yes ;; + esac + +else $as_nop + enable_esock=yes fi -USE_ESOCK=yes +if test "x$enable_esock" = "xyes" +then : -if test "x$enable_esock" = "xyes"; then - USE_ESOCK=yes -else - if test "x$enable_esock" = "xno"; then - USE_ESOCK=no - fi -fi -if test "x$USE_ESOCK" = "xyes" && test "x$USE_ESOCK" = "xyes" -then : +printf "%s\n" "#define ESOCK_ENABLE 1" >>confdefs.h ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" if test "x$ac_cv_func_localtime_r" = xyes @@ -15717,9 +15715,6 @@ fi fi - - - # Check whether --enable-esock_use_rcvsndtimeo was given. if test ${enable_esock_use_rcvsndtimeo+y} then : |