/[grub]/grub/aclocal.m4
ViewVC logotype

Diff of /grub/aclocal.m4

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

revision 1.36 by okuji, Sun Jan 30 01:09:34 2005 UTC revision 1.37 by okuji, Sun May 8 02:51:51 2005 UTC
# Line 1  Line 1 
1  # generated automatically by aclocal 1.8.5 -*- Autoconf -*-  # generated automatically by aclocal 1.9.4 -*- Autoconf -*-
2    
3  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4  # Free Software Foundation, Inc.  # Free Software Foundation, Inc.
# Line 33  Line 33 
33  # ----------------------------  # ----------------------------
34  # Automake X.Y traces this macro to ensure aclocal.m4 has been  # Automake X.Y traces this macro to ensure aclocal.m4 has been
35  # generated from the m4 files accompanying Automake X.Y.  # generated from the m4 files accompanying Automake X.Y.
36  AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])  AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
37    
38  # AM_SET_CURRENT_AUTOMAKE_VERSION  # AM_SET_CURRENT_AUTOMAKE_VERSION
39  # -------------------------------  # -------------------------------
40  # Call AM_AUTOMAKE_VERSION so it can be traced.  # Call AM_AUTOMAKE_VERSION so it can be traced.
41  # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.  # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
42  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
43           [AM_AUTOMAKE_VERSION([1.8.5])])           [AM_AUTOMAKE_VERSION([1.9.4])])
44    
45  # AM_AUX_DIR_EXPAND  # AM_AUX_DIR_EXPAND
46    
# Line 108  am_aux_dir=`cd $ac_aux_dir && pwd` Line 108  am_aux_dir=`cd $ac_aux_dir && pwd`
108    
109  # AM_CONDITIONAL                                              -*- Autoconf -*-  # AM_CONDITIONAL                                              -*- Autoconf -*-
110    
111  # Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.  # Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
112    
113  # This program is free software; you can redistribute it and/or modify  # This program is free software; you can redistribute it and/or modify
114  # it under the terms of the GNU General Public License as published by  # it under the terms of the GNU General Public License as published by
# Line 145  else Line 145  else
145  fi  fi
146  AC_CONFIG_COMMANDS_PRE(  AC_CONFIG_COMMANDS_PRE(
147  [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then  [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
148    AC_MSG_ERROR([conditional "$1" was never defined.    AC_MSG_ERROR([[conditional "$1" was never defined.
149  Usually this means the macro was only invoked conditionally.])  Usually this means the macro was only invoked conditionally.]])
150  fi])])  fi])])
151    
152  # serial 7                                              -*- Autoconf -*-  # serial 7                                              -*- Autoconf -*-
# Line 319  AC_SUBST([AMDEPBACKSLASH]) Line 319  AC_SUBST([AMDEPBACKSLASH])
319    
320  # Generate code to set up dependency tracking.   -*- Autoconf -*-  # Generate code to set up dependency tracking.   -*- Autoconf -*-
321    
322  # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.  # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
323    #   Free Software Foundation, Inc.
324    
325  # This program is free software; you can redistribute it and/or modify  # This program is free software; you can redistribute it and/or modify
326  # it under the terms of the GNU General Public License as published by  # it under the terms of the GNU General Public License as published by
# Line 355  AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS Line 356  AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS
356    else    else
357      continue      continue
358    fi    fi
359    grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue    # Extract the definition of DEPDIR, am__include, and am__quote
360    # Extract the definition of DEP_FILES from the Makefile without    # from the Makefile without running `make'.
   # running `make'.  
361    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
362    test -z "$DEPDIR" && continue    test -z "$DEPDIR" && continue
363      am__include=`sed -n 's/^am__include = //p' < "$mf"`
364      test -z "am__include" && continue
365      am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
366    # When using ansi2knr, U may be empty or an underscore; expand it    # When using ansi2knr, U may be empty or an underscore; expand it
367    U=`sed -n 's/^U = //p' < "$mf"`    U=`sed -n 's/^U = //p' < "$mf"`
368    test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"    # Find all dependency output files, they are included files with
369    # We invoke sed twice because it is the simplest approach to    # $(DEPDIR) in their names.  We invoke sed twice because it is the
370    # changing $(DEPDIR) to its actual value in the expansion.    # simplest approach to changing $(DEPDIR) to its actual value in the
371    for file in `sed -n '    # expansion.
372      /^DEP_FILES = .*\\\\$/ {    for file in `sed -n "
373        s/^DEP_FILES = //      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
       :loop  
         s/\\\\$//  
         p  
         n  
         /\\\\$/ b loop  
       p  
     }  
     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \  
