Blame patches/curl-8.7.1.local.patch

ed757c
diff -ru curl-8.7.1.orig/configure curl-8.7.1/configure
ed757c
--- curl-8.7.1.orig/configure	2024-04-08 23:55:17.997659030 +0200
ed757c
+++ curl-8.7.1/configure	2024-04-09 00:03:10.404057041 +0200
ed757c
@@ -15627,6 +15627,16 @@
ed757c
   hardcode_libdir_flag_spec='-L$libdir'
ed757c
   ;;
ed757c
 
ed757c
+midipix*)
ed757c
+  version_type=linux # correct to gnu/linux during the next big refactor
ed757c
+  need_lib_prefix=no
ed757c
+  need_version=no
ed757c
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
ed757c
+  soname_spec='$libname$release$shared_ext$major'
ed757c
+  shlibpath_var=LD_LIBRARY_PATH
ed757c
+  ;;
ed757c
+
ed757c
+
ed757c
 # This must be glibc/ELF.
ed757c
 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
ed757c
   version_type=linux # correct to gnu/linux during the next big refactor
ed757c
@@ -22595,12 +22605,12 @@
ed757c
     if test "$PKGCONFIG" != "no" ; then
ed757c
       ZLIB_LIBS="`$PKGCONFIG --libs-only-l zlib`"
ed757c
       if test -n "$ZLIB_LIBS"; then
ed757c
-        LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
ed757c
+        LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-other zlib`"
ed757c
       else
ed757c
-        ZLIB_LIBS="`$PKGCONFIG --libs zlib`"
ed757c
+        ZLIB_LIBS="`$PKGCONFIG --libs-only-l zlib`"
ed757c
       fi
ed757c
       LIBS="$ZLIB_LIBS $LIBS"
ed757c
-      CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags zlib`"
ed757c
+      CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-other zlib`"
ed757c
       OPT_ZLIB=""
ed757c
       HAVE_LIBZ="1"
ed757c
     fi
ed757c
@@ -23187,8 +23197,8 @@
ed757c
 
ed757c
     if test "$PKGCONFIG" != "no" ; then
ed757c
       LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
ed757c
-      LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
ed757c
-      CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
ed757c
+      LD_ZSTD=`$PKGCONFIG --libs-only-other libzstd`
ed757c
+      CPP_ZSTD=`$PKGCONFIG --cflags-only-other libzstd`
ed757c
       version=`$PKGCONFIG --modversion libzstd`
ed757c
       DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
ed757c
     fi
ed757c
@@ -26242,8 +26252,8 @@
ed757c
 
ed757c
       if test "$PKGCONFIG" != "no" ; then
ed757c
         addlib=`$PKGCONFIG --libs-only-l gnutls`
ed757c
-        addld=`$PKGCONFIG --libs-only-L gnutls`
ed757c
-        addcflags=`$PKGCONFIG --cflags-only-I gnutls`
ed757c
+        addld=`$PKGCONFIG --libs-only-other gnutls`
ed757c
+        addcflags=`$PKGCONFIG --cflags-only-other gnutls`
ed757c
         version=`$PKGCONFIG --modversion gnutls`
ed757c
         gtlslib=`echo $addld | $SED -e 's/^-L//'`
ed757c
       else
ed757c
@@ -27928,8 +27938,8 @@
ed757c
 
ed757c
     if test "$PKGCONFIG" != "no" ; then
ed757c
       LIB_PSL=`$PKGCONFIG --libs-only-l libpsl`
ed757c
-      LD_PSL=`$PKGCONFIG --libs-only-L libpsl`
ed757c
-      CPP_PSL=`$PKGCONFIG --cflags-only-I libpsl`
ed757c
+      LD_PSL=`$PKGCONFIG --libs-only-other libpsl`
ed757c
+      CPP_PSL=`$PKGCONFIG --cflags-only-other libpsl`
ed757c
     else
ed757c
             LIB_PSL="-lpsl"
ed757c
     fi
ed757c
@@ -28560,8 +28570,8 @@
ed757c
 
ed757c
     if test "$PKGCONFIG" != "no" ; then
ed757c
       LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
ed757c
-      LD_SSH=`$PKGCONFIG --libs-only-L libssh`
ed757c
-      CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
ed757c
+      LD_SSH=`$PKGCONFIG --libs-only-other libssh`
ed757c
+      CPP_SSH=`$PKGCONFIG --cflags-only-other libssh`
ed757c
       version=`$PKGCONFIG --modversion libssh`
ed757c
       DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
ed757c
     fi
ed757c
@@ -29395,13 +29405,13 @@
ed757c
       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
ed757c
       export PKG_CONFIG_LIBDIR
ed757c
     fi
ed757c
-         $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
ed757c
+         $PKGCONFIG --libs-only-other libidn2 2>/dev/null`
ed757c
       IDN_CPPFLAGS=`
ed757c
     if test -n "$IDN_PCDIR"; then
ed757c
       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
ed757c
       export PKG_CONFIG_LIBDIR
ed757c
     fi
ed757c
-         $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
ed757c
+         $PKGCONFIG --cflags-only-other libidn2 2>/dev/null`
ed757c
       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
ed757c
     else
ed757c
             IDN_LIBS="-lidn2"
ed757c
@@ -29548,8 +29558,8 @@
ed757c
 
ed757c
     if test "$PKGCONFIG" != "no"; then
ed757c
       IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
ed757c
-      IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
ed757c
-      IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
ed757c
+      IDN_LDFLAGS=`$PKGCONFIG --libs-only-other libidn2 2>/dev/null`
ed757c
+      IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-other libidn2 2>/dev/null`
ed757c
       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
ed757c
     else
ed757c
             IDN_LIBS="-lidn2"
ed757c
Only in curl-8.7.1: configure.orig