Blame bootstrap

Packit 4a0280
#!/bin/sh
Packit 4a0280
# Run this to bootstrap the files
Packit 4a0280
Packit 4a0280
PACKAGE=dbus-c++
Packit 4a0280
Packit 4a0280
srcdir=`dirname $0`
Packit 4a0280
test -z "$srcdir" && srcdir=.
Packit 4a0280
Packit 4a0280
DIE=0
Packit 4a0280
Packit 4a0280
# check if configure.ac is there
Packit 4a0280
(test -f $srcdir/configure.ac) || {
Packit 4a0280
    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
Packit 4a0280
    echo " top-level package directory"
Packit 4a0280
    exit 1
Packit 4a0280
}
Packit 4a0280
Packit 4a0280
# check for autoconf
Packit 4a0280
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
Packit 4a0280
  echo
Packit 4a0280
  echo "**Error**: You must have \`autoconf' installed."
Packit 4a0280
  echo "Download the appropriate package for your distribution,"
Packit 4a0280
  echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
Packit 4a0280
  DIE=1
Packit 4a0280
}
Packit 4a0280
Packit 4a0280
# check for libtool
Packit 4a0280
(libtool --version) < /dev/null > /dev/null 2>&1 || {
Packit 4a0280
  echo
Packit 4a0280
  echo "**Error**: You must have \`libtool' installed."
Packit 4a0280
  echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
Packit 4a0280
  DIE=1
Packit 4a0280
}
Packit 4a0280
Packit 4a0280
# check for automake
Packit 4a0280
(automake --version) < /dev/null > /dev/null 2>&1 || {
Packit 4a0280
  echo
Packit 4a0280
  echo "**Error**: You must have \`automake' installed."
Packit 4a0280
  echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
Packit 4a0280
  DIE=1
Packit 4a0280
  NO_AUTOMAKE=yes
Packit 4a0280
}
Packit 4a0280
Packit 4a0280
Packit 4a0280
# if no automake, don't bother testing for aclocal
Packit 4a0280
test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
Packit 4a0280
  echo
Packit 4a0280
  echo "**Error**: Missing \`aclocal'.  The version of \`automake'"
Packit 4a0280
  echo "installed doesn't appear recent enough."
Packit 4a0280
  echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/"
Packit 4a0280
  DIE=1
Packit 4a0280
}
Packit 4a0280
Packit 4a0280
if test "$DIE" -eq 1; then
Packit 4a0280
  exit 1
Packit 4a0280
fi
Packit 4a0280
Packit 4a0280
echo "Running libtoolize..."
Packit Service 398db1
libtoolize -if --copy
Packit 4a0280
Packit 4a0280
aclocalinclude="$ACLOCAL_FLAGS -I m4"
Packit 4a0280
echo "Running aclocal $aclocalinclude ..."
Packit 4a0280
aclocal $aclocalinclude
Packit 4a0280
 
Packit 4a0280
echo "Running autoheader..."
Packit 4a0280
autoheader
Packit 4a0280
Packit 4a0280
echo "Running automake..."
Packit 4a0280
automake --add-missing --foreign  $am_opt
Packit 4a0280
Packit 4a0280
echo "Running autoconf ..."
Packit 4a0280
autoconf
Packit 4a0280
Packit 4a0280
echo "You could now exec ./configure --help to see available options"
Packit 4a0280