1#! /bin/sh 2# 3# autoconf -- creates workable small configure scripts by cutting down 4# GNU autoconf scripts with the help of special Evangeline 5# m4 macros. 6# 7# $Id: autoconf,v 1.6 2003/11/29 01:06:40 [Xp-AvR] Exp $ 8# 9# Copyright (C) 2000, 2001, 2002, 2003 Eggheads Development Team 10# Written by Fabian Knittel 11 12set -e 13if test ! -f configure.in; then 14 echo "$0: error: no \`configure.in' found." 15 exit 1 16fi 17if test ! -f ../EvangelineMod.sh; then 18 echo "$0: \`../EvangelineMod.sh' not found. Not calling from module directory?" 19 exit 1 20fi 21if test "x$1" = "x"; then 22 autoconf 23else 24 $1 25fi 26if test ! -f configure; then 27 echo "$0: error: autoconf did not produce \`configure' script." 28 exit 1 29fi 30echo "Recreating Evangeline/autoconf configure script." 31if (cat configure | awk ' 32 BEGIN { RS = "\f-never-\f"; FS = "\n## SPLIT" } 33 { print "#! /bin/sh" $2 }' > configure_new); then 34 mv configure_new configure 35 chmod 0775 configure 36else 37 echo "Failed to create configure script!" >&2 38 exit 1 39fi 40exit 0 41