Re: [Planner Dev] Planner and autoconf?



* Richard Hult (richard imendio com) wrote:
> On sön, 2004-07-04 at 01:03 +0200, Emiel van de Laar wrote:
> > * Richard Hult (richard imendio com) wrote:
> > > On lör, 2004-07-03 at 23:47 +0200, Emiel van de Laar wrote:
> > > > Hi,
> > > > 
> > > > I'm having trouble building Planner (CVS HEAD) on my Debian unstable
> > > > system. I can't even get through autoconf.
> > > > 
> > > > Is there anything I'm missing here? What are the requirements?
> > > > 
> > > > emiel chyrellos:~/co/planner> autoconf --version
> > > > Autoconf version 2.13
> 
> You probably need a newer autoconf (e.g. 2.59). We need to add an
> AC_PREREQ with the appropriate version to make that more obvious.
> 
> Could you try that and see if it helps?

Sure thing.

If autoconf 2.59 is a prerequisite, perhaps it is time to change the
extension to ".ac".  My Debian system uses a "/usr/bin/autoconf"
diversion script which selects an apropriate autoconf version to invoke.
Among others, one of the checks is based upon extension.

	# Assume an input file ending in .ac is 2.50,
	# because that extension was introduced after 2.13.

emiel chyrellos:~/co/planner> autoconf2.50 -V
autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.

Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

After changing autogen.sh from:

: ${AUTOCONF=autoconf}

to

: ${AUTOCONF=autoconf2.50}

I get the attached output.

Also attached a minor patch for autogen.sh that let me try the updated
extension (.ac).

Thanks again.

Emiel
-- 
Emiel van de Laar
PGP pubkey: %finger emiel il fontys nl
I am going to run ./configure with no arguments - if you wish 
to pass any to it, please specify them on the ./autogen.sh command line.
processing .
sed: read error on stdin: Is a directory
Creating ./aclocal.m4 ...
Running glib-gettextize...  Ignore non-fatal messages.
Copying file po/Makefile.in.in

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

