packagekit/autogen.sh

32 lines
874 B
Bash
Raw Normal View History

2007-07-31 09:53:31 -07:00
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
2007-07-31 10:54:48 -07:00
srcdir=`dirname $0`
2007-07-31 09:53:31 -07:00
test -z "$srcdir" && srcdir=.
2007-07-31 10:54:48 -07:00
(test -f $srcdir/configure.ac) || {
echo -n "**Error**: Directory \"\'$srcdir\'\" does not look like the"
2007-07-31 10:54:48 -07:00
echo " top-level package directory"
exit 1
}
2007-07-31 09:53:31 -07:00
if [[ -z "$*" && "x$NOCONFIGURE" == "x" ]] ; then
echo "**Warning**: I am going to run 'configure' with no arguments."
2007-07-31 10:54:48 -07:00
echo "If you wish to pass any to it, please specify them on the"
echo "'$0' command line."
2007-07-31 09:53:31 -07:00
echo
fi
(cd $srcdir && gtkdocize) || exit 1
2007-07-31 10:54:48 -07:00
(cd $srcdir && autoreconf --force --install) || exit 1
2007-07-31 09:53:31 -07:00
2007-07-31 10:54:48 -07:00
conf_flags="--enable-maintainer-mode --enable-gtk-doc"
2007-07-31 09:53:31 -07:00
2007-07-31 10:54:48 -07:00
if test x$NOCONFIGURE = x; then
echo Running $srcdir/configure $conf_flags "$@" ...
$srcdir/configure $conf_flags "$@" \
&& echo Now type \`make\' to compile. || exit 1
else
echo Skipping configure process.
fi