2012-06-18  Bruce Korb  <bkorb@gnu.org>

	* autoopts/test/enums.test: warning patrol
	* compat/windows-config.h: licensing fix

2012-06-10  Bruce Korb  <bkorb@gnu.org>

	* Makefile.am: private rules for Doxygen documentation
	* agen5/functions.c (mLoad_Unknown): Where the start of the name
	being scanned cannot be determined.  Do not pretend like you can.
	* autoopts/autogen.map: fix the license

2012-05-12  Bruce Korb  <bkorb@gnu.org>

	* config/mk-shdefs.in: new script to create a "config/shdefs" file
	* autoopts/test/defs.in: use this file for configured values
	* autoopts/test/Makefile.am: source config/shdefs file
	* config/bootstrap.shlib: make default values
	* agen5/mk-stamps.sh: use configured defs
	* autoopts/mk-tpl-config.sh: likewise
	* agen5/test/shell.test: likewise
	* agen5/test/string.test: likewise
	* autoopts/install-hook.sh: likewise
	* autoopts/test/alias.test: likewise
	* autoopts/test/argument.test: likewise
	* autoopts/test/doc.test: likewise
	* autoopts/test/getopt.test: likewise
	* autoopts/test/shell.test: likewise
	* autoopts/tpl/cmd-doc.tlib: likewise
	* autoopts/tpl/optmain.tlib: likewise
	* autoopts/tpl/strings.tpl: likewise
	* doc/mk-agen-texi-in: likewise
	* autoopts/tpl/tpl-config-tlib.in: use them to configure templates
	* pkg/spec.tpl: don't package files we don't have.
	* autoopts/tpl/texi2mdoc.sh: remove alternation from sed expr
	* config/misc.def: include libdir with -Wl,-R output
	* doc/mk-agen-texi.sh: new file renamed from *-in file.
	It sources config/shdefs instead of being configured
	* doc/Makefile.am: adjust what gets distributed

2012-05-05  Bruce Korb  <bkorb@gnu.org>

	5.16 release

	* autoopts/test/handler.test: adjustment
	* autoopts/tpl/optcode.tlib: doxygenate
	* autoopts/tpl/optmain.tlib: fix doxygen comment
	* autoopts/tpl/texi2man.sh: handle sed-s that do not do alternation
	* autoopts/tpl/texi2mdoc.sh: likewise
	* autoopts/test/defs.in: pass through OBJEXT
	* autoopts/tpl/usage.tlib: use it to look for a .o file instead of
	an archive file.  --disable-static will not produce such a file.
	* configure.ac (ENABLE_STATIC): new substitution
	* autoopts/aoconf.tpl: disable static_libs when disabled
	* autoopts/test/defs.in: link against libopts*.${OBJEXT}. libopts.a
	may not get built.

2012-04-29  Bruce Korb  <bkorb@gnu.org>

	* autoopts/tpl/getopt.tpl (optionUsage): do not declare optionUsage.
	* autoopts/tpl/optcode.tlib (usage-proc): likewise
	* autoopts/tpl/optmain.tlib (doUsageOpt): call usage proc directly,
	whether it is optionUsage or user specified.
	(vusage_message): likewise
	* autoopts/test/handler.test: adjust
	* doc/autogen-texi.txt (@item usage): doc it properly
	* autoopts/tpl/cmd-doc.tlib (get-cvt): accept an alternate text arg
	and use this capability for the exit-desc attribute.
	* autoopts/tpl/texi2man.sh (bold): add new entries
	* autoopts/tpl/texi2mdoc.sh: likewise

2012-04-28  Bruce Korb  <bkorb@gnu.org>

	* agen5/funcCase.c (mLoad_Select): split function
	(selection_type_complete): new function
	* autoopts/tpl/optcode.tlib (optionAlias): remove duplicate def.
	* autoopts/tpl/opthead.tlib (die): add prototypes for new functions
	* autoopts/tpl/optmain.tlib (die): add code for die, vdie and fserr.

2012-04-15  Bruce Korb  <bkorb@gnu.org>

	* autoopts/tpl/def2pot.tpl: clean up
	* autoopts/test/doc.test: test pot template, too.
	* autoopts/tpl/optcode.tlib: "no-xlate = anything" attribute
	* autoopts/tpl/opthead.tlib: likewise
	* agen5/opts.def: specify "no-xlate = anything".

