1--- misc/build/curl-8.7.1/configure	2024-04-21 19:20:02.487331000 +0200
2+++ misc/build/curl-8.7.1/configure	2024-04-21 19:20:26.529989000 +0200
3@@ -26416,7 +26416,7 @@
4     fi
5
6     if test "$PKGTEST" != "yes"; then
7-      if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
8+      if test ! -f "$PREFIX_OPENSSL/inc/external/openssl/ssl.h"; then
9         as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5
10       fi
11     fi
12@@ -26424,7 +26424,7 @@
13             LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
14     if test "$PREFIX_OPENSSL" != "/usr" ; then
15       SSL_LDFLAGS="-L$LIB_OPENSSL"
16-      SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
17+      SSL_CPPFLAGS="-I$PREFIX_OPENSSL/inc/external"
18     fi
19     ;;
20   esac
21@@ -26655,7 +26655,7 @@
22      fi
23      if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then
24        # only set this if pkg-config wasn't used
25-       CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include"
26+       CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/inc/external"
27      fi
28      # Linking previously failed, try extra paths from --with-openssl or
29      # pkg-config.  Use a different function name to avoid reusing the earlier
30