root/juggler/branches/2.2/modules/vapor/autogen.sh

Revision 18650, 1.3 kB (checked in by patrick, 3 years ago)

Catch up with the Autoconf configure script input naming convention circa
2001. I have been wanting to do this for a long, long time, but I was
reluctant to lose the long revision history for the configure.in files.
Fortunately, with Subversion, this isn't an issue.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 # dppgen.sh,v 1.4 2000/12/30 14:34:19 patrick Exp
5
6 DIE=0
7
8 : ${DPP_PATH=../../Doozer++}
9 : ${MACRO_PATH=../../macros}
10
11 if [ -n "$DPP_PATH" ]; then
12    ACLOCAL_FLAGS="-I $DPP_PATH/config -I $DPP_PATH/config/pkgs $ACLOCAL_FLAGS"
13 fi
14
15 if [ -n "$MACRO_PATH" ]; then
16    ACLOCAL_FLAGS="-I $MACRO_PATH $ACLOCAL_FLAGS"
17 fi
18
19 : ${AUTOCONF=autoconf}
20 : ${AUTOHEADER=autoheader}
21 : ${ACLOCAL=aclocal}
22
23 ($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
24   echo
25   echo "**Error**: You must have \`autoconf' installed to compile VR Juggler."
26   echo "Download the appropriate package for your distribution,"
27   echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
28   DIE=1
29 }
30
31 ($ACLOCAL --version) < /dev/null > /dev/null 2>&1 || {
32   echo
33   echo "**Error**: Missing \`aclocal'.  The version of \`automake'"
34   echo "installed doesn't appear recent enough."
35   echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.4.tar.gz"
36   echo "(or a newer version if it is available)"
37   DIE=1
38 }
39
40 if test "$DIE" -eq 1; then
41   exit 1
42 fi
43
44 aclocalinclude="$ACLOCAL_FLAGS"
45 echo "Running $ACLOCAL $aclocalinclude ..."
46 $ACLOCAL $aclocalinclude
47 if grep "^AC_CONFIG_HEADER" configure.ac >/dev/null
48 then
49   echo "Running $AUTOHEADER..."
50   $AUTOHEADER
51 fi
52 echo "Running $AUTOCONF ..."
53 $AUTOCONF
Note: See TracBrowser for help on using the browser.