mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 19:41:47 +01:00
c88200172e
The bug was that ./configure was passing paramers to subscripts as $@, and to handle embedded spaces it needs to be quoted as "$@". This resulting into a bug when ./configure was called e.g with CFLAGS='-m64 -Xstrconst'.. Additionally, fixed cmake/configure.pl did not handle environment variables passed on the command line. this is fixed in this push
14 lines
356 B
Bash
14 lines
356 B
Bash
#!/bin/sh
|
|
# Choose whether to use autoconf created configure
|
|
# of perl script that calls cmake.
|
|
|
|
# Ensure cmake and perl are there
|
|
cmake -P cmake/check_minimal_version.cmake >/dev/null 2>&1 || HAVE_CMAKE=no
|
|
perl --version >/dev/null 2>&1 || HAVE_CMAKE=no
|
|
if test "$HAVE_CMAKE" = "no"
|
|
then
|
|
sh ./configure.am "$@"
|
|
else
|
|
perl ./cmake/configure.pl "$@"
|
|
fi
|
|
|