I'm writing my own unit testing library (using autoconf, automake, and libtool) to better fit my needs (I don't need a super large amount of features, just a test runner and assertions). I have gotten to the point where it seems to be usable.
Of course, it uses a config.h to figure out what headers to include. The problem is that I am ...
I'm porting an old version of a software that is partly a linux kernel module to EL5, after doing the relevant hacks, the horrible GNU autotools mess that is used to compile the thing (no, it does not compile the kernel module via kbuild :( ) I keep getting lots of warnings 'Including config.h is deprecated' - I am told by google search...
I've got a Subversion project that uses Gnu Autotools (i.e., automake, autoconf, and libtool) to manage source code within a subfolder (called 'subpackage'). The subpackage references source files that are above the subpackage's root source directory, and are common to other subpackages. Unfortunately, when running 'make dist' to creat...
I am working on a C library that has SWIG bindings to Python. In my autotools configuration, I check for the gettimeofday function. I have discovered that I can't compile the Python portion of my project because it conflicts with a file pyconfig.h, which also defines HAVE_GETTIMEOFDAY.
This seems like a very general problem, I was sur...
I am using GNU autoconf/automake. Is there any way I can control what make prints to stdout from configure.ac or Makefile.am? For example, suppress mv and cp commands being printed out to the screen, only print the name of the file being compiled by gcc rather than the whole command line, highlight gcc warnings in some way.
...
What's the point of the aclocal script and aclocal.m4 file, in context of using autotools to configure source files? From what I read, aclocal scans macro files for macros that are later used by automake. I don't understand this process in depth, but it seems that the scanning functionality could have just been embedded into automake.
...
So after I ran libtool and got out a libfoo.lo and foo.o file from my library source, how do I convert the libfoo.lo file into a normal Linux shared library, like libfoo.so.1.0.0 so I can install and link to it on my target system?
...
i would like to know how can i compile a number of header files by just one command using autotools in arch linux
...
Hi, I am an autotools newb
and I have difficulties figuring out howto easily
link a specific library into one of the configured targets.
I have a source package that I want to build the usual way:
./configure && make && make install
Unfortunately one of the cpps has a missing reference to another library.
Compiling it by hand (adjustin...
I have a program main.c which calls header.c with the help of header.h in its program. I know how to compile it in GCC but now i would like to use autotools for it. I would like to know what should be written in Makefile.am to compile main.c?
so for example if i have two c files main.c and header.c as given below
main.c:-
#include<std...
I've got a C++ project which uses automake and autoconf. I'm new to both of these.
My home directory is network mounted -- the same on every server we have -- and I want to compile and run the project (and its executable) concurrently on separate machines.
Our servers are frequently different architectures. My desktop is 32-bit, but th...
I'm trying to edit a configure script that will execute this piece of code if it is above Automake version x.xx, and if it isn't, it executes a different piece of code.
So, I think that version I want to check for 1.10.
If it's above this version, I want it to be this:
m4_rename_force([glibcxx_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
otherw...
Hi,
In my c/c++ files, there are multiple #define. As an example:
#ifdef LIBVNCSERVER_HAVE_LIBZ
/* some code */
#ifdef LIBVNCSERVER_HAVE_LIBJPEG
/* some more code */
Can you please tell me how can I modify my Makefile.in so that I have those #define in ALL files during compilation?
Thank you.
...
I searched for the answer to this question but couldn't find any good. Maybe they're old and something has changed, so I ask again.
I have a directory structure as:
my_project
src
bin
I want that, when I do make in the root dir, the binaries are put in ./bin, instead of cluttering ./src. But how?
EDIT: I am using C++. My Makefile....
I have an autotools project. The same tarball on one machine compiles the files like this:
gcc ... File.cpp -o project-File.o
and on the other machine:
gcc ... File.cpp -o File.o
Does anyone know what causes this different behavior? Both machines are identically patched OS X, with the same tool versions.
...
I'm learning about the autotools and made it through a hello world scenario and now wanted to try wrapping up some cppunit tests into a package and build it using the autotools. In order to build the package, cppunit would have to be installed on the system. What's the best way to check for this during the ./configure portion of the bu...
I'm working on a project that is written in both C++ and python. I have the following line in my configure.ac:
AC_INIT(MILHOUSE, 0.3.6)
which means that in the config.h generated by running configure, i have the following define line:
/* Define to the version of this package. */
#define PACKAGE_VERSION "0.3.6"
I just wanted to kn...
Greetings,
I need to disable optimization flag for a individual file using autotools.
What is the best way to do it?
...
I am using GNU autotools to build cuda project. CUDA files are regular C++ files as far as preprocessor is concerned, however they use .cu extension and must use nvcc compiler which is g++ based NVIDIA compiler. This breaks regular dependency tracking, .deps directories are not populated. This means that if .cu file includes another f...
hi
Is it possible to document configure.ac such that doxygen can pick up embedded comments and produce documentation for options, variables, etc. in generated manuals?
Thanks
...