-diff --git a/configure b/configure
-index 713e65e..9879341 100755
--- a/configure
+++ b/configure
@@ -27152,10 +27152,10 @@ fi;
LDFLAGS=`echo $LDFLAGS | tr ' ' '\n' | uniq | grep -v NONE | tr '\n' ' '`
LIBS="$GRLIBS $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
+--- a/libast.m4
++++ b/libast.m4
+@@ -398,10 +398,10 @@ dnl#
+ dnl# LibAST macro for flag post-processing
+ dnl#
+ AC_DEFUN([AST_FLAGS], [
+- CPPFLAGS=`eval eval eval eval eval echo "-I$includedir -I$prefix/include $CPPFLAGS"`
++ CPPFLAGS=`eval eval eval eval eval echo "$CPPFLAGS"`
+ CPPFLAGS=`echo $CPPFLAGS | tr ' ' '\n' | uniq | grep -v NONE | tr '\n' ' '`
+ CFLAGS=${CFLAGS--O}
+- LDFLAGS=`eval eval eval eval eval echo "-L$libdir -L$prefix/lib ${LDFLAGS--O}"`
++ LDFLAGS=`eval eval eval eval eval echo "${LDFLAGS--O}"`
+ LDFLAGS=`echo $LDFLAGS | tr ' ' '\n' | uniq | grep -v NONE | tr '\n' ' '`
+ LIBS="$GRLIBS $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
+ ])
-diff -urN libast-0.7.orig/configure libast-0.7/configure
---- libast-0.7.orig/configure 2007-10-09 19:54:01.000000000 +0200
-+++ libast-0.7/configure 2007-10-09 19:57:29.000000000 +0200
-@@ -23906,7 +23906,7 @@
+--- a/configure
++++ b/configure
+@@ -23906,7 +23906,7 @@ else
mkdir conftest.d
if test "$cross_compiling" = yes; then
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
-
+--- a/libast.m4
++++ b/libast.m4
+@@ -573,7 +573,7 @@ int main(void)
+ dps_cv_symlink_open_bug=1
+ fi
+ ],
+- dps_cv_symlink_open_buf=3)
++ dps_cv_symlink_open_bug=3)
+ rm -rf conftest.d
+ ])
+ case "$dps_cv_symlink_open_bug" in