File: autogen.sh

package info (click to toggle)
popt 1.4-1.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,044 kB
  • ctags: 175
  • sloc: sh: 7,385; ansic: 1,220; makefile: 80
file content (25 lines) | stat: -rwxr-xr-x 347 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
#!/bin/sh

srcdir="`dirname $0`"
test -z "$srcdir" && srcdir=.

THEDIR="`pwd`"

cd "$srcdir"
libtoolize --copy --force
aclocal
autoheader
automake
autoconf

if [ "$1" = "--noconfigure" ]; then 
    exit 0;
fi

cd "$THEDIR"

if [ X"$@" = X  -a "X`uname -s`" = "XLinux" ]; then
    $srcdir/configure --prefix=/usr
else
    $srcdir/configure "$@"
fi