File: autogen.sh

package info (click to toggle)
itools 1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 404 kB
  • sloc: ansic: 1,465; perl: 388; makefile: 93; sh: 18
file content (31 lines) | stat: -rwxr-xr-x 621 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
#!/bin/sh
#--
# $Id: autogen.sh 1936 2006-10-05 19:33:43Z thamer $
#--

# Handle arguments
if test "$1" = "clean"; then
    echo "Removing auto-generated files..."
    rm -rf configure config.log config.status \
           Makefile config.h
    exit
fi

# Check for missing tools
EXIT=no

(autoconf --version) < /dev/null > /dev/null 2>&1 || {
  echo "Error: You must have \`autoconf' installed."
  EXIT="yes"
}

if test "$EXIT" = "yes"; then
    exit
fi


echo "Running autoconf..."
autoconf configure.in > configure && chmod +x configure
rm -rf autom4te.cache

echo "You can now run \"./configure\" and then \"make\"."