"Fossies" - the Fresh Open Source Software Archive

Member "links-1.04/aclocal.m4" (24 Nov 2019, 7731 Bytes) of package /linux/www/links-1.04.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "aclocal.m4": 1.03_vs_1.04.

    1 dnl aclocal.m4 generated automatically by aclocal 1.4-p6
    2 
    3 dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
    4 dnl This file is free software; the Free Software Foundation
    5 dnl gives unlimited permission to copy and/or distribute it,
    6 dnl with or without modifications, as long as this notice is preserved.
    7 
    8 dnl This program is distributed in the hope that it will be useful,
    9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   11 dnl PARTICULAR PURPOSE.
   12 
   13 # Do all the work for Automake.  This macro actually does too much --
   14 # some checks are only needed if your package does certain things.
   15 # But this isn't really a big deal.
   16 
   17 # serial 1
   18 
   19 dnl Usage:
   20 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
   21 
   22 AC_DEFUN([AM_INIT_AUTOMAKE],
   23 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
   24 AC_REQUIRE([AC_PROG_INSTALL])
   25 PACKAGE=[$1]
   26 AC_SUBST(PACKAGE)
   27 VERSION=[$2]
   28 AC_SUBST(VERSION)
   29 dnl test to see if srcdir already configured
   30 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
   31   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
   32 fi
   33 ifelse([$3],,
   34 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
   35 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
   36 AC_REQUIRE([AM_SANITY_CHECK])
   37 AC_REQUIRE([AC_ARG_PROGRAM])
   38 dnl FIXME This is truly gross.
   39 missing_dir=`cd $ac_aux_dir && pwd`
   40 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
   41 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
   42 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
   43 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
   44 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
   45 AC_REQUIRE([AC_PROG_MAKE_SET])])
   46 
   47 # Copyright 2002  Free Software Foundation, Inc.
   48 
   49 # This program is free software; you can redistribute it and/or modify
   50 # it under the terms of the GNU General Public License as published by
   51 # the Free Software Foundation; either version 2, or (at your option)
   52 # any later version.
   53 
   54 # This program is distributed in the hope that it will be useful,
   55 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   56 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   57 # GNU General Public License for more details.
   58 
   59 # You should have received a copy of the GNU General Public License
   60 # along with this program; if not, write to the Free Software
   61 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   62 
   63 # AM_AUTOMAKE_VERSION(VERSION)
   64 # ----------------------------
   65 # Automake X.Y traces this macro to ensure aclocal.m4 has been
   66 # generated from the m4 files accompanying Automake X.Y.
   67 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
   68 
   69 # AM_SET_CURRENT_AUTOMAKE_VERSION
   70 # -------------------------------
   71 # Call AM_AUTOMAKE_VERSION so it can be traced.
   72 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
   73 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
   74 	 [AM_AUTOMAKE_VERSION([1.4-p6])])
   75 
   76 #
   77 # Check to make sure that the build environment is sane.
   78 #
   79 
   80 AC_DEFUN([AM_SANITY_CHECK],
   81 [AC_MSG_CHECKING([whether build environment is sane])
   82 # Just in case
   83 sleep 1
   84 echo timestamp > conftestfile
   85 # Do `set' in a subshell so we don't clobber the current shell's
   86 # arguments.  Must try -L first in case configure is actually a
   87 # symlink; some systems play weird games with the mod time of symlinks
   88 # (eg FreeBSD returns the mod time of the symlink's containing
   89 # directory).
   90 if (
   91    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
   92    if test "[$]*" = "X"; then
   93       # -L didn't work.
   94       set X `ls -t $srcdir/configure conftestfile`
   95    fi
   96    if test "[$]*" != "X $srcdir/configure conftestfile" \
   97       && test "[$]*" != "X conftestfile $srcdir/configure"; then
   98 
   99       # If neither matched, then we have a broken ls.  This can happen
  100       # if, for instance, CONFIG_SHELL is bash and it inherits a
  101       # broken ls alias from the environment.  This has actually
  102       # happened.  Such a system could not be considered "sane".
  103       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
  104 alias in your environment])
  105    fi
  106 
  107    test "[$]2" = conftestfile
  108    )
  109 then
  110    # Ok.
  111    :
  112 else
  113    AC_MSG_ERROR([newly created file is older than distributed files!
  114 Check your system clock])
  115 fi
  116 rm -f conftest*
  117 AC_MSG_RESULT(yes)])
  118 
  119 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
  120 dnl The program must properly implement --version.
  121 AC_DEFUN([AM_MISSING_PROG],
  122 [AC_MSG_CHECKING(for working $2)
  123 # Run test in a subshell; some versions of sh will print an error if
  124 # an executable is not found, even if stderr is redirected.
  125 # Redirect stdin to placate older versions of autoconf.  Sigh.
  126 if ($2 --version) < /dev/null > /dev/null 2>&1; then
  127    $1=$2
  128    AC_MSG_RESULT(found)
  129 else
  130    $1="$3/missing $2"
  131    AC_MSG_RESULT(missing)
  132 fi
  133 AC_SUBST($1)])
  134 
  135 # Like AC_CONFIG_HEADER, but automatically create stamp file.
  136 
  137 AC_DEFUN([AM_CONFIG_HEADER],
  138 [AC_PREREQ([2.12])
  139 AC_CONFIG_HEADER([$1])
  140 dnl When config.status generates a header, we must update the stamp-h file.
  141 dnl This file resides in the same directory as the config header
  142 dnl that is generated.  We must strip everything past the first ":",
  143 dnl and everything past the last "/".
  144 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
  145 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
  146 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
  147 <<am_indx=1
  148 for am_file in <<$1>>; do
  149   case " <<$>>CONFIG_HEADERS " in
  150   *" <<$>>am_file "*<<)>>
  151     echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
  152     ;;
  153   esac
  154   am_indx=`expr "<<$>>am_indx" + 1`
  155 done<<>>dnl>>)
  156 changequote([,]))])
  157 
  158 
  159 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
  160 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
  161 dnl also defines GSTUFF_PKG_ERRORS on error
  162 AC_DEFUN(PKG_CHECK_MODULES, [
  163   succeeded=no
  164 
  165   if test -z "$PKG_CONFIG"; then
  166     AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
  167   fi
  168 
  169   if test "$PKG_CONFIG" = "no" ; then
  170      echo "*** The pkg-config script could not be found. Make sure it is"
  171      echo "*** in your path, or set the PKG_CONFIG environment variable"
  172      echo "*** to the full path to pkg-config."
  173      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  174   else
  175      PKG_CONFIG_MIN_VERSION=0.9.0
  176      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  177         AC_MSG_CHECKING(for $2)
  178 
  179         if $PKG_CONFIG --exists "$2" ; then
  180             AC_MSG_RESULT(yes)
  181             succeeded=yes
  182 
  183             AC_MSG_CHECKING($1_CFLAGS)
  184             $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
  185             AC_MSG_RESULT($$1_CFLAGS)
  186 
  187             AC_MSG_CHECKING($1_LIBS)
  188             $1_LIBS=`$PKG_CONFIG --libs "$2"`
  189             AC_MSG_RESULT($$1_LIBS)
  190         else
  191             $1_CFLAGS=""
  192             $1_LIBS=""
  193             ## If we have a custom action on failure, don't print errors, but 
  194             ## do set a variable so people can do so.
  195             $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
  196             ifelse([$4], ,echo $$1_PKG_ERRORS,)
  197         fi
  198 
  199         AC_SUBST($1_CFLAGS)
  200         AC_SUBST($1_LIBS)
  201      else
  202         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  203         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  204      fi
  205   fi
  206 
  207   if test $succeeded = yes; then
  208      ifelse([$3], , :, [$3])
  209   else
  210      ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
  211   fi
  212 ])
  213 
  214 
  215