1#!/bin/sh 2# Run this to generate all the initial makefiles, etc. 3 4DIE=0 5 6# SETUP_GETTEXT=./setup-gettext 7PACKAGE=fyre 8 9echo "Generating configuration files for $PACKAGE, please wait..." 10 11# ($SETUP_GETTEXT --gettext-tool) < /dev/null > /dev/null 2>&1 || { 12# echo 13# echo "You must have gettext installed to compile $PACKAGE." 14# DIE=1 15# } 16 17(autoconf --version) < /dev/null > /dev/null 2>&1 || { 18 echo 19 echo "You must have autoconf installed to compile $PACKAGE." 20 echo "Download the appropriate package for your distribution," 21 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" 22 DIE=1 23} 24 25# (libtool --version) < /dev/null > /dev/null 2>&1 || { 26# echo 27# echo "You must have libtool installed to compile $PACKAGE." 28# echo "Download the appropriate package for your distribution," 29# echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" 30# DIE=1 31# } 32 33(automake --version) < /dev/null > /dev/null 2>&1 || { 34 echo 35 echo "You must have automake installed to compile $PACKAGE." 36 echo "Download the appropriate package for your distribution," 37 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" 38 DIE=1 39} 40 41[ $DIE -eq 1 ] && exit 1; 42 43# Backup the po/ChangeLog. This should prevent the annoying 44# gettext ChangeLog modifications. 45 46# if test -e po/ChangeLog; then 47# cp -p po/ChangeLog po/ChangeLog.save 48# fi 49 50# echo "Running gettextize, please ignore non-fatal messages...." 51# $SETUP_GETTEXT 52 53# Restore the po/ChangeLog file. 54# if test -e po/ChangeLog.save; then 55# mv po/ChangeLog.save po/ChangeLog 56# fi 57 58# echo " libtoolize --copy --force" 59# libtoolize --copy --force 60echo " aclocal $ACLOCAL_FLAGS" 61aclocal $ACLOCAL_FLAGS 62echo " autoheader" 63autoheader 64echo " automake --add-missing" 65automake --add-missing 66echo " autoconf" 67autoconf 68 69if [ -x config.status -a -z "$*" ]; then 70 ./config.status --recheck 71else 72 if test -z "$*"; then 73 echo "I am going to run ./configure with no arguments - if you wish" 74 echo "to pass any to it, please specify them on the $0 command line." 75 echo "If you do not wish to run ./configure, press Ctrl-C now." 76 trap 'echo "configure aborted" ; exit 0' 1 2 15 77 sleep 1 78 fi 79 ./configure "$@"; 80fi 81