From: Miklos Szeredi Date: Mon, 8 Nov 2004 21:11:53 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: fuse_2_0_merge1~7^2 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=db1c3650b287d1766017aec3c370c70aed29261e;p=qemu-gpiodev%2Flibfuse.git *** empty log message *** --- diff --git a/.cvsignore b/.cvsignore index 94d2eb8..add950b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -12,3 +12,4 @@ config.* depcomp libtool INSTALL +fuse.pc diff --git a/ChangeLog b/ChangeLog index 9eda3cf..1ceba55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,13 @@ just add '-DFUSE_DIRFIL_COMPAT' compile flag or fix the source. Do not use the "use_ino" mount flag with filesystems compiled with FUSE_DIRFIL_COMPAT. + + * Add pkg-config support. To compile a FUSE based filesystem you + can do "gcc -Wall `pkg-config --cflags --libs fuse` myfs.c -o myfs" + or similar. Note, that the PKG_CONFIG_PATH environment variable + usually needs to be set to "/usr/local/lib/pkgconfig". + + * fuse.h is now installed in ${prefix}/include/fuse/ 2004-11-02 Miklos Szeredi diff --git a/Makefile.am b/Makefile.am index f319a92..74350e3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,8 +3,13 @@ SUBDIRS = @subdirs@ EXTRA_DIST = \ - fuse.spec \ + fuse.pc.in \ README* \ Filesystems \ BUGS \ doc/how-fuse-works + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = fuse.pc + +$(pkgconfig_DATA): config.status diff --git a/configure.in b/configure.in index cd4a856..de40ea3 100644 --- a/configure.in +++ b/configure.in @@ -121,5 +121,5 @@ AC_CHECK_MEMBERS([struct stat.st_atim]) AC_SUBST(subdirs) -AC_OUTPUT([Makefile kernel/Makefile lib/Makefile util/Makefile example/Makefile include/Makefile include/linux/Makefile patch/Makefile]) - +AC_CONFIG_FILES([fuse.pc Makefile kernel/Makefile lib/Makefile util/Makefile example/Makefile include/Makefile include/linux/Makefile patch/Makefile]) +AC_OUTPUT diff --git a/fuse.pc.in b/fuse.pc.in new file mode 100644 index 0000000..d55970c --- /dev/null +++ b/fuse.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: fuse +Description: Filesystem in Userspace +Version: @VERSION@ +Libs: -L${libdir} -lfuse +Cflags: -I${includedir}/fuse diff --git a/include/Makefile.am b/include/Makefile.am index 9e67b61..feb8cbd 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -2,4 +2,12 @@ SUBDIRS = linux -include_HEADERS = fuse.h +fuseincludedir=$(includedir)/fuse +fuseinclude_HEADERS = fuse.h + +# remove fuse.h from old place to avoid collision with new one +install-data-local: + @if test -f $(includedir)/fuse.h; then \ + echo "Removing old FUSE header from $(includedir)/fuse.h"; \ + rm -f $(includedir)/fuse.h; \ + fi