~akhil011/ubuntu/wily/monit/crypto_fix

« back to all changes in this revision

Viewing changes to .pc/10_ssl_multiarch.patch/configure.ac

  • Committer: Package Import Robot
  • Author(s): Sergey B Kirpichev
  • Date: 2013-09-05 17:03:07 UTC
  • mfrom: (1.1.19)
  • Revision ID: package-import@ubuntu.com-20130905170307-ae94md1vagm60e41
Tags: 1:5.6-1
ImportedĀ UpstreamĀ versionĀ 5.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
# Note: in  case of beta subversion, use underscore "_" rather then dash "-"
7
7
# since RPM doesn't allow dash in Version
8
8
# Example: 5.0_beta2
9
 
AC_INIT([monit], [5.5.1], [monit-general@nongnu.org])
 
9
AC_INIT([monit], [5.6], [monit-general@nongnu.org])
10
10
AC_CONFIG_AUX_DIR(config)
11
11
AC_CONFIG_MACRO_DIR([m4])
12
12
AM_INIT_AUTOMAKE
120
120
        kvm.h \
121
121
        paths.h \
122
122
        kstat.h \
 
123
        zone.h \
123
124
        sys/protosw.h \
124
125
        limits.h \
125
126
        loadavg.h \
790
791
        )
791
792
        if test -z "$ssllibdir"; then
792
793
            AC_MSG_RESULT([Not found])
793
 
            echo
794
 
            echo "Couldn't find your SSL library files."
795
 
            echo "Use --with-ssl-lib-dir option to fix this problem or disable the"
796
 
            echo "SSL support with --without-ssl"
797
 
            echo
798
 
            exit 1
 
794
            dnl Let the compiler find the library using default paths
 
795
            AC_CHECK_LIB([ssl], [SSL_library_init], [], [AC_MSG_ERROR([Could not find SSL library, please use --with-ssl-lib-dir option or disabled the SSL support using --without-ssl])])
 
796
            AC_CHECK_LIB([crypto],[CRYPTO_new_ex_data], [], [AC_MSG_ERROR([Could not find SSL library, please use --with-ssl-lib-dir option or disabled the SSL support using --without-ssl])])
 
797
        else
 
798
            AC_MSG_RESULT([$ssllibdir])
799
799
        fi
800
 
        AC_MSG_RESULT([$ssllibdir])
801
800
 
802
801
        AC_DEFINE([HAVE_OPENSSL], 1, [Define to 1 if you have openssl.])
803
802
        AC_SUBST(sslincldir)