Skip to content

Commit

Permalink
configure: replace $# shell syntax
Browse files Browse the repository at this point in the history
With a more portable alternative.

Fixes (seen on macOS):
```
../configure: line 47131: 1: command not found
```
Ref: https://github.com/curl/curl/actions/runs/11846071276/job/33012894013#step:7:635

Follow-up to e244d50 #15550
Closes #15584
  • Loading branch information
vszakats committed Nov 15, 2024
1 parent 9eb5c7c commit cb7558a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -5084,13 +5084,13 @@ dnl
LIBCURL_PC_LDFLAGS_PRIVATE=''
dnl Do not quote $INITIAL_LDFLAGS
set -- $INITIAL_LDFLAGS
while [ "$#" -gt 0 ]; do
while test -n "$1"; do
case "$1" in
-L* | --library-path=* | -F*)
LIBCURL_PC_LDFLAGS_PRIVATE="$LIBCURL_PC_LDFLAGS_PRIVATE $1"
;;
-framework)
if [ "$#" -gt 1 ]; then
if test -n "$2"; then
LIBCURL_PC_LDFLAGS_PRIVATE="$LIBCURL_PC_LDFLAGS_PRIVATE $1 $2"
shift
fi
Expand Down

0 comments on commit cb7558a

Please sign in to comment.