I make changes in open source tree to implement autoconf/automake. What's new ? - new acinclude.m4 ( based on old aclocal.m4 + new macros OSSH_EXPAND_PATHS and OSSH_SHOW_OPTIONS - new configure option --with-askpass=PATH - updated acconfig.h ( based on old acconfig.h with removed USE_EXTERNAL_ASKPASS and new ASKPASS_PATH + new config.h.top and config.h.bot ) !!! in this file has two lines only with ^L for autoheader !!! - new empty files NEWS AUTHORS COPYING to make automake happy - ssh.h is generated from configure from ssh.h.in ( all paths are substituted with @xxx@ ) - files ssh_config sshd_config and all TROFFMAN files are generated from configure to. - removed version.h ( version number is in configure and #define in ssh.h ) - updated includes.h ( without version.h ) - changed defines.h and ssh-add.c with new askpass option and #define - removed fixpaths ( sed command from configure generate correct file paths ). You might backup it. tests: - install, uninstall work fine - all clean options are not tested !!! - make dist is not well good : tar archive is without contrib subdir and many files !!! Howto ? - extract openssh-SNAP-20010117.tar.gz - extract attached file patches.tgz - edit patches/doGNU.bash ( change variable S to openssh source tree ) - make new dir and go in it ! and run .../patches/doGNU.bash About 'doGNU.bash'. This script: - copy files from source dir - make all changes ( patches ) - run './configure --prefix=/usr/local/openssh' and 'make install' ;-) -------------- next part -------------- A non-text attachment was scrubbed... Name: patches.tgz Type: application/octet-stream Size: 8325 bytes Desc: not available Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20010118/3e011290/attachment.obj
> I make changes in open source tree to implement autoconf/automake. > What's new ? > - new acinclude.m4 ( based on old aclocal.m4 + new macros OSSH_EXPAND_PATHS and > OSSH_SHOW_OPTIONS > - new configure option --with-askpass=PATH > - updated acconfig.h ( based on old acconfig.h with removed USE_EXTERNAL_ASKPASS and new > ASKPASS_PATH + new config.h.top and config.h.bot ) > !!! in this file has two lines only with ^L for autoheader !!! > - new empty files NEWS AUTHORS COPYING to make automake happyHumor me. =) How is automake improving our lives?> - ssh.h is generated from configure from ssh.h.in ( all paths are substituted with @xxx@ ) > - files ssh_config sshd_config and all TROFFMAN files are generated from configure to. > - removed version.h ( version number is in configure and #define in ssh.h )This file will not be going anywhere unless you talk the OpenBSD group into the change.> - updated includes.h ( without version.h ) > - changed defines.h and ssh-add.c with new askpass option and #define > - removed fixpaths ( sed command from configure generate correct file paths ). You might > backup it.Have we verified that sed will work correctly on every platform for this operation? Hmmm?? Mainly on Solaris and other platforms that are known to ship brain dead sed. Humor me again... How does the all of theses changes 'improve' portability of OpenSSH or the readablity of the autoconf? And have you verified that adding automake into the mix does not imply the requirement of GNU Make? - Ben
Is this work for you ? mouring at etoh.eviladmin.org wrote:> Humor me. =) How is automake improving our lives?Makefile.am is easy.> Have we verified that sed will work correctly on every platform for this > operation? Hmmm?? Mainly on Solaris and other platforms that are known to > ship brain dead sed.if configure script work => sed work. (macro AC_OUTPUT in configure.in) GNU tools autoconf/automake improve development. New make file has dependency information. Makefile.am is easy. In genarated Makefile from automake has rules to rebuild some files ( if you change configure.in simply run make )
On Thu, Jan 18, 2001 at 06:25:51PM +0200, Roumen Petrov wrote:> - removed version.h ( version number is in configure and #define in ssh.h )why?
Markus Friedl wrote:> On Thu, Jan 18, 2001 at 06:25:51PM +0200, Roumen Petrov wrote: > >> - removed version.h ( version number is in configure and #define in ssh.h ) > > > why?changes in configure.in for automake : @@ -1,6 +1,7 @@ AC_INIT(ssh.c) +AM_INIT_AUTOMAKE(openssh,2.3.1p1) -AC_CONFIG_HEADER(config.h) +AM_CONFIG_HEADER(config.h) AC_PROG_CC AC_CANONICAL_HOST @@ -827,8 +828,8 @@ ..... about macro AM_INIT_AUTOMAKE: first arg. is PACKAGE and second is VERSION. I put in ssh.h.in this line: ... #define SSH_VERSION "@PACKAGE at _@VERSION@" ... instead of define in version.h If we use version.h, developer must change version in two files - configure.in and version.h !