Questions tagged [autoconf]

GNU Autoconf creates a shell script `configure` that is used to configure software for compilation for UNIX-like operating systems.

GNU Autoconf creates a shell script configure that is used to configure software for compilation for UNIX-like operating systems. It is extensible through the use of shell script and m4 macros. It is frequently used with GNU Automake and GNU Libtool (collectively known as Autotools).

1135 questions
7
votes
5 answers

How to check for haskell package versions in ./configure?

how can I tell configure to check for version >= x.y of a given Haskell package? Thanks,
Andrea Spadaccini
  • 12,378
  • 5
  • 40
  • 54
7
votes
1 answer

Autoconf subdirectories with subpackages depending on each other?

I've got a large project on my hand (master) that is split into several components (liba, b, c, d) to ease building and maintenance. When building the whole package, all of the subcomponents must be built in sequence, and some of these packages…
thiton
  • 35,651
  • 4
  • 70
  • 100
7
votes
3 answers

why automake fails to generate Makefile.in

Trying to use automake/autoconf (versions 1.10 and 2.61, respectively). Everything is working OK, except automake is not generating Makefile.in. There are some warnings generated, but I don't think they're significant. However, the last line makes…
wadesworld
  • 13,535
  • 14
  • 60
  • 93
7
votes
1 answer

More robust AC_COMPILE_IFELSE feature testing?

Autoconf's AC_COMPILE_IFELSE is misdetecting features for us under different compilers, like Sun's C++ compiler and IBM's xlC compiler. AC_COMPILE_IFELSE appears to check return values, but some compilers don't bother to set it or set it to…
jww
  • 97,681
  • 90
  • 411
  • 885
7
votes
2 answers

Makefile conditional with automake/autoconf

can anybody tell me if there is a way to insert a conditional block to Makefile.am so that it will be passed further to a Makfile created by autotools? Here is an example: ifeq "$(SOMEVAR)" "" SOMEVAR="default_value" endif This seems to be a usual…
autoconfer
  • 73
  • 1
  • 3
7
votes
2 answers

How to disable tracking of a dependency in configure script

I am trying to build a library with a different build system, but files in the library require a config.h header file that is generated after running the configure scripts generated by autoconf. This is the sequence of steps I am following to try…
Curious
  • 20,870
  • 8
  • 61
  • 146
7
votes
2 answers

Configuring Postgres with OpenSSL and '--with-openssl' option

I tried installing Postgres with OpenSSL by doing ./configure --with-openssl but I got an error saying configure: error: header file openssl/ssl.h is required for OpenSSL However, I do have OpenSSL installed. If I run openssl version I get this…
Brosef
  • 2,945
  • 6
  • 34
  • 69
7
votes
3 answers

Adding a custom installation directory option to Autoconf-generated configure scripts

configure scripts always include something like the following in the help message: ... By default, `make install' will install all the files in `/usr/local/bin', `/usr/local/lib' etc. You can specify an installation prefix other than `/usr/local'…
Daniel Trebbien
  • 38,421
  • 18
  • 121
  • 193
7
votes
1 answer

How to detect if a m4 macro exists / can be called

we're developing a software package that uses autotools (autoconf 2.69 and automake 1.13.3 to be precise). This package needs wxwidgets and this library provides its own m4 file to allow testing the installation of wxwidgets in the final…
Harald
  • 3,110
  • 1
  • 24
  • 35
7
votes
0 answers

How can I resolve "configure.ac: not using Gettext ... Libtool Automake"? Autoconf error in GNU/Linux?

I am new new to GNU/Linux and compiling. I am not able to compile Aegisub from source. On GNU/Linux Debian 7.7 Wheezy amd64, when running sh autogen.sh in Aegisub I get the following output: $ sh autogen.sh Running autoreconf... autoreconf:…
7
votes
2 answers

Cross-compile to static lib (libgcrypt) for use on iOS

I have downloaded latest libgcrypt & libgpg-error libraries from https://www.gnupg.org/download/index.html. I have successfully built (command line) both libraries using ./configure --enable-static --disable-shared; make ; make install on my Mac…
Chris Heimark
  • 73
  • 1
  • 3
7
votes
1 answer

Why am I getting this aclocal error?

I'm trying to compile libbsd from source on Ubuntu 13.04. I'm using a toolchain to cross-compile, but automake is on the local machine. I have aclocal-1.13 in the PATH and everything, but I'm still getting this error. I've tried looking them up but…
s g
  • 5,289
  • 10
  • 49
  • 82
7
votes
1 answer

Autotools build fails due to subdir-objects option in AM_INIT_AUTOMAKE

I'm currently working on a C++ project which relies on recursive automake for building. I want to build a shared library and the Makefile.am in the src directory of the library looks like # ... # Library name lib_LTLIBRARIES =…
Marcel
  • 616
  • 1
  • 5
  • 15
7
votes
5 answers

autoconf complains "C compiler cannot create executables" on Linux Mint

I am trying to do an installations of Linux Mint 16 'petra' on both 32 and 64 bit installs. I have no internet connection on my pc so have to install all additional software manually. Being a developer I thought I would attempt to install…
user3118566
  • 71
  • 1
  • 1
  • 2
7
votes
0 answers

Autoconf and Libtool Are Insanely Stubborn about Static Linkage

I'm using MinGW-w64 with POSIX threads. I want to build GNU gettext with POSIX threads and as shared libraries (DLLs in this case). However, when one builds runtime artifacts (such as DLLs or executables) which depend on POSIX threads with…
Alexander Shukaev
  • 16,674
  • 8
  • 70
  • 85