1
0
Aaron Turner 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
..
autoopts 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
compat 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
m4 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
COPYING.gplv3 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
COPYING.lgplv3 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
COPYING.mbsd f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
MakeDefs.inc 99c4958664 Import upstream version 2.99+3.0.rc1 vor 17 Jahren
Makefile.am 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
Makefile.in 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
README 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
ag-char-map.h 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
autoopts.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
autoopts.h 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
boolean.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
configfile.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
cook.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
enumeration.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
environment.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
file.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
genshell.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
genshell.h 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
libopts.c 1bb6d0e15f Import upstream version 3.4.1 vor 15 Jahren
load.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
makeshell.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
nested.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
numeric.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
parse-duration.c 1bb6d0e15f Import upstream version 3.4.1 vor 15 Jahren
parse-duration.h 1bb6d0e15f Import upstream version 3.4.1 vor 15 Jahren
pgusage.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
proto.h 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
putshell.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
reset.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
restore.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
save.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
sort.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
stack.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
streqvcmp.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
text_mmap.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
time.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
tokenize.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
usage.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
value-type.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
value-type.h 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
version.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
xat-attribute.c 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren
xat-attribute.h 59f71d26a3 Import upstream version 3.4.4 vor 14 Jahren

README

THIS TARBALL IS NOT A FULL DISTRIBUTION.

The contents of this tarball is designed to be incorporated into
software packages that utilize the AutoOpts option automation
package and are intended to be installed on systems that may not
have libopts installed. It is redistributable under the terms
of either the LGPL (see COPYING.lgpl) or under the terms of
the advertising clause free BSD license (see COPYING.mbsd).

Usage Instructions for autoconf/automake/libtoolized projects:

1. Install the unrolled tarball into your package source tree,
copying ``libopts.m4'' to your autoconf macro directory.

In your bootstrap (pre-configure) script, you can do this:

rm -rf libopts libopts-*
gunzip -c `autoopts-config libsrc` | tar -xvf -
mv -f libopts-*.*.* libopts
cp -fp libopts/m4/*.m4 m4/.

I tend to put my configure auxiliary files in "m4".
Whatever directory you choose, if it is not ".", then
be sure to tell autoconf about it with:

AC_CONFIG_AUX_DIR(m4)

This is one macro where you *MUST* remember to *NOT* quote
the argument. If you do, automake will get lost.

2. Add the following to your ``configure.ac'' file:

LIBOPTS_CHECK

or:

LIBOPTS_CHECK([relative/path/to/libopts])

This macro will automatically invoke

AC_CONFIG_FILES( [relative/path/to/libopts/Makefile] )

The default ``relative/path/to/libopts'' is simply
``libopts''.

3. Add the following to your top level ``Makefile.am'' file:

if NEED_LIBOPTS
SUBDIRS += $(LIBOPTS_DIR)
endif

where ``<...>'' can be whatever other files or directories
you may need. The SUBDIRS must be properly ordered.
*PLEASE NOTE* it is crucial that the SUBDIRS be set under the
control of an automake conditional. To work correctly,
automake has to know the range of possible values of SUBDIRS.
It's a magical name with magical properties. ``NEED_LIBOPTS''
will be correctly set by the ``LIBOPTS_CHECK'' macro, above.

4. Add ``$(LIBOPTS_CFLAGS)'' to relevant compiler flags and
``$(LIBOPTS_LDADD)'' to relevant link options whereever
you need them in your build tree.

5. Make sure your object files explicitly depend upon the
generated options header file. e.g.:

$(prog_OBJECTS) : prog-opts.h
prog-opts.h : prog-opts.c
prog-opts.c : prog-opts.def
autogen prog-opts.def

6. *OPTIONAL* --
If you are creating man pages and texi documentation from
the program options, you will need these rules somewhere, too:

man_MANS = prog.1
prog.1 : prog-opts.def
autogen -Tagman1.tpl -bprog prog-opts.def

prog-invoke.texi : prog-opts.def
autogen -Taginfo.tpl -bprog-invoke prog-opts.def

If your package does not utilize the auto* tools, then you
will need to hand craft the rules for building the library.

LICENSING:

This material is copyright (c) 1993-2009 by Bruce Korb.
You are licensed to use this under the terms of either
the GNU Lesser General Public License (see: COPYING.lgpl), or,
at your option, the modified Berkeley Software Distribution
License (see: COPYING.mbsd). Both of these files should be
included with this tarball.