File: bootstrap

package info (click to toggle)
rheolef 7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 82,864 kB
  • sloc: cpp: 157,354; sh: 17,077; makefile: 7,046; python: 1,757; ansic: 690; yacc: 532; awk: 89; tcl: 16; sed: 5
file content (87 lines) | stat: -rwxr-xr-x 3,029 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/sh
#
# This file is part of Rheolef.
#
# Copyright (C) 2000-2018 Pierre Saramito 
#
# Rheolef is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Rheolef is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Rheolef; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
# -------------------------------------------------------------------------
# HOWTO regenerate the configure script ?
# -------------------------------------------------------------------------
# Run this script and next:
#		
#	configure
#	make
#		
# This works well with:
#		
#	autoconf 2.59
#	automake 1.9.5 and 1.9.6
#	libtool  1.5.6
#
#
# if you have "automake-1.9" instead of "automake" unix command
# as on debian linux distribution, run the command:
#
#	AM_SUFFIX="-1.9" ./bootstrap
#
# so we insert de follwing defs:
#
#       verbose="--verbose"
	AM_SUFFIX=""
	AM_OPTS="--gnu $verbose"
	AM_ADD="--add-missing --copy --force-missing"
	AUTOMAKE="automake${AM_SUFFIX} ${AM_OPTS}"
	ACLOCAL="aclocal${AM_SUFFIX}"
	AM_VERSION=`${AUTOMAKE} --version | head -1 | awk '{print $4}'`
	AM_VERSION_MINOR=`echo ${AM_VERSION} | sed -e 's/[0-9]\.//' -e 's/\..*//'`
	echo "automake version: $AM_VERSION"
#
# The configure script and makefiles are automatically
# produced from file configure.ac and Makefile.am 
# by using the following commands:
#
        set -x
	rm -rf autom4te.cache config.status config2.status
	rm -f config/config.guess config/config.sub
	rm -f config/config.h config/acconfig.h config/acconfig.h.in
	rm -f aclocal.m4 config/aclocal.m4
	rm -f libtool config/libtool.m4 config/ltmain.sh config/ltversion.m4 config/ltsugar.m4 config/lt~obsolete.m4 config/ltoptions.m4
        rm -f config/texinfo.tex
	rm -f config/install-sh config/missing config/mkinstalldirs config/depcomp

	# automake supports serial/parrallel tests from version 1.13 => force serial
	rm -f config/am_options.mk
	if test ${AM_VERSION_MINOR} -lt 13; then
	  echo "AUTOMAKE_OPTIONS = " > config/am_options.mk
	else
          echo "AUTOMAKE_OPTIONS = serial-tests" > config/am_options.mk
        fi
	test -f INSTALL || touch INSTALL				&& \
	export SED=sed							&& \
	export EGREP="grep -E"	 					&& \
	libtoolize  --force --copy 					&& \
	${ACLOCAL} -I config						&& \
	autoheader -B config						&& \
	autoconf   -B config 						&& \
	${AUTOMAKE} ${AM_ADD} `find . -name Makefile.am | grep -v libltdl | sed -e 's%\.am$%%' -e 's%\./%%'`
	
	exit_status=$?
	set +x
	if test $exit_status -ne 0; then
	    echo "** bootstrap failed ** "
	    exit $exit_status
	fi
	set -x