Movatterモバイル変換


[0]ホーム

URL:


Next:, Previous:, Up:Anatomy of a Language Front End   [Contents][Index]


5.3.8.2 The Front Endconfig-lang.in File

Each language subdirectory contains aconfig-lang.in file.This file is a shell script that may define some variables describingthe language:

language

This definition must be present, and gives the name of the languagefor some purposes such as arguments to--enable-languages.

lang_requires

If defined, this variable lists (space-separated) language front endsother than C that this front end requires to be enabled (with thenames given being theirlanguage settings). For example, theObj-C++ front end depends on the C++ and ObjC front ends, so sets‘lang_requires="objc c++"’.

subdir_requires

If defined, this variable lists (space-separated) front end directoriesother than C that this front end requires to be present. For example,the Objective-C++ front end uses source files from the C++ andObjective-C front ends, so sets ‘subdir_requires="cp objc"’.

target_libs

If defined, this variable lists (space-separated) targets in the toplevelMakefile to build the runtime libraries for thislanguage, such astarget-libobjc.

lang_dirs

If defined, this variable lists (space-separated) top leveldirectories (parallel togcc), apart from the runtime libraries,that should not be configured if this front end is not built.

build_by_default

If defined to ‘no’, this language front end is not built unlessenabled in a--enable-languages argument. Otherwise, frontends are built by default, subject to any special logic inconfigure.ac (as is present to disable the Ada front end if theAda compiler is not already installed).

boot_language

If defined to ‘yes’, this front end is built in stage1 of thebootstrap. This is only relevant to front ends written in their ownlanguages.

compilers

If defined, a space-separated list of compiler executables that willbe run by the driver. The names here will each endwith ‘\$(exeext)’.

outputs

If defined, a space-separated list of files that should be generatedbyconfigure substituting values in them. This mechanism canbe used to create a filelanguage/Makefile fromlanguage/Makefile.in, but this is deprecated, buildingeverything from the singlegcc/Makefile is preferred.

gtfiles

If defined, a space-separated list of files that should be scanned bygengtype.cc to generate the garbage collection tables and routines forthis language. This excludes the files that are common to all frontends. SeeMemory Management and Type Information.


Next:The Front EndMake-lang.in File, Previous:The Front Endlanguage Directory, Up:Anatomy of a Language Front End   [Contents][Index]


[8]ページ先頭

©2009-2026 Movatter.jp