autotools

package
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package autotools wraps the classic configure/make/make-install workflow.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoTools

type AutoTools struct {
	// contains filtered or unexported fields
}

AutoTools drives Autotools-style builds.

func New

func New(sourceDir, buildDir, installDir string) *AutoTools

New returns a ready-to-use AutoTools.

func (*AutoTools) Build

func (a *AutoTools) Build(args ...string)

Build runs "make" with optional extra arguments.

func (*AutoTools) Configure

func (a *AutoTools) Configure(args ...string)

Configure runs the configure script from sourceDir in the build directory. --prefix is prepended automatically when installDir is set. Extra flags are appended after --prefix.

func (*AutoTools) Install

func (a *AutoTools) Install(args ...string)

Install runs "make install" with optional extra arguments appended.

func (*AutoTools) OutputDir

func (a *AutoTools) OutputDir() string

OutputDir returns installDir if set, otherwise buildDir.

func (*AutoTools) Source

func (a *AutoTools) Source(dir string)

Source overrides the source directory.

func (*AutoTools) Sysroot added in v0.3.4

func (a *AutoTools) Sysroot(root string)

Sysroot sets the target system root for the compiler and linker. Both compiler spellings are supplied so the same Formula works for generic and Apple targets.

func (*AutoTools) Use

func (a *AutoTools) Use(root string)

Use configures the process environment so that Autotools, compilers, and pkg-config find a non-system dependency installed at root.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL