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

Comparing ircd-hybrid/trunk/configure (file contents):
Revision 4361 by michael, Sat Aug 2 20:51:40 2014 UTC vs.
Revision 4415 by michael, Thu Aug 7 14:09:36 2014 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 4360 2014-08-02 20:40:29Z michael .
2 > # From configure.ac Id: configure.ac 4364 2014-08-02 22:23:25Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4   # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
5   #
# 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
# Line 814 | Line 813 | enable_devpoll
813   enable_poll
814   enable_debugging
815   enable_warnings
816 + enable_openssl
817   '
818        ac_precious_vars='build_alias
819   host_alias
# Line 1460 | 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
1463 –  --enable-openssl=DIR       Enable OpenSSL support (DIR optional).
1464 –  --disable-openssl            Disable OpenSSL support.
1463    --enable-assert         Enable assert() statements
1464    --enable-kqueue         Force kqueue usage.
1465    --enable-epoll          Force epoll usage.
# Line 1469 | Line 1467 | Optional Features:
1467    --enable-poll           Force poll usage.
1468    --enable-debugging      Enable debugging.
1469    --enable-warnings       Enable compiler warnings.
1470 +  --enable-openssl=DIR       Enable LibreSSL/OpenSSL support (DIR optional).
1471 +  --disable-openssl            Disable LibreSSL/OpenSSL support.
1472  
1473   Optional Packages:
1474    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
# Line 13439 | 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>
13453 –
13454 – "
13455 – if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13456 –
13457 – cat >>confdefs.h <<_ACEOF
13458 – #define HAVE_STRUCT_SOCKADDR_IN 1
13459 – _ACEOF
13460 –
13461 –
13462 – fi
13463 – ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13464 –   #include <sys/socket.h>
13465 –   #include <netdb.h>
13466 –
13467 – "
13468 – if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13469 –
13470 – cat >>confdefs.h <<_ACEOF
13471 – #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13472 – _ACEOF
13473 –
13474 –
13475 – fi
13476 – ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13477 –   #include <sys/socket.h>
13478 –   #include <netdb.h>
13479 –
13480 – "
13481 – if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13482 –
13483 – cat >>confdefs.h <<_ACEOF
13484 – #define HAVE_STRUCT_ADDRINFO 1
13485 – _ACEOF
13486 –
13487 –
13488 – fi
13489 –
13442  
13443  
13444   # Checks for typedefs, structures, and compiler characteristics.
# Line 13902 | Line 13854 | fi
13854   fi
13855  
13856  
13905 –
13906 – # Check whether --enable-openssl was given.
13907 – if test "${enable_openssl+set}" = set; then :
13908 –  enableval=$enable_openssl;  cf_enable_openssl=$enableval
13909 – else
13910 –   cf_enable_openssl="auto"
13911 – fi
13912 –
13913 – { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13914 – $as_echo_n "checking for OpenSSL... " >&6; }
13915 – if test "$cf_enable_openssl" != "no"; then
13916 –  cf_openssl_basedir=""
13917 –  if test "$cf_enable_openssl" != "auto" &&
13918 –     test "$cf_enable_openssl" != "yes"; then
13919 –          cf_openssl_basedir="${cf_enable_openssl}"
13920 –  else
13921 –        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13922 –                /opt /opt/openssl /usr/local/openssl; do
13923 –      if test -f "${dirs}/include/openssl/opensslv.h"; then
13924 –        cf_openssl_basedir="${dirs}"
13925 –        break
13926 –      fi
13927 –    done
13928 –    unset dirs
13929 –  fi
13930 –
13931 –    if test ! -z "$cf_openssl_basedir"; then
13932 –    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13933 –      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13934 –      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13935 –    else
13936 –                  cf_openssl_basedir=""
13937 –    fi
13938 –  else
13939 –                            if test -f "/usr/include/openssl/opensslv.h"; then
13940 –      cf_openssl_basedir="/usr"
13941 –    fi
13942 –  fi
13943 –
13944 –      if test ! -z "$cf_openssl_basedir"; then
13945 –    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13946 – $as_echo "$cf_openssl_basedir" >&6; }
13947 –    cf_enable_openssl="yes"
13948 –  else
13949 –    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13950 – $as_echo "not found. Please check your path." >&6; }
13951 –    cf_enable_openssl="no"
13952 –  fi
13953 –  unset cf_openssl_basedir
13954 – else
13955 –    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13956 – $as_echo "disabled" >&6; }
13957 – fi
13958 –
13959 – if test "$cf_enable_openssl" != "no"; then :
13960 –  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8o or above" >&5
13961 – $as_echo_n "checking for OpenSSL 0.9.8o or above... " >&6; }
13962 –  if test "$cross_compiling" = yes; then :
13963 –  cf_openssl_version_ok=no
13964 – else
13965 –  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 – /* end confdefs.h.  */
13967 –
13968 –
13969 –    #include <openssl/opensslv.h>
13970 –    #include <stdlib.h>
13971 – int
13972 – main ()
13973 – {
13974 – exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL));
13975 –  ;
13976 –  return 0;
13977 – }
13978 – _ACEOF
13979 – if ac_fn_c_try_run "$LINENO"; then :
13980 –  cf_openssl_version_ok=yes
13981 – else
13982 –  cf_openssl_version_ok=no
13983 – fi
13984 – rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13985 –  conftest.$ac_objext conftest.beam conftest.$ac_ext
13986 – fi
13987 –
13988 –
13989 –  if test "$cf_openssl_version_ok" = "yes"; then :
13990 –  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13991 – $as_echo "found" >&6; }
13992 –
13993 –    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13994 – $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13995 – if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13996 –  $as_echo_n "(cached) " >&6
13997 – else
13998 –  ac_check_lib_save_LIBS=$LIBS
13999 – LIBS="-lcrypto  $LIBS"
14000 – cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 – /* end confdefs.h.  */
14002 –
14003 – /* Override any GCC internal prototype to avoid an error.
14004 –   Use char because int might match the return type of a GCC
14005 –   builtin and then its argument prototype would still apply.  */
14006 – #ifdef __cplusplus
14007 – extern "C"
14008 – #endif
14009 – char RSA_free ();
14010 – int
14011 – main ()
14012 – {
14013 – return RSA_free ();
14014 –  ;
14015 –  return 0;
14016 – }
14017 – _ACEOF
14018 – if ac_fn_c_try_link "$LINENO"; then :
14019 –  ac_cv_lib_crypto_RSA_free=yes
14020 – else
14021 –  ac_cv_lib_crypto_RSA_free=no
14022 – fi
14023 – rm -f core conftest.err conftest.$ac_objext \
14024 –    conftest$ac_exeext conftest.$ac_ext
14025 – LIBS=$ac_check_lib_save_LIBS
14026 – fi
14027 – { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
14028 – $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
14029 – if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
14030 –  cat >>confdefs.h <<_ACEOF
14031 – #define HAVE_LIBCRYPTO 1
14032 – _ACEOF
14033 –
14034 –  LIBS="-lcrypto $LIBS"
14035 –
14036 – fi
14037 –
14038 –    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
14039 –  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
14040 – $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
14041 – if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
14042 –  $as_echo_n "(cached) " >&6
14043 – else
14044 –  ac_check_lib_save_LIBS=$LIBS
14045 – LIBS="-lssl  $LIBS"
14046 – cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 – /* end confdefs.h.  */
14048 –
14049 – /* Override any GCC internal prototype to avoid an error.
14050 –   Use char because int might match the return type of a GCC
14051 –   builtin and then its argument prototype would still apply.  */
14052 – #ifdef __cplusplus
14053 – extern "C"
14054 – #endif
14055 – char SSL_connect ();
14056 – int
14057 – main ()
14058 – {
14059 – return SSL_connect ();
14060 –  ;
14061 –  return 0;
14062 – }
14063 – _ACEOF
14064 – if ac_fn_c_try_link "$LINENO"; then :
14065 –  ac_cv_lib_ssl_SSL_connect=yes
14066 – else
14067 –  ac_cv_lib_ssl_SSL_connect=no
14068 – fi
14069 – rm -f core conftest.err conftest.$ac_objext \
14070 –    conftest$ac_exeext conftest.$ac_ext
14071 – LIBS=$ac_check_lib_save_LIBS
14072 – fi
14073 – { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
14074 – $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
14075 – if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
14076 –  cat >>confdefs.h <<_ACEOF
14077 – #define HAVE_LIBSSL 1
14078 – _ACEOF
14079 –
14080 –  LIBS="-lssl $LIBS"
14081 –
14082 – fi
14083 –
14084 – fi
14085 –
14086 – else
14087 –  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14088 – $as_echo "no - OpenSSL support disabled" >&6; }
14089 –    cf_enable_openssl="no"
14090 – fi
14091 – fi
14092 –
14093 – if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
14094 –  ENABLE_SSL_TRUE=
14095 –  ENABLE_SSL_FALSE='#'
14096 – else
14097 –  ENABLE_SSL_TRUE='#'
14098 –  ENABLE_SSL_FALSE=
14099 – fi
14100 –
14101 –
14102 –
13857   # Check whether --enable-assert was given.
13858   if test "${enable_assert+set}" = set; then :
13859    enableval=$enable_assert; assert=$enableval
# Line 15482 | Line 15236 | done
15236    fi
15237  
15238  
15239 + # Check whether --enable-openssl was given.
15240 + if test "${enable_openssl+set}" = set; then :
15241 +  enableval=$enable_openssl;  cf_enable_openssl=$enableval
15242 + else
15243 +   cf_enable_openssl="auto"
15244 + fi
15245 +
15246 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
15247 + $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
15248 + if test "$cf_enable_openssl" != "no"; then
15249 +  cf_openssl_basedir=""
15250 +  if test "$cf_enable_openssl" != "auto" &&
15251 +     test "$cf_enable_openssl" != "yes"; then
15252 +          cf_openssl_basedir="${cf_enable_openssl}"
15253 +  else
15254 +        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
15255 +                /opt /opt/openssl /usr/local/openssl; do
15256 +      if test -f "${dirs}/include/openssl/opensslv.h"; then
15257 +        cf_openssl_basedir="${dirs}"
15258 +        break
15259 +      fi
15260 +    done
15261 +    unset dirs
15262 +  fi
15263 +
15264 +    if test ! -z "$cf_openssl_basedir"; then
15265 +    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
15266 +      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
15267 +      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
15268 +    else
15269 +                  cf_openssl_basedir=""
15270 +    fi
15271 +  else
15272 +                            if test -f "/usr/include/openssl/opensslv.h"; then
15273 +      cf_openssl_basedir="/usr"
15274 +    fi
15275 +  fi
15276 +
15277 +      if test ! -z "$cf_openssl_basedir"; then
15278 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
15279 + $as_echo "$cf_openssl_basedir" >&6; }
15280 +    cf_enable_openssl="yes"
15281 +  else
15282 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
15283 + $as_echo "not found. Please check your path." >&6; }
15284 +    cf_enable_openssl="no"
15285 +  fi
15286 +  unset cf_openssl_basedir
15287 + else
15288 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15289 + $as_echo "disabled" >&6; }
15290 + fi
15291 +
15292 + if test "$cf_enable_openssl" != "no"; then :
15293 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 0.9.8o and above" >&5
15294 + $as_echo_n "checking for LibreSSL or OpenSSL 0.9.8o and above... " >&6; }
15295 +  if test "$cross_compiling" = yes; then :
15296 +  cf_openssl_version_ok=no
15297 + else
15298 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 + /* end confdefs.h.  */
15300 +
15301 +
15302 +    #include <openssl/opensslv.h>
15303 +    #include <stdlib.h>
15304 + int
15305 + main ()
15306 + {
15307 + exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL));
15308 +  ;
15309 +  return 0;
15310 + }
15311 + _ACEOF
15312 + if ac_fn_c_try_run "$LINENO"; then :
15313 +  cf_openssl_version_ok=yes
15314 + else
15315 +  cf_openssl_version_ok=no
15316 + fi
15317 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15318 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
15319 + fi
15320 +
15321 +
15322 +  if test "$cf_openssl_version_ok" = "yes"; then :
15323 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15324 + $as_echo "found" >&6; }
15325 +
15326 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
15327 + $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
15328 + if ${ac_cv_lib_crypto_RSA_free+:} false; then :
15329 +  $as_echo_n "(cached) " >&6
15330 + else
15331 +  ac_check_lib_save_LIBS=$LIBS
15332 + LIBS="-lcrypto  $LIBS"
15333 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334 + /* end confdefs.h.  */
15335 +
15336 + /* Override any GCC internal prototype to avoid an error.
15337 +   Use char because int might match the return type of a GCC
15338 +   builtin and then its argument prototype would still apply.  */
15339 + #ifdef __cplusplus
15340 + extern "C"
15341 + #endif
15342 + char RSA_free ();
15343 + int
15344 + main ()
15345 + {
15346 + return RSA_free ();
15347 +  ;
15348 +  return 0;
15349 + }
15350 + _ACEOF
15351 + if ac_fn_c_try_link "$LINENO"; then :
15352 +  ac_cv_lib_crypto_RSA_free=yes
15353 + else
15354 +  ac_cv_lib_crypto_RSA_free=no
15355 + fi
15356 + rm -f core conftest.err conftest.$ac_objext \
15357 +    conftest$ac_exeext conftest.$ac_ext
15358 + LIBS=$ac_check_lib_save_LIBS
15359 + fi
15360 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
15361 + $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
15362 + if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
15363 +  cat >>confdefs.h <<_ACEOF
15364 + #define HAVE_LIBCRYPTO 1
15365 + _ACEOF
15366 +
15367 +  LIBS="-lcrypto $LIBS"
15368 +
15369 + fi
15370 +
15371 +    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
15372 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
15373 + $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
15374 + if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
15375 +  $as_echo_n "(cached) " >&6
15376 + else
15377 +  ac_check_lib_save_LIBS=$LIBS
15378 + LIBS="-lssl  $LIBS"
15379 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380 + /* end confdefs.h.  */
15381 +
15382 + /* Override any GCC internal prototype to avoid an error.
15383 +   Use char because int might match the return type of a GCC
15384 +   builtin and then its argument prototype would still apply.  */
15385 + #ifdef __cplusplus
15386 + extern "C"
15387 + #endif
15388 + char SSL_connect ();
15389 + int
15390 + main ()
15391 + {
15392 + return SSL_connect ();
15393 +  ;
15394 +  return 0;
15395 + }
15396 + _ACEOF
15397 + if ac_fn_c_try_link "$LINENO"; then :
15398 +  ac_cv_lib_ssl_SSL_connect=yes
15399 + else
15400 +  ac_cv_lib_ssl_SSL_connect=no
15401 + fi
15402 + rm -f core conftest.err conftest.$ac_objext \
15403 +    conftest$ac_exeext conftest.$ac_ext
15404 + LIBS=$ac_check_lib_save_LIBS
15405 + fi
15406 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
15407 + $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
15408 + if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
15409 +  cat >>confdefs.h <<_ACEOF
15410 + #define HAVE_LIBSSL 1
15411 + _ACEOF
15412 +
15413 +  LIBS="-lssl $LIBS"
15414 +
15415 + fi
15416 +
15417 + fi
15418 +
15419 + else
15420 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
15421 + $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
15422 +    cf_enable_openssl="no"
15423 + fi
15424 + fi
15425 +
15426 + if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
15427 +  ENABLE_SSL_TRUE=
15428 +  ENABLE_SSL_FALSE='#'
15429 + else
15430 +  ENABLE_SSL_TRUE='#'
15431 +  ENABLE_SSL_FALSE=
15432 + fi
15433 +
15434 +
15435 +
15436  
15437    prefix_NONE=
15438    exec_prefix_NONE=

Diff Legend

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