aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru-Sever Horin <alex-sever-h@users.noreply.github.com>2020-06-22 17:59:46 +0300
committerGitHub <noreply@github.com>2020-06-22 07:59:46 -0700
commit215acfe7aa643a43c13d28f6496e29b6f16f873c (patch)
tree341a456a947694f03f44c4c76c0e19fa270606d1
parente8ba3caae8a8080b1c54ed8c814d3510e88740d0 (diff)
downloadiperf3-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-xconfigure4
-rw-r--r--configure.ac4
2 files changed, 2 insertions, 6 deletions
diff --git a/configure b/configure
index eff3888..82ec447 100755
--- a/configure
+++ b/configure
@@ -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.