/[nova]/nova/kern/aclocal.m4
ViewVC logotype

Diff of /nova/kern/aclocal.m4

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

revision 1.1.1.1 by jrydberg, Tue Feb 12 19:28:26 2002 UTC revision 1.2 by jrydberg, Wed Mar 27 23:21:54 2002 UTC
# Line 104  EOF Line 104  EOF
104    fi    fi
105  ])  ])
106    
 # Do all the work for Automake.  This macro actually does too much --  
 # some checks are only needed if your package does certain things.  
 # But this isn't really a big deal.  
   
 # serial 1  
   
 dnl Usage:  
 dnl AM_INIT_AUTOMAKE(package,version, [no-define])  
   
 AC_DEFUN([AM_INIT_AUTOMAKE],  
 [AC_REQUIRE([AC_PROG_INSTALL])  
 PACKAGE=[$1]  
 AC_SUBST(PACKAGE)  
 VERSION=[$2]  
 AC_SUBST(VERSION)  
 dnl test to see if srcdir already configured  
 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then  
   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])  
 fi  
 ifelse([$3],,  
 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])  
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))  
 AC_REQUIRE([AM_SANITY_CHECK])  
 AC_REQUIRE([AC_ARG_PROGRAM])  
 dnl FIXME This is truly gross.  
 missing_dir=`cd $ac_aux_dir && pwd`  
 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)  
 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)  
 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)  
 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)  
 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)  
 AC_REQUIRE([AC_PROG_MAKE_SET])])  
   
 #  
 # Check to make sure that the build environment is sane.  
 #  
   
 AC_DEFUN([AM_SANITY_CHECK],  
 [AC_MSG_CHECKING([whether build environment is sane])  
 # Just in case  
 sleep 1  
 echo timestamp > conftestfile  
 # Do `set' in a subshell so we don't clobber the current shell's  
 # arguments.  Must try -L first in case configure is actually a  
 # symlink; some systems play weird games with the mod time of symlinks  
 # (eg FreeBSD returns the mod time of the symlink's containing  
 # directory).  
 if (  
    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`  
    if test "[$]*" = "X"; then  
       # -L didn't work.  
       set X `ls -t $srcdir/configure conftestfile`  
    fi  
    if test "[$]*" != "X $srcdir/configure conftestfile" \  
       && test "[$]*" != "X conftestfile $srcdir/configure"; then  
   
       # If neither matched, then we have a broken ls.  This can happen  
       # if, for instance, CONFIG_SHELL is bash and it inherits a  
       # broken ls alias from the environment.  This has actually  
       # happened.  Such a system could not be considered "sane".  
       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken  
 alias in your environment])  
    fi  
   
    test "[$]2" = conftestfile  
    )  
 then  
    # Ok.  
    :  
 else  
    AC_MSG_ERROR([newly created file is older than distributed files!  
 Check your system clock])  
 fi  
 rm -f conftest*  
 AC_MSG_RESULT(yes)])  
   
 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)  
 dnl The program must properly implement --version.  
 AC_DEFUN([AM_MISSING_PROG],  
 [AC_MSG_CHECKING(for working $2)  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if ($2 --version) < /dev/null > /dev/null 2>&1; then  
    $1=$2  
    AC_MSG_RESULT(found)  
 else  
    $1="$3/missing $2"  
    AC_MSG_RESULT(missing)  
 fi  
 AC_SUBST($1)])  
   
 # Add --enable-maintainer-mode option to configure.  
 # From Jim Meyering  
   
 # serial 1  
   
 AC_DEFUN([AM_MAINTAINER_MODE],  
 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])  
   dnl maintainer-mode is disabled by default  
   AC_ARG_ENABLE(maintainer-mode,  
 [  --enable-maintainer-mode enable make rules and dependencies not useful  
                           (and sometimes confusing) to the casual installer],  
       USE_MAINTAINER_MODE=$enableval,  
       USE_MAINTAINER_MODE=no)  
   AC_MSG_RESULT($USE_MAINTAINER_MODE)  
   AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)  
   MAINT=$MAINTAINER_MODE_TRUE  
   AC_SUBST(MAINT)dnl  
 ]  
 )  
   
 # Define a conditional.  
   
 AC_DEFUN([AM_CONDITIONAL],  
 [AC_SUBST($1_TRUE)  
 AC_SUBST($1_FALSE)  
 if $2; then  
   $1_TRUE=  
   $1_FALSE='#'  
 else  
   $1_TRUE='#'  
   $1_FALSE=  
 fi])  
   
107  # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-  # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
108    
109  # serial 46 AC_PROG_LIBTOOL  # serial 46 AC_PROG_LIBTOOL
# Line 2261  freebsd*) Line 2136  freebsd*)
2136    esac    esac
2137    ;;    ;;
2138    
2139  gnu*)  gnu* | rtmk*)
2140    version_type=linux    version_type=linux
2141    need_lib_prefix=no    need_lib_prefix=no
2142    need_version=no    need_version=no
# Line 3487  freebsd*) Line 3362  freebsd*)
3362    fi    fi
3363    ;;    ;;
3364    
3365  gnu*)  gnu* | rtmk*)
3366    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
3367    ;;    ;;
3368    
# Line 3721  AC_DEFUN([AM_PROG_NM],        [AC_PROG_N Line 3596  AC_DEFUN([AM_PROG_NM],        [AC_PROG_N
3596  # This is just to silence aclocal about the macro not being used  # This is just to silence aclocal about the macro not being used
3597  ifelse([AC_DISABLE_FAST_INSTALL])  ifelse([AC_DISABLE_FAST_INSTALL])
3598    
3599    # Do all the work for Automake.  This macro actually does too much --
3600    # some checks are only needed if your package does certain things.
3601    # But this isn't really a big deal.
3602    
3603    # serial 1
3604    
3605    dnl Usage:
3606    dnl AM_INIT_AUTOMAKE(package,version, [no-define])
3607    
3608    AC_DEFUN([AM_INIT_AUTOMAKE],
3609    [AC_REQUIRE([AC_PROG_INSTALL])
3610    PACKAGE=[$1]
3611    AC_SUBST(PACKAGE)
3612    VERSION=[$2]
3613    AC_SUBST(VERSION)
3614    dnl test to see if srcdir already configured
3615    if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
3616      AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
3617    fi
3618    ifelse([$3],,
3619    AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
3620    AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
3621    AC_REQUIRE([AM_SANITY_CHECK])
3622    AC_REQUIRE([AC_ARG_PROGRAM])
3623    dnl FIXME This is truly gross.
3624    missing_dir=`cd $ac_aux_dir && pwd`
3625    AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
3626    AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
3627    AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
3628    AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
3629    AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
3630    AC_REQUIRE([AC_PROG_MAKE_SET])])
3631    
3632    #
3633    # Check to make sure that the build environment is sane.
3634    #
3635    
3636    AC_DEFUN([AM_SANITY_CHECK],
3637    [AC_MSG_CHECKING([whether build environment is sane])
3638    # Just in case
3639    sleep 1
3640    echo timestamp > conftestfile
3641    # Do `set' in a subshell so we don't clobber the current shell's
3642    # arguments.  Must try -L first in case configure is actually a
3643    # symlink; some systems play weird games with the mod time of symlinks
3644    # (eg FreeBSD returns the mod time of the symlink's containing
3645    # directory).
3646    if (
3647       set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
3648       if test "[$]*" = "X"; then
3649          # -L didn't work.
3650          set X `ls -t $srcdir/configure conftestfile`
3651       fi
3652       if test "[$]*" != "X $srcdir/configure conftestfile" \
3653          && test "[$]*" != "X conftestfile $srcdir/configure"; then
3654    
3655          # If neither matched, then we have a broken ls.  This can happen
3656          # if, for instance, CONFIG_SHELL is bash and it inherits a
3657          # broken ls alias from the environment.  This has actually
3658          # happened.  Such a system could not be considered "sane".
3659          AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
3660    alias in your environment])
3661       fi
3662    
3663       test "[$]2" = conftestfile
3664       )
3665    then
3666       # Ok.
3667       :
3668    else
3669       AC_MSG_ERROR([newly created file is older than distributed files!
3670    Check your system clock])
3671    fi
3672    rm -f conftest*
3673    AC_MSG_RESULT(yes)])
3674    
3675    dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
3676    dnl The program must properly implement --version.
3677    AC_DEFUN([AM_MISSING_PROG],
3678    [AC_MSG_CHECKING(for working $2)
3679    # Run test in a subshell; some versions of sh will print an error if
3680    # an executable is not found, even if stderr is redirected.
3681    # Redirect stdin to placate older versions of autoconf.  Sigh.
3682    if ($2 --version) < /dev/null > /dev/null 2>&1; then
3683       $1=$2
3684       AC_MSG_RESULT(found)
3685    else
3686       $1="$3/missing $2"
3687       AC_MSG_RESULT(missing)
3688    fi
3689    AC_SUBST($1)])
3690    
3691    # Add --enable-maintainer-mode option to configure.
3692    # From Jim Meyering
3693    
3694    # serial 1
3695    
3696    AC_DEFUN([AM_MAINTAINER_MODE],
3697    [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
3698      dnl maintainer-mode is disabled by default
3699      AC_ARG_ENABLE(maintainer-mode,
3700    [  --enable-maintainer-mode enable make rules and dependencies not useful
3701                              (and sometimes confusing) to the casual installer],
3702          USE_MAINTAINER_MODE=$enableval,
3703          USE_MAINTAINER_MODE=no)
3704      AC_MSG_RESULT($USE_MAINTAINER_MODE)
3705      AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
3706      MAINT=$MAINTAINER_MODE_TRUE
3707      AC_SUBST(MAINT)dnl
3708    ]
3709    )
3710    
3711    # Define a conditional.
3712    
3713    AC_DEFUN([AM_CONDITIONAL],
3714    [AC_SUBST($1_TRUE)
3715    AC_SUBST($1_FALSE)
3716    if $2; then
3717      $1_TRUE=
3718      $1_FALSE='#'
3719    else
3720      $1_TRUE='#'
3721      $1_FALSE=
3722    fi])
3723    

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

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