root/branches/0.3/autogen.sh

Revision 795, 1.5 kB (checked in by nicfit, 1 year ago)

Allow local customization in config.sh

  • Property svn:executable set to
Line 
1 #!/bin/sh
2 #
3 #  Copyright (C) 2002  Travis Shirk <travis@pobox.com>
4 #
5 #  This program is free software; you can redistribute it and/or modify
6 #  it under the terms of the GNU General Public License as published by
7 #  the Free Software Foundation; either version 2 of the License, or
8 #  (at your option) any later version.
9 #
10 #  This program is distributed in the hope that it will be useful,
11 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #  GNU General Public License for more details.
14 #
15 #  You should have received a copy of the GNU General Public License
16 #  along with this program; if not, write to the Free Software
17 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
19 if test -e ./config.sh; then
20     # Source local config settings (e.g., PYTHONPATH)
21     . ./config.sh
22 fi
23
24 aclocal && autoconf
25
26 # Run confure to start off with a buildable system unless no-config is
27 # present on the command line.
28 if echo "$*" | grep -v "no-config" > /dev/null 2>&1; then
29    if [ -x config.status -a -z "$*" ]; then
30      ./config.status --recheck
31    else
32      if test -z "$*"; then
33        echo ""
34        echo "I am going to run ./configure with no arguments - if you wish "
35        echo "to pass any to it, please specify them on the $0 command line."
36        echo "If you do not wish to run ./configure, press Ctrl-C now."
37        echo ""
38        trap 'echo "configure aborted" ; exit 0' 1 2 15
39        sleep 1
40      fi
41      ./configure "$@"
42    fi
43 fi
Note: See TracBrowser for help on using the browser.