{"id":146,"date":"2013-10-06T11:41:46","date_gmt":"2013-10-06T03:41:46","guid":{"rendered":"http:\/\/www.datarelab.com\/blog\/?p=146"},"modified":"2013-10-06T11:41:46","modified_gmt":"2013-10-06T03:41:46","slug":"%60configure%27%20configures%20grub%202.00%20%e8%af%b4%e6%98%8e","status":"publish","type":"post","link":"https:\/\/www.datarelab.com\/blog\/Technical_literature\/146.html","title":{"rendered":"`configure' configures GRUB 2.00 \u8bf4\u660e"},"content":{"rendered":"<p>`configure' configures GRUB 2.00 to adapt to many kinds of systems.<\/p>\n<p>Usage: .\/configure [OPTION]... [VAR=VALUE]...<\/p>\n<p>To assign environment variables (e.g., CC, CFLAGS...), specify them as<br \/>\nVAR=VALUE. &nbsp;See below for descriptions of some of the useful variables.<\/p>\n<p>Defaults for the options are specified in brackets.<\/p>\n<p>Configuration:<br \/>\n&nbsp; -h, --help &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;display this help and exit<br \/>\n&nbsp; &nbsp; &nbsp; --help=short &nbsp; &nbsp; &nbsp; &nbsp;display options specific to this package<br \/>\n&nbsp; &nbsp; &nbsp; --help=recursive &nbsp; &nbsp;display the short help of all the included packages<br \/>\n&nbsp; -V, --version &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display version information and exit<br \/>\n&nbsp; -q, --quiet, --silent &nbsp; do not print `checking ...' messages<br \/>\n&nbsp; &nbsp; &nbsp; --cache-file=FILE &nbsp; cache test results in FILE [disabled]<br \/>\n&nbsp; -C, --config-cache &nbsp; &nbsp; &nbsp;alias for `--cache-file=config.cache'<br \/>\n&nbsp; -n, --no-create &nbsp; &nbsp; &nbsp; &nbsp; do not create output files<br \/>\n&nbsp; &nbsp; &nbsp; --srcdir=DIR &nbsp; &nbsp; &nbsp; &nbsp;find the sources in DIR [configure dir or `..']<\/p>\n<p>Installation directories:<br \/>\n&nbsp; --prefix=PREFIX &nbsp; &nbsp; &nbsp; &nbsp; install architecture-independent files in PREFIX<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [\/usr\/local]<br \/>\n&nbsp; --exec-prefix=EPREFIX &nbsp; install architecture-dependent files in EPREFIX<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [PREFIX]<\/p>\n<p>By default, `make install' will install all the files in<br \/>\n`\/usr\/local\/bin', `\/usr\/local\/lib' etc. &nbsp;You can specify<br \/>\nan installation prefix other than `\/usr\/local' using `--prefix',<br \/>\nfor instance `--prefix=$HOME'.<\/p>\n<p>For better control, use the options below.<\/p>\n<p>Fine tuning of the installation directories:<br \/>\n&nbsp; --bindir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;user executables [EPREFIX\/bin]<br \/>\n&nbsp; --sbindir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; system admin executables [EPREFIX\/sbin]<br \/>\n&nbsp; --libexecdir=DIR &nbsp; &nbsp; &nbsp; &nbsp;program executables [EPREFIX\/libexec]<br \/>\n&nbsp; --sysconfdir=DIR &nbsp; &nbsp; &nbsp; &nbsp;read-only single-machine data [PREFIX\/etc]<br \/>\n&nbsp; --sharedstatedir=DIR &nbsp; &nbsp;modifiable architecture-independent data [PREFIX\/com]<br \/>\n&nbsp; --localstatedir=DIR &nbsp; &nbsp; modifiable single-machine data [PREFIX\/var]<br \/>\n&nbsp; --libdir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;object code libraries [EPREFIX\/lib]<br \/>\n&nbsp; --includedir=DIR &nbsp; &nbsp; &nbsp; &nbsp;C header files [PREFIX\/include]<br \/>\n&nbsp; --oldincludedir=DIR &nbsp; &nbsp; C header files for non-gcc [\/usr\/include]<br \/>\n&nbsp; --datarootdir=DIR &nbsp; &nbsp; &nbsp; read-only arch.-independent data root [PREFIX\/share]<br \/>\n&nbsp; --datadir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; read-only architecture-independent data [DATAROOTDIR]<br \/>\n&nbsp; --infodir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; info documentation [DATAROOTDIR\/info]<br \/>\n&nbsp; --localedir=DIR &nbsp; &nbsp; &nbsp; &nbsp; locale-dependent data [DATAROOTDIR\/locale]<br \/>\n&nbsp; --mandir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;man documentation [DATAROOTDIR\/man]<br \/>\n&nbsp; --docdir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;documentation root [DATAROOTDIR\/doc\/grub]<br \/>\n&nbsp; --htmldir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; html documentation [DOCDIR]<br \/>\n&nbsp; --dvidir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dvi documentation [DOCDIR]<br \/>\n&nbsp; --pdfdir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pdf documentation [DOCDIR]<br \/>\n&nbsp; --psdir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ps documentation [DOCDIR]<\/p>\n<p>Program names:<br \/>\n&nbsp; --program-prefix=PREFIX &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;prepend PREFIX to installed program names<br \/>\n&nbsp; --program-suffix=SUFFIX &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;append SUFFIX to installed program names<br \/>\n&nbsp; --program-transform-name=PROGRAM &nbsp; run sed PROGRAM on installed program names<\/p>\n<p>System types:<br \/>\n&nbsp; --build=BUILD &nbsp; &nbsp; configure for building on BUILD [guessed]<br \/>\n&nbsp; --host=HOST &nbsp; &nbsp; &nbsp; cross-compile to build programs to run on HOST [BUILD]<br \/>\n&nbsp; --target=TARGET &nbsp; configure for building compilers for TARGET [HOST]<\/p>\n<p>Optional Features:<br \/>\n&nbsp; --disable-option-checking &nbsp;ignore unrecognized --enable\/--with options<br \/>\n&nbsp; --disable-FEATURE &nbsp; &nbsp; &nbsp; do not include FEATURE (same as --enable-FEATURE=no)<br \/>\n&nbsp; --enable-FEATURE[=ARG] &nbsp;include FEATURE [ARG=yes]<br \/>\n&nbsp; --disable-dependency-tracking &nbsp;speeds up one-time build<br \/>\n&nbsp; --enable-dependency-tracking &nbsp; do not reject slow dependency extractors<br \/>\n&nbsp; --disable-nls &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; do not use Native Language Support<br \/>\n&nbsp; --disable-rpath &nbsp; &nbsp; &nbsp; &nbsp; do not hardcode runtime library paths<br \/>\n&nbsp; --disable-largefile &nbsp; &nbsp; omit support for large files<br \/>\n&nbsp; --enable-efiemu &nbsp; &nbsp; &nbsp; &nbsp; build and install the efiemu runtimes<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (default=guessed)<br \/>\n&nbsp; --disable-werror &nbsp; &nbsp; &nbsp; &nbsp;do not use -Werror when building GRUB<br \/>\n&nbsp; --enable-mm-debug &nbsp; &nbsp; &nbsp; include memory manager debugging<br \/>\n&nbsp; --enable-cache-stats &nbsp; &nbsp;enable disk cache statistics collection<br \/>\n&nbsp; --enable-grub-emu-usb &nbsp; build and install the `grub-emu' debugging utility<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; with USB support (default=guessed)<br \/>\n&nbsp; --enable-grub-emu-sdl &nbsp; build and install the `grub-emu' debugging utility<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; with SDL support (default=guessed)<br \/>\n&nbsp; --enable-grub-emu-pci &nbsp; build and install the `grub-emu' debugging utility<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; with PCI support (potentially dangerous)<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (default=no)<br \/>\n&nbsp; --enable-grub-mkfont &nbsp; &nbsp;build and install the `grub-mkfont' utility<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (default=guessed)<br \/>\n&nbsp; --enable-grub-mount &nbsp; &nbsp; build and install the `grub-mount' utility<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (default=guessed)<br \/>\n&nbsp; --enable-device-mapper &nbsp;enable Linux device-mapper support (default=guessed)<br \/>\n&nbsp; --enable-libzfs &nbsp; &nbsp; &nbsp; &nbsp; enable libzfs integration (default=guessed)<\/p>\n<p>Optional Packages:<br \/>\n&nbsp; --with-PACKAGE[=ARG] &nbsp; &nbsp;use PACKAGE [ARG=yes]<br \/>\n&nbsp; --without-PACKAGE &nbsp; &nbsp; &nbsp; do not use PACKAGE (same as --with-PACKAGE=no)<br \/>\n&nbsp; --with-platform=PLATFORM<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; select the host platform [[guessed]]<br \/>\n&nbsp; --with-bootdir=DIR &nbsp; &nbsp; &nbsp;set the name of \/boot directory [[guessed]]<br \/>\n&nbsp; --with-grubdir=DIR &nbsp; &nbsp; &nbsp;set the name of grub directory [[guessed]]<br \/>\n&nbsp; --with-gnu-ld &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; assume the C compiler uses GNU ld default=no<br \/>\n&nbsp; --with-libiconv-prefix[=DIR] &nbsp;search for libiconv in DIR\/include and DIR\/lib<br \/>\n&nbsp; --without-libiconv-prefix &nbsp; &nbsp; don't search for libiconv in includedir and libdir<br \/>\n&nbsp; --with-libintl-prefix[=DIR] &nbsp;search for libintl in DIR\/include and DIR\/lib<br \/>\n&nbsp; --without-libintl-prefix &nbsp; &nbsp; don't search for libintl in includedir and libdir<br \/>\n&nbsp; --without-included-regex<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; don't compile regex; this is the default on systems<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; with recent-enough versions of the GNU C Library<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (use with caution on other systems).<\/p>\n<p>Some influential environment variables:<br \/>\n&nbsp; CC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;C compiler command<br \/>\n&nbsp; CFLAGS &nbsp; &nbsp; &nbsp;C compiler flags<br \/>\n&nbsp; LDFLAGS &nbsp; &nbsp; linker flags, e.g. -L&lt;lib dir&gt; if you have libraries in a<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nonstandard directory &lt;lib dir&gt;<br \/>\n&nbsp; LIBS &nbsp; &nbsp; &nbsp; &nbsp;libraries to pass to the linker, e.g. -l&lt;library&gt;<br \/>\n&nbsp; CPPFLAGS &nbsp; &nbsp;(Objective) C\/C++ preprocessor flags, e.g. -I&lt;include dir&gt; if<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; you have headers in a nonstandard directory &lt;include dir&gt;<br \/>\n&nbsp; YACC &nbsp; &nbsp; &nbsp; &nbsp;The `Yet Another Compiler Compiler' implementation to use.<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Defaults to the first program found out of: `bison -y', `byacc',<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; `yacc'.<br \/>\n&nbsp; YFLAGS &nbsp; &nbsp; &nbsp;The list of arguments that will be passed by default to $YACC.<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; This script will default YFLAGS to the empty string to avoid a<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default value of `-d' given by some make applications.<br \/>\n&nbsp; CPP &nbsp; &nbsp; &nbsp; &nbsp; C preprocessor<br \/>\n&nbsp; CCAS &nbsp; &nbsp; &nbsp; &nbsp;assembler compiler command (defaults to CC)<br \/>\n&nbsp; CCASFLAGS &nbsp; assembler compiler flags (defaults to CFLAGS)<\/p>\n<p>Use these variables to override the choices made by `configure' or to help<br \/>\nit to find libraries and programs with nonstandard names\/locations.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>`configure' configures GRUB 2.00 to adapt to many kinds [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[147,14],"class_list":["post-146","post","type-post","status-publish","format-standard","hentry","category-Technical_literature","tag-grub2","tag-linux"],"views":1673,"_links":{"self":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/comments?post=146"}],"version-history":[{"count":0,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/146\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/media?parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/categories?post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/tags?post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}