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

Diff of /dejagnu/aclocal.m4

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

revision 1.4 by rsavoye, Wed May 30 15:35:50 2001 UTC revision 1.5 by rsavoye, Fri Apr 26 05:56:49 2002 UTC
# Line 1  Line 1 
1  dnl aclocal.m4 generated automatically by aclocal 1.4  # aclocal.m4 generated automatically by aclocal 1.5
2    
3  dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.  # Copyright 1996, 1997, 1998, 1999, 2000, 2001
4  dnl This file is free software; the Free Software Foundation  # Free Software Foundation, Inc.
5  dnl gives unlimited permission to copy and/or distribute it,  # This file is free software; the Free Software Foundation
6  dnl with or without modifications, as long as this notice is preserved.  # gives unlimited permission to copy and/or distribute it,
7    # with or without modifications, as long as this notice is preserved.
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  # This program is distributed in the hope that it will be useful,
10  dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A  # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11  dnl PARTICULAR PURPOSE.  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12    # PARTICULAR PURPOSE.
13    
14  AC_DEFUN(DJ_AC_STL, [  AC_DEFUN(DJ_AC_STL, [
15  AC_MSG_CHECKING(for STL versions)  AC_MSG_CHECKING(for STL versions)
# Line 125  AC_SUBST(DOCBOOK) Line 126  AC_SUBST(DOCBOOK)
126  # some checks are only needed if your package does certain things.  # some checks are only needed if your package does certain things.
127  # But this isn't really a big deal.  # But this isn't really a big deal.
128    
129  # serial 1  # serial 5
   
 dnl Usage:  
 dnl AM_INIT_AUTOMAKE(package,version, [no-define])  
130    
131  AC_DEFUN(AM_INIT_AUTOMAKE,  # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
132  [AC_REQUIRE([AC_PROG_INSTALL])  # written in clear, in which case automake, when reading aclocal.m4,
133  PACKAGE=[$1]  # will think it sees a *use*, and therefore will trigger all it's
134  AC_SUBST(PACKAGE)  # C support machinery.  Also note that it means that autoscan, seeing
135  VERSION=[$2]  # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
136  AC_SUBST(VERSION)  
137  dnl test to see if srcdir already configured  
138  if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then  # We require 2.13 because we rely on SHELL being computed by configure.
139    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])  AC_PREREQ([2.13])
140    
141    # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
142    # -----------------------------------------------------------
143    # If MACRO-NAME is provided do IF-PROVIDED, else IF-NOT-PROVIDED.
144    # The purpose of this macro is to provide the user with a means to
145    # check macros which are provided without letting her know how the
146    # information is coded.
147    # If this macro is not defined by Autoconf, define it here.
148    ifdef([AC_PROVIDE_IFELSE],
149          [],
150          [define([AC_PROVIDE_IFELSE],
151                  [ifdef([AC_PROVIDE_$1],
152                         [$2], [$3])])])
153    
154    
155    # AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE])
156    # ----------------------------------------------
157    AC_DEFUN([AM_INIT_AUTOMAKE],
158    [AC_REQUIRE([AC_PROG_INSTALL])dnl
159    # test to see if srcdir already configured
160    if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
161       test -f $srcdir/config.status; then
162      AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first])
163  fi  fi
164    
165    # Define the identity of the package.
166    PACKAGE=$1
167    AC_SUBST(PACKAGE)dnl
168    VERSION=$2
169    AC_SUBST(VERSION)dnl
170  ifelse([$3],,  ifelse([$3],,
171  AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])  [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
172  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])
173  AC_REQUIRE([AM_SANITY_CHECK])  
174  AC_REQUIRE([AC_ARG_PROGRAM])  # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
175  dnl FIXME This is truly gross.  # the ones we care about.
176  missing_dir=`cd $ac_aux_dir && pwd`  ifdef([m4_pattern_allow],
177  AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)        [m4_pattern_allow([^AM_[A-Z]+FLAGS])])dnl
178  AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)  
179  AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)  # Autoconf 2.50 always computes EXEEXT.  However we need to be
180  AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)  # compatible with 2.13, for now.  So we always define EXEEXT, but we
181  AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)  # don't compute it.
182  AC_REQUIRE([AC_PROG_MAKE_SET])])  AC_SUBST(EXEEXT)
183    # Similar for OBJEXT -- only we only use OBJEXT if the user actually
184    # requests that it be used.  This is a bit dumb.
185    : ${OBJEXT=o}
186    AC_SUBST(OBJEXT)
187    
188    # Some tools Automake needs.
189    AC_REQUIRE([AM_SANITY_CHECK])dnl
190    AC_REQUIRE([AC_ARG_PROGRAM])dnl
191    AM_MISSING_PROG(ACLOCAL, aclocal)
192    AM_MISSING_PROG(AUTOCONF, autoconf)
193    AM_MISSING_PROG(AUTOMAKE, automake)
194    AM_MISSING_PROG(AUTOHEADER, autoheader)
195    AM_MISSING_PROG(MAKEINFO, makeinfo)
196    AM_MISSING_PROG(AMTAR, tar)
197    AM_PROG_INSTALL_SH
198    AM_PROG_INSTALL_STRIP
199    # We need awk for the "check" target.  The system "awk" is bad on
200    # some platforms.
201    AC_REQUIRE([AC_PROG_AWK])dnl
202    AC_REQUIRE([AC_PROG_MAKE_SET])dnl
203    AC_REQUIRE([AM_DEP_TRACK])dnl
204    AC_REQUIRE([AM_SET_DEPDIR])dnl
205    AC_PROVIDE_IFELSE([AC_PROG_][CC],
206                      [_AM_DEPENDENCIES(CC)],
207                      [define([AC_PROG_][CC],
208                              defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
209    AC_PROVIDE_IFELSE([AC_PROG_][CXX],
210                      [_AM_DEPENDENCIES(CXX)],
211                      [define([AC_PROG_][CXX],
212                              defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
213    ])
214    
215  #  #
216  # Check to make sure that the build environment is sane.  # Check to make sure that the build environment is sane.
217  #  #
218    
219  AC_DEFUN(AM_SANITY_CHECK,  # serial 3
220    
221    # AM_SANITY_CHECK
222    # ---------------
223    AC_DEFUN([AM_SANITY_CHECK],
224  [AC_MSG_CHECKING([whether build environment is sane])  [AC_MSG_CHECKING([whether build environment is sane])
225  # Just in case  # Just in case
226  sleep 1  sleep 1
227  echo timestamp > conftestfile  echo timestamp > conftest.file
228  # Do `set' in a subshell so we don't clobber the current shell's  # Do `set' in a subshell so we don't clobber the current shell's
229  # arguments.  Must try -L first in case configure is actually a  # arguments.  Must try -L first in case configure is actually a
230  # symlink; some systems play weird games with the mod time of symlinks  # symlink; some systems play weird games with the mod time of symlinks
231  # (eg FreeBSD returns the mod time of the symlink's containing  # (eg FreeBSD returns the mod time of the symlink's containing
232  # directory).  # directory).
233  if (  if (
234     set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`     set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
235     if test "[$]*" = "X"; then     if test "$[*]" = "X"; then
236        # -L didn't work.        # -L didn't work.
237        set X `ls -t $srcdir/configure conftestfile`        set X `ls -t $srcdir/configure conftest.file`
238     fi     fi
239     if test "[$]*" != "X $srcdir/configure conftestfile" \     rm -f conftest.file
240        && test "[$]*" != "X conftestfile $srcdir/configure"; then     if test "$[*]" != "X $srcdir/configure conftest.file" \
241          && test "$[*]" != "X conftest.file $srcdir/configure"; then
242    
243        # If neither matched, then we have a broken ls.  This can happen        # If neither matched, then we have a broken ls.  This can happen
244        # if, for instance, CONFIG_SHELL is bash and it inherits a        # if, for instance, CONFIG_SHELL is bash and it inherits a
# Line 185  if ( Line 248  if (
248  alias in your environment])  alias in your environment])
249     fi     fi
250    
251     test "[$]2" = conftestfile     test "$[2]" = conftest.file
252     )     )
253  then  then
254     # Ok.     # Ok.
# Line 194  else Line 257  else
257     AC_MSG_ERROR([newly created file is older than distributed files!     AC_MSG_ERROR([newly created file is older than distributed files!
258  Check your system clock])  Check your system clock])
259  fi  fi
 rm -f conftest*  
260  AC_MSG_RESULT(yes)])  AC_MSG_RESULT(yes)])
261    
262  dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)  
263  dnl The program must properly implement --version.  # serial 2
264  AC_DEFUN(AM_MISSING_PROG,  
265  [AC_MSG_CHECKING(for working $2)  # AM_MISSING_PROG(NAME, PROGRAM)
266  # Run test in a subshell; some versions of sh will print an error if  # ------------------------------
267  # an executable is not found, even if stderr is redirected.  AC_DEFUN([AM_MISSING_PROG],
268  # Redirect stdin to placate older versions of autoconf.  Sigh.  [AC_REQUIRE([AM_MISSING_HAS_RUN])
269  if ($2 --version) < /dev/null > /dev/null 2>&1; then  $1=${$1-"${am_missing_run}$2"}
270     $1=$2  AC_SUBST($1)])
271     AC_MSG_RESULT(found)  
272    
273    # AM_MISSING_HAS_RUN
274    # ------------------
275    # Define MISSING if not defined so far and test if it supports --run.
276    # If it does, set am_missing_run to use it, otherwise, to nothing.
277    AC_DEFUN([AM_MISSING_HAS_RUN],
278    [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
279    test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
280    # Use eval to expand $SHELL
281    if eval "$MISSING --run true"; then
282      am_missing_run="$MISSING --run "
283  else  else
284     $1="$3/missing $2"    am_missing_run=
285     AC_MSG_RESULT(missing)    am_backtick='`'
286      AC_MSG_WARN([${am_backtick}missing' script is too old or missing])
287  fi  fi
288  AC_SUBST($1)])  ])
289    
290    # AM_AUX_DIR_EXPAND
291    
292    # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
293    # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
294    # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
295    #
296    # Of course, Automake must honor this variable whenever it calls a
297    # tool from the auxiliary directory.  The problem is that $srcdir (and
298    # therefore $ac_aux_dir as well) can be either absolute or relative,
299    # depending on how configure is run.  This is pretty annoying, since
300    # it makes $ac_aux_dir quite unusable in subdirectories: in the top
301    # source directory, any form will work fine, but in subdirectories a
302    # relative path needs to be adjusted first.
303    #
304    # $ac_aux_dir/missing
305    #    fails when called from a subdirectory if $ac_aux_dir is relative
306    # $top_srcdir/$ac_aux_dir/missing
307    #    fails if $ac_aux_dir is absolute,
308    #    fails when called from a subdirectory in a VPATH build with
309    #          a relative $ac_aux_dir
310    #
311    # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
312    # are both prefixed by $srcdir.  In an in-source build this is usually
313    # harmless because $srcdir is `.', but things will broke when you
314    # start a VPATH build or use an absolute $srcdir.
315    #
316    # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
317    # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
318    #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
319    # and then we would define $MISSING as
320    #   MISSING="\${SHELL} $am_aux_dir/missing"
321    # This will work as long as MISSING is not called from configure, because
322    # unfortunately $(top_srcdir) has no meaning in configure.
323    # However there are other variables, like CC, which are often used in
324    # configure, and could therefore not use this "fixed" $ac_aux_dir.
325    #
326    # Another solution, used here, is to always expand $ac_aux_dir to an
327    # absolute PATH.  The drawback is that using absolute paths prevent a
328    # configured tree to be moved without reconfiguration.
329    
330    AC_DEFUN([AM_AUX_DIR_EXPAND], [
331    # expand $ac_aux_dir to an absolute path
332    am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
333    ])
334    
335    # AM_PROG_INSTALL_SH
336    # ------------------
337    # Define $install_sh.
338    AC_DEFUN([AM_PROG_INSTALL_SH],
339    [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
340    install_sh=${install_sh-"$am_aux_dir/install-sh"}
341    AC_SUBST(install_sh)])
342    
343    # One issue with vendor `install' (even GNU) is that you can't
344    # specify the program used to strip binaries.  This is especially
345    # annoying in cross-compiling environments, where the build's strip
346    # is unlikely to handle the host's binaries.
347    # Fortunately install-sh will honor a STRIPPROG variable, so we
348    # always use install-sh in `make install-strip', and initialize
349    # STRIPPROG with the value of the STRIP variable (set by the user).
350    AC_DEFUN([AM_PROG_INSTALL_STRIP],
351    [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
352    INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
353    AC_SUBST([INSTALL_STRIP_PROGRAM])])
354    
355    # serial 4                                              -*- Autoconf -*-
356    
357    
358    
359    # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
360    # written in clear, in which case automake, when reading aclocal.m4,
361    # will think it sees a *use*, and therefore will trigger all it's
362    # C support machinery.  Also note that it means that autoscan, seeing
363    # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
364    
365    
366    
367    # _AM_DEPENDENCIES(NAME)
368    # ---------------------
369    # See how the compiler implements dependency checking.
370    # NAME is "CC", "CXX" or "OBJC".
371    # We try a few techniques and use that to set a single cache variable.
372    #
373    # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
374    # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
375    # dependency, and given that the user is not expected to run this macro,
376    # just rely on AC_PROG_CC.
377    AC_DEFUN([_AM_DEPENDENCIES],
378    [AC_REQUIRE([AM_SET_DEPDIR])dnl
379    AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
380    AC_REQUIRE([AM_MAKE_INCLUDE])dnl
381    AC_REQUIRE([AM_DEP_TRACK])dnl
382    
383    ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
384           [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
385           [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc']
386           [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
387                       [depcc="$$1"   am_compiler_list=])
388    
389    AC_CACHE_CHECK([dependency style of $depcc],
390                   [am_cv_$1_dependencies_compiler_type],
391    [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
392      # We make a subdir and do the tests there.  Otherwise we can end up
393      # making bogus files that we don't know about and never remove.  For
394      # instance it was reported that on HP-UX the gcc test will end up
395      # making a dummy file named `D' -- because `-MD' means `put the output
396      # in D'.
397      mkdir conftest.dir
398      # Copy depcomp to subdir because otherwise we won't find it if we're
399      # using a relative directory.
400      cp "$am_depcomp" conftest.dir
401      cd conftest.dir
402    
403      am_cv_$1_dependencies_compiler_type=none
404      if test "$am_compiler_list" = ""; then
405         am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
406      fi
407      for depmode in $am_compiler_list; do
408        # We need to recreate these files for each test, as the compiler may
409        # overwrite some of them when testing with obscure command lines.
410        # This happens at least with the AIX C compiler.
411        echo '#include "conftest.h"' > conftest.c
412        echo 'int i;' > conftest.h
413        echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
414    
415        case $depmode in
416        nosideeffect)
417          # after this tag, mechanisms are not by side-effect, so they'll
418          # only be used when explicitly requested
419          if test "x$enable_dependency_tracking" = xyes; then
420            continue
421          else
422            break
423          fi
424          ;;
425        none) break ;;
426        esac
427        # We check with `-c' and `-o' for the sake of the "dashmstdout"
428        # mode.  It turns out that the SunPro C++ compiler does not properly
429        # handle `-M -o', and we need to detect this.
430        if depmode=$depmode \
431           source=conftest.c object=conftest.o \
432           depfile=conftest.Po tmpdepfile=conftest.TPo \
433           $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
434           grep conftest.h conftest.Po > /dev/null 2>&1 &&
435           ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
436          am_cv_$1_dependencies_compiler_type=$depmode
437          break
438        fi
439      done
440    
441      cd ..
442      rm -rf conftest.dir
443    else
444      am_cv_$1_dependencies_compiler_type=none
445    fi
446    ])
447    $1DEPMODE="depmode=$am_cv_$1_dependencies_compiler_type"
448    AC_SUBST([$1DEPMODE])
449    ])
450    
451    
452    # AM_SET_DEPDIR
453    # -------------
454    # Choose a directory name for dependency files.
455    # This macro is AC_REQUIREd in _AM_DEPENDENCIES
456    AC_DEFUN([AM_SET_DEPDIR],
457    [rm -f .deps 2>/dev/null
458    mkdir .deps 2>/dev/null
459    if test -d .deps; then
460      DEPDIR=.deps
461    else
462      # MS-DOS does not allow filenames that begin with a dot.
463      DEPDIR=_deps
464    fi
465    rmdir .deps 2>/dev/null
466    AC_SUBST(DEPDIR)
467    ])
468    
469    
470    # AM_DEP_TRACK
471    # ------------
472    AC_DEFUN([AM_DEP_TRACK],
473    [AC_ARG_ENABLE(dependency-tracking,
474    [  --disable-dependency-tracking Speeds up one-time builds
475      --enable-dependency-tracking  Do not reject slow dependency extractors])
476    if test "x$enable_dependency_tracking" != xno; then
477      am_depcomp="$ac_aux_dir/depcomp"
478      AMDEPBACKSLASH='\'
479    fi
480    AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
481    pushdef([subst], defn([AC_SUBST]))
482    subst(AMDEPBACKSLASH)
483    popdef([subst])
484    ])
485    
486    # Generate code to set up dependency tracking.
487    # This macro should only be invoked once -- use via AC_REQUIRE.
488    # Usage:
489    # AM_OUTPUT_DEPENDENCY_COMMANDS
490    
491    #
492    # This code is only required when automatic dependency tracking
493    # is enabled.  FIXME.  This creates each `.P' file that we will
494    # need in order to bootstrap the dependency handling code.
495    AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[
496    AC_OUTPUT_COMMANDS([
497    test x"$AMDEP_TRUE" != x"" ||
498    for mf in $CONFIG_FILES; do
499      case "$mf" in
500      Makefile) dirpart=.;;
501      */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
502      *) continue;;
503      esac
504      grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
505      # Extract the definition of DEP_FILES from the Makefile without
506      # running `make'.
507      DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
508      test -z "$DEPDIR" && continue
509      # When using ansi2knr, U may be empty or an underscore; expand it
510      U=`sed -n -e '/^U = / s///p' < "$mf"`
511      test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
512      # We invoke sed twice because it is the simplest approach to
513      # changing $(DEPDIR) to its actual value in the expansion.
514      for file in `sed -n -e '
515        /^DEP_FILES = .*\\\\$/ {
516          s/^DEP_FILES = //
517          :loop
518            s/\\\\$//
519            p
520            n
521            /\\\\$/ b loop
522          p
523        }
524        /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
525           sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
526        # Make sure the directory exists.
527        test -f "$dirpart/$file" && continue
528        fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
529        $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
530        # echo "creating $dirpart/$file"
531        echo '# dummy' > "$dirpart/$file"
532      done
533    done
534    ], [AMDEP_TRUE="$AMDEP_TRUE"
535    ac_aux_dir="$ac_aux_dir"])])
536    
537    # AM_MAKE_INCLUDE()
538    # -----------------
539    # Check to see how make treats includes.
540    AC_DEFUN([AM_MAKE_INCLUDE],
541    [am_make=${MAKE-make}
542    cat > confinc << 'END'
543    doit:
544            @echo done
545    END
546    # If we don't find an include directive, just comment out the code.
547    AC_MSG_CHECKING([for style of include used by $am_make])
548    am__include='#'
549    am__quote=
550    _am_result=none
551    # First try GNU make style include.
552    echo "include confinc" > confmf
553    # We grep out `Entering directory' and `Leaving directory'
554    # messages which can occur if `w' ends up in MAKEFLAGS.
555    # In particular we don't look at `^make:' because GNU make might
556    # be invoked under some other name (usually "gmake"), in which
557    # case it prints its new name instead of `make'.
558    if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
559       am__include=include
560       am__quote=
561       _am_result=GNU
562    fi
563    # Now try BSD make style include.
564    if test "$am__include" = "#"; then
565       echo '.include "confinc"' > confmf
566       if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
567          am__include=.include
568          am__quote='"'
569          _am_result=BSD
570       fi
571    fi
572    AC_SUBST(am__include)
573    AC_SUBST(am__quote)
574    AC_MSG_RESULT($_am_result)
575    rm -f confinc confmf
576    ])
577    
578    # serial 3
579    
580    # AM_CONDITIONAL(NAME, SHELL-CONDITION)
581    # -------------------------------------
582    # Define a conditional.
583    #
584    # FIXME: Once using 2.50, use this:
585    # m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl
586    AC_DEFUN([AM_CONDITIONAL],
587    [ifelse([$1], [TRUE],
588            [errprint(__file__:__line__: [$0: invalid condition: $1
589    ])dnl
590    m4exit(1)])dnl
591    ifelse([$1], [FALSE],
592           [errprint(__file__:__line__: [$0: invalid condition: $1
593    ])dnl
594    m4exit(1)])dnl
595    AC_SUBST([$1_TRUE])
596    AC_SUBST([$1_FALSE])
597    if $2; then
598      $1_TRUE=
599      $1_FALSE='#'
600    else
601      $1_TRUE='#'
602      $1_FALSE=
603    fi])
604    
605  # Add --enable-maintainer-mode option to configure.  # Add --enable-maintainer-mode option to configure.
606  # From Jim Meyering  # From Jim Meyering
607    
608  # serial 1  # serial 1
609    
610  AC_DEFUN(AM_MAINTAINER_MODE,  AC_DEFUN([AM_MAINTAINER_MODE],
611  [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])  [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
612    dnl maintainer-mode is disabled by default    dnl maintainer-mode is disabled by default
613    AC_ARG_ENABLE(maintainer-mode,    AC_ARG_ENABLE(maintainer-mode,
# Line 226  AC_DEFUN(AM_MAINTAINER_MODE, Line 615  AC_DEFUN(AM_MAINTAINER_MODE,
615                            (and sometimes confusing) to the casual installer],                            (and sometimes confusing) to the casual installer],
616        USE_MAINTAINER_MODE=$enableval,        USE_MAINTAINER_MODE=$enableval,
617        USE_MAINTAINER_MODE=no)        USE_MAINTAINER_MODE=no)
618    AC_MSG_RESULT($USE_MAINTAINER_MODE)    AC_MSG_RESULT([$USE_MAINTAINER_MODE])
619    AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)    AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
620    MAINT=$MAINTAINER_MODE_TRUE    MAINT=$MAINTAINER_MODE_TRUE
621    AC_SUBST(MAINT)dnl    AC_SUBST(MAINT)dnl
622  ]  ]
623  )  )
624    
 # 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])  
   
   
 dnl AM_PROG_LEX  
 dnl Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT  
 AC_DEFUN(AM_PROG_LEX,  
 [missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1)  
 AC_CHECK_PROGS(LEX, flex lex, "$missing_dir/missing flex")  
 AC_PROG_LEX  
 AC_DECL_YYTEXT])  
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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