[parted-devel] [PATCH] Fix syntax error and LIBS problem in configure.ac

Michael Brennan brennan.brisad at gmail.com
Tue Jul 10 02:26:38 UTC 2007


Make sure LIBS doesn't contain libraries that will prevent
successful compilations after libreadline has been tested.
A trailing comma generated a syntax error in the configure script.

Signed-off-by: Michael Brennan <brennan.brisad at gmail.com>
---
 configure.ac |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 6d1b93f..6cace01 100644
--- a/configure.ac
+++ b/configure.ac
@@ -325,7 +325,7 @@ package as well (which may be called readline-devel or something similar).
 		exit,
 		$PARTED_LIBS
 	)
- 	LIBS="$OLD_LIBS"
+	LIBS="$OLD_LIBS $PARTED_LIBS"
 
 	# See if libreadline is too old to be used.
 	# The readline function in Debian's libreadline5 5.0-10 fails to
@@ -357,8 +357,9 @@ Consider upgrading to version 5.2 or newer.)
 
 	if test $found_working_libreadline = yes; then
 		PARTED_LIBS="-lreadline $PARTED_LIBS"
-		AC_DEFINE(HAVE_LIBREADLINE, 1, [have readline]),
+		AC_DEFINE(HAVE_LIBREADLINE, 1, [have readline])
 	fi
+	LIBS="$OLD_LIBS"
 fi
 
 AC_SUBST(PARTED_LIBS)
-- 
1.5.0.4




More information about the parted-devel mailing list