Debian Codegraph @

autogen.sh

raw symbols SCIP
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3 # Taken from the GNOME package http://www.gnome.org
4
5 srcdir=.
6 PKG_NAME="rxtx library"
7
8 DIE=0
9
10 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
11 echo
12 echo "**Error**: You must have "\`autoconf\'" installed to compile rxtx."
13 echo "Download the appropriate package for your distribution,"
14 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
15 DIE=1
16 }
17
18 # avoid libtool on Mac OS X codename Darwin Dmitry
19
20
21 if test `uname` != "Darwin"; then
22 (libtool --version) < /dev/null > /dev/null 2>&1 || {
23 echo
24 echo "**Error**: You must have "\`libtool\'" installed to compile rxtx."
25 echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2.tar.gz"
26 echo "(or a newer version if it is available)"
27 DIE=1
28 }
29 fi
30
31 (automake --version) < /dev/null > /dev/null 2>&1 || {
32 echo
33 echo "**Error**: You must have "\`automake\'" installed to compile rxtx."
34 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
35 echo "(or a newer version if it is available)"
36 DIE=1
37 NO_AUTOMAKE=yes
38 }
39
40
41 # if no automake, don't bother testing for aclocal
42 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
43 echo
44 echo "**Error**: Missing "\`aclocal\'". The version of "\`automake\'
45 echo "installed doesn't appear recent enough."
46 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
47 echo "(or a newer version if it is available)"
48 DIE=1
49 }
50
51 if test "$DIE" -eq 1; then
52 exit 1
53 fi
54
55 #if test -z "$*"; then
56 # echo "**Warning**: I am going to run "\`configure\'" with no arguments."
57 # echo "If you wish to pass any to it, please specify them on the"
58 # echo \`$0\'" command line."
59 # echo
60 #fi
61
62 for j in `find $srcdir -name configure.in -print`
63 do
64 i=`dirname $j`
65 if test -f $i/NO-AUTO-GEN; then
66 echo skipping $i -- flagged as no auto-gen
67 else
68 macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $j`
69 echo processing $i
70 ## debug
71 test -n "$macrodirs" && echo \`aclocal\' will also look in \`$macrodirs\'
72 (cd $i; \
73 aclocalinclude="$ACLOCAL_FLAGS"; \
74 for k in $macrodirs; do \
75 if test -d $k; then aclocalinclude="$aclocalinclude -I $k"; \
76 else echo "**Warning**: No such directory \`$k'. Ignored."; fi; \
77 done; \
78 libtoolize --copy --force; \
79 aclocal $aclocalinclude; \
80 autoheader; automake --add-missing --gnu; autoheader; autoconf)
81 fi
82 done
83
84 #if test x$NOCONFIGURE = x; then
85 #echo running $srcdir/configure --enable-maintainer-mode "$@"
86 #$srcdir/configure --enable-maintainer-mode "$@" \
87 #&& echo Now type \`make\' to compile the $PKG_NAME
88 #else
89 #echo Skipping configure process.
90 #fi