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

Diff of /grub/aclocal.m4

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

revision 1.31 by gord, Mon Oct 15 04:49:49 2001 UTC revision 1.32 by okuji, Sun Oct 19 17:36:29 2003 UTC
# Line 1  Line 1 
1  # aclocal.m4 generated automatically by aclocal 1.5  # generated automatically by aclocal 1.7.2 -*- Autoconf -*-
2    
3  # Copyright 1996, 1997, 1998, 1999, 2000, 2001  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4  # Free Software Foundation, Inc.  # Free Software Foundation, Inc.
5  # This file is free software; the Free Software Foundation  # This file is free software; the Free Software Foundation
6  # gives unlimited permission to copy and/or distribute it,  # gives unlimited permission to copy and/or distribute it,
# Line 378  AC_DEFINE_UNQUOTED([$1], "$grub_tmp_valu Line 378  AC_DEFINE_UNQUOTED([$1], "$grub_tmp_valu
378  rm -f conftest*  rm -f conftest*
379  ])  ])
380    
381  # Do all the work for Automake.  This macro actually does too much --  # Do all the work for Automake.                            -*- Autoconf -*-
 # some checks are only needed if your package does certain things.  
 # But this isn't really a big deal.  
382    
383  # serial 5  # This macro actually does too much some checks are only needed if
384    # your package does certain things.  But this isn't really a big deal.
385    
386    # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
387    # Free Software Foundation, Inc.
388    
389    # This program is free software; you can redistribute it and/or modify
390    # it under the terms of the GNU General Public License as published by
391    # the Free Software Foundation; either version 2, or (at your option)
392    # any later version.
393    
394    # This program is distributed in the hope that it will be useful,
395    # but WITHOUT ANY WARRANTY; without even the implied warranty of
396    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
397    # GNU General Public License for more details.
398    
399    # You should have received a copy of the GNU General Public License
400    # along with this program; if not, write to the Free Software
401    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
402    # 02111-1307, USA.
403    
404    # serial 8
405    
406  # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be  # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
407  # written in clear, in which case automake, when reading aclocal.m4,  # written in clear, in which case automake, when reading aclocal.m4,
# Line 391  rm -f conftest* Line 410  rm -f conftest*
410  # CC etc. in the Makefile, will ask for an AC_PROG_CC use...  # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
411    
412    
413  # We require 2.13 because we rely on SHELL being computed by configure.  AC_PREREQ([2.54])
 AC_PREREQ([2.13])  
   
 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)  
 # -----------------------------------------------------------  
 # If MACRO-NAME is provided do IF-PROVIDED, else IF-NOT-PROVIDED.  
 # The purpose of this macro is to provide the user with a means to  
 # check macros which are provided without letting her know how the  
 # information is coded.  
 # If this macro is not defined by Autoconf, define it here.  
 ifdef([AC_PROVIDE_IFELSE],  
       [],  
       [define([AC_PROVIDE_IFELSE],  
               [ifdef([AC_PROVIDE_$1],  
                      [$2], [$3])])])  
