-
Notifications
You must be signed in to change notification settings - Fork 43
/
configure
executable file
·55 lines (52 loc) · 3.48 KB
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
# -*- mode:sh; coding:utf-8; -*-
#
# The MIT License
#
# Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or
# http://flusspferd.org/contributors.txt)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
if [ "$1" = '--help' ] || [ "$1" = '-h' ]; then
echo 'usage: ./configure -Dvariable=argument ...\n'
echo 'Variables: '
echo ' CMAKE_BUILD_TYPE=Debug|Release Sets build type (default Debug).'
echo ' CMAKE_INSTALL_PREFIX=<path> Sets installation Prefix (default /usr/local).'
echo ' ENABLE_TESTS=ON|OFF Build tests (default ON).'
echo ' ENABLE_DEBUG_WARNINGS=ON|OFF Enable -Wpadded and -Weffc++ (default OFF).'
echo ' FORCE_PLUGINS=ON|OFF Fail configuration if some enabled plugins could not be configured (default OFF).'
echo ' PLUGIN_SQLITE3=ON|OFF Build SQLite3 plugin if SQLite3 is found (default ON).'
echo ' PLUGIN_CURL=ON|OFF Build cURL plugin if cURL is found (default ON).'
echo ' PLUGIN_GMP=ON|OFF Build GMP plugin if GMP is found (default ON).'
echo ' PLUGIN_XML=ON|OFF Build XML plugin if arabica is found (default ON).'
echo ' PLUGIN_SUBPROCESS=ON|OFF Build Subprocess plugin (default ON).'
echo ' LINE_EDITOR=none|libedit|readline Select line editor (readline is better but GPL) (default libedit).'
echo ' FORCE_LINE_EDITOR=ON|OFF Fail configuration if the specified line editor is not available (default OFF).'
echo ' BASH_COMPLETION=ON|OFF Create and install bash completion script (default ON).'
echo ' EMACS_MODE=ON|OFF Create and install Emacs mode if Emacs is found (default ON).'
echo ' CREATE_DOCUMENATION=ON|OFF Create and install documenation (default OFF).'
echo ' RELOCATABLE=ON|OFF Whether the binary should be relocatable (default ON).'
echo ' SPIDERMONKEY_INCLUDE_DIR=<path> Set Spidermonkey include directory (default auto detected).'
echo ' SPIDERMONKEY_ROOT=<path> Set Spidermonkey root directory. Libraries are expected in <root path>/lib and includes in <root path>/include (default auto detected).'
echo '\nRun "ccmake build" after ./configure to get a curses based configuration editor and run "cmake --help" to get help with CMake.'
exit 2
fi
mkdir build 2>/dev/null
cd build && cmake "$@" ..