set SELinux enforcing temporary to permissive
[ovirt-node-image.git] / autogen.sh
bloba2b0f89479d93f20c9f8c19f877b9f07e3ef7684
1 #!/bin/sh
2 # Run this to generate configure and Makefile
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
7 THEDIR=`pwd`
9 cd $srcdir
10 die=0
12 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
13 echo
14 echo "You must have autoconf installed."
15 echo "Download the appropriate package for your distribution,"
16 echo "or see http://www.gnu.org/software/autoconf"
17 die=1
20 (libtool --version) < /dev/null > /dev/null 2>&1 || {
21 echo
22 echo "You must have libtool installed."
23 echo "Download the appropriate package for your distribution,"
24 echo "or see http://www.gnu.org/software/libtool"
25 die=1
28 (automake --version) < /dev/null > /dev/null 2>&1 || {
29 echo
30 die=1
31 echo "You must have automake installed."
32 echo "Download the appropriate package for your distribution,"
33 echo "or see http://www.gnu.org/software/automake"
36 test $die = 1 && exit 1
38 test -f ovirt-node-image.spec.in || {
39 echo "You must run this script in the top-level directory"
40 exit 1
43 if test -z "$*"; then
44 echo "I am going to run ./configure with no arguments - if you wish "
45 echo "to pass any to it, please specify them on the $0 command line."
48 aclocal
49 autoheader
50 automake --add-missing
51 autoconf
52 ./configure "$@"
55 if test "x$OBJ_DIR" != x; then
56 mkdir -p "$OBJ_DIR"
57 cd "$OBJ_DIR"