414    
415    # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
416    # the ones we care about.
417    m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
418    
419  # AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE])  # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
420  # ----------------------------------------------  # AM_INIT_AUTOMAKE([OPTIONS])
421    # -----------------------------------------------
422    # The call with PACKAGE and VERSION arguments is the old style
423    # call (pre autoconf-2.50), which is being phased out.  PACKAGE
424    # and VERSION should now be passed to AC_INIT and removed from
425    # the call to AM_INIT_AUTOMAKE.
426    # We support both call styles for the transition.  After
427    # the next Automake release, Autoconf can make the AC_INIT
428    # arguments mandatory, and then we can depend on a new Autoconf
429    # release and drop the old call support.
430  AC_DEFUN([AM_INIT_AUTOMAKE],  AC_DEFUN([AM_INIT_AUTOMAKE],
431  [AC_REQUIRE([AC_PROG_INSTALL])dnl  [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
432     AC_REQUIRE([AC_PROG_INSTALL])dnl
433  # test to see if srcdir already configured  # test to see if srcdir already configured
434  if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&  if test "`cd $srcdir && pwd`" != "`pwd`" &&
435     test -f $srcdir/config.status; then     test -f $srcdir/config.status; then
436    AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first])    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
437  fi  fi
438    
439  # Define the identity of the package.  # test whether we have cygpath
440  PACKAGE=$1  if test -z "$CYGPATH_W"; then
441  AC_SUBST(PACKAGE)dnl    if (cygpath --version) >/dev/null 2>/dev/null; then
442  VERSION=$2      CYGPATH_W='cygpath -w'
443  AC_SUBST(VERSION)dnl    else
444  ifelse([$3],,      CYGPATH_W=echo
445  [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])    fi
446  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])  fi
447    AC_SUBST([CYGPATH_W])
448    
449  # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow  # Define the identity of the package.
450  # the ones we care about.  dnl Distinguish between old-style and new-style calls.
451  ifdef([m4_pattern_allow],  m4_ifval([$2],
452        [m4_pattern_allow([^AM_[A-Z]+FLAGS])])dnl  [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
453     AC_SUBST([PACKAGE], [$1])dnl
454     AC_SUBST([VERSION], [$2])],
455    [_AM_SET_OPTIONS([$1])dnl
456     AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
457     AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
458    
459  # Autoconf 2.50 always computes EXEEXT.  However we need to be  _AM_IF_OPTION([no-define],,
460  # compatible with 2.13, for now.  So we always define EXEEXT, but we  [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
461  # don't compute it.   AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 AC_SUBST(EXEEXT)  
 # Similar for OBJEXT -- only we only use OBJEXT if the user actually  
 # requests that it be used.  This is a bit dumb.  
 : ${OBJEXT=o}  
 AC_SUBST(OBJEXT)  
462    
463  # Some tools Automake needs.  # Some tools Automake needs.
464  AC_REQUIRE([AM_SANITY_CHECK])dnl  AC_REQUIRE([AM_SANITY_CHECK])dnl
465  AC_REQUIRE([AC_ARG_PROGRAM])dnl  AC_REQUIRE([AC_ARG_PROGRAM])dnl
466  AM_MISSING_PROG(ACLOCAL, aclocal)  AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
467  AM_MISSING_PROG(AUTOCONF, autoconf)  AM_MISSING_PROG(AUTOCONF, autoconf)
468  AM_MISSING_PROG(AUTOMAKE, automake)  AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
469  AM_MISSING_PROG(AUTOHEADER, autoheader)  AM_MISSING_PROG(AUTOHEADER, autoheader)
470  AM_MISSING_PROG(MAKEINFO, makeinfo)  AM_MISSING_PROG(MAKEINFO, makeinfo)
471  AM_MISSING_PROG(AMTAR, tar)  AM_MISSING_PROG(AMTAR, tar)
# Line 456  AM_PROG_INSTALL_STRIP Line 475  AM_PROG_INSTALL_STRIP
475  # some platforms.  # some platforms.
476  AC_REQUIRE([AC_PROG_AWK])dnl  AC_REQUIRE([AC_PROG_AWK])dnl
477  AC_REQUIRE([AC_PROG_MAKE_SET])dnl  AC_REQUIRE([AC_PROG_MAKE_SET])dnl
478  AC_REQUIRE([AM_DEP_TRACK])dnl  
479  AC_REQUIRE([AM_SET_DEPDIR])dnl  _AM_IF_OPTION([no-dependencies],,
480  AC_PROVIDE_IFELSE([AC_PROG_][CC],  [AC_PROVIDE_IFELSE([AC_PROG_CC],
481                    [_AM_DEPENDENCIES(CC)],                    [_AM_DEPENDENCIES(CC)],
482                    [define([AC_PROG_][CC],                    [define([AC_PROG_CC],
483                            defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl                            defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
484  AC_PROVIDE_IFELSE([AC_PROG_][CXX],  AC_PROVIDE_IFELSE([AC_PROG_CXX],
485                    [_AM_DEPENDENCIES(CXX)],                    [_AM_DEPENDENCIES(CXX)],
486                    [define([AC_PROG_][CXX],                    [define([AC_PROG_CXX],
487                            defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl                            defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
488    ])
489  ])  ])
490    
491    
492    # When config.status generates a header, we must update the stamp-h file.
493    # This file resides in the same directory as the config header
494    # that is generated.  The stamp files are numbered to have different names.
495    
496    # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
497    # loop where config.status creates the headers, so we can generate
498    # our stamp files there.
499    AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
500    [_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
501    echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
502    
503    # Copyright 2002  Free Software Foundation, Inc.
504    
505    # This program is free software; you can redistribute it and/or modify
506    # it under the terms of the GNU General Public License as published by
507    # the Free Software Foundation; either version 2, or (at your option)
508    # any later version.
509    
510    # This program is distributed in the hope that it will be useful,
511    # but WITHOUT ANY WARRANTY; without even the implied warranty of
512    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
513    # GNU General Public License for more details.
514    
515    # You should have received a copy of the GNU General Public License
516    # along with this program; if not, write to the Free Software
517    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
518    
519    # AM_AUTOMAKE_VERSION(VERSION)
520    # ----------------------------
521    # Automake X.Y traces this macro to ensure aclocal.m4 has been
522    # generated from the m4 files accompanying Automake X.Y.
523    AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
524    
525    # AM_SET_CURRENT_AUTOMAKE_VERSION
526    # -------------------------------
527    # Call AM_AUTOMAKE_VERSION so it can be traced.
528    # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
529    AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
530             [AM_AUTOMAKE_VERSION([1.7.2])])
531    
532    # Helper functions for option handling.                    -*- Autoconf -*-
533    
534    # Copyright 2001, 2002  Free Software Foundation, Inc.
535    
536    # This program is free software; you can redistribute it and/or modify
537    # it under the terms of the GNU General Public License as published by
538    # the Free Software Foundation; either version 2, or (at your option)
539    # any later version.
540    
541    # This program is distributed in the hope that it will be useful,
542    # but WITHOUT ANY WARRANTY; without even the implied warranty of
543    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
544    # GNU General Public License for more details.
545    
546    # You should have received a copy of the GNU General Public License
547    # along with this program; if not, write to the Free Software
548    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
549    # 02111-1307, USA.
550    
551    # serial 2
552    
553    # _AM_MANGLE_OPTION(NAME)
554    # -----------------------
555    AC_DEFUN([_AM_MANGLE_OPTION],
556    [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
557    
558    # _AM_SET_OPTION(NAME)
559    # ------------------------------
560    # Set option NAME.  Presently that only means defining a flag for this option.
561    AC_DEFUN([_AM_SET_OPTION],
562    [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
563    
564    # _AM_SET_OPTIONS(OPTIONS)
565    # ----------------------------------
566    # OPTIONS is a space-separated list of Automake options.
567    AC_DEFUN([_AM_SET_OPTIONS],
568    [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
569    
570    # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
571    # -------------------------------------------
572    # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
573    AC_DEFUN([_AM_IF_OPTION],
574    [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
575    
576  #  #
577  # Check to make sure that the build environment is sane.  # Check to make sure that the build environment is sane.
578  #  #
579    
580    # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
581    
582    # This program is free software; you can redistribute it and/or modify
583    # it under the terms of the GNU General Public License as published by
584    # the Free Software Foundation; either version 2, or (at your option)
585    # any later version.
586    
587    # This program is distributed in the hope that it will be useful,
588    # but WITHOUT ANY WARRANTY; without even the implied warranty of
589    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
590    # GNU General Public License for more details.
591    
592    # You should have received a copy of the GNU General Public License
593    # along with this program; if not, write to the Free Software
594    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
595    # 02111-1307, USA.
596    
597  # serial 3  # serial 3
598    
599  # AM_SANITY_CHECK  # AM_SANITY_CHECK
# Line 515  Check your system clock]) Line 637  Check your system clock])
637  fi  fi
638  AC_MSG_RESULT(yes)])  AC_MSG_RESULT(yes)])
639    
640    #  -*- Autoconf -*-
641    
642  # serial 2  
643    # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
644    
645    # This program is free software; you can redistribute it and/or modify
646    # it under the terms of the GNU General Public License as published by
647    # the Free Software Foundation; either version 2, or (at your option)
648    # any later version.
649    
650    # This program is distributed in the hope that it will be useful,
651    # but WITHOUT ANY WARRANTY; without even the implied warranty of
652    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
653    # GNU General Public License for more details.
654    
655    # You should have received a copy of the GNU General Public License
656    # along with this program; if not, write to the Free Software
657    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
658    # 02111-1307, USA.
659    
660    # serial 3
661    
662  # AM_MISSING_PROG(NAME, PROGRAM)  # AM_MISSING_PROG(NAME, PROGRAM)
663  # ------------------------------  # ------------------------------
# Line 538  if eval "$MISSING --run true"; then Line 679  if eval "$MISSING --run true"; then
679    am_missing_run="$MISSING --run "    am_missing_run="$MISSING --run "
680  else  else
681    am_missing_run=    am_missing_run=
682    am_backtick='`'    AC_MSG_WARN([`missing' script is too old or missing])
   AC_MSG_WARN([${am_backtick}missing' script is too old or missing])  
683  fi  fi
684  ])  ])
685    
686  # AM_AUX_DIR_EXPAND  # AM_AUX_DIR_EXPAND
687    
688    # Copyright 2001 Free Software Foundation, Inc.
689    
690    # This program is free software; you can redistribute it and/or modify
691    # it under the terms of the GNU General Public License as published by
692    # the Free Software Foundation; either version 2, or (at your option)
693    # any later version.
694    
695    # This program is distributed in the hope that it will be useful,
696    # but WITHOUT ANY WARRANTY; without even the implied warranty of
697    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
698    # GNU General Public License for more details.
699    
700    # You should have received a copy of the GNU General Public License
701    # along with this program; if not, write to the Free Software
702    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
703    # 02111-1307, USA.
704    
705  # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets  # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
706  # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to  # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
707  # `$srcdir', `$srcdir/..', or `$srcdir/../..'.  # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
# Line 583  fi Line 740  fi
740  # absolute PATH.  The drawback is that using absolute paths prevent a  # absolute PATH.  The drawback is that using absolute paths prevent a
741  # configured tree to be moved without reconfiguration.  # configured tree to be moved without reconfiguration.
742    
743    # Rely on autoconf to set up CDPATH properly.
744    AC_PREREQ([2.50])
745    
746  AC_DEFUN([AM_AUX_DIR_EXPAND], [  AC_DEFUN([AM_AUX_DIR_EXPAND], [
747  # expand $ac_aux_dir to an absolute path  # expand $ac_aux_dir to an absolute path
748  am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`  am_aux_dir=`cd $ac_aux_dir && pwd`
749  ])  ])
750    
751  # AM_PROG_INSTALL_SH  # AM_PROG_INSTALL_SH
752  # ------------------  # ------------------
753  # Define $install_sh.  # Define $install_sh.
754    
755    # Copyright 2001 Free Software Foundation, Inc.
756    
757    # This program is free software; you can redistribute it and/or modify
758    # it under the terms of the GNU General Public License as published by
759    # the Free Software Foundation; either version 2, or (at your option)
760    # any later version.
761    
762    # This program is distributed in the hope that it will be useful,
763    # but WITHOUT ANY WARRANTY; without even the implied warranty of
764    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
765    # GNU General Public License for more details.
766    
767    # You should have received a copy of the GNU General Public License
768    # along with this program; if not, write to the Free Software
769    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
770    # 02111-1307, USA.
771    
772  AC_DEFUN([AM_PROG_INSTALL_SH],  AC_DEFUN([AM_PROG_INSTALL_SH],
773  [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl  [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
774  install_sh=${install_sh-"$am_aux_dir/install-sh"}  install_sh=${install_sh-"$am_aux_dir/install-sh"}
775  AC_SUBST(install_sh)])  AC_SUBST(install_sh)])
776    
777    # AM_PROG_INSTALL_STRIP
778    
779    # Copyright 2001 Free Software Foundation, Inc.
780    
781    # This program is free software; you can redistribute it and/or modify
782    # it under the terms of the GNU General Public License as published by
783    # the Free Software Foundation; either version 2, or (at your option)
784    # any later version.
785    
786    # This program is distributed in the hope that it will be useful,
787    # but WITHOUT ANY WARRANTY; without even the implied warranty of
788    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
789    # GNU General Public License for more details.
790    
791    # You should have received a copy of the GNU General Public License
792    # along with this program; if not, write to the Free Software
793    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
794    # 02111-1307, USA.
795    
796  # One issue with vendor `install' (even GNU) is that you can't  # One issue with vendor `install' (even GNU) is that you can't
797  # specify the program used to strip binaries.  This is especially  # specify the program used to strip binaries.  This is especially
798  # annoying in cross-compiling environments, where the build's strip  # annoying in cross-compiling environments, where the build's strip
# Line 605  AC_SUBST(install_sh)]) Line 802  AC_SUBST(install_sh)])
802  # STRIPPROG with the value of the STRIP variable (set by the user).  # STRIPPROG with the value of the STRIP variable (set by the user).
803  AC_DEFUN([AM_PROG_INSTALL_STRIP],  AC_DEFUN([AM_PROG_INSTALL_STRIP],
804  [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl  [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
805    # Installed binaries are usually stripped using `strip' when the user
806    # run `make install-strip'.  However `strip' might not be the right
807    # tool to use in cross-compilation environments, therefore Automake
808    # will honor the `STRIP' environment variable to overrule this program.
809    dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
810    if test "$cross_compiling" != no; then
811      AC_CHECK_TOOL([STRIP], [strip], :)
812    fi
813  INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"  INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
814  AC_SUBST([INSTALL_STRIP_PROGRAM])])  AC_SUBST([INSTALL_STRIP_PROGRAM])])
815    
816  # serial 4                                              -*- Autoconf -*-  # serial 4                                              -*- Autoconf -*-
817    
818    # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
819    
820    # This program is free software; you can redistribute it and/or modify
821    # it under the terms of the GNU General Public License as published by
822    # the Free Software Foundation; either version 2, or (at your option)
823    # any later version.
824    
825    # This program is distributed in the hope that it will be useful,
826    # but WITHOUT ANY WARRANTY; without even the implied warranty of
827    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
828    # GNU General Public License for more details.
829    
830    # You should have received a copy of the GNU General Public License
831    # along with this program; if not, write to the Free Software
832    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
833    # 02111-1307, USA.
834    
835    
836  # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be  # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
# Line 621  AC_SUBST([INSTALL_STRIP_PROGRAM])]) Line 842  AC_SUBST([INSTALL_STRIP_PROGRAM])])
842    
843    
844  # _AM_DEPENDENCIES(NAME)  # _AM_DEPENDENCIES(NAME)
845  # ---------------------  # ----------------------
846  # See how the compiler implements dependency checking.  # See how the compiler implements dependency checking.
847  # NAME is "CC", "CXX" or "OBJC".  # NAME is "CC", "CXX", "GCJ", or "OBJC".
848  # We try a few techniques and use that to set a single cache variable.  # We try a few techniques and use that to set a single cache variable.
849  #  #
850  # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was  # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
# Line 638  AC_REQUIRE([AM_DEP_TRACK])dnl Line 859  AC_REQUIRE([AM_DEP_TRACK])dnl
859    
860  ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],  ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
861         [$1], CXX,  [depcc="$CXX"  am_compiler_list=],         [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
862         [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc']         [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
863         [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],         [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
864                     [depcc="$$1"   am_compiler_list=])                     [depcc="$$1"   am_compiler_list=])
865    
# Line 686  AC_CACHE_CHECK([dependency style of $dep Line 907  AC_CACHE_CHECK([dependency style of $dep
907      if depmode=$depmode \      if depmode=$depmode \
908         source=conftest.c object=conftest.o \         source=conftest.c object=conftest.o \
909         depfile=conftest.Po tmpdepfile=conftest.TPo \         depfile=conftest.Po tmpdepfile=conftest.TPo \
910         $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&         $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
911         grep conftest.h conftest.Po > /dev/null 2>&1 &&         grep conftest.h conftest.Po > /dev/null 2>&1 &&
912         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
913        am_cv_$1_dependencies_compiler_type=$depmode        am_cv_$1_dependencies_compiler_type=$depmode
# Line 700  else Line 921  else
921    am_cv_$1_dependencies_compiler_type=none    am_cv_$1_dependencies_compiler_type=none
922  fi  fi
923  ])  ])
924  $1DEPMODE="depmode=$am_cv_$1_dependencies_compiler_type"  AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
925  AC_SUBST([$1DEPMODE])  AM_CONDITIONAL([am__fastdep$1], [
926      test "x$enable_dependency_tracking" != xno \
927      && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
928  ])  ])
929    
930    
# Line 719  else Line 942  else
942    DEPDIR=_deps    DEPDIR=_deps
943  fi  fi
944  rmdir .deps 2>/dev/null  rmdir .deps 2>/dev/null
945  AC_SUBST(DEPDIR)  AC_SUBST([DEPDIR])
946  ])  ])
947    
948    
# Line 734  if test "x$enable_dependency_tracking" ! Line 957  if test "x$enable_dependency_tracking" !
957    AMDEPBACKSLASH='\'    AMDEPBACKSLASH='\'
958  fi  fi
959  AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])  AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
960  pushdef([subst], defn([AC_SUBST]))  AC_SUBST([AMDEPBACKSLASH])
 subst(AMDEPBACKSLASH)  
 popdef([subst])  
