File: bootstrap

package info (click to toggle)
libtool 1.5.26-4%2Blenny1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 13,316 kB
  • ctags: 648
  • sloc: sh: 11,043; ansic: 4,391; makefile: 813; cpp: 107; fortran: 19
file content (56 lines) | stat: -rwxr-xr-x 1,297 bytes parent folder | download | duplicates (3)
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
#! /bin/sh

# helps bootstrapping libtool, when checked out from CVS
# requires at least GNU autoconf 2.50 and GNU automake1.4-p5

rm -rf `find . -path './{arch}' -prune -o \( -name autom4te.cache -o -name libtool \) -print`

# Delete stale acinclude.m4 from previous libtool versions.
rm -f acinclude.m4

: ${ACLOCAL=aclocal}
: ${AUTOMAKE=automake}
: ${AUTOCONF=autoconf}
: ${AUTOHEADER=autoheader}

# fake the libtool scripts
touch ltmain.sh
touch libtoolize
(cd libltdl && touch ltmain.sh)

for sub in . libltdl cdemo demo depdemo mdemo mdemo2 pdemo tagdemo f77demo; do
  case $sub in
  .)
    top_srcdir=.
    acfiles="$top_srcdir/libtool.m4"
    AUTOMAKE_FLAGS="--gnu --add-missing --copy"
    ;;
  libltdl)
    top_srcdir=..
    acfiles="$top_srcdir/libtool.m4 $top_srcdir/ltdl.m4"
    AUTOMAKE_FLAGS="--gnits --add-missing --copy"
    ;;
  *)
    top_srcdir=..
    acfiles="$top_srcdir/libtool.m4"
    AUTOMAKE_FLAGS="--gnits --add-missing"
    ;;
  esac

  cd $sub
  rm -f acinclude.m4 aclocal.m4 Makefile configure
  for file in $acfiles; do
    cat $file >> ./acinclude.m4
  done

  $ACLOCAL
  test $sub = libltdl && $AUTOHEADER
  test $sub = f77demo && $AUTOHEADER
  eval $AUTOMAKE $AUTOMAKE_FLAGS
  $AUTOCONF
  cd $top_srcdir
done

rm -f ltmain.sh libtoolize libltdl/ltmain.sh

exit 0