File: bootstrap

package info (click to toggle)
rheolef 6.7-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 81,836 kB
  • ctags: 21,411
  • sloc: cpp: 158,404; sh: 14,916; makefile: 6,595; tcl: 3,451; ansic: 2,199; python: 1,800; awk: 729; yacc: 480; sed: 5
file content (69 lines) | stat: -rwxr-xr-x 2,271 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
#!/bin/sh
# -----------------------------------------------------------------------------
# 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