Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. # If you specify --with-openssl-dir=yes, pkg-config is used and found_openssl is set to true.
  2. if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
  3. if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
  4. found_openssl=yes
  5. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6. OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
  7. OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
  8. else
  9. as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
  10. fi
  11.  
  12. if test -n "$OPENSSL_LIBS"; then
  13.  
  14. (Omitted)
  15.  
  16. # If you specify --with-openssl-dir=/usr, $found_openssl is "no".
  17. if test "$found_openssl" = "no"; then
  18.  
  19. if test "$PHP_OPENSSL_DIR" = "yes"; then
  20. PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
  21. fi
  22.  
  23. # If you specify --with-openssl-dir=/usr, $PHP_OPENSSL_DIR is "/usr".
  24. # If you specify --with-libdir=lib64, $PHP_LIBDIR is "lib64" and its default values is "lib".
  25. for i in $PHP_OPENSSL_DIR; do
  26. if test -r $i/include/openssl/evp.h; then
  27. OPENSSL_INCDIR=$i/include
  28. fi
  29. if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
  30. OPENSSL_LIBDIR=$i/$PHP_LIBDIR
  31. fi
  32. test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
  33. done
  34.  
  35. if test -z "$OPENSSL_INCDIR"; then
  36. as_fn_error $? "Cannot find OpenSSL's <evp.h>" "$LINENO" 5
  37. fi
  38.  
  39. if test -z "$OPENSSL_LIBDIR"; then
  40. as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5
  41. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement