Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37732605
en ru br
Репозитории ALT
S:5.33.0-alt1
5.1: 5.2.5-alt0.M51.1
4.1: 5.0-alt0.1
4.0: 5.2.5-alt0.M40.1
3.0: 4.1.1-alt1.1
www.altlinux.org/Changes

Группа :: Мониторинг
Пакет: monit

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: monit-4.7-pkgconfig-configure.patch
Скачать


--- monit-4.7.orig/configure.ac	2006-01-12 00:58:37 +0300
+++ monit-4.7/configure.ac	2006-03-18 00:57:49 +0300
@@ -476,7 +476,7 @@
 # Check for ssl includes (take from the stunnel project)
 checksslincldir() { :
     if test -f "$1/openssl/ssl.h"; then
-        sslincldir="$1"
+	libssl_CFLAGS="-I$1"
         return 0
     fi
     return 1
@@ -486,7 +486,7 @@
 checkssllibdir() { :
     if test "(" -f "$1/libcrypto.so" -o -f "$1/libcrypto.a" -o -f "$1/libcrypto.dylib" ")"  -a \
             "(" -f "$1/libssl.so"    -o -f "$1/libssl.a"    -o -f "$1/libssl.dylib" ")" ; then
-        ssllibdir="$1"
+        libssl_LIBS="-L$1 -lssl -lcrypto"
         return 0
     fi
     return 1
@@ -538,7 +538,7 @@
             checksslincldir "$withval"
         ],
         [
-            if test -z "$sslincldir"; then	
+            if test -z "$libssl_CFLAGS"; then	
                 dnl Search default locations of SSL includes
                 for maindir in /usr /usr/local /usr/lib /usr/pkg /var /opt; do
                     for dir in "$maindir/include"\
@@ -552,7 +552,7 @@
         ]
     )
 
-    if test -z "$sslincldir"; then
+    if test -z "$libssl_CFLAGS"; then
         AC_MSG_RESULT([Not found])
         echo
         echo "Couldn't find your SSL header files."
@@ -562,7 +562,7 @@
         exit 1
     fi
 
-    AC_MSG_RESULT([$sslincldir])
+    AC_MSG_RESULT([$libssl_CFLAGS])
 
     AC_MSG_CHECKING([for SSL library directory])
 
@@ -573,7 +573,7 @@
             checkssllibdir "$withval"
         ],
         [
-            if test -z "$ssllibdir"; then	
+            if test -z "$libssl_LIBS"; then	
                 dnl Search default locations of SSL libraries
                 for maindir in /usr /usr/local /usr/pkg /var /opt; do
                     for dir in $maindir $maindir/openssl $maindir/ssl \
@@ -586,17 +586,19 @@
         ]
     )
     
-    if test -z "$ssllibdir"; then
+    if test -z "$libssl_LIBS"; then
         AC_MSG_RESULT([Not found])
+	PKG_CHECK_MODULES([libssl], [openssl], [], [    
         echo
         echo "Couldn't find your SSL library files."
         echo "Use --with-ssl-lib-dir option to fix this problem or disable the"
         echo "SSL support with --without-ssl"
         echo
         exit 1
+	])
     fi
     
-    AC_MSG_RESULT([$ssllibdir])
+    AC_MSG_RESULT([$libssl_LIBS])
 
     AC_DEFINE([HAVE_OPENSSL], 1, [Define to 1 if you have openssl.])
     AC_SUBST(sslincldir)
@@ -604,18 +606,18 @@
 fi
 
 # Add SSL includes and libraries
-if test "$sslincldir" -a "$ssllibdir"
+if test "$libssl_CFLAGS" -a "$libssl_LIBS"
 then
     if test "x$ARCH" = "xDARWIN"; then
      # Darwin already knows about ssldirs
      LIBS="$LIBS -lssl -lcrypto"
     elif test -f "/usr/kerberos/include/krb5.h"; then
      # Redhat 9 compilation fix:
-     CFLAGS="$CFLAGS -I$sslincldir -I/usr/kerberos/include"
-     LIBS="$LIBS -L$ssllibdir -lssl -lcrypto"
+     CFLAGS="$CFLAGS $libssl_CFLAGS -I/usr/kerberos/include"
+     LIBS="$LIBS $libssl_LIBS"
     else
-     CFLAGS="$CFLAGS -I$sslincldir"
-     LIBS="$LIBS -L$ssllibdir -lssl -lcrypto"
+     CFLAGS="$CFLAGS $libssl_CFLAGS"
+     LIBS="$LIBS $libssl_LIBS"
     fi
 fi
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin