Skip to content

./configure producing errors on macOS #17310

Open
@stancl

Description

@stancl

Description

./configure is showing these errors:

./configure: line 711: test: /Users/samuel/Library/Application: binary operator expected
./configure: line 711: test: /Users/samuel/Library/Application: binary operator expected
./configure: line 711: test: too many arguments
./configure: line 711: test: too many arguments

There's likely missing handling for spaces in paths since there's Library/Application Support and Library/Application Scripts, but not just Library/Application. And the word that's getting cut off is producing the too many arguments error I believe.

Surrounding lines in configure:

if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
   test "X$echo_testing_string" = "X$echo_test_string"; then
  :
else
  # The Solaris, AIX, and Digital Unix default echo programs unquote
  # backslashes.  This makes it impossible to quote backslashes using
  #   echo "$something" | sed 's/\\/\\\\/g'
  #
  # So, first we look for a working echo in the user's PATH.

  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for dir in $PATH /usr/ucb; do
    IFS="$lt_save_ifs"
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && # <---------- line 711
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      echo="$dir/echo"
      break
    fi
  done
  IFS="$lt_save_ifs"

FWIW I don't really see any effect this would have on the subsequent make build.

PHP Version

master @ 90121f4

Operating System

M1 macOS 15.1.1

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions