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

Re: autoconf version



>>>>> "Assar" == Assar Westerlund <assar@sics.se> writes:

    Assar> I'm afraid that the answer is the current one from the
    Assar> development CVS tree (available at
    Assar> CVSROOT=:pserver:anoncvs@subversions.gnu.org:/cvs).  Or
    Assar> that is what we're using, the snapshot at:

    Assar> ftp://alpha.gnu.org/gnu/autoconf/autoconf-2.49a.tar.gz

    Assar> will probably also work.

Suspected as much.

    Assar> Am I sorry that this doesn't make things simpler for the
    Assar> people hacking Heimdal and building their own stuff, but
    Assar> autoconf should have gotten a new release a long time ago
    Assar> (2.13 is from Jan 1999), and there are also always version
    Assar> screws between the three popes (autoconf, automake and
    Assar> libtool).

True - I am all for using the newer tools.

(I just wish that they would hurry up and release libtool 1.4 - I
think that would have enormous benefits to programs like Heimdal, with
a large number of interdependent shared libraries...)

Just curious: What version of libtool is used? There is an advisory
that versions 1.3.5 and earlier (I think this means only CVS is fixed)
are broken on Hurd. Not that I know if Heimdal compiles on the Hurd
anyway...

    >> I am trying to test my patch (I can give copies to however may
    >> be interested) that is meant to:

    Assar> Please send a pointer to the patches and I'll look at them.

See attachment. I wrote this for Heimdal 0.2b, and merged in the
changes from 0.2c. So far I have not tested it yet. I *think*
it should be correct...

This patch is incomplete, as I forgot about libss...

However, I couldn't get it to use my installed version of libreadline
anyway, so I will have to try and get that (pre-existing) part working
first. I tried --with-readline=/usr, but it didn't do anything.

Index: configure.in
===================================================================
RCS file: /homes/bam/cvsroot/debian/heimdal/configure.in,v
retrieving revision 1.1.1.20
diff -c -r1.1.1.20 configure.in
*** configure.in	2000/10/01 23:00:58	1.1.1.20
--- configure.in	2000/10/02 08:53:07
***************
*** 226,231 ****
--- 226,234 ----
  [#include <stdio.h>
   #include <readline.h>],-lreadline,,, READLINE)
  
+ AC_TEST_PACKAGE_NEW(com_err,
+ [#include <et/com_err.h>],-lcom_err,,, COM_ERR)
+ 
  AC_TEST_PACKAGE_NEW(hesiod,[#include <hesiod.h>],-lhesiod,,, HESIOD)
  
  KRB_C_BIGENDIAN
***************
*** 553,558 ****
--- 556,562 ----
  AC_FIND_FUNC_NO_LIBS(des_cbc_encrypt, crypto des)
  
  KRB_READLINE
+ KRB_COM_ERR
  
  dnl telnet muck --------------------------------------------------
  
Index: cf/krb-com_err.m4
===================================================================
RCS file: krb-com_err.m4
diff -N krb-com_err.m4
*** /dev/null	Thu May 18 18:17:41 2000
--- krb-com_err.m4	Thu Sep 14 16:28:46 2000
***************
*** 0 ****
--- 1,25 ----
+ dnl
+ dnl Tests for readline functions
+ dnl
+ 
+ dnl el_init
+ 
+ AC_DEFUN(KRB_COM_ERR,[
+ dnl com_err
+ 
+ ac_foo=no
+ if test "$with_com_err" = yes; then
+ 	:
+ elif test "$ac_cv_func_com_err" = yes; then
+ 	:
+ else
+ 	LIB_readline='$(top_builddir)/lib/com_err/libcom_err.a'
+ fi
+ if test "$com_err_libdir"; then
+ 	LIB_com_err="-rpath $com_err_libdir $LIB_com_err"
+ fi
+ LIB_readline="$LIB_com_err \$(LIB_tgetent)"
+ AC_DEFINE(HAVE_COM_ERR, 1, 
+ 	[Define if you have a com_err compatible library.])dnl
+ 
+ ])
Index: cf/krb-readline.m4
===================================================================
RCS file: /homes/bam/cvsroot/debian/heimdal/cf/krb-readline.m4,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 krb-readline.m4
*** cf/krb-readline.m4	2000/07/31 03:16:55	1.1.1.1
--- cf/krb-readline.m4	2000/09/14 05:23:05
***************
*** 27,34 ****
--- 27,36 ----
  	:
  elif test "$ac_cv_func_el_init" = yes; then
  	ac_foo=yes
+ 	DIR_readline="editline"
  	LIB_readline="\$(top_builddir)/lib/editline/libel_compat.a $LIB_el_init"
  else
+ 	DIR_readline="editline"
  	LIB_readline='$(top_builddir)/lib/editline/libeditline.a'
  fi
  AM_CONDITIONAL(el_compat, test "$ac_foo" = yes)
***************
*** 39,42 ****
  AC_DEFINE(HAVE_READLINE, 1, 
  	[Define if you have a readline compatible library.])dnl
  
! ])
\ No newline at end of file
--- 41,44 ----
  AC_DEFINE(HAVE_READLINE, 1, 
  	[Define if you have a readline compatible library.])dnl
  
! ])
Index: cf/test-package.m4
===================================================================
RCS file: /homes/bam/cvsroot/debian/heimdal/cf/test-package.m4,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 test-package.m4
*** cf/test-package.m4	2000/07/31 03:16:55	1.1.1.2
--- cf/test-package.m4	2000/09/14 05:23:05
***************
*** 72,77 ****
--- 72,78 ----
  if test "$ires" -a "$lres" -a "$with_$1" != "no"; then
  	$1_includedir="$ires"
  	$1_libdir="$lres"
+ 	DIR_$1=
  	INCLUDE_$1="-I$$1_includedir"
  	LIB_$1="-L$$1_libdir $3"
  	ifval([$6],
***************
*** 80,85 ****
--- 81,87 ----
  	with_$1=yes
  	AC_MSG_RESULT([headers $ires, libraries $lres])
  else
+ 	DIR_$1="$1"
  	INCLUDE_$1=
  	LIB_$1=
  	with_$1=no
***************
*** 88,93 ****
--- 90,96 ----
  dnl ifval([$6],
  dnl 	AM_CONDITIONAL($6, test "$with_$1" = yes)
  dnl 	AM_CONDITIONAL(upcase($1), test "$with_$1" = yes))
+ AC_SUBST(DIR_$1)
  AC_SUBST(INCLUDE_$1)
  AC_SUBST(LIB_$1)
  ])
Index: lib/Makefile.am
===================================================================
RCS file: /homes/bam/cvsroot/debian/heimdal/lib/Makefile.am,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 Makefile.am
*** lib/Makefile.am	2000/07/31 03:16:41	1.1.1.2
--- lib/Makefile.am	2000/09/14 05:23:05
***************
*** 12,16 ****
  dir_dce = kdfs
  endif
  
! SUBDIRS = @DIR_roken@ vers editline com_err sl asn1 des krb5 \
  	kafs hdb kadm5 gssapi auth $(dir_45) $(dir_otp) $(dir_dce)
--- 12,16 ----
  dir_dce = kdfs
  endif
  
! SUBDIRS = @DIR_roken@ vers @DIR_readline@ @DIR_com_err@ sl asn1 des krb5 \
  	kafs hdb kadm5 gssapi auth $(dir_45) $(dir_otp) $(dir_dce)

-- 
Brian May <bam@snoopy.apana.org.au>