Software Freedom Law Center

root/trunk/apps/pdfdiff/autogen.sh

Revision 63, 1.4 kB (checked in by bkuhn, 8 months ago)

r69@hughes: bkuhn | 2008-04-27 17:59:16 -0400

  • Initial version of software files
  • Property svn:executable set to *
Line 
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
6
7 ORIGDIR=`pwd`
8 cd $srcdir
9 PROJECT=pdfdiff
10 TEST_TYPE=-f
11 FILE=pdfdiff.in
12 ACLOCAL_FLAGS="-I ./ac $ACLOCAL_FLAGS"
13
14 DIE=0
15
16 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
17         echo
18         echo "You must have autoconf installed to compile $PROJECT."
19         echo "Download the appropriate package for your distribution,"
20         echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
21         DIE=1
22 }
23
24 (automake --version) < /dev/null > /dev/null 2>&1 || {
25         echo
26         echo "You must have automake installed to compile $PROJECT."
27         echo "Get ftp://ftp.gnu.org/gnu/automake/automake-1.4.tar.gz"
28         echo "(or a newer version if it is available)"
29         DIE=1
30 }
31
32 if test "$DIE" -eq 1; then
33         exit 1
34 fi
35
36 test $TEST_TYPE $FILE || {
37         echo "You must run this script in the top-level $PROJECT directory"
38         exit 1
39 }
40
41 if test -z "$*"; then
42         echo "I am going to run ./configure with no arguments - if you wish "
43         echo "to pass any to it, please specify them on the $0 command line."
44 fi
45
46 case $CC in
47 *xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
48 esac
49
50 aclocal $ACLOCAL_FLAGS
51
52 # optionally feature autoheader
53 (autoheader --version)  < /dev/null > /dev/null 2>&1 && autoheader
54
55 automake -c -a $am_opt
56 autoconf
57 cd $ORIGDIR
58
59 $srcdir/configure --enable-maintainer-mode "$@" && \
60 echo && \
61 echo "Now type 'make' to compile $PROJECT."
Note: See TracBrowser for help on using the browser.

SFLC Main Page

[frdm] Support SFLC