1
0
Aaron Turner f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
..
autoopts f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
compat f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
COPYING.lgpl f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
COPYING.mbsd f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
MakeDefs.inc f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
Makefile.am f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
Makefile.in f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
README f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
autoopts.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
autoopts.h f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
boolean.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
configfile.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
cook.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
enumeration.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
environment.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
genshell.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
genshell.h f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
libopts.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
libopts.m4 f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
load.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
makeshell.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
nested.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
numeric.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
pgusage.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
proto.h f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
putshell.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
restore.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
save.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
sort.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
stack.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
streqvcmp.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
text_mmap.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
tokenize.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
usage.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 Jahren
version.c f6a2e4df1d Import upstream version 2.99+3.0.beta6 vor 19 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.

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/libopts.m4 config/.

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

AC_CONFIG_AUX_DIR(config)

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

This macro will automatically invoke

AC_CONFIG_FILES( [libopts/Makefile] )

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

include $(srcdir)/libopts/MakeDefs.inc
if NEED_LIBOPTS
SUBDIRS = <...> libopts <...>
<>
else
SUBDIRS = <...>
<>
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 1993-2005 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.