Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Autoconf again
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
feivelda
Guru
Guru


Joined: 21 Feb 2005
Posts: 480
Location: Frankfurt, Germany

PostPosted: Fri Jun 30, 2006 6:14 am    Post subject: [Solved] Autoconf again Reply with quote

I want to make the configure script for kommute, it's a kde project.
First I tried

Code:
make -f Makefile.cvs


This doesn't work, due to autoconf
So I searched the forums and tried another way

Code:
WANT_AUTOCONF_2_5="1" make -f Makefile.cvs


This gives me the same as without the WANT_AUTOCONF variable

Code:
WANT_AUTOCONF_2_5="1" make -f Makefile.cvs
This Makefile is only for the CVS repository
This will be deleted before making the distribution

*** YOU'RE USING autoconf (GNU Autoconf) 2.60.
*** KDE requires autoconf 2.52, 2.53 or 2.54
make[1]: *** [cvs] Fehler 1
make: *** [all] Fehler 2


So, what can I do?


Last edited by feivelda on Sun Jul 02, 2006 6:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Fri Jun 30, 2006 3:36 pm    Post subject: Reply with quote

The syntax is

Code:

WANT_AUTOCONF="2.5" your command here...


because gentoo uses its own (not sure) autoconf wrapper.
Back to top
View user's profile Send private message
feivelda
Guru
Guru


Joined: 21 Feb 2005
Posts: 480
Location: Frankfurt, Germany

PostPosted: Fri Jun 30, 2006 8:26 pm    Post subject: Reply with quote

The error message is the same as above :cry:
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Fri Jun 30, 2006 8:28 pm    Post subject: Reply with quote

See how it is done in /usr/portage/eclass/kde.eclass and related.
Back to top
View user's profile Send private message
feivelda
Guru
Guru


Joined: 21 Feb 2005
Posts: 480
Location: Frankfurt, Germany

PostPosted: Sun Jul 02, 2006 6:37 pm    Post subject: Reply with quote

Thank you for this tip.
I builded a script, this solves the issue

Code:
#/bin/bash
# This is needed to fix building with autoconf 2.60.
# Many thanks to who preferred such a stupid check rather
# than a working arithmetic comparison.
[[ -f admin/cvs.sh ]] && sed -i -e '/case $AUTO\(CONF\|HEADER\)_VERSION in/,+1 s/2\.5/2.[56]/g' admin/cvs.sh

# rebuild configure script, etc
# This can happen with e.g. a cvs snapshot
if [ ! -f "./configure" ] || [ -n "$UNSERMAKE" ]; then
        for x in Makefile.cvs admin/Makefile.common; do
                if [ -f "$x" ] && [ -z "$makefile" ]; then makefile="$x"; fi
        done
        if [ -f "$makefile" ]; then
                debug-print "$FUNCNAME: configure: generating configure script, running make -f $makefile"
                make -j1 -f $makefile
        fi
        [ -f "./configure" ] || die "no configure script found, generation unsuccessful"
fi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum