root/juggler/branches/2.2/modules/vrjuggler/vrjconfig/autogen.sh

Revision 18650, 1.4 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 : ${GGT_MACRO_PATH=../../../external/macros}
11
12 if [ -n "$DPP_PATH" ]; then
13    ACLOCAL_FLAGS="-I $DPP_PATH/config -I $DPP_PATH/config/pkgs $ACLOCAL_FLAGS"
14 fi
15
16 if [ -n "$MACRO_PATH" ]; then
17    ACLOCAL_FLAGS="-I $MACRO_PATH $ACLOCAL_FLAGS"
18 fi
19
20 if [ -n "$GGT_MACRO_PATH" ]; then
21    ACLOCAL_FLAGS="-I $GGT_MACRO_PATH $ACLOCAL_FLAGS"
22 fi
23
24 : ${AUTOCONF=autoconf}
25 : ${AUTOHEADER=autoheader}
26 : ${ACLOCAL=aclocal}
27
28 ($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
29   echo
30   echo "**Error**: You must have \`autoconf' installed to compile VR Juggler."
31   echo "Download the appropriate package for your distribution,"
32   echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
33   DIE=1
34 }
35
36 ($ACLOCAL --version) < /dev/null > /dev/null 2>&1 || {
37   echo
38   echo "**Error**: Missing \`aclocal'.  The version of \`automake'"
39   echo "installed doesn't appear recent enough."
40   echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.4.tar.gz"
41   echo "(or a newer version if it is available)"
42   DIE=1
43 }
44
45 if test "$DIE" -eq 1; then
46   exit 1
47 fi
48
49 aclocalinclude="$ACLOCAL_FLAGS"
50 echo "Running $ACLOCAL $aclocalinclude ..."
51 $ACLOCAL $aclocalinclude
52 if grep "^AC_CONFIG_HEADER" configure.ac >/dev/null
53 then
54   echo "Running $AUTOHEADER..."
55   $AUTOHEADER
56 fi
57 echo "Running $AUTOCONF ..."
58 $AUTOCONF
Note: See TracBrowser for help on using the browser.