build: don't tell "make clean" to remove my '~' backup files
[libguestfs.git] / autogen.sh
index 959fdce..a1d7e27 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh -
+#!/bin/bash -
 # libguestfs
 # Copyright (C) 2009 Red Hat Inc.
 #
 set -e
 set -v
 export AUTOMAKE='automake --foreign'
-autoreconf
-cd daemon
-autoreconf
\ No newline at end of file
+mkdir -p daemon/m4
+aclocal
+libtoolize
+autoreconf -i
+pushd daemon
+autoreconf -i
+popd
+./configure "$@"