root/trunk/wifidog/autogen.sh

Revision 901, 1.2 KB (checked in by mina, 6 years ago)

Insignificant cleanup of CVS artifacts after svn migration:
1. Remove unneeded .cvsignore files since ths svn:ignore property is set to the same list
2. Replaced $Header$ macros with $Id$
3. Modify a couple of documentation files referring to CVS to SVN

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1#!/bin/sh
2# Run this to generate all the initial makefiles, etc.
3#
4# $Id$
5
6if [ -r Makefile ]
7then
8        echo "Doing distclean"
9        make distclean
10fi
11
12if [ "X$1" != "X" ]
13then
14        BUILDROOT=`echo "$1" | sed 's/^[^=]*[=]//'`
15
16        OLDCC=${CC}
17        OLDRANLIB=${RANLIB}
18        OLDAR=${AR}
19
20        CC=${BUILDROOT}/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-gcc
21        RANLIB=${BUILDROOT}/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ranlib
22        AR=${BUILDROOT}/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ar
23
24        POSTCONF=--host=mipsel
25
26        export CC
27        export RANLIB
28        export AR
29else
30        OLDCC=${CC}
31        OLDRANLIB=${RANLIB}
32        OLDAR=${AR}
33        POSTCONF=
34fi
35
36echo "Running mkdir -p config"
37mkdir -p config
38
39if [ "X"`uname` = "XDarwin" ]
40then
41        echo "Running glibtoolize --force"
42        glibtoolize --force
43else
44        echo "Running libtoolize --force"
45        libtoolize --force
46fi
47
48echo "Running aclocal"
49aclocal
50echo "Running autoheader"
51autoheader
52echo "Running automake -a"
53automake -a
54echo "Running autoconf"
55autoconf
56echo "Running ./configure ${POSTCONF} --enable-maintainer-mode  $conf_flags $@"
57./configure ${POSTCONF} --enable-maintainer-mode $conf_flags "$@"
58
59CC=${OLDCC}
60RANLIB=${OLDRANLIB}
61AR=${OLDAR}
62
63export CC
64export RANLIB
65export AR
Note: See TracBrowser for help on using the browser.