diff -up gateway-1.4.3/configure~ gateway-1.4.3/configure --- gateway-1.4.3/configure~ 2008-08-06 17:22:43.000000000 +0300 +++ gateway-1.4.3/configure 2009-06-25 21:10:01.000000000 +0300 @@ -10957,28 +10957,8 @@ fi if test "$ssl" = "yes" ; then - if test "x$ssllib" = "x" && test "x$sslinc" = "x"; then - for loc in /usr/lib /usr/lib64 /usr/local/ssl/lib /usr/local/openssl/lib; do - if test -f "$loc/libssl.a" -o -f "$loc/libssl.dylib" ; then - ssllib="$loc" - fi - done - for loc in /usr/include/ssl /usr/include/openssl /usr/local/ssl/include \ - /usr/local/openssl/include; do - if test -d "$loc"; then - sslinc="$loc" - fi - done - fi - { $as_echo "$as_me:$LINENO: result: trying $ssllib $sslinc" >&5 -$as_echo "trying $ssllib $sslinc" >&6; } -fi - - - -if test "x$ssllib" != "x" && test "x$sslinc" != "x"; then - CFLAGS="$CFLAGS -I$sslinc" - LIBS="$LIBS -L$ssllib" + CFLAGS="$CFLAGS ${sslinc:+-I$sslinc}${sslinc:-`pkg-config openssl --cflags`}" + LIBS="$LIBS ${ssllib:+-L$ssllib}${ssllib:-`pkg-config openssl --libs`}" # Extract the first word of "openssl", so it can be a program name with args. set dummy openssl; ac_word=$2