/[m4]/m4/bootstrap
ViewVC logotype

Diff of /m4/bootstrap

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by gary, Tue Aug 28 03:06:14 2001 UTC revision 1.11 by akim, Thu Aug 30 12:13:42 2001 UTC
# Line 6  Line 6 
6  auxdir=`grep '^AC_CONFIG_AUX_DIR' configure.in | sed 's/^.*(\([^)]*\)).*$/\1/'`  auxdir=`grep '^AC_CONFIG_AUX_DIR' configure.in | sed 's/^.*(\([^)]*\)).*$/\1/'`
7    
8  rm -f config.cache  rm -f config.cache
9    rm aclocal.m4
10    
11  # Make a copy of each Automake/Gettext m4 file we need.  # Make a copy of each Automake/Gettext m4 file we need.
12  aclocal_libdir=`aclocal --print-ac-dir`  aclocal_libdir=`aclocal --print-ac-dir`
13  for i in `make -f config/Makefile.am list-standard-macros`  for i in `make -f config/Makefile.am spy SPIED=ACLOCAL_MACROS`
14  do  do
15    cp $aclocal_libdir/$i config ||    cp $aclocal_libdir/$i config ||
16      echo "$0: cannot find $i" >&2      echo "$0: cannot find $i" >&2
17  done  done
18    
19    
20    # aclocal is one of the worst things that ever happened to the GNU
21    # build system...
22    {
23      sed 's/^  //' <<EOF
24      # This file was gererated by $0.
25      # Do not edit by hand, *nor by aclocal*.
26    
27      # Non Autoconf additional macros.
28      m4_include([acinclude.m4])
29    
30      # aclocal macros.
31    EOF
32      for i in `make -f config/Makefile.am spy SPIED=ACLOCAL_MACROS`
33      do
34        echo "m4_include([config/$i])"
35      done
36      echo
37      echo '# GNU M4 macros.'
38      for i in `make -f config/Makefile.am spy SPIED=SPECIFIC_MACROS`
39      do
40        echo "m4_include([config/$i])"
41      done
42      echo
43    } >aclocal.m4
44    
45    
46  # Automake understands nothing to our aclocal and misses all its  # Automake understands nothing to our aclocal and misses all its
47  # AC_SUBST...  Output them, but in a way that makes m4 ignore then.  # AC_SUBST...  We need aclocal to contain the includes though, otherwise
48  (  # autoconf won't see them either :)
49    set -e  # Output them, but in a way that makes m4 ignore then.
50    sed -n '1,/# Help Automake understand includes./p' aclocal.m4  #
51    # Don't have aclocal grow while autoconf reads it: use aclocal.m4t.
52    {
53      echo '# Help Automake understand includes.'
54    echo "ifelse("    echo "ifelse("
55    echo "  ["    echo "  ["
56    echo "    # It doesn't see AC_SUBSTs."    echo "    # It doesn't see AC_SUBSTs."
# Line 28  done Line 59  done
59    autoconf -t AM_CONDITIONAL:'    AM_CONDITIONAL([$1])' | sort -u    autoconf -t AM_CONDITIONAL:'    AM_CONDITIONAL([$1])' | sort -u
60    echo "  ]"    echo "  ]"
61    echo ")"    echo ")"
62  ) >aclocal.m4t  } >aclocal.m4t
63  mv aclocal.m4t aclocal.m4  
64    cat aclocal.m4t >>aclocal.m4
65    
66  # shtoolize -q -I ./$auxdir echo move install mkdir version || exit 1  # shtoolize -q -I ./$auxdir echo move install mkdir version || exit 1
67  # libtoolize -f -c || exit 1  # libtoolize -f -c || exit 1

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26