mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 06:31:43 +03:00
The current autogen.sh script doesn't allow receiving quoted extra options. If someone wants to pass extra CFLAGS that is split into multiple options with a whitespace, then a quote is required. However, the configure inside autogen.sh fails in this case as follows. $ ./autogen.sh CFLAGS="-Dmmap=cxl_mmap -Dmunmap=cxl_munmap" autoconf ./configure --enable-autogen CFLAGS=-Dmmap=cxl_mmap -Dmunmap=cxl_munmap configure: error: unrecognized option: `-Dmunmap=cxl_munmap' Try `./configure --help' for more information Error 0 in ./configure It's because the quote discarded unexpectedly when calling configure. This patch is to fix this problem. Signed-off-by: Honggyu Kim <honggyu.kim@sk.com>
17 lines
272 B
Bash
Executable file
17 lines
272 B
Bash
Executable file
#!/bin/sh
|
|
|
|
for i in autoconf; do
|
|
echo "$i"
|
|
$i
|
|
if [ $? -ne 0 ]; then
|
|
echo "Error $? in $i"
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
echo "./configure --enable-autogen \"$@\""
|
|
./configure --enable-autogen "$@"
|
|
if [ $? -ne 0 ]; then
|
|
echo "Error $? in ./configure"
|
|
exit 1
|
|
fi
|