#!/bin/sh # # autogen.sh glue for hplip # # HPLIP used to have five or so different autotools trees. Upstream # has reduced it to two. Still, this script is capable of cleaning # just about any possible mess of autoconf files. # # BE CAREFUL with trees that are not completely automake-generated, # this script deletes all Makefile.in files it can find. # # Requires: automake 1.9, autoconf 2.57+ # Conflicts: autoconf 2.13 set -e # Refresh GNU autotools toolchain. echo Cleaning autotools files... find . -type d -name autom4te.cache -print0 | xargs -0 rm -rf \; find . -type f \( -name missing -o -name install-sh -o -name mkinstalldirs \ -o -name depcomp -o -name ltmain.sh -o -name configure \ -o -name config.sub -o -name config.guess \ -o -name Makefile.in \) -print0 | xargs -0 rm -f echo Running autoreconf... autoreconf --force --install echo "Running intltoolize" intltoolize --copy --force --automake conf_flags="--enable-maintainer-mode" srcdir=`dirname $0` test -z "$srcdir" && srcdir=. 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 if [ ! -f $srcdir/mkinstalldirs ]; then echo '******* WARNING *******' echo ./mkinstalldirs does not exist. If \'make install\' or \'make dist\' fails echo because of this, copy it from somewhere else AND RUN ./autogen.sh AGAIN. echo The automake and/or gettext package on your system should contain a copy. echo You can determine its location with \'locate gettext/mkinstalldirs\' or echo \'locate mkinstalldirs \|grep automake\'. fi exit 0