File: autogen.sh

package info (click to toggle)
osgal-cvs 20060903-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,836 kB
  • ctags: 424
  • sloc: sh: 8,806; cpp: 1,815; makefile: 86
file content (43 lines) | stat: -rwxr-xr-x 700 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
#!/bin/sh

amversion=1.7
#acversion=2.50

function print_usage() {
    echo "Usage:
    autogen.sh [--ac {autoconf version}] [--am {automake version}] [configure arguments]"
    exit
}

configure_args=

while [ $1 ];
do
    case "$1" in
        --ac)
	if [ -z $2 ]; then
	    print_usage
	fi
	acversion=$2
	shift; shift ;;
        --am)
	if [ -z $2 ]; then
	    print_usage
	fi
	amversion=$2
	shift; shift ;;
	*)
	configure_args="$configure_args $1"
	shift;;
    esac
done

aclocal-$amversion
libtoolize --force
automake-$amversion --foreign --add-missing
#autoconf$acversion
autoconf
echo ./configure $configure_args
#./configure $configure_args
#./configure --disable-libtool-lock $configure_args