udis86sx/udis86/aclocal.m4
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 20 Jan 2016 22:46:04 +0000
changeset 11 cfe5c9d79fbc
parent 0 e4a716697bef
permissions -rw-r--r--
Added CompiledCodeObjectSection>>at: and at:put: Accessing ILC vector is not yet supported. Writing into an ILC vector is not (and won't be) supported - one has to modify the PolymorphicInlineCache instead.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
     1
# generated automatically by aclocal 1.15 -*- Autoconf -*-
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     2
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
     3
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     4
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     5
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     6
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     7
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     8
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     9
# This program is distributed in the hope that it will be useful,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    12
# PARTICULAR PURPOSE.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    13
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    15
m4_ifndef([AC_AUTOCONF_VERSION],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    18
[m4_warning([this file was generated for autoconf 2.69.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    19
You have another version of autoconf.  It may work, but is not guaranteed to.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    20
If you have problems, you may need to regenerate the build system entirely.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    22
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
    23
# Copyright (C) 2002-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    24
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    25
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    26
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    27
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    28
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    29
# AM_AUTOMAKE_VERSION(VERSION)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    30
# ----------------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    31
# Automake X.Y traces this macro to ensure aclocal.m4 has been
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    32
# generated from the m4 files accompanying Automake X.Y.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    33
# (This private macro should not be called outside this file.)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    34
AC_DEFUN([AM_AUTOMAKE_VERSION],
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
    35
[am__api_version='1.15'
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    36
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    37
dnl require some minimum version.  Point them to the right macro.
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
    38
m4_if([$1], [1.15], [],
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    39
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    40
])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    41
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    42
# _AM_AUTOCONF_VERSION(VERSION)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    43
# -----------------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    44
# aclocal traces this macro to find the Autoconf version.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    45
# This is a private macro too.  Using m4_define simplifies
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    46
# the logic in aclocal, which can simply ignore this definition.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    47
m4_define([_AM_AUTOCONF_VERSION], [])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    48
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    49
# AM_SET_CURRENT_AUTOMAKE_VERSION
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    50
# -------------------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    51
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    52
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    53
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
    54
[AM_AUTOMAKE_VERSION([1.15])dnl
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    55
m4_ifndef([AC_AUTOCONF_VERSION],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    56
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    57
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    58
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    59
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    60
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
    61
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    62
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    63
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    64
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    65
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    66
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    67
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    68
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    69
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    70
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    71
# Of course, Automake must honor this variable whenever it calls a
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    72
# tool from the auxiliary directory.  The problem is that $srcdir (and
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    73
# therefore $ac_aux_dir as well) can be either absolute or relative,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    74
# depending on how configure is run.  This is pretty annoying, since
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    75
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    76
# source directory, any form will work fine, but in subdirectories a
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    77
# relative path needs to be adjusted first.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    78
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    79
# $ac_aux_dir/missing
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    80
#    fails when called from a subdirectory if $ac_aux_dir is relative
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    81
# $top_srcdir/$ac_aux_dir/missing
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    82
#    fails if $ac_aux_dir is absolute,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    83
#    fails when called from a subdirectory in a VPATH build with
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    84
#          a relative $ac_aux_dir
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    85
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    86
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    87
# are both prefixed by $srcdir.  In an in-source build this is usually
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    88
# harmless because $srcdir is '.', but things will broke when you
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    89
# start a VPATH build or use an absolute $srcdir.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    90
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    91
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    92
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    93
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    94
# and then we would define $MISSING as
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    95
#   MISSING="\${SHELL} $am_aux_dir/missing"
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    96
# This will work as long as MISSING is not called from configure, because
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    97
# unfortunately $(top_srcdir) has no meaning in configure.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    98
# However there are other variables, like CC, which are often used in
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    99
# configure, and could therefore not use this "fixed" $ac_aux_dir.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   100
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   101
# Another solution, used here, is to always expand $ac_aux_dir to an
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   102
# absolute PATH.  The drawback is that using absolute paths prevent a
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   103
# configured tree to be moved without reconfiguration.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   104
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   105
AC_DEFUN([AM_AUX_DIR_EXPAND],
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   106
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   107
# Expand $ac_aux_dir to an absolute path.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   108
am_aux_dir=`cd "$ac_aux_dir" && pwd`
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   109
])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   110
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   111
# AM_CONDITIONAL                                            -*- Autoconf -*-
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   112
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   113
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   114
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   115
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   116
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   117
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   118
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   119
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   120
# -------------------------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   121
# Define a conditional.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   122
AC_DEFUN([AM_CONDITIONAL],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   123
[AC_PREREQ([2.52])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   124
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   125
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   126
AC_SUBST([$1_TRUE])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   127
AC_SUBST([$1_FALSE])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   128
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   129
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   130
m4_define([_AM_COND_VALUE_$1], [$2])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   131
if $2; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   132
  $1_TRUE=
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   133
  $1_FALSE='#'
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   134
else
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   135
  $1_TRUE='#'
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   136
  $1_FALSE=
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   137
fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   138
AC_CONFIG_COMMANDS_PRE(
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   139
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   140
  AC_MSG_ERROR([[conditional "$1" was never defined.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   141
Usually this means the macro was only invoked conditionally.]])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   142
fi])])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   143
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   144
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   145
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   146
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   147
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   148
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   149
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   150
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   151
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   152
# written in clear, in which case automake, when reading aclocal.m4,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   153
# will think it sees a *use*, and therefore will trigger all it's
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   154
# C support machinery.  Also note that it means that autoscan, seeing
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   155
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   156
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   157
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   158
# _AM_DEPENDENCIES(NAME)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   159
# ----------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   160
# See how the compiler implements dependency checking.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   161
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   162
# We try a few techniques and use that to set a single cache variable.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   163
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   164
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   165
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   166
# dependency, and given that the user is not expected to run this macro,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   167
# just rely on AC_PROG_CC.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   168
AC_DEFUN([_AM_DEPENDENCIES],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   169
[AC_REQUIRE([AM_SET_DEPDIR])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   170
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   171
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   172
AC_REQUIRE([AM_DEP_TRACK])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   173
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   174
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   175
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   176
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   177
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   178
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   179
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   180
                    [depcc="$$1"   am_compiler_list=])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   181
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   182
AC_CACHE_CHECK([dependency style of $depcc],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   183
               [am_cv_$1_dependencies_compiler_type],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   184
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   185
  # We make a subdir and do the tests there.  Otherwise we can end up
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   186
  # making bogus files that we don't know about and never remove.  For
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   187
  # instance it was reported that on HP-UX the gcc test will end up
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   188
  # making a dummy file named 'D' -- because '-MD' means "put the output
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   189
  # in D".
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   190
  rm -rf conftest.dir
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   191
  mkdir conftest.dir
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   192
  # Copy depcomp to subdir because otherwise we won't find it if we're
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   193
  # using a relative directory.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   194
  cp "$am_depcomp" conftest.dir
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   195
  cd conftest.dir
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   196
  # We will build objects and dependencies in a subdirectory because
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   197
  # it helps to detect inapplicable dependency modes.  For instance
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   198
  # both Tru64's cc and ICC support -MD to output dependencies as a
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   199
  # side effect of compilation, but ICC will put the dependencies in
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   200
  # the current directory while Tru64 will put them in the object
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   201
  # directory.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   202
  mkdir sub
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   203
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   204
  am_cv_$1_dependencies_compiler_type=none
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   205
  if test "$am_compiler_list" = ""; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   206
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   207
  fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   208
  am__universal=false
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   209
  m4_case([$1], [CC],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   210
    [case " $depcc " in #(
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   211
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   212
     esac],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   213
    [CXX],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   214
    [case " $depcc " in #(
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   215
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   216
     esac])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   217
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   218
  for depmode in $am_compiler_list; do
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   219
    # Setup a source with many dependencies, because some compilers
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   220
    # like to wrap large dependency lists on column 80 (with \), and
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   221
    # we should not choose a depcomp mode which is confused by this.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   222
    #
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   223
    # We need to recreate these files for each test, as the compiler may
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   224
    # overwrite some of them when testing with obscure command lines.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   225
    # This happens at least with the AIX C compiler.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   226
    : > sub/conftest.c
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   227
    for i in 1 2 3 4 5 6; do
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   228
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   229
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   230
      # Solaris 10 /bin/sh.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   231
      echo '/* dummy */' > sub/conftst$i.h
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   232
    done
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   233
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   234
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   235
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   236
    # mode.  It turns out that the SunPro C++ compiler does not properly
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   237
    # handle '-M -o', and we need to detect this.  Also, some Intel
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   238
    # versions had trouble with output in subdirs.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   239
    am__obj=sub/conftest.${OBJEXT-o}
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   240
    am__minus_obj="-o $am__obj"
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   241
    case $depmode in
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   242
    gcc)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   243
      # This depmode causes a compiler race in universal mode.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   244
      test "$am__universal" = false || continue
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   245
      ;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   246
    nosideeffect)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   247
      # After this tag, mechanisms are not by side-effect, so they'll
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   248
      # only be used when explicitly requested.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   249
      if test "x$enable_dependency_tracking" = xyes; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   250
	continue
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   251
      else
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   252
	break
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   253
      fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   254
      ;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   255
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   256
      # This compiler won't grok '-c -o', but also, the minuso test has
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   257
      # not run yet.  These depmodes are late enough in the game, and
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   258
      # so weak that their functioning should not be impacted.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   259
      am__obj=conftest.${OBJEXT-o}
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   260
      am__minus_obj=
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   261
      ;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   262
    none) break ;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   263
    esac
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   264
    if depmode=$depmode \
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   265
       source=sub/conftest.c object=$am__obj \
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   266
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   267
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   268
         >/dev/null 2>conftest.err &&
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   269
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   270
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   271
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   272
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   273
      # icc doesn't choke on unknown options, it will just issue warnings
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   274
      # or remarks (even with -Werror).  So we grep stderr for any message
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   275
      # that says an option was ignored or not supported.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   276
      # When given -MP, icc 7.0 and 7.1 complain thusly:
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   277
      #   icc: Command line warning: ignoring option '-M'; no argument required
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   278
      # The diagnosis changed in icc 8.0:
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   279
      #   icc: Command line remark: option '-MP' not supported
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   280
      if (grep 'ignoring option' conftest.err ||
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   281
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   282
        am_cv_$1_dependencies_compiler_type=$depmode
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   283
        break
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   284
      fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   285
    fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   286
  done
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   287
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   288
  cd ..
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   289
  rm -rf conftest.dir
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   290
else
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   291
  am_cv_$1_dependencies_compiler_type=none
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   292
fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   293
])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   294
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   295
AM_CONDITIONAL([am__fastdep$1], [
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   296
  test "x$enable_dependency_tracking" != xno \
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   297
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   298
])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   299
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   300
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   301
# AM_SET_DEPDIR
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   302
# -------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   303
# Choose a directory name for dependency files.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   304
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   305
AC_DEFUN([AM_SET_DEPDIR],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   306
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   307
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   308
])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   309
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   310
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   311
# AM_DEP_TRACK
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   312
# ------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   313
AC_DEFUN([AM_DEP_TRACK],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   314
[AC_ARG_ENABLE([dependency-tracking], [dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   315
AS_HELP_STRING(
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   316
  [--enable-dependency-tracking],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   317
  [do not reject slow dependency extractors])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   318
AS_HELP_STRING(
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   319
  [--disable-dependency-tracking],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   320
  [speeds up one-time build])])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   321
if test "x$enable_dependency_tracking" != xno; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   322
  am_depcomp="$ac_aux_dir/depcomp"
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   323
  AMDEPBACKSLASH='\'
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   324
  am__nodep='_no'
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   325
fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   326
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   327
AC_SUBST([AMDEPBACKSLASH])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   328
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   329
AC_SUBST([am__nodep])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   330
_AM_SUBST_NOTMAKE([am__nodep])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   331
])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   332
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   333
# Generate code to set up dependency tracking.              -*- Autoconf -*-
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   334
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   335
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   336
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   337
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   338
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   339
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   340
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   341
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   342
# _AM_OUTPUT_DEPENDENCY_COMMANDS
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   343
# ------------------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   344
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   345
[{
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   346
  # Older Autoconf quotes --file arguments for eval, but not when files
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   347
  # are listed without --file.  Let's play safe and only enable the eval
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   348
  # if we detect the quoting.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   349
  case $CONFIG_FILES in
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   350
  *\'*) eval set x "$CONFIG_FILES" ;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   351
  *)   set x $CONFIG_FILES ;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   352
  esac
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   353
  shift
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   354
  for mf
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   355
  do
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   356
    # Strip MF so we end up with the name of the file.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   357
    mf=`echo "$mf" | sed -e 's/:.*$//'`
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   358
    # Check whether this is an Automake generated Makefile or not.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   359
    # We used to match only the files named 'Makefile.in', but
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   360
    # some people rename them; so instead we look at the file content.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   361
    # Grep'ing the first line is not enough: some people post-process
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   362
    # each Makefile.in and add a new line on top of each file to say so.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   363
    # Grep'ing the whole file is not good either: AIX grep has a line
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   364
    # limit of 2048, but all sed's we know have understand at least 4000.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   365
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   366
      dirpart=`AS_DIRNAME("$mf")`
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   367
    else
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   368
      continue
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   369
    fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   370
    # Extract the definition of DEPDIR, am__include, and am__quote
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   371
    # from the Makefile without running 'make'.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   372
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   373
    test -z "$DEPDIR" && continue
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   374
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   375
    test -z "$am__include" && continue
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   376
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   377
    # Find all dependency output files, they are included files with
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   378
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   379
    # simplest approach to changing $(DEPDIR) to its actual value in the
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   380
    # expansion.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   381
    for file in `sed -n "
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   382
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   383
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   384
      # Make sure the directory exists.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   385
      test -f "$dirpart/$file" && continue
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   386
      fdir=`AS_DIRNAME(["$file"])`
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   387
      AS_MKDIR_P([$dirpart/$fdir])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   388
      # echo "creating $dirpart/$file"
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   389
      echo '# dummy' > "$dirpart/$file"
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   390
    done
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   391
  done
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   392
}
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   393
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   394
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   395
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   396
# AM_OUTPUT_DEPENDENCY_COMMANDS
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   397
# -----------------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   398
# This macro should only be invoked once -- use via AC_REQUIRE.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   399
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   400
# This code is only required when automatic dependency tracking
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   401
# is enabled.  FIXME.  This creates each '.P' file that we will
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   402
# need in order to bootstrap the dependency handling code.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   403
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   404
[AC_CONFIG_COMMANDS([depfiles],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   405
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   406
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   407
])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   408
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   409
# Do all the work for Automake.                             -*- Autoconf -*-
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   410
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   411
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   412
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   413
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   414
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   415
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   416
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   417
# This macro actually does too much.  Some checks are only needed if
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   418
# your package does certain things.  But this isn't really a big deal.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   419
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   420
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   421
m4_define([AC_PROG_CC],
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   422
m4_defn([AC_PROG_CC])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   423
[_AM_PROG_CC_C_O
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   424
])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   425
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   426
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   427
# AM_INIT_AUTOMAKE([OPTIONS])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   428
# -----------------------------------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   429
# The call with PACKAGE and VERSION arguments is the old style
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   430
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   431
# and VERSION should now be passed to AC_INIT and removed from
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   432
# the call to AM_INIT_AUTOMAKE.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   433
# We support both call styles for the transition.  After
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   434
# the next Automake release, Autoconf can make the AC_INIT
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   435
# arguments mandatory, and then we can depend on a new Autoconf
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   436
# release and drop the old call support.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   437
AC_DEFUN([AM_INIT_AUTOMAKE],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   438
[AC_PREREQ([2.65])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   439
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   440
dnl the ones we care about.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   441
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   442
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   443
AC_REQUIRE([AC_PROG_INSTALL])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   444
if test "`cd $srcdir && pwd`" != "`pwd`"; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   445
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   446
  # is not polluted with repeated "-I."
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   447
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   448
  # test to see if srcdir already configured
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   449
  if test -f $srcdir/config.status; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   450
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   451
  fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   452
fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   453
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   454
# test whether we have cygpath
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   455
if test -z "$CYGPATH_W"; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   456
  if (cygpath --version) >/dev/null 2>/dev/null; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   457
    CYGPATH_W='cygpath -w'
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   458
  else
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   459
    CYGPATH_W=echo
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   460
  fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   461
fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   462
AC_SUBST([CYGPATH_W])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   463
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   464
# Define the identity of the package.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   465
dnl Distinguish between old-style and new-style calls.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   466
m4_ifval([$2],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   467
[AC_DIAGNOSE([obsolete],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   468
             [$0: two- and three-arguments forms are deprecated.])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   469
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   470
 AC_SUBST([PACKAGE], [$1])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   471
 AC_SUBST([VERSION], [$2])],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   472
[_AM_SET_OPTIONS([$1])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   473
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   474
m4_if(
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   475
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   476
  [ok:ok],,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   477
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   478
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   479
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   480
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   481
_AM_IF_OPTION([no-define],,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   482
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   483
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   484
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   485
# Some tools Automake needs.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   486
AC_REQUIRE([AM_SANITY_CHECK])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   487
AC_REQUIRE([AC_ARG_PROGRAM])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   488
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   489
AM_MISSING_PROG([AUTOCONF], [autoconf])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   490
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   491
AM_MISSING_PROG([AUTOHEADER], [autoheader])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   492
AM_MISSING_PROG([MAKEINFO], [makeinfo])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   493
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   494
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   495
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   496
# For better backward compatibility.  To be removed once Automake 1.9.x
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   497
# dies out for good.  For more background, see:
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   498
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   499
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   500
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   501
# We need awk for the "check" target (and possibly the TAP driver).  The
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   502
# system "awk" is bad on some platforms.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   503
AC_REQUIRE([AC_PROG_AWK])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   504
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   505
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   506
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   507
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   508
			     [_AM_PROG_TAR([v7])])])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   509
_AM_IF_OPTION([no-dependencies],,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   510
[AC_PROVIDE_IFELSE([AC_PROG_CC],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   511
		  [_AM_DEPENDENCIES([CC])],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   512
		  [m4_define([AC_PROG_CC],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   513
			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   514
AC_PROVIDE_IFELSE([AC_PROG_CXX],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   515
		  [_AM_DEPENDENCIES([CXX])],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   516
		  [m4_define([AC_PROG_CXX],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   517
			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   518
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   519
		  [_AM_DEPENDENCIES([OBJC])],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   520
		  [m4_define([AC_PROG_OBJC],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   521
			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   522
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   523
		  [_AM_DEPENDENCIES([OBJCXX])],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   524
		  [m4_define([AC_PROG_OBJCXX],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   525
			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   526
])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   527
AC_REQUIRE([AM_SILENT_RULES])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   528
dnl The testsuite driver may need to know about EXEEXT, so add the
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   529
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   530
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   531
AC_CONFIG_COMMANDS_PRE(dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   532
[m4_provide_if([_AM_COMPILER_EXEEXT],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   533
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   534
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   535
# POSIX will say in a future version that running "rm -f" with no argument
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   536
# is OK; and we want to be able to make that assumption in our Makefile
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   537
# recipes.  So use an aggressive probe to check that the usage we want is
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   538
# actually supported "in the wild" to an acceptable degree.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   539
# See automake bug#10828.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   540
# To make any issue more visible, cause the running configure to be aborted
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   541
# by default if the 'rm' program in use doesn't match our expectations; the
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   542
# user can still override this though.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   543
if rm -f && rm -fr && rm -rf; then : OK; else
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   544
  cat >&2 <<'END'
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   545
Oops!
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   546
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   547
Your 'rm' program seems unable to run without file operands specified
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   548
on the command line, even when the '-f' option is present.  This is contrary
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   549
to the behaviour of most rm programs out there, and not conforming with
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   550
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   551
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   552
Please tell bug-automake@gnu.org about your system, including the value
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   553
of your $PATH and any error possibly output before this message.  This
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   554
can help us improve future automake versions.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   555
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   556
END
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   557
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   558
    echo 'Configuration will proceed anyway, since you have set the' >&2
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   559
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   560
    echo >&2
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   561
  else
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   562
    cat >&2 <<'END'
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   563
Aborting the configuration process, to ensure you take notice of the issue.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   564
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   565
You can download and install GNU coreutils to get an 'rm' implementation
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   566
that behaves properly: <http://www.gnu.org/software/coreutils/>.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   567
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   568
If you want to complete the configuration process using your problematic
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   569
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   570
to "yes", and re-run configure.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   571
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   572
END
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   573
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   574
  fi
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   575
fi
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   576
dnl The trailing newline in this macro's definition is deliberate, for
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   577
dnl backward compatibility and to allow trailing 'dnl'-style comments
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   578
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   579
])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   580
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   581
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   582
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   583
dnl mangled by Autoconf and run in a shell conditional statement.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   584
m4_define([_AC_COMPILER_EXEEXT],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   585
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   586
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   587
# When config.status generates a header, we must update the stamp-h file.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   588
# This file resides in the same directory as the config header
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   589
# that is generated.  The stamp files are numbered to have different names.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   590
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   591
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   592
# loop where config.status creates the headers, so we can generate
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   593
# our stamp files there.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   594
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   595
[# Compute $1's index in $config_headers.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   596
_am_arg=$1
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   597
_am_stamp_count=1
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   598
for _am_header in $config_headers :; do
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   599
  case $_am_header in
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   600
    $_am_arg | $_am_arg:* )
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   601
      break ;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   602
    * )
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   603
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   604
  esac
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   605
done
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   606
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   607
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   608
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   609
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   610
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   611
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   612
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   613
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   614
# AM_PROG_INSTALL_SH
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   615
# ------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   616
# Define $install_sh.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   617
AC_DEFUN([AM_PROG_INSTALL_SH],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   618
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   619
if test x"${install_sh+set}" != xset; then
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   620
  case $am_aux_dir in
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   621
  *\ * | *\	*)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   622
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   623
  *)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   624
    install_sh="\${SHELL} $am_aux_dir/install-sh"
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   625
  esac
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   626
fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   627
AC_SUBST([install_sh])])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   628
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   629
# Copyright (C) 2003-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   630
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   631
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   632
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   633
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   634
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   635
# Check whether the underlying file-system supports filenames
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   636
# with a leading dot.  For instance MS-DOS doesn't.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   637
AC_DEFUN([AM_SET_LEADING_DOT],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   638
[rm -rf .tst 2>/dev/null
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   639
mkdir .tst 2>/dev/null
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   640
if test -d .tst; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   641
  am__leading_dot=.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   642
else
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   643
  am__leading_dot=_
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   644
fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   645
rmdir .tst 2>/dev/null
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   646
AC_SUBST([am__leading_dot])])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   647
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   648
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   649
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   650
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   651
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   652
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   653
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   654
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   655
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   656
# AM_MAKE_INCLUDE()
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   657
# -----------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   658
# Check to see how make treats includes.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   659
AC_DEFUN([AM_MAKE_INCLUDE],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   660
[am_make=${MAKE-make}
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   661
cat > confinc << 'END'
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   662
am__doit:
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   663
	@echo this is the am__doit target
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   664
.PHONY: am__doit
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   665
END
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   666
# If we don't find an include directive, just comment out the code.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   667
AC_MSG_CHECKING([for style of include used by $am_make])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   668
am__include="#"
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   669
am__quote=
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   670
_am_result=none
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   671
# First try GNU make style include.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   672
echo "include confinc" > confmf
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   673
# Ignore all kinds of additional output from 'make'.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   674
case `$am_make -s -f confmf 2> /dev/null` in #(
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   675
*the\ am__doit\ target*)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   676
  am__include=include
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   677
  am__quote=
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   678
  _am_result=GNU
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   679
  ;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   680
esac
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   681
# Now try BSD make style include.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   682
if test "$am__include" = "#"; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   683
   echo '.include "confinc"' > confmf
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   684
   case `$am_make -s -f confmf 2> /dev/null` in #(
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   685
   *the\ am__doit\ target*)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   686
     am__include=.include
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   687
     am__quote="\""
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   688
     _am_result=BSD
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   689
     ;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   690
   esac
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   691
fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   692
AC_SUBST([am__include])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   693
AC_SUBST([am__quote])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   694
AC_MSG_RESULT([$_am_result])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   695
rm -f confinc confmf
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   696
])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   697
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   698
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   699
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   700
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   701
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   702
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   703
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   704
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   705
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   706
# AM_MISSING_PROG(NAME, PROGRAM)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   707
# ------------------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   708
AC_DEFUN([AM_MISSING_PROG],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   709
[AC_REQUIRE([AM_MISSING_HAS_RUN])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   710
$1=${$1-"${am_missing_run}$2"}
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   711
AC_SUBST($1)])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   712
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   713
# AM_MISSING_HAS_RUN
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   714
# ------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   715
# Define MISSING if not defined so far and test if it is modern enough.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   716
# If it is, set am_missing_run to use it, otherwise, to nothing.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   717
AC_DEFUN([AM_MISSING_HAS_RUN],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   718
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   719
AC_REQUIRE_AUX_FILE([missing])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   720
if test x"${MISSING+set}" != xset; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   721
  case $am_aux_dir in
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   722
  *\ * | *\	*)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   723
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   724
  *)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   725
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   726
  esac
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   727
fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   728
# Use eval to expand $SHELL
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   729
if eval "$MISSING --is-lightweight"; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   730
  am_missing_run="$MISSING "
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   731
else
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   732
  am_missing_run=
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   733
  AC_MSG_WARN(['missing' script is too old or missing])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   734
fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   735
])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   736
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   737
# Helper functions for option handling.                     -*- Autoconf -*-
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   738
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   739
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   740
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   741
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   742
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   743
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   744
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   745
# _AM_MANGLE_OPTION(NAME)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   746
# -----------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   747
AC_DEFUN([_AM_MANGLE_OPTION],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   748
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   749
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   750
# _AM_SET_OPTION(NAME)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   751
# --------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   752
# Set option NAME.  Presently that only means defining a flag for this option.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   753
AC_DEFUN([_AM_SET_OPTION],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   754
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   755
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   756
# _AM_SET_OPTIONS(OPTIONS)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   757
# ------------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   758
# OPTIONS is a space-separated list of Automake options.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   759
AC_DEFUN([_AM_SET_OPTIONS],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   760
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   761
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   762
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   763
# -------------------------------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   764
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   765
AC_DEFUN([_AM_IF_OPTION],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   766
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   767
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   768
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   769
#
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   770
# This file is free software; the Free Software Foundation
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   771
# gives unlimited permission to copy and/or distribute it,
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   772
# with or without modifications, as long as this notice is preserved.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   773
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   774
# _AM_PROG_CC_C_O
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   775
# ---------------
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   776
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   777
# to automatically call this.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   778
AC_DEFUN([_AM_PROG_CC_C_O],
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   779
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   780
AC_REQUIRE_AUX_FILE([compile])dnl
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   781
AC_LANG_PUSH([C])dnl
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   782
AC_CACHE_CHECK(
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   783
  [whether $CC understands -c and -o together],
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   784
  [am_cv_prog_cc_c_o],
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   785
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   786
  # Make sure it works both with $CC and with simple cc.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   787
  # Following AC_PROG_CC_C_O, we do the test twice because some
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   788
  # compilers refuse to overwrite an existing .o file with -o,
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   789
  # though they will create one.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   790
  am_cv_prog_cc_c_o=yes
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   791
  for am_i in 1 2; do
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   792
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   793
         && test -f conftest2.$ac_objext; then
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   794
      : OK
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   795
    else
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   796
      am_cv_prog_cc_c_o=no
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   797
      break
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   798
    fi
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   799
  done
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   800
  rm -f core conftest*
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   801
  unset am_i])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   802
if test "$am_cv_prog_cc_c_o" != yes; then
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   803
   # Losing compiler, so override with the script.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   804
   # FIXME: It is wrong to rewrite CC.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   805
   # But if we don't then we get into trouble of one sort or another.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   806
   # A longer-term fix would be to have automake use am__CC in this case,
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   807
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   808
   CC="$am_aux_dir/compile $CC"
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   809
fi
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   810
AC_LANG_POP([C])])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   811
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   812
# For backward compatibility.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   813
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   814
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   815
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   816
#
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   817
# This file is free software; the Free Software Foundation
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   818
# gives unlimited permission to copy and/or distribute it,
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   819
# with or without modifications, as long as this notice is preserved.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   820
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   821
# AM_RUN_LOG(COMMAND)
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   822
# -------------------
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   823
# Run COMMAND, save the exit status in ac_status, and log it.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   824
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   825
AC_DEFUN([AM_RUN_LOG],
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   826
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   827
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   828
   ac_status=$?
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   829
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   830
   (exit $ac_status); }])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   831
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   832
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   833
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   834
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   835
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   836
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   837
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   838
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   839
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   840
# AM_SANITY_CHECK
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   841
# ---------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   842
AC_DEFUN([AM_SANITY_CHECK],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   843
[AC_MSG_CHECKING([whether build environment is sane])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   844
# Reject unsafe characters in $srcdir or the absolute working directory
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   845
# name.  Accept space and tab only in the latter.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   846
am_lf='
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   847
'
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   848
case `pwd` in
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   849
  *[[\\\"\#\$\&\'\`$am_lf]]*)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   850
    AC_MSG_ERROR([unsafe absolute working directory name]);;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   851
esac
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   852
case $srcdir in
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   853
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   854
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   855
esac
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   856
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   857
# Do 'set' in a subshell so we don't clobber the current shell's
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   858
# arguments.  Must try -L first in case configure is actually a
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   859
# symlink; some systems play weird games with the mod time of symlinks
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   860
# (eg FreeBSD returns the mod time of the symlink's containing
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   861
# directory).
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   862
if (
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   863
   am_has_slept=no
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   864
   for am_try in 1 2; do
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   865
     echo "timestamp, slept: $am_has_slept" > conftest.file
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   866
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   867
     if test "$[*]" = "X"; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   868
	# -L didn't work.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   869
	set X `ls -t "$srcdir/configure" conftest.file`
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   870
     fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   871
     if test "$[*]" != "X $srcdir/configure conftest.file" \
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   872
	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   873
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   874
	# If neither matched, then we have a broken ls.  This can happen
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   875
	# if, for instance, CONFIG_SHELL is bash and it inherits a
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   876
	# broken ls alias from the environment.  This has actually
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   877
	# happened.  Such a system could not be considered "sane".
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   878
	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   879
  alias in your environment])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   880
     fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   881
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   882
       break
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   883
     fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   884
     # Just in case.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   885
     sleep 1
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   886
     am_has_slept=yes
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   887
   done
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   888
   test "$[2]" = conftest.file
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   889
   )
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   890
then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   891
   # Ok.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   892
   :
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   893
else
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   894
   AC_MSG_ERROR([newly created file is older than distributed files!
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   895
Check your system clock])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   896
fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   897
AC_MSG_RESULT([yes])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   898
# If we didn't sleep, we still need to ensure time stamps of config.status and
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   899
# generated files are strictly newer.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   900
am_sleep_pid=
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   901
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   902
  ( sleep 1 ) &
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   903
  am_sleep_pid=$!
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   904
fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   905
AC_CONFIG_COMMANDS_PRE(
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   906
  [AC_MSG_CHECKING([that generated files are newer than configure])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   907
   if test -n "$am_sleep_pid"; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   908
     # Hide warnings about reused PIDs.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   909
     wait $am_sleep_pid 2>/dev/null
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   910
   fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   911
   AC_MSG_RESULT([done])])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   912
rm -f conftest.file
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   913
])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   914
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   915
# Copyright (C) 2009-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   916
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   917
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   918
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   919
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   920
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   921
# AM_SILENT_RULES([DEFAULT])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   922
# --------------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   923
# Enable less verbose build rules; with the default set to DEFAULT
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   924
# ("yes" being less verbose, "no" or empty being verbose).
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   925
AC_DEFUN([AM_SILENT_RULES],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   926
[AC_ARG_ENABLE([silent-rules], [dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   927
AS_HELP_STRING(
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   928
  [--enable-silent-rules],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   929
  [less verbose build output (undo: "make V=1")])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   930
AS_HELP_STRING(
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   931
  [--disable-silent-rules],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   932
  [verbose build output (undo: "make V=0")])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   933
])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   934
case $enable_silent_rules in @%:@ (((
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   935
  yes) AM_DEFAULT_VERBOSITY=0;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   936
   no) AM_DEFAULT_VERBOSITY=1;;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   937
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   938
esac
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   939
dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   940
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   941
dnl do not support nested variable expansions.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   942
dnl See automake bug#9928 and bug#10237.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   943
am_make=${MAKE-make}
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   944
AC_CACHE_CHECK([whether $am_make supports nested variables],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   945
   [am_cv_make_support_nested_variables],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   946
   [if AS_ECHO([['TRUE=$(BAR$(V))
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   947
BAR0=false
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   948
BAR1=true
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   949
V=1
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   950
am__doit:
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   951
	@$(TRUE)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   952
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   953
  am_cv_make_support_nested_variables=yes
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   954
else
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   955
  am_cv_make_support_nested_variables=no
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   956
fi])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   957
if test $am_cv_make_support_nested_variables = yes; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   958
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   959
  AM_V='$(V)'
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   960
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   961
else
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   962
  AM_V=$AM_DEFAULT_VERBOSITY
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   963
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   964
fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   965
AC_SUBST([AM_V])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   966
AM_SUBST_NOTMAKE([AM_V])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   967
AC_SUBST([AM_DEFAULT_V])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   968
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   969
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   970
AM_BACKSLASH='\'
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   971
AC_SUBST([AM_BACKSLASH])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   972
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   973
])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   974
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
   975
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   976
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   977
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   978
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   979
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   980
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   981
# AM_PROG_INSTALL_STRIP
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   982
# ---------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   983
# One issue with vendor 'install' (even GNU) is that you can't
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   984
# specify the program used to strip binaries.  This is especially
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   985
# annoying in cross-compiling environments, where the build's strip
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   986
# is unlikely to handle the host's binaries.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   987
# Fortunately install-sh will honor a STRIPPROG variable, so we
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   988
# always use install-sh in "make install-strip", and initialize
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   989
# STRIPPROG with the value of the STRIP variable (set by the user).
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   990
AC_DEFUN([AM_PROG_INSTALL_STRIP],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   991
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   992
# Installed binaries are usually stripped using 'strip' when the user
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   993
# run "make install-strip".  However 'strip' might not be the right
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   994
# tool to use in cross-compilation environments, therefore Automake
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   995
# will honor the 'STRIP' environment variable to overrule this program.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   996
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   997
if test "$cross_compiling" != no; then
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   998
  AC_CHECK_TOOL([STRIP], [strip], :)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   999
fi
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1000
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1001
AC_SUBST([INSTALL_STRIP_PROGRAM])])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1002
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1003
# Copyright (C) 2006-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1004
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1005
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1006
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1007
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1008
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1009
# _AM_SUBST_NOTMAKE(VARIABLE)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1010
# ---------------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1011
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1012
# This macro is traced by Automake.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1013
AC_DEFUN([_AM_SUBST_NOTMAKE])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1014
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1015
# AM_SUBST_NOTMAKE(VARIABLE)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1016
# --------------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1017
# Public sister of _AM_SUBST_NOTMAKE.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1018
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1019
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1020
# Check how to create a tarball.                            -*- Autoconf -*-
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1021
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1022
# Copyright (C) 2004-2014 Free Software Foundation, Inc.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1023
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1024
# This file is free software; the Free Software Foundation
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1025
# gives unlimited permission to copy and/or distribute it,
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1026
# with or without modifications, as long as this notice is preserved.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1027
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1028
# _AM_PROG_TAR(FORMAT)
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1029
# --------------------
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1030
# Check how to create a tarball in format FORMAT.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1031
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1032
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1033
# Substitute a variable $(am__tar) that is a command
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1034
# writing to stdout a FORMAT-tarball containing the directory
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1035
# $tardir.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1036
#     tardir=directory && $(am__tar) > result.tar
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1037
#
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1038
# Substitute a variable $(am__untar) that extract such
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1039
# a tarball read from stdin.
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1040
#     $(am__untar) < result.tar
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1041
#
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1042
AC_DEFUN([_AM_PROG_TAR],
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1043
[# Always define AMTAR for backward compatibility.  Yes, it's still used
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1044
# in the wild :-(  We should find a proper way to deprecate it ...
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1045
AC_SUBST([AMTAR], ['$${TAR-tar}'])
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1046
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1047
# We'll loop over all known methods to create a tar archive until one works.
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1048
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1049
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1050
m4_if([$1], [v7],
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1051
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1052
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1053
  [m4_case([$1],
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1054
    [ustar],
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1055
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1056
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1057
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1058
      # and bug#13588).
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1059
      am_max_uid=2097151 # 2^21 - 1
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1060
      am_max_gid=$am_max_uid
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1061
      # The $UID and $GID variables are not portable, so we need to resort
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1062
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1063
      # below are definitely unexpected, so allow the users to see them
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1064
      # (that is, avoid stderr redirection).
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1065
      am_uid=`id -u || echo unknown`
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1066
      am_gid=`id -g || echo unknown`
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1067
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1068
      if test $am_uid -le $am_max_uid; then
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1069
         AC_MSG_RESULT([yes])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1070
      else
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1071
         AC_MSG_RESULT([no])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1072
         _am_tools=none
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1073
      fi
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1074
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1075
      if test $am_gid -le $am_max_gid; then
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1076
         AC_MSG_RESULT([yes])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1077
      else
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1078
        AC_MSG_RESULT([no])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1079
        _am_tools=none
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1080
      fi],
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1081
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1082
  [pax],
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1083
    [],
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1084
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1085
  [m4_fatal([Unknown tar format])])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1086
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1087
  AC_MSG_CHECKING([how to create a $1 tar archive])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1088
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1089
  # Go ahead even if we have the value already cached.  We do so because we
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1090
  # need to set the values for the 'am__tar' and 'am__untar' variables.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1091
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1092
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1093
  for _am_tool in $_am_tools; do
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1094
    case $_am_tool in
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1095
    gnutar)
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1096
      for _am_tar in tar gnutar gtar; do
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1097
        AM_RUN_LOG([$_am_tar --version]) && break
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1098
      done
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1099
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1100
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1101
      am__untar="$_am_tar -xf -"
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1102
      ;;
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1103
    plaintar)
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1104
      # Must skip GNU tar: if it does not support --format= it doesn't create
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1105
      # ustar tarball either.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1106
      (tar --version) >/dev/null 2>&1 && continue
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1107
      am__tar='tar chf - "$$tardir"'
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1108
      am__tar_='tar chf - "$tardir"'
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1109
      am__untar='tar xf -'
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1110
      ;;
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1111
    pax)
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1112
      am__tar='pax -L -x $1 -w "$$tardir"'
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1113
      am__tar_='pax -L -x $1 -w "$tardir"'
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1114
      am__untar='pax -r'
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1115
      ;;
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1116
    cpio)
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1117
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1118
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1119
      am__untar='cpio -i -H $1 -d'
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1120
      ;;
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1121
    none)
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1122
      am__tar=false
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1123
      am__tar_=false
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1124
      am__untar=false
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1125
      ;;
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1126
    esac
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1127
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1128
    # If the value was cached, stop now.  We just wanted to have am__tar
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1129
    # and am__untar set.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1130
    test -n "${am_cv_prog_tar_$1}" && break
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1131
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1132
    # tar/untar a dummy directory, and stop if the command works.
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1133
    rm -rf conftest.dir
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1134
    mkdir conftest.dir
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1135
    echo GrepMe > conftest.dir/file
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1136
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1137
    rm -rf conftest.dir
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1138
    if test -s conftest.tar; then
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1139
      AM_RUN_LOG([$am__untar <conftest.tar])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1140
      AM_RUN_LOG([cat conftest.dir/file])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1141
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1142
    fi
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1143
  done
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1144
  rm -rf conftest.dir
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1145
11
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1146
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1147
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
cfe5c9d79fbc Added CompiledCodeObjectSection>>at: and at:put:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 0
diff changeset
  1148
0
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1149
AC_SUBST([am__tar])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1150
AC_SUBST([am__untar])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1151
]) # _AM_PROG_TAR
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1152
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1153
m4_include([build/m4/libtool.m4])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1154
m4_include([build/m4/ltoptions.m4])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1155
m4_include([build/m4/ltsugar.m4])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1156
m4_include([build/m4/ltversion.m4])
e4a716697bef Added sources of udis86 1.7.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
  1157
m4_include([build/m4/lt~obsolete.m4])