libtasn1 is a highly portable C library that encodes and decodes DER/BER data following an ASN.1 schema.
Download (HTTP): https://ftp.gnu.org/gnu/libtasn1/libtasn1-4.19.0.tar.gz
Install libtasn1 by running the following commands:
./configure --prefix=/usr --disable-static && make
To test the results, issue: make check.
Now, as the root
user:
make install
If you did not pass the --enable-gtk-doc
option to the configure script, you can install
the API documentation using the following command as the
root
user:
make -C doc/reference install-data-local
Clean the directory by running the following command:
make distclean
Install lib32-libtasn1 by running the following commands:
CC="gcc -m32" CXX="g++ -m32" \ PKG_CONFIG_PATH=/usr/lib32/pkgconfig \ ./configure --prefix=/usr \ --libdir=/usr/lib32 \ --host=i686-pc-linux-gnu \ --disable-static && make
Now as the root
user:
make DESTDIR=$PWD/DESTDIR install && cp -vr DESTDIR/usr/lib32/* /usr/lib32 && rm -rf DESTDIR && ldconfig
--{en,dis}able-silent-rules
: This
option changes verbosity in the build output.
--{en,dis}able-dependency-tracking
:
This option changes whether to accept slow dependency extractors.
--disable-largefile
: This option
disables support for large files.
--disable-year2038
: This option
disables support for timestamps beyond the year 2038.
--disable-doc
: This option disables
building documentation.
--{en,dis}able-shared
: This option
toggles building shared libraries (enabled by default).
--{en,dis}able-static
: This option
toggles building static libraries (enabled by default).
--enable-fast-install
: This option
optimizes for a faster installation (enabled by default).
--disable-libtool-lock
: This option
“avoids
locking” which can break building this package with
multiple jobs.
--enable-gtk-doc
: This option enables
the use of gtk-doc to
build documentation (it is broken and disabled by default).
--enable-gtk-doc-html
: This option
builds HTML documentation (enabled by default).
--enable-gtk-doc-pdf
: Same as
--enable-gtk-doc-html
but builds as a
PDF (disabled by default).
--enable-cross-guesses={conservative,risky}
: This
option changes the policy for cross-compilation guesses. It is
recommended to leave this alone unless you know what you're doing.
--enable-ld-version-script
: This option
enables the linker version script (enabled by default if
available).
--disable-valgrind-tests
: This option
disables running tests with Valgrind.
--enable-code-coverage
: This option
enables code coverage support.
--disable-gcc-warnings
: This option
disables GCC warnings.
--enable-fuzzing
: This option turns on
fuzzing for the building process.
--with-aix-soname={aix,svr4,both}
: This
option changes the soname variant (default is aix).
--with-gnu-ld
: This option assumes that
the C compiler uses GNU ld (disabled by default but will be
automatically detected).
--disable-static
: This
switch prevents installation of static versions of the libraries.