sysbench: fix build without mysql in all cases
Closes Homebrew/homebrew#31824. Signed-off-by: Jack Nagel <jacknagel@gmail.com>master
parent
bcee8486c2
commit
192a1843a2
|
@ -16,7 +16,11 @@ class Sysbench < Formula
|
|||
system "./autogen.sh"
|
||||
|
||||
args = ["--prefix=#{prefix}"]
|
||||
args << "--with-mysql" if build.with? "mysql"
|
||||
if build.with? "mysql"
|
||||
args << "--with-mysql"
|
||||
else
|
||||
args << "--without-mysql"
|
||||
end
|
||||
args << "--with-psql" if build.with? "postgresql"
|
||||
|
||||
system "./configure", *args
|
||||
|
|
Loading…
Reference in New Issue