Making ./aclocal.m4 writable ...
Running intltoolize...
patching file po/Makefile.in.in
Running libtoolize...
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./ltmain.sh'
libtoolize: copying file `./ltoptions.m4'
libtoolize: copying file `./ltsugar.m4'
libtoolize: copying file `./ltversion.m4'
libtoolize: copying file `./libtool.m4'
Running aclocal-1.7  ...
aclocal: configure.in: 10: macro `AM_DISABLE_STATIC' not found in library
aclocal: configure.in: 11: macro `AM_PROG_LIBTOOL' not found in library
Running autoheader...
Running automake-1.7 --gnu  ...
configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
configure.in: installing `./install-sh'
configure.in: installing `./mkinstalldirs'
configure.in: installing `./missing'
Makefile.am:1: HAVE_DOTNET does not appear in AM_CONDITIONAL
Makefile.am:5: HAVE_PYTHON does not appear in AM_CONDITIONAL
Makefile.am: installing `./INSTALL'
Use of uninitialized value in pattern match (m//) at /usr/bin/automake-1.7 line 4364.
data/mime/Makefile.am:27: HAVE_NEW_MIME does not appear in AM_CONDITIONAL
data/mime/Makefile.am:32: HAVE_NEW_MIME does not appear in AM_CONDITIONAL
data/ui/Makefile.am:9: BUILD_TIMETABLE does not appear in AM_CONDITIONAL
data/ui/Makefile.am:15: HAVE_PYTHON_PLUGIN does not appear in AM_CONDITIONAL
docs/libplanner/Makefile.am:90: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
dotnet/libplanner/Makefile.am:7: HAVE_DOTNET does not appear in AM_CONDITIONAL
libegg/recent-files/Makefile.am:8: Libtool library used but `LIBTOOL' is undefined
libegg/recent-files/Makefile.am:8: 
libegg/recent-files/Makefile.am:8: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libegg/recent-files/Makefile.am:8: to `configure.in' and run `aclocal' and `autoconf' again.
libegg/recent-files/Makefile.am: installing `./depcomp'
/usr/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
libplanner/Makefile.am:65: HAVE_GDA does not appear in AM_CONDITIONAL
libplanner/Makefile.am:81: HAVE_GDA does not appear in AM_CONDITIONAL
libplanner/Makefile.am:101: Libtool library used but `LIBTOOL' is undefined
libplanner/Makefile.am:101: 
libplanner/Makefile.am:101: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libplanner/Makefile.am:101: to `configure.in' and run `aclocal' and `autoconf' again.
libplanner/Makefile.am: installing `./compile'
/usr/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
python/Makefile.am:13: Libtool library used but `LIBTOOL' is undefined
python/Makefile.am:13: 
python/Makefile.am:13: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
python/Makefile.am:13: to `configure.in' and run `aclocal' and `autoconf' again.
/usr/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
src/Makefile.am:17: HAVE_PYTHON_PLUGIN does not appear in AM_CONDITIONAL
src/Makefile.am:127: BUILD_TIMETABLE does not appear in AM_CONDITIONAL
src/Makefile.am:179: BUILD_TIMETABLE does not appear in AM_CONDITIONAL
src/Makefile.am:200: HAVE_GDA does not appear in AM_CONDITIONAL
src/Makefile.am:208: HAVE_PYTHON_PLUGIN does not appear in AM_CONDITIONAL
src/Makefile.am:120: Libtool library used but `LIBTOOL' is undefined
src/Makefile.am:120: 
src/Makefile.am:120: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/Makefile.am:120: to `configure.in' and run `aclocal' and `autoconf' again.
/usr/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
Makefile.am:1: HAVE_DOTNET does not appear in AM_CONDITIONAL
Makefile.am:5: HAVE_PYTHON does not appear in AM_CONDITIONAL
Use of uninitialized value in pattern match (m//) at /usr/bin/automake-1.7 line 4364.
data/mime/Makefile.am:27: HAVE_NEW_MIME does not appear in AM_CONDITIONAL
data/mime/Makefile.am:32: HAVE_NEW_MIME does not appear in AM_CONDITIONAL
data/ui/Makefile.am:9: BUILD_TIMETABLE does not appear in AM_CONDITIONAL
data/ui/Makefile.am:15: HAVE_PYTHON_PLUGIN does not appear in AM_CONDITIONAL
docs/libplanner/Makefile.am:90: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
dotnet/libplanner/Makefile.am:7: HAVE_DOTNET does not appear in AM_CONDITIONAL
/usr/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
libplanner/Makefile.am:65: HAVE_GDA does not appear in AM_CONDITIONAL
libplanner/Makefile.am:81: HAVE_GDA does not appear in AM_CONDITIONAL
/usr/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
src/Makefile.am:17: HAVE_PYTHON_PLUGIN does not appear in AM_CONDITIONAL
src/Makefile.am:127: BUILD_TIMETABLE does not appear in AM_CONDITIONAL
src/Makefile.am:179: BUILD_TIMETABLE does not appear in AM_CONDITIONAL
src/Makefile.am:200: HAVE_GDA does not appear in AM_CONDITIONAL
src/Makefile.am:208: HAVE_PYTHON_PLUGIN does not appear in AM_CONDITIONAL
/usr/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
Running autoconf2.50 ...
configure.in:2: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:3: error: possibly undefined macro: AM_CONFIG_HEADER
configure.in:5: error: possibly undefined macro: AM_MAINTAINER_MODE
configure.in:10: error: possibly undefined macro: AM_DISABLE_STATIC
configure.in:11: error: possibly undefined macro: AM_PROG_LIBTOOL
configure.in:18: error: possibly undefined macro: AC_PROG_INTLTOOL
configure.in:26: error: possibly undefined macro: AM_CONDITIONAL
configure.in:186: error: possibly undefined macro: AM_GLIB_GNU_GETTEXT
configure.in:205: error: possibly undefined macro: AM_PATH_PYTHON
configure.in:206: error: possibly undefined macro: AM_CHECK_PYTHON_HEADERS
Running ./configure --enable-maintainer-mode --enable-compile-warnings ...
./configure: line 1259: syntax error near unexpected token `planner,'
./configure: line 1259: `AM_INIT_AUTOMAKE(planner, 0.11.90)'
Index: autogen.sh
===================================================================
RCS file: /cvs/gnome/planner/autogen.sh,v
retrieving revision 1.5
diff -u -u -r1.5 autogen.sh
--- autogen.sh	20 May 2004 11:19:19 -0000	1.5
+++ autogen.sh	4 Jul 2004 00:24:42 -0000
@@ -35,7 +35,7 @@
 	DIE=1
 }
 
-(grep "^AC_PROG_INTLTOOL" $srcdir/configure.in >/dev/null) && {
+(grep "^AC_PROG_INTLTOOL" $srcdir/$CONFIGURE >/dev/null) && {
   ($INTLTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
     echo
     echo "You must have \`intltoolize' installed to compile $PROJECT."
@@ -53,7 +53,7 @@
     DIE=1
 }
 
-(grep "^AM_PROG_LIBTOOL" configure.in >/dev/null) && {
+(grep "^AM_PROG_LIBTOOL" $CONFIGURE >/dev/null) && {
   ($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
     echo
     echo "You must have libtool 1.4 installed to compile $PROJECT."
@@ -126,7 +126,7 @@
 	##  echo "**Warning**: No such directory \`$k'.  Ignored."
         fi
       done
-      if grep "^AM_GLIB_GNU_GETTEXT" configure.in >/dev/null; then
+      if grep "^AM_GLIB_GNU_GETTEXT" $CONFIGURE >/dev/null; then
 	#if grep "sed.*POTFILES" configure.in >/dev/null; then
 	#  : do nothing -- we still have an old unmodified configure.in
 	#else
@@ -138,11 +138,11 @@
 	  test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
         #fi
       fi
-      if grep "^AC_PROG_INTLTOOL" configure.in >/dev/null; then
+      if grep "^AC_PROG_INTLTOOL" $CONFIGURE >/dev/null; then
         echo "Running intltoolize..."
 	intltoolize --copy --force --automake
       fi
-      if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
+      if grep "^AM_PROG_LIBTOOL" $CONFIGURE >/dev/null; then
 	echo "Running $LIBTOOLIZE..."
 	$LIBTOOLIZE --force --copy
       fi
@@ -151,7 +151,7 @@
 
       echo "Running $ACLOCAL $aclocalinclude ..."
       $ACLOCAL $aclocalinclude
-      if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
+      if grep "^AM_CONFIG_HEADER" $CONFIGURE >/dev/null; then
 	echo "Running $AUTOHEADER..."
 	$AUTOHEADER
       fi


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]