2012-04-14  Bruce Korb  <bkorb@gnu.org>

	* config/libopts.def (AC_CHECK_HEADERS): check for stdbool, too.
	* config/misc.def (AC_CHECK_HEADERS): stdbool not needed here now
	* getdefs/getdefs.c (main): guard chmod() call with HAVE_CHMOD
	instead of HAVE_FCHMOD
	* config/bootstrap.local: remove building of fmemopen.c to agen5 dir.
	* agen5/bootstrap.dir: rebuild fmemopen.c when needed
	* agen5/mk-stamps.sh: always remove log files on success
	* autoopts/Makefile.am (libopts_la_LIBADD): include libintl
	* columns/bootstrap.dir: remove log files on success
	* mkconfig.sh: Avoid unnecessary work and get VERSION from VERSION file.
	Do not save the version stamp.
	* noag-boot.sh: regenerated from mkconfig.sh
	* autoopts/tpl/cmd-doc.tlib: remove backslash duplication
	* autoopts/tpl/def2pot.tpl: remove texi-isms from translatable text
	* autoopts/tpl/optlib.tlib: fix sed expression for removing texi-isms
	* autoopts/test/doc.test: test doc changes

2012-04-08  Bruce Korb  <bkorb@gnu.org>

	* compat/chmod.c: new (no-op) compatibility function for Windows-32
	* config/libopts.def: check for fchmod, fstat and chmod functions, too.
	* agen5/agInit.c (initialize): new variation required for Guile 2.0.
	* autoopts/test/doc.test: new test for man/mdoc/texi templates.

2012-04-01  Bruce Korb  <bkorb@gnu.org>

	* autoopts/tpl/agtexi-cmd.tpl: omit texi doc for options with emtpy
	"doc" clauses.
	* agen5/bootstrap.dir: remove code used also in "make"
	* agen5/mk-stamps.sh: removed to here
	* autoopts/env.c (doPrognameEnv): warning patrol
	* autoopts/usage.c (set_usage_flags): warning patrol
	* agen5/autogen.h: new globals for detecting block enclosures for
	break/continue/return macros
	* agen5/funcDef.c (mFunc_Define): extract code that invokes "gen_block"
	to a separate function where long jumps can be handled better
	(mLoad_Define): indicate that a new template is being loaded so that
	"return" can function properly.
	* agen5/funcFor.c (for_by_step): call gen_block wrapper to handle
	long jump returns
	(for_each): likewise
	(mFunc_For): extract some convolutions into new procedures
	* agen5/funcIf.c (mFunc_While): fake up a for loop context and call
	the same gen_block wrapper to handle long jumps
	* agen5/functions.c (mFunc_Break): handle next and continue
	(call_gen_block): handle long jump returns for looping macros
	(mFunc_Return): handle "return" for INCLUDE and INVOKE macros
	(gen_new_block): gen_block wrapper for INCLUDE and INVOKE.
	(mLoad_Skip): loading procedure for break and continue
	* agen5/functions.tpl (handler-proc): may now specify the handler to use
	* agen5/test/debug.test: adjust for new macro numbers
	* agen5/test/leave.test: test this stuff.

2012-03-31  Bruce Korb  <bkorb@gnu.org>

	* agen5/Makefile.am: Remove lists of generated things and derive them
	from the script that has to know about them:  bootstrap.dir
	* agen5/ag-text.def: make the touchback silent and fix the format numbers
	* agen5/agDep.c (wrap_up_depends): use the fixed format correctly
	* agen5/bootstrap.dir: edit Makefile.am, too
	* agen5/fsm-macro.tlib: use the built-in temp directory
	* agen5/fsm-trans.tlib: likewise
	* config/bootstrap.shlib (make_opts) cleanup for dependency generation
	(make_proto): likewise
	* doc/auto_gen-tpl.in: remove use of ADDON_MENU
	* doc/mk-agen-texi-in: stop providing ADDON_MENU

2012-03-18  Bruce Korb  <bkorb@gnu.org>

	* agen5/ag-text.def: correct which file is to be removed
	* agen5/agDep.c: prefer memcpy to strcpy
	(tidy_dep_file): prefer fchmod to chmod
	* agen5/expOutput.c (make_writable): obsolete
	* agen5/expString.c (stringify_for_sh): remove unused parameter
	* agen5/funcFor.c (call_gen_block): new function to ensure longjmp works
	* autoopts/test/defs.in (CFLAGS): -Werror may be suffixed.  Remove all.
	(clean_help): no need for "egrep -v" when sed can do the job
	* autoopts/load.c (add_env_val): no need to fix -Werror here
	* autoopts/tpl/opt*: remove texi-isms from help text.
	* autoopts/usage.c (prt_extd_usage): arg types param is not used.
	(prt_one_vendor): thus, here, too.
	(prt_vendor_opts): and here as well.
	* doc/mk-agen-texi-in: -Werror removal needed here, too.
	* everywhere: warning cleanups & de-camelization

2012-03-11  Bruce Korb  <bkorb@gnu.org>

	* agen5/funcCase.c (ag_scm_string_eqv_p): compare booleans, too
	* autoopts/tpl/agtexi-cmd.tpl: if documentation "flags" are
	specified, use them for node sectioning for groups of options.
	* agen5/opts.def: reorganize to use above properly
	* autoopts/tpl/optlib.tlib: fill "descrip" option attributes to
	72 columns.

