Hi,
In configure.in, i have:
AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
and it gets turned into:
if test x$enable_gtk_doc = xyes; then
ENABLE_GTK_DOC_TRUE=
ENABLE_GTK_DOC_FALSE='#'
else
ENABLE_GTK_DOC_TRUE='#'
ENABLE_GTK_DOC_FALSE=
fi
Isn't this backward? When
Feng QIN wrote:
Hello all,
When I use autoconf/automake tools to generate makefile for my package, the
CXXFLAGS is always added -O2 by tools, while I don't want to use for
debuging.
Is it possible to remove it from options of configure command or some other
ways better than removing it manually
John Calcote wrote:
Generally, when I build with the DEBUG macro defined, it's because I want to step through a portion of my code with the debugger. However, I've noticed that using AC_PROG_CC sets CFLAGS to -g -O2 on GCC - and tries to use similar options on other compilers.
I really like
Hi,
I have a build tree consisting of various programs and libraries, all
in separate subdirectories. The programs are built using these libraries.
Both programs and libraries get installed.
When each library is built, i want to copy its header to a header-directory
and its object to a
Bob Rossi wrote:
Hi,
I have 2 projects, CGDB and libgdbmi. CGDB depends on libgdbmi. I would
like to make libgdbmi an autoconf package so that other people can
benefit from it.
Is there a nice way to have CGDB's package use libgdbmi's package as if
it were all 1 package? I would like to avoid
Paul D. Smith wrote:
%% Russell Shaw [EMAIL PROTECTED] writes:
rs man stpcpy
???
char *stpcpy(char *dest, const char *src);
DESCRIPTION
The stpcpy() function copies the string pointed to by src (including
the terminating `\0' character) to the array pointed to by dest
Richard Kenner wrote:
A few comments:
Many portable C programs assume that signed integer overflow wraps around
reliably using two's complement arithmetic.
I'd replace portable C programs with widely-used C programs. The normal
use of portable means that it conforms to the standard.
David Bruce wrote:
Hi,
I'm about to start modifying my program (Tux Typing) so as to allow
creation of custom word lists. The gist is that I need to have
modifiable files that are visible to all users. I have been told by
knowledgable people that the appropriate location for these files
would
Hi,
I've just got autoconf 2.57 and automake 1.7 to compile a gtk 2.2.2 program.
When i change configure.ac or Makefile.am, are you supposed to run autoreconf,
or just run the appropriate autoheader/aclocal/autoconf/automake separately?
Hi,
In configure.am, i have:
AM_PATH_GTK_2_0(2.0.0,,,gthread)
AM_PATH_GLIB_2_0(2.0.0,,,gthread)
but i still get linker errors:
gcc -g -O2 -o iongen main.o gui.o eventfifo.o event.o xmalloc.o
-Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm
Dr. David Kirkby wrote:
Can anyone throw any light on the situation below? I'm just about fed up
trying all manner of things to build a configure.ac that generates no
error messages from autoreconf, configure or make.
'autoreconf' runs without any errors and generates a configure script.
The
Hi,
Which configure.ac macro should i use for a gtk2 app?
AM_PATH_GTK_2_0()
PKG_CHECK_MODULES()
AC_PATH_LIB()
Is there redundancy here, or does one macro supercede the others?
Why aren't the first two macros in the archive?:
http://www.gnu.org/software/ac-archive/htmldoc/index.html
Hal Snyder wrote:
Ralf Corsepius [EMAIL PROTECTED] writes:
BTW: Having to pass /usr/local almost always indicates a massively
mis-configured toolchain or configure script.
Sorry if this is an F.A.Q. I see various ways of doing it but wonder,
what is best practice?
What are the recommended automake
Dan Kegel wrote:
Russell Shaw wrote:
Hal Snyder wrote:
Ralf Corsepius [EMAIL PROTECTED] writes:
BTW: Having to pass /usr/local almost always indicates a massively
mis-configured toolchain or configure script.
Sorry if this is an F.A.Q. I see various ways of doing it but wonder,
what is best
Hi,
I'm learning autoconf packaging.
At the configure step, i want to specify:
./configure --with-default-size=5
and have appear in config.h: #define DEFAULT_SZ 5
In configure.ac, i have:
AC_ARG_WITH(
[border_size],
AC_HELP_STRING([--with-default-border-size],
[Set
Stepan Kasal wrote:
Hello,
On Thu, Oct 21, 2004 at 04:53:06PM +1000, Russell Shaw wrote:
AC_DEFINE(DEFAULT_SZ,$default_size)
you already have the short hint. Thus you should do:
AC_ARG_WITH(border-size,
[AS_HELP_STRING(--with-border-size=n,
[Set default border size to `n
Stepan Kasal wrote:
Hello,
On Fri, Oct 22, 2004 at 04:20:18AM +1000, Russell Shaw wrote:
/configure --with-default-size=5.8
I still think --enable-default-size=5.8 is best suited for your needs.
But it's only cosmetic change.
Maybe a new macro should be made for setting numerical defaults
Hi,
If i've run ./configure CFLAGS=., then is there
a way to find what CFLAGS were set to afterwards? I want
to find what flags i used last time i configured a program
a few weeks ago.
___
Autoconf mailing list
Autoconf@gnu.org
Russell Shaw wrote:
Hi,
If i've run ./configure CFLAGS=., then is there
a way to find what CFLAGS were set to afterwards? I want
to find what flags i used last time i configured a program
a few weeks ago.
oops never mind, i just looked in the generated Makefile
Hi,
I'm updating a very old configure.in to a new configure.ac.
I don't get what this does:
# Check for the tigetstr/tigetnum functions.
AC_MSG_CHECKING([for tigetstr/tigetstr])
AC_CACHE_VAL([gotch_cv_have_curses_tigetstr],
[dnl
Russell Shaw wrote:
Hi,
I'm updating a very old configure.in to a new configure.ac.
I don't get what this does:
Don't worry, figured it out;)
___
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf
Carl Nicol wrote:
I'm building a project with multiple modules and using
AC_CONFIG_HEADERS. It seems to automatically define -DHAVE_CONFIG_H.
Is there any way to have it define some other variable to base the
inclusions upon? I have three different modules/libraries that I am
building separately
Alfred M. Szmidt wrote:
pkg-config tries to solve an important problem, but it does so in the
wrong way. pkg-config checks for an exact library name,
PKG_CHECK_MODULES does not check for a library name at all,
but for the name of the .pc file. This gives the administrator
William Pursell wrote:
Alfred M. Szmidt wrote:
pkg-config is broken because it checks for the existance of libraries,
and not for the features that are required for the program to run.
It does not even check for the existence of libraries.
It checks for the existence of a .pc file and
Hi,
I ran autoscan and it gives:
configure.ac: warning: missing AC_PROG_RANLIB wanted by: ltmain.sh:1601
So i added AC_PROG_RANLIB and ran autoreconf and now it says:
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
John Calcote wrote:
Hi all.
Just a quick note to let you all know that my Autotools book has been
published (finally!) by No Starch Press:
http://nostarch.com/autotools.htm
I apologize in advance for the apparent self-promoting tone of this
message but I know there are folks out there
Hi,
When should AC_CACHE_CHECK be used? Whenever the user uninstalls
something, wouldn't the cache become invalid?
___
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf
Thomas Dickey wrote:
On Sun, 5 Sep 2010, Russell Shaw wrote:
Hi,
When should AC_CACHE_CHECK be used? Whenever the user uninstalls
something, wouldn't the cache become invalid?
...only if the user happened to uninstall something during the configure
process. After that, AC_CACHE_CHECK
Hi,
On debian, there is /usr/bin/bison, and
/usr/bin/bison.yacc just does:
exec '/usr/bin/bison' -y $@
How can i get autoconf to use bison?
The problem with yacc is that you can't rename
the output files and always get: y.tab.h y.tab.c
Is there a way i can get yacc to give better output
On 12/01/11 06:24, John Calcote wrote:
On 01/11/2011 04:31 AM, Russell Shaw wrote:
Hi,
On debian, there is /usr/bin/bison, and
/usr/bin/bison.yacc just does:
exec '/usr/bin/bison' -y $@
How can i get autoconf to use bison?
The problem with yacc is that you can't rename
the output files
On 07/02/11 23:45, Brian Gough wrote:
At Sun, 6 Feb 2011 23:11:43 +0100,
Ralf Wildenhues wrote:
Back then, the consensus was to not make it the default because that was
deemed too dangerous for users. Various reports are cited, and also the
problem is mentioned that such kinds of failures tend
On 12/02/17 01:28, Norbert de Jonge wrote:
Hi,
The following is my reply to someone who recently sent me an e-mail
with a modified Ggradebook 0.92 that includes autoconf/automake.
First of all, I sincerely appreciate you looking into it.
What you've created is not quite what I'm looking for.
Hi,
In binutils/configure.ac there is:
m4_divert_text([PARSE_ARGS],
[case $srcdir in
*" "*)
m4_pushdef([AS_MESSAGE_LOG_FD], [])dnl
AC_MSG_ERROR([path to source, $srcdir, contains spaces])
m4_popdef([AS_MESSAGE_LOG_FD])dnl
;;
esac
ac_subdirs_all=`cd $srcdir && echo */configure | sed
On 13/10/16 13:11, Luca Saiu wrote:
...
> So, what I'm asking you is: does a clean solution exist, or compiling
> without a runtime library is just not supported by the Autotools? It
> sounds weird to say that for configuring you need a cross-compiler with
> support for a runtime that will
On 20/03/18 21:07, R. Diez wrote:
...
Requiring a POSIX shell in the next version is an improvement, but POSIX is too
limiting to really help. It is 2018. No wonder so many people want to ditch
Autoconf!
Autoconf is hard to learn because becoming properly familiar with shell
programming
On 20/03/18 22:53, Russell Shaw wrote:
On 20/03/18 21:07, R. Diez wrote:
...
Requiring a POSIX shell in the next version is an improvement, but POSIX is
too limiting to really help. It is 2018. No wonder so many people want to
ditch Autoconf!
Autoconf is hard to learn because becoming
On 23/10/20 6:06 pm, Russell Shaw wrote:
On 23/10/20 5:54 pm, Anatoli wrote:
Russell,
Thanks for your suggestion. The problem is, as I mentioned in the initial
post, on amd64 sizeof(time_t) is always 8 bytes, as well as long and long
long, so sizeof(time_t) == sizeof(long int) == sizeof(long
On 23/10/20 5:54 pm, Anatoli wrote:
Russell,
Thanks for your suggestion. The problem is, as I mentioned in the initial
post, on amd64 sizeof(time_t) is always 8 bytes, as well as long and long
long, so sizeof(time_t) == sizeof(long int) == sizeof(long long int).
I've actually tried the
On 23/10/20 6:06 pm, Russell Shaw wrote:
On 23/10/20 5:54 pm, Anatoli wrote:
Russell,
Thanks for your suggestion. The problem is, as I mentioned in the initial
post, on amd64 sizeof(time_t) is always 8 bytes, as well as long and long
long, so sizeof(time_t) == sizeof(long int) == sizeof(long
On 23/10/20 9:23 am, Anatoli wrote:
Hi All,
Is there a way to determine with autoconf what's the base type of a typedef?
I'm trying to accomplish the following:
There are standard types time_t, off_t, size_t and similar that are defined
differently on different platforms/OS.
For example,
40 matches
Mail list logo