Cleanup and document VariableUnserializer API
[hiphop-php.git] / configure
blob99d68b8059b4d0659a12b1bdb4f340a2aab5cda8
1 #!/usr/bin/env bash
3 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5 if [ "$1" = '--help' ] || [ "$1" = '-h' ]; then
6 echo "usage: $0 -Dvariable=argument ...\n"
7 echo 'Variables: '
8 options=`cat $DIR/CMake/Options.cmake | grep option | sed -e 's/^[ \t]*//' |
9 sed 's/\s*option(/ -D/; s/ "/=ON|OFF : /;
10 s/" / : Default: /; s/)$//' | sort`
11 options=" -DCMAKE_BUILD_TYPE=Debug|Release|RelWithDebInfo|MinSizeRel : Sets build type \
12 : Default: Release
13 $options"
14 if which column > /dev/null; then
15 options=`echo "$options" | column -t -s : `
17 echo "$options"
18 exit 2
21 cmake "$@" .