2012-03-04  Bruce Korb  <bkorb@gnu.org>

	* agen5/agDep.c (start_dep_file): handle temp suffix here so it can
	be done consistently.  Also, only list program name in comment once.
	(tidy_dep_file) check for target == dep file after moving dep file.
	(wrap_up_depends): emit cleanup rules on request
	* agen5/ag-text.def (DEP_FILE_CLOBBER_FMT): cleanup format
	* agen5/*: replace AG_BOOL with stdbool definitions
	* autoopts/autogen.map (inversion): new char class
	* autoopts/enum.c (find_name): use it.  Set error message format
	pointer when a too-large number is used for an enum.
	* autoopts/usage-txt.def (TooLarge): new error message
	* autoopts/test/keyword.test: test ~0/-1
	* autoopts/test/vendor.test: adjust for stdbool
	* autoopts/tpl/cmd-doc.tlib (get-cvt): function for converting
	texi-isms to man page/mdoc page isms for descrip and doc attributes
	* autoopts/tpl/optlib.tlib (get-text): function for stripping
	texi-isms entirely for use in help text.
	* compat/compat.h (stdbool.h): new accommodation
	* config/bootstrap.shlib (run_ag): use -MP option
	* config/misc.def: check stdbool.h header
	* autoopts/tpl/aginfo.tpl: disable
	* autoopts/tpl/agman1.tpl: disable
	* agen5/defLex.c (build_here_str): stop stripping tabs with backslash
	tab, and skip the backslash, too.
	* agen5/ag-text.def (DEP_FILE_WRAP_FMT): use it.
	* everywhere: use global replacement tools to de-camelize many variables.

2012-02-25  Bruce Korb  <bkorb@gnu.org>

	5.15 release

	* autoopts/tpl/optcode.tlib: make sure config header is included
	before any system headers.
	* autoopts/tpl/optmain.tlib: remove system header includes
	* autoopts/tpl/optlib.tlib: remove texi-isms from any "descrip"
	attributes.
	* autoopts/tpl/texi2man.sh (command, option): add to bolded text
	* autoopts/tpl/texi2mdoc.sh: likewise
	* config/confmacs.tlib (affirmed): new conditional that defaults
	to disabled instead of enabled.
	* pkg/libopts/libopts-add.m4: default to *not* installing the
	external-project-built libopts library
	* autoopts/numeric.c (optionShowRange): value is long int, not str.
	* autoopts/usage-txt.def (rangeerr): fix format, too

2012-02-18  Bruce Korb  <bkorb@gnu.org>

	* autoopts/test/alias.test: fully test "aliases" attribute.
	* autoopts/tpl/opt*.t*: allow empty homerc value to enable
	command line options witout automatically looking up config files.
	Also, add Doxygen comments to much of the generated code.
	* autoopts/tpl/strings.tpl: allow the specification of leader and
	trailer code for the emitted header.
	* config/misc.def: remove some antiquated testing

2012-02-12  Bruce Korb  <bkorb@gnu.org>

	* autoopts/tpl/agtexi-cmd.tpl: cleanups
	* autoopts/tpl/man2texi.sh: convert \fI to @i and \fB to @var
	* compat/compat.h: sys/wait.h may not exist.  likewise u_int.
	* config/libopts.def: test for u_int type
	* doc/auto-opts.tpl: improve debuggability
	* everywhere: remove all residual "u_int" types.

2012-01-28  Bruce Korb  <bkorb@gnu.org>

	* everywhere: redate copyrights
	* everywhere: use static char const tables where feasible.
	* autoopts/nested.c (optionLoadNested): deallocate empty result and
	return NULL when no entries have been found.  Set errno to ENOMSG.
	* add-on/char-mapper: clean up way for defining static scope
	* autoopts/autogen.map: use defined method for static scoping.
	(set-separator): new character class
	* autoopts/ao-strs.def: new file for autoopts strings
	* ChangeLog.10: give it a hunk of this file
	* autoopts/tpl/agtexi-cmd.tpl: emit the doc-section text, too.

2011-12-29  Bruce Korb  <bkorb@gnu.org>

	5.14 release

	* agen5/agDep.c (wrap_up_depends): make really sure we don't specify
	temporary files in dependencies.
	* agen5/expOutput.c (ag_scm_make_tmp_dir): make really sure there is
	lots of space for our make-a-temp-directory command
	* agen5/opts.def (include): Use the option string tables for our
	message strings
	* columns/opts.def: likewise
	* autoopts/tpl/opthead.tlib: put the "join export" code into a
	join-or-expand macro.  Use expand-a-template logic if the first
	line of the text contains a template pseudo macro.
	* autoopts/tpl/optcode.tlib: use join-or-expand for "join include"
	* configure.ac (CFLAGS): add -Wno-format-contains-nul for GCC

2011-12-18  Bruce Korb  <bkorb@gnu.org>

	* agen5/expMake.c (handle_eol): break out as separate function.
	exempt lines ending with "then", "else" and "in" from semi-colon
	statement separations.
	* agen5/expFormat.c: fix licensing code (missing prefix)
	* agen5/expString.c (do_substitution): length needs to be signed,
	ripples through rest of file.
	(ag_scm_shell): move to agShell.c module
	(ag_scm_shellf): likewise
	* autoopts/install-hook.sh (rmbuild): remove build-isms from various
	installed templates.
	* autoopts/tpl/aginfo.tpl (CLexe): setting depends on build or install
	* autoopts/tpl/agman1.tpl (CLexe): likewise
	* autoopts/tpl/agtexi-cmd.tpl (CLexe): likewise
	* autoopts/tpl/cmd-doc.tlib (CLexe): likewise
	* autoopts/tpl/optlib.tlib (CLexe): likewise
	* autoopts/tpl/usage-txt.tpl (CLexe): likewise
	* agen5/agShell.c (ag_scm_shell): moved from expString.c
	(ag_scm_shellf): likewise

2011-12-17  Bruce Korb  <bkorb@gnu.org>

	* agen5/Makefile.am (agDep.c): new module
	(agShell.c): now part of EXPRLIST
	* agen5/tpLoad.c: remove dependency file handling code
	* agen5/agUtils.c: remove dependency file handling code.
	Add PID to startup trace message
	* agen5/agDep.c: new file.  Extract dependency functions to here.
	Change them to enable easy removal of "moved" output files.
	Defer target file output to the end.
	* agen5/expExtract.c: add extraction files to source dependencies
	* agen5/expFormat.c: add license files to source dependencies
	* agen5/expOutput.c (ag_scm_out_move): remove old file from deps
	* agen5/directive.tpl: fix up initialization format
	* agen5/autogen.c (exit_cleanup): add pid to wrapup message
	* agen5/expState.c (ag_scm_chdir): move function to agShell.c
	* agen5/agShell.c (ag_scm_chdir): ... and make pCurDir static
	(server_setup): too large.  Break it up.  Emit AGexe=... to init
	* agen5/autogen.h (pCurDir): removed
	* agen5/schemedef.scm (emit-string-table): trim last NUL byte
	because some compilers insist upon supplying their own.
	* agen5/bootstrap.dir (agShell.c): extract Guile function

	* autoopts/configfile.c (validate_struct): search for the full
	path name of the exe, if not provided with argv[0].
	* autoopts/install-hook.sh: trim build directory accommodations from
	installed templates
	* autoopts/tpl/optlib.tlib: mark build tree accommodations
	* autoopts/tpl/usage.tlib: likewise
	* autoopts/tpl/getopt.tpl (== h): Build option handling code
	opt-def.c and opt-def.h files, then extract out the option
	definitions and structures from options.h into the getopt-prog.h
	header.  Edit the opt-def.h header to include this header
	instead of autoopts/options.h.  Make sure the autogen and
	autoopts-config programs used come from the same distribution.
	mark build tree accommodations

	* agen5/test/expr.test (agShell.c): copy to staging directory
	* agen5/test/shell.test: strip AGexe= from test output text
	* agen5/test/debug.test: adjust test for pid in start/end of trace
	* agen5/test/strtable.test: adjust for changed last lines
	* agen5/test/snarf.test: likewise
	* autoopts/test/getopt.test: Change primary template to getopt.

	* doc/autogen-texi.txt: doc this stuff

2011-12-10  Bruce Korb  <bkorb@gnu.org>

	* agen5/opts.def (make-dep): fix up usage information.
	* autoopts/install-hook.sh: renamed from install-option-h
	(usage.tlib): remove references to build directories and get
	install information from autoopts-config.
	(optlib.tlib): remove references to build directories.
	* autoopts/tpl/optlib.tlib: make it sedable by install hook.
	* autoopts/tpl/usage.tlib: likewise, but also redirect stdout to
	stderr while constructing the emit-help-text program.
	* agen5/agShell.c (load_data): NUL terminate string before printing
	* autoopts/autoopts.m4 (min_opts_version): this is a test to verify
	that the autoopts library is more recent than 2001.  Not important.
	(changequote): disparaged M4 feature.  Use shell's IFS & set.
	Clean up code based on these two changes.
	* autoopts/options_h.tpl (OPTIONS_VER_TO_NUM): new macro to facilitate
	the m4 code above.
	* doc/autogen-texi.txt (getopt_long): clarify description of what you
	need to do to get it working.

2011-12-04  Bruce Korb  <bkorb@gnu.org>

	5.13 release
