* [gentoo-embedded] beginnings of autotools in openssl
@ 2011-05-24 21:22 Joakim Tjernlund
2011-05-25 19:21 ` Mike Frysinger
0 siblings, 1 reply; 3+ messages in thread
From: Joakim Tjernlund @ 2011-05-24 21:22 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 286 bytes --]
So I started to add autotools to openssl, was harder than I figured and I didn't
get too far. Anyhow I thought I post what I got so far for other to either
work on or comment on.
Jocke
(See attached file: configure.ac)(See attached file: Makefile.am)(See attached file: Makefile.am)
[-- Attachment #2: configure.ac --]
[-- Type: application/octet-stream, Size: 11584 bytes --]
AC_INIT(openssl,1.0.0d)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_SILENT_RULES([yes])
AC_PROG_INSTALL
AM_CONFIG_HEADER(config.h)
dnl The options
AC_ARG_WITH(cc, [
Compiler Options:
--with-cc=CC use CC to compile (default=gcc).],
[CC=$with_cc;export CC])
AC_ARG_WITH(ldflags, [
Compiler Options:
--with-ldflags=LDFLAGS use LDFLAGS to compile.],
[LDFLAGS=$with_ldflags;export LDFLAGS])
AC_PROG_CC
AC_PROG_LIBTOOL
LT_INIT
AM_CFLAGS="-O3 -Wall"
AM_CFLAGS="$AM_CFLAGS -DTERMIO"
AM_CFLAGS="$AM_CFLAGS -DB_ENDIAN"
AC_SUBST([AM_CFLAGS])
dnl AC_DEFINE([OPENSSL_UNISTD],[<unistd.h>],[xx])
dnl AC_DEFINE([],[],[xx])
dnl AC_DEFINE([TERMIO],[],[Use TermIO])
dnl AC_DEFINE([B_ENDIAN],[],[Big Endian target])
dnl AC_SUBST(AM_CFLAGS,["-O3 -Wall"])
AC_ARG_ENABLE(err,
[ --disable-err turn off error support],
[AC_DEFINE([OPENSSL_NO_ERR],[],[No Error support])])
AM_CONDITIONAL([NO_ERR], [test "x$enable_err" = xno])
AC_ARG_ENABLE(asm,
[ --disable-asm turn off asm support],
[AC_DEFINE(OPENSSL_NO_ASM,[],[No ASM support])])
AM_CONDITIONAL([NO_ASM], [test "x$enable_asm" != xno])
AC_ARG_ENABLE(hw,
[ --disable-hw turn off hw support],
[AC_DEFINE(OPENSSL_NO_HW,[],[No HW support])])
AM_CONDITIONAL([NO_HW], [test "x$enable_hw" != xno])
dnl not NO_XXX
AC_ARG_ENABLE(dso,
[ --disable-dso turn off dso support],
[AC_DEFINE(OPENSSL_NO_DSO,[],[No DSO support])])
AM_CONDITIONAL([NO_DSO], [test "x$enable_dso" != xno])
dnl not NO_XXX
AC_ARG_ENABLE(zlib,
[ --disable-zlib turn off zlib support],
[AC_DEFINE(OPENSSL_NO_ZLIB,[],[No zlib support])])
AM_CONDITIONAL([NO_ZLIB], [test "x$enable_zlib" != xno])
dnl not NO_XXX
AC_ARG_ENABLE(zlib-dynamic,
[ --disable-zlib-dynamic turn off zlib-dynamic support],
[AC_DEFINE(OPENSSL_NO_ZLIB_DYNAMIC,[],[No zlib-dynamic support])])
AM_CONDITIONAL([NO_ZLIB_DYNAMIC], [test "x$enable_zlib_dynamic" != xno])
dnl not NO_XXX
AC_ARG_ENABLE(threads,
[ --disable-threads turn off threads support],
[AC_DEFINE(OPENSSL_NO_THREADS,[],[No thead support])])
AM_CONDITIONAL([NO_THREADS], [test "x$enable_threads" != xno])
dnl Cryptos
AC_ARG_ENABLE(rsa,
[ --disable-rsa turn off RSA crypo],
[AC_DEFINE([OPENSSL_NO_RSA],[],[No XXX support])])
AM_CONDITIONAL([RSA_CRYPTO], [test "x$enable_rsa" != xno])
AC_ARG_ENABLE(aes,
[ --disable-aes turn off AES crypo],
[AC_DEFINE([OPENSSL_NO_AES],[],[No XXX support])])
AM_CONDITIONAL([AES_CRYPTO], [test "x$enable_aes" != xno])
AC_ARG_ENABLE(bf,
[ --disable-bf turn off BF crypo],
[AC_DEFINE([OPENSSL_NO_BF],[],[No XXX support])])
AM_CONDITIONAL([BF_CRYPTO], [test "x$enable_bf" != xno])
AC_ARG_ENABLE(camellia,
[ --disable-camellia turn off CAMELLIA crypo],
[AC_DEFINE([OPENSSL_NO_CAMELLIA],[],[No XXX support])])
AM_CONDITIONAL([CAMELLIA_CRYPTO], [test "x$enable_camellia" != xno])
AC_ARG_ENABLE(cms,
[ --disable-cms turn off CMS crypo],
[AC_DEFINE([OPENSSL_NO_CMS],[],[No XXX support])])
AM_CONDITIONAL([CMS_CRYPTO], [test "x$enable_cms" != xno])
AC_ARG_ENABLE(ec,
[ --disable-ec turn off EC crypo],
[AC_DEFINE([OPENSSL_NO_EC],[],[No XXX support])])
AM_CONDITIONAL([EC_CRYPTO], [test "x$enable_ec" != xno])
AC_ARG_ENABLE(ecdh,
[ --disable-ecdh turn off ECDH crypo],
[AC_DEFINE([OPENSSL_NO_ECDH],[],[No XXX support])])
AM_CONDITIONAL([ECDH_CRYPTO], [test "x$enable_ecdh" != xno])
AC_ARG_ENABLE(ecdsa,
[ --disable-ecdsa turn off ECDSA crypo],
[AC_DEFINE([OPENSSL_NO_ECDSA],[],[No XXX support])])
AM_CONDITIONAL([ECDSA_CRYPTO], [test "x$enable_ecdsa" != xno])
AC_ARG_ENABLE(engine,
[ --disable-engine turn off ENGINE crypo],
[AC_DEFINE([OPENSSL_NO_ENGINE],[],[No XXX support])])
AM_CONDITIONAL([ENGINE_CRYPTO], [test "x$enable_engine" != xno])
AC_ARG_ENABLE(gmp,
[ --disable-gmp turn off GMP crypo],
[AC_DEFINE([OPENSSL_NO_GMP],[],[No XXX support])])
AM_CONDITIONAL([GMP_CRYPTO], [test "x$enable_gmp" != xno])
AC_ARG_ENABLE(gost,
[ --disable-gost turn off GOST crypo],
[AC_DEFINE([OPENSSL_NO_GOST],[],[No XXX support])])
AM_CONDITIONAL([GOST_CRYPTO], [test "x$enable_gost" != xno])
AC_ARG_ENABLE(idea,
[ --disable-idea turn off IDEA crypo],
[AC_DEFINE([OPENSSL_NO_IDEA],[],[No XXX support])])
AM_CONDITIONAL([IDEA_CRYPTO], [test "x$enable_idea" != xno])
AC_ARG_ENABLE(jpake,
[ --disable-jpake turn off JPAKE crypo],
[AC_DEFINE([OPENSSL_NO_JPAKE],[],[No XXX support])])
AM_CONDITIONAL([JPAKE_CRYPTO], [test "x$enable_jpake" != xno])
AC_ARG_ENABLE(krb5,
[ --disable-krb5 turn off KRB5 crypo],
[AC_DEFINE([OPENSSL_NO_KRB5],[],[No XXX support])])
AM_CONDITIONAL([KRB5_CRYPTO], [test "x$enable_krb5" != xno])
AC_ARG_ENABLE(md2,
[ --disable-md2 turn off MD2 crypo],
[AC_DEFINE([OPENSSL_NO_MD2],[],[No XXX support])])
AM_CONDITIONAL([MD2_CRYPTO], [test "x$enable_md2" != xno])
AC_ARG_ENABLE(mdc2,
[ --disable-mdc2 turn off MDC2 crypo],
[AC_DEFINE([OPENSSL_NO_MDC2],[],[No XXX support])])
AM_CONDITIONAL([MDC2_CRYPTO], [test "x$enable_mdc2" != xno])
AC_ARG_ENABLE(md4,
[ --disable-md4 turn off MD4 crypo],
[AC_DEFINE([OPENSSL_NO_MD4],[],[No XXX support])])
AM_CONDITIONAL([MD4_CRYPTO], [test "x$enable_md4" != xno])
AC_ARG_ENABLE(md5,
[ --disable-md5 turn off MD5 crypo],
[AC_DEFINE([OPENSSL_NO_MD5],[],[No XXX support])])
AM_CONDITIONAL([MD5_CRYPTO], [test "x$enable_md5" != xno])
AC_ARG_ENABLE(rc2,
[ --disable-rc2 turn off RC2 crypo],
[AC_DEFINE([OPENSSL_NO_RC2],[],[No XXX support])])
AM_CONDITIONAL([RC2_CRYPTO], [test "x$enable_rc2" != xno])
AC_ARG_ENABLE(rc3,
[ --disable-rc3 turn off RC3 crypo],
[AC_DEFINE([OPENSSL_NO_RC3],[],[No XXX support])])
AM_CONDITIONAL([RC3_CRYPTO], [test "x$enable_rc3" != xno])
AC_ARG_ENABLE(rc4,
[ --disable-rc4 turn off RC4 crypo],
[AC_DEFINE([OPENSSL_NO_RC4],[],[No XXX support])])
AM_CONDITIONAL([RC4_CRYPTO], [test "x$enable_rc4" != xno])
AC_ARG_ENABLE(rc5,
[ --disable-rc5 turn off RC5 crypo],
[AC_DEFINE([OPENSSL_NO_RC5],[],[No XXX support])])
AM_CONDITIONAL([RC5_CRYPTO], [test "x$enable_rc5" != xno])
AC_ARG_ENABLE(rfc3779,
[ --disable-rfc3779 turn off RFC3779 crypo],
[AC_DEFINE([OPENSSL_NO_RFC3779],[],[No XXX support])])
AM_CONDITIONAL([RFC3779_CRYPTO], [test "x$enable_rfc3779" != xno])
AC_ARG_ENABLE(ripemd,
[ --disable-ripemd turn off RIPEMD crypo],
[AC_DEFINE([OPENSSL_NO_RIPEMD],[],[No XXX support])])
AM_CONDITIONAL([RIPEMD_CRYPTO], [test "x$enable_ripemd" != xno])
AC_ARG_ENABLE(seed,
[ --disable-seed turn off SEED crypo],
[AC_DEFINE([OPENSSL_NO_SEED],[],[No XXX support])])
AM_CONDITIONAL([SEED_CRYPTO], [test "x$enable_seed" != xno])
AC_ARG_ENABLE(store,
[ --disable-store turn off STORE crypo],
[AC_DEFINE([OPENSSL_NO_STORE],[],[No XXX support])])
AM_CONDITIONAL([STORE_CRYPTO], [test "x$enable_store," != xno])
AC_ARG_ENABLE(test,
[ --disable-test turn off TEST crypo],
[AC_DEFINE([OPENSSL_NO_TEST],[],[No XXX support])])
AM_CONDITIONAL([TEST_CRYPTO], [test "x$enable_test" != xno])
AH_VERBATIM([zzzz],[
/* Generate 80386 code? */
#undef I386_ONLY
#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
#define ENGINESDIR "/usr/local/lib/engines"
#define OPENSSLDIR "/usr/local/ssl"
#endif
#endif
#undef OPENSSL_UNISTD
#define OPENSSL_UNISTD <unistd.h>
#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
#define IDEA_INT unsigned int
#endif
#if defined(HEADER_MD2_H) && !defined(MD2_INT)
#define MD2_INT unsigned int
#endif
#if defined(HEADER_RC2_H) && !defined(RC2_INT)
/* I need to put in a mod for the alpha - eay */
#define RC2_INT unsigned int
#endif
#if defined(HEADER_RC4_H)
#if !defined(RC4_INT)
/* using int types make the structure larger but make the code faster
* on most boxes I have tested - up to %20 faster. */
/*
* I don't know what does "most" mean, but declaring "int" is a must on:
* - Intel P6 because partial register stalls are very expensive;
* - elder Alpha because it lacks byte load/store instructions;
*/
#define RC4_INT unsigned int
#endif
#if !defined(RC4_CHUNK)
/*
* This enables code handling data aligned at natural CPU word
* boundary. See crypto/rc4/rc4_enc.c for further details.
*/
#undef RC4_CHUNK
#endif
#endif
#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
* %20 speed up (longs are 8 bytes, int's are 4). */
#ifndef DES_LONG
#define DES_LONG unsigned long
#endif
#endif
#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
#define CONFIG_HEADER_BN_H
#undef BN_LLONG
/* Should we define BN_DIV2W here? */
/* Only one for the following should be defined */
#undef SIXTY_FOUR_BIT_LONG
#undef SIXTY_FOUR_BIT
#define THIRTY_TWO_BIT
#endif
#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
#define CONFIG_HEADER_RC4_LOCL_H
/* if this is defined data[i] is used instead of *data, this is a %20
* speedup on x86 */
#undef RC4_INDEX
#endif
#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
#define CONFIG_HEADER_BF_LOCL_H
#undef BF_PTR
#endif /* HEADER_BF_LOCL_H */
#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
#define CONFIG_HEADER_DES_LOCL_H
#ifndef DES_DEFAULT_OPTIONS
/* the following is tweaked from a config script, that is why it is a
* protected undef/define */
#ifndef DES_PTR
#undef DES_PTR
#endif
/* This helps C compiler generate the correct code for multiple functional
* units. It reduces register dependancies at the expense of 2 more
* registers */
#ifndef DES_RISC1
#undef DES_RISC1
#endif
#ifndef DES_RISC2
#undef DES_RISC2
#endif
#if defined(DES_RISC1) && defined(DES_RISC2)
YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
#endif
/* Unroll the inner loop, this sometimes helps, sometimes hinders.
* Very mucy CPU dependant */
#ifndef DES_UNROLL
#undef DES_UNROLL
#endif
/* These default values were supplied by
* Peter Gutman <pgut001@cs.auckland.ac.nz>
* They are only used if nothing else has been defined */
#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
/* Special defines which change the way the code is built depending on the
CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
even newer MIPS CPU's, but at the moment one size fits all for
optimization options. Older Sparc's work better with only UNROLL, but
there's no way to tell at compile time what it is you're running on */
#if defined( sun ) /* Newer Sparc's */
# define DES_PTR
# define DES_RISC1
# define DES_UNROLL
#elif defined( __ultrix ) /* Older MIPS */
# define DES_PTR
# define DES_RISC2
# define DES_UNROLL
#elif defined( __osf1__ ) /* Alpha */
# define DES_PTR
# define DES_RISC2
#elif defined ( _AIX ) /* RS6000 */
/* Unknown */
#elif defined( __hpux ) /* HP-PA */
/* Unknown */
#elif defined( __aux ) /* 68K */
/* Unknown */
#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
# define DES_UNROLL
#elif defined( __sgi ) /* Newer MIPS */
# define DES_PTR
# define DES_RISC2
# define DES_UNROLL
#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
# define DES_PTR
# define DES_RISC1
# define DES_UNROLL
#endif /* Systems-specific speed defines */
#endif
#endif /* DES_DEFAULT_OPTIONS */
#endif /* HEADER_DES_LOCL_H */
])
AC_OUTPUT(
Makefile
crypto/Makefile
ssl/Makefile
)
[-- Attachment #3: Makefile.am --]
[-- Type: application/octet-stream, Size: 419 bytes --]
ACLOCAL_AMFLAGS=-I m4
SUBDIRS = \
crypto \
ssl
# rsaref
opensslincludedir = $(includedir)/openssl
opensslinclude_HEADERS = e_os2.h
noinst_HEADERS = e_os.h
#links: echo links
# mkdir -p include/openssl
# for subdir in ${SUBDIRS} ; do \
# make -C $${subdir} links ; \
# done
# for file in ${opensslinclude_HEADERS} ; do \
# ln -f -s ${srcdir}/$${file} include/openssl ; \
# done
# apps
# demos
# doc
[-- Attachment #4: Makefile.am --]
[-- Type: application/octet-stream, Size: 13989 bytes --]
INCLUDES = -I$(srcdir)/.. -I../include -I.
SUBDIRS =
noinst_LIBRARIES =
noinst_LTLIBRARIES =
opensslincludedir=$(includedir)/openssl
libcrypto_la_LIBADD =
opensslinclude_HEADERS = crypto.h opensslv.h opensslconf.h ebcdic.h symhacks.h \
ossl_typ.h
noinst_HEADERS = cryptlib.h buildinf.h md32_common.h o_time.h o_str.h o_dir.h
CFLAGS += -Iasn1 -Ievp
if RSA_CRYPTO
opensslinclude_HEADERS += rsa/rsa.h
libcrypto_rsa_la_SOURCES = \
rsa/rsa_eay.c rsa/rsa_gen.c rsa/rsa_lib.c rsa/rsa_sign.c rsa/rsa_saos.c rsa/rsa_err.c \
rsa/rsa_pk1.c rsa/rsa_ssl.c rsa/rsa_none.c rsa/rsa_oaep.c rsa/rsa_chk.c rsa/rsa_null.c \
rsa/rsa_asn1.c
noinst_LTLIBRARIES += libcrypto_rsa.la
libcrypto_la_LIBADD += libcrypto_rsa.la
endif
#AES
if AES_CRYPTO
opensslinclude_HEADERS += aes/aes.h
noinst_HEADERS += aes/aes_locl.h
libcrypto_aes_la_SOURCES = aes/aes_core.c aes/aes_misc.c aes/aes_ecb.c aes/aes_cbc.c \
aes/aes_cfb.c aes/aes_ofb.c aes/aes_ctr.c
noinst_LTLIBRARIES += libcrypto_aes.la
libcrypto_la_LIBADD += libcrypto_aes.la
endif
#ASN1
opensslinclude_HEADERS += asn1/asn1.h asn1/asn1_mac.h asn1/asn1t.h
noinst_HEADERS += asn1/charmap.h
libcrypto_asn1_la_SOURCES = asn1/a_object.c asn1/a_bitstr.c asn1/a_utctm.c asn1/a_gentm.c asn1/a_time.c\
asn1/a_int.c asn1/a_octet.c \
asn1/a_print.c asn1/a_type.c asn1/a_set.c asn1/a_dup.c asn1/a_d2i_fp.c asn1/a_i2d_fp.c \
asn1/a_enum.c asn1/a_utf8.c asn1/a_sign.c asn1/a_digest.c asn1/a_verify.c asn1/a_mbstr.c asn1/a_strex.c \
asn1/x_algor.c asn1/x_val.c asn1/x_pubkey.c asn1/x_sig.c asn1/x_req.c asn1/x_attrib.c asn1/x_bignum.c \
asn1/x_long.c asn1/x_name.c asn1/x_x509.c asn1/x_x509a.c asn1/x_crl.c asn1/x_info.c asn1/x_spki.c asn1/nsseq.c \
asn1/x_nx509.c asn1/d2i_pu.c asn1/d2i_pr.c asn1/i2d_pu.c asn1/i2d_pr.c \
asn1/t_req.c asn1/t_x509.c asn1/t_x509a.c asn1/t_crl.c asn1/t_pkey.c asn1/t_spki.c asn1/t_bitst.c \
asn1/tasn_new.c asn1/tasn_fre.c asn1/tasn_enc.c asn1/tasn_dec.c asn1/tasn_utl.c asn1/tasn_typ.c \
asn1/tasn_prn.c asn1/ameth_lib.c \
asn1/f_int.c asn1/f_string.c asn1/n_pkey.c \
asn1/f_enum.c asn1/x_pkey.c asn1/a_bool.c asn1/x_exten.c asn1/bio_asn1.c asn1/bio_ndef.c asn1/asn_mime.c\
asn1/asn1_gen.c asn1/asn1_par.c asn1/asn1_lib.c asn1/asn1_err.c asn1/a_bytes.c asn1/a_strnid.c \
asn1/evp_asn1.c asn1/asn_pack.c asn1/p5_pbe.c asn1/p5_pbev2.c asn1/p8_pkey.c asn1/asn_moid.c
noinst_LTLIBRARIES += libcrypto_asn1.la
libcrypto_la_LIBADD += libcrypto_asn1.la
#bf
if BF_CRYPTO
opensslinclude_HEADERS += bf/blowfish.h
noinst_LTLIBRARIES += libcrypto_bf.la
libcrypto_bf_la_SOURCES = \
bf/bf_skey.c bf/bf_ecb.c bf/bf_enc.c bf/bf_cfb64.c bf/bf_ofb64.c
libcrypto_la_LIBADD += libcrypto_bf.la
endif
#bio
opensslinclude_HEADERS += bio/bio.h
noinst_HEADERS += bio/bio_lcl.h
noinst_LTLIBRARIES += libcrypto_bio.la
libcrypto_bio_la_SOURCES = \
bio/bio_lib.c bio/bio_cb.c bio/bio_err.c \
bio/bss_mem.c bio/bss_null.c bio/bss_fd.c \
bio/bss_file.c bio/bss_sock.c bio/bss_conn.c \
bio/bf_null.c bio/bf_buff.c bio/b_print.c bio/b_dump.c \
bio/b_sock.c bio/bss_acpt.c bio/bf_nbio.c bio/bss_log.c bio/bss_bio.c \
bio/bss_dgram.c
#bn
opensslinclude_HEADERS += bn/bn.h
noinst_HEADERS += bn/bn_lcl.h bn/bn_prime.h
noinst_LTLIBRARIES += libcrypto_bn.la
libcrypto_bn_la_SOURCES = \
bn/bn_add.c bn/bn_div.c bn/bn_exp.c bn/bn_lib.c bn/bn_ctx.c bn/bn_mul.c bn/bn_mod.c \
bn/bn_print.c bn/bn_rand.c bn/bn_shift.c bn/bn_word.c bn/bn_blind.c \
bn/bn_kron.c bn/bn_sqrt.c bn/bn_gcd.c bn/bn_prime.c bn/bn_err.c bn/bn_sqr.c bn/bn_asm.c \
bn/bn_recp.c bn/bn_mont.c bn/bn_mpi.c bn/bn_exp2.c bn/bn_gf2m.c bn/bn_nist.c \
bn/bn_depr.c bn/bn_const.c
#buffer
opensslinclude_HEADERS += buffer/buffer.h
noinst_LTLIBRARIES += libcrypto_buffer.la
libcrypto_buffer_la_SOURCES = buffer/buffer.c buffer/buf_err.c
#cast
opensslinclude_HEADERS += cast/cast.h
noinst_HEADERS += cast/cast_s.h cast/cast_lcl.h
noinst_LTLIBRARIES += libcrypto_cast.la
libcrypto_cast_la_SOURCES = cast/c_skey.c cast/c_ecb.c cast/c_enc.c cast/c_cfb64.c cast/c_ofb64.c
#cms
if CMS_CRYPTO
opensslinclude_HEADERS += cms/cms.h
noinst_HEADERS += cms/cms_lcl.h
noinst_LTLIBRARIES += libcrypto_cms.la
libcrypto_cms_la_SOURCES = cms/cms_lib.c cms/cms_asn1.c cms/cms_att.c cms/cms_io.c cms/\
cms/cms_smime.c cms/cms_err.c \
cms/cms_sd.c cms/cms_dd.c cms/cms_cd.c cms/cms_env.c cms/cms_enc.c cms/cms_ess.c
endif
#comp
opensslinclude_HEADERS += comp/comp.h
noinst_LTLIBRARIES += libcrypto_comp.la
libcrypto_comp_la_SOURCES = comp/comp_lib.c comp/comp_err.c comp/c_rle.c comp/c_zlib.c
opensslinclude_HEADERS += conf/conf.h conf/conf_api.h
noinst_HEADERS += conf/conf_def.h
noinst_LTLIBRARIES += libcrypto_conf.la
libcrypto_conf_la_SOURCES = conf/conf_err.c conf/conf_lib.c conf/conf_api.c\
conf/conf_def.c conf/conf_mod.c conf/conf_mall.c conf/conf_sap.c
#des
opensslinclude_HEADERS += des/des.h des/des_old.h
noinst_HEADERS += des/des_locl.h des/rpc_des.h des/spr.h des/des_ver.h
noinst_LTLIBRARIES += libcrypto_des.la
libcrypto_des_la_SOURCES = des/cbc_cksm.c des/cbc_enc.c des/cfb64enc.c des/cfb_enc.c \
des/ecb3_enc.c des/ecb_enc.c des/enc_read.c des/enc_writ.c \
des/fcrypt.c des/ofb64enc.c des/ofb_enc.c des/pcbc_enc.c \
des/qud_cksm.c des/rand_key.c des/rpc_enc.c des/set_key.c \
des/des_enc.c des/fcrypt_b.c \
des/xcbc_enc.c \
des/str2key.c des/cfb64ede.c des/ofb64ede.c des/ede_cbcm_enc.c des/des_old.c des/des_old2.c \
des/read2pwd.c
#dh
opensslinclude_HEADERS += dh/dh.h
noinst_LTLIBRARIES += libcrypto_dh.la
libcrypto_dh_la_SOURCES = dh/dh_asn1.c dh/dh_gen.c dh/dh_key.c dh/dh_lib.c dh/dh_check.c \
dh/dh_err.c dh/dh_depr.c \
dh/dh_ameth.c dh/dh_pmeth.c dh/dh_prn.c
#XXX, should not be needed
libcrypto_dh_la_CFLAGS = -Iasn1 -Ievp
#dsa
opensslinclude_HEADERS += dsa/dsa.h
noinst_HEADERS += dsa/dsa_locl.h
noinst_LTLIBRARIES += libcrypto_dsa.la
libcrypto_dsa_la_SOURCES = dsa/dsa_gen.c dsa/dsa_key.c dsa/dsa_lib.c dsa/dsa_asn1.c dsa/dsa_vrf.c\
dsa/dsa_sign.c dsa/dsa_err.c dsa/dsa_ossl.c dsa/dsa_depr.c dsa/dsa_ameth.c dsa/dsa_pmeth.c\
dsa/dsa_prn.c
#XXX, should not be needed
libcrypto_dsa_la_CFLAGS = -Iasn1 -Ievp
#dso
opensslinclude_HEADERS += dso/dso.h
noinst_LTLIBRARIES += libcrypto_dso.la
libcrypto_dso_la_SOURCES = dso/dso_dl.c dso/dso_dlfcn.c dso/dso_err.c dso/dso_lib.c\
dso/dso_null.c dso/dso_openssl.c dso/dso_win32.c dso/dso_vms.c dso/dso_beos.c
#ec
if EC_CRYPTO
opensslinclude_HEADERS += ec/ec.h
noinst_HEADERS += ec/ec_lcl.h
noinst_LTLIBRARIES += libcrypto_ec.la
libcrypto_ec_la_SOURCES = ec/ec_lib.c ec/ecp_smpl.c ec/ecp_mont.c ec/ecp_nist.c\
ec/ec_cvt.c ec/ec_mult.c ec/ec_err.c ec/ec_curve.c ec/ec_check.c ec/ec_print.c\
ec/ec_asn1.c ec/ec_key.c ec/ec2_smpl.c ec/ec2_mult.c ec/ec_ameth.c ec/ec_pmeth.c ec/eck_prn.c
#XXX, should not be needed
libcrypto_ec_la_CFLAGS = -Iasn1 -Ievp
endif
#ecdh
if ECDH_CRYPTO
opensslinclude_HEADERS += ecdh/ecdh.h
noinst_HEADERS += ecdh/ech_locl.h
noinst_LTLIBRARIES += libcrypto_ecdh.la
libcrypto_ecdh_la_SOURCES = ecdh/ech_lib.c ecdh/ech_ossl.c ecdh/ech_key.c ecdh/ech_err.c
endif
#ecdsa
if ECDSA_CRYPTO
opensslinclude_HEADERS += ecdsa/ecdsa.h
noinst_HEADERS += ecdsa/ecs_locl.h
noinst_LTLIBRARIES += libcrypto_ecdsa.la
libcrypto_ecdsa_la_SOURCES = ecdsa/ecs_lib.c ecdsa/ecs_asn1.c ecdsa/ecs_ossl.c ecdsa/ecs_sign.c\
ecdsa/ecs_vrf.c ecdsa/ecs_err.c
endif
#engine
if ENGINE_CRYPTO
opensslinclude_HEADERS += engine/engine.h
noinst_LTLIBRARIES += libcrypto_engine.la
libcrypto_engine_la_SOURCES = engine/eng_err.c engine/eng_lib.c engine/eng_list.c\
engine/eng_init.c engine/eng_ctrl.c engine/eng_table.c engine/eng_pkey.c\
engine/eng_fat.c engine/eng_all.c engine/tb_rsa.c engine/tb_dsa.c engine/tb_ecdsa.c\
engine/tb_dh.c engine/tb_ecdh.c engine/tb_rand.c engine/tb_store.c \
engine/tb_cipher.c engine/tb_digest.c engine/tb_pkmeth.c engine/tb_asnmth.c \
engine/eng_openssl.c engine/eng_cnf.c engine/eng_dyn.c engine/eng_cryptodev.c
endif
#err
opensslinclude_HEADERS += err/err.h
noinst_LTLIBRARIES += libcrypto_err.la
libcrypto_err_la_SOURCES = err/err.c err/err_all.c err/err_prn.c
#hmac
opensslinclude_HEADERS += hmac/hmac.h
noinst_LTLIBRARIES += libcrypto_hmac.la
libcrypto_hmac_la_SOURCES = hmac/hmac.c hmac/hm_ameth.c hmac/hm_pmeth.c
#XXX, should not be needed
libcrypto_hmac_la_CFLAGS = -Iasn1 -Ievp
#idea
#opensslinclude_HEADERS += idea
#noinst_HEADERS += idea
#noinst_LTLIBRARIES += libcrypto_idea.la
#libcrypto_idea_la_SOURCES =
#jpake
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#krb5
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#lhash
opensslinclude_HEADERS += lhash/lhash.h
noinst_LTLIBRARIES += libcrypto_lhash.la
libcrypto_lhash_la_SOURCES = lhash/lhash.c lhash/lh_stats.c
#md2
if MD2_CRYPTO
opensslinclude_HEADERS += md2/md2.h
noinst_LTLIBRARIES += libcrypto_md2.la
libcrypto_md2_la_SOURCES = md2/md2_dgst.c md2/md2_one.c
endif
#md4
if MD4_CRYPTO
opensslinclude_HEADERS += md4/md4.h
noinst_HEADERS += md4/md4_locl.h
noinst_LTLIBRARIES += libcrypto_md4.la
libcrypto_md4_la_SOURCES = md4/md4_dgst.c md4/md4_one.c
endif
#md5
if MD5_CRYPTO
opensslinclude_HEADERS += md5/md5.h
noinst_HEADERS += md5/md5_locl.h
noinst_LTLIBRARIES += libcrypto_md5.la
libcrypto_md5_la_SOURCES = md5/md5_dgst.c md5/md5_one.c
endif
#mdc2
if MDC2_CRYPTO
opensslinclude_HEADERS += mdc2/mdc2.h
noinst_LTLIBRARIES += libcrypto_mdc2.la
libcrypto_mdc2_la_SOURCES = mdc2/mdc2dgst.c mdc2/mdc2_one.c
endif
#modes
opensslinclude_HEADERS += modes/modes.h
noinst_LTLIBRARIES += libcrypto_modes.la
libcrypto_modes_la_SOURCES = modes/cbc128.c modes/ctr128.c modes/cts128.c modes/cfb128.c modes/ofb128.c
#objects
opensslinclude_HEADERS += objects/objects.h objects/obj_mac.h
noinst_HEADERS += objects/obj_dat.h objects/obj_xref.h
noinst_LTLIBRARIES += libcrypto_objects.la
libcrypto_objects_la_SOURCES = objects/o_names.c objects/obj_dat.c objects/obj_lib.c objects/obj_err.c objects/obj_xref.c
#ocsp
opensslinclude_HEADERS += ocsp/ocsp.h
noinst_LTLIBRARIES += libcrypto_ocsp.la
libcrypto_ocsp_la_SOURCES = ocsp/ocsp_asn.c ocsp/ocsp_ext.c ocsp/ocsp_ht.c ocsp/ocsp_lib.c \
ocsp/ocsp_cl.c ocsp/ocsp_srv.c ocsp/ocsp_prn.c ocsp/ocsp_vfy.c ocsp/ocsp_err.c
#pem
opensslinclude_HEADERS += pem/pem.h pem/pem2.h
noinst_LTLIBRARIES += libcrypto_pem.la
libcrypto_pem_la_SOURCES = pem/pem_sign.c pem/pem_seal.c pem/pem_info.c pem/pem_lib.c \
pem/pem_all.c pem/pem_err.c pem/pem_x509.c pem/pem_xaux.c pem/pem_oth.c \
pem/pem_pk8.c pem/pem_pkey.c pem/pvkfmt.c
#perlasm
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#pkcs12
opensslinclude_HEADERS += pkcs12/pkcs12.h
noinst_LTLIBRARIES += libcrypto_pkcs12.la
libcrypto_pkcs12_la_SOURCES = pkcs12/p12_add.c pkcs12/p12_asn.c pkcs12/p12_attr.c pkcs12/p12_crpt.c \
pkcs12/p12_crt.c pkcs12/p12_decr.c pkcs12/p12_init.c pkcs12/p12_key.c pkcs12/p12_kiss.c \
pkcs12/p12_mutl.c pkcs12/p12_utl.c pkcs12/p12_npas.c pkcs12/pk12err.c pkcs12/p12_p8d.c \
pkcs12/p12_p8e.c
#pkcs7
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#pqueue
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#rand
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#rc2
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#rc4
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#rc5
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#ripemd
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#seed
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#sha
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#stack
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#store
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#threads
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#ts
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#txt_db
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#ui
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#whrlpool
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#x509
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
#x509v3
#opensslinclude_HEADERS += xx
#noinst_HEADERS += xx
#noinst_LTLIBRARIES += libcrypto_xx.la
#libcrypto_xx_la_SOURCES =
###
links: buildinf.h
for file in ${opensslinclude_HEADERS} ; do \
ln -f -s ${srcdir}/$${file} ../include/openssl ; \
done
for subdir in ${SUBDIRS} ; do \
make -C $${subdir} links ; \
done
buildinf.h: # tbd dependency to ../Makefile
( echo "#ifndef MK1MF_BUILD"; \
echo ' /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */'; \
echo ' #define CFLAGS "$(CC) $(CFLAG)"'; \
echo ' #define PLATFORM "$(PLATFORM)"'; \
echo " #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
echo '#endif' ) >buildinf.h
lib_LTLIBRARIES = libcrypto.la
libcrypto_la_SOURCES = \
cryptlib.c mem.c mem_clr.c mem_dbg.c cversion.c ex_data.c cpt_err.c ebcdic.c uid.c o_time.c o_str.c o_dir.c
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-embedded] beginnings of autotools in openssl
2011-05-24 21:22 [gentoo-embedded] beginnings of autotools in openssl Joakim Tjernlund
@ 2011-05-25 19:21 ` Mike Frysinger
2011-05-25 20:43 ` Joakim Tjernlund
0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2011-05-25 19:21 UTC (permalink / raw
To: gentoo-embedded; +Cc: Joakim Tjernlund
[-- Attachment #1: Type: Text/Plain, Size: 757 bytes --]
On Tuesday, May 24, 2011 17:22:23 Joakim Tjernlund wrote:
> So I started to add autotools to openssl, was harder than I figured and I
> didn't get too far. Anyhow I thought I post what I got so far for other to
> either work on or comment on.
i started such a project about 3 years ago, but ultimately gave up on it (i do
still have the local code though). since i rewrote the logic in the ebuild to
support cross-compiling (via $FILESDIR/gentoo.config), i'm not aware of the
ebuild not properly building for any target.
the killer for us now is cross-compiling perl. i started hacking at that, but
then got distracted by other things. that patch though is here:
svn://wh0rd.org/perl/libperl.patch
and there is bug 134650 ...
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-embedded] beginnings of autotools in openssl
2011-05-25 19:21 ` Mike Frysinger
@ 2011-05-25 20:43 ` Joakim Tjernlund
0 siblings, 0 replies; 3+ messages in thread
From: Joakim Tjernlund @ 2011-05-25 20:43 UTC (permalink / raw
To: Mike Frysinger; +Cc: gentoo-embedded
Mike Frysinger <vapier@gentoo.org> wrote on 2011/05/25 21:21:18:
>
> On Tuesday, May 24, 2011 17:22:23 Joakim Tjernlund wrote:
> > So I started to add autotools to openssl, was harder than I figured and I
> > didn't get too far. Anyhow I thought I post what I got so far for other to
> > either work on or comment on.
>
> i started such a project about 3 years ago, but ultimately gave up on it (i do
> still have the local code though). since i rewrote the logic in the ebuild to
> support cross-compiling (via $FILESDIR/gentoo.config), i'm not aware of the
> ebuild not properly building for any target.
>
> the killer for us now is cross-compiling perl. i started hacking at that, but
> then got distracted by other things. that patch though is here:
> svn://wh0rd.org/perl/libperl.patch
> and there is bug 134650 ...
Yeah, seen that patch. Benn looking at that myself many yers ago but didn't get very far.
I spent some more time at my openssl auto* work again and now I am
very close. It builds but I got some of the config options work so it wont
link with my app yet. Still only the ssl/ and crypto/ dirs done.
apps/ test/ and tools/ not so, these are not needed so I will skip these. No assembler code
either but PPC doesn't use any so am good anyway
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-25 20:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-24 21:22 [gentoo-embedded] beginnings of autotools in openssl Joakim Tjernlund
2011-05-25 19:21 ` Mike Frysinger
2011-05-25 20:43 ` Joakim Tjernlund
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox