| 1 |
|
#! /bin/sh |
| 2 |
< |
# From configure.ac Id: configure.ac 6133 2015-06-11 19:20:00Z michael . |
| 2 |
> |
# From configure.ac Id: configure.ac 6222 2015-07-01 18:09:27Z michael . |
| 3 |
|
# Guess values for system-dependent variables and create Makefiles. |
| 4 |
|
# Generated by GNU Autoconf 2.69 for hopm TRUNK. |
| 5 |
|
# |
| 638 |
|
am__EXEEXT_TRUE |
| 639 |
|
LTLIBOBJS |
| 640 |
|
LIBOBJS |
| 641 |
+ |
ENABLE_SSL_FALSE |
| 642 |
+ |
ENABLE_SSL_TRUE |
| 643 |
|
LEXLIB |
| 644 |
|
LEX_OUTPUT_ROOT |
| 645 |
|
LEX |
| 775 |
|
with_gnu_ld |
| 776 |
|
with_sysroot |
| 777 |
|
enable_libtool_lock |
| 778 |
+ |
enable_openssl |
| 779 |
|
enable_assert |
| 780 |
|
enable_warnings |
| 781 |
|
' |
| 1423 |
|
--enable-fast-install[=PKGS] |
| 1424 |
|
optimize for fast installation [default=yes] |
| 1425 |
|
--disable-libtool-lock avoid locking (might break parallel builds) |
| 1426 |
+ |
--enable-openssl=DIR Enable LibreSSL/OpenSSL support (DIR optional). |
| 1427 |
+ |
--disable-openssl Disable LibreSSL/OpenSSL support. |
| 1428 |
|
--enable-assert Enable assert() statements |
| 1429 |
|
--enable-warnings Enable compiler warnings. |
| 1430 |
|
|
| 12582 |
|
|
| 12583 |
|
|
| 12584 |
|
|
| 12585 |
+ |
# Check whether --enable-openssl was given. |
| 12586 |
+ |
if test "${enable_openssl+set}" = set; then : |
| 12587 |
+ |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
| 12588 |
+ |
else |
| 12589 |
+ |
cf_enable_openssl="auto" |
| 12590 |
+ |
fi |
| 12591 |
+ |
|
| 12592 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5 |
| 12593 |
+ |
$as_echo_n "checking for LibreSSL/OpenSSL... " >&6; } |
| 12594 |
+ |
if test "$cf_enable_openssl" != "no"; then |
| 12595 |
+ |
cf_openssl_basedir="" |
| 12596 |
+ |
if test "$cf_enable_openssl" != "auto" && |
| 12597 |
+ |
test "$cf_enable_openssl" != "yes"; then |
| 12598 |
+ |
cf_openssl_basedir="${cf_enable_openssl}" |
| 12599 |
+ |
else |
| 12600 |
+ |
for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\ |
| 12601 |
+ |
/opt /opt/openssl /usr/local/openssl; do |
| 12602 |
+ |
if test -f "${dirs}/include/openssl/opensslv.h"; then |
| 12603 |
+ |
cf_openssl_basedir="${dirs}" |
| 12604 |
+ |
break |
| 12605 |
+ |
fi |
| 12606 |
+ |
done |
| 12607 |
+ |
unset dirs |
| 12608 |
+ |
fi |
| 12609 |
+ |
|
| 12610 |
+ |
if test ! -z "$cf_openssl_basedir"; then |
| 12611 |
+ |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then |
| 12612 |
+ |
CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS" |
| 12613 |
+ |
LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS" |
| 12614 |
+ |
else |
| 12615 |
+ |
cf_openssl_basedir="" |
| 12616 |
+ |
fi |
| 12617 |
+ |
else |
| 12618 |
+ |
if test -f "/usr/include/openssl/opensslv.h"; then |
| 12619 |
+ |
cf_openssl_basedir="/usr" |
| 12620 |
+ |
fi |
| 12621 |
+ |
fi |
| 12622 |
+ |
|
| 12623 |
+ |
if test ! -z "$cf_openssl_basedir"; then |
| 12624 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
| 12625 |
+ |
$as_echo "$cf_openssl_basedir" >&6; } |
| 12626 |
+ |
cf_enable_openssl="yes" |
| 12627 |
+ |
else |
| 12628 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
| 12629 |
+ |
$as_echo "not found. Please check your path." >&6; } |
| 12630 |
+ |
cf_enable_openssl="no" |
| 12631 |
+ |
fi |
| 12632 |
+ |
unset cf_openssl_basedir |
| 12633 |
+ |
else |
| 12634 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
| 12635 |
+ |
$as_echo "disabled" >&6; } |
| 12636 |
+ |
fi |
| 12637 |
+ |
|
| 12638 |
+ |
if test "$cf_enable_openssl" != "no"; then : |
| 12639 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 0.9.8o and above" >&5 |
| 12640 |
+ |
$as_echo_n "checking for LibreSSL or OpenSSL 0.9.8o and above... " >&6; } |
| 12641 |
+ |
if test "$cross_compiling" = yes; then : |
| 12642 |
+ |
cf_openssl_version_ok=no |
| 12643 |
+ |
else |
| 12644 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12645 |
+ |
/* end confdefs.h. */ |
| 12646 |
+ |
|
| 12647 |
+ |
|
| 12648 |
+ |
#include <openssl/opensslv.h> |
| 12649 |
+ |
#include <stdlib.h> |
| 12650 |
+ |
int |
| 12651 |
+ |
main () |
| 12652 |
+ |
{ |
| 12653 |
+ |
exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL)); |
| 12654 |
+ |
; |
| 12655 |
+ |
return 0; |
| 12656 |
+ |
} |
| 12657 |
+ |
_ACEOF |
| 12658 |
+ |
if ac_fn_c_try_run "$LINENO"; then : |
| 12659 |
+ |
cf_openssl_version_ok=yes |
| 12660 |
+ |
else |
| 12661 |
+ |
cf_openssl_version_ok=no |
| 12662 |
+ |
fi |
| 12663 |
+ |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12664 |
+ |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12665 |
+ |
fi |
| 12666 |
+ |
|
| 12667 |
+ |
|
| 12668 |
+ |
if test "$cf_openssl_version_ok" = "yes"; then : |
| 12669 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 12670 |
+ |
$as_echo "found" >&6; } |
| 12671 |
+ |
|
| 12672 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
| 12673 |
+ |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
| 12674 |
+ |
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
| 12675 |
+ |
$as_echo_n "(cached) " >&6 |
| 12676 |
+ |
else |
| 12677 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 12678 |
+ |
LIBS="-lcrypto $LIBS" |
| 12679 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12680 |
+ |
/* end confdefs.h. */ |
| 12681 |
+ |
|
| 12682 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 12683 |
+ |
Use char because int might match the return type of a GCC |
| 12684 |
+ |
builtin and then its argument prototype would still apply. */ |
| 12685 |
+ |
#ifdef __cplusplus |
| 12686 |
+ |
extern "C" |
| 12687 |
+ |
#endif |
| 12688 |
+ |
char RSA_free (); |
| 12689 |
+ |
int |
| 12690 |
+ |
main () |
| 12691 |
+ |
{ |
| 12692 |
+ |
return RSA_free (); |
| 12693 |
+ |
; |
| 12694 |
+ |
return 0; |
| 12695 |
+ |
} |
| 12696 |
+ |
_ACEOF |
| 12697 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
| 12698 |
+ |
ac_cv_lib_crypto_RSA_free=yes |
| 12699 |
+ |
else |
| 12700 |
+ |
ac_cv_lib_crypto_RSA_free=no |
| 12701 |
+ |
fi |
| 12702 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 12703 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 12704 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 12705 |
+ |
fi |
| 12706 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
| 12707 |
+ |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
| 12708 |
+ |
if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
| 12709 |
+ |
cat >>confdefs.h <<_ACEOF |
| 12710 |
+ |
#define HAVE_LIBCRYPTO 1 |
| 12711 |
+ |
_ACEOF |
| 12712 |
+ |
|
| 12713 |
+ |
LIBS="-lcrypto $LIBS" |
| 12714 |
+ |
|
| 12715 |
+ |
fi |
| 12716 |
+ |
|
| 12717 |
+ |
if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then : |
| 12718 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
| 12719 |
+ |
$as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
| 12720 |
+ |
if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
| 12721 |
+ |
$as_echo_n "(cached) " >&6 |
| 12722 |
+ |
else |
| 12723 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 12724 |
+ |
LIBS="-lssl $LIBS" |
| 12725 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12726 |
+ |
/* end confdefs.h. */ |
| 12727 |
+ |
|
| 12728 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 12729 |
+ |
Use char because int might match the return type of a GCC |
| 12730 |
+ |
builtin and then its argument prototype would still apply. */ |
| 12731 |
+ |
#ifdef __cplusplus |
| 12732 |
+ |
extern "C" |
| 12733 |
+ |
#endif |
| 12734 |
+ |
char SSL_connect (); |
| 12735 |
+ |
int |
| 12736 |
+ |
main () |
| 12737 |
+ |
{ |
| 12738 |
+ |
return SSL_connect (); |
| 12739 |
+ |
; |
| 12740 |
+ |
return 0; |
| 12741 |
+ |
} |
| 12742 |
+ |
_ACEOF |
| 12743 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
| 12744 |
+ |
ac_cv_lib_ssl_SSL_connect=yes |
| 12745 |
+ |
else |
| 12746 |
+ |
ac_cv_lib_ssl_SSL_connect=no |
| 12747 |
+ |
fi |
| 12748 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 12749 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 12750 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 12751 |
+ |
fi |
| 12752 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
| 12753 |
+ |
$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
| 12754 |
+ |
if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
| 12755 |
+ |
cat >>confdefs.h <<_ACEOF |
| 12756 |
+ |
#define HAVE_LIBSSL 1 |
| 12757 |
+ |
_ACEOF |
| 12758 |
+ |
|
| 12759 |
+ |
LIBS="-lssl $LIBS" |
| 12760 |
+ |
|
| 12761 |
+ |
fi |
| 12762 |
+ |
|
| 12763 |
+ |
fi |
| 12764 |
+ |
|
| 12765 |
+ |
else |
| 12766 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5 |
| 12767 |
+ |
$as_echo "no - LibreSSL/OpenSSL support disabled" >&6; } |
| 12768 |
+ |
cf_enable_openssl="no" |
| 12769 |
+ |
fi |
| 12770 |
+ |
fi |
| 12771 |
+ |
|
| 12772 |
+ |
if test "$ac_cv_lib_ssl_SSL_connect" = yes; then |
| 12773 |
+ |
ENABLE_SSL_TRUE= |
| 12774 |
+ |
ENABLE_SSL_FALSE='#' |
| 12775 |
+ |
else |
| 12776 |
+ |
ENABLE_SSL_TRUE='#' |
| 12777 |
+ |
ENABLE_SSL_FALSE= |
| 12778 |
+ |
fi |
| 12779 |
+ |
|
| 12780 |
+ |
|
| 12781 |
+ |
|
| 12782 |
|
# Check whether --enable-assert was given. |
| 12783 |
|
if test "${enable_assert+set}" = set; then : |
| 12784 |
|
enableval=$enable_assert; assert=$enableval |
| 14985 |
|
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 14986 |
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 14987 |
|
fi |
| 14988 |
+ |
if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then |
| 14989 |
+ |
as_fn_error $? "conditional \"ENABLE_SSL\" was never defined. |
| 14990 |
+ |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 14991 |
+ |
fi |
| 14992 |
|
|
| 14993 |
|
|
| 14994 |
|
: "${CONFIG_STATUS=./config.status}" |