Hi,
assume someone has finished a software project and wants to distribute it
with autoconf. Currently the software compiles and runs on the platform of
the developer; though the developer is interested to get the software run on
other platforms as well, if there is a need (note, the developer has
With AC_DEFINE I can define cpp definitions.
Is that legal/supposed-to to access the underlying var in configure.ac?
Same for AC_SUBST.
E.g.:
## configure.ac
AC_INIT([foo], [1.0]) ## AC_DEFINE: PACKAGE_TARNAME/VERSION...
AM_INIT_AUTOMAKE([$PACKAGE_TARNAME], [$PACKAGE_VERSION])
## eof configure.ac
Unfortuantely AC_PROG_CXX includes the `-g' option in CXXFLAGS,
with what I am not happy with.
How can I get rid of the `-g' flag in a way that doesn't *clobber* a user
supplied CXXFLAGS?
(However, I assume resetting CXXFLAGS entirely is not wise, isn't it?)
Is there any AC_ switch for it, or do I
On Friday 01 August 2003 23:25, Guido Draheim wrote:
> Frank A. Uepping wrote:
> > Unfortuantely AC_PROG_CXX includes the `-g' option in CXXFLAGS,
> > with what I am not happy with.
> > How can I get rid of the `-g' flag in a way that doesn't *clobber* a user
&g
On Saturday 02 August 2003 07:46, Richard Bos wrote:
> Op vrijdag 1 augustus 2003 21:38, schreef Frank A. Uepping:
> > Unfortuantely AC_PROG_CXX includes the `-g' option in CXXFLAGS,
> > with what I am not happy with.
> > How can I get rid of the `-g' flag in a wa
I want to check for a kernel header file with AC_CHECK_HEADER.
E.g.:
AC_CHECK_HEADER([cdrom.h],, [AC_MSG_ERROR([cdrom.h not found])])
./configure CPPFLAGS=-I/usr/include/linux
gives me:
checking cdrom.h usability... no
checking cdrom.h presence... yes
configure: WARNING: cdrom.h: present but cannot
The AC_PROG_CC/CXX are searching for a compiler.
Will the found compiler being used to compile the feature tests?
E.g.: does AC_CHECK_HEADER(...) use the compiler determined by AC_PROG_CC?
What about when the user supplies a compiler via `./configure CC=mygcc';
is that compiler used instead of th
The macros which compile a small C prog for testing a feature,
do they need the AC_PROG_CC macro to be called before?
/FAU
On Sunday 03 August 2003 19:24, Bob Proulx wrote:
> Frank A. Uepping wrote:
> > I want to check for a kernel header file with AC_CHECK_HEADER.
>
> Since you are wanting to use a kernel header file you should know that
> you are leaving portable code behind and moving into
Each directory containing source files should have a ChangeLog.
Should changes to the `GNU build system' source files (configure.ac,
Makefile.am) also be recorded into the ChangeLog?
/FAU
Hello,
I have the following directory layout:
src/
bar.c
src/common
foo.c
The program foobar should be build as follows (dependency):
foobar: bar.c common/foo.c
That is, in order to build foobar, foo.c has to be compiled first
and then linked with bar.o to foobar.
Can automake handle such a d
Hi,
I want to pass an additional cpp flag (-I) to the compilation process.
Here is what I am doing:
My configure.ac determines the additional include directory and
does a `AC_SUBST([MYINCL], [$myincl])' on it.
Then Makefile.am does a `AM_CPPFLAGS = [EMAIL PROTECTED]@'.
Is this the proper way to do
12 matches
Mail list logo