getting augeas running on osx


Check augeas out from mercurial and run this


apply the following patch with patch -p0 <

diff -r 71fd576d8346 acinclude.m4
--- a/acinclude.m4	Fri Jun 13 12:59:59 2008 -0700
+++ b/acinclude.m4	Wed Jun 18 16:07:54 2008 -0600
@@ -37,7 +37,7 @@
 	try_compiler_flags="$try_compiler_flags -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare"
 	try_compiler_flags="$try_compiler_flags $common_flags"
 	if test "$enable_compile_warnings" = "error" ; then
-	    try_compiler_flags="$try_compiler_flags -Werror"
+	    try_compiler_flags="$try_compiler_flags"
 	fi
 	;;
     *)
diff -r 71fd576d8346 src/Makefile.am
--- a/src/Makefile.am	Fri Jun 13 12:59:59 2008 -0700
+++ b/src/Makefile.am	Wed Jun 18 16:07:54 2008 -0600
@@ -20,7 +20,7 @@
 	memory.h memory.c ref.h \
         syntax.c syntax.h parser.y builtin.c lens.c lens.h regexp.c \
 	transform.c get.c put.c list.h
-libaugeas_la_LDFLAGS = -Wl,--version-script=$(srcdir)/augeas_sym.version
+libaugeas_la_LDFLAGS = -Wl
 libaugeas_la_LIBADD = liblexer.la libfa.la $(GNULIB)
 
 augtool_SOURCES = augtool.c

run this

% CFLAGS="-I/opt/local/include -L/opt/local/lib" ./autogen.sh --prefix=/opt/local