Bug 74712

Summary: Automake 1.8.x not supported
Product: [Applications] kdevelop Reporter: tbscope <tbscope>
Component: generalAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED WORKSFORME    
Severity: wishlist    
Priority: NOR    
Version: 3.0.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description tbscope 2004-02-09 15:27:08 UTC
Version:           3.0.0 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc (GCC) 3.3.1 gcc (GCC) 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk) 
OS:          Linux

I have Automake 1.8.2 installed.

Situation:
I create a new project for a new KDE application in KDevelop.
When I start "Run automake & friends" I get this error:

cd "/home/kde-cvs/testprojects/testkde1" && gmake -f Makefile.cvs
This Makefile is only for the CVS repository
This will be deleted before making the distribution
*** YOU'RE USING automake (GNU automake) 1.8.2.
*** KDE requires automake 1.6
gmake[1]: *** [cvs] Fout 1
gmake: *** [all] Fout 2
*** Exited with status: 2 ***



In s second project, I changed a part of the cvs.sh file of the project from:

  automake*1.6.* | automake*1.7* ) : ;;
  "" )
    echo "*** AUTOMAKE NOT FOUND!."
    echo "*** KDE requires automake 1.6.1 or newer"
    exit 1
    ;;

to:

  automake*1.6.* | automake*1.7* | automake*1.8.* ) : ;;
  "" )
    echo "*** AUTOMAKE NOT FOUND!."
    echo "*** KDE requires automake 1.6.1 or newer"
    exit 1
    ;;


This works, now my project gets build in KDevelop.



Note:
Automake 1.8.2. does seem to have some problems with underquoted definitions in the macros --->
Excerpt:

cd "/home/kde-cvs/testprojects/testkde2" && gmake -f Makefile.cvs
This Makefile is only for the CVS repository
This will be deleted before making the distribution
*** Creating acinclude.m4
*** Creating list of subdirectories
*** Creating configure.in
*** Creating aclocal.m4
acinclude.m4:32: warning: underquoted definition of KDE_PATH_X_DIRECT
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal
acinclude.m4:159: warning: underquoted definition of AC_FIND_FILE
acinclude.m4:178: warning: underquoted definition of KDE_FIND_PATH
acinclude.m4:231: warning: underquoted definition of KDE_MOC_ERROR_MESSAGE
acinclude.m4:243: warning: underquoted definition of KDE_UIC_ERROR_MESSAGE
acinclude.m4:256: warning: underquoted definition of KDE_CHECK_UIC_FLAG
acinclude.m4:291: warning: underquoted definition of AC_PATH_QT_MOC_UIC
acinclude.m4:335: warning: underquoted definition of KDE_1_CHECK_PATHS
acinclude.m4:383: warning: underquoted definition of KDE_SET_PATHS
etc...






Is it possible to support Automake 1.8.x in future releases of KDevelop?
Comment 1 Amilcar do Carmo Lucas 2004-02-09 20:12:05 UTC
Your changes have been commited to HEAD. Retest and let us know if it worked.
Comment 2 Amilcar do Carmo Lucas 2004-02-09 20:13:05 UTC
CVS commit by aclu: 

Add support for Automake 1.8

CCMAIL: 74712@bugs.kde.org


  M +1 -1      cvs.sh   1.6


--- kdevelop/parts/appwizard/common/admin/cvs.sh  #1.5:1.6
@@ -65,5 +65,5 @@
     exit 1
     ;;
-  automake*1.6.* | automake*1.7* ) : ;;
+  automake*1.6.* | automake*1.7* | automake*1.8.* ) : ;;
   "" )
     echo "*** AUTOMAKE NOT FOUND!."


Comment 3 tbscope 2004-02-09 23:03:59 UTC
I updated kdevelop using:

cvs up
make
make install

Then tried to create a new KDE Application Framework in KDevelop.
When building this new project, I still get the same problem.

The cvs.sh file in:
$KDEDIR/share/apps/kdevappwizard/template-common/admin.tar.gz 
doesn't contain the automake 1.8.x entry.

As I understand it, when I create a new project, this archive (admin.tar.gz) is extracted to the project folder.
Comment 4 Amilcar do Carmo Lucas 2004-02-10 10:26:35 UTC
Sorry forgot to tell you, you have to :
cd parts/appwizard
make clean
make
su
make install
Comment 5 tbscope 2004-02-10 10:52:42 UTC
Thanks.

It works now.


Thank you very much for your effort.
Comment 6 Barry Morrison 2004-11-18 14:12:13 UTC
Same applies to automake 1.9.x. Is it not possible to check for any version of automake >= 1.6 rather than checking for specific versions?