]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl-config: remove X prefix use
authorDaniel Stenberg <daniel@haxx.se>
Mon, 4 Aug 2025 07:04:23 +0000 (09:04 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 4 Aug 2025 08:01:07 +0000 (10:01 +0200)
That shellcheck now annoyingly and uselessly complains about.

Closes #18158

curl-config.in

index 31ea30b24abef1c119911045e82207722a74c6ee..ce23519c33069d34cb930340c670fe49fca67b98 100644 (file)
@@ -141,7 +141,7 @@ while test "$#" -gt 0; do
     ;;
 
   --cflags)
-    if test "X@includedir@" = 'X/usr/include'; then
+    if test "@includedir@" = '/usr/include'; then
       echo '@LIBCURL_PC_CFLAGS@'
     else
       echo "@LIBCURL_PC_CFLAGS@ -I@includedir@"
@@ -149,12 +149,12 @@ while test "$#" -gt 0; do
     ;;
 
   --libs)
-    if test "X@libdir@" != 'X/usr/lib' -a "X@libdir@" != 'X/usr/lib64'; then
+    if test "@libdir@" != '/usr/lib' -a "@libdir@" != '/usr/lib64'; then
       curllibdir="-L@libdir@ "
     else
       curllibdir=''
     fi
-    if test 'X@ENABLE_SHARED@' = 'Xno'; then
+    if test '@ENABLE_SHARED@' = 'no'; then
       echo "${curllibdir}-lcurl @LIBCURL_PC_LIBS_PRIVATE@"
     else
       echo "${curllibdir}-lcurl"
@@ -166,7 +166,7 @@ while test "$#" -gt 0; do
     ;;
 
   --static-libs)
-    if test 'X@ENABLE_STATIC@' != 'Xno'; then
+    if test '@ENABLE_STATIC@' != 'no'; then
       echo "@libdir@/libcurl.@libext@ @LIBCURL_PC_LDFLAGS_PRIVATE@ @LIBCURL_PC_LIBS_PRIVATE@"
     else
       echo 'curl was built with static libraries disabled' >&2