btrfs-progs: autogen: Don't show success message on fail
authorZhao Lei <zhaolei@cn.fujitsu.com>
Fri, 13 May 2016 03:44:53 +0000 (11:44 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 1 Jun 2016 12:56:56 +0000 (14:56 +0200)
commit4bf9da999e6118f13b57451b07ff9a1e5c780496
tree29e277b783fb1a697e6e06e337b0c09ad5f66fc9
parentbda3d67511a9b58cdd9ff704360b47622cf41dc8
btrfs-progs: autogen: Don't show success message on fail

When autogen.sh failed, the success message is still in output:
 # ./autogen.sh
 ...
 configure.ac:131: error: possibly undefined macro: PKG_CHECK_VAR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

 Now type './configure' and 'make' to compile.
 #

Fixed by check return value of autoconf.

After patch:
 # ./autogen.sh
 ...
 configure.ac:132: error: possibly undefined macro: PKG_CHECK_VAR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
 #

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
autogen.sh