File: bootstrap

package info (click to toggle)
pullseq 1.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 5,376 kB
  • sloc: ansic: 2,583; sh: 148; ruby: 21; makefile: 16
file content (104 lines) | stat: -rwxr-xr-x 2,783 bytes parent folder | download
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/bin/sh
# Run this file to produce a configure script.

DEFAULTARGS="--foreign --force --install --autoreconf=auto"

for arg in $DEFAULTARGS $*
do
  case $arg in
    -h | --help)
      HELP=--help ;;
    -V | --version)
      VERSION=--version ;;
    -v | --verbose)
      VERBOSE=--verbose ;;
    -d | --debug)
      DEBUG=--debug ;;
    -W | --warning | --warnings=yes)
      WARNINGS=--warnings=all ;;
    --no-warning | --warnings=no)
      WARNINGS= ;;
    --warning=*)
      WARNINGS=$arg ;;
    -f | --force | --force=yes | --force-missing)
      FORCE=--force ;;
    --no-force | --force=no)
      FORCE=--no-force ;;
    -i | --install | --install=yes | -a | --add-missing)
      INSTALL=--install ;;
    --no-install | --install=no)
      INSTALL= ;;
    -s | --symlink | --symlink=yes | --no-copy | --copy=no)
      SYMLINK=--symlink ;;
    --no-symlink | --symlink=no | --copy | --copy=yes)
      SYMLINK= ;;
    -m | --make | --make=yes)
      MAKE=--make ;;
    --no-make | --make=no)
      MAKE= ;;
    -n | --dry-run)
      DRYRUN=echo ;;
    --autoreconf=auto)
      AUTORECONF=auto ;;
    --autoreconf | --autoreconf=yes)
      AUTORECONF=yes ;;
    --no-autoreconf | --autoreconf=no)
      AUTORECONF= ;;
    --foreign | --foreign=yes)
      FOREIGN=--foreign ;;
    *)
      echo Ignoring unknown parameter $arg
  esac
done

test -z "$SYMLINK" && COPY=--copy
test -n "$INSTALL" && ADDMISSING=--add-missing

# use autoreconf if possible, just check for version 2+
if test "$AUTORECONF" = auto; then
  case `autoreconf --version 2>/dev/null` in
    *"autoreconf (GNU Autoconf) 2."* )
      echo Usable autoreconf found, running
    ;;
    *)
      AUTORECONF=
    ;;
  esac
fi

if test -n "$AUTORECONF";  then
  $DRYRUN autoreconf $HELP $VERSION $VERBOSE $DEBUG $FORCE $INSTALL $SYMLINK $MAKE $WARNINGS
  exit $?
fi

# add files 'config.guess', 'config.sub', 'ltconfig', 'ltmain.sh'
$DRYRUN libtoolize $HELP $VERSION --automake $COPY $DEBUG $FORCE || exit 1

# generate 'aclocal.m4'
if test -f configure.ac -o configure.in; then
  $DRYRUN aclocal $HELP $VERSION $VERBOSE $FORCE || exit 1
fi

# generate 'config.h.in'
if test -f configure.ac -o configure.in; then
  $DRYRUN autoheader $HELP $VERSION $VERBOSE $DEBUG $FORCE $WARNINGS || exit 1
fi

#  generate Makefile.in's from Makefile.am's
if test -f Makefile.am; then
  $DRYRUN automake $HELP $VERSION $VERBOSE $FOREIGN $ADDMISSING $COPY $FORCE $WARNINGS || exit 1
fi

# generate configure from configure.ac
if test -f configure.ac -o -f configure.in; then
  $DRYRUN autoconf $HELP $VERSION $VERBOSE $DEBUG $FORCE $WARNINGS || exit 1
fi

if test -n "$MAKE"; then
  if test -f ./configure; then
    $DRYRUN ./configure $HELP $VERSION || exit 1
  fi
  if test -f Makefile; then
    $DRYRUN make || exit 1
  fi
fi