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

Revision 18650, 2.3 kB (checked in by patrick, 2 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
3 # ************** <auto-copyright.pl BEGIN do not edit this line> **************
4 #
5 # Doozer++ is (C) Copyright 2000, 2001 by Iowa State University
6 #
7 # Original Author:
8 #   Patrick Hartling
9 #
10 # This library is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU Library General Public
12 # License as published by the Free Software Foundation; either
13 # version 2 of the License, or (at your option) any later version.
14 #
15 # This library is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 # Library General Public License for more details.
19 #
20 # You should have received a copy of the GNU Library General Public
21 # License along with this library; if not, write to the
22 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 # Boston, MA 02111-1307, USA.
24 #
25 # *************** <auto-copyright.pl END do not edit this line> ***************
26
27 # Run this to generate all the initial makefiles, etc.
28
29 # dppgen.sh,v 1.4 2000/12/30 14:34:19 patrick Exp
30
31 DIE=0
32
33 : ${DPP_PATH=../../Doozer++}
34 : ${MACRO_PATH=../../macros}
35
36 if [ -n "$MACRO_PATH" ]; then
37    ACLOCAL_FLAGS="-I $MACRO_PATH $ACLOCAL_FLAGS"
38 fi
39
40 if [ -n "$DPP_PATH" ]; then
41    ACLOCAL_FLAGS="-I $DPP_PATH/config -I $DPP_PATH/config/pkgs $ACLOCAL_FLAGS"
42 fi
43
44 : ${AUTOCONF=autoconf}
45 : ${AUTOHEADER=autoheader}
46 : ${ACLOCAL=aclocal}
47
48 ($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
49   echo
50   echo "**Error**: You must have \`autoconf' installed to compile VR Juggler."
51   echo "Download the appropriate package for your distribution,"
52   echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
53   DIE=1
54 }
55
56 ($ACLOCAL --version) < /dev/null > /dev/null 2>&1 || {
57   echo
58   echo "**Error**: Missing \`aclocal'.  The version of \`automake'"
59   echo "installed doesn't appear recent enough."
60   echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.4.tar.gz"
61   echo "(or a newer version if it is available)"
62   DIE=1
63 }
64
65 if test "$DIE" -eq 1; then
66   exit 1
67 fi
68
69 aclocalinclude="$ACLOCAL_FLAGS"
70 echo "Running $ACLOCAL $aclocalinclude ..."
71 $ACLOCAL $aclocalinclude
72 if grep "^AC_CONFIG_HEADER" configure.ac >/dev/null
73 then
74   echo "Running $AUTOHEADER..."
75   $AUTOHEADER
76 fi
77 echo "Running $AUTOCONF ..."
78 $AUTOCONF
Note: See TracBrowser for help on using the browser.