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
0
votes
1 answer

error when compiling -- using autogen generated makefile

I am trying to compile a libwebsocket package, procedure used is :-- ./autogen ./configure make I am getting libtool error at make time :--- make make all-recursive make[1]: Entering directory…
Katoch
  • 2,709
  • 9
  • 51
  • 84
0
votes
1 answer

Jamfile - "Unknow rule" - How to read into it

I am trying to compile this project - It compiles perfectly in Linux(ubuntu). But I want it to work on Windows. So I installed MinGW (which comes with Jamplus installed) - and went ahead installing all the libs needed for the project. After doing…
Amit Ahire
  • 303
  • 4
  • 10
0
votes
1 answer

Checking for a C++ compiler's presence

The GNU documentation for AC_PROG_CXX states that: Otherwise, if the macro is invoked without an argument, then search for a C++ compiler under the likely names (first g++ and c++ then other names). If none of those checks succeed, then as a…
qdii
  • 12,505
  • 10
  • 59
  • 116
0
votes
1 answer

AM_CONDITIONAL testing size of type

I would like to define PLATFORM64 if SIZEOF_VOIDP equals 8, the configure snippet below don't work but shows what I would like to achieve. Is there a way of doing this in my configure script? # Get size of void* AC_CHECK_SIZEOF(void*) # Determine…
user152949
0
votes
3 answers

GNU make use file as target in SUFFIXES

Makefile is using .SUFFIXES: .ext1 .ext1: echo bla bla I have a configuration file path/to/abc.ext1 so make path/to/abc works fine. I want make path/to/abc.ext1 to work as well. It would be great if I can reuse existing .ext1 target.
user648129
0
votes
1 answer

Automake not including object files in built static library

I currently have a largish project including multiple applications and am trying to build a static library along with one of my applications for inclusion in several of the other applications. I followed the tutorial provided at…
babb517
  • 15
  • 2
0
votes
2 answers

Should (and how to do it) include paths be collapsed in configure script?

In my configure/configure.ac, I do multiple PKG_CHECK_MODULES calls. Most of them return the same -I path:-I/usr/local/include, and also the same -L path: -L/usr/local/lib. I would say that -I path doesn't do any difference, because gcc compiles one…
Roffal
  • 3
  • 1
0
votes
3 answers

best practice for building with/out included libraries

a project ships with a copy of library foo, in a filesystem layout like: myproject/ myproject/src/ # sources of my project myproject/libfoo/ # import of "foo" library the standard (autotools-based) build-system builds libfoo, then builds myproject…
umläute
  • 28,885
  • 9
  • 68
  • 122
0
votes
1 answer

Adding GLib to an existing application with gnu toolchain (configure, Makefile, etc.)

I've added code to an existing large application and need to make GLib a requirement, as my code relies on it. For development, I just manually edited the Makefile to add -lglib-2.0 To the LIBS= variable and -I/usr/include/glib-2.0…
JJC
  • 9,547
  • 8
  • 48
  • 53
0
votes
3 answers

Where are autoconf macros defined?

The standard ones, like AC_PROG_AWK. I looked in the docs, but couldn't find them. Any help or link would be truly appreciated!
0
votes
2 answers

Tint2 Compilation

I'm on a network where I don't have root access, so everything I install is under a prefix ~/bin (actually referenced by its full path). So I have openbox working fine, which is what I'm using to send this from. Imlib2 I do ./configure…
meunierd
  • 381
  • 4
  • 14
0
votes
1 answer

how to check return value of shell cmd in autotools configure

I would like to run a shell command during the configure process- if the return value of this operation is 0, I would like to use it. Otherwise, I want to exit with error message. I wrote something like this: LOC=$(perl -MExtUtils::Embed -e perl_inc…
Omer Dagan
  • 14,868
  • 16
  • 44
  • 60
0
votes
2 answers

libtool deleted by 'make distclean'

I've copied libtool into my program's source tree to distribute it with the program. But when I run 'make distclean' libtool is deleted with the rest of the rest of the generated files. How do I stop that from happening? I tried putting EXTRA_DIST…
Steve K
  • 2,124
  • 16
  • 19
0
votes
2 answers

Shell variables as autoconf macro input

I need to check for Erlang libraries on my configure.ac but the list of erlang apps is on a separate file, and I have to run a program to extract that list. Normally, I can do this: AC_ERLANG_CHECK_LIB([app1]) AC_ERLANG_CHECK_LIB([app2]) However,…
jvliwanag
  • 1,508
  • 1
  • 13
  • 29
0
votes
2 answers

tar a .tgz but autoconf doesn't configure properly

Using Ubuntu, have the file clhep-2.1.2.4.tgz The instructions say to "unwind the source code tar ball and autoconf and automake will already have been run." it then says to do the standard "/configure --prefix=[path]", "make", "make install"... So…
chriszumberge
  • 844
  • 2
  • 18
  • 33