diff --git a/configure b/configure index 88e4976..c24d4c0 100755 --- a/configure +++ b/configure @@ -4101,7 +4101,7 @@ fi # Check whether --enable-static was given. if test ${enable_static+y} then : - enableval=$enable_static; static_build="yes" + enableval=$enable_static; static_build="$enableval" else $as_nop static_build="no" diff --git a/configure.ac b/configure.ac index 5b7e997..2d043bf 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ AC_CHECK_TOOL([STRIP], [strip]) AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static], [Build curl-impersonate statically with libcurl-impersonate])], - [AC_SUBST([static_build], ["yes"])], + [AC_SUBST([static_build], ["$enableval"])], [AC_SUBST([static_build], ["no"])]) # Let the user optionally specify the path to zlib.