Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add autotools files

  • Loading branch information...
commit be260da1206418a36e47ab666695331784040e07 1 parent b49e094
Anthony Catel authored
Showing with 33 additions and 0 deletions.
  1. +11 −0 Makefile.am
  2. +22 −0 configure.ac
11 Makefile.am
View
@@ -0,0 +1,11 @@
+## Process this file with automake to produce Makefile.in
+
+bin_PROGRAMS = mufs
+
+mufs_SOURCES = main.c log.c hash.c megaupload.c md5.c db.c
+
+
+mufs_LDADD = $(MUFS_LIBS)
+mufs_CFLAGS = $(MUFS_CFLAGS)
+mufs_CPPFLAGS = -D_REENTRANT -DFUSE_USE_VERSION=26 -DLIBDIR=\"$(libdir)\"
+
22 configure.ac
View
@@ -0,0 +1,22 @@
+AC_INIT(mufs-fuse, 1.0)
+AM_INIT_AUTOMAKE
+AM_CONFIG_HEADER(config.h)
+
+AC_PROG_CC
+AM_PROG_CC_C_O
+LIBS=
+
+
+export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
+
+PKG_CHECK_MODULES(MUFS, [fuse >= 2.2 glib-2.0 gthread-2.0 libcurl sqlite3 > 3.3])
+
+CFLAGS="$CFLAGS -Wall -W"
+
+oldlibs="$LIBS"
+LIBS="$LIBS $MUFS_LIBS"
+AC_CHECK_FUNC([fuse_opt_parse], [have_fuse_opt_parse=yes])
+LIBS="$oldlibs"
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
Please sign in to comment.
Something went wrong with that request. Please try again.