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 3542 by michael, Thu May 15 16:42:15 2014 UTC vs.
Revision 4363 by michael, Sat Aug 2 22:23:09 2014 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 3385 2014-04-25 13:52:54Z michael .
2 > # From configure.ac Id: configure.ac 4359 2014-08-02 20:37:47Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4 < # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.0beta2.
4 > # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.0rc1.
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.0beta2'
597 < PACKAGE_STRING='ircd-hybrid 8.2.0beta2'
596 > PACKAGE_VERSION='8.2.0rc1'
597 > PACKAGE_STRING='ircd-hybrid 8.2.0rc1'
598   PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599   PACKAGE_URL=''
600  
# Line 806 | Line 806 | with_ltdl_include
806   with_ltdl_lib
807   enable_ltdl_install
808   enable_libgeoip
809 enable_openssl
809   enable_assert
810   enable_kqueue
811   enable_epoll
812   enable_devpoll
813   enable_poll
815 enable_select
816 enable_halfops
814   enable_debugging
815   enable_warnings
816 + enable_openssl
817   '
818        ac_precious_vars='build_alias
819   host_alias
# Line 1368 | Line 1366 | if test "$ac_init_help" = "long"; then
1366    # Omit some internal or obsolete options to make the list less imposing.
1367    # This message is too long to be a string in the A/UX 3.1 sh.
1368    cat <<_ACEOF
1369 < \`configure' configures ircd-hybrid 8.2.0beta2 to adapt to many kinds of systems.
1369 > \`configure' configures ircd-hybrid 8.2.0rc1 to adapt to many kinds of systems.
1370  
1371   Usage: $0 [OPTION]... [VAR=VALUE]...
1372  
# Line 1438 | Line 1436 | fi
1436  
1437   if test -n "$ac_init_help"; then
1438    case $ac_init_help in
1439 <     short | recursive ) echo "Configuration of ircd-hybrid 8.2.0beta2:";;
1439 >     short | recursive ) echo "Configuration of ircd-hybrid 8.2.0rc1:";;
1440     esac
1441    cat <<\_ACEOF
1442  
# Line 1462 | Line 1460 | Optional Features:
1460    --disable-libtool-lock  avoid locking (might break parallel builds)
1461    --enable-ltdl-install   install libltdl
1462    --disable-libgeoip      Disable GeoIP support
1465  --enable-openssl=DIR       Enable OpenSSL support (DIR optional).
1466  --disable-openssl            Disable OpenSSL support.
1463    --enable-assert         Enable assert() statements
1464    --enable-kqueue         Force kqueue usage.
1465    --enable-epoll          Force epoll usage.
1466    --enable-devpoll        Force devpoll usage.
1467    --enable-poll           Force poll usage.
1472  --enable-select         Force select usage.
1473  --enable-halfops        Enable halfops support.
1468    --enable-debugging      Enable debugging.
1469    --enable-warnings       Enable compiler warnings.
1470 +  --enable-openssl=DIR       Enable OpenSSL support (DIR optional).
1471 +  --disable-openssl            Disable OpenSSL support.
1472  
1473   Optional Packages:
1474    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
# Line 1568 | Line 1564 | fi
1564   test -n "$ac_init_help" && exit $ac_status
1565   if $ac_init_version; then
1566    cat <<\_ACEOF
1567 < ircd-hybrid configure 8.2.0beta2
1567 > ircd-hybrid configure 8.2.0rc1
1568   generated by GNU Autoconf 2.69
1569  
1570   Copyright (C) 2012 Free Software Foundation, Inc.
# Line 1943 | Line 1939 | $as_echo "$ac_res" >&6; }
1939  
1940   } # ac_fn_c_check_type
1941  
1946 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1947 # ----------------------------------------------------
1948 # Tries to find if the field MEMBER exists in type AGGR, after including
1949 # INCLUDES, setting cache variable VAR accordingly.
1950 ac_fn_c_check_member ()
1951 {
1952  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1954 $as_echo_n "checking for $2.$3... " >&6; }
1955 if eval \${$4+:} false; then :
1956  $as_echo_n "(cached) " >&6
1957 else
1958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h.  */
1960 $5
1961 int
1962 main ()
1963 {
1964 static $2 ac_aggr;
1965 if (ac_aggr.$3)
1966 return 0;
1967  ;
1968  return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972  eval "$4=yes"
1973 else
1974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 $5
1977 int
1978 main ()
1979 {
1980 static $2 ac_aggr;
1981 if (sizeof ac_aggr.$3)
1982 return 0;
1983  ;
1984  return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988  eval "$4=yes"
1989 else
1990  eval "$4=no"
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$4
1997               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_c_check_member
2002
1942   # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1943   # -------------------------------------------------------
1944   # Tests whether HEADER exists, giving a warning if it cannot be compiled using
# Line 2094 | Line 2033 | cat >config.log <<_ACEOF
2033   This file contains any messages produced by compilers while
2034   running configure, to aid debugging if configure makes a mistake.
2035  
2036 < It was created by ircd-hybrid $as_me 8.2.0beta2, which was
2036 > It was created by ircd-hybrid $as_me 8.2.0rc1, which was
2037   generated by GNU Autoconf 2.69.  Invocation command line was
2038  
2039    $ $0 $@
# Line 2968 | Line 2907 | fi
2907  
2908   # Define the identity of the package.
2909   PACKAGE='ircd-hybrid'
2910 < VERSION='8.2.0beta2'
2910 > VERSION='8.2.0rc1'
2911  
2912  
2913   cat >>confdefs.h <<_ACEOF
# Line 13217 | Line 13156 | $as_echo "#define ENABLE_SSP_CC 1" >>con
13156    fi
13157  
13158  
13159 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts " >&5
13160 < $as_echo_n "checking whether C compiler accepts ... " >&6; }
13161 < if ${ax_cv_check_cflags__+:} false; then :
13159 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
13160 > $as_echo_n "checking whether libssp exists... " >&6; }
13161 > if ${ssp_cv_lib+:} false; then :
13162    $as_echo_n "(cached) " >&6
13163   else
13164 <
13165 <  ax_check_save_flags=$CFLAGS
13166 <  CFLAGS="$CFLAGS  "
13228 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 >  ssp_old_libs="$LIBS"
13165 >     LIBS="$LIBS -lssp"
13166 >     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167   /* end confdefs.h.  */
13168  
13169   int
# Line 13236 | Line 13174 | main ()
13174    return 0;
13175   }
13176   _ACEOF
13177 < if ac_fn_c_try_compile "$LINENO"; then :
13178 <  ax_cv_check_cflags__=yes
13241 < else
13242 <  ax_cv_check_cflags__=no
13243 < fi
13244 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13245 <  CFLAGS=$ax_check_save_flags
13246 < fi
13247 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" >&5
13248 < $as_echo "$ax_cv_check_cflags__" >&6; }
13249 < if test x"$ax_cv_check_cflags__" = xyes; then :
13250 <  :
13177 > if ac_fn_c_try_link "$LINENO"; then :
13178 >  ssp_cv_lib=yes
13179   else
13180 <  :
13180 >  ssp_cv_lib=no
13181   fi
13182 + rm -f core conftest.err conftest.$ac_objext \
13183 +    conftest$ac_exeext conftest.$ac_ext
13184 +     LIBS="$ssp_old_libs"
13185  
13255 if ${CFLAGS+:} false; then :
13256  case " $CFLAGS " in
13257    *"  "*)
13258      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
13259  (: CFLAGS already contains ) 2>&5
13260  ac_status=$?
13261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13262  test $ac_status = 0; }
13263      ;;
13264    *)
13265      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
13266  (: CFLAGS="$CFLAGS ") 2>&5
13267  ac_status=$?
13268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13269  test $ac_status = 0; }
13270      CFLAGS="$CFLAGS "
13271      ;;
13272   esac
13273 else
13274  CFLAGS=""
13186   fi
13187 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
13188 + $as_echo "$ssp_cv_lib" >&6; }
13189 +  if test $ssp_cv_lib = yes; then
13190 +    LIBS="$LIBS -lssp"
13191 +  fi
13192 +
13193 +
13194 +
13195  
13196  
13197  
# Line 13338 | Line 13257 | fi
13257   done
13258  
13259  
13341
13260    ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13261   if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13262  
# Line 13521 | Line 13439 | else
13439    as_fn_error $? "socket library not found" "$LINENO" 5
13440   fi
13441  
13442 +  ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13443 + "
13444 + if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13445 +
13446 + $as_echo "#define IPV6 1" >>confdefs.h
13447 +
13448 + fi
13449 +
13450    ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13451     #include <sys/socket.h>
13452     #include <netdb.h>
# Line 13561 | Line 13487 | _ACEOF
13487  
13488   fi
13489  
13564  ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13565  <sys/socket.h>
13566 "
13567 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13568
13569 cat >>confdefs.h <<_ACEOF
13570 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13571 _ACEOF
13572
13573
13574 fi
13575
13576
13577
13578  ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13579 "
13580 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13581
13582 $as_echo "#define IPV6 1" >>confdefs.h
13583
13584 fi
13585
13490  
13491  
13492   # Checks for typedefs, structures, and compiler characteristics.
# Line 13998 | Line 13902 | fi
13902   fi
13903  
13904  
14001
14002 # Check whether --enable-openssl was given.
14003 if test "${enable_openssl+set}" = set; then :
14004  enableval=$enable_openssl;  cf_enable_openssl=$enableval
14005 else
14006   cf_enable_openssl="auto"
14007 fi
14008
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14010 $as_echo_n "checking for OpenSSL... " >&6; }
14011 if test "$cf_enable_openssl" != "no"; then
14012  cf_openssl_basedir=""
14013  if test "$cf_enable_openssl" != "auto" &&
14014     test "$cf_enable_openssl" != "yes"; then
14015          cf_openssl_basedir="${cf_enable_openssl}"
14016  else
14017        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
14018                /opt /opt/openssl /usr/local/openssl; do
14019      if test -f "${dirs}/include/openssl/opensslv.h"; then
14020        cf_openssl_basedir="${dirs}"
14021        break
14022      fi
14023    done
14024    unset dirs
14025  fi
14026
14027    if test ! -z "$cf_openssl_basedir"; then
14028    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
14029      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
14030      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
14031    else
14032                  cf_openssl_basedir=""
14033    fi
14034  else
14035                            if test -f "/usr/include/openssl/opensslv.h"; then
14036      cf_openssl_basedir="/usr"
14037    fi
14038  fi
14039
14040      if test ! -z "$cf_openssl_basedir"; then
14041    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14042 $as_echo "$cf_openssl_basedir" >&6; }
14043    cf_enable_openssl="yes"
14044  else
14045    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
14046 $as_echo "not found. Please check your path." >&6; }
14047    cf_enable_openssl="no"
14048  fi
14049  unset cf_openssl_basedir
14050 else
14051    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14052 $as_echo "disabled" >&6; }
14053 fi
14054
14055 if test "$cf_enable_openssl" != "no"; then :
14056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
14057 $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
14058  if test "$cross_compiling" = yes; then :
14059  cf_openssl_version_ok=no
14060 else
14061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h.  */
14063
14064
14065    #include <openssl/opensslv.h>
14066    #include <stdlib.h>
14067 int
14068 main ()
14069 {
14070 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
14071  ;
14072  return 0;
14073 }
14074 _ACEOF
14075 if ac_fn_c_try_run "$LINENO"; then :
14076  cf_openssl_version_ok=yes
14077 else
14078  cf_openssl_version_ok=no
14079 fi
14080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14081  conftest.$ac_objext conftest.beam conftest.$ac_ext
14082 fi
14083
14084
14085  if test "$cf_openssl_version_ok" = "yes"; then :
14086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14087 $as_echo "found" >&6; }
14088
14089    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
14090 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
14091 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
14092  $as_echo_n "(cached) " >&6
14093 else
14094  ac_check_lib_save_LIBS=$LIBS
14095 LIBS="-lcrypto  $LIBS"
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h.  */
14098
14099 /* Override any GCC internal prototype to avoid an error.
14100   Use char because int might match the return type of a GCC
14101   builtin and then its argument prototype would still apply.  */
14102 #ifdef __cplusplus
14103 extern "C"
14104 #endif
14105 char RSA_free ();
14106 int
14107 main ()
14108 {
14109 return RSA_free ();
14110  ;
14111  return 0;
14112 }
14113 _ACEOF
14114 if ac_fn_c_try_link "$LINENO"; then :
14115  ac_cv_lib_crypto_RSA_free=yes
14116 else
14117  ac_cv_lib_crypto_RSA_free=no
14118 fi
14119 rm -f core conftest.err conftest.$ac_objext \
14120    conftest$ac_exeext conftest.$ac_ext
14121 LIBS=$ac_check_lib_save_LIBS
14122 fi
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
14124 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
14125 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
14126  cat >>confdefs.h <<_ACEOF
14127 #define HAVE_LIBCRYPTO 1
14128 _ACEOF
14129
14130  LIBS="-lcrypto $LIBS"
14131
14132 fi
14133
14134    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
14135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
14136 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
14137 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
14138  $as_echo_n "(cached) " >&6
14139 else
14140  ac_check_lib_save_LIBS=$LIBS
14141 LIBS="-lssl  $LIBS"
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h.  */
14144
14145 /* Override any GCC internal prototype to avoid an error.
14146   Use char because int might match the return type of a GCC
14147   builtin and then its argument prototype would still apply.  */
14148 #ifdef __cplusplus
14149 extern "C"
14150 #endif
14151 char SSL_connect ();
14152 int
14153 main ()
14154 {
14155 return SSL_connect ();
14156  ;
14157  return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_link "$LINENO"; then :
14161  ac_cv_lib_ssl_SSL_connect=yes
14162 else
14163  ac_cv_lib_ssl_SSL_connect=no
14164 fi
14165 rm -f core conftest.err conftest.$ac_objext \
14166    conftest$ac_exeext conftest.$ac_ext
14167 LIBS=$ac_check_lib_save_LIBS
14168 fi
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
14170 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
14171 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
14172  cat >>confdefs.h <<_ACEOF
14173 #define HAVE_LIBSSL 1
14174 _ACEOF
14175
14176  LIBS="-lssl $LIBS"
14177
14178 fi
14179
14180 fi
14181
14182 else
14183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14184 $as_echo "no - OpenSSL support disabled" >&6; }
14185    cf_enable_openssl="no"
14186 fi
14187 fi
14188
14189 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
14190  ENABLE_SSL_TRUE=
14191  ENABLE_SSL_FALSE='#'
14192 else
14193  ENABLE_SSL_TRUE='#'
14194  ENABLE_SSL_FALSE=
14195 fi
14196
14197
14198
13905   # Check whether --enable-assert was given.
13906   if test "${enable_assert+set}" = set; then :
13907    enableval=$enable_assert; assert=$enableval
# Line 14255 | Line 13961 | $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY
13961  
13962   # Argument processing.
13963  
13964 <    desired_iopoll_mechanism="none"
13965 <    # Check whether --enable-kqueue was given.
13964 >  desired_iopoll_mechanism="none"
13965 >
13966 >  # Check whether --enable-kqueue was given.
13967   if test "${enable_kqueue+set}" = set; then :
13968    enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13969   fi
# Line 14276 | Line 13983 | if test "${enable_poll+set}" = set; then
13983    enableval=$enable_poll; desired_iopoll_mechanism="poll"
13984   fi
13985  
14279  # Check whether --enable-select was given.
14280 if test "${enable_select+set}" = set; then :
14281  enableval=$enable_select; desired_iopoll_mechanism="select"
14282 fi
13986  
13987 <      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13987 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13988   $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13989 +
13990    iopoll_mechanism_none=0
13991  
13992   cat >>confdefs.h <<_ACEOF
13993   #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13994   _ACEOF
13995  
13996 <      iopoll_mechanism_kqueue=1
13996 >
13997 >  iopoll_mechanism_kqueue=1
13998  
13999   cat >>confdefs.h <<_ACEOF
14000   #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
# Line 14343 | Line 14048 | else
14048   fi
14049   rm -f core conftest.err conftest.$ac_objext \
14050      conftest$ac_exeext conftest.$ac_ext
14051 <      iopoll_mechanism_epoll=2
14051 >
14052 >  iopoll_mechanism_epoll=2
14053  
14054   cat >>confdefs.h <<_ACEOF
14055   #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14056   _ACEOF
14057  
14352  if test "$cross_compiling" = yes; then :
14353  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14355 as_fn_error $? "cannot run test program while cross compiling
14356 See \`config.log' for more details" "$LINENO" 5; }
14357 else
14058    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059   /* end confdefs.h.  */
14360
14060   #include <sys/epoll.h>
14362 #include <sys/syscall.h>
14363 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14364 #if !defined(__NR_epoll_create)
14365 #if defined(__ia64__)
14366 #define __NR_epoll_create 1243
14367 #elif defined(__x86_64__)
14368 #define __NR_epoll_create 214
14369 #elif defined(__sparc64__) || defined(__sparc__)
14370 #define __NR_epoll_create 193
14371 #elif defined(__s390__) || defined(__m68k__)
14372 #define __NR_epoll_create 249
14373 #elif defined(__ppc64__) || defined(__ppc__)
14374 #define __NR_epoll_create 236
14375 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14376 #define __NR_epoll_create 224
14377 #elif defined(__alpha__)
14378 #define __NR_epoll_create 407
14379 #elif defined(__sh64__)
14380 #define __NR_epoll_create 282
14381 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14382 #define __NR_epoll_create 254
14383 #else
14384 #error No system call numbers defined for epoll family.
14385 #endif
14386 #endif
14387 _syscall1(int, epoll_create, int, size)
14388 #endif
14389
14061   int
14062   main ()
14063   {
14064 < return epoll_create(256) == -1 ? 1 : 0
14064 > epoll_create(256);
14065    ;
14066    return 0;
14067   }
14068   _ACEOF
14069 < if ac_fn_c_try_run "$LINENO"; then :
14069 > if ac_fn_c_try_link "$LINENO"; then :
14070    is_epoll_mechanism_available="yes"
14071   else
14072    is_epoll_mechanism_available="no"
14073   fi
14074 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14075 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
14405 < fi
14074 > rm -f core conftest.err conftest.$ac_objext \
14075 >    conftest$ac_exeext conftest.$ac_ext
14076  
14077 <      iopoll_mechanism_devpoll=3
14077 >  iopoll_mechanism_devpoll=3
14078  
14079   cat >>confdefs.h <<_ACEOF
14080   #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
# Line 14454 | Line 14124 | rm -f core conftest.err conftest.$ac_obj
14124   $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14125  
14126    fi
14127 <      iopoll_mechanism_poll=4
14127 >
14128 >  iopoll_mechanism_poll=4
14129  
14130   cat >>confdefs.h <<_ACEOF
14131   #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
# Line 14508 | Line 14179 | else
14179   fi
14180   rm -f core conftest.err conftest.$ac_objext \
14181      conftest$ac_exeext conftest.$ac_ext
14511      iopoll_mechanism_select=5
14512
14513 cat >>confdefs.h <<_ACEOF
14514 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14515 _ACEOF
14516
14517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h.  */
14519 /* Define select to an innocuous variant, in case <limits.h> declares select.
14520   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14521 #define select innocuous_select
14522
14523 /* System header to define __stub macros and hopefully few prototypes,
14524    which can conflict with char select (); below.
14525    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14526    <limits.h> exists even on freestanding compilers.  */
14527
14528 #ifdef __STDC__
14529 # include <limits.h>
14530 #else
14531 # include <assert.h>
14532 #endif
14533
14534 #undef select
14535
14536 /* Override any GCC internal prototype to avoid an error.
14537   Use char because int might match the return type of a GCC
14538   builtin and then its argument prototype would still apply.  */
14539 #ifdef __cplusplus
14540 extern "C"
14541 #endif
14542 char select ();
14543 /* The GNU C library defines this for functions which it implements
14544    to always fail with ENOSYS.  Some functions are actually named
14545    something starting with __ and the normal name is an alias.  */
14546 #if defined __stub_select || defined __stub___select
14547 choke me
14548 #endif
14182  
14183 < int
14184 < main ()
14552 < {
14553 < return select ();
14554 <  ;
14555 <  return 0;
14556 < }
14557 < _ACEOF
14558 < if ac_fn_c_try_link "$LINENO"; then :
14559 <  is_select_mechanism_available="yes"
14560 < else
14561 <  is_select_mechanism_available="no"
14562 < fi
14563 < rm -f core conftest.err conftest.$ac_objext \
14564 <    conftest$ac_exeext conftest.$ac_ext
14565 <      optimal_iopoll_mechanism="none"
14566 <  for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
14183 >  optimal_iopoll_mechanism="none"
14184 >  for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important
14185      eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14186      if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14187        optimal_iopoll_mechanism="$mechanism"
14188        break
14189      fi
14190    done
14191 <      if test "$desired_iopoll_mechanism" = "none" ; then
14191 >
14192 >  if test "$desired_iopoll_mechanism" = "none" ; then
14193      if test "$optimal_iopoll_mechanism" = "none" ; then
14194        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14195   $as_echo "none" >&6; }
# Line 14592 | Line 14211 | $as_echo "none" >&6; }
14211        as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14212      fi
14213    fi
14214 <      eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14214 >
14215 >  eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14216  
14217   cat >>confdefs.h <<_ACEOF
14218   #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
# Line 14600 | Line 14220 | _ACEOF
14220  
14221  
14222  
14603  # Check whether --enable-halfops was given.
14604 if test "${enable_halfops+set}" = set; then :
14605  enableval=$enable_halfops; halfops="$enableval"
14606 else
14607  halfops="no"
14608 fi
14609
14610  if test "$halfops" = "yes" ; then
14611
14612 $as_echo "#define HALFOPS 1" >>confdefs.h
14613
14614  fi
14615
14616
14223    # Check whether --enable-debugging was given.
14224   if test "${enable_debugging+set}" = set; then :
14225    enableval=$enable_debugging; debugging="$enableval"
# Line 14633 | Line 14239 | else
14239    warnings="no"
14240   fi
14241  
14242 +
14243    if test "$warnings" = "yes" ; then
14244  
14245  
14246 +
14247 +
14248   for flag in -Wall; do
14249    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 14699 | Line 14308 | done
14308  
14309  
14310  
14311 +
14312 +
14313   for flag in -Wextra; do
14314    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 14762 | Line 14373 | done
14373  
14374  
14375  
14376 +
14377 +
14378   for flag in -Wno-unused; do
14379    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 14825 | Line 14438 | done
14438  
14439  
14440  
14441 +
14442 +
14443   for flag in -Wcast-qual; do
14444    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 14888 | Line 14503 | done
14503  
14504  
14505  
14506 +
14507 +
14508   for flag in -Wcast-align; do
14509    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 14951 | Line 14568 | done
14568  
14569  
14570  
14571 +
14572 +
14573   for flag in -Wbad-function-cast; do
14574    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15014 | Line 14633 | done
14633  
14634  
14635  
14636 +
14637 +
14638 + for flag in -Wlogical-op; do
14639 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14640 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14641 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14642 + if eval \${$as_CACHEVAR+:} false; then :
14643 +  $as_echo_n "(cached) " >&6
14644 + else
14645 +
14646 +  ax_check_save_flags=$CFLAGS
14647 +  CFLAGS="$CFLAGS  $flag"
14648 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 + /* end confdefs.h.  */
14650 +
14651 + int
14652 + main ()
14653 + {
14654 +
14655 +  ;
14656 +  return 0;
14657 + }
14658 + _ACEOF
14659 + if ac_fn_c_try_compile "$LINENO"; then :
14660 +  eval "$as_CACHEVAR=yes"
14661 + else
14662 +  eval "$as_CACHEVAR=no"
14663 + fi
14664 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14665 +  CFLAGS=$ax_check_save_flags
14666 + fi
14667 + eval ac_res=\$$as_CACHEVAR
14668 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14669 + $as_echo "$ac_res" >&6; }
14670 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14671 +  if ${CFLAGS+:} false; then :
14672 +  case " $CFLAGS " in
14673 +    *" $flag "*)
14674 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14675 +  (: CFLAGS already contains $flag) 2>&5
14676 +  ac_status=$?
14677 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14678 +  test $ac_status = 0; }
14679 +      ;;
14680 +    *)
14681 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14682 +  (: CFLAGS="$CFLAGS $flag") 2>&5
14683 +  ac_status=$?
14684 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14685 +  test $ac_status = 0; }
14686 +      CFLAGS="$CFLAGS $flag"
14687 +      ;;
14688 +   esac
14689 + else
14690 +  CFLAGS="$flag"
14691 + fi
14692 +
14693 + else
14694 +  :
14695 + fi
14696 +
14697 + done
14698 +
14699 +
14700 +
14701 +
14702 +
14703   for flag in -Wmissing-declarations; do
14704    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15077 | Line 14763 | done
14763  
14764  
14765  
14766 +
14767 +
14768 + for flag in -Wmissing-include-dirs; do
14769 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14770 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14771 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14772 + if eval \${$as_CACHEVAR+:} false; then :
14773 +  $as_echo_n "(cached) " >&6
14774 + else
14775 +
14776 +  ax_check_save_flags=$CFLAGS
14777 +  CFLAGS="$CFLAGS  $flag"
14778 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779 + /* end confdefs.h.  */
14780 +
14781 + int
14782 + main ()
14783 + {
14784 +
14785 +  ;
14786 +  return 0;
14787 + }
14788 + _ACEOF
14789 + if ac_fn_c_try_compile "$LINENO"; then :
14790 +  eval "$as_CACHEVAR=yes"
14791 + else
14792 +  eval "$as_CACHEVAR=no"
14793 + fi
14794 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14795 +  CFLAGS=$ax_check_save_flags
14796 + fi
14797 + eval ac_res=\$$as_CACHEVAR
14798 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14799 + $as_echo "$ac_res" >&6; }
14800 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14801 +  if ${CFLAGS+:} false; then :
14802 +  case " $CFLAGS " in
14803 +    *" $flag "*)
14804 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14805 +  (: CFLAGS already contains $flag) 2>&5
14806 +  ac_status=$?
14807 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14808 +  test $ac_status = 0; }
14809 +      ;;
14810 +    *)
14811 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14812 +  (: CFLAGS="$CFLAGS $flag") 2>&5
14813 +  ac_status=$?
14814 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14815 +  test $ac_status = 0; }
14816 +      CFLAGS="$CFLAGS $flag"
14817 +      ;;
14818 +   esac
14819 + else
14820 +  CFLAGS="$flag"
14821 + fi
14822 +
14823 + else
14824 +  :
14825 + fi
14826 +
14827 + done
14828 +
14829 +
14830 +
14831 +
14832 +
14833   for flag in -Wmissing-prototypes; do
14834    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15140 | Line 14893 | done
14893  
14894  
14895  
14896 +
14897 +
14898   for flag in -Wnested-externs; do
14899    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15203 | Line 14958 | done
14958  
14959  
14960  
14961 +
14962 +
14963 + for flag in -Wpointer-arith; do
14964 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14965 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14966 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14967 + if eval \${$as_CACHEVAR+:} false; then :
14968 +  $as_echo_n "(cached) " >&6
14969 + else
14970 +
14971 +  ax_check_save_flags=$CFLAGS
14972 +  CFLAGS="$CFLAGS  $flag"
14973 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974 + /* end confdefs.h.  */
14975 +
14976 + int
14977 + main ()
14978 + {
14979 +
14980 +  ;
14981 +  return 0;
14982 + }
14983 + _ACEOF
14984 + if ac_fn_c_try_compile "$LINENO"; then :
14985 +  eval "$as_CACHEVAR=yes"
14986 + else
14987 +  eval "$as_CACHEVAR=no"
14988 + fi
14989 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14990 +  CFLAGS=$ax_check_save_flags
14991 + fi
14992 + eval ac_res=\$$as_CACHEVAR
14993 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14994 + $as_echo "$ac_res" >&6; }
14995 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14996 +  if ${CFLAGS+:} false; then :
14997 +  case " $CFLAGS " in
14998 +    *" $flag "*)
14999 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15000 +  (: CFLAGS already contains $flag) 2>&5
15001 +  ac_status=$?
15002 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15003 +  test $ac_status = 0; }
15004 +      ;;
15005 +    *)
15006 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15007 +  (: CFLAGS="$CFLAGS $flag") 2>&5
15008 +  ac_status=$?
15009 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15010 +  test $ac_status = 0; }
15011 +      CFLAGS="$CFLAGS $flag"
15012 +      ;;
15013 +   esac
15014 + else
15015 +  CFLAGS="$flag"
15016 + fi
15017 +
15018 + else
15019 +  :
15020 + fi
15021 +
15022 + done
15023 +
15024 +
15025 +
15026 +
15027 +
15028   for flag in -Wredundant-decls; do
15029    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15266 | Line 15088 | done
15088  
15089  
15090  
15091 +
15092 +
15093   for flag in -Wshadow; do
15094    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15329 | Line 15153 | done
15153  
15154  
15155  
15156 +
15157 +
15158   for flag in -Wwrite-strings; do
15159    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15392 | Line 15218 | done
15218  
15219  
15220  
15221 +
15222 +
15223   for flag in -Wundef; do
15224    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15456 | Line 15284 | done
15284    fi
15285  
15286  
15287 + # Check whether --enable-openssl was given.
15288 + if test "${enable_openssl+set}" = set; then :
15289 +  enableval=$enable_openssl;  cf_enable_openssl=$enableval
15290 + else
15291 +   cf_enable_openssl="auto"
15292 + fi
15293 +
15294 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
15295 + $as_echo_n "checking for OpenSSL... " >&6; }
15296 + if test "$cf_enable_openssl" != "no"; then
15297 +  cf_openssl_basedir=""
15298 +  if test "$cf_enable_openssl" != "auto" &&
15299 +     test "$cf_enable_openssl" != "yes"; then
15300 +          cf_openssl_basedir="${cf_enable_openssl}"
15301 +  else
15302 +        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
15303 +                /opt /opt/openssl /usr/local/openssl; do
15304 +      if test -f "${dirs}/include/openssl/opensslv.h"; then
15305 +        cf_openssl_basedir="${dirs}"
15306 +        break
15307 +      fi
15308 +    done
15309 +    unset dirs
15310 +  fi
15311 +
15312 +    if test ! -z "$cf_openssl_basedir"; then
15313 +    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
15314 +      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
15315 +      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
15316 +    else
15317 +                  cf_openssl_basedir=""
15318 +    fi
15319 +  else
15320 +                            if test -f "/usr/include/openssl/opensslv.h"; then
15321 +      cf_openssl_basedir="/usr"
15322 +    fi
15323 +  fi
15324 +
15325 +      if test ! -z "$cf_openssl_basedir"; then
15326 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
15327 + $as_echo "$cf_openssl_basedir" >&6; }
15328 +    cf_enable_openssl="yes"
15329 +  else
15330 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
15331 + $as_echo "not found. Please check your path." >&6; }
15332 +    cf_enable_openssl="no"
15333 +  fi
15334 +  unset cf_openssl_basedir
15335 + else
15336 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15337 + $as_echo "disabled" >&6; }
15338 + fi
15339 +
15340 + if test "$cf_enable_openssl" != "no"; then :
15341 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8o or above" >&5
15342 + $as_echo_n "checking for OpenSSL 0.9.8o or above... " >&6; }
15343 +  if test "$cross_compiling" = yes; then :
15344 +  cf_openssl_version_ok=no
15345 + else
15346 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347 + /* end confdefs.h.  */
15348 +
15349 +
15350 +    #include <openssl/opensslv.h>
15351 +    #include <stdlib.h>
15352 + int
15353 + main ()
15354 + {
15355 + exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL));
15356 +  ;
15357 +  return 0;
15358 + }
15359 + _ACEOF
15360 + if ac_fn_c_try_run "$LINENO"; then :
15361 +  cf_openssl_version_ok=yes
15362 + else
15363 +  cf_openssl_version_ok=no
15364 + fi
15365 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15366 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
15367 + fi
15368 +
15369 +
15370 +  if test "$cf_openssl_version_ok" = "yes"; then :
15371 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15372 + $as_echo "found" >&6; }
15373 +
15374 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
15375 + $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
15376 + if ${ac_cv_lib_crypto_RSA_free+:} false; then :
15377 +  $as_echo_n "(cached) " >&6
15378 + else
15379 +  ac_check_lib_save_LIBS=$LIBS
15380 + LIBS="-lcrypto  $LIBS"
15381 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382 + /* end confdefs.h.  */
15383 +
15384 + /* Override any GCC internal prototype to avoid an error.
15385 +   Use char because int might match the return type of a GCC
15386 +   builtin and then its argument prototype would still apply.  */
15387 + #ifdef __cplusplus
15388 + extern "C"
15389 + #endif
15390 + char RSA_free ();
15391 + int
15392 + main ()
15393 + {
15394 + return RSA_free ();
15395 +  ;
15396 +  return 0;
15397 + }
15398 + _ACEOF
15399 + if ac_fn_c_try_link "$LINENO"; then :
15400 +  ac_cv_lib_crypto_RSA_free=yes
15401 + else
15402 +  ac_cv_lib_crypto_RSA_free=no
15403 + fi
15404 + rm -f core conftest.err conftest.$ac_objext \
15405 +    conftest$ac_exeext conftest.$ac_ext
15406 + LIBS=$ac_check_lib_save_LIBS
15407 + fi
15408 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
15409 + $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
15410 + if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
15411 +  cat >>confdefs.h <<_ACEOF
15412 + #define HAVE_LIBCRYPTO 1
15413 + _ACEOF
15414 +
15415 +  LIBS="-lcrypto $LIBS"
15416 +
15417 + fi
15418 +
15419 +    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
15420 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
15421 + $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
15422 + if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
15423 +  $as_echo_n "(cached) " >&6
15424 + else
15425 +  ac_check_lib_save_LIBS=$LIBS
15426 + LIBS="-lssl  $LIBS"
15427 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 + /* end confdefs.h.  */
15429 +
15430 + /* Override any GCC internal prototype to avoid an error.
15431 +   Use char because int might match the return type of a GCC
15432 +   builtin and then its argument prototype would still apply.  */
15433 + #ifdef __cplusplus
15434 + extern "C"
15435 + #endif
15436 + char SSL_connect ();
15437 + int
15438 + main ()
15439 + {
15440 + return SSL_connect ();
15441 +  ;
15442 +  return 0;
15443 + }
15444 + _ACEOF
15445 + if ac_fn_c_try_link "$LINENO"; then :
15446 +  ac_cv_lib_ssl_SSL_connect=yes
15447 + else
15448 +  ac_cv_lib_ssl_SSL_connect=no
15449 + fi
15450 + rm -f core conftest.err conftest.$ac_objext \
15451 +    conftest$ac_exeext conftest.$ac_ext
15452 + LIBS=$ac_check_lib_save_LIBS
15453 + fi
15454 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
15455 + $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
15456 + if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
15457 +  cat >>confdefs.h <<_ACEOF
15458 + #define HAVE_LIBSSL 1
15459 + _ACEOF
15460 +
15461 +  LIBS="-lssl $LIBS"
15462 +
15463 + fi
15464 +
15465 + fi
15466 +
15467 + else
15468 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
15469 + $as_echo "no - OpenSSL support disabled" >&6; }
15470 +    cf_enable_openssl="no"
15471 + fi
15472 + fi
15473 +
15474 + if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
15475 +  ENABLE_SSL_TRUE=
15476 +  ENABLE_SSL_FALSE='#'
15477 + else
15478 +  ENABLE_SSL_TRUE='#'
15479 +  ENABLE_SSL_FALSE=
15480 + fi
15481 +
15482 +
15483 +
15484  
15485    prefix_NONE=
15486    exec_prefix_NONE=
# Line 16109 | Line 16134 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
16134   # report actual input values of CONFIG_FILES etc. instead of their
16135   # values after options handling.
16136   ac_log="
16137 < This file was extended by ircd-hybrid $as_me 8.2.0beta2, which was
16137 > This file was extended by ircd-hybrid $as_me 8.2.0rc1, which was
16138   generated by GNU Autoconf 2.69.  Invocation command line was
16139  
16140    CONFIG_FILES    = $CONFIG_FILES
# Line 16175 | Line 16200 | _ACEOF
16200   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16201   ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16202   ac_cs_version="\\
16203 < ircd-hybrid config.status 8.2.0beta2
16203 > ircd-hybrid config.status 8.2.0rc1
16204   configured by $0, generated by GNU Autoconf 2.69,
16205    with options \\"\$ac_cs_config\\"
16206  

Diff Legend

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