[opensuse-packaging] Troubles with AM_INIT_AUTOMAKE macro

Hello, I'm trying for a while to package h323plus, to be able to push new versions of opal's softs to openSUSE but i'm not able to process an autoconf or autoreconf correctly. If I run autoreconf -fiv, the output tells me there is no makefile.am for configure output and if I run autoconf --force, the output tells me : "error: possibly undefined macro: AM_INIT_AUTOMAKE". I've tried to fix it with suggests from forums when this error appens like with this patch : --- a/configure.ac 2014-03-26 00:58:15.000000000 +0100 +++ b/configure.ac 2015-03-30 17:03:20.135824631 +0200 @@ -1,4 +1,10 @@ -AC_INIT(include/h323.h) +AC_INIT([h323plus], [1.26.5]) +AC_CONFIG_SRCDIR([include/h323.h]) +AM_INIT_AUTOMAKE + +AC_CONFIG_MACRO_DIR([m4]) + +LT_INIT AC_PROG_CXX AC_HEADER_STDC but nothing's better. So if someone could help me, many thanks in advance. The package lives in home:posophe:branches:network:telephony/h323plus . Regards. Benjamin -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On Tuesday 2015-03-31 01:47, Benjamin Denisart wrote:
Hello,
"error: possibly undefined macro: AM_INIT_AUTOMAKE".
BuildRequires: automake innit? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Benjamin Denisart <p.drouand@gmail.com> writes:
but i'm not able to process an autoconf or autoreconf correctly.
Why do you need that? Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On 03/31/2015 09:19 AM, Andreas Schwab wrote:
Benjamin Denisart <p.drouand@gmail.com> writes:
but i'm not able to process an autoconf or autoreconf correctly. Why do you need that?
Andreas.
Because of changes in configure, makefile files. And I have BR automake, indeed. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Benjamin Denisart <p.drouand@gmail.com> writes:
Because of changes in configure
Why do you need to change that? Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On 03/31/2015 11:40 AM, Andreas Schwab wrote:
Benjamin Denisart <p.drouand@gmail.com> writes:
Because of changes in configure Why do you need to change that?
Andreas.
Because of some fixes for recent autoconf/automake versions and a fix to use pkg-config to find ptlib-config. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Benjamin Denisart <p.drouand@gmail.com> writes:
Because of some fixes for recent autoconf/automake versions
The configure script was generated with the most recent version of autoconf. Why do you need to fix anthing? The package does not use automake in any way. Why do you need automake? Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On 03/31/2015 11:47 AM, Andreas Schwab wrote:
Benjamin Denisart <p.drouand@gmail.com> writes:
Because of some fixes for recent autoconf/automake versions The configure script was generated with the most recent version of autoconf. Why do you need to fix anthing? The package does not use automake in any way. Why do you need automake?
Andreas.
It's not true. The package stills use depreciated macros like AC_INIT($HEADER) and a lot of other things. But whatever, I'm not a beginner. I have done these changes for a good reason. I just need help to regenerate the configure script. I'm not an autotools expert but, if I have well understood, the configure.ac file has to specify makefile.in as his output. I don't know how to do, and I'm not sure to be right. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Benjamin Denisart <p.drouand@gmail.com> writes:
It's not true. The package stills use depreciated macros like AC_INIT($HEADER) and a lot of other things.
Why is that a problem? Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On 03/31/2015 11:56 AM, Andreas Schwab wrote:
Benjamin Denisart <p.drouand@gmail.com> writes:
It's not true. The package stills use depreciated macros like AC_INIT($HEADER) and a lot of other things. Why is that a problem?
Andreas.
Because it does not build with autoconf >= 1.65. Anyway, the patch to find ptconfig is absolutely needed. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Benjamin Denisart <p.drouand@gmail.com> writes:
Because it does not build with autoconf >= 1.65.
Does it? It works fine with autoconf 2.69, with which the configure script was generated.
Anyway, the patch to find ptconfig is absolutely needed.
Does it? Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Look, even if the configure script works without the changes to remove depreciated functions, the other patches need to reconfigure the script. I still have issues with undefined macros : configure.ac:2: error: possibly undefined macro: AM_CONFIG_HEADER [ 29s] If this token and others are legitimate, please use m4_pattern_allow. [ 29s] See the Autoconf documentation. [ 29s] configure.ac:7: error: possibly undefined macro: AM_INIT_AUTOMAKE [ 29s] configure.ac:29: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL [ 29s] configure.ac:30: error: possibly undefined macro: AM_PROG_LIBTOOL 2015-04-01 9:39 GMT+02:00 Andreas Schwab <schwab@suse.de>:
Benjamin Denisart <p.drouand@gmail.com> writes:
Because it does not build with autoconf >= 1.65.
Does it? It works fine with autoconf 2.69, with which the configure script was generated.
Anyway, the patch to find ptconfig is absolutely needed.
Does it?
Andreas.
-- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Benjamin Denisart <p.drouand@gmail.com> writes:
Look, even if the configure script works without the changes to remove depreciated functions, the other patches need to reconfigure the script. I still have issues with undefined macros :
Then why did you add them?!? Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

This is the output with my patch disabled ! 2015-04-01 12:01 GMT+02:00 Andreas Schwab <schwab@suse.de>:
Benjamin Denisart <p.drouand@gmail.com> writes:
Look, even if the configure script works without the changes to remove depreciated functions, the other patches need to reconfigure the script. I still have issues with undefined macros :
Then why did you add them?!?
Andreas.
-- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Benjamin Denisart <p.drouand@gmail.com> writes:
This is the output with my patch disabled !
No, it isn't. The unmodified sources work correctly. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On Wed, 2015-04-01 at 11:53 +0200, Benjamin Denisart wrote:
AM_CONFIG_HEADER
AM_CONFIG_HEADER is deprecated; use AC_CONFIG_HEADERS Hth, Dominique -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

I know. I applied a patch to remove depreciated macros and move them to AC_INIT style. And I now have troubles I listed in my first message. 2015-04-01 12:08 GMT+02:00 Dominique Leuenberger / DimStar <dimstar@opensuse.org>:
On Wed, 2015-04-01 at 11:53 +0200, Benjamin Denisart wrote:
AM_CONFIG_HEADER
AM_CONFIG_HEADER is deprecated; use AC_CONFIG_HEADERS
Hth, Dominique -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (4)
-
Andreas Schwab
-
Benjamin Denisart
-
Dominique Leuenberger / DimStar
-
Jan Engelhardt