annotate aclocal.m4 @ 61:d252edfbfa0e

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