diff options
author | Roberto C. Sanchez <roberto@connexer.com> | 2014-03-29 10:53:33 -0400 |
---|---|---|
committer | Roberto C. Sanchez <roberto@connexer.com> | 2014-03-29 10:53:33 -0400 |
commit | 8d3fc864d094eeadc721f8e93436b37a5fab173e (patch) | |
tree | 05e201c67dca55b4ccdf90ad479a25d95e3b1e63 /autogen.sh |
Imported Upstream version 1.5.3
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..a8c480b --- /dev/null +++ b/autogen.sh @@ -0,0 +1,49 @@ +#!/bin/sh +ACLOCAL="$AUTODIR""aclocal" +echo "*** Recreating aclocal.m4" +echo "$ACLOCAL" +if $ACLOCAL --version | egrep "1\.5$" >/dev/null 2>&1; then \ + echo "aclocal 1.5" ; + $ACLOCAL;\ +elif $ACLOCAL --version | egrep "1\.4$" >/dev/null 2>&1; then \ + echo "aclocal 1.4" ;\ + echo "You must have aclocal 1.5 to use aclocal with this \ +source";\ +else \ + echo "aclocal unknown" ;\ + echo "You must have aclocal 1.5 to use aclocal with this \ +source";\ +fi +echo "*** Recreating configure" +AUTOCONF="$AUTODIR""autoconf" +AUTOHEAD="$AUTODIR""autoheader" +if $AUTOCONF --version | egrep "2\.52$" >/dev/null 2>&1; then \ + echo "autoconf 2.52" ; + if egrep "^AM_CONFIG_HEADER" configure.ac >/dev/null 2>&1; then \ + echo "*** Creating config.h template" ;\ + $AUTOHEAD ;\ + fi + $AUTOCONF;\ +elif $AUTOCONF --version | egrep "2\.13$" >/dev/null 2>&1; then \ + echo "autoconf 2.13" ;\ + echo "You must have autoconf 2.52 to use autoconf with this \ +source";\ +else \ + echo "autoconf unknown" ;\ + echo "You must have autoconf 2.52 to use autoconf with this \ +source";\ +fi +echo "*** Recreating the Makefile.in files" +AUTOMAKE="$AUTODIR""automake" +if $AUTOMAKE --version | egrep "1\.5$" >/dev/null 2>&1; then \ + echo "automake 1.5" ; + $AUTOMAKE;\ +elif $AUTOMAKE --version | egrep "1\.4$" >/dev/null 2>&1; then \ + echo "automake 1.4" ;\ + echo "You must have automake 1.5 to use automake with this \ +source";\ +else \ + echo "automake unknown" ;\ + echo "You must have automake 1.5 to use automake with this \ +source";\ +fi |