Questions tagged [autoconf]

42 questions
74
votes
6 answers

Some M4 macros don't seem to be defined

I am trying reinstall pacman on my Arch Linux distribution. When I run the configure script "configure.ac", I get a bunch of undefined macros: error: possibly undefined macro: AM_INIT_AUTOMAKE. If this token and others are legitimate, please use…
SirTasty
  • 883
  • 1
  • 7
  • 8
70
votes
9 answers

Why can't gcc find libevent when building tmux from source?

I want to install tmux on a machine where I don't have root access. I already compiled libevent and installed it in $HOME/.bin-libevent and now I want to compile tmux, but configure always ends with configure: error: "libevent not found", even…
volker
  • 703
  • 1
  • 6
  • 4
41
votes
3 answers

What are .in files?

Sometimes in the sources of projects I see "*.in" files. For example, a bunch of "Makefile.in"s. What are they for and/or what does the ".in" part mean? I assume that this has something to do with autoconf or make or something like those, but I'm…
strugee
  • 14,723
  • 17
  • 73
  • 119
12
votes
2 answers

autoreconf fails with 'Can't exec "libtoolize"'

I wanted to learn about autotools, so I just started watching some tutorials on YouTube. I made a folder named hello and then made a configure.ac file: AC_INIT([hello],[.01]) AC_OUTPUT I saved it and then ran autoreconf -i. Obviously, this didn't…
abkds
  • 267
  • 1
  • 3
  • 12
6
votes
1 answer

how to make PKG_CONFIG_PATH variable to refer an installed library?

I am in the process of installing the required libraries for FireFox 3.6 on a Redhat Linux Nash 4.x system. I already have successfully installed the glib2.12.0 library, but When I ./configure the atk 1.9.0 library I get the following…
selvin
  • 251
  • 1
  • 2
  • 9
5
votes
3 answers

What is the preferred way to build software in the BSDs?

I was wondering what the preferred way of building software in the BSDs is and if they are actively using and encouraging the use of GNU autotools. I found the following section about GNU autoconf in the OpenBSD Handbook: autoconf is a gnu tool…
user846
5
votes
1 answer

How can I install M4 on Linux, avoiding the dependency loop with Automake and Autoconf?

I am trying to install GNU M4 on my Chromebook using the 1.4.17 tarball, but when I run ./configure and thenmake I get an error related to aclocal, which is apparently part of the GNU Automake package. The exact error I get is WARNING:…
murgatroid99
  • 173
  • 7
4
votes
2 answers

How to put multiple -I, -L and -l flags in ./configure?

I am trying to build using ./configure. I have Three include directories -I/path1/include -I/path2/include -I/path3/include Two link directories -L/path1/lib -L/path2/lib Two -l flag options -ltensorflow -lasan Two compile flags -O3 -g How…
Sap BH
  • 45
  • 4
4
votes
1 answer

double square bracket in 'case' in 'configure.ac' i[[3456]]86

I am trying to understand the following code snippet. host_cpu='i386' case "$host_cpu" in i[[3456]]86) echo "host_cpu=i386" ;; x86_64) echo "host_cpu=x86_64" ;; *) echo "AC_MSG_ERROR([unsupported CPU type]) " …
supmethods
  • 481
  • 6
  • 12
4
votes
1 answer

autoconf save ./configure command line to config.h

Some binaries save the command line used to configure them inside the binary (I don't remember any that do, otherwise I'd check the source). Is there a way to obtain the command line used as a macro in configure.ac? For example, if I compile my code…
zje
  • 2,251
  • 14
  • 20
4
votes
1 answer

GNU autotooling, where to install shell functions?

I have a tiny project that configures and installs some shell scripts using GNU autotools. Now, the scripts will have to source a common file containing some shell functions. Where should this file be installed by make install? According to…
Kusalananda
  • 320,670
  • 36
  • 633
  • 936
4
votes
2 answers

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: $ make path/to/file However, that returns an…
starfry
  • 7,302
  • 6
  • 47
  • 69
3
votes
1 answer

Build bash (or alternate linux package) with custom binary/doc name

I am trying to build Bash 4.2 as an RPM package for use on Enterprise Linux 5 systems, which come by default with 3.2.25. This works successfully, however, I want both versions to co-exist on the system, to avoid conflicts with the system package,…
Stealthii
  • 33
  • 2
3
votes
1 answer

How to make autoconf use "install" instead of "mkdir -p"?

When I run sudo make install on a compiled package from the GNU archive, it uses mkdir -p to create the destination directories. I'd prefer it to use mkdir -p -m 0755 or install -d -m 0755 instead in order to ensure the destination directory has…
EnzoR
  • 893
  • 1
  • 7
  • 11
2
votes
1 answer

Nested packages for different subdirectories in autoconf?

I have different subdirectories that need to be compiled in different ways. For example, some files needs to include some others using CFLAGS. However, CFLAGS can only be set in configuration files, so I guess I need multiple configure.ac's. Is it a…
Johannes
  • 353
  • 3
  • 13
1
2 3