diff options
author | Alexandru-Sever Horin <alex-sever-h@users.noreply.github.com> | 2020-06-22 17:59:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 07:59:46 -0700 |
commit | 215acfe7aa643a43c13d28f6496e29b6f16f873c (patch) | |
tree | 341a456a947694f03f44c4c76c0e19fa270606d1 | |
parent | e8ba3caae8a8080b1c54ed8c814d3510e88740d0 (diff) | |
download | iperf3-215acfe7aa643a43c13d28f6496e29b6f16f873c.tar.gz |
fix: Fix enable/disable-profiling flag (#1018)
The variable enable_profiling exists just because AC_ARG_ENABLE([profiling] is defined.
If it is redefined in the exist condition, the both enable and disable flags will enable the profiling,
just if the flag is missing it will be disabled.
Reference in Warning here: https://autotools.io/autoconf/arguments.html
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | configure.ac | 4 |
2 files changed, 2 insertions, 6 deletions
@@ -12947,9 +12947,7 @@ fi # Check if enable profiling # Check whether --enable-profiling was given. if test "${enable_profiling+set}" = set; then : - enableval=$enable_profiling; enable_profiling=yes -else - : + enableval=$enable_profiling; fi if test x$enable_profiling = xyes; then diff --git a/configure.ac b/configure.ac index 8778a03..b2656e7 100644 --- a/configure.ac +++ b/configure.ac @@ -58,9 +58,7 @@ fi # Check if enable profiling AC_ARG_ENABLE([profiling], - AS_HELP_STRING([--enable-profiling], [Enable iperf3 profiling binary]), - [enable_profiling=yes], - [:]) + AS_HELP_STRING([--enable-profiling], [Enable iperf3 profiling binary])) AM_CONDITIONAL([ENABLE_PROFILING], [test x$enable_profiling = xyes]) # Checks for header files. |