961  ])  ])
962    
963  # Generate code to set up dependency tracking.  # Generate code to set up dependency tracking.   -*- Autoconf -*-
 # This macro should only be invoked once -- use via AC_REQUIRE.  
 # Usage:  
 # AM_OUTPUT_DEPENDENCY_COMMANDS  
964    
965  #  # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
966  # This code is only required when automatic dependency tracking  
967  # is enabled.  FIXME.  This creates each `.P' file that we will  # This program is free software; you can redistribute it and/or modify
968  # need in order to bootstrap the dependency handling code.  # it under the terms of the GNU General Public License as published by
969  AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[  # the Free Software Foundation; either version 2, or (at your option)
970  AC_OUTPUT_COMMANDS([  # any later version.
971  test x"$AMDEP_TRUE" != x"" ||  
972  for mf in $CONFIG_FILES; do  # This program is distributed in the hope that it will be useful,
973    case "$mf" in  # but WITHOUT ANY WARRANTY; without even the implied warranty of
974    Makefile) dirpart=.;;  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
975    */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;  # GNU General Public License for more details.
976    *) continue;;  
977    esac  # You should have received a copy of the GNU General Public License
978    grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue  # along with this program; if not, write to the Free Software
979    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
980    # 02111-1307, USA.
981    
982    #serial 2
983    
984    # _AM_OUTPUT_DEPENDENCY_COMMANDS
985    # ------------------------------
986    AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
987    [for mf in $CONFIG_FILES; do
988      # Strip MF so we end up with the name of the file.
989      mf=`echo "$mf" | sed -e 's/:.*$//'`
990      # Check whether this is an Automake generated Makefile or not.
991      # We used to match only the files named `Makefile.in', but
992      # some people rename them; so instead we look at the file content.
993      # Grep'ing the first line is not enough: some people post-process
994      # each Makefile.in and add a new line on top of each file to say so.
995      # So let's grep whole file.
996      if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
997        dirpart=`AS_DIRNAME("$mf")`
998      else
999        continue
1000      fi
1001      grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
1002    # Extract the definition of DEP_FILES from the Makefile without    # Extract the definition of DEP_FILES from the Makefile without
1003    # running `make'.    # running `make'.
1004    DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`    DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
# Line 781  for mf in $CONFIG_FILES; do Line 1022  for mf in $CONFIG_FILES; do
1022         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1023      # Make sure the directory exists.      # Make sure the directory exists.
1024      test -f "$dirpart/$file" && continue      test -f "$dirpart/$file" && continue
1025      fdir=`echo "$file" | sed -e 's|/[^/]*$||'`      fdir=`AS_DIRNAME(["$file"])`
1026      $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1      AS_MKDIR_P([$dirpart/$fdir])
1027      # echo "creating $dirpart/$file"      # echo "creating $dirpart/$file"
1028      echo '# dummy' > "$dirpart/$file"      echo '# dummy' > "$dirpart/$file"
1029    done    done
1030  done  done
1031  ], [AMDEP_TRUE="$AMDEP_TRUE"  ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1032  ac_aux_dir="$ac_aux_dir"])])  
1033    
1034    # AM_OUTPUT_DEPENDENCY_COMMANDS
1035    # -----------------------------
1036    # This macro should only be invoked once -- use via AC_REQUIRE.
1037    #
1038    # This code is only required when automatic dependency tracking
1039    # is enabled.  FIXME.  This creates each `.P' file that we will
1040    # need in order to bootstrap the dependency handling code.
1041    AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1042    [AC_CONFIG_COMMANDS([depfiles],
1043         [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1044         [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1045    ])
1046    
1047    # Check to see how 'make' treats includes.      -*- Autoconf -*-
1048    
1049    # Copyright (C) 2001, 2002 Free Software Foundation, Inc.
1050    
1051    # This program is free software; you can redistribute it and/or modify
1052    # it under the terms of the GNU General Public License as published by
1053    # the Free Software Foundation; either version 2, or (at your option)
1054    # any later version.
1055    
1056    # This program is distributed in the hope that it will be useful,
1057    # but WITHOUT ANY WARRANTY; without even the implied warranty of
1058    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1059    # GNU General Public License for more details.
1060    
1061    # You should have received a copy of the GNU General Public License
1062    # along with this program; if not, write to the Free Software
1063    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1064    # 02111-1307, USA.
1065    
1066    # serial 2
1067    
1068  # AM_MAKE_INCLUDE()  # AM_MAKE_INCLUDE()
1069  # -----------------  # -----------------
# Line 801  doit: Line 1076  doit:
1076  END  END
1077  # If we don't find an include directive, just comment out the code.  # If we don't find an include directive, just comment out the code.
1078  AC_MSG_CHECKING([for style of include used by $am_make])  AC_MSG_CHECKING([for style of include used by $am_make])
1079  am__include='#'  am__include="#"
1080  am__quote=  am__quote=
1081  _am_result=none  _am_result=none
1082  # First try GNU make style include.  # First try GNU make style include.
# Line 811  echo "include confinc" > confmf Line 1086  echo "include confinc" > confmf
1086  # In particular we don't look at `^make:' because GNU make might  # In particular we don't look at `^make:' because GNU make might
1087  # be invoked under some other name (usually "gmake"), in which  # be invoked under some other name (usually "gmake"), in which
1088  # case it prints its new name instead of `make'.  # case it prints its new name instead of `make'.
1089  if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then  if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1090     am__include=include     am__include=include
1091     am__quote=     am__quote=
1092     _am_result=GNU     _am_result=GNU
# Line 821  if test "$am__include" = "#"; then Line 1096  if test "$am__include" = "#"; then
1096     echo '.include "confinc"' > confmf     echo '.include "confinc"' > confmf
1097     if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then     if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1098        am__include=.include        am__include=.include
1099        am__quote='"'        am__quote="\""
1100        _am_result=BSD        _am_result=BSD
1101     fi     fi
1102  fi  fi
# Line 831  AC_MSG_RESULT($_am_result) Line 1106  AC_MSG_RESULT($_am_result)
1106  rm -f confinc confmf  rm -f confinc confmf
1107  ])  ])
1108    
1109  # serial 3  # AM_CONDITIONAL                                              -*- Autoconf -*-
1110    
1111    # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
1112    
1113    # This program is free software; you can redistribute it and/or modify
1114    # it under the terms of the GNU General Public License as published by
1115    # the Free Software Foundation; either version 2, or (at your option)
1116    # any later version.
1117    
1118    # This program is distributed in the hope that it will be useful,
1119    # but WITHOUT ANY WARRANTY; without even the implied warranty of
1120    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1121    # GNU General Public License for more details.
1122    
1123    # You should have received a copy of the GNU General Public License
1124    # along with this program; if not, write to the Free Software
1125    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1126    # 02111-1307, USA.
1127    
1128    # serial 5
1129    
1130    AC_PREREQ(2.52)
1131    
1132  # AM_CONDITIONAL(NAME, SHELL-CONDITION)  # AM_CONDITIONAL(NAME, SHELL-CONDITION)
1133  # -------------------------------------  # -------------------------------------
1134  # Define a conditional.  # Define a conditional.
 #  
 # FIXME: Once using 2.50, use this:  
 # m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl  
