3 # Copyright 2008 David Hilvert <dhilvert@gmail.com>
5 # This file is part of libale.
7 # libale is free software: you can redistribute it and/or modify it under the
8 # terms of the GNU Affero General Public License as published by the Free
9 # Software Foundation, either version 3 of the License, or (at your option)
12 # libale is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 # FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
17 # You should have received a copy of the GNU Affero General Public License
18 # along with libale. If not, see <http://www.gnu.org/licenses/>.
21 ### 'bootstrap' generates build files for distribution.
25 # Check for the existence of a configure script.
28 if test -e configure
&& test "x$1" != "x-r"; then
31 echo "1) Run './configure'."
33 echo "3) Run 'make install'."
35 echo "* To regenerate configure, run '$0 -r'"
40 function bootstrap_error
{
45 # Look for files we might need.
48 if ! test -e /usr
/share
/autoconf-archive
/ax_cflags_warn_all.
m4; then
49 echo "Cannot find /usr/share/autoconf-archive/ax_cflags_warn_all.m4. Is autoconf-archive installed?"
53 if ! which autoreconf
&> /dev
/null
; then
54 echo "Cannot find autoreconf. Is autoconf installed?"
58 if ! which automake
&> /dev
/null
; then
59 echo "Cannot find automake."
63 if ! which libtool
&> /dev
/null
; then
64 echo "Cannot find libtool."
69 # Add autoconf archive files.
72 cp /usr
/share
/autoconf-archive
/ax_cflags_warn_all.
m4 m
4/.
73 cp /usr
/share
/autoconf-archive
/ac_c_long_long.
m4 m
4/.
76 # Run autotools' bootstrap script, adding things that automake thinks are
77 # missing, among other things (--install).
83 # Indicate that we're done.
90 # Tell the user what to do next.
95 echo "1) Run './configure'."
97 echo "3) Run 'make install'."