3 # Reconfigure for a release, by updating the Makefile dependencies and
4 # running the autotools.
6 # $Id: reconf,v 1.3 2004/04/23 10:06:17 quozl Exp $
8 # make the existing config.h disappear temporarily
11 mv -f config.h config.h.TMP
15 # rebuild dependencies (makedepend)
16 for makefile
in Makefile.am Makefile.uClinux
18 echo -n "Rebuilding $makefile..."
19 head -`grep -n 'DO NOT ADD BELOW THIS POINT' $makefile | \
20 cut -d: -f1` $makefile > $makefile.new
23 if test "$makefile" = "Makefile.uClinux"
25 gcc
-MM $file -include config.embed.h
27 gcc
-MM $file -DHAVE_CONFIG_H
32 if ! cmp -s $makefile.new
$makefile
34 echo "Changes: <=old >=new"
35 diff $makefile $makefile.new |
grep '^[<>]'
36 mv -f $makefile.new
$makefile
43 # restore the previous config.h
45 if test -f config.h.TMP
47 mv -f config.h.TMP config.h
50 # show us what we do next
53 # reset the configuration
57 # run the build tools sequence
60 automake
-a --copy --verbose