374         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
375      # Make sure the directory exists.      # Make sure the directory exists.
376      test -f "$dirpart/$file" && continue      test -f "$dirpart/$file" && continue
# Line 406  AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS] Line 401  AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS]
401  # This macro actually does too much some checks are only needed if  # This macro actually does too much some checks are only needed if
402  # your package does certain things.  But this isn't really a big deal.  # your package does certain things.  But this isn't really a big deal.
403    
404  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
405  # Free Software Foundation, Inc.  # Free Software Foundation, Inc.
406    
407  # This program is free software; you can redistribute it and/or modify  # This program is free software; you can redistribute it and/or modify
# Line 482  AM_MISSING_PROG(AUTOCONF, autoconf) Line 477  AM_MISSING_PROG(AUTOCONF, autoconf)
477  AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})  AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
478  AM_MISSING_PROG(AUTOHEADER, autoheader)  AM_MISSING_PROG(AUTOHEADER, autoheader)
479  AM_MISSING_PROG(MAKEINFO, makeinfo)  AM_MISSING_PROG(MAKEINFO, makeinfo)
 AM_MISSING_PROG(AMTAR, tar)  
480  AM_PROG_INSTALL_SH  AM_PROG_INSTALL_SH
481  AM_PROG_INSTALL_STRIP  AM_PROG_INSTALL_STRIP
482  AC_REQUIRE([AM_PROG_MKDIR_P])dnl  AC_REQUIRE([AM_PROG_MKDIR_P])dnl
# Line 491  AC_REQUIRE([AM_PROG_MKDIR_P])dnl Line 485  AC_REQUIRE([AM_PROG_MKDIR_P])dnl
485  AC_REQUIRE([AC_PROG_AWK])dnl  AC_REQUIRE([AC_PROG_AWK])dnl
486  AC_REQUIRE([AC_PROG_MAKE_SET])dnl  AC_REQUIRE([AC_PROG_MAKE_SET])dnl
487  AC_REQUIRE([AM_SET_LEADING_DOT])dnl  AC_REQUIRE([AM_SET_LEADING_DOT])dnl
488    _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
489                  [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
490                                 [_AM_PROG_TAR([v7])])])
491  _AM_IF_OPTION([no-dependencies],,  _AM_IF_OPTION([no-dependencies],,
492  [AC_PROVIDE_IFELSE([AC_PROG_CC],  [AC_PROVIDE_IFELSE([AC_PROG_CC],
493                    [_AM_DEPENDENCIES(CC)],                    [_AM_DEPENDENCIES(CC)],
# Line 774  fi Line 770  fi
770  # this.)  # this.)
771  AC_DEFUN([AM_PROG_MKDIR_P],  AC_DEFUN([AM_PROG_MKDIR_P],
772  [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then  [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
773    # Keeping the `.' argument allows $(mkdir_p) to be used without    # We used to keeping the `.' as first argument, in order to
774    # argument.  Indeed, we sometimes output rules like    # allow $(mkdir_p) to be used without argument.  As in
775    #   $(mkdir_p) $(somedir)    #   $(mkdir_p) $(somedir)
776    # where $(somedir) is conditionally defined.    # where $(somedir) is conditionally defined.  However this is wrong
777    # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more    # for two reasons:
778    # expensive solution, as it forces Make to start a sub-shell.)    #  1. if the package is installed by a user who cannot write `.'
779    mkdir_p='mkdir -p -- .'    #     make install will fail,
780      #  2. the above comment should most certainly read
781      #     $(mkdir_p) $(DESTDIR)$(somedir)
782      #     so it does not work when $(somedir) is undefined and
783      #     $(DESTDIR) is not.
784      #  To support the latter case, we have to write
785      #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
786      #  so the `.' trick is pointless.
787      mkdir_p='mkdir -p --'
788  else  else
789    # On NextStep and OpenStep, the `mkdir' command does not    # On NextStep and OpenStep, the `mkdir' command does not
790    # recognize any option.  It will interpret all options as    # recognize any option.  It will interpret all options as
# Line 946  fi Line 950  fi
950  INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"  INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
951  AC_SUBST([INSTALL_STRIP_PROGRAM])])  AC_SUBST([INSTALL_STRIP_PROGRAM])])
952    
953    # Check how to create a tarball.                            -*- Autoconf -*-
954    
955    # Copyright (C) 2004  Free Software Foundation, Inc.
956    
957    # This program is free software; you can redistribute it and/or modify
958    # it under the terms of the GNU General Public License as published by
959    # the Free Software Foundation; either version 2, or (at your option)
960    # any later version.
961    
962    # This program is distributed in the hope that it will be useful,
963    # but WITHOUT ANY WARRANTY; without even the implied warranty of
964    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
965    # GNU General Public License for more details.
966    
967    # You should have received a copy of the GNU General Public License
968    # along with this program; if not, write to the Free Software
969    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
970    # 02111-1307, USA.
971    
972    # serial 1
973    
974    
975    # _AM_PROG_TAR(FORMAT)
976    # --------------------
977    # Check how to create a tarball in format FORMAT.
978    # FORMAT should be one of `v7', `ustar', or `pax'.
979    #
980    # Substitute a variable $(am__tar) that is a command
981    # writing to stdout a FORMAT-tarball containing the directory
982    # $tardir.
983    #     tardir=directory && $(am__tar) > result.tar
984    #
985    # Substitute a variable $(am__untar) that extract such
986    # a tarball read from stdin.
987    #     $(am__untar) < result.tar
988    AC_DEFUN([_AM_PROG_TAR],
989    [# Always define AMTAR for backward compatibility.
990    AM_MISSING_PROG([AMTAR], [tar])
991    m4_if([$1], [v7],
992         [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
993         [m4_case([$1], [ustar],, [pax],,
994                  [m4_fatal([Unknown tar format])])
995    AC_MSG_CHECKING([how to create a $1 tar archive])
996    # Loop over all known methods to create a tar archive until one works.
997    _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
998    _am_tools=${am_cv_prog_tar_$1-$_am_tools}
999    # Do not fold the above two line into one, because Tru64 sh and
1000    # Solaris sh will not grok spaces in the rhs of `-'.
1001    for _am_tool in $_am_tools
1002    do
1003      case $_am_tool in
1004      gnutar)
1005        for _am_tar in tar gnutar gtar;
1006        do
1007          AM_RUN_LOG([$_am_tar --version]) && break
1008        done
1009        am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1010        am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1011        am__untar="$_am_tar -xf -"
1012        ;;
1013      plaintar)
1014        # Must skip GNU tar: if it does not support --format= it doesn't create
1015        # ustar tarball either.
1016        (tar --version) >/dev/null 2>&1 && continue
1017        am__tar='tar chf - "$$tardir"'
1018        am__tar_='tar chf - "$tardir"'
1019        am__untar='tar xf -'
1020        ;;
1021      pax)
1022        am__tar='pax -L -x $1 -w "$$tardir"'
1023        am__tar_='pax -L -x $1 -w "$tardir"'
1024        am__untar='pax -r'
1025        ;;
1026      cpio)
1027        am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1028        am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1029        am__untar='cpio -i -H $1 -d'
1030        ;;
1031      none)
1032        am__tar=false
1033        am__tar_=false
1034        am__untar=false
1035        ;;
1036      esac
1037    
1038      # If the value was cached, stop now.  We just wanted to have am__tar
1039      # and am__untar set.
1040      test -n "${am_cv_prog_tar_$1}" && break
1041    
1042      # tar/untar a dummy directory, and stop if the command works
1043      rm -rf conftest.dir
1044      mkdir conftest.dir
1045      echo GrepMe > conftest.dir/file
1046      AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1047      rm -rf conftest.dir
1048      if test -s conftest.tar; then
1049        AM_RUN_LOG([$am__untar <conftest.tar])
1050        grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1051      fi
1052    done
1053    rm -rf conftest.dir
1054    
1055    AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1056    AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1057    AC_SUBST([am__tar])
1058    AC_SUBST([am__untar])
1059    ]) # _AM_PROG_TAR
1060    
1061  m4_include([acinclude.m4])  m4_include([acinclude.m4])

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

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