aclocal.m4
author Thomas Bernard <miniupnp@free.fr>
Fri, 30 Nov 2018 11:04:15 +0100
branchSDL-1.2
changeset 634 68f958f43339
parent 597 85d1fcc58846
permissions -rw-r--r--
IMG_xcf.c: Avoid infinite loop in read_xcf_header()
sezeroz@597
     1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
slouken@285
     2
slouken@285
     3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
sezeroz@597
     4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
slouken@285
     5
# This file is free software; the Free Software Foundation
slouken@285
     6
# gives unlimited permission to copy and/or distribute it,
slouken@285
     7
# with or without modifications, as long as this notice is preserved.
slouken@285
     8
slouken@285
     9
# This program is distributed in the hope that it will be useful,
slouken@285
    10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
slouken@285
    11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
slouken@285
    12
# PARTICULAR PURPOSE.
slouken@285
    13
sezeroz@597
    14
m4_ifndef([AC_AUTOCONF_VERSION],
sezeroz@597
    15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
sezeroz@597
    16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
sezeroz@597
    17
[m4_warning([this file was generated for autoconf 2.63.
sezeroz@597
    18
You have another version of autoconf.  It may work, but is not guaranteed to.
sezeroz@597
    19
If you have problems, you may need to regenerate the build system entirely.
sezeroz@597
    20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
slouken@285
    21
sezeroz@597
    22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
slouken@285
    23
#
slouken@285
    24
# This file is free software; the Free Software Foundation
slouken@285
    25
# gives unlimited permission to copy and/or distribute it,
slouken@285
    26
# with or without modifications, as long as this notice is preserved.
slouken@285
    27
slouken@285
    28
# AM_AUTOMAKE_VERSION(VERSION)
slouken@285
    29
# ----------------------------
slouken@285
    30
# Automake X.Y traces this macro to ensure aclocal.m4 has been
slouken@285
    31
# generated from the m4 files accompanying Automake X.Y.
slouken@285
    32
# (This private macro should not be called outside this file.)
slouken@285
    33
AC_DEFUN([AM_AUTOMAKE_VERSION],
sezeroz@597
    34
[am__api_version='1.11'
slouken@285
    35
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
slouken@285
    36
dnl require some minimum version.  Point them to the right macro.
sezeroz@597
    37
m4_if([$1], [1.11.1], [],
slouken@285
    38
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
slouken@285
    39
])
slouken@285
    40
slouken@285
    41
# _AM_AUTOCONF_VERSION(VERSION)
slouken@285
    42
# -----------------------------
slouken@285
    43
# aclocal traces this macro to find the Autoconf version.
slouken@285
    44
# This is a private macro too.  Using m4_define simplifies
slouken@285
    45
# the logic in aclocal, which can simply ignore this definition.
slouken@285
    46
m4_define([_AM_AUTOCONF_VERSION], [])
slouken@285
    47
slouken@285
    48
# AM_SET_CURRENT_AUTOMAKE_VERSION
slouken@285
    49
# -------------------------------
slouken@285
    50
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
sezeroz@597
    51
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
slouken@285
    52
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
sezeroz@597
    53
[AM_AUTOMAKE_VERSION([1.11.1])dnl
sezeroz@597
    54
m4_ifndef([AC_AUTOCONF_VERSION],
sezeroz@597
    55
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
sezeroz@597
    56
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
slouken@285
    57
slouken@285
    58
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
slouken@285
    59
slouken@285
    60
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
slouken@285
    61
#
slouken@285
    62
# This file is free software; the Free Software Foundation
slouken@285
    63
# gives unlimited permission to copy and/or distribute it,
slouken@285
    64
# with or without modifications, as long as this notice is preserved.
slouken@285
    65
slouken@285
    66
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
slouken@285
    67
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
slouken@285
    68
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
slouken@285
    69
#
slouken@285
    70
# Of course, Automake must honor this variable whenever it calls a
slouken@285
    71
# tool from the auxiliary directory.  The problem is that $srcdir (and
slouken@285
    72
# therefore $ac_aux_dir as well) can be either absolute or relative,
slouken@285
    73
# depending on how configure is run.  This is pretty annoying, since
slouken@285
    74
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
slouken@285
    75
# source directory, any form will work fine, but in subdirectories a
slouken@285
    76
# relative path needs to be adjusted first.
slouken@285
    77
#
slouken@285
    78
# $ac_aux_dir/missing
slouken@285
    79
#    fails when called from a subdirectory if $ac_aux_dir is relative
slouken@285
    80
# $top_srcdir/$ac_aux_dir/missing
slouken@285
    81
#    fails if $ac_aux_dir is absolute,
slouken@285
    82
#    fails when called from a subdirectory in a VPATH build with
slouken@285
    83
#          a relative $ac_aux_dir
slouken@285
    84
#
slouken@285
    85
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
slouken@285
    86
# are both prefixed by $srcdir.  In an in-source build this is usually
slouken@285
    87
# harmless because $srcdir is `.', but things will broke when you
slouken@285
    88
# start a VPATH build or use an absolute $srcdir.
slouken@285
    89
#
slouken@285
    90
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
slouken@285
    91
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
slouken@285
    92
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
slouken@285
    93
# and then we would define $MISSING as
slouken@285
    94
#   MISSING="\${SHELL} $am_aux_dir/missing"
slouken@285
    95
# This will work as long as MISSING is not called from configure, because
slouken@285
    96
# unfortunately $(top_srcdir) has no meaning in configure.
slouken@285
    97
# However there are other variables, like CC, which are often used in
slouken@285
    98
# configure, and could therefore not use this "fixed" $ac_aux_dir.
slouken@285
    99
#
slouken@285
   100
# Another solution, used here, is to always expand $ac_aux_dir to an
slouken@285
   101
# absolute PATH.  The drawback is that using absolute paths prevent a
slouken@285
   102
# configured tree to be moved without reconfiguration.
slouken@285
   103
slouken@285
   104
AC_DEFUN([AM_AUX_DIR_EXPAND],
slouken@285
   105
[dnl Rely on autoconf to set up CDPATH properly.
slouken@285
   106
AC_PREREQ([2.50])dnl
slouken@285
   107
# expand $ac_aux_dir to an absolute path
slouken@285
   108
am_aux_dir=`cd $ac_aux_dir && pwd`
slouken@285
   109
])
slouken@285
   110
slouken@285
   111
# AM_CONDITIONAL                                            -*- Autoconf -*-
slouken@285
   112
sezeroz@597
   113
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
slouken@285
   114
# Free Software Foundation, Inc.
slouken@285
   115
#
slouken@285
   116
# This file is free software; the Free Software Foundation
slouken@285
   117
# gives unlimited permission to copy and/or distribute it,
slouken@285
   118
# with or without modifications, as long as this notice is preserved.
slouken@285
   119
sezeroz@597
   120
# serial 9
slouken@285
   121
slouken@285
   122
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
slouken@285
   123
# -------------------------------------
slouken@285
   124
# Define a conditional.
slouken@285
   125
AC_DEFUN([AM_CONDITIONAL],
slouken@285
   126
[AC_PREREQ(2.52)dnl
slouken@285
   127
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
slouken@285
   128
	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
slouken@285
   129
AC_SUBST([$1_TRUE])dnl
slouken@285
   130
AC_SUBST([$1_FALSE])dnl
slouken@285
   131
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
slouken@285
   132
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
sezeroz@597
   133
m4_define([_AM_COND_VALUE_$1], [$2])dnl
slouken@285
   134
if $2; then
slouken@285
   135
  $1_TRUE=
slouken@285
   136
  $1_FALSE='#'
slouken@285
   137
else
slouken@285
   138
  $1_TRUE='#'
slouken@285
   139
  $1_FALSE=
slouken@285
   140
fi
slouken@285
   141
AC_CONFIG_COMMANDS_PRE(
slouken@285
   142
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
slouken@285
   143
  AC_MSG_ERROR([[conditional "$1" was never defined.
slouken@285
   144
Usually this means the macro was only invoked conditionally.]])
slouken@285
   145
fi])])
slouken@285
   146
sezeroz@597
   147
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
slouken@285
   148
# Free Software Foundation, Inc.
slouken@285
   149
#
slouken@285
   150
# This file is free software; the Free Software Foundation
slouken@285
   151
# gives unlimited permission to copy and/or distribute it,
slouken@285
   152
# with or without modifications, as long as this notice is preserved.
slouken@285
   153
sezeroz@597
   154
# serial 10
slouken@285
   155
slouken@285
   156
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
slouken@285
   157
# written in clear, in which case automake, when reading aclocal.m4,
slouken@285
   158
# will think it sees a *use*, and therefore will trigger all it's
slouken@285
   159
# C support machinery.  Also note that it means that autoscan, seeing
slouken@285
   160
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
slouken@285
   161
slouken@285
   162
slouken@285
   163
# _AM_DEPENDENCIES(NAME)
slouken@285
   164
# ----------------------
slouken@285
   165
# See how the compiler implements dependency checking.
slouken@285
   166
# NAME is "CC", "CXX", "GCJ", or "OBJC".
slouken@285
   167
# We try a few techniques and use that to set a single cache variable.
slouken@285
   168
#
slouken@285
   169
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
slouken@285
   170
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
slouken@285
   171
# dependency, and given that the user is not expected to run this macro,
slouken@285
   172
# just rely on AC_PROG_CC.
slouken@285
   173
AC_DEFUN([_AM_DEPENDENCIES],
slouken@285
   174
[AC_REQUIRE([AM_SET_DEPDIR])dnl
slouken@285
   175
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
slouken@285
   176
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
slouken@285
   177
AC_REQUIRE([AM_DEP_TRACK])dnl
slouken@285
   178
slouken@285
   179
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
slouken@285
   180
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
slouken@285
   181
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
slouken@285
   182
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
slouken@285
   183
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
slouken@285
   184
                   [depcc="$$1"   am_compiler_list=])
slouken@285
   185
slouken@285
   186
AC_CACHE_CHECK([dependency style of $depcc],
slouken@285
   187
               [am_cv_$1_dependencies_compiler_type],
slouken@285
   188
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
slouken@285
   189
  # We make a subdir and do the tests there.  Otherwise we can end up
slouken@285
   190
  # making bogus files that we don't know about and never remove.  For
slouken@285
   191
  # instance it was reported that on HP-UX the gcc test will end up
slouken@285
   192
  # making a dummy file named `D' -- because `-MD' means `put the output
slouken@285
   193
  # in D'.
slouken@285
   194
  mkdir conftest.dir
slouken@285
   195
  # Copy depcomp to subdir because otherwise we won't find it if we're
slouken@285
   196
  # using a relative directory.
slouken@285
   197
  cp "$am_depcomp" conftest.dir
slouken@285
   198
  cd conftest.dir
slouken@285
   199
  # We will build objects and dependencies in a subdirectory because
slouken@285
   200
  # it helps to detect inapplicable dependency modes.  For instance
slouken@285
   201
  # both Tru64's cc and ICC support -MD to output dependencies as a
slouken@285
   202
  # side effect of compilation, but ICC will put the dependencies in
slouken@285
   203
  # the current directory while Tru64 will put them in the object
slouken@285
   204
  # directory.
slouken@285
   205
  mkdir sub
slouken@285
   206
slouken@285
   207
  am_cv_$1_dependencies_compiler_type=none
slouken@285
   208
  if test "$am_compiler_list" = ""; then
slouken@285
   209
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
slouken@285
   210
  fi
sezeroz@597
   211
  am__universal=false
sezeroz@597
   212
  m4_case([$1], [CC],
sezeroz@597
   213
    [case " $depcc " in #(
sezeroz@597
   214
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
sezeroz@597
   215
     esac],
sezeroz@597
   216
    [CXX],
sezeroz@597
   217
    [case " $depcc " in #(
sezeroz@597
   218
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
sezeroz@597
   219
     esac])
sezeroz@597
   220
slouken@285
   221
  for depmode in $am_compiler_list; do
slouken@285
   222
    # Setup a source with many dependencies, because some compilers
slouken@285
   223
    # like to wrap large dependency lists on column 80 (with \), and
slouken@285
   224
    # we should not choose a depcomp mode which is confused by this.
slouken@285
   225
    #
slouken@285
   226
    # We need to recreate these files for each test, as the compiler may
slouken@285
   227
    # overwrite some of them when testing with obscure command lines.
slouken@285
   228
    # This happens at least with the AIX C compiler.
slouken@285
   229
    : > sub/conftest.c
slouken@285
   230
    for i in 1 2 3 4 5 6; do
slouken@285
   231
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
slouken@285
   232
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
slouken@285
   233
      # Solaris 8's {/usr,}/bin/sh.
slouken@285
   234
      touch sub/conftst$i.h
slouken@285
   235
    done
slouken@285
   236
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
slouken@285
   237
sezeroz@597
   238
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
sezeroz@597
   239
    # mode.  It turns out that the SunPro C++ compiler does not properly
sezeroz@597
   240
    # handle `-M -o', and we need to detect this.  Also, some Intel
sezeroz@597
   241
    # versions had trouble with output in subdirs
sezeroz@597
   242
    am__obj=sub/conftest.${OBJEXT-o}
sezeroz@597
   243
    am__minus_obj="-o $am__obj"
slouken@285
   244
    case $depmode in
sezeroz@597
   245
    gcc)
sezeroz@597
   246
      # This depmode causes a compiler race in universal mode.
sezeroz@597
   247
      test "$am__universal" = false || continue
sezeroz@597
   248
      ;;
slouken@285
   249
    nosideeffect)
slouken@285
   250
      # after this tag, mechanisms are not by side-effect, so they'll
slouken@285
   251
      # only be used when explicitly requested
slouken@285
   252
      if test "x$enable_dependency_tracking" = xyes; then
slouken@285
   253
	continue
slouken@285
   254
      else
slouken@285
   255
	break
slouken@285
   256
      fi
slouken@285
   257
      ;;
sezeroz@597
   258
    msvisualcpp | msvcmsys)
sezeroz@597
   259
      # This compiler won't grok `-c -o', but also, the minuso test has
sezeroz@597
   260
      # not run yet.  These depmodes are late enough in the game, and
sezeroz@597
   261
      # so weak that their functioning should not be impacted.
sezeroz@597
   262
      am__obj=conftest.${OBJEXT-o}
sezeroz@597
   263
      am__minus_obj=
sezeroz@597
   264
      ;;
slouken@285
   265
    none) break ;;
slouken@285
   266
    esac
slouken@285
   267
    if depmode=$depmode \
sezeroz@597
   268
       source=sub/conftest.c object=$am__obj \
slouken@285
   269
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
sezeroz@597
   270
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
slouken@285
   271
         >/dev/null 2>conftest.err &&
slouken@285
   272
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
slouken@285
   273
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
sezeroz@597
   274
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
slouken@285
   275
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
slouken@285
   276
      # icc doesn't choke on unknown options, it will just issue warnings
slouken@285
   277
      # or remarks (even with -Werror).  So we grep stderr for any message
slouken@285
   278
      # that says an option was ignored or not supported.
slouken@285
   279
      # When given -MP, icc 7.0 and 7.1 complain thusly:
slouken@285
   280
      #   icc: Command line warning: ignoring option '-M'; no argument required
slouken@285
   281
      # The diagnosis changed in icc 8.0:
slouken@285
   282
      #   icc: Command line remark: option '-MP' not supported
slouken@285
   283
      if (grep 'ignoring option' conftest.err ||
slouken@285
   284
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
slouken@285
   285
        am_cv_$1_dependencies_compiler_type=$depmode
slouken@285
   286
        break
slouken@285
   287
      fi
slouken@285
   288
    fi
slouken@285
   289
  done
slouken@285
   290
slouken@285
   291
  cd ..
slouken@285
   292
  rm -rf conftest.dir
slouken@285
   293
else
slouken@285
   294
  am_cv_$1_dependencies_compiler_type=none
slouken@285
   295
fi
slouken@285
   296
])
slouken@285
   297
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
slouken@285
   298
AM_CONDITIONAL([am__fastdep$1], [
slouken@285
   299
  test "x$enable_dependency_tracking" != xno \
slouken@285
   300
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
slouken@285
   301
])
slouken@285
   302
slouken@285
   303
slouken@285
   304
# AM_SET_DEPDIR
slouken@285
   305
# -------------
slouken@285
   306
# Choose a directory name for dependency files.
slouken@285
   307
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
slouken@285
   308
AC_DEFUN([AM_SET_DEPDIR],
slouken@285
   309
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
slouken@285
   310
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
slouken@285
   311
])
slouken@285
   312
slouken@285
   313
slouken@285
   314
# AM_DEP_TRACK
slouken@285
   315
# ------------
slouken@285
   316
AC_DEFUN([AM_DEP_TRACK],
slouken@285
   317
[AC_ARG_ENABLE(dependency-tracking,
slouken@285
   318
[  --disable-dependency-tracking  speeds up one-time build
slouken@285
   319
  --enable-dependency-tracking   do not reject slow dependency extractors])
slouken@285
   320
if test "x$enable_dependency_tracking" != xno; then
slouken@285
   321
  am_depcomp="$ac_aux_dir/depcomp"
slouken@285
   322
  AMDEPBACKSLASH='\'
slouken@285
   323
fi
slouken@285
   324
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
slouken@285
   325
AC_SUBST([AMDEPBACKSLASH])dnl
slouken@285
   326
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
slouken@285
   327
])
slouken@285
   328
slouken@285
   329
# Generate code to set up dependency tracking.              -*- Autoconf -*-
slouken@285
   330
sezeroz@597
   331
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
slouken@285
   332
# Free Software Foundation, Inc.
slouken@285
   333
#
slouken@285
   334
# This file is free software; the Free Software Foundation
slouken@285
   335
# gives unlimited permission to copy and/or distribute it,
slouken@285
   336
# with or without modifications, as long as this notice is preserved.
slouken@285
   337
sezeroz@597
   338
#serial 5
slouken@285
   339
slouken@285
   340
# _AM_OUTPUT_DEPENDENCY_COMMANDS
slouken@285
   341
# ------------------------------
slouken@285
   342
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
sezeroz@597
   343
[{
sezeroz@597
   344
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
sezeroz@597
   345
  # are listed without --file.  Let's play safe and only enable the eval
sezeroz@597
   346
  # if we detect the quoting.
sezeroz@597
   347
  case $CONFIG_FILES in
sezeroz@597
   348
  *\'*) eval set x "$CONFIG_FILES" ;;
sezeroz@597
   349
  *)   set x $CONFIG_FILES ;;
sezeroz@597
   350
  esac
sezeroz@597
   351
  shift
sezeroz@597
   352
  for mf
sezeroz@597
   353
  do
sezeroz@597
   354
    # Strip MF so we end up with the name of the file.
sezeroz@597
   355
    mf=`echo "$mf" | sed -e 's/:.*$//'`
sezeroz@597
   356
    # Check whether this is an Automake generated Makefile or not.
sezeroz@597
   357
    # We used to match only the files named `Makefile.in', but
sezeroz@597
   358
    # some people rename them; so instead we look at the file content.
sezeroz@597
   359
    # Grep'ing the first line is not enough: some people post-process
sezeroz@597
   360
    # each Makefile.in and add a new line on top of each file to say so.
sezeroz@597
   361
    # Grep'ing the whole file is not good either: AIX grep has a line
sezeroz@597
   362
    # limit of 2048, but all sed's we know have understand at least 4000.
sezeroz@597
   363
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
sezeroz@597
   364
      dirpart=`AS_DIRNAME("$mf")`
sezeroz@597
   365
    else
sezeroz@597
   366
      continue
sezeroz@597
   367
    fi
sezeroz@597
   368
    # Extract the definition of DEPDIR, am__include, and am__quote
sezeroz@597
   369
    # from the Makefile without running `make'.
sezeroz@597
   370
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
sezeroz@597
   371
    test -z "$DEPDIR" && continue
sezeroz@597
   372
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
sezeroz@597
   373
    test -z "am__include" && continue
sezeroz@597
   374
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
sezeroz@597
   375
    # When using ansi2knr, U may be empty or an underscore; expand it
sezeroz@597
   376
    U=`sed -n 's/^U = //p' < "$mf"`
sezeroz@597
   377
    # Find all dependency output files, they are included files with
sezeroz@597
   378
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
sezeroz@597
   379
    # simplest approach to changing $(DEPDIR) to its actual value in the
sezeroz@597
   380
    # expansion.
sezeroz@597
   381
    for file in `sed -n "
sezeroz@597
   382
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
sezeroz@597
   383
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
sezeroz@597
   384
      # Make sure the directory exists.
sezeroz@597
   385
      test -f "$dirpart/$file" && continue
sezeroz@597
   386
      fdir=`AS_DIRNAME(["$file"])`
sezeroz@597
   387
      AS_MKDIR_P([$dirpart/$fdir])
sezeroz@597
   388
      # echo "creating $dirpart/$file"
sezeroz@597
   389
      echo '# dummy' > "$dirpart/$file"
sezeroz@597
   390
    done
slouken@285
   391
  done
sezeroz@597
   392
}
slouken@285
   393
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
slouken@285
   394
slouken@285
   395
slouken@285
   396
# AM_OUTPUT_DEPENDENCY_COMMANDS
slouken@285
   397
# -----------------------------
slouken@285
   398
# This macro should only be invoked once -- use via AC_REQUIRE.
slouken@285
   399
#
slouken@285
   400
# This code is only required when automatic dependency tracking
slouken@285
   401
# is enabled.  FIXME.  This creates each `.P' file that we will
slouken@285
   402
# need in order to bootstrap the dependency handling code.
slouken@285
   403
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
slouken@285
   404
[AC_CONFIG_COMMANDS([depfiles],
slouken@285
   405
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
slouken@285
   406
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
slouken@285
   407
])
slouken@285
   408
slouken@285
   409
# Do all the work for Automake.                             -*- Autoconf -*-
slouken@285
   410
slouken@285
   411
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
sezeroz@597
   412
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
slouken@285
   413
#
slouken@285
   414
# This file is free software; the Free Software Foundation
slouken@285
   415
# gives unlimited permission to copy and/or distribute it,
slouken@285
   416
# with or without modifications, as long as this notice is preserved.
slouken@285
   417
sezeroz@597
   418
# serial 16
slouken@285
   419
slouken@285
   420
# This macro actually does too much.  Some checks are only needed if
slouken@285
   421
# your package does certain things.  But this isn't really a big deal.
slouken@285
   422
slouken@285
   423
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
slouken@285
   424
# AM_INIT_AUTOMAKE([OPTIONS])
slouken@285
   425
# -----------------------------------------------
slouken@285
   426
# The call with PACKAGE and VERSION arguments is the old style
slouken@285
   427
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
slouken@285
   428
# and VERSION should now be passed to AC_INIT and removed from
slouken@285
   429
# the call to AM_INIT_AUTOMAKE.
slouken@285
   430
# We support both call styles for the transition.  After
slouken@285
   431
# the next Automake release, Autoconf can make the AC_INIT
slouken@285
   432
# arguments mandatory, and then we can depend on a new Autoconf
slouken@285
   433
# release and drop the old call support.
slouken@285
   434
AC_DEFUN([AM_INIT_AUTOMAKE],
sezeroz@597
   435
[AC_PREREQ([2.62])dnl
slouken@285
   436
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
slouken@285
   437
dnl the ones we care about.
slouken@285
   438
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
slouken@285
   439
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
slouken@285
   440
AC_REQUIRE([AC_PROG_INSTALL])dnl
slouken@285
   441
if test "`cd $srcdir && pwd`" != "`pwd`"; then
slouken@285
   442
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
slouken@285
   443
  # is not polluted with repeated "-I."
slouken@285
   444
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
slouken@285
   445
  # test to see if srcdir already configured
slouken@285
   446
  if test -f $srcdir/config.status; then
slouken@285
   447
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
slouken@285
   448
  fi
slouken@285
   449
fi
slouken@285
   450
slouken@285
   451
# test whether we have cygpath
slouken@285
   452
if test -z "$CYGPATH_W"; then
slouken@285
   453
  if (cygpath --version) >/dev/null 2>/dev/null; then
slouken@285
   454
    CYGPATH_W='cygpath -w'
slouken@285
   455
  else
slouken@285
   456
    CYGPATH_W=echo
slouken@285
   457
  fi
slouken@285
   458
fi
slouken@285
   459
AC_SUBST([CYGPATH_W])
slouken@285
   460
slouken@285
   461
# Define the identity of the package.
slouken@285
   462
dnl Distinguish between old-style and new-style calls.
slouken@285
   463
m4_ifval([$2],
slouken@285
   464
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
slouken@285
   465
 AC_SUBST([PACKAGE], [$1])dnl
slouken@285
   466
 AC_SUBST([VERSION], [$2])],
slouken@285
   467
[_AM_SET_OPTIONS([$1])dnl
slouken@285
   468
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
slouken@285
   469
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
slouken@285
   470
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
slouken@285
   471
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
slouken@285
   472
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
slouken@285
   473
slouken@285
   474
_AM_IF_OPTION([no-define],,
slouken@285
   475
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
slouken@285
   476
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
slouken@285
   477
slouken@285
   478
# Some tools Automake needs.
slouken@285
   479
AC_REQUIRE([AM_SANITY_CHECK])dnl
slouken@285
   480
AC_REQUIRE([AC_ARG_PROGRAM])dnl
slouken@285
   481
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
slouken@285
   482
AM_MISSING_PROG(AUTOCONF, autoconf)
slouken@285
   483
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
slouken@285
   484
AM_MISSING_PROG(AUTOHEADER, autoheader)
slouken@285
   485
AM_MISSING_PROG(MAKEINFO, makeinfo)
sezeroz@597
   486
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
sezeroz@597
   487
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
slouken@285
   488
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
slouken@285
   489
# We need awk for the "check" target.  The system "awk" is bad on
slouken@285
   490
# some platforms.
slouken@285
   491
AC_REQUIRE([AC_PROG_AWK])dnl
slouken@285
   492
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
slouken@285
   493
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
slouken@285
   494
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
sezeroz@597
   495
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
sezeroz@597
   496
			     [_AM_PROG_TAR([v7])])])
slouken@285
   497
_AM_IF_OPTION([no-dependencies],,
slouken@285
   498
[AC_PROVIDE_IFELSE([AC_PROG_CC],
sezeroz@597
   499
		  [_AM_DEPENDENCIES(CC)],
sezeroz@597
   500
		  [define([AC_PROG_CC],
sezeroz@597
   501
			  defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
slouken@285
   502
AC_PROVIDE_IFELSE([AC_PROG_CXX],
sezeroz@597
   503
		  [_AM_DEPENDENCIES(CXX)],
sezeroz@597
   504
		  [define([AC_PROG_CXX],
sezeroz@597
   505
			  defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
slouken@285
   506
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
sezeroz@597
   507
		  [_AM_DEPENDENCIES(OBJC)],
sezeroz@597
   508
		  [define([AC_PROG_OBJC],
sezeroz@597
   509
			  defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
slouken@285
   510
])
sezeroz@597
   511
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
sezeroz@597
   512
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
sezeroz@597
   513
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
sezeroz@597
   514
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
sezeroz@597
   515
AC_CONFIG_COMMANDS_PRE(dnl
sezeroz@597
   516
[m4_provide_if([_AM_COMPILER_EXEEXT],
sezeroz@597
   517
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
slouken@285
   518
])
slouken@285
   519
sezeroz@597
   520
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
sezeroz@597
   521
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
sezeroz@597
   522
dnl mangled by Autoconf and run in a shell conditional statement.
sezeroz@597
   523
m4_define([_AC_COMPILER_EXEEXT],
sezeroz@597
   524
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
sezeroz@597
   525
slouken@285
   526
slouken@285
   527
# When config.status generates a header, we must update the stamp-h file.
slouken@285
   528
# This file resides in the same directory as the config header
slouken@285
   529
# that is generated.  The stamp files are numbered to have different names.
slouken@285
   530
slouken@285
   531
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
slouken@285
   532
# loop where config.status creates the headers, so we can generate
slouken@285
   533
# our stamp files there.
slouken@285
   534
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
slouken@285
   535
[# Compute $1's index in $config_headers.
sezeroz@597
   536
_am_arg=$1
slouken@285
   537
_am_stamp_count=1
slouken@285
   538
for _am_header in $config_headers :; do
slouken@285
   539
  case $_am_header in
sezeroz@597
   540
    $_am_arg | $_am_arg:* )
slouken@285
   541
      break ;;
slouken@285
   542
    * )
slouken@285
   543
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
slouken@285
   544
  esac
slouken@285
   545
done
sezeroz@597
   546
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
slouken@285
   547
sezeroz@597
   548
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
slouken@285
   549
#
slouken@285
   550
# This file is free software; the Free Software Foundation
slouken@285
   551
# gives unlimited permission to copy and/or distribute it,
slouken@285
   552
# with or without modifications, as long as this notice is preserved.
slouken@285
   553
slouken@285
   554
# AM_PROG_INSTALL_SH
slouken@285
   555
# ------------------
slouken@285
   556
# Define $install_sh.
slouken@285
   557
AC_DEFUN([AM_PROG_INSTALL_SH],
slouken@285
   558
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
sezeroz@597
   559
if test x"${install_sh}" != xset; then
sezeroz@597
   560
  case $am_aux_dir in
sezeroz@597
   561
  *\ * | *\	*)
sezeroz@597
   562
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
sezeroz@597
   563
  *)
sezeroz@597
   564
    install_sh="\${SHELL} $am_aux_dir/install-sh"
sezeroz@597
   565
  esac
sezeroz@597
   566
fi
slouken@285
   567
AC_SUBST(install_sh)])
slouken@285
   568
slouken@285
   569
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
slouken@285
   570
#
slouken@285
   571
# This file is free software; the Free Software Foundation
slouken@285
   572
# gives unlimited permission to copy and/or distribute it,
slouken@285
   573
# with or without modifications, as long as this notice is preserved.
slouken@285
   574
slouken@285
   575
# serial 2
slouken@285
   576
slouken@285
   577
# Check whether the underlying file-system supports filenames
slouken@285
   578
# with a leading dot.  For instance MS-DOS doesn't.
slouken@285
   579
AC_DEFUN([AM_SET_LEADING_DOT],
slouken@285
   580
[rm -rf .tst 2>/dev/null
slouken@285
   581
mkdir .tst 2>/dev/null
slouken@285
   582
if test -d .tst; then
slouken@285
   583
  am__leading_dot=.
slouken@285
   584
else
slouken@285
   585
  am__leading_dot=_
slouken@285
   586
fi
slouken@285
   587
rmdir .tst 2>/dev/null
slouken@285
   588
AC_SUBST([am__leading_dot])])
slouken@285
   589
slouken@285
   590
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
slouken@285
   591
sezeroz@597
   592
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
slouken@285
   593
#
slouken@285
   594
# This file is free software; the Free Software Foundation
slouken@285
   595
# gives unlimited permission to copy and/or distribute it,
slouken@285
   596
# with or without modifications, as long as this notice is preserved.
slouken@285
   597
sezeroz@597
   598
# serial 4
slouken@285
   599
slouken@285
   600
# AM_MAKE_INCLUDE()
slouken@285
   601
# -----------------
slouken@285
   602
# Check to see how make treats includes.
slouken@285
   603
AC_DEFUN([AM_MAKE_INCLUDE],
slouken@285
   604
[am_make=${MAKE-make}
slouken@285
   605
cat > confinc << 'END'
slouken@285
   606
am__doit:
sezeroz@597
   607
	@echo this is the am__doit target
slouken@285
   608
.PHONY: am__doit
slouken@285
   609
END
slouken@285
   610
# If we don't find an include directive, just comment out the code.
slouken@285
   611
AC_MSG_CHECKING([for style of include used by $am_make])
slouken@285
   612
am__include="#"
slouken@285
   613
am__quote=
slouken@285
   614
_am_result=none
slouken@285
   615
# First try GNU make style include.
slouken@285
   616
echo "include confinc" > confmf
sezeroz@597
   617
# Ignore all kinds of additional output from `make'.
sezeroz@597
   618
case `$am_make -s -f confmf 2> /dev/null` in #(
sezeroz@597
   619
*the\ am__doit\ target*)
sezeroz@597
   620
  am__include=include
sezeroz@597
   621
  am__quote=
sezeroz@597
   622
  _am_result=GNU
sezeroz@597
   623
  ;;
sezeroz@597
   624
esac
slouken@285
   625
# Now try BSD make style include.
slouken@285
   626
if test "$am__include" = "#"; then
slouken@285
   627
   echo '.include "confinc"' > confmf
sezeroz@597
   628
   case `$am_make -s -f confmf 2> /dev/null` in #(
sezeroz@597
   629
   *the\ am__doit\ target*)
sezeroz@597
   630
     am__include=.include
sezeroz@597
   631
     am__quote="\""
sezeroz@597
   632
     _am_result=BSD
sezeroz@597
   633
     ;;
sezeroz@597
   634
   esac
slouken@285
   635
fi
slouken@285
   636
AC_SUBST([am__include])
slouken@285
   637
AC_SUBST([am__quote])
slouken@285
   638
AC_MSG_RESULT([$_am_result])
slouken@285
   639
rm -f confinc confmf
slouken@285
   640
])
slouken@285
   641
slouken@285
   642
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
slouken@285
   643
sezeroz@597
   644
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
slouken@285
   645
# Free Software Foundation, Inc.
slouken@285
   646
#
slouken@285
   647
# This file is free software; the Free Software Foundation
slouken@285
   648
# gives unlimited permission to copy and/or distribute it,
slouken@285
   649
# with or without modifications, as long as this notice is preserved.
slouken@285
   650
sezeroz@597
   651
# serial 6
slouken@285
   652
slouken@285
   653
# AM_MISSING_PROG(NAME, PROGRAM)
slouken@285
   654
# ------------------------------
slouken@285
   655
AC_DEFUN([AM_MISSING_PROG],
slouken@285
   656
[AC_REQUIRE([AM_MISSING_HAS_RUN])
slouken@285
   657
$1=${$1-"${am_missing_run}$2"}
slouken@285
   658
AC_SUBST($1)])
slouken@285
   659
slouken@285
   660
slouken@285
   661
# AM_MISSING_HAS_RUN
slouken@285
   662
# ------------------
slouken@285
   663
# Define MISSING if not defined so far and test if it supports --run.
slouken@285
   664
# If it does, set am_missing_run to use it, otherwise, to nothing.
slouken@285
   665
AC_DEFUN([AM_MISSING_HAS_RUN],
slouken@285
   666
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
slouken@285
   667
AC_REQUIRE_AUX_FILE([missing])dnl
sezeroz@597
   668
if test x"${MISSING+set}" != xset; then
sezeroz@597
   669
  case $am_aux_dir in
sezeroz@597
   670
  *\ * | *\	*)
sezeroz@597
   671
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
sezeroz@597
   672
  *)
sezeroz@597
   673
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
sezeroz@597
   674
  esac
sezeroz@597
   675
fi
slouken@285
   676
# Use eval to expand $SHELL
slouken@285
   677
if eval "$MISSING --run true"; then
slouken@285
   678
  am_missing_run="$MISSING --run "
slouken@285
   679
else
slouken@285
   680
  am_missing_run=
slouken@285
   681
  AC_MSG_WARN([`missing' script is too old or missing])
slouken@285
   682
fi
slouken@285
   683
])
slouken@285
   684
slouken@285
   685
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
slouken@285
   686
#
slouken@285
   687
# This file is free software; the Free Software Foundation
slouken@285
   688
# gives unlimited permission to copy and/or distribute it,
slouken@285
   689
# with or without modifications, as long as this notice is preserved.
slouken@285
   690
slouken@285
   691
# AM_PROG_MKDIR_P
slouken@285
   692
# ---------------
slouken@285
   693
# Check for `mkdir -p'.
slouken@285
   694
AC_DEFUN([AM_PROG_MKDIR_P],
slouken@285
   695
[AC_PREREQ([2.60])dnl
slouken@285
   696
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
slouken@285
   697
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
slouken@285
   698
dnl while keeping a definition of mkdir_p for backward compatibility.
slouken@285
   699
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
slouken@285
   700
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
slouken@285
   701
dnl Makefile.ins that do not define MKDIR_P, so we do our own
slouken@285
   702
dnl adjustment using top_builddir (which is defined more often than
slouken@285
   703
dnl MKDIR_P).
slouken@285
   704
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
slouken@285
   705
case $mkdir_p in
slouken@285
   706
  [[\\/$]]* | ?:[[\\/]]*) ;;
slouken@285
   707
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
slouken@285
   708
esac
slouken@285
   709
])
slouken@285
   710
slouken@285
   711
# Helper functions for option handling.                     -*- Autoconf -*-
slouken@285
   712
sezeroz@597
   713
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
slouken@285
   714
#
slouken@285
   715
# This file is free software; the Free Software Foundation
slouken@285
   716
# gives unlimited permission to copy and/or distribute it,
slouken@285
   717
# with or without modifications, as long as this notice is preserved.
slouken@285
   718
sezeroz@597
   719
# serial 4
slouken@285
   720
slouken@285
   721
# _AM_MANGLE_OPTION(NAME)
slouken@285
   722
# -----------------------
slouken@285
   723
AC_DEFUN([_AM_MANGLE_OPTION],
slouken@285
   724
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
slouken@285
   725
slouken@285
   726
# _AM_SET_OPTION(NAME)
slouken@285
   727
# ------------------------------
slouken@285
   728
# Set option NAME.  Presently that only means defining a flag for this option.
slouken@285
   729
AC_DEFUN([_AM_SET_OPTION],
slouken@285
   730
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
slouken@285
   731
slouken@285
   732
# _AM_SET_OPTIONS(OPTIONS)
slouken@285
   733
# ----------------------------------
slouken@285
   734
# OPTIONS is a space-separated list of Automake options.
slouken@285
   735
AC_DEFUN([_AM_SET_OPTIONS],
sezeroz@597
   736
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
slouken@285
   737
slouken@285
   738
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
slouken@285
   739
# -------------------------------------------
slouken@285
   740
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
slouken@285
   741
AC_DEFUN([_AM_IF_OPTION],
slouken@285
   742
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
slouken@285
   743
slouken@285
   744
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
slouken@285
   745
sezeroz@597
   746
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
slouken@285
   747
# Free Software Foundation, Inc.
slouken@285
   748
#
slouken@285
   749
# This file is free software; the Free Software Foundation
slouken@285
   750
# gives unlimited permission to copy and/or distribute it,
slouken@285
   751
# with or without modifications, as long as this notice is preserved.
slouken@285
   752
sezeroz@597
   753
# serial 5
slouken@285
   754
slouken@285
   755
# AM_SANITY_CHECK
slouken@285
   756
# ---------------
slouken@285
   757
AC_DEFUN([AM_SANITY_CHECK],
slouken@285
   758
[AC_MSG_CHECKING([whether build environment is sane])
slouken@285
   759
# Just in case
slouken@285
   760
sleep 1
slouken@285
   761
echo timestamp > conftest.file
sezeroz@597
   762
# Reject unsafe characters in $srcdir or the absolute working directory
sezeroz@597
   763
# name.  Accept space and tab only in the latter.
sezeroz@597
   764
am_lf='
sezeroz@597
   765
'
sezeroz@597
   766
case `pwd` in
sezeroz@597
   767
  *[[\\\"\#\$\&\'\`$am_lf]]*)
sezeroz@597
   768
    AC_MSG_ERROR([unsafe absolute working directory name]);;
sezeroz@597
   769
esac
sezeroz@597
   770
case $srcdir in
sezeroz@597
   771
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
sezeroz@597
   772
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
sezeroz@597
   773
esac
sezeroz@597
   774
slouken@285
   775
# Do `set' in a subshell so we don't clobber the current shell's
slouken@285
   776
# arguments.  Must try -L first in case configure is actually a
slouken@285
   777
# symlink; some systems play weird games with the mod time of symlinks
slouken@285
   778
# (eg FreeBSD returns the mod time of the symlink's containing
slouken@285
   779
# directory).
slouken@285
   780
if (
sezeroz@597
   781
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
slouken@285
   782
   if test "$[*]" = "X"; then
slouken@285
   783
      # -L didn't work.
sezeroz@597
   784
      set X `ls -t "$srcdir/configure" conftest.file`
slouken@285
   785
   fi
slouken@285
   786
   rm -f conftest.file
slouken@285
   787
   if test "$[*]" != "X $srcdir/configure conftest.file" \
slouken@285
   788
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
slouken@285
   789
slouken@285
   790
      # If neither matched, then we have a broken ls.  This can happen
slouken@285
   791
      # if, for instance, CONFIG_SHELL is bash and it inherits a
slouken@285
   792
      # broken ls alias from the environment.  This has actually
slouken@285
   793
      # happened.  Such a system could not be considered "sane".
slouken@285
   794
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
slouken@285
   795
alias in your environment])
slouken@285
   796
   fi
slouken@285
   797
slouken@285
   798
   test "$[2]" = conftest.file
slouken@285
   799
   )
slouken@285
   800
then
slouken@285
   801
   # Ok.
slouken@285
   802
   :
slouken@285
   803
else
slouken@285
   804
   AC_MSG_ERROR([newly created file is older than distributed files!
slouken@285
   805
Check your system clock])
slouken@285
   806
fi
slouken@285
   807
AC_MSG_RESULT(yes)])
slouken@285
   808
slouken@285
   809
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
slouken@285
   810
#
slouken@285
   811
# This file is free software; the Free Software Foundation
slouken@285
   812
# gives unlimited permission to copy and/or distribute it,
slouken@285
   813
# with or without modifications, as long as this notice is preserved.
slouken@285
   814
slouken@285
   815
# AM_PROG_INSTALL_STRIP
slouken@285
   816
# ---------------------
slouken@285
   817
# One issue with vendor `install' (even GNU) is that you can't
slouken@285
   818
# specify the program used to strip binaries.  This is especially
slouken@285
   819
# annoying in cross-compiling environments, where the build's strip
slouken@285
   820
# is unlikely to handle the host's binaries.
slouken@285
   821
# Fortunately install-sh will honor a STRIPPROG variable, so we
slouken@285
   822
# always use install-sh in `make install-strip', and initialize
slouken@285
   823
# STRIPPROG with the value of the STRIP variable (set by the user).
slouken@285
   824
AC_DEFUN([AM_PROG_INSTALL_STRIP],
slouken@285
   825
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
slouken@285
   826
# Installed binaries are usually stripped using `strip' when the user
slouken@285
   827
# run `make install-strip'.  However `strip' might not be the right
slouken@285
   828
# tool to use in cross-compilation environments, therefore Automake
slouken@285
   829
# will honor the `STRIP' environment variable to overrule this program.
slouken@285
   830
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
slouken@285
   831
if test "$cross_compiling" != no; then
slouken@285
   832
  AC_CHECK_TOOL([STRIP], [strip], :)
slouken@285
   833
fi
slouken@285
   834
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
slouken@285
   835
AC_SUBST([INSTALL_STRIP_PROGRAM])])
slouken@285
   836
sezeroz@597
   837
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
slouken@285
   838
#
slouken@285
   839
# This file is free software; the Free Software Foundation
slouken@285
   840
# gives unlimited permission to copy and/or distribute it,
slouken@285
   841
# with or without modifications, as long as this notice is preserved.
slouken@285
   842
sezeroz@597
   843
# serial 2
sezeroz@597
   844
slouken@285
   845
# _AM_SUBST_NOTMAKE(VARIABLE)
slouken@285
   846
# ---------------------------
sezeroz@597
   847
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
slouken@285
   848
# This macro is traced by Automake.
slouken@285
   849
AC_DEFUN([_AM_SUBST_NOTMAKE])
slouken@285
   850
sezeroz@597
   851
# AM_SUBST_NOTMAKE(VARIABLE)
sezeroz@597
   852
# ---------------------------
sezeroz@597
   853
# Public sister of _AM_SUBST_NOTMAKE.
sezeroz@597
   854
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
sezeroz@597
   855
slouken@285
   856
# Check how to create a tarball.                            -*- Autoconf -*-
slouken@285
   857
slouken@285
   858
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
slouken@285
   859
#
slouken@285
   860
# This file is free software; the Free Software Foundation
slouken@285
   861
# gives unlimited permission to copy and/or distribute it,
slouken@285
   862
# with or without modifications, as long as this notice is preserved.
slouken@285
   863
slouken@285
   864
# serial 2
slouken@285
   865
slouken@285
   866
# _AM_PROG_TAR(FORMAT)
slouken@285
   867
# --------------------
slouken@285
   868
# Check how to create a tarball in format FORMAT.
slouken@285
   869
# FORMAT should be one of `v7', `ustar', or `pax'.
slouken@285
   870
#
slouken@285
   871
# Substitute a variable $(am__tar) that is a command
slouken@285
   872
# writing to stdout a FORMAT-tarball containing the directory
slouken@285
   873
# $tardir.
slouken@285
   874
#     tardir=directory && $(am__tar) > result.tar
slouken@285
   875
#
slouken@285
   876
# Substitute a variable $(am__untar) that extract such
slouken@285
   877
# a tarball read from stdin.
slouken@285
   878
#     $(am__untar) < result.tar
slouken@285
   879
AC_DEFUN([_AM_PROG_TAR],
slouken@285
   880
[# Always define AMTAR for backward compatibility.
slouken@285
   881
AM_MISSING_PROG([AMTAR], [tar])
slouken@285
   882
m4_if([$1], [v7],
slouken@285
   883
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
slouken@285
   884
     [m4_case([$1], [ustar],, [pax],,
slouken@285
   885
              [m4_fatal([Unknown tar format])])
slouken@285
   886
AC_MSG_CHECKING([how to create a $1 tar archive])
slouken@285
   887
# Loop over all known methods to create a tar archive until one works.
slouken@285
   888
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
slouken@285
   889
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
slouken@285
   890
# Do not fold the above two line into one, because Tru64 sh and
slouken@285
   891
# Solaris sh will not grok spaces in the rhs of `-'.
slouken@285
   892
for _am_tool in $_am_tools
slouken@285
   893
do
slouken@285
   894
  case $_am_tool in
slouken@285
   895
  gnutar)
slouken@285
   896
    for _am_tar in tar gnutar gtar;
slouken@285
   897
    do
slouken@285
   898
      AM_RUN_LOG([$_am_tar --version]) && break
slouken@285
   899
    done
slouken@285
   900
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
slouken@285
   901
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
slouken@285
   902
    am__untar="$_am_tar -xf -"
slouken@285
   903
    ;;
slouken@285
   904
  plaintar)
slouken@285
   905
    # Must skip GNU tar: if it does not support --format= it doesn't create
slouken@285
   906
    # ustar tarball either.
slouken@285
   907
    (tar --version) >/dev/null 2>&1 && continue
slouken@285
   908
    am__tar='tar chf - "$$tardir"'
slouken@285
   909
    am__tar_='tar chf - "$tardir"'
slouken@285
   910
    am__untar='tar xf -'
slouken@285
   911
    ;;
slouken@285
   912
  pax)
slouken@285
   913
    am__tar='pax -L -x $1 -w "$$tardir"'
slouken@285
   914
    am__tar_='pax -L -x $1 -w "$tardir"'
slouken@285
   915
    am__untar='pax -r'
slouken@285
   916
    ;;
slouken@285
   917
  cpio)
slouken@285
   918
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
slouken@285
   919
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
slouken@285
   920
    am__untar='cpio -i -H $1 -d'
slouken@285
   921
    ;;
slouken@285
   922
  none)
slouken@285
   923
    am__tar=false
slouken@285
   924
    am__tar_=false
slouken@285
   925
    am__untar=false
slouken@285
   926
    ;;
slouken@285
   927
  esac
slouken@285
   928
slouken@285
   929
  # If the value was cached, stop now.  We just wanted to have am__tar
slouken@285
   930
  # and am__untar set.
slouken@285
   931
  test -n "${am_cv_prog_tar_$1}" && break
slouken@285
   932
slouken@285
   933
  # tar/untar a dummy directory, and stop if the command works
slouken@285
   934
  rm -rf conftest.dir
slouken@285
   935
  mkdir conftest.dir
slouken@285
   936
  echo GrepMe > conftest.dir/file
slouken@285
   937
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
slouken@285
   938
  rm -rf conftest.dir
slouken@285
   939
  if test -s conftest.tar; then
slouken@285
   940
    AM_RUN_LOG([$am__untar <conftest.tar])
slouken@285
   941
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
slouken@285
   942
  fi
slouken@285
   943
done
slouken@285
   944
rm -rf conftest.dir
slouken@285
   945
slouken@285
   946
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
slouken@285
   947
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
slouken@285
   948
AC_SUBST([am__tar])
slouken@285
   949
AC_SUBST([am__untar])
slouken@285
   950
]) # _AM_PROG_TAR
slouken@285
   951
slouken@285
   952
m4_include([acinclude/libtool.m4])
slouken@285
   953
m4_include([acinclude/ltoptions.m4])
slouken@285
   954
m4_include([acinclude/ltsugar.m4])
slouken@285
   955
m4_include([acinclude/ltversion.m4])
slouken@285
   956
m4_include([acinclude/lt~obsolete.m4])
slouken@285
   957
m4_include([acinclude/pkg.m4])
slouken@285
   958
m4_include([acinclude/sdl.m4])