Lines Matching +full:- +full:- +full:disable +full:- +full:documentation

3 # Autotools-style (./configure) wrapper for CMake
4 # <https://github.com/nemequ/configure-cmake>
18 # <https://github.com/nemequ/configure-cmake/issues>.
35 if [ -e "${TOP_SRCDIR}/scripts/.configure-custom.sh" ]; then
36 . "${TOP_SRCDIR}/scripts/.configure-custom.sh"
40 echo "$1" | sed -e "s|'|'\\\\''|g; 1s/^/'/; \$s/\$/'/"
45 VAR_NAME=$(echo $1 | sed -e 's/[ \t]*$//')
55 … VAR_UC_NAME=$(echo "$1" | tr '[:lower:]' '[:upper:]' | tr -c '[:alnum:]' '_' | sed 's/_$//g')
62 "--enable-"*)
63 name="${1#--enable-}"
66 "--disable-"*)
67 name="${1#--disable-}";
70 "--with-"*)
71 # IFS="=" read -ra WITHARGS <<< "${1}"
72 name="${1#--with-}"
89 CMAKE_ARGS="$CMAKE_ARGS -D${VAR_UC_NAME}=$(quote "$2")"
91 CMAKE_ARGS="$CMAKE_ARGS -D${VAR_UC_NAME}=$(quote "${VAR_VALUE}")"
105 -h, --help display this help and exit
106 --disable-debug disable debugging mode
107 --pass-thru pass remaining arguments through to CMake
109 --prefix=PREFIX install architecture-independent files in PREFIX
111 --bindir=DIR user executables [PREFIX/bin]
112 --sbindir=DIR system admin executables [PREFIX/sbin]
113 --libexecdir=DIR program executables [PREFIX/libexec]
114 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
115 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
116 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
117 --libdir=DIR object code libraries [PREFIX/lib]
118 --includedir=DIR C header files [PREFIX/include]
119 --oldincludedir=DIR C header files for non-gcc [/usr/include]
120 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
121 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
122 --infodir=DIR info documentation [DATAROOTDIR/info]
123 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
124 --mandir=DIR man documentation [DATAROOTDIR/man]
125 --docdir=DIR documentation root [DATAROOTDIR/doc/PROJECT_NAME]
138 …printf " --enable-%-14s enable %s support\n" "${VAR_NAME}" "$(echo -n "${VAR_NAME}" | tr '-' ' ')"
140 printf " --enable-%-14s %s\n" "${VAR_NAME}" "$docstring"
154 …printf " --disable-%-13s disable %s support\n" "${VAR_NAME}" "$(echo -n "${VAR_NAME}" | tr '-' ' …
156 printf " --disable-%-13s %s\n" "${VAR_NAME}" "$docstring"
171 … printf " --with-%-16s enable %s support\n" "$paraminfo" "$(echo -n "${VAR_NAME}" | tr '-' ' ')"
173 printf " --with-%-16s %s\n" "$paraminfo" "$docstring"
182 "--prefix="*)
184 "--prefix")
186 "--bindir="*)
187 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_BINDIR=$(quote "${1#*=}")";;
188 "--bindir")
189 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_BINDIR=$(quote "$2")"; shift;;
190 "--sbindir="*)
191 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SBINDIR=$(quote "${1#*=}")";;
192 "--sbindir")
193 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SBINDIR=$(quote "$2")"; shift;;
194 "--libexecdir="*)
195 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LIBEXECDIR=$(quote "${1#*=}")";;
196 "--libexecdir")
197 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LIBEXECDIR=$(quote "$2")"; shift;;
198 "--sysconfdir="*)
199 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SYSCONFDIR=$(quote "${1#*=}")";;
200 "--sysconfdir")
201 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SYSCONFDIR=$(quote "$2")"; shift;;
202 "--sharedstatedir="*)
203 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SHAREDSTATEDIR=$(quote "${1#*=}")";;
204 "--sharedstatedir")
205 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SHAREDSTATEDIR=$(quote "$2")"; shift;;
206 "--localstatedir="*)
207 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LOCALSTATEDIR=$(quote "${1#*=}")";;
208 "--localstatedir")
209 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LOCALSTATEDIR=$(quote "$2")"; shift;;
210 "--libdir="*)
212 "--libdir")
214 "--includedir="*)
215 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_INCLUDEDIR=$(quote "${1#*=}")";;
216 "--includedir")
217 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_INCLUDEDIR=$(quote "$2")"; shift;;
218 "--oldincludedir="*)
219 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_OLDINCLUDEDIR=$(quote "${1#*=}")";;
220 "--oldincludedir")
221 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_OLDINCLUDEDIR=$(quote "$2")"; shift;;
222 "--datarootdir="*)
223 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DATAROOTDIR=$(quote "${1#*=}")";;
224 "--datarootdir")
225 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DATAROOTDIR=$(quote "$2")"; shift;;
226 "--datadir="*)
227 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DATADIR=$(quote "${1#*=}")";;
228 "--datadir")
229 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DATADIR=$(quote "$2")"; shift;;
230 "--infodir="*)
231 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_INFODIR=$(quote "${1#*=}")";;
232 "--infodir")
233 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_INFODIR=$(quote "$2")"; shift;;
234 "--localedir="*)
235 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LOCALEDIR=$(quote "${1#*=}")";;
236 "--localedir")
237 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LOCALEDIR=$(quote "$2")"; shift;;
238 "--mandir="*)
239 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_MANDIR=$(quote "${1#*=}")";;
240 "--mandir")
241 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_MANDIR=$(quote "$2")"; shift;;
242 "--docdir="*)
243 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DOCDIR=$(quote "${1#*=}")";;
244 "--docdir")
245 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DOCDIR=$(quote "$2")"; shift;;
248 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_C_COMPILER=$(quote "${1#*=}")";;
250 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_CXX_COMPILER=$(quote "${1#*=}")";;
252 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_C_FLAGS=$(quote "${1#*=}")";;
254 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_CXX_FLAGS=$(quote "${1#*=}")";;
258 "--help")
260 "-h")
265 # (AFAIK), but for cmake you have to do -DCMAKE_BUILD_TYPE=Debug.
267 # I realize there is no --disable-debug flag I thought it would be
269 "--disable-debug")
272 "--pass-thru")
279 "--enable-"*)
283 "--disable-"*)
287 "--with-"*)
288 name=$(echo "${1#--with-}" | awk '{split($1,v,"="); print v[1]}')
290 "--with-${name}="*)
291 set_config_var "--with-${name}" "${1#--with-${name}=}";;
292 "--with-${name}")
300 echo "Try \`$0 --help' for more information" >&2
301 exit -1
314 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_${varname}_LINKER_FLAGS=$(quote "$LDFLAGS")"
318 eval "${CMAKE_CMD}" "${TOP_SRCDIR}" -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" -DCMAKE_INSTALL_PREFIX="${PR…