osxfuse / sshfs

File system based on the SSH File Transfer Protocol
http://fuse.sourceforge.net
GNU General Public License v2.0
1.14k stars 128 forks source link

configure gives syntax error near unexpected token 'SSHFS,' #79

Open 6502c opened 1 year ago

6502c commented 1 year ago

I try to build sshfs on a MacBook Pro M1 with macOS 12.6.1 (Monterey). After cloning and following the documented steps I end up with this error:

cd sshfs

autoreconf -i
configure.ac:4: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:4: You should use the 'AC_CONFIG_HEADERS' macro instead.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:745: AM_CONFIG_HEADER is expanded from...
configure.ac:4: the top level

./configure
checking build system type... aarch64-apple-darwin21.6.0
checking host system type... aarch64-apple-darwin21.6.0
checking target system type... aarch64-apple-darwin21.6.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for library containing dlsym... none required
checking OpenSSH version... 8.6 >= 4.4, disabling NODELAY workaround
./configure: line 4484: syntax error near unexpected token 'SSHFS,'
./configure: line 4484: 'PKG_CHECK_MODULES(SSHFS, fuse >= 2.3 glib-2.0 gthread-2.0)'
cheeseandcereal commented 12 months ago

Install pkg-config to fix. If you use brew, it's just brew install pkg-config

6502c commented 12 months ago

Install pkg-config to fix. If you use brew, it's just brew install pkg-config

Thanks, @cheeseandcereal, that did it.

c834606877 commented 3 weeks ago

Some guides also metioned to reinstall the pkg-config. Don't forget run again autoreconf -i after install pkg-config.