OSDN Git Service

Fix syntax error and LIBS problem in configure.ac
authorMichael Brennan <brennan.brisad@gmail.com>
Tue, 10 Jul 2007 02:26:38 +0000 (04:26 +0200)
committerJim Meyering <jim@meyering.net>
Tue, 10 Jul 2007 07:02:57 +0000 (09:02 +0200)
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@gmail.com>
configure.ac

index 6d1b93f..d156a56 100644 (file)
@@ -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)