Skip to contentSkip to conversation

configure.ac: allow '--with-convert=' to accept comma-separated values

PATCH Applied Sergei Trofimovich 2 participants 2 messages Oct 12, 2017 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure.ac: allow '--with-convert=' to accept comma-separated values

Before the change configure refused to accept it's defaults explicitly:

    $ ./configure --enable-convert --with-convert=ext2,reiserfs
    ...
    configure: error: unknown tokens for --with-convert: ,

After the change both converters are enabled:

    $ ./configure --enable-convert --with-convert=ext2,reiserfs
    ...
            btrfs-convert:      yes (ext2,reiserfs)
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
index f273bbe9..adceafc3 100644
@@ -148,7 +148,7 @@ AC_SUBST([BTRFSCONVERT_EXT2])
 AC_SUBST([BTRFSCONVERT_REISERFS])
 
 # catch typos
-tmp=$(echo "$with_convert" | sed -e 's/auto//' | sed -e 's/ext2//' | sed -e 's/reiserfs//' | sed -e 's/,\+/,/')
+tmp=$(echo "$with_convert" | sed -e 's/auto//' | sed -e 's/ext2//' | sed -e 's/reiserfs//' | sed -e 's/,\+//')
 if ! test "x$tmp" = "x"; then
 	AC_MSG_ERROR([unknown tokens for --with-convert: $tmp])
 fi
Signature · 1 line
2.14.2
Applied
#1 lore raw
Quoted 5 lines · Sergei Trofimovich

Before the change configure refused to accept it's defaults explicitly:

    $ ./configure --enable-convert --with-convert=ext2,reiserfs
    ...
    configure: error: unknown tokens for --with-convert: ,
Quoted 7 lines

After the change both converters are enabled:

    $ ./configure --enable-convert --with-convert=ext2,reiserfs
    ...
            btrfs-convert:      yes (ext2,reiserfs)

Applied, thanks.