CONFIG.GUESS(1)
πΈ CONFIG.GUESS(1) β User Commands πΈ
okay bestie, sit down, hydrate, and let's talk about config.guess π it's a lil script that guesses the build system triplet, and honestly? it's giving humble but essential. manual name is CONFIG.GUESS(1), no cap. π
β¨ NAME β¨
config.guess β guess the build system triplet π¦
π SYNOPSIS π
config.guess [OPTION]
π DESCRIPTION π
okay so the GNU build system is out here distinguishing three types of machines, and you gotta know all of them:
- the
buildmachine β the one where the compilers actually get run π - the
hostmachine β the one where the package you're building will run π - and the
targetmachine β which only shows up when you're building a compiler, assembler, etc., and it's the machine the compiler you're building will produce code for π§
This script will guess the type of the build machine. periodt.
It outputs the configuration name of the system config.guess is run on. that's literally the whole job and it ate. β¨
π Operation modes π
-h,--helpβ print this help, then exit π«Ά-t,--time-stampβ print date of last modification, then exit β-v,--versionβ print version number, then exit π₯
π ENVIRONMENT VARIABLES π
ngl, config.guess might need to compile and run C code, which means it needs a compiler for the build machine. so here's the tea:
use the environment variable CC_FOR_BUILD to specify the compiler for the build machine. πΈ if CC_FOR_BUILD is not specified, CC will be used. Be sure to specify CC_FOR_BUILD is CC is a cross-compiler to the host machine. π
CC_FOR_BUILDβ a native C compiler, defaults toccπCCβ a native C compiler, the previous variable is preferred π
π REPORTING BUGS π
Report bugs and patches to <config-patches@gnu.org>. fr fr, they wanna hear from you.
Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. π
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. bestie, read that again. π
π SEE ALSO π
autoconf(1), automake(1), autoreconf(1), autoupdate(1), autoheader(1), autoscan(1), config.guess(1), config.sub(1), ifnames(1), libtool(1).
the whole autotools friend group, iykyk π¦
and that's the whole page, bestie π this one shipped as part of GNU Autoconf 2.64, dated July 2009 β vintage but iconic, the way it still just vibes in your build tree. stay guessing those triplets, mwah π β¨
π¦ where this page comes from
- debian bookworm: autoconf2.64 2.64+dfsg-1.1
- ubuntu jammy: autoconf2.64 2.64+dfsg-1
- ubuntu noble: autoconf2.64 2.64+dfsg-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms