Questions tagged [autotools]

Autotools, or the GNU build system, is a set of tools used to generate a configure script that generates a Makefile.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

How do I modify a debian/ubuntu based gnu autotooling build to fedora 32?

Slurm is an open source project using gnu autotools to build. The problem is as follows: when applying autoreconf to the project, the Makefile.in files created are missing the runstatedir macro. I'm ...
0
votes
1answer
27 views

How friendly is checkinstall with CMake rather than autotools?

It's been recommended to me to use the checkinstall mechanism to install artifacts I build from source. But - the example involves GNU autotools (./configure) while I use CMake. How "friendly" is ...
0
votes
1answer
16 views

autoconf: continue after package check failure

In my configure.ac script, I have a basic check for X11: PKG_CHECK_MODULES(X11, x11 > 1.6.4, [AC_DEFINE(HAVE_X11)], []) If this fails, I still want to continue. I thought since I added a blank ...
0
votes
1answer
47 views

./configure checking whether vs checking if

./configure script outputs checking if and checking whether on execution how the two results are different for checking conditions?
0
votes
1answer
52 views

How to prevent automake from overwrting _DATA file

In Makefile.am we have: bin_PROGRAMS = sample sample_SOURCES = main.cpp sampleconfdir = $(sysconfdir)/sample sampleconf_DATA = sample.cfg whenever I install the application using make install, the ...
1
vote
0answers
184 views

Configure cannot find intltool installed in custom path

I'm trying to build transmission-2.94 on a remote server where I have no privileged access. I, therefore, wanna install all custom software under ~/.local. I have successfully installed gettext and ...
2
votes
2answers
764 views

`openocd` configure script cannot find `libusb`

I'm installing OpenOCD on my Debian stretch system. When I run ./configure it reports it cannot find libusb. ... checking for LIBUSB1... no configure: WARNING: libusb-1.x not found, trying legacy ...
1
vote
2answers
82 views

Autotools: Code snippet (AM_MAINTAINER_MODE)

As for this code snippet: AM_MAINTAINER_MODE if test "x$enable_maintainer_mode" = xyes; then AC_PATH_PROG(PERL,perl) if test -z "$PERL"; then AC_MSG_ERROR([perl not found]) fi fi ...
6
votes
2answers
1k views

./configure : Show all missing packages at once

I have compiled a package that uses autotools as build system (autoreconf, ./configure, make, make install). ./configure stops when a package is missing. For each missing package, I look up its name,...
0
votes
1answer
581 views

Use pkg-config to test the version on an installed program?

I am working from a shell script (and not an Autotools script). According to the pkg-config(1) man page, "Return meta information about installed libraries". For example, here is a check of Nettle 3.4 ...
-1
votes
2answers
680 views

Is intltoolize obsolete? If so, is there any alternatives?

From GNOME page, it states: If you are still using the almost obsolete intltoolize, then add the following line immediately before autoreconf: intltoolize --force --copy --automake || exit 1 Is ...
0
votes
2answers
37 views

Invalid package name due to Bash array dereference [duplicate]

I'm trying to build Emacs from sources. When configure options were listed without an array Emacs configured properly. When I added a Bash array to add optional options it broke configure. Here is the ...
-1
votes
1answer
2k views

What does exactly does GNU make dep do?

I am trying to understand GNU Make and trying to understand some c code and GNU autotools. There's a folder let's say lib, with three subfolders and a makefile. lib ...libA ...---compile.sh ...---...
5
votes
2answers
3k views

What is the Linux equivalent of Inno Setup on Windows?

Looking to create a Linux installer that will work similar to Inno Setup on Windows (which is a great little tool to create installers on Windows). My project is really simple (just a couple of ...
1
vote
0answers
69 views

Automake distcheck of symlinked sources

I maintain a "master" makefile for a project with many submodules, each of which has its own autotools structure. This project is tested in a number of configurations (e.g. built against different-...
1
vote
2answers
701 views

GNU autotools configure autoreconf

I have a question when working with autotools, specifically when working with generating configure scripts by running autoreconf -fi I'll get these warnings: libtoolize: putting auxiliary files in ...
1
vote
1answer
854 views

Building packages from source on Arch linux

I've recently set up Arch linux on my desktop PC as a project over the summer, and I'm trying to figure out how to install programs from source. From what I've gathered I have to get the tarball file, ...
1
vote
1answer
1k views

How to set shell environment variable from autotools .am file?

I need to get the shell equivalent of export PYTHONHTTPSVERIFY=0 to work in an autotools .am file, but can't get it working. I currently have this declaration in my Makefile.am file: ...
0
votes
1answer
44 views

What is the reason that configure file is required for uninstalling an application installed via configure, make and make install?

In https://unix.stackexchange.com/a/141619/674 I wouldn't store just the makefile. While the uninstall target may not (or perhap, should not) need anything else to succeed, that's not a ...
2
votes
2answers
363 views

Problems packing a .deb from autotools. (checkinstall, debhelper, …)

I'm currently building a large project that contains sources written in few languages such as C,C++ & Python. I recently managed to (painfuly) handle autotools to make a proper install. Next step ...
2
votes
1answer
850 views

Specify script to run with install command automake

I'm currently building a large package which is handled with automake. Package is composed by C,C++ and Python. So far i have good results with C/C++ but i'm blocked when it comes to python ...
6
votes
1answer
4k views

What does `minix/config.h` do?

Many times when I run configure, I get this message: checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no configure runs without errors or ...
3
votes
1answer
319 views

Using *Autotools*, how do I save the compiler listing on a file by file basis?

Please understand I'm using Autotools / Automake / Autoconf, and I can not use redirection because it needs to be applied command by command in the make file generated by autotools. I need a way for ...
4
votes
2answers
703 views

How to build a specific file from a GNU Automake package?

Given a source package that uses GNU Automake, the typical build goes like this: cd ${srcdir} ./congigure ./make To build a single file rather than everything, make would normally accept this: $ ...
10
votes
1answer
4k views

Why does configure take variables as arguments?

Is VAR=value ./configure the same as ./configure VAR=value? In the first case, the shell sets the environment variable and in the second the configure script takes the string 'VAR=value' as an ...
1
vote
3answers
2k views

Install Mesa3D on Debian - LIBDRM not found by configure autoconf

I am trying to compile and install mesa3D from source. (ftp://ftp.freedesktop.org/pub/mesa/11.0.0/mesa-11.0.0-rc3.tar.gz) I am at the configure step ./configure \ CXXFLAGS="-O2 -g -...
2
votes
1answer
313 views

How to remove a license file when debian packaging using autotools automake?

My Debian package produces a lintian error: rhythmbox-plugin-alternative-toolbar: extra-license-file usr/lib/rhythmbox/plugins/alternative-toolbar/LICENSE This is because the source contains the ...
5
votes
3answers
23k views

automake error: Unescaped left brace in regex is deprecated

After compiling and installing GNU automake 1.15, I get this error whenever I run automake: Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- ...
1
vote
3answers
12k views

bash: ./configure: no such file or directory

I am experimenting with Linux, and my work uses CentOS 6.5, so I am using that at home. I am following a tutorial, followed it closely I believe, yet I am hitting an error like the one mentioned in ...
1
vote
1answer
541 views

How to add a precompiled library in autotools?

I have a precompiled shared object that I need to distribute with the package I'm building, how do I get automake to copy the shared object to the lib/ folder where it places all of the rest of the ...
1
vote
1answer
519 views

'pkglibexecdir' is not a legitimate directory

I'm following some outdated instructions in an attempt to compile some proprietary, closed-source, unsupported, legacy code. Here is what a typical shell session looks like: $ autoreconf -fi src/...
1
vote
0answers
68 views

Moving to FHS 3: How to overwrite GNU Autotools directory variables?

In GNU Autotools, the directory variables $sharedstatedir and $localstatedir expand to $(prefix)/com and $(prefix)/var respectively. However the com and var directories don't exist anymore in FHS 3, ...
6
votes
2answers
1k views

How to prevent automake from overwriting INSTALL?

I'm working on a project that has a custom INSTALL file. Running automake --add-missing (or more precisely, autoreconf -i) will generate the GNU default INSTALL file, and overwrite our file with it. ...
30
votes
4answers
127k views

Can not run configure command: “No such file or directory”

I'm trying to install a Debian package from source (via git). I downloaded the package, changed to the package’s directory and ran ./configure command but it returned bash: ./configure: No such file ...
1
vote
2answers
173 views

Hardcoded /usr/bin/env in configure scripts

I'm building a Linux system that doesn't have a /usr directory. Getting the toolchain to work was surprisingly easy, but I'm hitting this irritation with a lot of auto* scripts: configure, etc. often ...
3
votes
0answers
311 views

An obscure autotools error with Epson iscan project

I'm seeing the following error when attempting to build iscan using the master branch on Debian wheezy. This project provides support for Epson scanners, in cases when SANE doesn't. This project ...