provide a shell script that creates a directory, icuconf/ containing:
configure
platform.h.in
Makefile.inc.in
config.sub
config/*
[a few other things..]
have {said|sed} script modify that 'configure' such that only platform.h and
Makefile.inc are modified.
This way, a user of ICU could run "icuconf.sh" and then distribute the icuconf/
directory
along with the ICU lib/include files. On the target machine,
"icuconf/configure" could be
executed with whatever options are desired, to produce platform.h and
Makefile.inc.
Implementation: Have a conditional in configure.in which, when modified by the
SED call
in icuconf.sh, has the following effect:
- don't create empty directories
- change what AC_CONFIG_HEADER calls to nothing
- change what AC_INIT calls to platform.h.in
- change the set of generated files to read [Makefile.inc platform.h] (all in
./)
- don't move .cpp files [HP]