OSDN Git Service

configure.in - fix "checking for versioned symbols" error in ./configure
authorJaroslav Kysela <perex@perex.cz>
Fri, 29 Sep 2006 08:44:58 +0000 (10:44 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 29 Sep 2006 08:44:58 +0000 (10:44 +0200)
See: bug#2274

checking for versioned symbols... ./configure: line 19347: test: "1: integer
expression expected
./configure: line 19350: test: "1: integer expression expected

This is caused by my libtool VERSION string:
VERSION="1.5.22 Debian 1.5.22-2"

The test in configure.in can't currently deal with the quotes.

configure.in

index fd76f82..607135f 100644 (file)
@@ -84,7 +84,7 @@ AC_ARG_WITH(versioned,
   versioned="$withval", versioned="yes")
 if test "$versioned" = "yes"; then
   # it seems that GNU ld versions since 2.10 are not broken
-  xres=`grep '^VERSION=' $ac_aux_dir/libtool | cut -d = -f 2`
+  xres=`grep '^VERSION=' $ac_aux_dir/libtool | cut -d = -f 2 | cut -d \" -f 2`
   major=`echo $xres | cut -d . -f 1`
   minor=`echo $xres | cut -d . -f 2`
   pass=0