ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/configure
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/configure (file contents):
Revision 9163 by michael, Fri Jan 17 19:07:00 2020 UTC vs.
Revision 9182 by michael, Sun Jan 19 20:15:04 2020 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 8977 2019-05-18 20:53:40Z michael .
2 > # From configure.ac Id: configure.ac 9174 2020-01-19 12:38:41Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4 < # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.26.
4 > # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.27.
5   #
6   # Report bugs to <bugs@ircd-hybrid.org>.
7   #
# Line 593 | Line 593 | MAKEFLAGS=
593   # Identity of this package.
594   PACKAGE_NAME='ircd-hybrid'
595   PACKAGE_TARNAME='ircd-hybrid'
596 < PACKAGE_VERSION='8.2.26'
597 < PACKAGE_STRING='ircd-hybrid 8.2.26'
596 > PACKAGE_VERSION='8.2.27'
597 > PACKAGE_STRING='ircd-hybrid 8.2.27'
598   PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599   PACKAGE_URL=''
600  
# Line 814 | Line 814 | enable_assert
814   enable_debugging
815   enable_warnings
816   enable_efence
817 < enable_openssl
818 < enable_gnutls
817 > with_tls
818   '
819        ac_precious_vars='build_alias
820   host_alias
# Line 1379 | Line 1378 | if test "$ac_init_help" = "long"; then
1378    # Omit some internal or obsolete options to make the list less imposing.
1379    # This message is too long to be a string in the A/UX 3.1 sh.
1380    cat <<_ACEOF
1381 < \`configure' configures ircd-hybrid 8.2.26 to adapt to many kinds of systems.
1381 > \`configure' configures ircd-hybrid 8.2.27 to adapt to many kinds of systems.
1382  
1383   Usage: $0 [OPTION]... [VAR=VALUE]...
1384  
# Line 1450 | Line 1449 | fi
1449  
1450   if test -n "$ac_init_help"; then
1451    case $ac_init_help in
1452 <     short | recursive ) echo "Configuration of ircd-hybrid 8.2.26:";;
1452 >     short | recursive ) echo "Configuration of ircd-hybrid 8.2.27:";;
1453     esac
1454    cat <<\_ACEOF
1455  
# Line 1482 | Line 1481 | Optional Features:
1481    --enable-warnings       Enable compiler warnings.
1482    --enable-efence         Enable linking with Electric Fence 'efence' memory
1483                            debugger library.
1485  --enable-openssl=DIR       Enable LibreSSL/OpenSSL support (DIR optional).
1486  --disable-openssl            Disable LibreSSL/OpenSSL support.
1487  --enable-gnutls             Enable GnuTLS support.
1488  --disable-gnutls             Disable GnuTLS support.
1484  
1485   Optional Packages:
1486    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
# Line 1501 | Line 1496 | Optional Packages:
1496    --with-included-ltdl    use the GNU ltdl sources included here
1497    --with-ltdl-include=DIR use the ltdl headers installed in DIR
1498    --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1499 +  --with-tls              Enables TLS with specified library. Options:
1500 +                          'openssl', 'wolfssl', 'gnutls' or 'none'
1501  
1502   Some influential environment variables:
1503    CC          C compiler command
# Line 1586 | Line 1583 | fi
1583   test -n "$ac_init_help" && exit $ac_status
1584   if $ac_init_version; then
1585    cat <<\_ACEOF
1586 < ircd-hybrid configure 8.2.26
1586 > ircd-hybrid configure 8.2.27
1587   generated by GNU Autoconf 2.69
1588  
1589   Copyright (C) 2012 Free Software Foundation, Inc.
# Line 2055 | Line 2052 | cat >config.log <<_ACEOF
2052   This file contains any messages produced by compilers while
2053   running configure, to aid debugging if configure makes a mistake.
2054  
2055 < It was created by ircd-hybrid $as_me 8.2.26, which was
2055 > It was created by ircd-hybrid $as_me 8.2.27, which was
2056   generated by GNU Autoconf 2.69.  Invocation command line was
2057  
2058    $ $0 $@
# Line 2927 | Line 2924 | fi
2924  
2925   # Define the identity of the package.
2926   PACKAGE='ircd-hybrid'
2927 < VERSION='8.2.26'
2927 > VERSION='8.2.27'
2928  
2929  
2930   cat >>confdefs.h <<_ACEOF
# Line 16687 | Line 16684 | fi
16684   fi
16685  
16686  
16690 # Check whether --enable-openssl was given.
16691 if test "${enable_openssl+set}" = set; then :
16692  enableval=$enable_openssl;  cf_enable_openssl=$enableval
16693 else
16694   cf_enable_openssl="auto"
16695 fi
16696
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
16698 $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
16699 if test "$cf_enable_openssl" != "no"; then
16700  cf_openssl_basedir=""
16701  if test "$cf_enable_openssl" != "auto" &&
16702     test "$cf_enable_openssl" != "yes"; then
16703          cf_openssl_basedir="${cf_enable_openssl}"
16704  else
16705        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
16706                /opt /opt/openssl /usr/local/openssl; do
16707      if test -f "${dirs}/include/openssl/opensslv.h"; then
16708        cf_openssl_basedir="${dirs}"
16709        break
16710      fi
16711    done
16712    unset dirs
16713  fi
16687  
16715    if test ! -z "$cf_openssl_basedir"; then
16716    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
16717      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
16718      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
16719    else
16720                  cf_openssl_basedir=""
16721    fi
16722  else
16723                            if test -f "/usr/include/openssl/opensslv.h"; then
16724      cf_openssl_basedir="/usr"
16725    fi
16726  fi
16688  
16689 <      if test ! -z "$cf_openssl_basedir"; then
16690 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
16691 < $as_echo "$cf_openssl_basedir" >&6; }
16731 <    cf_enable_openssl="yes"
16732 <  else
16733 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
16734 < $as_echo "not found. Please check your path." >&6; }
16735 <    cf_enable_openssl="no"
16736 <  fi
16737 <  unset cf_openssl_basedir
16689 > # Check whether --with-tls was given.
16690 > if test "${with_tls+set}" = set; then :
16691 >  withval=$with_tls; with_tls=$withval
16692   else
16693 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16740 < $as_echo "disabled" >&6; }
16693 >  with_tls=auto
16694   fi
16695  
16696 < if test "$cf_enable_openssl" != "no"; then :
16697 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL, or OpenSSL 1.1.1 and above" >&5
16698 < $as_echo_n "checking for LibreSSL, or OpenSSL 1.1.1 and above... " >&6; }
16699 <  if test "$cross_compiling" = yes; then :
16700 <  cf_openssl_version_ok=no
16696 >
16697 > if test "$with_tls" = "openssl" ||
16698 >   test "$with_tls" = "auto"; then
16699 >    ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
16700 > if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
16701 >
16702 >      if test "$cross_compiling" = yes; then :
16703 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16704 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16705 > as_fn_error $? "cannot run test program while cross compiling
16706 > See \`config.log' for more details" "$LINENO" 5; }
16707   else
16708    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709   /* end confdefs.h.  */
16710  
16711  
16712 <    #include <openssl/opensslv.h>
16713 <    #include <stdlib.h>
16712 >          #include <openssl/opensslv.h>
16713 >          #include <stdlib.h>
16714   int
16715   main ()
16716   {
16717 < exit(!(OPENSSL_VERSION_NUMBER >= 0x1010100fL));
16717 >
16718 >          exit(!(OPENSSL_VERSION_NUMBER >= 0x1010100fL));
16719    ;
16720    return 0;
16721   }
16722   _ACEOF
16723   if ac_fn_c_try_run "$LINENO"; then :
16724 <  cf_openssl_version_ok=yes
16765 < else
16766 <  cf_openssl_version_ok=no
16767 < fi
16768 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16769 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
16770 < fi
16771 <
16772 <
16773 <  if test "$cf_openssl_version_ok" = "yes"; then :
16774 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16775 < $as_echo "found" >&6; }
16776 <
16777 <    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16724 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16725   $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
16726   if ${ac_cv_lib_crypto_RSA_free+:} false; then :
16727    $as_echo_n "(cached) " >&6
# Line 16811 | Line 16758 | fi
16758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
16759   $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
16760   if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
16814  cat >>confdefs.h <<_ACEOF
16815 #define HAVE_LIBCRYPTO 1
16816 _ACEOF
16817
16818  LIBS="-lcrypto $LIBS"
16819
16820 fi
16821
16822    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
16761    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
16762   $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
16763   if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
# Line 16867 | Line 16805 | fi
16805  
16806   fi
16807  
16870 else
16871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
16872 $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
16873    cf_enable_openssl="no"
16808   fi
16809 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16810 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
16811 + fi
16812 +
16813   fi
16814  
16815  
16816 < # Check whether --enable-gnutls was given.
16817 < if test "${enable_gnutls+set}" = set; then :
16818 <  enableval=$enable_gnutls;  cf_enable_gnutls=$enableval
16816 >
16817 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL, or OpenSSL 1.1.1 and above" >&5
16818 > $as_echo_n "checking for LibreSSL, or OpenSSL 1.1.1 and above... " >&6; }
16819 >    if test "$ac_cv_lib_ssl_SSL_connect" = "yes"; then :
16820 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16821 > $as_echo "found" >&6; }
16822   else
16823 <   cf_enable_gnutls="auto"
16823 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
16824 > $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
16825   fi
16826  
16827 + fi
16828  
16829 < if test "$cf_enable_openssl" != "auto" &&
16830 <   test "$cf_enable_openssl" != "yes"; then
16831 <  if test "$cf_enable_gnutls" != "no"; then
16829 > if test "$with_tls" = "gnutls" ||
16830 >   test "$with_tls" = "auto"; then
16831 >  if test "$ac_cv_lib_ssl_SSL_connect" != "yes"; then
16832  
16833      ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
16834   if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
# Line 16912 | Line 16855 | main ()
16855   }
16856   _ACEOF
16857   if ac_fn_c_try_run "$LINENO"; then :
16858 <   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
16858 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
16859   $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
16860   if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
16861    $as_echo_n "(cached) " >&6
# Line 16979 | Line 16922 | fi
16922    fi
16923   fi
16924  
16925 + if test "$with_tls" = "wolfssl" ||
16926 +   test "$with_tls" = "auto"; then
16927 +  if test "$ac_cv_lib_ssl_SSL_connect" != "yes" &&
16928 +     test "$ac_cv_lib_gnutls_gnutls_init" != "yes"; then
16929 +
16930 +    ac_fn_c_check_header_mongrel "$LINENO" "wolfssl/ssl.h" "ac_cv_header_wolfssl_ssl_h" "$ac_includes_default"
16931 + if test "x$ac_cv_header_wolfssl_ssl_h" = xyes; then :
16932 +
16933 +      if test "$cross_compiling" = yes; then :
16934 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16935 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16936 + as_fn_error $? "cannot run test program while cross compiling
16937 + See \`config.log' for more details" "$LINENO" 5; }
16938 + else
16939 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940 + /* end confdefs.h.  */
16941 +
16942 +
16943 +          #include <wolfssl/version.h>
16944 +          #include <stdlib.h>
16945 + int
16946 + main ()
16947 + {
16948 +
16949 +          exit(!(LIBWOLFSSL_VERSION_HEX >= 0x04003000));
16950 +  ;
16951 +  return 0;
16952 + }
16953 + _ACEOF
16954 + if ac_fn_c_try_run "$LINENO"; then :
16955 +   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_X509_digest in -lwolfssl" >&5
16956 + $as_echo_n "checking for wolfSSL_X509_digest in -lwolfssl... " >&6; }
16957 + if ${ac_cv_lib_wolfssl_wolfSSL_X509_digest+:} false; then :
16958 +  $as_echo_n "(cached) " >&6
16959 + else
16960 +  ac_check_lib_save_LIBS=$LIBS
16961 + LIBS="-lwolfssl  $LIBS"
16962 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963 + /* end confdefs.h.  */
16964 +
16965 + /* Override any GCC internal prototype to avoid an error.
16966 +   Use char because int might match the return type of a GCC
16967 +   builtin and then its argument prototype would still apply.  */
16968 + #ifdef __cplusplus
16969 + extern "C"
16970 + #endif
16971 + char wolfSSL_X509_digest ();
16972 + int
16973 + main ()
16974 + {
16975 + return wolfSSL_X509_digest ();
16976 +  ;
16977 +  return 0;
16978 + }
16979 + _ACEOF
16980 + if ac_fn_c_try_link "$LINENO"; then :
16981 +  ac_cv_lib_wolfssl_wolfSSL_X509_digest=yes
16982 + else
16983 +  ac_cv_lib_wolfssl_wolfSSL_X509_digest=no
16984 + fi
16985 + rm -f core conftest.err conftest.$ac_objext \
16986 +    conftest$ac_exeext conftest.$ac_ext
16987 + LIBS=$ac_check_lib_save_LIBS
16988 + fi
16989 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&5
16990 + $as_echo "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&6; }
16991 + if test "x$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = xyes; then :
16992 +  cat >>confdefs.h <<_ACEOF
16993 + #define HAVE_LIBWOLFSSL 1
16994 + _ACEOF
16995 +
16996 +  LIBS="-lwolfssl $LIBS"
16997 +
16998 + fi
16999 +
17000 + fi
17001 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17002 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
17003 + fi
17004 +
17005 + fi
17006 +
17007 +
17008 +
17009 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer" >&5
17010 + $as_echo_n "checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer... " >&6; }
17011 +    if test "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = "yes"; then :
17012 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17013 + $as_echo "found" >&6; }
17014 + else
17015 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - wolfSSL support disabled" >&5
17016 + $as_echo "no - wolfSSL support disabled" >&6; }
17017 + fi
17018 +
17019 +  fi
17020 + fi
17021 +
17022 +
17023  
17024   # Disable -Wformat-truncation
17025  
# Line 17706 | Line 17747 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
17747   # report actual input values of CONFIG_FILES etc. instead of their
17748   # values after options handling.
17749   ac_log="
17750 < This file was extended by ircd-hybrid $as_me 8.2.26, which was
17750 > This file was extended by ircd-hybrid $as_me 8.2.27, which was
17751   generated by GNU Autoconf 2.69.  Invocation command line was
17752  
17753    CONFIG_FILES    = $CONFIG_FILES
# Line 17772 | Line 17813 | _ACEOF
17813   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17814   ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17815   ac_cs_version="\\
17816 < ircd-hybrid config.status 8.2.26
17816 > ircd-hybrid config.status 8.2.27
17817   configured by $0, generated by GNU Autoconf 2.69,
17818    with options \\"\$ac_cs_config\\"
17819  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)