1135  AC_DEFUN([AM_CONDITIONAL],  AC_DEFUN([AM_CONDITIONAL],
1136  [ifelse([$1], [TRUE],  [ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
1137          [errprint(__file__:__line__: [$0: invalid condition: $1          [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 ])dnl  
 m4exit(1)])dnl  
 ifelse([$1], [FALSE],  
        [errprint(__file__:__line__: [$0: invalid condition: $1  
 ])dnl  
 m4exit(1)])dnl  
1138  AC_SUBST([$1_TRUE])  AC_SUBST([$1_TRUE])
1139  AC_SUBST([$1_FALSE])  AC_SUBST([$1_FALSE])
1140  if $2; then  if $2; then
# Line 856  if $2; then Line 1143  if $2; then
1143  else  else
1144    $1_TRUE='#'    $1_TRUE='#'
1145    $1_FALSE=    $1_FALSE=
1146  fi])  fi
1147    AC_CONFIG_COMMANDS_PRE(
1148  # Like AC_CONFIG_HEADER, but automatically create stamp file.  [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1149      AC_MSG_ERROR([conditional "$1" was never defined.
1150  # serial 3  Usually this means the macro was only invoked conditionally.])
1151    fi])])
1152    
1153  # When config.status generates a header, we must update the stamp-h file.  # Add --enable-maintainer-mode option to configure.
1154  # This file resides in the same directory as the config header  # From Jim Meyering
 # that is generated.  We must strip everything past the first ":",  
 # and everything past the last "/".  
1155    
1156  AC_PREREQ([2.12])  # Copyright 1996, 1998, 2000, 2001, 2002  Free Software Foundation, Inc.
1157    
1158  AC_DEFUN([AM_CONFIG_HEADER],  # This program is free software; you can redistribute it and/or modify
1159  [ifdef([AC_FOREACH],dnl  # it under the terms of the GNU General Public License as published by
1160           [dnl init our file count if it isn't already  # the Free Software Foundation; either version 2, or (at your option)
1161           m4_ifndef([_AM_Config_Header_Index], m4_define([_AM_Config_Header_Index], [0]))  # any later version.
          dnl prepare to store our destination file list for use in config.status  
          AC_FOREACH([_AM_File], [$1],  
                     [m4_pushdef([_AM_Dest], m4_patsubst(_AM_File, [:.*]))  
                     m4_define([_AM_Config_Header_Index], m4_incr(_AM_Config_Header_Index))  
                     dnl and add it to the list of files AC keeps track of, along  
                     dnl with our hook  
                     AC_CONFIG_HEADERS(_AM_File,  
 dnl COMMANDS, [, INIT-CMDS]  
 [# update the timestamp  
 echo timestamp >"AS_ESCAPE(_AM_DIRNAME(]_AM_Dest[))/stamp-h]_AM_Config_Header_Index["  
 ][$2]m4_ifval([$3], [, [$3]]))dnl AC_CONFIG_HEADERS  
                     m4_popdef([_AM_Dest])])],dnl  
 [AC_CONFIG_HEADER([$1])  
   AC_OUTPUT_COMMANDS(  
    ifelse(patsubst([$1], [[^ ]], []),  
           [],  
           [test -z "$CONFIG_HEADERS" || echo timestamp >dnl  
            patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]),dnl  
 [am_indx=1  
 for am_file in $1; do  
   case " \$CONFIG_HEADERS " in  
   *" \$am_file "*)  
     am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`  
     if test -n "\$am_dir"; then  
       am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`  
       for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do  
         am_tmpdir=\$am_tmpdir\$am_subdir/  
         if test ! -d \$am_tmpdir; then  
           mkdir \$am_tmpdir  
         fi  
       done  
     fi  
     echo timestamp > "\$am_dir"stamp-h\$am_indx  
     ;;  
   esac  
   am_indx=\`expr \$am_indx + 1\`  
 done])  
 ])]) # AM_CONFIG_HEADER  
1162    
1163  # _AM_DIRNAME(PATH)  # This program is distributed in the hope that it will be useful,
1164  # -----------------  # but WITHOUT ANY WARRANTY; without even the implied warranty of
1165  # Like AS_DIRNAME, only do it during macro expansion  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1166  AC_DEFUN([_AM_DIRNAME],  # GNU General Public License for more details.
1167         [m4_if(m4_regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,  
1168                m4_if(m4_regexp([$1], [^//\([^/]\|$\)]), -1,  # You should have received a copy of the GNU General Public License
1169                      m4_if(m4_regexp([$1], [^/.*]), -1,  # along with this program; if not, write to the Free Software
1170                            [.],  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1171                            m4_patsubst([$1], [^\(/\).*], [\1])),  # 02111-1307, USA.
                     m4_patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),  
               m4_patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl  
 ]) # _AM_DIRNAME  
   
 # Add --enable-maintainer-mode option to configure.  
 # From Jim Meyering  
1172    
1173  # serial 1  # serial 2
1174    
1175  AC_DEFUN([AM_MAINTAINER_MODE],  AC_DEFUN([AM_MAINTAINER_MODE],
1176  [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])  [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
# Line 945  AC_DEFUN([AM_MAINTAINER_MODE], Line 1187  AC_DEFUN([AM_MAINTAINER_MODE],
1187  ]  ]
1188  )  )
1189    
1190    AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1191    

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

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