File: configure

package info (click to toggle)
mldonkey 3.1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 17,552 kB
  • ctags: 27,774
  • sloc: ml: 149,228; cpp: 11,805; ansic: 8,800; sh: 4,230; asm: 3,870; xml: 1,092; perl: 102; makefile: 95
file content (47 lines) | stat: -rwxr-xr-x 1,200 bytes parent folder | download | duplicates (4)
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
#!/bin/sh

mkdir -p build
rm -f icons/big/*.ml_icon
rm -f icons/small/*.ml_icon
rm -f icons/*.ml_icon
rm -f *.cma *.cmxa *.a
rm -f mlgnut mlnap mlbt mldonkey mlslsk mldonkey_gui*
rm -f build/*.cma build/*.cmxa build/*.a
touch .depend

case "`uname -s`" in
  *FreeBSD*)
    CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
    export CPPFLAGS
    LDFLAGS="${LDFLAGS} -L/usr/local/lib"
    export LDFLAGS
    ;;
  *)
    ;;
esac

if test ! -d config; then
    echo "Missing ./config/ directory. Re-download mldonkey"
else
    cd config \
    && if test ! -f ./configure; then
          if which autoconf261; then
              ac="autoconf261"
          else if which autoconf259; then
              ac="autoconf259"
          else if which autoconf-2.59; then
              ac="autoconf-2.59"
          else if which autoconf-2.5x; then
              ac="autoconf-2.5x"
          else
              ac="autoconf"
          fi; fi; fi; fi
          echo "Running Autoconf ($ac)..."
          $ac
       fi \
    && if test ! -f ../Makefile; then
          echo "Running m4 to generate Makefile..."
          m4 Makefile.in > ../Makefile
       fi \
    && ./configure --enable-option-checking=fatal "$@"
fi