I have a small ANSI C application which compiles cleanly under different tested compilers and platforms. It doesn't use any preprocessor switches or external dependencies and the makefile is simply something like:
myapp: *.c
gcc *.c -Wall -o myapp
If I want to distribute this project in source form as portable as possible, should ...
How do you set the order of libraries in automake?
In my am file I have something like:
myprog_DEPENDENCIES = adhoc-target
myprog_SOURCES = myprog.c
myprog_LDADD = libmine.la
myprog_LFLAGS = -static -L/home/user/lib -ladhoc
Now, when I compile I get this compile line similar too:
gcc -static myprog-myprog.o -o myprog -L/home/user/li...
How do I stop automake from adding -I. to my compile line?
It seems automake or libtool objects always have a compile command similar to:
g++ -DHAVE_CONFIG_H -I. -I./proj/otherdir -o myprog.o myprog.c
The problem is that I have two header files with the same name....
./proj/otherdir/Header.h
./proj/thisdir/Header.h
Each header has...
Greetings. I am trying to create an autoconf configure script that automatically checks for which pthread option to use and, ideally, specifies -pthread when compiling with gcc.
It was my hope that AX_PTHREAD would work, but neither seems to work on MacOS 10.6.
I'm using AX_PTHREAD from http://www.nongnu.org/autoconf-archive/ax%5Fpthre...
Autoconf scripts have trouble with a filename or pathname with spaces. For example,
./configure CPPFLAGS="-I\"/path with space\""
results in (config.log):
configure:3012: gcc -I"/path with space" conftest.c >&5
gcc: with: No such file or directory
gcc: space": No such file or directory
The compile command from ./configure is ac...
I need to include the GLib headers for a project that is built with an autoconf-based system for portability.
How can I safely import the GLib headers in a portable manner? I know about pkg-config, but that is not entirely portable (since some systems don't have it and I would prefer to only rely on autoconf for configuration).
...
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'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 have strawberry perl installed and usable. while executing autoconf it show error:
$ autoconf
The system cannot find the path specified.
autom4te-2.64: need GNU m4 1.4 or later: /bin/m4
I do have m4 in msys there and runable, what happening? my m4:
$ /bin/m4 --version
GNU M4 1.4.7
Copyright (C) 2006 Free Software Foundation, Inc.
Thi...
hello
Is there a autoconf macro to configure generic library that can:
generates --with configure option
setup library and include path
setup compiler/preprocessor and linker flags
check existence of library and include files
setup configuration macros
Right now I am doing everything using ARG_WITH, CHECK_LIB, etc. the steps are gen...
I am trying to test some typical cuda functions during the configure process. How can I write it in my configure.ac? Something like:
AC_TRY_COMPILE([],
[
__global__ static void test_cuda() {
const int tid = threadIdx.x;
const int bid = blockIdx.x;
__syncthreads();
}
],
[cuda_comp=ok],[cuda_comp=no])
But nvcc is not defined...
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?
...
Hi!
I think this is a question about automake.
http://home.gna.org/cal3d/
I'm struggling with the cally demo of Cal3D.
The first problem I ran into was that the Cal3D code base is missing #include <cstring> and #include <memory> in a lot of places.
Doing this every time I got an error in any source file in Cal3d was enough to let me ...
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 want my C++ program to include a "--version" option which causes it to print out:
Architecture it's compiled for
Version of the source (e.g., v0.1.0)
Name of the application
I'm also using autoconf/automake for the first time, and I notice that configure.ac has both the binary and the version. It doesn't currently have architecture...
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...
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'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?
...