annotate aclocal.m4 @ 11:ec508fe218b9 trunk

[svn] - Tone generator plugin.
author nenolod
date Mon, 24 Oct 2005 14:19:02 -0700
parents cb178e5ad177
children 4e0397865a31
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 # 2005 Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 # This program is distributed in the hope that it will be useful,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 # PARTICULAR PURPOSE.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 # AM_AUTOMAKE_VERSION(VERSION)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21 # ----------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 # Automake X.Y traces this macro to ensure aclocal.m4 has been
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 # generated from the m4 files accompanying Automake X.Y.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26 # AM_SET_CURRENT_AUTOMAKE_VERSION
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 # -------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28 # Call AM_AUTOMAKE_VERSION so it can be traced.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 [AM_AUTOMAKE_VERSION([1.9.6])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33 # Figure out how to run the assembler. -*- Autoconf -*-
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 # Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41 # serial 4
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 # AM_PROG_AS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 # ----------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 AC_DEFUN([AM_PROG_AS],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 [# By default we simply use the C compiler to build assembly code.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 AC_REQUIRE([AC_PROG_CC])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 test "${CCAS+set}" = set || CCAS=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50 AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
66 # Of course, Automake must honor this variable whenever it calls a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 # tool from the auxiliary directory. The problem is that $srcdir (and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68 # therefore $ac_aux_dir as well) can be either absolute or relative,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69 # depending on how configure is run. This is pretty annoying, since
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 # source directory, any form will work fine, but in subdirectories a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 # relative path needs to be adjusted first.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74 # $ac_aux_dir/missing
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75 # fails when called from a subdirectory if $ac_aux_dir is relative
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76 # $top_srcdir/$ac_aux_dir/missing
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77 # fails if $ac_aux_dir is absolute,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78 # fails when called from a subdirectory in a VPATH build with
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79 # a relative $ac_aux_dir
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
80 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
81 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
82 # are both prefixed by $srcdir. In an in-source build this is usually
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
83 # harmless because $srcdir is `.', but things will broke when you
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
84 # start a VPATH build or use an absolute $srcdir.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
85 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
86 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
87 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
88 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
89 # and then we would define $MISSING as
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
90 # MISSING="\${SHELL} $am_aux_dir/missing"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
91 # This will work as long as MISSING is not called from configure, because
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
92 # unfortunately $(top_srcdir) has no meaning in configure.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
93 # However there are other variables, like CC, which are often used in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
94 # configure, and could therefore not use this "fixed" $ac_aux_dir.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
95 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
96 # Another solution, used here, is to always expand $ac_aux_dir to an
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
97 # absolute PATH. The drawback is that using absolute paths prevent a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
98 # configured tree to be moved without reconfiguration.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
99
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
100 AC_DEFUN([AM_AUX_DIR_EXPAND],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
101 [dnl Rely on autoconf to set up CDPATH properly.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
102 AC_PREREQ([2.50])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
103 # expand $ac_aux_dir to an absolute path
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
104 am_aux_dir=`cd $ac_aux_dir && pwd`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
105 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
106
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
107 # AM_CONDITIONAL -*- Autoconf -*-
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
108
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
109 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
110 # Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
111 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
112 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
113 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
114 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
115
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
116 # serial 7
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
117
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
118 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
119 # -------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
120 # Define a conditional.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
121 AC_DEFUN([AM_CONDITIONAL],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
122 [AC_PREREQ(2.52)dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
123 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
124 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
125 AC_SUBST([$1_TRUE])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
126 AC_SUBST([$1_FALSE])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
127 if $2; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
128 $1_TRUE=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
129 $1_FALSE='#'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
130 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
131 $1_TRUE='#'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
132 $1_FALSE=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
133 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
134 AC_CONFIG_COMMANDS_PRE(
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
135 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
136 AC_MSG_ERROR([[conditional "$1" was never defined.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
137 Usually this means the macro was only invoked conditionally.]])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
138 fi])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
139
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
140
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
141 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
142 # Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
143 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
144 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
145 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
146 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
147
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
148 # serial 8
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
149
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
150 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
151 # written in clear, in which case automake, when reading aclocal.m4,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
152 # will think it sees a *use*, and therefore will trigger all it's
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
153 # C support machinery. Also note that it means that autoscan, seeing
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
154 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
155
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
156
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
157 # _AM_DEPENDENCIES(NAME)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
158 # ----------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
159 # See how the compiler implements dependency checking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
160 # NAME is "CC", "CXX", "GCJ", or "OBJC".
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
161 # We try a few techniques and use that to set a single cache variable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
162 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
163 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
164 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
165 # dependency, and given that the user is not expected to run this macro,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
166 # just rely on AC_PROG_CC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
167 AC_DEFUN([_AM_DEPENDENCIES],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
168 [AC_REQUIRE([AM_SET_DEPDIR])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
169 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
170 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
171 AC_REQUIRE([AM_DEP_TRACK])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
172
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
173 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
174 [$1], CXX, [depcc="$CXX" am_compiler_list=],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
175 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
176 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
177 [depcc="$$1" am_compiler_list=])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
178
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
179 AC_CACHE_CHECK([dependency style of $depcc],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
180 [am_cv_$1_dependencies_compiler_type],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
181 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
182 # We make a subdir and do the tests there. Otherwise we can end up
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
183 # making bogus files that we don't know about and never remove. For
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
184 # instance it was reported that on HP-UX the gcc test will end up
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
185 # making a dummy file named `D' -- because `-MD' means `put the output
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
186 # in D'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
187 mkdir conftest.dir
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
188 # Copy depcomp to subdir because otherwise we won't find it if we're
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
189 # using a relative directory.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
190 cp "$am_depcomp" conftest.dir
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
191 cd conftest.dir
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
192 # We will build objects and dependencies in a subdirectory because
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
193 # it helps to detect inapplicable dependency modes. For instance
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
194 # both Tru64's cc and ICC support -MD to output dependencies as a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
195 # side effect of compilation, but ICC will put the dependencies in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
196 # the current directory while Tru64 will put them in the object
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
197 # directory.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
198 mkdir sub
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
199
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
200 am_cv_$1_dependencies_compiler_type=none
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
201 if test "$am_compiler_list" = ""; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
202 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
203 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
204 for depmode in $am_compiler_list; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
205 # Setup a source with many dependencies, because some compilers
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
206 # like to wrap large dependency lists on column 80 (with \), and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
207 # we should not choose a depcomp mode which is confused by this.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
208 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
209 # We need to recreate these files for each test, as the compiler may
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
210 # overwrite some of them when testing with obscure command lines.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
211 # This happens at least with the AIX C compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
212 : > sub/conftest.c
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
213 for i in 1 2 3 4 5 6; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
214 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
215 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
216 # Solaris 8's {/usr,}/bin/sh.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
217 touch sub/conftst$i.h
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
218 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
219 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
220
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
221 case $depmode in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
222 nosideeffect)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
223 # after this tag, mechanisms are not by side-effect, so they'll
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
224 # only be used when explicitly requested
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
225 if test "x$enable_dependency_tracking" = xyes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
226 continue
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
227 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
228 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
229 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
230 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
231 none) break ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
232 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
233 # We check with `-c' and `-o' for the sake of the "dashmstdout"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
234 # mode. It turns out that the SunPro C++ compiler does not properly
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
235 # handle `-M -o', and we need to detect this.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
236 if depmode=$depmode \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
237 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
238 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
239 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
240 >/dev/null 2>conftest.err &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
241 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
242 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
243 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
244 # icc doesn't choke on unknown options, it will just issue warnings
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
245 # or remarks (even with -Werror). So we grep stderr for any message
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
246 # that says an option was ignored or not supported.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
247 # When given -MP, icc 7.0 and 7.1 complain thusly:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
248 # icc: Command line warning: ignoring option '-M'; no argument required
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
249 # The diagnosis changed in icc 8.0:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
250 # icc: Command line remark: option '-MP' not supported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
251 if (grep 'ignoring option' conftest.err ||
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
252 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
253 am_cv_$1_dependencies_compiler_type=$depmode
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
254 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
255 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
256 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
257 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
258
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
259 cd ..
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
260 rm -rf conftest.dir
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
261 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
262 am_cv_$1_dependencies_compiler_type=none
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
263 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
264 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
265 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
266 AM_CONDITIONAL([am__fastdep$1], [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
267 test "x$enable_dependency_tracking" != xno \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
268 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
269 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
270
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
271
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
272 # AM_SET_DEPDIR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
273 # -------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
274 # Choose a directory name for dependency files.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
275 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
276 AC_DEFUN([AM_SET_DEPDIR],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
277 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
278 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
279 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
280
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
281
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
282 # AM_DEP_TRACK
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
283 # ------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
284 AC_DEFUN([AM_DEP_TRACK],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
285 [AC_ARG_ENABLE(dependency-tracking,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
286 [ --disable-dependency-tracking speeds up one-time build
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
287 --enable-dependency-tracking do not reject slow dependency extractors])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
288 if test "x$enable_dependency_tracking" != xno; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
289 am_depcomp="$ac_aux_dir/depcomp"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
290 AMDEPBACKSLASH='\'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
291 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
292 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
293 AC_SUBST([AMDEPBACKSLASH])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
294 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
295
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
296 # Generate code to set up dependency tracking. -*- Autoconf -*-
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
297
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
298 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
299 # Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
300 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
301 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
302 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
303 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
304
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
305 #serial 3
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
306
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
307 # _AM_OUTPUT_DEPENDENCY_COMMANDS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
308 # ------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
309 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
310 [for mf in $CONFIG_FILES; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
311 # Strip MF so we end up with the name of the file.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
312 mf=`echo "$mf" | sed -e 's/:.*$//'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
313 # Check whether this is an Automake generated Makefile or not.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
314 # We used to match only the files named `Makefile.in', but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
315 # some people rename them; so instead we look at the file content.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
316 # Grep'ing the first line is not enough: some people post-process
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
317 # each Makefile.in and add a new line on top of each file to say so.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
318 # So let's grep whole file.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
319 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
320 dirpart=`AS_DIRNAME("$mf")`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
321 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
322 continue
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
323 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
324 # Extract the definition of DEPDIR, am__include, and am__quote
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
325 # from the Makefile without running `make'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
326 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
327 test -z "$DEPDIR" && continue
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
328 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
329 test -z "am__include" && continue
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
330 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
331 # When using ansi2knr, U may be empty or an underscore; expand it
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
332 U=`sed -n 's/^U = //p' < "$mf"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
333 # Find all dependency output files, they are included files with
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
334 # $(DEPDIR) in their names. We invoke sed twice because it is the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
335 # simplest approach to changing $(DEPDIR) to its actual value in the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
336 # expansion.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
337 for file in `sed -n "
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
338 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
339 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
340 # Make sure the directory exists.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
341 test -f "$dirpart/$file" && continue
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
342 fdir=`AS_DIRNAME(["$file"])`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
343 AS_MKDIR_P([$dirpart/$fdir])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
344 # echo "creating $dirpart/$file"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
345 echo '# dummy' > "$dirpart/$file"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
346 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
347 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
348 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
349
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
350
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
351 # AM_OUTPUT_DEPENDENCY_COMMANDS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
352 # -----------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
353 # This macro should only be invoked once -- use via AC_REQUIRE.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
354 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
355 # This code is only required when automatic dependency tracking
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
356 # is enabled. FIXME. This creates each `.P' file that we will
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
357 # need in order to bootstrap the dependency handling code.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
358 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
359 [AC_CONFIG_COMMANDS([depfiles],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
360 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
361 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
362 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
363
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
364 # Do all the work for Automake. -*- Autoconf -*-
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
365
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
366 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
367 # Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
368 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
369 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
370 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
371 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
372
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
373 # serial 12
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
374
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
375 # This macro actually does too much. Some checks are only needed if
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
376 # your package does certain things. But this isn't really a big deal.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
377
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
378 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
379 # AM_INIT_AUTOMAKE([OPTIONS])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
380 # -----------------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
381 # The call with PACKAGE and VERSION arguments is the old style
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
382 # call (pre autoconf-2.50), which is being phased out. PACKAGE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
383 # and VERSION should now be passed to AC_INIT and removed from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
384 # the call to AM_INIT_AUTOMAKE.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
385 # We support both call styles for the transition. After
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
386 # the next Automake release, Autoconf can make the AC_INIT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
387 # arguments mandatory, and then we can depend on a new Autoconf
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
388 # release and drop the old call support.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
389 AC_DEFUN([AM_INIT_AUTOMAKE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
390 [AC_PREREQ([2.58])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
391 dnl Autoconf wants to disallow AM_ names. We explicitly allow
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
392 dnl the ones we care about.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
393 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
394 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
395 AC_REQUIRE([AC_PROG_INSTALL])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
396 # test to see if srcdir already configured
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
397 if test "`cd $srcdir && pwd`" != "`pwd`" &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
398 test -f $srcdir/config.status; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
399 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
400 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
401
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
402 # test whether we have cygpath
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
403 if test -z "$CYGPATH_W"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
404 if (cygpath --version) >/dev/null 2>/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
405 CYGPATH_W='cygpath -w'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
406 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
407 CYGPATH_W=echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
408 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
409 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
410 AC_SUBST([CYGPATH_W])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
411
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
412 # Define the identity of the package.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
413 dnl Distinguish between old-style and new-style calls.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
414 m4_ifval([$2],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
415 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
416 AC_SUBST([PACKAGE], [$1])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
417 AC_SUBST([VERSION], [$2])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
418 [_AM_SET_OPTIONS([$1])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
419 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
420 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
421
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
422 _AM_IF_OPTION([no-define],,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
423 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
424 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
425
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
426 # Some tools Automake needs.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
427 AC_REQUIRE([AM_SANITY_CHECK])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
428 AC_REQUIRE([AC_ARG_PROGRAM])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
429 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
430 AM_MISSING_PROG(AUTOCONF, autoconf)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
431 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
432 AM_MISSING_PROG(AUTOHEADER, autoheader)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
433 AM_MISSING_PROG(MAKEINFO, makeinfo)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
434 AM_PROG_INSTALL_SH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
435 AM_PROG_INSTALL_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
436 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
437 # We need awk for the "check" target. The system "awk" is bad on
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
438 # some platforms.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
439 AC_REQUIRE([AC_PROG_AWK])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
440 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
441 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
442 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
443 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
444 [_AM_PROG_TAR([v7])])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
445 _AM_IF_OPTION([no-dependencies],,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
446 [AC_PROVIDE_IFELSE([AC_PROG_CC],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
447 [_AM_DEPENDENCIES(CC)],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
448 [define([AC_PROG_CC],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
449 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
450 AC_PROVIDE_IFELSE([AC_PROG_CXX],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
451 [_AM_DEPENDENCIES(CXX)],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
452 [define([AC_PROG_CXX],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
453 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
454 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
455 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
456
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
457
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
458 # When config.status generates a header, we must update the stamp-h file.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
459 # This file resides in the same directory as the config header
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
460 # that is generated. The stamp files are numbered to have different names.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
461
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
462 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
463 # loop where config.status creates the headers, so we can generate
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
464 # our stamp files there.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
465 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
466 [# Compute $1's index in $config_headers.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
467 _am_stamp_count=1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
468 for _am_header in $config_headers :; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
469 case $_am_header in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
470 $1 | $1:* )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
471 break ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
472 * )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
473 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
474 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
475 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
476 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
477
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
478 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
479 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
480 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
481 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
482 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
483
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
484 # AM_PROG_INSTALL_SH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
485 # ------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
486 # Define $install_sh.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
487 AC_DEFUN([AM_PROG_INSTALL_SH],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
488 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
489 install_sh=${install_sh-"$am_aux_dir/install-sh"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
490 AC_SUBST(install_sh)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
491
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
492 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
493 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
494 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
495 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
496 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
497
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
498 # serial 2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
499
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
500 # Check whether the underlying file-system supports filenames
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
501 # with a leading dot. For instance MS-DOS doesn't.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
502 AC_DEFUN([AM_SET_LEADING_DOT],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
503 [rm -rf .tst 2>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
504 mkdir .tst 2>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
505 if test -d .tst; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
506 am__leading_dot=.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
507 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
508 am__leading_dot=_
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
509 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
510 rmdir .tst 2>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
511 AC_SUBST([am__leading_dot])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
512
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
513 # Check to see how 'make' treats includes. -*- Autoconf -*-
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
514
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
515 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
516 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
517 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
518 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
519 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
520
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
521 # serial 3
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
522
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
523 # AM_MAKE_INCLUDE()
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
524 # -----------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
525 # Check to see how make treats includes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
526 AC_DEFUN([AM_MAKE_INCLUDE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
527 [am_make=${MAKE-make}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
528 cat > confinc << 'END'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
529 am__doit:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
530 @echo done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
531 .PHONY: am__doit
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
532 END
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
533 # If we don't find an include directive, just comment out the code.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
534 AC_MSG_CHECKING([for style of include used by $am_make])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
535 am__include="#"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
536 am__quote=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
537 _am_result=none
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
538 # First try GNU make style include.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
539 echo "include confinc" > confmf
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
540 # We grep out `Entering directory' and `Leaving directory'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
541 # messages which can occur if `w' ends up in MAKEFLAGS.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
542 # In particular we don't look at `^make:' because GNU make might
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
543 # be invoked under some other name (usually "gmake"), in which
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
544 # case it prints its new name instead of `make'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
545 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
546 am__include=include
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
547 am__quote=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
548 _am_result=GNU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
549 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
550 # Now try BSD make style include.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
551 if test "$am__include" = "#"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
552 echo '.include "confinc"' > confmf
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
553 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
554 am__include=.include
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
555 am__quote="\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
556 _am_result=BSD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
557 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
558 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
559 AC_SUBST([am__include])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
560 AC_SUBST([am__quote])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
561 AC_MSG_RESULT([$_am_result])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
562 rm -f confinc confmf
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
563 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
564
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
565 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
566
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
567 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
568 # Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
569 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
570 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
571 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
572 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
573
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
574 # serial 4
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
575
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
576 # AM_MISSING_PROG(NAME, PROGRAM)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
577 # ------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
578 AC_DEFUN([AM_MISSING_PROG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
579 [AC_REQUIRE([AM_MISSING_HAS_RUN])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
580 $1=${$1-"${am_missing_run}$2"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
581 AC_SUBST($1)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
582
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
583
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
584 # AM_MISSING_HAS_RUN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
585 # ------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
586 # Define MISSING if not defined so far and test if it supports --run.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
587 # If it does, set am_missing_run to use it, otherwise, to nothing.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
588 AC_DEFUN([AM_MISSING_HAS_RUN],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
589 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
590 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
591 # Use eval to expand $SHELL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
592 if eval "$MISSING --run true"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
593 am_missing_run="$MISSING --run "
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
594 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
595 am_missing_run=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
596 AC_MSG_WARN([`missing' script is too old or missing])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
597 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
598 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
599
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
600 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
601 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
602 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
603 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
604 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
605
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
606 # AM_PROG_MKDIR_P
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
607 # ---------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
608 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
609 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
610 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
611 # created by `make install' are always world readable, even if the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
612 # installer happens to have an overly restrictive umask (e.g. 077).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
613 # This was a mistake. There are at least two reasons why we must not
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
614 # use `-m 0755':
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
615 # - it causes special bits like SGID to be ignored,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
616 # - it may be too restrictive (some setups expect 775 directories).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
617 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
618 # Do not use -m 0755 and let people choose whatever they expect by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
619 # setting umask.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
620 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
621 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
622 # Some implementations (such as Solaris 8's) are not thread-safe: if a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
623 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
624 # concurrently, both version can detect that a/ is missing, but only
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
625 # one can create it and the other will error out. Consequently we
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
626 # restrict ourselves to GNU make (using the --version option ensures
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
627 # this.)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
628 AC_DEFUN([AM_PROG_MKDIR_P],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
629 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
630 # We used to keeping the `.' as first argument, in order to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
631 # allow $(mkdir_p) to be used without argument. As in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
632 # $(mkdir_p) $(somedir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
633 # where $(somedir) is conditionally defined. However this is wrong
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
634 # for two reasons:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
635 # 1. if the package is installed by a user who cannot write `.'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
636 # make install will fail,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
637 # 2. the above comment should most certainly read
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
638 # $(mkdir_p) $(DESTDIR)$(somedir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
639 # so it does not work when $(somedir) is undefined and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
640 # $(DESTDIR) is not.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
641 # To support the latter case, we have to write
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
642 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
643 # so the `.' trick is pointless.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
644 mkdir_p='mkdir -p --'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
645 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
646 # On NextStep and OpenStep, the `mkdir' command does not
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
647 # recognize any option. It will interpret all options as
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
648 # directories to create, and then abort because `.' already
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
649 # exists.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
650 for d in ./-p ./--version;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
651 do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
652 test -d $d && rmdir $d
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
653 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
654 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
655 if test -f "$ac_aux_dir/mkinstalldirs"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
656 mkdir_p='$(mkinstalldirs)'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
657 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
658 mkdir_p='$(install_sh) -d'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
659 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
660 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
661 AC_SUBST([mkdir_p])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
662
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
663 # Helper functions for option handling. -*- Autoconf -*-
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
664
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
665 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
666 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
667 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
668 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
669 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
670
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
671 # serial 3
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
672
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
673 # _AM_MANGLE_OPTION(NAME)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
674 # -----------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
675 AC_DEFUN([_AM_MANGLE_OPTION],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
676 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
677
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
678 # _AM_SET_OPTION(NAME)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
679 # ------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
680 # Set option NAME. Presently that only means defining a flag for this option.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
681 AC_DEFUN([_AM_SET_OPTION],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
682 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
683
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
684 # _AM_SET_OPTIONS(OPTIONS)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
685 # ----------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
686 # OPTIONS is a space-separated list of Automake options.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
687 AC_DEFUN([_AM_SET_OPTIONS],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
688 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
689
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
690 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
691 # -------------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
692 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
693 AC_DEFUN([_AM_IF_OPTION],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
694 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
695
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
696 # Check to make sure that the build environment is sane. -*- Autoconf -*-
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
697
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
698 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
699 # Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
700 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
701 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
702 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
703 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
704
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
705 # serial 4
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
706
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
707 # AM_SANITY_CHECK
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
708 # ---------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
709 AC_DEFUN([AM_SANITY_CHECK],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
710 [AC_MSG_CHECKING([whether build environment is sane])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
711 # Just in case
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
712 sleep 1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
713 echo timestamp > conftest.file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
714 # Do `set' in a subshell so we don't clobber the current shell's
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
715 # arguments. Must try -L first in case configure is actually a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
716 # symlink; some systems play weird games with the mod time of symlinks
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
717 # (eg FreeBSD returns the mod time of the symlink's containing
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
718 # directory).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
719 if (
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
720 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
721 if test "$[*]" = "X"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
722 # -L didn't work.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
723 set X `ls -t $srcdir/configure conftest.file`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
724 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
725 rm -f conftest.file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
726 if test "$[*]" != "X $srcdir/configure conftest.file" \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
727 && test "$[*]" != "X conftest.file $srcdir/configure"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
728
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
729 # If neither matched, then we have a broken ls. This can happen
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
730 # if, for instance, CONFIG_SHELL is bash and it inherits a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
731 # broken ls alias from the environment. This has actually
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
732 # happened. Such a system could not be considered "sane".
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
733 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
734 alias in your environment])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
735 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
736
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
737 test "$[2]" = conftest.file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
738 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
739 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
740 # Ok.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
741 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
742 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
743 AC_MSG_ERROR([newly created file is older than distributed files!
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
744 Check your system clock])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
745 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
746 AC_MSG_RESULT(yes)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
747
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
748 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
749 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
750 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
751 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
752 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
753
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
754 # AM_PROG_INSTALL_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
755 # ---------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
756 # One issue with vendor `install' (even GNU) is that you can't
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
757 # specify the program used to strip binaries. This is especially
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
758 # annoying in cross-compiling environments, where the build's strip
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
759 # is unlikely to handle the host's binaries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
760 # Fortunately install-sh will honor a STRIPPROG variable, so we
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
761 # always use install-sh in `make install-strip', and initialize
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
762 # STRIPPROG with the value of the STRIP variable (set by the user).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
763 AC_DEFUN([AM_PROG_INSTALL_STRIP],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
764 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
765 # Installed binaries are usually stripped using `strip' when the user
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
766 # run `make install-strip'. However `strip' might not be the right
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
767 # tool to use in cross-compilation environments, therefore Automake
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
768 # will honor the `STRIP' environment variable to overrule this program.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
769 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
770 if test "$cross_compiling" != no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
771 AC_CHECK_TOOL([STRIP], [strip], :)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
772 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
773 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
774 AC_SUBST([INSTALL_STRIP_PROGRAM])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
775
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
776 # Check how to create a tarball. -*- Autoconf -*-
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
777
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
778 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
779 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
780 # This file is free software; the Free Software Foundation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
781 # gives unlimited permission to copy and/or distribute it,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
782 # with or without modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
783
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
784 # serial 2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
785
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
786 # _AM_PROG_TAR(FORMAT)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
787 # --------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
788 # Check how to create a tarball in format FORMAT.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
789 # FORMAT should be one of `v7', `ustar', or `pax'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
790 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
791 # Substitute a variable $(am__tar) that is a command
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
792 # writing to stdout a FORMAT-tarball containing the directory
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
793 # $tardir.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
794 # tardir=directory && $(am__tar) > result.tar
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
795 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
796 # Substitute a variable $(am__untar) that extract such
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
797 # a tarball read from stdin.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
798 # $(am__untar) < result.tar
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
799 AC_DEFUN([_AM_PROG_TAR],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
800 [# Always define AMTAR for backward compatibility.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
801 AM_MISSING_PROG([AMTAR], [tar])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
802 m4_if([$1], [v7],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
803 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
804 [m4_case([$1], [ustar],, [pax],,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
805 [m4_fatal([Unknown tar format])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
806 AC_MSG_CHECKING([how to create a $1 tar archive])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
807 # Loop over all known methods to create a tar archive until one works.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
808 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
809 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
810 # Do not fold the above two line into one, because Tru64 sh and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
811 # Solaris sh will not grok spaces in the rhs of `-'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
812 for _am_tool in $_am_tools
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
813 do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
814 case $_am_tool in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
815 gnutar)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
816 for _am_tar in tar gnutar gtar;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
817 do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
818 AM_RUN_LOG([$_am_tar --version]) && break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
819 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
820 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
821 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
822 am__untar="$_am_tar -xf -"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
823 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
824 plaintar)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
825 # Must skip GNU tar: if it does not support --format= it doesn't create
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
826 # ustar tarball either.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
827 (tar --version) >/dev/null 2>&1 && continue
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
828 am__tar='tar chf - "$$tardir"'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
829 am__tar_='tar chf - "$tardir"'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
830 am__untar='tar xf -'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
831 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
832 pax)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
833 am__tar='pax -L -x $1 -w "$$tardir"'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
834 am__tar_='pax -L -x $1 -w "$tardir"'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
835 am__untar='pax -r'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
836 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
837 cpio)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
838 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
839 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
840 am__untar='cpio -i -H $1 -d'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
841 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
842 none)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
843 am__tar=false
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
844 am__tar_=false
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
845 am__untar=false
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
846 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
847 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
848
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
849 # If the value was cached, stop now. We just wanted to have am__tar
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
850 # and am__untar set.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
851 test -n "${am_cv_prog_tar_$1}" && break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
852
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
853 # tar/untar a dummy directory, and stop if the command works
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
854 rm -rf conftest.dir
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
855 mkdir conftest.dir
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
856 echo GrepMe > conftest.dir/file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
857 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
858 rm -rf conftest.dir
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
859 if test -s conftest.tar; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
860 AM_RUN_LOG([$am__untar <conftest.tar])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
861 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
862 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
863 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
864 rm -rf conftest.dir
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
865
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
866 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
867 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
868 AC_SUBST([am__tar])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
869 AC_SUBST([am__untar])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
870 ]) # _AM_PROG_TAR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
871
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
872 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
873
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
874 # serial 47 AC_PROG_LIBTOOL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
875
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
876
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
877 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
878 # -----------------------------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
879 # If this macro is not defined by Autoconf, define it here.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
880 m4_ifdef([AC_PROVIDE_IFELSE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
881 [],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
882 [m4_define([AC_PROVIDE_IFELSE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
883 [m4_ifdef([AC_PROVIDE_$1],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
884 [$2], [$3])])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
885
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
886
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
887 # AC_PROG_LIBTOOL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
888 # ---------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
889 AC_DEFUN([AC_PROG_LIBTOOL],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
890 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
891 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
892 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
893 AC_PROVIDE_IFELSE([AC_PROG_CXX],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
894 [AC_LIBTOOL_CXX],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
895 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
896 ])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
897 dnl And a similar setup for Fortran 77 support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
898 AC_PROVIDE_IFELSE([AC_PROG_F77],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
899 [AC_LIBTOOL_F77],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
900 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
901 ])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
902
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
903 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
904 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
905 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
906 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
907 [AC_LIBTOOL_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
908 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
909 [AC_LIBTOOL_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
910 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
911 [AC_LIBTOOL_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
912 [ifdef([AC_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
913 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
914 ifdef([A][M_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
915 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
916 ifdef([LT_AC_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
917 [define([LT_AC_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
918 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
919 ])])# AC_PROG_LIBTOOL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
920
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
921
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
922 # _AC_PROG_LIBTOOL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
923 # ----------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
924 AC_DEFUN([_AC_PROG_LIBTOOL],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
925 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
926 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
927 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
928 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
929
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
930 # This can be used to rebuild libtool when needed
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
931 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
932
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
933 # Always use our own libtool.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
934 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
935 AC_SUBST(LIBTOOL)dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
936
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
937 # Prevent multiple expansion
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
938 define([AC_PROG_LIBTOOL], [])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
939 ])# _AC_PROG_LIBTOOL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
940
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
941
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
942 # AC_LIBTOOL_SETUP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
943 # ----------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
944 AC_DEFUN([AC_LIBTOOL_SETUP],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
945 [AC_PREREQ(2.50)dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
946 AC_REQUIRE([AC_ENABLE_SHARED])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
947 AC_REQUIRE([AC_ENABLE_STATIC])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
948 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
949 AC_REQUIRE([AC_CANONICAL_HOST])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
950 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
951 AC_REQUIRE([AC_PROG_CC])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
952 AC_REQUIRE([AC_PROG_LD])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
953 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
954 AC_REQUIRE([AC_PROG_NM])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
955
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
956 AC_REQUIRE([AC_PROG_LN_S])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
957 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
958 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
959 AC_REQUIRE([AC_OBJEXT])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
960 AC_REQUIRE([AC_EXEEXT])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
961 dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
962
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
963 AC_LIBTOOL_SYS_MAX_CMD_LEN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
964 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
965 AC_LIBTOOL_OBJDIR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
966
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
967 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
968 _LT_AC_PROG_ECHO_BACKSLASH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
969
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
970 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
971 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
972 # AIX sometimes has problems with the GCC collect2 program. For some
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
973 # reason, if we set the COLLECT_NAMES environment variable, the problems
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
974 # vanish in a puff of smoke.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
975 if test "X${COLLECT_NAMES+set}" != Xset; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
976 COLLECT_NAMES=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
977 export COLLECT_NAMES
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
978 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
979 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
980 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
981
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
982 # Sed substitution that helps us do robust quoting. It backslashifies
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
983 # metacharacters that are still active within double-quoted strings.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
984 Xsed='sed -e s/^X//'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
985 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
986
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
987 # Same as above, but do not quote variable references.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
988 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
989
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
990 # Sed substitution to delay expansion of an escaped shell variable in a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
991 # double_quote_subst'ed string.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
992 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
993
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
994 # Sed substitution to avoid accidental globbing in evaled expressions
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
995 no_glob_subst='s/\*/\\\*/g'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
996
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
997 # Constants:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
998 rm="rm -f"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
999
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1000 # Global variables:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1001 default_ofile=libtool
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1002 can_build_shared=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1003
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1004 # All known linkers require a `.a' archive for static linking (except M$VC,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1005 # which needs '.lib').
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1006 libext=a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1007 ltmain="$ac_aux_dir/ltmain.sh"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1008 ofile="$default_ofile"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1009 with_gnu_ld="$lt_cv_prog_gnu_ld"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1010
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1011 AC_CHECK_TOOL(AR, ar, false)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1012 AC_CHECK_TOOL(RANLIB, ranlib, :)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1013 AC_CHECK_TOOL(STRIP, strip, :)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1014
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1015 old_CC="$CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1016 old_CFLAGS="$CFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1017
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1018 # Set sane defaults for various variables
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1019 test -z "$AR" && AR=ar
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1020 test -z "$AR_FLAGS" && AR_FLAGS=cru
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1021 test -z "$AS" && AS=as
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1022 test -z "$CC" && CC=cc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1023 test -z "$LTCC" && LTCC=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1024 test -z "$DLLTOOL" && DLLTOOL=dlltool
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1025 test -z "$LD" && LD=ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1026 test -z "$LN_S" && LN_S="ln -s"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1027 test -z "$MAGIC_CMD" && MAGIC_CMD=file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1028 test -z "$NM" && NM=nm
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1029 test -z "$SED" && SED=sed
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1030 test -z "$OBJDUMP" && OBJDUMP=objdump
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1031 test -z "$RANLIB" && RANLIB=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1032 test -z "$STRIP" && STRIP=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1033 test -z "$ac_objext" && ac_objext=o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1034
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1035 # Determine commands to create old-style static archives.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1036 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1037 old_postinstall_cmds='chmod 644 $oldlib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1038 old_postuninstall_cmds=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1039
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1040 if test -n "$RANLIB"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1041 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1042 openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1043 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1044 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1045 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1046 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1047 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1048 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1049 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1050 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1051
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1052 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1053
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1054 # Only perform the check for file, if the check method requires it
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1055 case $deplibs_check_method in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1056 file_magic*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1057 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1058 AC_PATH_MAGIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1059 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1060 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1061 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1062
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1063 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1064 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1065 enable_win32_dll=yes, enable_win32_dll=no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1066
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1067 AC_ARG_ENABLE([libtool-lock],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1068 [AC_HELP_STRING([--disable-libtool-lock],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1069 [avoid locking (might break parallel builds)])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1070 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1071
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1072 AC_ARG_WITH([pic],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1073 [AC_HELP_STRING([--with-pic],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1074 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1075 [pic_mode="$withval"],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1076 [pic_mode=default])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1077 test -z "$pic_mode" && pic_mode=default
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1078
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1079 # Use C for the default configuration in the libtool script
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1080 tagname=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1081 AC_LIBTOOL_LANG_C_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1082 _LT_AC_TAGCONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1083 ])# AC_LIBTOOL_SETUP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1084
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1085
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1086 # _LT_AC_SYS_COMPILER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1087 # -------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1088 AC_DEFUN([_LT_AC_SYS_COMPILER],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1089 [AC_REQUIRE([AC_PROG_CC])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1090
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1091 # If no C compiler was specified, use CC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1092 LTCC=${LTCC-"$CC"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1093
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1094 # Allow CC to be a program name with arguments.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1095 compiler=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1096 ])# _LT_AC_SYS_COMPILER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1097
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1098
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1099 # _LT_AC_SYS_LIBPATH_AIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1100 # ----------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1101 # Links a minimal program and checks the executable
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1102 # for the system default hardcoded library path. In most cases,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1103 # this is /usr/lib:/lib, but when the MPI compilers are used
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1104 # the location of the communication and MPI libs are included too.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1105 # If we don't find anything, use the default library path according
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1106 # to the aix ld manual.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1107 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1108 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1109 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1110 }'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1111 # Check for a 64-bit object if we didn't find anything.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1112 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1113 }'`; fi],[])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1114 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1115 ])# _LT_AC_SYS_LIBPATH_AIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1116
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1117
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1118 # _LT_AC_SHELL_INIT(ARG)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1119 # ----------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1120 AC_DEFUN([_LT_AC_SHELL_INIT],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1121 [ifdef([AC_DIVERSION_NOTICE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1122 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1123 [AC_DIVERT_PUSH(NOTICE)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1124 $1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1125 AC_DIVERT_POP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1126 ])# _LT_AC_SHELL_INIT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1127
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1128
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1129 # _LT_AC_PROG_ECHO_BACKSLASH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1130 # --------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1131 # Add some code to the start of the generated configure script which
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1132 # will find an echo command which doesn't interpret backslashes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1133 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1134 [_LT_AC_SHELL_INIT([
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1135 # Check that we are running under the correct shell.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1136 SHELL=${CONFIG_SHELL-/bin/sh}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1137
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1138 case X$ECHO in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1139 X*--fallback-echo)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1140 # Remove one level of quotation (which was required for Make).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1141 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1142 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1143 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1144
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1145 echo=${ECHO-echo}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1146 if test "X[$]1" = X--no-reexec; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1147 # Discard the --no-reexec flag, and continue.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1148 shift
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1149 elif test "X[$]1" = X--fallback-echo; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1150 # Avoid inline document here, it may be left over
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1151 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1152 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1153 # Yippee, $echo works!
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1154 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1155 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1156 # Restart under the correct shell.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1157 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1158 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1159
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1160 if test "X[$]1" = X--fallback-echo; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1161 # used as fallback echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1162 shift
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1163 cat <<EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1164 [$]*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1165 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1166 exit 0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1167 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1168
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1169 # The HP-UX ksh and POSIX shell print the target directory to stdout
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1170 # if CDPATH is set.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1171 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1172
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1173 if test -z "$ECHO"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1174 if test "X${echo_test_string+set}" != Xset; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1175 # find a string as large as possible, as long as the shell can cope with it
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1176 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1177 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1178 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1179 echo_test_string="`eval $cmd`" &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1180 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1181 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1182 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1183 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1184 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1185 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1186
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1187 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1188 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1189 test "X$echo_testing_string" = "X$echo_test_string"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1190 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1191 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1192 # The Solaris, AIX, and Digital Unix default echo programs unquote
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1193 # backslashes. This makes it impossible to quote backslashes using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1194 # echo "$something" | sed 's/\\/\\\\/g'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1195 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1196 # So, first we look for a working echo in the user's PATH.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1197
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1198 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1199 for dir in $PATH /usr/ucb; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1200 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1201 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1202 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1203 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1204 test "X$echo_testing_string" = "X$echo_test_string"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1205 echo="$dir/echo"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1206 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1207 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1208 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1209 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1210
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1211 if test "X$echo" = Xecho; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1212 # We didn't find a better echo, so look for alternatives.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1213 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1214 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1215 test "X$echo_testing_string" = "X$echo_test_string"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1216 # This shell has a builtin print -r that does the trick.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1217 echo='print -r'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1218 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1219 test "X$CONFIG_SHELL" != X/bin/ksh; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1220 # If we have ksh, try running configure again with it.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1221 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1222 export ORIGINAL_CONFIG_SHELL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1223 CONFIG_SHELL=/bin/ksh
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1224 export CONFIG_SHELL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1225 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1226 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1227 # Try using printf.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1228 echo='printf %s\n'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1229 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1230 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1231 test "X$echo_testing_string" = "X$echo_test_string"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1232 # Cool, printf works
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1233 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1234 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1235 test "X$echo_testing_string" = 'X\t' &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1236 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1237 test "X$echo_testing_string" = "X$echo_test_string"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1238 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1239 export CONFIG_SHELL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1240 SHELL="$CONFIG_SHELL"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1241 export SHELL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1242 echo="$CONFIG_SHELL [$]0 --fallback-echo"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1243 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1244 test "X$echo_testing_string" = 'X\t' &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1245 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1246 test "X$echo_testing_string" = "X$echo_test_string"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1247 echo="$CONFIG_SHELL [$]0 --fallback-echo"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1248 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1249 # maybe with a smaller string...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1250 prev=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1251
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1252 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1253 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1254 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1255 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1256 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1257 prev="$cmd"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1258 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1259
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1260 if test "$prev" != 'sed 50q "[$]0"'; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1261 echo_test_string=`eval $prev`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1262 export echo_test_string
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1263 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1264 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1265 # Oops. We lost completely, so just stick with echo.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1266 echo=echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1267 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1268 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1269 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1270 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1271 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1272 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1273
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1274 # Copy echo and quote the copy suitably for passing to libtool from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1275 # the Makefile, instead of quoting the original, which is used later.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1276 ECHO=$echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1277 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1278 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1279 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1280
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1281 AC_SUBST(ECHO)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1282 ])])# _LT_AC_PROG_ECHO_BACKSLASH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1283
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1284
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1285 # _LT_AC_LOCK
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1286 # -----------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1287 AC_DEFUN([_LT_AC_LOCK],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1288 [AC_ARG_ENABLE([libtool-lock],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1289 [AC_HELP_STRING([--disable-libtool-lock],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1290 [avoid locking (might break parallel builds)])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1291 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1292
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1293 # Some flags need to be propagated to the compiler or linker for good
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1294 # libtool support.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1295 case $host in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1296 ia64-*-hpux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1297 # Find out which ABI we are using.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1298 echo 'int i;' > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1299 if AC_TRY_EVAL(ac_compile); then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1300 case `/usr/bin/file conftest.$ac_objext` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1301 *ELF-32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1302 HPUX_IA64_MODE="32"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1303 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1304 *ELF-64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1305 HPUX_IA64_MODE="64"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1306 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1307 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1308 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1309 rm -rf conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1310 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1311 *-*-irix6*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1312 # Find out which ABI we are using.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1313 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1314 if AC_TRY_EVAL(ac_compile); then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1315 if test "$lt_cv_prog_gnu_ld" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1316 case `/usr/bin/file conftest.$ac_objext` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1317 *32-bit*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1318 LD="${LD-ld} -melf32bsmip"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1319 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1320 *N32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1321 LD="${LD-ld} -melf32bmipn32"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1322 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1323 *64-bit*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1324 LD="${LD-ld} -melf64bmip"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1325 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1326 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1327 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1328 case `/usr/bin/file conftest.$ac_objext` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1329 *32-bit*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1330 LD="${LD-ld} -32"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1331 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1332 *N32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1333 LD="${LD-ld} -n32"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1334 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1335 *64-bit*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1336 LD="${LD-ld} -64"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1337 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1338 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1339 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1340 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1341 rm -rf conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1342 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1343
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1344 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1345 # Find out which ABI we are using.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1346 echo 'int i;' > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1347 if AC_TRY_EVAL(ac_compile); then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1348 case "`/usr/bin/file conftest.o`" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1349 *32-bit*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1350 case $host in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1351 x86_64-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1352 LD="${LD-ld} -m elf_i386"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1353 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1354 ppc64-*linux*|powerpc64-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1355 LD="${LD-ld} -m elf32ppclinux"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1356 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1357 s390x-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1358 LD="${LD-ld} -m elf_s390"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1359 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1360 sparc64-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1361 LD="${LD-ld} -m elf32_sparc"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1362 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1363 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1364 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1365 *64-bit*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1366 case $host in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1367 x86_64-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1368 LD="${LD-ld} -m elf_x86_64"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1369 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1370 ppc*-*linux*|powerpc*-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1371 LD="${LD-ld} -m elf64ppc"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1372 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1373 s390*-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1374 LD="${LD-ld} -m elf64_s390"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1375 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1376 sparc*-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1377 LD="${LD-ld} -m elf64_sparc"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1378 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1379 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1380 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1381 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1382 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1383 rm -rf conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1384 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1385
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1386 *-*-sco3.2v5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1387 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1388 SAVE_CFLAGS="$CFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1389 CFLAGS="$CFLAGS -belf"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1390 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1391 [AC_LANG_PUSH(C)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1392 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1393 AC_LANG_POP])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1394 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1395 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1396 CFLAGS="$SAVE_CFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1397 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1398 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1399 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1400 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1401 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1402 AC_CHECK_TOOL(AS, as, false)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1403 AC_CHECK_TOOL(OBJDUMP, objdump, false)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1404 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1405 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1406 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1407
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1408 need_locks="$enable_libtool_lock"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1409
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1410 ])# _LT_AC_LOCK
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1411
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1412
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1413 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1414 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1415 # ----------------------------------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1416 # Check whether the given compiler option works
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1417 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1418 [AC_REQUIRE([LT_AC_PROG_SED])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1419 AC_CACHE_CHECK([$1], [$2],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1420 [$2=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1421 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1422 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1423 lt_compiler_flag="$3"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1424 # Insert the option either (1) after the last *FLAGS variable, or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1425 # (2) before a word containing "conftest.", or (3) at the end.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1426 # Note that $ac_compile itself does not contain backslashes and begins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1427 # with a dollar sign (not a hyphen), so the echo should work correctly.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1428 # The option is referenced via a variable to avoid confusing sed.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1429 lt_compile=`echo "$ac_compile" | $SED \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1430 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1431 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1432 -e 's:$: $lt_compiler_flag:'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1433 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1434 (eval "$lt_compile" 2>conftest.err)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1435 ac_status=$?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1436 cat conftest.err >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1437 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1438 if (exit $ac_status) && test -s "$ac_outfile"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1439 # The compiler can only warn and ignore the option if not recognized
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1440 # So say no if there are warnings
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1441 if test ! -s conftest.err; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1442 $2=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1443 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1444 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1445 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1446 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1447
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1448 if test x"[$]$2" = xyes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1449 ifelse([$5], , :, [$5])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1450 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1451 ifelse([$6], , :, [$6])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1452 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1453 ])# AC_LIBTOOL_COMPILER_OPTION
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1454
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1455
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1456 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1457 # [ACTION-SUCCESS], [ACTION-FAILURE])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1458 # ------------------------------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1459 # Check whether the given compiler option works
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1460 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1461 [AC_CACHE_CHECK([$1], [$2],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1462 [$2=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1463 save_LDFLAGS="$LDFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1464 LDFLAGS="$LDFLAGS $3"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1465 printf "$lt_simple_link_test_code" > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1466 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1467 # The compiler can only warn and ignore the option if not recognized
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1468 # So say no if there are warnings
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1469 if test -s conftest.err; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1470 # Append any errors to the config.log.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1471 cat conftest.err 1>&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1472 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1473 $2=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1474 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1475 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1476 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1477 LDFLAGS="$save_LDFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1478 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1479
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1480 if test x"[$]$2" = xyes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1481 ifelse([$4], , :, [$4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1482 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1483 ifelse([$5], , :, [$5])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1484 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1485 ])# AC_LIBTOOL_LINKER_OPTION
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1486
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1487
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1488 # AC_LIBTOOL_SYS_MAX_CMD_LEN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1489 # --------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1490 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1491 [# find the maximum length of command line arguments
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1492 AC_MSG_CHECKING([the maximum length of command line arguments])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1493 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1494 i=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1495 teststring="ABCD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1496
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1497 case $build_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1498 msdosdjgpp*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1499 # On DJGPP, this test can blow up pretty badly due to problems in libc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1500 # (any single argument exceeding 2000 bytes causes a buffer overrun
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1501 # during glob expansion). Even if it were fixed, the result of this
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1502 # check would be larger than it should be.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1503 lt_cv_sys_max_cmd_len=12288; # 12K is about right
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1504 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1505
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1506 gnu*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1507 # Under GNU Hurd, this test is not required because there is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1508 # no limit to the length of command line arguments.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1509 # Libtool will interpret -1 as no limit whatsoever
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1510 lt_cv_sys_max_cmd_len=-1;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1511 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1512
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1513 cygwin* | mingw*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1514 # On Win9x/ME, this test blows up -- it succeeds, but takes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1515 # about 5 minutes as the teststring grows exponentially.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1516 # Worse, since 9x/ME are not pre-emptively multitasking,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1517 # you end up with a "frozen" computer, even though with patience
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1518 # the test eventually succeeds (with a max line length of 256k).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1519 # Instead, let's just punt: use the minimum linelength reported by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1520 # all of the supported platforms: 8192 (on NT/2K/XP).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1521 lt_cv_sys_max_cmd_len=8192;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1522 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1523
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1524 amigaos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1525 # On AmigaOS with pdksh, this test takes hours, literally.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1526 # So we just punt and use a minimum line length of 8192.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1527 lt_cv_sys_max_cmd_len=8192;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1528 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1529
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1530 netbsd* | freebsd* | openbsd* | darwin* )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1531 # This has been around since 386BSD, at least. Likely further.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1532 if test -x /sbin/sysctl; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1533 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1534 elif test -x /usr/sbin/sysctl; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1535 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1536 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1537 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1538 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1539 # And add a safety zone
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1541 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1542
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1543 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1544 # If test is not a shell built-in, we'll probably end up computing a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1545 # maximum length that is only half of the actual maximum length, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1546 # we can't tell.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1547 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1548 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1549 = "XX$teststring") >/dev/null 2>&1 &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1550 new_result=`expr "X$teststring" : ".*" 2>&1` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1551 lt_cv_sys_max_cmd_len=$new_result &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1552 test $i != 17 # 1/2 MB should be enough
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1553 do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1554 i=`expr $i + 1`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1555 teststring=$teststring$teststring
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1556 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1557 teststring=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1558 # Add a significant safety factor because C++ compilers can tack on massive
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1559 # amounts of additional arguments before passing them to the linker.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1560 # It appears as though 1/2 is a usable value.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1562 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1563 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1564 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1565 if test -n $lt_cv_sys_max_cmd_len ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1566 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1567 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1568 AC_MSG_RESULT(none)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1569 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1570 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1571
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1572
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1573 # _LT_AC_CHECK_DLFCN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1574 # --------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1575 AC_DEFUN([_LT_AC_CHECK_DLFCN],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1576 [AC_CHECK_HEADERS(dlfcn.h)dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1577 ])# _LT_AC_CHECK_DLFCN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1578
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1579
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1580 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1581 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1582 # ------------------------------------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1583 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1584 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1585 if test "$cross_compiling" = yes; then :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1586 [$4]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1587 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1589 lt_status=$lt_dlunknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1590 cat > conftest.$ac_ext <<EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1591 [#line __oline__ "configure"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1592 #include "confdefs.h"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1593
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1594 #if HAVE_DLFCN_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1595 #include <dlfcn.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1596 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1597
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1598 #include <stdio.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1599
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1600 #ifdef RTLD_GLOBAL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1601 # define LT_DLGLOBAL RTLD_GLOBAL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1602 #else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1603 # ifdef DL_GLOBAL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1604 # define LT_DLGLOBAL DL_GLOBAL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1605 # else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1606 # define LT_DLGLOBAL 0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1607 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1608 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1609
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1611 find out it does not work in some platform. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1612 #ifndef LT_DLLAZY_OR_NOW
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1613 # ifdef RTLD_LAZY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1614 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1615 # else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1616 # ifdef DL_LAZY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1617 # define LT_DLLAZY_OR_NOW DL_LAZY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1618 # else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1619 # ifdef RTLD_NOW
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1620 # define LT_DLLAZY_OR_NOW RTLD_NOW
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1621 # else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1622 # ifdef DL_NOW
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1623 # define LT_DLLAZY_OR_NOW DL_NOW
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1624 # else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1625 # define LT_DLLAZY_OR_NOW 0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1626 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1627 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1628 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1629 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1630 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1631
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1632 #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1633 extern "C" void exit (int);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1634 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1635
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1636 void fnord() { int i=42;}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1637 int main ()
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1638 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1640 int status = $lt_dlunknown;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1641
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1642 if (self)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1643 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1646 /* dlclose (self); */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1647 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1648
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1649 exit (status);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1650 }]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1651 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1652 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1653 (./conftest; exit; ) 2>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1654 lt_status=$?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1655 case x$lt_status in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1656 x$lt_dlno_uscore) $1 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1657 x$lt_dlneed_uscore) $2 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1658 x$lt_unknown|x*) $3 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1659 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1660 else :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1661 # compilation failed
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1662 $3
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1663 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1664 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1665 rm -fr conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1666 ])# _LT_AC_TRY_DLOPEN_SELF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1667
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1668
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1669 # AC_LIBTOOL_DLOPEN_SELF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1670 # -------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1671 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1672 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1673 if test "x$enable_dlopen" != xyes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1674 enable_dlopen=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1675 enable_dlopen_self=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1676 enable_dlopen_self_static=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1677 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1678 lt_cv_dlopen=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1679 lt_cv_dlopen_libs=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1680
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1681 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1682 beos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1683 lt_cv_dlopen="load_add_on"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1684 lt_cv_dlopen_libs=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1685 lt_cv_dlopen_self=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1686 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1687
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1688 mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1689 lt_cv_dlopen="LoadLibrary"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1690 lt_cv_dlopen_libs=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1691 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1692
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1693 cygwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1694 lt_cv_dlopen="dlopen"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1695 lt_cv_dlopen_libs=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1696 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1697
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1698 darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1699 # if libdl is installed we need to link against it
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1700 AC_CHECK_LIB([dl], [dlopen],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1701 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1702 lt_cv_dlopen="dyld"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1703 lt_cv_dlopen_libs=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1704 lt_cv_dlopen_self=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1705 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1706 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1707
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1708 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1709 AC_CHECK_FUNC([shl_load],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1710 [lt_cv_dlopen="shl_load"],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1711 [AC_CHECK_LIB([dld], [shl_load],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1712 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1713 [AC_CHECK_FUNC([dlopen],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1714 [lt_cv_dlopen="dlopen"],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1715 [AC_CHECK_LIB([dl], [dlopen],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1716 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1717 [AC_CHECK_LIB([svld], [dlopen],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1718 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1719 [AC_CHECK_LIB([dld], [dld_link],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1720 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1721 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1722 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1723 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1724 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1725 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1726 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1727 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1728
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1729 if test "x$lt_cv_dlopen" != xno; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1730 enable_dlopen=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1731 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1732 enable_dlopen=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1733 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1734
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1735 case $lt_cv_dlopen in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1736 dlopen)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1737 save_CPPFLAGS="$CPPFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1738 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1739
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1740 save_LDFLAGS="$LDFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1741 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1742
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1743 save_LIBS="$LIBS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1744 LIBS="$lt_cv_dlopen_libs $LIBS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1745
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1746 AC_CACHE_CHECK([whether a program can dlopen itself],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1747 lt_cv_dlopen_self, [dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1748 _LT_AC_TRY_DLOPEN_SELF(
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1749 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1750 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1751 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1752
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1753 if test "x$lt_cv_dlopen_self" = xyes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1754 LDFLAGS="$LDFLAGS $link_static_flag"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1755 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1756 lt_cv_dlopen_self_static, [dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1757 _LT_AC_TRY_DLOPEN_SELF(
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1758 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1759 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1760 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1761 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1762
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1763 CPPFLAGS="$save_CPPFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1764 LDFLAGS="$save_LDFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1765 LIBS="$save_LIBS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1766 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1767 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1768
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1769 case $lt_cv_dlopen_self in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1770 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1771 *) enable_dlopen_self=unknown ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1772 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1773
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1774 case $lt_cv_dlopen_self_static in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1775 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1776 *) enable_dlopen_self_static=unknown ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1777 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1778 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1779 ])# AC_LIBTOOL_DLOPEN_SELF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1780
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1781
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1782 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1783 # ---------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1784 # Check to see if options -c and -o are simultaneously supported by compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1785 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1786 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1787 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1788 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1789 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1790 $rm -r conftest 2>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1791 mkdir conftest
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1792 cd conftest
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1793 mkdir out
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1794 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1795
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1796 lt_compiler_flag="-o out/conftest2.$ac_objext"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1797 # Insert the option either (1) after the last *FLAGS variable, or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1798 # (2) before a word containing "conftest.", or (3) at the end.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1799 # Note that $ac_compile itself does not contain backslashes and begins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1800 # with a dollar sign (not a hyphen), so the echo should work correctly.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1801 lt_compile=`echo "$ac_compile" | $SED \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1802 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1803 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1804 -e 's:$: $lt_compiler_flag:'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1805 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1806 (eval "$lt_compile" 2>out/conftest.err)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1807 ac_status=$?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1808 cat out/conftest.err >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1809 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1810 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1811 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1812 # The compiler can only warn and ignore the option if not recognized
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1813 # So say no if there are warnings
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1814 if test ! -s out/conftest.err; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1815 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1816 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1817 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1818 chmod u+w .
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1819 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1820 # SGI C++ compiler will create directory out/ii_files/ for
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1821 # template instantiation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1822 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1823 $rm out/* && rmdir out
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1824 cd ..
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1825 rmdir conftest
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1826 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1827 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1828 ])# AC_LIBTOOL_PROG_CC_C_O
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1829
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1830
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1831 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1832 # -----------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1833 # Check to see if we can do hard links to lock some files if needed
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1834 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1835 [AC_REQUIRE([_LT_AC_LOCK])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1836
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1837 hard_links="nottested"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1838 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1839 # do not overwrite the value of need_locks provided by the user
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1840 AC_MSG_CHECKING([if we can lock with hard links])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1841 hard_links=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1842 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1844 touch conftest.a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1845 ln conftest.a conftest.b 2>&5 || hard_links=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1847 AC_MSG_RESULT([$hard_links])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1848 if test "$hard_links" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1849 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1850 need_locks=warn
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1851 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1852 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1853 need_locks=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1854 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1855 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1856
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1857
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1858 # AC_LIBTOOL_OBJDIR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1859 # -----------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1860 AC_DEFUN([AC_LIBTOOL_OBJDIR],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1861 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1862 [rm -f .libs 2>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1863 mkdir .libs 2>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1864 if test -d .libs; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1865 lt_cv_objdir=.libs
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1866 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1867 # MS-DOS does not allow filenames that begin with a dot.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1868 lt_cv_objdir=_libs
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1869 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1870 rmdir .libs 2>/dev/null])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1871 objdir=$lt_cv_objdir
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1872 ])# AC_LIBTOOL_OBJDIR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1873
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1874
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1875 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1876 # ----------------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1877 # Check hardcoding attributes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1878 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1879 [AC_MSG_CHECKING([how to hardcode library paths into programs])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1880 _LT_AC_TAGVAR(hardcode_action, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1881 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1882 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1883 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1884
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1885 # We can hardcode non-existant directories.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1886 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1887 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1888 # have to relink, otherwise we might link with an installed library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1889 # when we should be linking with a yet-to-be-installed one
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1890 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1891 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1892 # Linking always hardcodes the temporary library directory.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1893 _LT_AC_TAGVAR(hardcode_action, $1)=relink
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1894 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1895 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1896 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1897 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1898 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1899 # We cannot hardcode anything, or else we can only hardcode existing
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1900 # directories.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1901 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1902 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1903 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1904
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1905 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1906 # Fast installation is not supported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1907 enable_fast_install=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1908 elif test "$shlibpath_overrides_runpath" = yes ||
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1909 test "$enable_shared" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1910 # Fast installation is not necessary
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1911 enable_fast_install=needless
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1912 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1913 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1914
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1915
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1916 # AC_LIBTOOL_SYS_LIB_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1917 # ------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1918 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1919 [striplib=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1920 old_striplib=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1921 AC_MSG_CHECKING([whether stripping libraries is possible])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1922 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1923 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1924 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1925 AC_MSG_RESULT([yes])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1926 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1927 # FIXME - insert some real tests, host_os isn't really good enough
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1928 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1929 darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1930 if test -n "$STRIP" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1931 striplib="$STRIP -x"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1932 AC_MSG_RESULT([yes])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1933 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1934 AC_MSG_RESULT([no])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1935 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1936 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1937 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1938 AC_MSG_RESULT([no])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1939 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1940 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1941 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1942 ])# AC_LIBTOOL_SYS_LIB_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1943
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1944
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1945 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1946 # -----------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1947 # PORTME Fill in your ld.so characteristics
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1948 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1949 [AC_MSG_CHECKING([dynamic linker characteristics])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1950 library_names_spec=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1951 libname_spec='lib$name'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1952 soname_spec=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1953 shrext_cmds=".so"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1954 postinstall_cmds=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1955 postuninstall_cmds=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1956 finish_cmds=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1957 finish_eval=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1958 shlibpath_var=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1959 shlibpath_overrides_runpath=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1960 version_type=none
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1961 dynamic_linker="$host_os ld.so"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1962 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1963 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1964 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1965 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1966 # if the path contains ";" then we assume it to be the separator
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1967 # otherwise default to the standard path separator (i.e. ":") - it is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1968 # assumed that no part of a normal pathname contains ";" but that should
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1969 # okay in the real world where ";" in dirpaths is itself problematic.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1971 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1973 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1974 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1975 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1976 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1977 need_lib_prefix=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1978 hardcode_into_libs=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1979
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1980 # when you set need_version to no, make sure it does not cause -set_version
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1981 # flags to be left without arguments
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1982 need_version=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1983
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1984 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1985 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1986 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1987 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1988 shlibpath_var=LIBPATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1989
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1990 # AIX 3 has no versioning support, so we append a major version to the name.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1991 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1992 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1993
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1994 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1995 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1996 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1997 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1998 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1999 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2000 # AIX 5 supports IA64
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2001 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2002 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2003 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2004 # With GCC up to 2.95.x, collect2 would create an import file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2005 # for dependence libraries. The import file would start with
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2006 # the line `#! .'. This would cause the generated library to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2007 # depend on `.', always an invalid library. This was fixed in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2008 # development snapshots of GCC prior to 3.0.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2009 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2010 aix4 | aix4.[[01]] | aix4.[[01]].*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2011 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2012 echo ' yes '
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2013 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2014 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2015 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2016 can_build_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2017 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2018 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2019 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2020 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2021 # soname into executable. Probably we can add versioning support to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2022 # collect2, so additional links can be useful in future.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2023 if test "$aix_use_runtimelinking" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2024 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2025 # instead of lib<name>.a to let people know that these are not
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2026 # typical AIX shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2028 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2029 # We preserve .a as extension for shared libraries through AIX4.2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2030 # and later when we are not doing run time linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2031 library_names_spec='${libname}${release}.a $libname.a'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2032 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2033 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2034 shlibpath_var=LIBPATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2035 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2036 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2037
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2038 amigaos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2039 library_names_spec='$libname.ixlibrary $libname.a'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2040 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2041 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2042 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2043
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2044 beos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2045 library_names_spec='${libname}${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2046 dynamic_linker="$host_os ld.so"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2047 shlibpath_var=LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2048 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2049
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2050 bsdi[[45]]*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2051 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2052 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2054 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2055 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2056 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2057 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2058 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2059 # the default ld.so.conf also contains /usr/contrib/lib and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2060 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2061 # libtool to hard-code these into programs
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2062 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2063
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2064 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2065 version_type=windows
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2066 shrext_cmds=".dll"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2067 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2068 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2069
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2070 case $GCC,$host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2071 yes,cygwin* | yes,mingw* | yes,pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2072 library_names_spec='$libname.dll.a'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2073 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2074 postinstall_cmds='base_file=`basename \${file}`~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2076 dldir=$destdir/`dirname \$dlpath`~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2077 test -d \$dldir || mkdir -p \$dldir~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2078 $install_prog $dir/$dlname \$dldir/$dlname'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2079 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2080 dlpath=$dir/\$dldll~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2081 $rm \$dlpath'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2082 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2083
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2084 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2085 cygwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2086 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2087 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2088 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2089 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2090 mingw*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2091 # MinGW DLLs use traditional 'lib' prefix
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2092 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2093 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2094 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2095 # It is most probably a Windows format PATH printed by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2096 # mingw gcc, but we are running on Cygwin. Gcc prints its search
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2097 # path with ; separators, and with drive letters. We can handle the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2098 # drive letters (cygwin fileutils understands them), so leave them,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2099 # especially as we might pass files found there to a mingw objdump,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2100 # which wouldn't understand a cygwinified path. Ahh.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2102 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2103 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2104 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2105 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2106 pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2107 # pw32 DLLs use 'pw' prefix rather than 'lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2108 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2109 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2110 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2111 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2112
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2113 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2114 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2115 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2116 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2117 dynamic_linker='Win32 ld.exe'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2118 # FIXME: first we should search . and the directory the executable is in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2119 shlibpath_var=PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2120 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2121
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2122 darwin* | rhapsody*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2123 dynamic_linker="$host_os dyld"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2124 version_type=darwin
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2125 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2126 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2127 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2128 soname_spec='${libname}${release}${major}$shared_ext'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2129 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2130 shlibpath_var=DYLD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2131 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2132 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2133 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2134 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2135 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2136 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2137 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2138 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2139 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2140
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2141 dgux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2142 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2143 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2144 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2146 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2147 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2148 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2149
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2150 freebsd1*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2151 dynamic_linker=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2152 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2153
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2154 kfreebsd*-gnu)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2155 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2156 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2157 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2159 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2160 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2161 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2162 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2163 dynamic_linker='GNU ld.so'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2164 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2165
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2166 freebsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2167 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2168 version_type=freebsd-$objformat
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2169 case $version_type in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2170 freebsd-elf*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2172 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2173 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2174 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2175 freebsd-*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2176 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2177 need_version=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2178 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2179 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2180 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2181 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2182 freebsd2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2183 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2184 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2185 freebsd3.[01]* | freebsdelf3.[01]*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2186 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2187 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2188 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2189 *) # from 3.2 on
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2190 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2191 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2192 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2193 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2194 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2195
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2196 gnu*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2197 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2198 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2199 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2201 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2202 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2203 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2204 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2205
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2206 hpux9* | hpux10* | hpux11*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2207 # Give a soname corresponding to the major version so that dld.sl refuses to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2208 # link against other versions.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2209 version_type=sunos
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2210 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2211 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2212 case "$host_cpu" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2213 ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2214 shrext_cmds='.so'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2215 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2216 dynamic_linker="$host_os dld.so"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2217 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2220 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2221 if test "X$HPUX_IA64_MODE" = X32; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2222 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2223 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2224 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2225 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2227 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2228 hppa*64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2229 shrext_cmds='.sl'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2230 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2231 dynamic_linker="$host_os dld.sl"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2232 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2235 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2236 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2238 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2239 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2240 shrext_cmds='.sl'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2241 dynamic_linker="$host_os dld.sl"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2242 shlibpath_var=SHLIB_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2243 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2245 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2246 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2247 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2248 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2249 postinstall_cmds='chmod 555 $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2250 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2251
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2252 irix5* | irix6* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2253 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2254 nonstopux*) version_type=nonstopux ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2255 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2256 if test "$lt_cv_prog_gnu_ld" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2257 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2258 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2259 version_type=irix
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2260 fi ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2261 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2262 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2263 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2264 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2266 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2267 irix5* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2268 libsuff= shlibsuff=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2269 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2270 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2271 case $LD in # libtool.m4 will add one of these switches to LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2272 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2273 libsuff= shlibsuff= libmagic=32-bit;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2274 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2275 libsuff=32 shlibsuff=N32 libmagic=N32;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2276 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2277 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2278 *) libsuff= shlibsuff= libmagic=never-match;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2279 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2280 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2281 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2282 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2283 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2284 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2285 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2286 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2287 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2288
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2289 # No shared lib support for Linux oldld, aout, or coff.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2290 linux*oldld* | linux*aout* | linux*coff*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2291 dynamic_linker=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2292 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2293
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2294 # This must be Linux ELF.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2295 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2296 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2297 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2298 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2300 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2302 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2303 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2304 # This implies no fast_install, which is unacceptable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2305 # Some rework will be needed to allow for fast_install
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2306 # before this can be enabled.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2307 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2308
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2309 # Append ld.so.conf contents to the search path
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2310 if test -f /etc/ld.so.conf; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2311 lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2312 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2313 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2314
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2315 # We used to test for /lib/ld.so.1 and disable shared libraries on
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2316 # powerpc, because MkLinux only supported shared libraries with the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2317 # GNU dynamic linker. Since this was broken with cross compilers,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2318 # most powerpc-linux boxes support dynamic linking these days and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2319 # people can always --disable-shared, the test was removed, and we
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2320 # assume the GNU/Linux dynamic linker is in use.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2321 dynamic_linker='GNU/Linux ld.so'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2322 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2323
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2324 knetbsd*-gnu)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2325 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2326 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2327 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2329 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2330 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2331 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2332 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2333 dynamic_linker='GNU ld.so'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2334 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2335
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2336 netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2337 version_type=sunos
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2338 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2339 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2340 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2343 dynamic_linker='NetBSD (a.out) ld.so'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2344 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2346 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2347 dynamic_linker='NetBSD ld.elf_so'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2348 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2349 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2350 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2351 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2352 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2353
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2354 newsos6)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2355 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2357 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2358 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2359 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2360
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2361 nto-qnx*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2362 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2363 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2364 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2366 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2367 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2368 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2369 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2370
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2371 openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2372 version_type=sunos
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2373 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2374 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2377 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2379 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2380 openbsd2.[[89]] | openbsd2.[[89]].*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2381 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2382 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2383 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2384 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2385 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2386 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2387 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2388 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2389 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2390 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2391
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2392 os2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2393 libname_spec='$name'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2394 shrext_cmds=".dll"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2395 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2396 library_names_spec='$libname${shared_ext} $libname.a'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2397 dynamic_linker='OS/2 ld.exe'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2398 shlibpath_var=LIBPATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2399 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2400
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2401 osf3* | osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2402 version_type=osf
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2403 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2404 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2405 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2407 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2408 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2409 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2410 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2411
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2412 sco3.2v5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2413 version_type=osf
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2414 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2416 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2417 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2418
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2419 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2420 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2421 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2422 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2424 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2425 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2426 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2427 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2428 # ldd complains unless libraries are executable
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2429 postinstall_cmds='chmod +x $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2430 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2431
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2432 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2433 version_type=sunos
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2435 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2436 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2437 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2438 if test "$with_gnu_ld" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2439 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2440 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2441 need_version=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2442 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2443
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2444 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2445 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2447 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2448 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2449 case $host_vendor in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2450 sni)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2451 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2452 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2453 export_dynamic_flag_spec='${wl}-Blargedynsym'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2454 runpath_var=LD_RUN_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2455 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2456 siemens)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2457 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2458 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2459 motorola)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2460 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2461 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2462 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2463 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2464 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2465 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2466 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2467
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2468 sysv4*MP*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2469 if test -d /usr/nec ;then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2470 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2471 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2472 soname_spec='$libname${shared_ext}.$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2473 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2474 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2475 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2476
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2477 uts4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2478 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2480 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2481 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2482 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2483
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2484 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2485 dynamic_linker=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2486 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2487 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2488 AC_MSG_RESULT([$dynamic_linker])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2489 test "$dynamic_linker" = no && can_build_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2490 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2491
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2492
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2493 # _LT_AC_TAGCONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2494 # ----------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2495 AC_DEFUN([_LT_AC_TAGCONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2496 [AC_ARG_WITH([tags],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2497 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2498 [include additional configurations @<:@automatic@:>@])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2499 [tagnames="$withval"])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2500
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2501 if test -f "$ltmain" && test -n "$tagnames"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2502 if test ! -f "${ofile}"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2503 AC_MSG_WARN([output file `$ofile' does not exist])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2504 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2505
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2506 if test -z "$LTCC"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2507 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2508 if test -z "$LTCC"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2509 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2510 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2511 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2512 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2513 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2514
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2515 # Extract list of available tagged configurations in $ofile.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2516 # Note that this assumes the entire list is on one line.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2517 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2518
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2520 for tagname in $tagnames; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2521 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2522 # Check whether tagname contains only valid characters
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2523 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2524 "") ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2525 *) AC_MSG_ERROR([invalid tag name: $tagname])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2526 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2527 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2528
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2529 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2530 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2531 AC_MSG_ERROR([tag name \"$tagname\" already exists])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2532 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2533
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2534 # Update the list of available tags.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2535 if test -n "$tagname"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2536 echo appending configuration tag \"$tagname\" to $ofile
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2537
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2538 case $tagname in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2539 CXX)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2540 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2541 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2542 (test "X$CXX" != "Xg++"))) ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2543 AC_LIBTOOL_LANG_CXX_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2544 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2545 tagname=""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2546 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2547 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2548
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2549 F77)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2550 if test -n "$F77" && test "X$F77" != "Xno"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2551 AC_LIBTOOL_LANG_F77_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2552 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2553 tagname=""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2554 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2555 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2556
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2557 GCJ)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2558 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2559 AC_LIBTOOL_LANG_GCJ_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2560 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2561 tagname=""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2562 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2563 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2564
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2565 RC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2566 AC_LIBTOOL_LANG_RC_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2567 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2568
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2569 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2570 AC_MSG_ERROR([Unsupported tag name: $tagname])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2571 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2572 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2573
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2574 # Append the new tag name to the list of available tags.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2575 if test -n "$tagname" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2576 available_tags="$available_tags $tagname"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2577 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2578 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2579 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2580 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2581
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2582 # Now substitute the updated list of available tags.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2583 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2584 mv "${ofile}T" "$ofile"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2585 chmod +x "$ofile"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2586 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2587 rm -f "${ofile}T"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2588 AC_MSG_ERROR([unable to update list of available tagged configurations.])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2589 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2590 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2591 ])# _LT_AC_TAGCONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2592
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2593
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2594 # AC_LIBTOOL_DLOPEN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2595 # -----------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2596 # enable checks for dlopen support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2597 AC_DEFUN([AC_LIBTOOL_DLOPEN],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2598 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2599 ])# AC_LIBTOOL_DLOPEN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2600
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2601
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2602 # AC_LIBTOOL_WIN32_DLL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2603 # --------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2604 # declare package support for building win32 dll's
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2605 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2606 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2607 ])# AC_LIBTOOL_WIN32_DLL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2608
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2609
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2610 # AC_ENABLE_SHARED([DEFAULT])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2611 # ---------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2612 # implement the --enable-shared flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2613 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2614 AC_DEFUN([AC_ENABLE_SHARED],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2615 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2616 AC_ARG_ENABLE([shared],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2617 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2618 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2619 [p=${PACKAGE-default}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2620 case $enableval in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2621 yes) enable_shared=yes ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2622 no) enable_shared=no ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2623 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2624 enable_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2625 # Look at the argument we got. We use all the common list separators.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2627 for pkg in $enableval; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2628 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2629 if test "X$pkg" = "X$p"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2630 enable_shared=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2631 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2632 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2633 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2634 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2635 esac],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2636 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2637 ])# AC_ENABLE_SHARED
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2638
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2639
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2640 # AC_DISABLE_SHARED
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2641 # -----------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2642 #- set the default shared flag to --disable-shared
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2643 AC_DEFUN([AC_DISABLE_SHARED],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2644 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2645 AC_ENABLE_SHARED(no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2646 ])# AC_DISABLE_SHARED
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2647
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2648
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2649 # AC_ENABLE_STATIC([DEFAULT])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2650 # ---------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2651 # implement the --enable-static flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2652 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2653 AC_DEFUN([AC_ENABLE_STATIC],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2654 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2655 AC_ARG_ENABLE([static],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2656 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2657 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2658 [p=${PACKAGE-default}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2659 case $enableval in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2660 yes) enable_static=yes ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2661 no) enable_static=no ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2662 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2663 enable_static=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2664 # Look at the argument we got. We use all the common list separators.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2666 for pkg in $enableval; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2667 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2668 if test "X$pkg" = "X$p"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2669 enable_static=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2670 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2671 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2672 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2673 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2674 esac],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2675 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2676 ])# AC_ENABLE_STATIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2677
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2678
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2679 # AC_DISABLE_STATIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2680 # -----------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2681 # set the default static flag to --disable-static
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2682 AC_DEFUN([AC_DISABLE_STATIC],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2683 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2684 AC_ENABLE_STATIC(no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2685 ])# AC_DISABLE_STATIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2686
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2687
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2688 # AC_ENABLE_FAST_INSTALL([DEFAULT])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2689 # ---------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2690 # implement the --enable-fast-install flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2691 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2692 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2693 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2694 AC_ARG_ENABLE([fast-install],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2695 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2696 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2697 [p=${PACKAGE-default}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2698 case $enableval in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2699 yes) enable_fast_install=yes ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2700 no) enable_fast_install=no ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2701 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2702 enable_fast_install=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2703 # Look at the argument we got. We use all the common list separators.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2705 for pkg in $enableval; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2706 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2707 if test "X$pkg" = "X$p"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2708 enable_fast_install=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2709 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2710 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2711 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2712 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2713 esac],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2714 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2715 ])# AC_ENABLE_FAST_INSTALL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2716
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2717
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2718 # AC_DISABLE_FAST_INSTALL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2719 # -----------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2720 # set the default to --disable-fast-install
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2721 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2722 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2723 AC_ENABLE_FAST_INSTALL(no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2724 ])# AC_DISABLE_FAST_INSTALL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2725
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2726
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2727 # AC_LIBTOOL_PICMODE([MODE])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2728 # --------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2729 # implement the --with-pic flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2730 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2731 AC_DEFUN([AC_LIBTOOL_PICMODE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2732 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2733 pic_mode=ifelse($#,1,$1,default)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2734 ])# AC_LIBTOOL_PICMODE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2735
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2736
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2737 # AC_PROG_EGREP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2738 # -------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2739 # This is predefined starting with Autoconf 2.54, so this conditional
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2740 # definition can be removed once we require Autoconf 2.54 or later.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2741 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2742 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2743 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2744 then ac_cv_prog_egrep='grep -E'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2745 else ac_cv_prog_egrep='egrep'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2746 fi])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2747 EGREP=$ac_cv_prog_egrep
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2748 AC_SUBST([EGREP])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2749 ])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2750
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2751
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2752 # AC_PATH_TOOL_PREFIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2753 # -------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2754 # find a file program which can recognise shared library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2755 AC_DEFUN([AC_PATH_TOOL_PREFIX],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2756 [AC_REQUIRE([AC_PROG_EGREP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2757 AC_MSG_CHECKING([for $1])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2758 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2759 [case $MAGIC_CMD in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2760 [[\\/*] | ?:[\\/]*])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2761 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2762 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2763 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2764 lt_save_MAGIC_CMD="$MAGIC_CMD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2766 dnl $ac_dummy forces splitting on constant user-supplied paths.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2767 dnl POSIX.2 word splitting is done only on the output of word expansions,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2768 dnl not every word. This closes a longstanding sh security hole.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2769 ac_dummy="ifelse([$2], , $PATH, [$2])"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2770 for ac_dir in $ac_dummy; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2771 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2772 test -z "$ac_dir" && ac_dir=.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2773 if test -f $ac_dir/$1; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2774 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2775 if test -n "$file_magic_test_file"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2776 case $deplibs_check_method in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2777 "file_magic "*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2778 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2780 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2781 $EGREP "$file_magic_regex" > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2782 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2783 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2784 cat <<EOF 1>&2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2785
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2786 *** Warning: the command libtool uses to detect shared libraries,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2787 *** $file_magic_cmd, produces output that libtool cannot recognize.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2788 *** The result is that libtool may fail to recognize shared libraries
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2789 *** as such. This will affect the creation of libtool libraries that
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2790 *** depend on shared libraries, but programs linked with such libtool
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2791 *** libraries will work regardless of this problem. Nevertheless, you
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2792 *** may want to report the problem to your system manager and/or to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2793 *** bug-libtool@gnu.org
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2794
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2795 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2796 fi ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2797 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2798 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2799 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2800 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2801 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2802 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2803 MAGIC_CMD="$lt_save_MAGIC_CMD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2804 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2805 esac])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2806 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2807 if test -n "$MAGIC_CMD"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2808 AC_MSG_RESULT($MAGIC_CMD)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2809 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2810 AC_MSG_RESULT(no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2811 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2812 ])# AC_PATH_TOOL_PREFIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2813
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2814
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2815 # AC_PATH_MAGIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2816 # -------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2817 # find a file program which can recognise a shared library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2818 AC_DEFUN([AC_PATH_MAGIC],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2819 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2820 if test -z "$lt_cv_path_MAGIC_CMD"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2821 if test -n "$ac_tool_prefix"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2822 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2823 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2824 MAGIC_CMD=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2825 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2826 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2827 ])# AC_PATH_MAGIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2828
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2829
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2830 # AC_PROG_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2831 # ----------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2832 # find the pathname to the GNU or non-GNU linker
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2833 AC_DEFUN([AC_PROG_LD],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2834 [AC_ARG_WITH([gnu-ld],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2835 [AC_HELP_STRING([--with-gnu-ld],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2836 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2837 [test "$withval" = no || with_gnu_ld=yes],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2838 [with_gnu_ld=no])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2839 AC_REQUIRE([LT_AC_PROG_SED])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2840 AC_REQUIRE([AC_PROG_CC])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2841 AC_REQUIRE([AC_CANONICAL_HOST])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2842 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2843 ac_prog=ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2844 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2845 # Check if gcc -print-prog-name=ld gives a path.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2846 AC_MSG_CHECKING([for ld used by $CC])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2847 case $host in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2848 *-*-mingw*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2849 # gcc leaves a trailing carriage return which upsets mingw
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2850 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2851 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2852 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2853 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2854 case $ac_prog in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2855 # Accept absolute paths.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2856 [[\\/]]* | ?:[[\\/]]*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2857 re_direlt='/[[^/]][[^/]]*/\.\./'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2858 # Canonicalize the pathname of ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2859 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2860 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2861 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2862 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2863 test -z "$LD" && LD="$ac_prog"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2864 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2865 "")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2866 # If it fails, then pretend we aren't using GCC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2867 ac_prog=ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2868 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2869 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2870 # If it is relative, then search for the first ld in PATH.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2871 with_gnu_ld=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2872 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2873 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2874 elif test "$with_gnu_ld" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2875 AC_MSG_CHECKING([for GNU ld])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2876 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2877 AC_MSG_CHECKING([for non-GNU ld])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2878 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2879 AC_CACHE_VAL(lt_cv_path_LD,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2880 [if test -z "$LD"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2881 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2882 for ac_dir in $PATH; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2883 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2884 test -z "$ac_dir" && ac_dir=.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2885 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2886 lt_cv_path_LD="$ac_dir/$ac_prog"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2887 # Check to see if the program is GNU ld. I'd rather use --version,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2888 # but apparently some GNU ld's only accept -v.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2889 # Break only if it was the GNU/non-GNU ld that we prefer.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2890 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2891 *GNU* | *'with BFD'*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2892 test "$with_gnu_ld" != no && break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2893 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2894 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2895 test "$with_gnu_ld" != yes && break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2896 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2897 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2898 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2899 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2900 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2901 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2902 lt_cv_path_LD="$LD" # Let the user override the test with a path.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2903 fi])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2904 LD="$lt_cv_path_LD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2905 if test -n "$LD"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2906 AC_MSG_RESULT($LD)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2907 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2908 AC_MSG_RESULT(no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2909 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2910 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2911 AC_PROG_LD_GNU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2912 ])# AC_PROG_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2913
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2914
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2915 # AC_PROG_LD_GNU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2916 # --------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2917 AC_DEFUN([AC_PROG_LD_GNU],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2918 [AC_REQUIRE([AC_PROG_EGREP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2919 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2920 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2921 case `$LD -v 2>&1 </dev/null` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2922 *GNU* | *'with BFD'*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2923 lt_cv_prog_gnu_ld=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2924 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2925 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2926 lt_cv_prog_gnu_ld=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2927 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2928 esac])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2929 with_gnu_ld=$lt_cv_prog_gnu_ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2930 ])# AC_PROG_LD_GNU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2931
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2932
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2933 # AC_PROG_LD_RELOAD_FLAG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2934 # ----------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2935 # find reload flag for linker
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2936 # -- PORTME Some linkers may need a different reload flag.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2937 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2938 [AC_CACHE_CHECK([for $LD option to reload object files],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2939 lt_cv_ld_reload_flag,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2940 [lt_cv_ld_reload_flag='-r'])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2941 reload_flag=$lt_cv_ld_reload_flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2942 case $reload_flag in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2943 "" | " "*) ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2944 *) reload_flag=" $reload_flag" ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2945 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2946 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2947 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2948 darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2949 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2950 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2951 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2952 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2953 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2954 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2955 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2956 ])# AC_PROG_LD_RELOAD_FLAG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2957
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2958
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2959 # AC_DEPLIBS_CHECK_METHOD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2960 # -----------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2961 # how to check for library dependencies
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2962 # -- PORTME fill in with the dynamic library characteristics
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2963 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2964 [AC_CACHE_CHECK([how to recognise dependent libraries],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2965 lt_cv_deplibs_check_method,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2966 [lt_cv_file_magic_cmd='$MAGIC_CMD'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2967 lt_cv_file_magic_test_file=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2968 lt_cv_deplibs_check_method='unknown'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2969 # Need to set the preceding variable on all platforms that support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2970 # interlibrary dependencies.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2971 # 'none' -- dependencies not supported.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2972 # `unknown' -- same as none, but documents that we really don't know.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2973 # 'pass_all' -- all dependencies passed with no checks.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2974 # 'test_compile' -- check by making test program.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2975 # 'file_magic [[regex]]' -- check by looking for files in library path
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2976 # which responds to the $file_magic_cmd with a given extended regex.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2977 # If you have `file' or equivalent on your system and you're not sure
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2978 # whether `pass_all' will *always* work, you probably want this one.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2979
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2980 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2981 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2982 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2983 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2984
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2985 beos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2986 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2987 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2988
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2989 bsdi[[45]]*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2990 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2991 lt_cv_file_magic_cmd='/usr/bin/file -L'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2992 lt_cv_file_magic_test_file=/shlib/libc.so
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2993 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2994
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2995 cygwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2996 # func_win32_libid is a shell function defined in ltmain.sh
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2997 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2998 lt_cv_file_magic_cmd='func_win32_libid'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2999 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3000
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3001 mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3002 # Base MSYS/MinGW do not provide the 'file' command needed by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3003 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3004 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3005 lt_cv_file_magic_cmd='$OBJDUMP -f'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3006 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3007
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3008 darwin* | rhapsody*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3009 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3010 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3011
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3012 freebsd* | kfreebsd*-gnu)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3013 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3014 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3015 i*86 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3016 # Not sure whether the presence of OpenBSD here was a mistake.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3017 # Let's accept both of them until this is cleared up.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3018 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3019 lt_cv_file_magic_cmd=/usr/bin/file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3020 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3021 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3022 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3023 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3024 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3025 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3026 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3027
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3028 gnu*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3029 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3030 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3031
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3032 hpux10.20* | hpux11*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3033 lt_cv_file_magic_cmd=/usr/bin/file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3034 case "$host_cpu" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3035 ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3036 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3037 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3038 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3039 hppa*64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3040 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3041 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3042 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3043 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3044 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3045 lt_cv_file_magic_test_file=/usr/lib/libc.sl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3046 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3047 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3048 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3049
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3050 irix5* | irix6* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3051 case $LD in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3052 *-32|*"-32 ") libmagic=32-bit;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3053 *-n32|*"-n32 ") libmagic=N32;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3054 *-64|*"-64 ") libmagic=64-bit;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3055 *) libmagic=never-match;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3056 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3057 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3058 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3059
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3060 # This must be Linux ELF.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3061 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3062 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3063 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3064
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3065 netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3066 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3067 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3068 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3069 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3070 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3071 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3072
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3073 newos6*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3074 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3075 lt_cv_file_magic_cmd=/usr/bin/file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3076 lt_cv_file_magic_test_file=/usr/lib/libnls.so
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3077 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3078
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3079 nto-qnx*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3080 lt_cv_deplibs_check_method=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3081 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3082
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3083 openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3085 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3086 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3087 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3088 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3089 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3090
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3091 osf3* | osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3092 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3093 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3094
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3095 sco3.2v5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3096 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3097 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3098
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3099 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3100 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3101 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3102
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3103 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3104 case $host_vendor in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3105 motorola)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3106 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3107 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3108 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3109 ncr)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3110 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3111 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3112 sequent)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3113 lt_cv_file_magic_cmd='/bin/file'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3114 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3115 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3116 sni)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3117 lt_cv_file_magic_cmd='/bin/file'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3118 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3119 lt_cv_file_magic_test_file=/lib/libc.so
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3120 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3121 siemens)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3122 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3123 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3124 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3125 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3126
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3127 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3128 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3129 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3130 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3131 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3132 file_magic_cmd=$lt_cv_file_magic_cmd
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3133 deplibs_check_method=$lt_cv_deplibs_check_method
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3134 test -z "$deplibs_check_method" && deplibs_check_method=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3135 ])# AC_DEPLIBS_CHECK_METHOD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3136
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3137
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3138 # AC_PROG_NM
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3139 # ----------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3140 # find the pathname to a BSD-compatible name lister
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3141 AC_DEFUN([AC_PROG_NM],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3142 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3143 [if test -n "$NM"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3144 # Let the user override the test.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3145 lt_cv_path_NM="$NM"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3146 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3148 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3149 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3150 test -z "$ac_dir" && ac_dir=.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3151 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3152 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3153 # Check to see if the nm accepts a BSD-compat flag.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3154 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3155 # nm: unknown option "B" ignored
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3156 # Tru64's nm complains that /dev/null is an invalid object file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3157 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3158 */dev/null* | *'Invalid file or object type'*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3159 lt_cv_path_NM="$tmp_nm -B"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3160 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3161 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3162 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3163 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3164 */dev/null*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3165 lt_cv_path_NM="$tmp_nm -p"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3166 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3167 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3168 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3169 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3170 continue # so that we can try to find one that supports BSD flags
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3171 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3172 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3173 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3174 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3175 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3176 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3177 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3178 fi])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3179 NM="$lt_cv_path_NM"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3180 ])# AC_PROG_NM
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3181
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3182
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3183 # AC_CHECK_LIBM
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3184 # -------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3185 # check for math library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3186 AC_DEFUN([AC_CHECK_LIBM],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3187 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3188 LIBM=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3189 case $host in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3190 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3191 # These system don't have libm, or don't need it
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3192 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3193 *-ncr-sysv4.3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3194 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3195 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3196 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3197 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3198 AC_CHECK_LIB(m, cos, LIBM="-lm")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3199 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3200 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3201 ])# AC_CHECK_LIBM
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3202
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3203
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3204 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3205 # -----------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3206 # sets LIBLTDL to the link flags for the libltdl convenience library and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3207 # LTDLINCL to the include flags for the libltdl header and adds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3208 # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3209 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3210 # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3211 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3212 # '${top_srcdir}/' (note the single quotes!). If your package is not
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3213 # flat and you're not using automake, define top_builddir and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3214 # top_srcdir appropriately in the Makefiles.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3215 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3216 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3217 case $enable_ltdl_convenience in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3218 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3219 "") enable_ltdl_convenience=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3220 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3221 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3222 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3223 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3224 # For backwards non-gettext consistent compatibility...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3225 INCLTDL="$LTDLINCL"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3226 ])# AC_LIBLTDL_CONVENIENCE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3227
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3228
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3229 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3230 # -----------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3231 # sets LIBLTDL to the link flags for the libltdl installable library and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3232 # LTDLINCL to the include flags for the libltdl header and adds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3233 # --enable-ltdl-install to the configure arguments. Note that LIBLTDL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3234 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3235 # DIRECTORY is not provided and an installed libltdl is not found, it is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3236 # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3237 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3238 # quotes!). If your package is not flat and you're not using automake,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3239 # define top_builddir and top_srcdir appropriately in the Makefiles.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3240 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3241 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3242 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3243 AC_CHECK_LIB(ltdl, lt_dlinit,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3244 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3245 [if test x"$enable_ltdl_install" = xno; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3246 AC_MSG_WARN([libltdl not installed, but installation disabled])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3247 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3248 enable_ltdl_install=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3249 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3250 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3251 if test x"$enable_ltdl_install" = x"yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3252 ac_configure_args="$ac_configure_args --enable-ltdl-install"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3253 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3254 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3255 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3256 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3257 LIBLTDL="-lltdl"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3258 LTDLINCL=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3259 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3260 # For backwards non-gettext consistent compatibility...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3261 INCLTDL="$LTDLINCL"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3262 ])# AC_LIBLTDL_INSTALLABLE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3263
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3264
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3265 # AC_LIBTOOL_CXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3266 # --------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3267 # enable support for C++ libraries
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3268 AC_DEFUN([AC_LIBTOOL_CXX],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3269 [AC_REQUIRE([_LT_AC_LANG_CXX])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3270 ])# AC_LIBTOOL_CXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3271
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3272
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3273 # _LT_AC_LANG_CXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3274 # ---------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3275 AC_DEFUN([_LT_AC_LANG_CXX],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3276 [AC_REQUIRE([AC_PROG_CXX])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3277 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3278 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3279 ])# _LT_AC_LANG_CXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3280
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3281 # _LT_AC_PROG_CXXCPP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3282 # ---------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3283 AC_DEFUN([_LT_AC_PROG_CXXCPP],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3284 [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3285 AC_REQUIRE([AC_PROG_CXX])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3286 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3287 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3288 (test "X$CXX" != "Xg++"))) ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3289 AC_PROG_CXXCPP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3290 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3291 ])# _LT_AC_PROG_CXXCPP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3292
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3293 # AC_LIBTOOL_F77
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3294 # --------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3295 # enable support for Fortran 77 libraries
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3296 AC_DEFUN([AC_LIBTOOL_F77],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3297 [AC_REQUIRE([_LT_AC_LANG_F77])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3298 ])# AC_LIBTOOL_F77
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3299
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3300
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3301 # _LT_AC_LANG_F77
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3302 # ---------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3303 AC_DEFUN([_LT_AC_LANG_F77],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3304 [AC_REQUIRE([AC_PROG_F77])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3305 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3306 ])# _LT_AC_LANG_F77
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3307
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3308
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3309 # AC_LIBTOOL_GCJ
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3310 # --------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3311 # enable support for GCJ libraries
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3312 AC_DEFUN([AC_LIBTOOL_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3313 [AC_REQUIRE([_LT_AC_LANG_GCJ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3314 ])# AC_LIBTOOL_GCJ
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3315
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3316
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3317 # _LT_AC_LANG_GCJ
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3318 # ---------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3319 AC_DEFUN([_LT_AC_LANG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3320 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3321 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3322 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3323 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3324 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3325 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3326 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3327 ])# _LT_AC_LANG_GCJ
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3328
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3329
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3330 # AC_LIBTOOL_RC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3331 # --------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3332 # enable support for Windows resource files
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3333 AC_DEFUN([AC_LIBTOOL_RC],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3334 [AC_REQUIRE([LT_AC_PROG_RC])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3335 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3336 ])# AC_LIBTOOL_RC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3337
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3338
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3339 # AC_LIBTOOL_LANG_C_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3340 # ------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3341 # Ensure that the configuration vars for the C compiler are
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3342 # suitably defined. Those variables are subsequently used by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3343 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3344 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3345 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3346 [lt_save_CC="$CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3347 AC_LANG_PUSH(C)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3348
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3349 # Source file extension for C test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3350 ac_ext=c
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3351
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3352 # Object file extension for compiled C test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3353 objext=o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3354 _LT_AC_TAGVAR(objext, $1)=$objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3355
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3356 # Code to be used in simple compile tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3357 lt_simple_compile_test_code="int some_variable = 0;\n"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3358
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3359 # Code to be used in simple link tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3360 lt_simple_link_test_code='int main(){return(0);}\n'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3361
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3362 _LT_AC_SYS_COMPILER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3363
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3364 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3365 # Check for any special shared library compilation flags.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3366 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3367 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3368 if test "$GCC" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3369 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3370 sco3.2v5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3371 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3372 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3373 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3374 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3375 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3376 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3377 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3378 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3379 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3380 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3381 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3382 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3383
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3384
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3385 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3386 # Check to make sure the static flag actually works.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3387 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3388 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3389 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3390 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3391 [],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3392 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3393
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3394
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3395 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3396 AC_LIBTOOL_PROG_COMPILER_PIC($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3397 AC_LIBTOOL_PROG_CC_C_O($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3398 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3399 AC_LIBTOOL_PROG_LD_SHLIBS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3400 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3401 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3402 AC_LIBTOOL_SYS_LIB_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3403 AC_LIBTOOL_DLOPEN_SELF($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3404
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3405 # Report which librarie types wil actually be built
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3406 AC_MSG_CHECKING([if libtool supports shared libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3407 AC_MSG_RESULT([$can_build_shared])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3408
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3409 AC_MSG_CHECKING([whether to build shared libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3410 test "$can_build_shared" = "no" && enable_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3411
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3412 # On AIX, shared libraries and static libraries use the same namespace, and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3413 # are all built from PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3414 case "$host_os" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3415 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3416 test "$enable_shared" = yes && enable_static=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3417 if test -n "$RANLIB"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3418 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3419 postinstall_cmds='$RANLIB $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3420 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3421 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3422
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3423 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3424 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3425 test "$enable_shared" = yes && enable_static=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3426 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3427 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3428 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3429 AC_MSG_RESULT([$enable_shared])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3430
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3431 AC_MSG_CHECKING([whether to build static libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3432 # Make sure either enable_shared or enable_static is yes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3433 test "$enable_shared" = yes || enable_static=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3434 AC_MSG_RESULT([$enable_static])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3435
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3436 AC_LIBTOOL_CONFIG($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3437
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3438 AC_LANG_POP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3439 CC="$lt_save_CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3440 ])# AC_LIBTOOL_LANG_C_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3441
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3442
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3443 # AC_LIBTOOL_LANG_CXX_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3444 # --------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3445 # Ensure that the configuration vars for the C compiler are
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3446 # suitably defined. Those variables are subsequently used by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3447 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3448 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3449 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3450 [AC_LANG_PUSH(C++)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3451 AC_REQUIRE([AC_PROG_CXX])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3452 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3453
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3454 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3455 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3456 _LT_AC_TAGVAR(always_export_symbols, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3457 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3458 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3459 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3460 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3461 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3462 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3463 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3464 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3465 _LT_AC_TAGVAR(module_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3466 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3467 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3468 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3469 _LT_AC_TAGVAR(no_undefined_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3470 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3471 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3472
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3473 # Dependencies to place before and after the object being linked:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3474 _LT_AC_TAGVAR(predep_objects, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3475 _LT_AC_TAGVAR(postdep_objects, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3476 _LT_AC_TAGVAR(predeps, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3477 _LT_AC_TAGVAR(postdeps, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3478 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3479
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3480 # Source file extension for C++ test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3481 ac_ext=cc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3482
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3483 # Object file extension for compiled C++ test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3484 objext=o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3485 _LT_AC_TAGVAR(objext, $1)=$objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3486
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3487 # Code to be used in simple compile tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3488 lt_simple_compile_test_code="int some_variable = 0;\n"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3489
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3490 # Code to be used in simple link tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3491 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3492
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3493 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3494 _LT_AC_SYS_COMPILER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3495
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3496 # Allow CC to be a program name with arguments.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3497 lt_save_CC=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3498 lt_save_LD=$LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3499 lt_save_GCC=$GCC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3500 GCC=$GXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3501 lt_save_with_gnu_ld=$with_gnu_ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3502 lt_save_path_LD=$lt_cv_path_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3503 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3504 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3505 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3506 unset lt_cv_prog_gnu_ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3507 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3508 if test -n "${lt_cv_path_LDCXX+set}"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3509 lt_cv_path_LD=$lt_cv_path_LDCXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3510 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3511 unset lt_cv_path_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3512 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3513 test -z "${LDCXX+set}" || LD=$LDCXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3514 CC=${CXX-"c++"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3515 compiler=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3516 _LT_AC_TAGVAR(compiler, $1)=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3517 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3518
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3519 # We don't want -fno-exception wen compiling C++ code, so set the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3520 # no_builtin_flag separately
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3521 if test "$GXX" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3522 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3523 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3524 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3525 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3526
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3527 if test "$GXX" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3528 # Set up default GNU C++ configuration
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3529
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3530 AC_PROG_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3531
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3532 # Check if GNU C++ uses GNU ld as the underlying linker, since the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3533 # archiving commands below assume that GNU ld is being used.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3534 if test "$with_gnu_ld" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3535 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3536 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3537
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3538 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3539 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3540
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3541 # If archive_cmds runs LD, not CC, wlarc should be empty
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3542 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3543 # investigate it a little bit more. (MM)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3544 wlarc='${wl}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3545
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3546 # ancient GNU ld didn't support --whole-archive et. al.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3547 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3548 grep 'no-whole-archive' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3549 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3550 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3551 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3552 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3553 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3554 with_gnu_ld=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3555 wlarc=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3556
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3557 # A generic and very simple default shared library creation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3558 # command for GNU C++ for the case where it uses the native
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3559 # linker, instead of GNU ld. If possible, this setting should
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3560 # overridden to take advantage of the native linker features on
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3561 # the platform it is being used on.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3562 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3563 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3564
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3565 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3566 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3567 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3569
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3570 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3571 GXX=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3572 with_gnu_ld=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3573 wlarc=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3574 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3575
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3576 # PORTME: fill in a description of your system's C++ link characteristics
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3577 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3578 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3579 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3580 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3581 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3582 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3583 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3584 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3585 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3586 # On IA64, the linker does run time linking by default, so we don't
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3587 # have to do anything special.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3588 aix_use_runtimelinking=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3589 exp_sym_flag='-Bexport'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3590 no_entry_flag=""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3591 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3592 aix_use_runtimelinking=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3593
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3594 # Test if we are trying to use run time linking or normal
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3596 # need to do runtime linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3597 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3598 for ld_flag in $LDFLAGS; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3599 case $ld_flag in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3600 *-brtl*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3601 aix_use_runtimelinking=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3602 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3603 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3604 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3605 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3606 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3607
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3608 exp_sym_flag='-bexport'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3609 no_entry_flag='-bnoentry'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3610 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3611
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3612 # When large executables or shared objects are built, AIX ld can
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3613 # have problems creating the table of contents. If linking a library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3614 # or program results in "error TOC overflow" add -mminimal-toc to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3615 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3616 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3617
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3618 _LT_AC_TAGVAR(archive_cmds, $1)=''
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3619 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3620 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3621 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3622
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3623 if test "$GXX" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3624 case $host_os in aix4.[012]|aix4.[012].*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3625 # We only want to do this on AIX 4.2 and lower, the check
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3626 # below for broken collect2 doesn't work under 4.3+
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3627 collect2name=`${CC} -print-prog-name=collect2`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3628 if test -f "$collect2name" && \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3629 strings "$collect2name" | grep resolve_lib_name >/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3630 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3631 # We have reworked collect2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3632 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3633 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3634 # We have old collect2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3635 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3636 # It fails to find uninstalled libraries when the uninstalled
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3637 # path is not listed in the libpath. Setting hardcode_minus_L
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3638 # to unsupported forces relinking
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3639 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3640 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3641 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3642 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3643 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3644 shared_flag='-shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3645 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3646 # not using gcc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3647 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3648 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3649 # chokes on -Wl,-G. The following line is correct:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3650 shared_flag='-G'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3651 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3652 if test "$aix_use_runtimelinking" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3653 shared_flag='${wl}-G'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3654 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3655 shared_flag='${wl}-bM:SRE'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3656 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3657 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3658 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3659
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3660 # It seems that -bexpall does not export symbols beginning with
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3661 # underscore (_), so it is better to generate a list of symbols to export.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3662 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3663 if test "$aix_use_runtimelinking" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3664 # Warning - without using the other runtime loading flags (-brtl),
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3665 # -berok will link without error, but may produce a broken library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3666 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3667 # Determine the default libpath from the value encoded in an empty executable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3668 _LT_AC_SYS_LIBPATH_AIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3669 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3670
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3671 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3672 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3673 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3674 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3675 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3676 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3677 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3678 # Determine the default libpath from the value encoded in an empty executable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3679 _LT_AC_SYS_LIBPATH_AIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3680 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3681 # Warning - without using the other run time loading flags,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3682 # -berok will link without error, but may produce a broken library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3683 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3684 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3685 # -bexpall does not export symbols beginning with underscore (_)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3686 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3687 # Exported symbols can be pulled into shared objects from archives
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3688 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3689 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3690 # This is similar to how AIX traditionally builds it's shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3691 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3692 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3693 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3694 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3695 chorus*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3696 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3697 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3698 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3699 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3700 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3701 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3702 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3703
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3704
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3705 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3706 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3707 # as there is no search path for DLLs.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3708 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3709 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3710 _LT_AC_TAGVAR(always_export_symbols, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3711 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3712
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3713 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3714 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3715 # If the export-symbols file already is a .def file (1st line
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3716 # is EXPORTS), use it as is; otherwise, prepend...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3717 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3718 cp $export_symbols $output_objdir/$soname.def;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3719 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3720 echo EXPORTS > $output_objdir/$soname.def;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3721 cat $export_symbols >> $output_objdir/$soname.def;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3722 fi~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3723 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3724 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3725 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3726 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3727 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3728 darwin* | rhapsody*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3729 case "$host_os" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3730 rhapsody* | darwin1.[[012]])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3731 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3732 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3733 *) # Darwin 1.3 on
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3734 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3735 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3736 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3737 case ${MACOSX_DEPLOYMENT_TARGET} in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3738 10.[[012]])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3739 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3740 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3741 10.*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3742 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3743 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3744 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3745 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3746 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3747 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3748 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3749 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3750 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3751 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3752 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3753 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3754
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3755 if test "$GXX" = yes ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3756 lt_int_apple_cc_single_mod=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3757 output_verbose_link_cmd='echo'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3758 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3759 lt_int_apple_cc_single_mod=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3760 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3761 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3762 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3763 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3764 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3765 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3766 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3767 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3768 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3769 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3770 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3771 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3772 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3773 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3774 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3775 case "$cc_basename" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3776 xlc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3777 output_verbose_link_cmd='echo'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3778 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3779 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3780 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3781 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3782 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3783 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3784 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3785 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3786 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3787 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3788 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3789 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3790
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3791 dgux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3792 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3793 ec++)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3794 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3795 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3796 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3797 ghcx)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3798 # Green Hills C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3799 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3800 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3801 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3802 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3803 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3804 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3805 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3806 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3807 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3808 freebsd[12]*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3809 # C++ shared libraries reported to be fairly broken before switch to ELF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3810 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3811 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3812 freebsd-elf*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3813 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3814 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3815 freebsd* | kfreebsd*-gnu)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3816 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3817 # conventions
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3818 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3819 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3820 gnu*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3821 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3822 hpux9*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3823 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3824 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3825 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3826 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3827 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3828 # but as the default
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3829 # location of the library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3830
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3831 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3832 CC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3833 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3834 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3835 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3836 aCC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3837 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3838 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3839 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3840 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3841 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3842 # There doesn't appear to be a way to prevent this compiler from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3843 # explicitly linking system object files so we need to strip them
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3844 # from the output so that they don't get included in the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3845 # dependencies.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3846 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3847 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3848 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3849 if test "$GXX" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3850 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3851 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3852 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3853 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3854 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3855 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3856 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3857 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3858 hpux10*|hpux11*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3859 if test $with_gnu_ld = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3860 case "$host_cpu" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3861 hppa*64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3862 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3863 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3864 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3865 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3866 ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3867 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3868 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3869 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3870 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3871 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3872 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3873 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3874 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3875 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3876 case "$host_cpu" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3877 hppa*64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3878 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3879 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3880 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3881 ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3882 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3883 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3884 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3885 # but as the default
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3886 # location of the library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3887 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3888 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3889 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3890 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3891 # but as the default
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3892 # location of the library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3893 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3894 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3895
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3896 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3897 CC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3898 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3899 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3900 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3901 aCC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3902 case "$host_cpu" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3903 hppa*64*|ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3904 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3905 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3906 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3907 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3908 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3909 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3910 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3911 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3912 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3913 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3914 # There doesn't appear to be a way to prevent this compiler from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3915 # explicitly linking system object files so we need to strip them
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3916 # from the output so that they don't get included in the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3917 # dependencies.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3918 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3919 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3920 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3921 if test "$GXX" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3922 if test $with_gnu_ld = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3923 case "$host_cpu" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3924 ia64*|hppa*64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3925 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3926 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3927 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3928 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3929 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3930 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3931 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3932 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3933 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3934 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3935 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3936 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3937 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3938 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3939 irix5* | irix6*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3940 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3941 CC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3942 # SGI C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3943 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3944
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3945 # Archives containing C++ object files must be created using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3946 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3947 # necessary to make sure instantiated templates are included
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3948 # in the archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3949 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3950 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3951 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3952 if test "$GXX" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3953 if test "$with_gnu_ld" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3954 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3955 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3956 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3957 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3958 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3959 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3960 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3961 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3962 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3963 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3964 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3965 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3966 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3967 KCC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3968 # Kuck and Associates, Inc. (KAI) C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3969
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3970 # KCC will only create a shared library if the output file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3971 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3972 # to its proper name (with version) after linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3973 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3974 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3975 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3976 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3977 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3978 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3979 # There doesn't appear to be a way to prevent this compiler from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3980 # explicitly linking system object files so we need to strip them
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3981 # from the output so that they don't get included in the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3982 # dependencies.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3983 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3984
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3985 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3986 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3987
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3988 # Archives containing C++ object files must be created using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3989 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3990 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3991 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3992 icpc)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3993 # Intel C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3994 with_gnu_ld=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3995 # version 8.0 and above of icpc choke on multiply defined symbols
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3996 # if we add $predep_objects and $postdep_objects, however 7.1 and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3997 # earlier do not add the objects themselves.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3998 case `$CC -V 2>&1` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3999 *"Version 7."*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4000 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4001 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4002 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4003 *) # Version 8.0 or newer
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4004 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4005 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4006 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4007 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4008 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4009 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4010 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4011 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4012 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4013 cxx)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4014 # Compaq C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4015 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4016 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4017
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4018 runpath_var=LD_RUN_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4019 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4020 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4021
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4022 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4023 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4024 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4025 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4026 # There doesn't appear to be a way to prevent this compiler from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4027 # explicitly linking system object files so we need to strip them
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4028 # from the output so that they don't get included in the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4029 # dependencies.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4030 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4031 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4032 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4033 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4034 lynxos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4035 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4036 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4037 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4038 m88k*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4039 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4040 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4041 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4042 mvs*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4043 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4044 cxx)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4045 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4046 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4047 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4048 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4049 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4050 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4051 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4052 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4053 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4054 netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4056 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4057 wlarc=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4058 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4059 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4060 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4061 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4062 # Workaround some broken pre-1.5 toolchains
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4063 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4064 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4065 openbsd2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4066 # C++ shared libraries are fairly broken
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4067 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4068 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4069 openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4070 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4071 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4072 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4073 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4074 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4075 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4076 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4077 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4078 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4079 output_verbose_link_cmd='echo'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4080 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4081 osf3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4082 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4083 KCC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4084 # Kuck and Associates, Inc. (KAI) C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4085
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4086 # KCC will only create a shared library if the output file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4087 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4088 # to its proper name (with version) after linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4089 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4090
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4091 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4092 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4093
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4094 # Archives containing C++ object files must be created using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4095 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4096 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4097
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4098 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4099 RCC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4100 # Rational C++ 2.4.1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4101 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4102 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4103 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4104 cxx)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4105 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4106 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4107
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4108 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4109 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4110
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4111 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4112 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4113 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4114 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4115 # There doesn't appear to be a way to prevent this compiler from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4116 # explicitly linking system object files so we need to strip them
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4117 # from the output so that they don't get included in the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4118 # dependencies.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4119 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4120 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4121 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4122 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4123 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4124 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4125
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4126 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4127 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4128
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4129 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4130 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4131 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4132 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4133
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4134 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4135 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4136 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4137 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4138 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4139 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4140 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4141 osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4142 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4143 KCC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4144 # Kuck and Associates, Inc. (KAI) C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4145
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4146 # KCC will only create a shared library if the output file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4147 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4148 # to its proper name (with version) after linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4149 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4150
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4151 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4152 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4153
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4154 # Archives containing C++ object files must be created using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4155 # the KAI C++ compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4156 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4157 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4158 RCC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4159 # Rational C++ 2.4.1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4160 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4161 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4162 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4163 cxx)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4164 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4165 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4166 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4167 echo "-hidden">> $lib.exp~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4168 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4169 $rm $lib.exp'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4170
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4171 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4172 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4173
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4174 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4175 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4176 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4177 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4178 # There doesn't appear to be a way to prevent this compiler from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4179 # explicitly linking system object files so we need to strip them
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4180 # from the output so that they don't get included in the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4181 # dependencies.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4182 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4183 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4184 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4185 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4186 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4187 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4188
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4189 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4190 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4191
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4192 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4193 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4194 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4195 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4196
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4197 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4198 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4199 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4200 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4201 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4202 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4203 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4204 psos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4205 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4206 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4207 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4208 sco*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4209 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4210 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4211 CC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4212 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4213 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4214 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4215 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4216 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4217 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4218 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4219 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4220 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4221 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4222 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4223 CC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4224 # Sun C++ 4.x
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4225 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4226 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4227 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4228 lcc)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4229 # Lucid
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4230 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4231 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4232 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4233 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4234 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4235 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4236 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4237 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4238 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4239 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4240 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4241 CC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4242 # Sun C++ 4.2, 5.x and Centerline C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4243 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4244 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4245 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4246 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4247
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4248 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4249 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4250 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4251 solaris2.[0-5] | solaris2.[0-5].*) ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4252 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4253 # The C++ compiler is used as linker so we must use $wl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4254 # flag to pass the commands to the underlying system
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4255 # linker.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4256 # Supported since Solaris 2.6 (maybe 2.5.1?)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4257 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4258 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4259 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4260 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4261
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4262 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4263 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4264 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4265 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4266 # There doesn't appear to be a way to prevent this compiler from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4267 # explicitly linking system object files so we need to strip them
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4268 # from the output so that they don't get included in the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4269 # dependencies.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4270 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4271
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4272 # Archives containing C++ object files must be created using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4273 # "CC -xar", where "CC" is the Sun C++ compiler. This is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4274 # necessary to make sure instantiated templates are included
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4275 # in the archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4276 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4277 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4278 gcx)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4279 # Green Hills C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4280 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4281
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4282 # The C++ compiler must be used to create the archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4283 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4284 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4285 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4286 # GNU C++ compiler with Solaris linker
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4287 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4288 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4289 if $CC --version | grep -v '^2\.7' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4290 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4291 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4292 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4293
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4294 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4295 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4296 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4297 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4298 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4299 # g++ 2.7 appears to require `-G' NOT `-shared' on this
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4300 # platform.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4301 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4302 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4303 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4304
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4305 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4306 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4307 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4308 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4309 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4310
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4311 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4312 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4313 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4314 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4315 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4316 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4317 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4318 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4319 tandem*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4320 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4321 NCC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4322 # NonStop-UX NCC 3.20
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4323 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4324 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4325 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4326 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4327 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4328 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4329 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4330 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4331 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4332 vxworks*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4333 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4334 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4335 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4336 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4337 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4338 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4339 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4340 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4341 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4342 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4343
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4344 _LT_AC_TAGVAR(GCC, $1)="$GXX"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4345 _LT_AC_TAGVAR(LD, $1)="$LD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4346
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4347 AC_LIBTOOL_POSTDEP_PREDEP($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4348 AC_LIBTOOL_PROG_COMPILER_PIC($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4349 AC_LIBTOOL_PROG_CC_C_O($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4350 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4351 AC_LIBTOOL_PROG_LD_SHLIBS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4352 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4353 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4354 AC_LIBTOOL_SYS_LIB_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4355 AC_LIBTOOL_DLOPEN_SELF($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4356
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4357 AC_LIBTOOL_CONFIG($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4358
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4359 AC_LANG_POP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4360 CC=$lt_save_CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4361 LDCXX=$LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4362 LD=$lt_save_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4363 GCC=$lt_save_GCC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4364 with_gnu_ldcxx=$with_gnu_ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4365 with_gnu_ld=$lt_save_with_gnu_ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4366 lt_cv_path_LDCXX=$lt_cv_path_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4367 lt_cv_path_LD=$lt_save_path_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4368 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4369 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4370 ])# AC_LIBTOOL_LANG_CXX_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4371
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4372 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4373 # ------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4374 # Figure out "hidden" library dependencies from verbose
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4375 # compiler output when linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4376 # Parse the compiler output and extract the necessary
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4377 # objects, libraries and library flags.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4378 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4379 dnl we can't use the lt_simple_compile_test_code here,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4380 dnl because it contains code intended for an executable,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4381 dnl not a library. It's possible we should let each
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4382 dnl tag define a new lt_????_link_test_code variable,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4383 dnl but it's only used here...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4384 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4385 int a;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4386 void foo (void) { a = 0; }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4387 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4388 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4389 class Foo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4390 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4391 public:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4392 Foo (void) { a = 0; }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4393 private:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4394 int a;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4395 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4396 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4397 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4398 subroutine foo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4399 implicit none
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4400 integer*4 a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4401 a=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4402 return
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4403 end
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4404 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4405 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4406 public class foo {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4407 private int a;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4408 public void bar (void) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4409 a = 0;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4410 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4411 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4412 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4413 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4414 dnl Parse the compiler output and extract the necessary
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4415 dnl objects, libraries and library flags.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4416 if AC_TRY_EVAL(ac_compile); then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4417 # Parse the compiler output and extract the necessary
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4418 # objects, libraries and library flags.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4419
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4420 # Sentinel used to keep track of whether or not we are before
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4421 # the conftest object file.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4422 pre_test_object_deps_done=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4423
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4424 # The `*' in the case matches for architectures that use `case' in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4425 # $output_verbose_cmd can trigger glob expansion during the loop
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4426 # eval without this substitution.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4427 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4428
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4429 for p in `eval $output_verbose_link_cmd`; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4430 case $p in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4431
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4432 -L* | -R* | -l*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4433 # Some compilers place space between "-{L,R}" and the path.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4434 # Remove the space.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4435 if test $p = "-L" \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4436 || test $p = "-R"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4437 prev=$p
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4438 continue
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4439 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4440 prev=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4441 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4442
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4443 if test "$pre_test_object_deps_done" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4444 case $p in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4445 -L* | -R*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4446 # Internal compiler library paths should come after those
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4447 # provided the user. The postdeps already come after the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4448 # user supplied libs so there is no need to process them.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4449 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4450 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4451 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4452 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4453 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4454 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4455 # The "-l" case would never come before the object being
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4456 # linked, so don't bother handling this case.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4457 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4458 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4459 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4460 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4461 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4462 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4463 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4464 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4465 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4466
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4467 *.$objext)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4468 # This assumes that the test object file only shows up
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4469 # once in the compiler output.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4470 if test "$p" = "conftest.$objext"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4471 pre_test_object_deps_done=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4472 continue
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4473 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4474
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4475 if test "$pre_test_object_deps_done" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4476 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4477 _LT_AC_TAGVAR(predep_objects, $1)="$p"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4478 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4479 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4480 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4481 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4482 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4483 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4484 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4485 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4486 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4487 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4488 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4489
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4490 *) ;; # Ignore the rest.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4491
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4492 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4493 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4494
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4495 # Clean up.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4496 rm -f a.out a.exe
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4497 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4498 echo "libtool.m4: error: problem compiling $1 test program"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4499 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4500
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4501 $rm -f confest.$objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4502
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4503 case " $_LT_AC_TAGVAR(postdeps, $1) " in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4504 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4505 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4506 ])# AC_LIBTOOL_POSTDEP_PREDEP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4507
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4508 # AC_LIBTOOL_LANG_F77_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4509 # ------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4510 # Ensure that the configuration vars for the C compiler are
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4511 # suitably defined. Those variables are subsequently used by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4512 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4513 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4514 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4515 [AC_REQUIRE([AC_PROG_F77])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4516 AC_LANG_PUSH(Fortran 77)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4517
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4518 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4519 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4520 _LT_AC_TAGVAR(always_export_symbols, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4521 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4522 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4523 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4524 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4525 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4526 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4527 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4528 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4529 _LT_AC_TAGVAR(module_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4530 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4531 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4532 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4533 _LT_AC_TAGVAR(no_undefined_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4534 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4535 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4536
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4537 # Source file extension for f77 test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4538 ac_ext=f
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4539
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4540 # Object file extension for compiled f77 test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4541 objext=o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4542 _LT_AC_TAGVAR(objext, $1)=$objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4543
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4544 # Code to be used in simple compile tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4545 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4546
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4547 # Code to be used in simple link tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4548 lt_simple_link_test_code=" program t\n end\n"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4549
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4550 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4551 _LT_AC_SYS_COMPILER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4552
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4553 # Allow CC to be a program name with arguments.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4554 lt_save_CC="$CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4555 CC=${F77-"f77"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4556 compiler=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4557 _LT_AC_TAGVAR(compiler, $1)=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4558 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4559
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4560 AC_MSG_CHECKING([if libtool supports shared libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4561 AC_MSG_RESULT([$can_build_shared])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4562
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4563 AC_MSG_CHECKING([whether to build shared libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4564 test "$can_build_shared" = "no" && enable_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4565
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4566 # On AIX, shared libraries and static libraries use the same namespace, and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4567 # are all built from PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4568 case "$host_os" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4569 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4570 test "$enable_shared" = yes && enable_static=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4571 if test -n "$RANLIB"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4572 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4573 postinstall_cmds='$RANLIB $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4574 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4575 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4576 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4577 test "$enable_shared" = yes && enable_static=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4578 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4579 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4580 AC_MSG_RESULT([$enable_shared])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4581
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4582 AC_MSG_CHECKING([whether to build static libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4583 # Make sure either enable_shared or enable_static is yes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4584 test "$enable_shared" = yes || enable_static=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4585 AC_MSG_RESULT([$enable_static])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4586
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4587 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4588
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4589 _LT_AC_TAGVAR(GCC, $1)="$G77"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4590 _LT_AC_TAGVAR(LD, $1)="$LD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4591
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4592 AC_LIBTOOL_PROG_COMPILER_PIC($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4593 AC_LIBTOOL_PROG_CC_C_O($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4594 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4595 AC_LIBTOOL_PROG_LD_SHLIBS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4596 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4597 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4598 AC_LIBTOOL_SYS_LIB_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4599
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4600
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4601 AC_LIBTOOL_CONFIG($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4602
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4603 AC_LANG_POP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4604 CC="$lt_save_CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4605 ])# AC_LIBTOOL_LANG_F77_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4606
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4607
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4608 # AC_LIBTOOL_LANG_GCJ_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4609 # --------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4610 # Ensure that the configuration vars for the C compiler are
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4611 # suitably defined. Those variables are subsequently used by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4612 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4613 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4614 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4615 [AC_LANG_SAVE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4616
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4617 # Source file extension for Java test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4618 ac_ext=java
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4619
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4620 # Object file extension for compiled Java test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4621 objext=o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4622 _LT_AC_TAGVAR(objext, $1)=$objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4623
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4624 # Code to be used in simple compile tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4625 lt_simple_compile_test_code="class foo {}\n"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4626
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4627 # Code to be used in simple link tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4628 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4629
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4630 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4631 _LT_AC_SYS_COMPILER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4632
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4633 # Allow CC to be a program name with arguments.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4634 lt_save_CC="$CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4635 CC=${GCJ-"gcj"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4636 compiler=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4637 _LT_AC_TAGVAR(compiler, $1)=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4638
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4639 # GCJ did not exist at the time GCC didn't implicitly link libc in.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4640 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4641
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4642 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4643 AC_LIBTOOL_PROG_COMPILER_PIC($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4644 AC_LIBTOOL_PROG_CC_C_O($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4645 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4646 AC_LIBTOOL_PROG_LD_SHLIBS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4647 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4648 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4649 AC_LIBTOOL_SYS_LIB_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4650 AC_LIBTOOL_DLOPEN_SELF($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4651
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4652 AC_LIBTOOL_CONFIG($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4653
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4654 AC_LANG_RESTORE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4655 CC="$lt_save_CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4656 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4657
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4658
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4659 # AC_LIBTOOL_LANG_RC_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4660 # --------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4661 # Ensure that the configuration vars for the Windows resource compiler are
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4662 # suitably defined. Those variables are subsequently used by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4663 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4664 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4665 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4666 [AC_LANG_SAVE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4667
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4668 # Source file extension for RC test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4669 ac_ext=rc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4670
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4671 # Object file extension for compiled RC test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4672 objext=o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4673 _LT_AC_TAGVAR(objext, $1)=$objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4674
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4675 # Code to be used in simple compile tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4676 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4677
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4678 # Code to be used in simple link tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4679 lt_simple_link_test_code="$lt_simple_compile_test_code"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4680
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4681 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4682 _LT_AC_SYS_COMPILER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4683
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4684 # Allow CC to be a program name with arguments.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4685 lt_save_CC="$CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4686 CC=${RC-"windres"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4687 compiler=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4688 _LT_AC_TAGVAR(compiler, $1)=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4689 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4690
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4691 AC_LIBTOOL_CONFIG($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4692
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4693 AC_LANG_RESTORE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4694 CC="$lt_save_CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4695 ])# AC_LIBTOOL_LANG_RC_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4696
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4697
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4698 # AC_LIBTOOL_CONFIG([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4699 # ----------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4700 # If TAGNAME is not passed, then create an initial libtool script
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4701 # with a default configuration from the untagged config vars. Otherwise
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4702 # add code to config.status for appending the configuration named by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4703 # TAGNAME from the matching tagged config vars.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4704 AC_DEFUN([AC_LIBTOOL_CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4705 [# The else clause should only fire when bootstrapping the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4706 # libtool distribution, otherwise you forgot to ship ltmain.sh
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4707 # with your package, and you will get complaints that there are
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4708 # no rules to generate ltmain.sh.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4709 if test -f "$ltmain"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4710 # See if we are running on zsh, and set the options which allow our commands through
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4711 # without removal of \ escapes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4712 if test -n "${ZSH_VERSION+set}" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4713 setopt NO_GLOB_SUBST
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4714 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4715 # Now quote all the things that may contain metacharacters while being
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4716 # careful not to overquote the AC_SUBSTed values. We take copies of the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4717 # variables and quote the copies for generation of the libtool script.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4718 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4719 SED SHELL STRIP \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4720 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4721 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4722 deplibs_check_method reload_flag reload_cmds need_locks \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4723 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4724 lt_cv_sys_global_symbol_to_c_name_address \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4725 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4726 old_postinstall_cmds old_postuninstall_cmds \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4727 _LT_AC_TAGVAR(compiler, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4728 _LT_AC_TAGVAR(CC, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4729 _LT_AC_TAGVAR(LD, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4730 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4731 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4732 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4733 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4734 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4735 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4736 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4737 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4738 _LT_AC_TAGVAR(old_archive_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4739 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4740 _LT_AC_TAGVAR(predep_objects, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4741 _LT_AC_TAGVAR(postdep_objects, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4742 _LT_AC_TAGVAR(predeps, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4743 _LT_AC_TAGVAR(postdeps, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4744 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4745 _LT_AC_TAGVAR(archive_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4746 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4747 _LT_AC_TAGVAR(postinstall_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4748 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4749 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4750 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4751 _LT_AC_TAGVAR(no_undefined_flag, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4752 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4753 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4754 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4755 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4756 _LT_AC_TAGVAR(hardcode_automatic, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4757 _LT_AC_TAGVAR(module_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4758 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4759 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4760 _LT_AC_TAGVAR(exclude_expsyms, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4761 _LT_AC_TAGVAR(include_expsyms, $1); do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4762
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4763 case $var in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4764 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4765 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4766 _LT_AC_TAGVAR(archive_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4767 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4768 _LT_AC_TAGVAR(module_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4769 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4770 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4771 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4772 extract_expsyms_cmds | reload_cmds | finish_cmds | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4773 postinstall_cmds | postuninstall_cmds | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4774 old_postinstall_cmds | old_postuninstall_cmds | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4775 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4776 # Double-quote double-evaled strings.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4777 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4778 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4779 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4781 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4782 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4783 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4784
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4785 case $lt_echo in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4786 *'\[$]0 --fallback-echo"')
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4787 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4788 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4789 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4790
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4791 ifelse([$1], [],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4792 [cfgfile="${ofile}T"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4793 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4794 $rm -f "$cfgfile"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4795 AC_MSG_NOTICE([creating $ofile])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4796 [cfgfile="$ofile"])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4797
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4798 cat <<__EOF__ >> "$cfgfile"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4799 ifelse([$1], [],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4800 [#! $SHELL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4801
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4802 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4803 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4804 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4805 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4806 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4807 # Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4808 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4809 # This file is part of GNU Libtool:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4810 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4811 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4812 # This program is free software; you can redistribute it and/or modify
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4813 # it under the terms of the GNU General Public License as published by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4814 # the Free Software Foundation; either version 2 of the License, or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4815 # (at your option) any later version.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4816 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4817 # This program is distributed in the hope that it will be useful, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4818 # WITHOUT ANY WARRANTY; without even the implied warranty of
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4819 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4820 # General Public License for more details.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4821 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4822 # You should have received a copy of the GNU General Public License
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4823 # along with this program; if not, write to the Free Software
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4824 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4825 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4826 # As a special exception to the GNU General Public License, if you
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4827 # distribute this file as part of a program that contains a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4828 # configuration script generated by Autoconf, you may include it under
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4829 # the same distribution terms that you use for the rest of that program.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4830
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4831 # A sed program that does not truncate output.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4832 SED=$lt_SED
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4833
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4834 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4835 Xsed="$SED -e s/^X//"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4836
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4837 # The HP-UX ksh and POSIX shell print the target directory to stdout
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4838 # if CDPATH is set.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4839 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4840
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4841 # The names of the tagged configurations supported by this script.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4842 available_tags=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4843
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4844 # ### BEGIN LIBTOOL CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4845 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4846
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4847 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4848
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4849 # Shell to use when invoking shell scripts.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4850 SHELL=$lt_SHELL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4851
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4852 # Whether or not to build shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4853 build_libtool_libs=$enable_shared
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4854
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4855 # Whether or not to build static libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4856 build_old_libs=$enable_static
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4857
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4858 # Whether or not to add -lc for building shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4859 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4860
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4861 # Whether or not to disallow shared libs when runtime libs are static
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4862 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4863
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4864 # Whether or not to optimize for fast installation.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4865 fast_install=$enable_fast_install
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4866
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4867 # The host system.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4868 host_alias=$host_alias
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4869 host=$host
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4870
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4871 # An echo program that does not interpret backslashes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4872 echo=$lt_echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4873
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4874 # The archiver.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4875 AR=$lt_AR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4876 AR_FLAGS=$lt_AR_FLAGS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4877
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4878 # A C compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4879 LTCC=$lt_LTCC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4880
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4881 # A language-specific compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4882 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4883
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4884 # Is the compiler the GNU C compiler?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4885 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4886
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4887 # An ERE matcher.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4888 EGREP=$lt_EGREP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4889
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4890 # The linker used to build libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4891 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4892
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4893 # Whether we need hard or soft links.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4894 LN_S=$lt_LN_S
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4895
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4896 # A BSD-compatible nm program.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4897 NM=$lt_NM
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4898
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4899 # A symbol stripping program
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4900 STRIP=$lt_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4901
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4902 # Used to examine libraries when file_magic_cmd begins "file"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4903 MAGIC_CMD=$MAGIC_CMD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4904
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4905 # Used on cygwin: DLL creation program.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4906 DLLTOOL="$DLLTOOL"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4907
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4908 # Used on cygwin: object dumper.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4909 OBJDUMP="$OBJDUMP"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4910
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4911 # Used on cygwin: assembler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4912 AS="$AS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4913
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4914 # The name of the directory that contains temporary libtool files.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4915 objdir=$objdir
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4916
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4917 # How to create reloadable object files.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4918 reload_flag=$lt_reload_flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4919 reload_cmds=$lt_reload_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4920
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4921 # How to pass a linker flag through the compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4922 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4923
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4924 # Object file suffix (normally "o").
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4925 objext="$ac_objext"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4926
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4927 # Old archive suffix (normally "a").
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4928 libext="$libext"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4929
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4930 # Shared library suffix (normally ".so").
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4931 shrext_cmds='$shrext_cmds'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4932
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4933 # Executable file suffix (normally "").
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4934 exeext="$exeext"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4935
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4936 # Additional compiler flags for building library objects.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4937 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4938 pic_mode=$pic_mode
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4939
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4940 # What is the maximum length of a command?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4941 max_cmd_len=$lt_cv_sys_max_cmd_len
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4942
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4943 # Does compiler simultaneously support -c and -o options?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4944 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4945
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4946 # Must we lock files when doing compilation ?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4947 need_locks=$lt_need_locks
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4948
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4949 # Do we need the lib prefix for modules?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4950 need_lib_prefix=$need_lib_prefix
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4951
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4952 # Do we need a version for libraries?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4953 need_version=$need_version
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4954
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4955 # Whether dlopen is supported.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4956 dlopen_support=$enable_dlopen
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4957
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4958 # Whether dlopen of programs is supported.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4959 dlopen_self=$enable_dlopen_self
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4960
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4961 # Whether dlopen of statically linked programs is supported.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4962 dlopen_self_static=$enable_dlopen_self_static
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4963
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4964 # Compiler flag to prevent dynamic linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4965 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4966
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4967 # Compiler flag to turn off builtin functions.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4968 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4969
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4970 # Compiler flag to allow reflexive dlopens.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4971 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4972
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4973 # Compiler flag to generate shared objects directly from archives.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4974 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4975
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4976 # Compiler flag to generate thread-safe objects.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4977 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4978
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4979 # Library versioning type.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4980 version_type=$version_type
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4981
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4982 # Format of library name prefix.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4983 libname_spec=$lt_libname_spec
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4984
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4985 # List of archive names. First name is the real one, the rest are links.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4986 # The last name is the one that the linker finds with -lNAME.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4987 library_names_spec=$lt_library_names_spec
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4988
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4989 # The coded name of the library, if different from the real name.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4990 soname_spec=$lt_soname_spec
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4991
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4992 # Commands used to build and install an old-style archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4993 RANLIB=$lt_RANLIB
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4994 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4995 old_postinstall_cmds=$lt_old_postinstall_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4996 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4997
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4998 # Create an old-style archive from a shared archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4999 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5000
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5001 # Create a temporary old-style archive to link instead of a shared archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5002 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5003
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5004 # Commands used to build and install a shared archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5005 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5006 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5007 postinstall_cmds=$lt_postinstall_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5008 postuninstall_cmds=$lt_postuninstall_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5009
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5010 # Commands used to build a loadable module (assumed same as above if empty)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5011 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5012 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5013
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5014 # Commands to strip libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5015 old_striplib=$lt_old_striplib
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5016 striplib=$lt_striplib
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5017
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5018 # Dependencies to place before the objects being linked to create a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5019 # shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5020 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5021
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5022 # Dependencies to place after the objects being linked to create a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5023 # shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5024 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5025
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5026 # Dependencies to place before the objects being linked to create a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5027 # shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5028 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5029
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5030 # Dependencies to place after the objects being linked to create a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5031 # shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5032 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5033
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5034 # The library search path used internally by the compiler when linking
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5035 # a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5036 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5037
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5038 # Method to check whether dependent libraries are shared objects.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5039 deplibs_check_method=$lt_deplibs_check_method
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5040
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5041 # Command to use when deplibs_check_method == file_magic.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5042 file_magic_cmd=$lt_file_magic_cmd
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5043
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5044 # Flag that allows shared libraries with undefined symbols to be built.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5045 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5046
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5047 # Flag that forces no undefined symbols.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5048 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5049
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5050 # Commands used to finish a libtool library installation in a directory.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5051 finish_cmds=$lt_finish_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5052
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5053 # Same as above, but a single script fragment to be evaled but not shown.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5054 finish_eval=$lt_finish_eval
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5055
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5056 # Take the output of nm and produce a listing of raw symbols and C names.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5057 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5058
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5059 # Transform the output of nm in a proper C declaration
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5060 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5061
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5062 # Transform the output of nm in a C name address pair
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5063 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5064
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5065 # This is the shared library runtime path variable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5066 runpath_var=$runpath_var
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5067
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5068 # This is the shared library path variable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5069 shlibpath_var=$shlibpath_var
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5070
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5071 # Is shlibpath searched before the hard-coded library search path?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5072 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5073
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5074 # How to hardcode a shared library path into an executable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5075 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5076
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5077 # Whether we should hardcode library paths into libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5078 hardcode_into_libs=$hardcode_into_libs
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5079
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5080 # Flag to hardcode \$libdir into a binary during linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5081 # This must work even if \$libdir does not exist.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5082 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5083
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5084 # If ld is used when linking, flag to hardcode \$libdir into
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5085 # a binary during linking. This must work even if \$libdir does
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5086 # not exist.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5087 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5088
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5089 # Whether we need a single -rpath flag with a separated argument.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5090 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5091
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5092 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5093 # resulting binary.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5094 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5095
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5096 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5097 # resulting binary.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5098 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5099
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5100 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5101 # the resulting binary.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5102 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5103
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5104 # Set to yes if building a shared library automatically hardcodes DIR into the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5105 # and all subsequent libraries and executables linked against it.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5106 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5107
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5108 # Variables whose values should be saved in libtool wrapper scripts and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5109 # restored at relink time.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5110 variables_saved_for_relink="$variables_saved_for_relink"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5111
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5112 # Whether libtool must link a program against all its dependency libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5113 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5114
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5115 # Compile-time system search path for libraries
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5116 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5117
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5118 # Run-time system search path for libraries
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5119 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5120
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5121 # Fix the shell variable \$srcfile for the compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5122 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5123
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5124 # Set to yes if exported symbols are required.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5125 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5126
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5127 # The commands to list exported symbols.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5128 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5129
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5130 # The commands to extract the exported symbol list from a shared archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5131 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5132
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5133 # Symbols that should not be listed in the preloaded symbols.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5134 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5135
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5136 # Symbols that must always be exported.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5137 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5138
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5139 ifelse([$1],[],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5140 [# ### END LIBTOOL CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5141 [# ### END LIBTOOL TAG CONFIG: $tagname])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5142
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5143 __EOF__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5144
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5145 ifelse([$1],[], [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5146 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5147 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5148 cat <<\EOF >> "$cfgfile"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5149
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5150 # AIX sometimes has problems with the GCC collect2 program. For some
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5151 # reason, if we set the COLLECT_NAMES environment variable, the problems
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5152 # vanish in a puff of smoke.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5153 if test "X${COLLECT_NAMES+set}" != Xset; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5154 COLLECT_NAMES=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5155 export COLLECT_NAMES
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5156 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5157 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5158 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5159 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5160
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5161 # We use sed instead of cat because bash on DJGPP gets confused if
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5162 # if finds mixed CR/LF and LF-only lines. Since sed operates in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5163 # text mode, it properly converts lines to CR/LF. This bash problem
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5164 # is reportedly fixed, but why not run on old versions too?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5165 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5166
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5167 mv -f "$cfgfile" "$ofile" || \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5168 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5169 chmod +x "$ofile"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5170 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5171 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5172 # If there is no Makefile yet, we rely on a make rule to execute
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5173 # `config.status --recheck' to rerun these tests and create the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5174 # libtool script then.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5175 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5176 if test -f "$ltmain_in"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5177 test -f Makefile && make "$ltmain"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5178 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5179 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5180 ])# AC_LIBTOOL_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5181
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5182
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5183 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5184 # -------------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5185 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5186 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5187
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5188 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5189
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5190 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5191 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5192
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5193 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5194 lt_cv_prog_compiler_rtti_exceptions,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5195 [-fno-rtti -fno-exceptions], [],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5196 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5197 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5198 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5199
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5200
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5201 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5202 # ---------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5203 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5204 [AC_REQUIRE([AC_CANONICAL_HOST])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5205 AC_REQUIRE([AC_PROG_NM])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5206 AC_REQUIRE([AC_OBJEXT])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5207 # Check for command to grab the raw symbol name followed by C symbol from nm.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5208 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5209 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5210 [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5211 # These are sane defaults that work on at least a few old systems.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5212 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5213
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5214 # Character class describing NM global symbol codes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5215 symcode='[[BCDEGRST]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5216
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5217 # Regexp to match symbols that can be accessed directly from C.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5218 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5219
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5220 # Transform the above into a raw symbol and a C symbol.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5221 symxfrm='\1 \2\3 \3'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5222
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5223 # Transform an extracted symbol line into a proper C declaration
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5224 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5225
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5226 # Transform an extracted symbol line into symbol name and symbol address
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5227 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5228
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5229 # Define system-specific variables.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5230 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5231 aix*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5232 symcode='[[BCDT]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5233 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5234 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5235 symcode='[[ABCDGISTW]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5236 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5237 hpux*) # Its linker distinguishes data from code symbols
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5238 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5239 symcode='[[ABCDEGRST]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5240 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5241 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5242 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5243 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5244 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5245 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5246 symcode='[[ABCDGIRSTW]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5247 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5248 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5249 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5250 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5251 irix* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5252 symcode='[[BCDEGRST]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5253 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5254 osf*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5255 symcode='[[BCDEGQRST]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5256 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5257 solaris* | sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5258 symcode='[[BDRT]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5259 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5260 sysv4)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5261 symcode='[[DFNSTU]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5262 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5263 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5264
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5265 # Handle CRLF in mingw tool chain
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5266 opt_cr=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5267 case $build_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5268 mingw*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5269 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5270 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5271 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5272
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5273 # If we're using GNU nm, then use its standard symbol codes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5274 case `$NM -V 2>&1` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5275 *GNU* | *'with BFD'*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5276 symcode='[[ABCDGIRSTW]]' ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5277 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5278
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5279 # Try without a prefix undercore, then with it.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5280 for ac_symprfx in "" "_"; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5281
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5282 # Write the raw and C identifiers.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5283 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5284
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5285 # Check to see that the pipe works correctly.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5286 pipe_works=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5287
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5288 rm -f conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5289 cat > conftest.$ac_ext <<EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5290 #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5291 extern "C" {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5292 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5293 char nm_test_var;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5294 void nm_test_func(){}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5295 #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5296 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5297 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5298 int main(){nm_test_var='a';nm_test_func();return(0);}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5299 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5300
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5301 if AC_TRY_EVAL(ac_compile); then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5302 # Now try to grab the symbols.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5303 nlist=conftest.nm
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5304 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5305 # Try sorting and uniquifying the output.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5306 if sort "$nlist" | uniq > "$nlist"T; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5307 mv -f "$nlist"T "$nlist"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5308 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5309 rm -f "$nlist"T
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5310 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5311
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5312 # Make sure that we snagged all the symbols we need.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5313 if grep ' nm_test_var$' "$nlist" >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5314 if grep ' nm_test_func$' "$nlist" >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5315 cat <<EOF > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5316 #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5317 extern "C" {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5318 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5319
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5320 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5321 # Now generate the symbol file.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5322 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5323
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5324 cat <<EOF >> conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5325 #if defined (__STDC__) && __STDC__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5326 # define lt_ptr_t void *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5327 #else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5328 # define lt_ptr_t char *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5329 # define const
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5330 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5331
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5332 /* The mapping between symbol names and symbols. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5333 const struct {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5334 const char *name;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5335 lt_ptr_t address;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5336 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5337 lt_preloaded_symbols[[]] =
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5338 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5339 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5340 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5341 cat <<\EOF >> conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5342 {0, (lt_ptr_t) 0}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5343 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5344
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5345 #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5346 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5347 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5348 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5349 # Now try linking the two files.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5350 mv conftest.$ac_objext conftstm.$ac_objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5351 lt_save_LIBS="$LIBS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5352 lt_save_CFLAGS="$CFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5353 LIBS="conftstm.$ac_objext"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5354 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5355 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5356 pipe_works=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5357 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5358 LIBS="$lt_save_LIBS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5359 CFLAGS="$lt_save_CFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5360 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5361 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5362 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5363 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5364 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5365 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5366 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5367 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5368 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5369 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5370 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5371 cat conftest.$ac_ext >&5
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5372 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5373 rm -f conftest* conftst*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5374
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5375 # Do not use the global_symbol_pipe unless it works.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5376 if test "$pipe_works" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5377 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5378 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5379 lt_cv_sys_global_symbol_pipe=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5380 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5381 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5382 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5383 if test -z "$lt_cv_sys_global_symbol_pipe"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5384 lt_cv_sys_global_symbol_to_cdecl=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5385 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5386 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5387 AC_MSG_RESULT(failed)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5388 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5389 AC_MSG_RESULT(ok)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5390 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5391 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5392
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5393
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5394 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5395 # ---------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5396 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5397 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5398 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5399 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5400
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5401 AC_MSG_CHECKING([for $compiler option to produce PIC])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5402 ifelse([$1],[CXX],[
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5403 # C++ specific cases for pic, static, wl, etc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5404 if test "$GXX" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5405 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5406 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5407
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5408 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5409 aix*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5410 # All AIX code is PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5411 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5412 # AIX 5 now supports IA64 processor
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5413 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5414 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5415 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5416 amigaos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5417 # FIXME: we need at least 68020 code to build shared libraries, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5418 # adding the `-m68020' flag to GCC prevents building anything better,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5419 # like `-m68040'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5420 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5421 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5422 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5423 # PIC is the default for these OSes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5424 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5425 mingw* | os2* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5426 # This hack is so that the source file can tell whether it is being
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5427 # built for inclusion in a dll (and should export symbols for example).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5428 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5429 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5430 darwin* | rhapsody*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5431 # PIC is the default on this platform
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5432 # Common symbols not allowed in MH_DYLIB files
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5433 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5434 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5435 *djgpp*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5436 # DJGPP does not support shared libraries at all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5437 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5438 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5439 sysv4*MP*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5440 if test -d /usr/nec; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5441 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5442 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5443 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5444 hpux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5445 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5446 # not for PA HP-UX.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5447 case "$host_cpu" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5448 hppa*64*|ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5449 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5450 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5451 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5452 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5453 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5454 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5455 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5456 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5457 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5458 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5459 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5460 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5461 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5462 # All AIX code is PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5463 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5464 # AIX 5 now supports IA64 processor
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5465 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5466 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5467 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5468 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5469 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5470 chorus*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5471 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5472 cxch68)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5473 # Green Hills C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5474 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5475 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5476 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5477 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5478 darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5479 # PIC is the default on this platform
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5480 # Common symbols not allowed in MH_DYLIB files
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5481 case "$cc_basename" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5482 xlc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5483 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5484 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5485 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5486 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5487 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5488 dgux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5489 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5490 ec++)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5491 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5492 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5493 ghcx)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5494 # Green Hills C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5495 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5496 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5497 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5498 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5499 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5500 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5501 freebsd* | kfreebsd*-gnu)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5502 # FreeBSD uses GNU C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5503 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5504 hpux9* | hpux10* | hpux11*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5505 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5506 CC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5507 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5508 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5509 if test "$host_cpu" != ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5510 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5511 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5512 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5513 aCC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5514 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5515 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5516 case "$host_cpu" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5517 hppa*64*|ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5518 # +Z the default
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5519 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5520 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5521 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5522 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5523 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5524 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5525 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5526 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5527 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5528 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5529 irix5* | irix6* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5530 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5531 CC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5532 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5533 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5534 # CC pic flag -KPIC is the default.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5535 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5536 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5537 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5538 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5539 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5540 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5541 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5542 KCC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5543 # KAI C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5544 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5545 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5546 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5547 icpc)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5548 # Intel C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5549 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5550 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5551 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5552 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5553 cxx)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5554 # Compaq C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5555 # Make sure the PIC flag is empty. It appears that all Alpha
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5556 # Linux and Compaq Tru64 Unix objects are PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5557 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5558 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5559 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5560 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5561 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5562 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5563 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5564 lynxos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5565 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5566 m88k*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5567 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5568 mvs*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5569 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5570 cxx)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5571 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5572 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5573 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5574 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5575 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5576 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5577 netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5578 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5579 osf3* | osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5580 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5581 KCC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5582 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5583 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5584 RCC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5585 # Rational C++ 2.4.1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5586 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5587 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5588 cxx)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5589 # Digital/Compaq C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5590 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5591 # Make sure the PIC flag is empty. It appears that all Alpha
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5592 # Linux and Compaq Tru64 Unix objects are PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5593 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5594 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5595 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5596 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5597 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5598 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5599 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5600 psos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5601 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5602 sco*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5603 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5604 CC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5605 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5606 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5607 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5608 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5609 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5610 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5611 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5612 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5613 CC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5614 # Sun C++ 4.2, 5.x and Centerline C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5615 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5616 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5617 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5618 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5619 gcx)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5620 # Green Hills C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5621 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5622 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5623 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5624 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5625 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5626 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5627 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5628 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5629 CC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5630 # Sun C++ 4.x
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5631 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5632 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5633 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5634 lcc)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5635 # Lucid
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5636 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5637 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5638 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5639 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5640 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5641 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5642 tandem*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5643 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5644 NCC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5645 # NonStop-UX NCC 3.20
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5646 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5647 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5648 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5649 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5650 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5651 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5652 unixware*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5653 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5654 vxworks*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5655 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5656 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5657 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5658 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5659 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5660 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5661 ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5662 [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5663 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5664 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5665 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5666
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5667 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5668 aix*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5669 # All AIX code is PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5670 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5671 # AIX 5 now supports IA64 processor
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5672 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5673 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5674 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5675
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5676 amigaos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5677 # FIXME: we need at least 68020 code to build shared libraries, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5678 # adding the `-m68020' flag to GCC prevents building anything better,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5679 # like `-m68040'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5680 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5681 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5682
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5683 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5684 # PIC is the default for these OSes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5685 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5686
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5687 mingw* | pw32* | os2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5688 # This hack is so that the source file can tell whether it is being
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5689 # built for inclusion in a dll (and should export symbols for example).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5690 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5691 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5692
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5693 darwin* | rhapsody*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5694 # PIC is the default on this platform
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5695 # Common symbols not allowed in MH_DYLIB files
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5696 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5697 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5698
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5699 msdosdjgpp*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5700 # Just because we use GCC doesn't mean we suddenly get shared libraries
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5701 # on systems that don't support them.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5702 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5703 enable_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5704 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5705
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5706 sysv4*MP*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5707 if test -d /usr/nec; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5708 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5709 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5710 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5711
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5712 hpux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5713 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5714 # not for PA HP-UX.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5715 case "$host_cpu" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5716 hppa*64*|ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5717 # +Z the default
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5718 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5719 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5720 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5721 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5722 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5723 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5724
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5725 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5726 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5727 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5728 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5729 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5730 # PORTME Check for flag to pass linker flags through the system compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5731 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5732 aix*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5733 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5734 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5735 # AIX 5 now supports IA64 processor
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5736 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5737 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5738 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5739 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5740 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5741 darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5742 # PIC is the default on this platform
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5743 # Common symbols not allowed in MH_DYLIB files
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5744 case "$cc_basename" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5745 xlc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5746 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5747 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5748 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5749 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5750 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5751
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5752 mingw* | pw32* | os2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5753 # This hack is so that the source file can tell whether it is being
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5754 # built for inclusion in a dll (and should export symbols for example).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5755 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5756 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5757
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5758 hpux9* | hpux10* | hpux11*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5759 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5761 # not for PA HP-UX.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5762 case "$host_cpu" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5763 hppa*64*|ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5764 # +Z the default
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5765 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5766 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5767 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5768 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5769 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5770 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5771 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5772 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5773
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5774 irix5* | irix6* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5775 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5776 # PIC (with -KPIC) is the default.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5777 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5778 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5779
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5780 newsos6)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5781 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5782 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5783 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5784
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5785 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5786 case $CC in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5787 icc* | ecc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5788 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5789 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5790 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5791 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5792 ccc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5793 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5794 # All Alpha code is PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5795 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5796 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5797 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5798 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5799
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5800 osf3* | osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5801 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5802 # All OSF/1 code is PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5803 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5804 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5805
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5806 sco3.2v5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5807 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5808 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5809 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5810
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5811 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5812 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5813 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5814 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5815 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5816
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5817 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5818 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5819 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5820 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5821 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5822
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5823 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5824 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5825 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5826 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5827 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5828
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5829 sysv4*MP*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5830 if test -d /usr/nec ;then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5831 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5832 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5833 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5834 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5835
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5836 uts4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5837 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5838 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5839 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5840
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5841 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5842 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5843 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5844 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5845 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5846 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5847 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5848
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5849 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5850 # Check to make sure the PIC flag actually works.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5851 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5852 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5853 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5854 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5855 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5856 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5857 "" | " "*) ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5858 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5859 esac],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5860 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5861 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5862 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5863 case "$host_os" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5864 # For platforms which do not support PIC, -DPIC is meaningless:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5865 *djgpp*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5866 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5867 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5868 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5869 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5870 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5871 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5872 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5873
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5874
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5875 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5876 # ------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5877 # See if the linker supports building shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5878 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5879 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5880 ifelse([$1],[CXX],[
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5881 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5882 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5883 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5884 # If we're using GNU nm, then we don't want the "-C" option.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5885 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5886 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5887 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5888 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5889 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5890 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5891 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5892 pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5893 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5894 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5895 cygwin* | mingw*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5896 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5897 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5898 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5899 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5900 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5901 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5902 ],[
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5903 runpath_var=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5904 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5905 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5906 _LT_AC_TAGVAR(archive_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5907 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5908 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5909 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5910 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5911 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5912 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5913 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5914 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5915 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5916 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5917 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5918 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5919 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5920 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5921 _LT_AC_TAGVAR(module_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5922 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5923 _LT_AC_TAGVAR(always_export_symbols, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5924 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5925 # include_expsyms should be a list of space-separated symbols to be *always*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5926 # included in the symbol list
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5927 _LT_AC_TAGVAR(include_expsyms, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5928 # exclude_expsyms can be an extended regexp of symbols to exclude
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5929 # it will be wrapped by ` (' and `)$', so one must not match beginning or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5930 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5931 # as well as any symbol that contains `d'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5932 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5933 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5934 # platforms (ab)use it in PIC code, but their linkers get confused if
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5935 # the symbol is explicitly referenced. Since portable code cannot
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5936 # rely on this symbol name, it's probably fine to never include it in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5937 # preloaded symbol tables.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5938 extract_expsyms_cmds=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5939
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5940 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5941 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5942 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5943 # When not using gcc, we currently assume that we are using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5944 # Microsoft Visual C++.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5945 if test "$GCC" != yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5946 with_gnu_ld=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5947 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5948 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5949 openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5950 with_gnu_ld=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5951 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5952 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5953
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5954 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5955 if test "$with_gnu_ld" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5956 # If archive_cmds runs LD, not CC, wlarc should be empty
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5957 wlarc='${wl}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5958
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5959 # See if GNU ld supports shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5960 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5961 aix3* | aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5962 # On AIX/PPC, the GNU linker is very broken
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5963 if test "$host_cpu" != ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5964 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5965 cat <<EOF 1>&2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5966
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5967 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5968 *** to be unable to reliably create shared libraries on AIX.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5969 *** Therefore, libtool is disabling shared libraries support. If you
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5970 *** really care for shared libraries, you may want to modify your PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5971 *** so that a non-GNU linker is found, and then restart.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5972
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5973 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5974 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5975 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5976
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5977 amigaos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5978 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5979 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5980 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5981
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5982 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5983 # that the semantics of dynamic libraries on AmigaOS, at least up
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5984 # to version 4, is to share data among multiple programs linked
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5985 # with the same dynamic library. Since this doesn't match the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5986 # behavior of shared libraries on other platforms, we can't use
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5987 # them.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5988 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5989 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5990
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5991 beos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5992 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5993 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5994 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5995 # support --undefined. This deserves some investigation. FIXME
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5996 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5997 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5998 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5999 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6000 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6001
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6002 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6003 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6004 # as there is no search path for DLLs.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6005 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6006 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6007 _LT_AC_TAGVAR(always_export_symbols, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6008 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6009 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6010
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6011 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6012 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6013 # If the export-symbols file already is a .def file (1st line
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6014 # is EXPORTS), use it as is; otherwise, prepend...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6015 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6016 cp $export_symbols $output_objdir/$soname.def;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6017 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6018 echo EXPORTS > $output_objdir/$soname.def;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6019 cat $export_symbols >> $output_objdir/$soname.def;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6020 fi~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6021 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6022 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6023 ld_shlibs=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6024 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6025 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6026
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6027 netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6028 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6029 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6030 wlarc=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6031 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6032 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6033 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6034 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6035 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6036
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6037 solaris* | sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6038 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6039 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6040 cat <<EOF 1>&2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6041
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6042 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6043 *** create shared libraries on Solaris systems. Therefore, libtool
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6044 *** is disabling shared libraries support. We urge you to upgrade GNU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6045 *** binutils to release 2.9.1 or newer. Another option is to modify
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6046 *** your PATH or compiler configuration so that the native linker is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6047 *** used, and then restart.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6048
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6049 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6050 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6051 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6052 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6053 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6054 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6055 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6056 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6057
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6058 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6059 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6060 wlarc=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6061 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6062 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6063 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6064
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6065 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6066 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6067 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6068 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6069 supports_anon_versioning=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6070 case `$LD -v 2>/dev/null` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6071 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6072 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6073 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6074 *\ 2.11.*) ;; # other 2.11 versions
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6075 *) supports_anon_versioning=yes ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6076 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6077 if test $supports_anon_versioning = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6078 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6079 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6080 $echo "local: *; };" >> $output_objdir/$libname.ver~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6081 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6082 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6083 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6084 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6085 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6086 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6087 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6088 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6089
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6090 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6091 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6092 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6093 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6094 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6095 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6096 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6097 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6098 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6099
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6100 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6101 runpath_var=LD_RUN_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6102 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6103 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6104 # ancient GNU ld didn't support --whole-archive et. al.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6105 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6106 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6107 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6108 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6109 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6110 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6111 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6112 # PORTME fill in a description of your system's linker (not GNU ld)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6113 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6114 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6115 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6116 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6117 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6118 # Note: this linker hardcodes the directories in LIBPATH if there
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6119 # are no directories specified by -L.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6120 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6121 if test "$GCC" = yes && test -z "$link_static_flag"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6122 # Neither direct hardcoding nor static linking is supported with a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6123 # broken collect2.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6124 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6125 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6126 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6127
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6128 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6129 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6130 # On IA64, the linker does run time linking by default, so we don't
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6131 # have to do anything special.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6132 aix_use_runtimelinking=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6133 exp_sym_flag='-Bexport'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6134 no_entry_flag=""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6135 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6136 # If we're using GNU nm, then we don't want the "-C" option.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6137 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6138 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6139 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6140 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6141 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6142 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6143 aix_use_runtimelinking=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6144
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6145 # Test if we are trying to use run time linking or normal
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6146 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6147 # need to do runtime linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6148 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6149 for ld_flag in $LDFLAGS; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6150 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6151 aix_use_runtimelinking=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6152 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6153 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6154 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6155 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6156
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6157 exp_sym_flag='-bexport'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6158 no_entry_flag='-bnoentry'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6159 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6160
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6161 # When large executables or shared objects are built, AIX ld can
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6162 # have problems creating the table of contents. If linking a library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6163 # or program results in "error TOC overflow" add -mminimal-toc to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6164 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6165 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6166
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6167 _LT_AC_TAGVAR(archive_cmds, $1)=''
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6168 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6169 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6170 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6171
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6172 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6173 case $host_os in aix4.[012]|aix4.[012].*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6174 # We only want to do this on AIX 4.2 and lower, the check
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6175 # below for broken collect2 doesn't work under 4.3+
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6176 collect2name=`${CC} -print-prog-name=collect2`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6177 if test -f "$collect2name" && \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6178 strings "$collect2name" | grep resolve_lib_name >/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6179 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6180 # We have reworked collect2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6181 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6182 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6183 # We have old collect2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6184 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6185 # It fails to find uninstalled libraries when the uninstalled
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6186 # path is not listed in the libpath. Setting hardcode_minus_L
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6187 # to unsupported forces relinking
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6188 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6189 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6190 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6191 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6192 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6193 shared_flag='-shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6194 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6195 # not using gcc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6196 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6197 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6198 # chokes on -Wl,-G. The following line is correct:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6199 shared_flag='-G'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6200 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6201 if test "$aix_use_runtimelinking" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6202 shared_flag='${wl}-G'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6203 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6204 shared_flag='${wl}-bM:SRE'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6205 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6206 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6207 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6208
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6209 # It seems that -bexpall does not export symbols beginning with
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6210 # underscore (_), so it is better to generate a list of symbols to export.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6211 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6212 if test "$aix_use_runtimelinking" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6213 # Warning - without using the other runtime loading flags (-brtl),
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6214 # -berok will link without error, but may produce a broken library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6215 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6216 # Determine the default libpath from the value encoded in an empty executable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6217 _LT_AC_SYS_LIBPATH_AIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6218 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6219 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6220 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6221 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6222 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6223 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6224 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6225 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6226 # Determine the default libpath from the value encoded in an empty executable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6227 _LT_AC_SYS_LIBPATH_AIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6228 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6229 # Warning - without using the other run time loading flags,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6230 # -berok will link without error, but may produce a broken library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6231 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6232 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6233 # -bexpall does not export symbols beginning with underscore (_)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6234 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6235 # Exported symbols can be pulled into shared objects from archives
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6236 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6237 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6238 # This is similar to how AIX traditionally builds it's shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6239 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6240 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6241 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6242 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6243
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6244 amigaos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6245 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6246 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6247 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6248 # see comment about different semantics on the GNU ld section
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6249 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6250 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6251
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6252 bsdi[[45]]*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6253 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6254 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6255
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6256 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6257 # When not using gcc, we currently assume that we are using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6258 # Microsoft Visual C++.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6259 # hardcode_libdir_flag_spec is actually meaningless, as there is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6260 # no search path for DLLs.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6261 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6262 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6263 # Tell ltmain to make .lib files, not .a files.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6264 libext=lib
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6265 # Tell ltmain to make .dll files, not .so files.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6266 shrext_cmds=".dll"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6267 # FIXME: Setting linknames here is a bad hack.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6268 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6269 # The linker will automatically build a .lib file if we build a DLL.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6270 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6271 # FIXME: Should let the user specify the lib program.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6272 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6273 fix_srcfile_path='`cygpath -w "$srcfile"`'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6274 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6275 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6276
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6277 darwin* | rhapsody*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6278 case "$host_os" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6279 rhapsody* | darwin1.[[012]])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6280 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6281 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6282 *) # Darwin 1.3 on
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6283 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6284 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6285 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6286 case ${MACOSX_DEPLOYMENT_TARGET} in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6287 10.[[012]])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6288 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6289 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6290 10.*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6291 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6292 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6293 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6294 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6295 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6296 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6297 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6298 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6299 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6300 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6301 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6302 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6303 if test "$GCC" = yes ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6304 output_verbose_link_cmd='echo'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6305 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6306 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6307 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6308 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6309 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6310 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6311 case "$cc_basename" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6312 xlc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6313 output_verbose_link_cmd='echo'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6314 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6315 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6316 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6317 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6318 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6319 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6320 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6321 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6322 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6323 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6324 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6325 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6326
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6327 dgux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6328 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6329 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6330 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6331 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6332
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6333 freebsd1*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6334 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6335 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6336
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6337 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6338 # support. Future versions do this automatically, but an explicit c++rt0.o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6339 # does not break anything, and helps significantly (at the cost of a little
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6340 # extra space).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6341 freebsd2.2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6342 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6343 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6344 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6345 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6346 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6347
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6348 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6349 freebsd2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6350 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6351 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6352 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6353 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6354 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6355
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6356 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6357 freebsd* | kfreebsd*-gnu)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6358 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6359 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6360 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6361 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6362 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6363
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6364 hpux9*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6365 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6366 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6367 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6368 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6369 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6370 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6371 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6372 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6373
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6374 # hardcode_minus_L: Not really in the search PATH,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6375 # but as the default location of the library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6376 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6377 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6378 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6379
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6380 hpux10* | hpux11*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6381 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6382 case "$host_cpu" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6383 hppa*64*|ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6384 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6385 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6386 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6387 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6388 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6389 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6390 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6391 case "$host_cpu" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6392 hppa*64*|ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6393 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6394 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6395 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6396 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6397 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6398 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6399 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6400 if test "$with_gnu_ld" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6401 case "$host_cpu" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6402 hppa*64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6403 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6404 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6405 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6406 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6407 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6408 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6409 ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6410 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6411 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6412 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6413
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6414 # hardcode_minus_L: Not really in the search PATH,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6415 # but as the default location of the library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6416 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6417 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6418 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6419 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6420 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6421 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6422 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6423
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6424 # hardcode_minus_L: Not really in the search PATH,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6425 # but as the default location of the library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6426 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6427 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6428 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6429 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6430 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6431
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6432 irix5* | irix6* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6433 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6434 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6435 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6436 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6437 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6438 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6439 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6440 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6441 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6442 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6443
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6444 netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6446 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6447 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6448 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6449 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6450 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6451 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6452 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6453 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6454
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6455 newsos6)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6456 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6457 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6458 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6459 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6460 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6461 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6462
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6463 openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6464 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6465 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6467 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6468 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6469 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6470 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6471 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6472 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6473 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6474 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6475 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6476 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6477 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6478 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6479 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6480 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6481 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6482 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6483 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6484
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6485 os2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6486 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6487 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6488 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6489 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6490 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6491 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6492
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6493 osf3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6494 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6495 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6496 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6497 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6498 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6499 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6500 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6501 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6502 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6503 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6504
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6505 osf4* | osf5*) # as osf3* with the addition of -msym flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6506 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6507 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6508 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6509 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6510 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6511 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6512 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6513 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6514 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6515
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6516 # Both c and cxx compiler support -rpath directly
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6517 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6518 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6519 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6520 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6521
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6522 sco3.2v5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6523 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6524 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6525 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6526 runpath_var=LD_RUN_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6527 hardcode_runpath_var=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6528 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6529
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6530 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6531 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6532 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6533 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6534 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6535 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6536 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6537 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6538 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6539 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6540 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6541 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6542 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6543 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6544 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6545 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6546 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6547 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6548 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6549 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6550
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6551 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6552 if test "x$host_vendor" = xsequent; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6553 # Use $CC to link under sequent, because it throws in some extra .o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6554 # files that make .init and .fini sections work.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6555 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6556 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6557 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6558 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6559 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6560 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6561 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6562 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6563 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6564
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6565 sysv4)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6566 case $host_vendor in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6567 sni)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6568 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6569 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6570 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6571 siemens)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6572 ## LD is ld it makes a PLAMLIB
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6573 ## CC just makes a GrossModule.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6574 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6575 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6576 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6577 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6578 motorola)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6579 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6580 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6581 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6582 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6583 runpath_var='LD_RUN_PATH'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6584 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6585 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6586
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6587 sysv4.3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6588 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6589 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6590 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6591 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6592
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6593 sysv4*MP*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6594 if test -d /usr/nec; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6595 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6596 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6597 runpath_var=LD_RUN_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6598 hardcode_runpath_var=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6599 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6600 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6601 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6602
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6603 sysv4.2uw2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6604 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6605 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6606 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6607 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6608 hardcode_runpath_var=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6609 runpath_var=LD_RUN_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6610 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6611
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6612 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6613 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6614 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6615 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6616 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6617 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6618 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6619 runpath_var='LD_RUN_PATH'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6620 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6621 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6622
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6623 sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6624 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6625 # $CC -shared without GNU ld will not create a library from C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6626 # object files and a static libstdc++, better avoid it by now
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6627 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6628 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6630 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6631 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6632 runpath_var='LD_RUN_PATH'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6633 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6634
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6635 uts4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6636 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6637 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6638 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6639 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6640
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6641 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6642 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6643 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6644 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6645 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6646 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6647 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6648 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6649
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6650 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6651 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6652 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6653 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6654
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6655 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6656 # Do we need to explicitly link libc?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6657 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6658 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6659 x|xyes)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6660 # Assume -lc should be added
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6661 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6662
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6663 if test "$enable_shared" = yes && test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6664 case $_LT_AC_TAGVAR(archive_cmds, $1) in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6665 *'~'*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6666 # FIXME: we may have to deal with multi-command sequences.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6667 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6668 '$CC '*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6669 # Test whether the compiler implicitly links with -lc since on some
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6670 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6671 # to ld, don't add -lc before -lgcc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6672 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6673 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6674 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6675
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6676 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6677 soname=conftest
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6678 lib=conftest
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6679 libobjs=conftest.$ac_objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6680 deplibs=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6681 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6682 compiler_flags=-v
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6683 linker_flags=-v
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6684 verstring=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6685 output_objdir=.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6686 libname=conftest
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6687 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6688 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6689 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6690 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6691 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6692 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6693 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6694 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6695 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6696 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6697 cat conftest.err 1>&5
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6698 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6699 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6700 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6701 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6702 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6703 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6704 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6705 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6706 ])# AC_LIBTOOL_PROG_LD_SHLIBS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6707
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6708
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6709 # _LT_AC_FILE_LTDLL_C
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6710 # -------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6711 # Be careful that the start marker always follows a newline.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6712 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6713 # /* ltdll.c starts here */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6714 # #define WIN32_LEAN_AND_MEAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6715 # #include <windows.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6716 # #undef WIN32_LEAN_AND_MEAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6717 # #include <stdio.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6718 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6719 # #ifndef __CYGWIN__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6720 # # ifdef __CYGWIN32__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6721 # # define __CYGWIN__ __CYGWIN32__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6722 # # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6723 # #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6724 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6725 # #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6726 # extern "C" {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6727 # #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6728 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6729 # #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6730 # }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6731 # #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6732 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6733 # #ifdef __CYGWIN__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6734 # #include <cygwin/cygwin_dll.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6735 # DECLARE_CYGWIN_DLL( DllMain );
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6736 # #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6737 # HINSTANCE __hDllInstance_base;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6738 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6739 # BOOL APIENTRY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6740 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6741 # {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6742 # __hDllInstance_base = hInst;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6743 # return TRUE;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6744 # }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6745 # /* ltdll.c ends here */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6746 ])# _LT_AC_FILE_LTDLL_C
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6747
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6748
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6749 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6750 # ---------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6751 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6752
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6753
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6754 # old names
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6755 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6756 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6757 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6758 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6759 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6760 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6761 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6762
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6763 # This is just to silence aclocal about the macro not being used
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6764 ifelse([AC_DISABLE_FAST_INSTALL])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6765
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6766 AC_DEFUN([LT_AC_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6767 [AC_CHECK_TOOL(GCJ, gcj, no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6768 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6769 AC_SUBST(GCJFLAGS)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6770 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6771
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6772 AC_DEFUN([LT_AC_PROG_RC],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6773 [AC_CHECK_TOOL(RC, windres, no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6774 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6775
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6776 # NOTE: This macro has been submitted for inclusion into #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6777 # GNU Autoconf as AC_PROG_SED. When it is available in #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6778 # a released version of Autoconf we should remove this #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6779 # macro and use it instead. #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6780 # LT_AC_PROG_SED
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6781 # --------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6782 # Check for a fully-functional sed program, that truncates
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6783 # as few characters as possible. Prefer GNU sed if found.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6784 AC_DEFUN([LT_AC_PROG_SED],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6785 [AC_MSG_CHECKING([for a sed that does not truncate output])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6786 AC_CACHE_VAL(lt_cv_path_SED,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6787 [# Loop through the user's path and test for sed and gsed.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6788 # Then use that list of sed's as ones to test for truncation.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6790 for as_dir in $PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6791 do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6792 IFS=$as_save_IFS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6793 test -z "$as_dir" && as_dir=.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6794 for lt_ac_prog in sed gsed; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6795 for ac_exec_ext in '' $ac_executable_extensions; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6796 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6797 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6798 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6799 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6800 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6801 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6802 lt_ac_max=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6803 lt_ac_count=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6804 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6805 # along with /bin/sed that truncates output.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6806 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6807 test ! -f $lt_ac_sed && break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6808 cat /dev/null > conftest.in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6809 lt_ac_count=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6810 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6811 # Check for GNU sed and select it if it is found.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6812 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6813 lt_cv_path_SED=$lt_ac_sed
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6814 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6815 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6816 while true; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6817 cat conftest.in conftest.in >conftest.tmp
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6818 mv conftest.tmp conftest.in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6819 cp conftest.in conftest.nl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6820 echo >>conftest.nl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6821 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6822 cmp -s conftest.out conftest.nl || break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6823 # 10000 chars as input seems more than enough
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6824 test $lt_ac_count -gt 10 && break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6825 lt_ac_count=`expr $lt_ac_count + 1`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6826 if test $lt_ac_count -gt $lt_ac_max; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6827 lt_ac_max=$lt_ac_count
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6828 lt_cv_path_SED=$lt_ac_sed
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6829 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6830 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6831 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6832 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6833 SED=$lt_cv_path_SED
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6834 AC_MSG_RESULT([$SED])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6835 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6836
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6837 m4_include([m4/codeset.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6838 m4_include([m4/gettext.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6839 m4_include([m4/glibc21.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6840 m4_include([m4/iconv.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6841 m4_include([m4/intdiv0.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6842 m4_include([m4/inttypes-pri.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6843 m4_include([m4/inttypes.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6844 m4_include([m4/inttypes_h.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6845 m4_include([m4/lcmessage.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6846 m4_include([m4/lib-ld.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6847 m4_include([m4/lib-link.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6848 m4_include([m4/lib-prefix.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6849 m4_include([m4/nls.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6850 m4_include([m4/pkg.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6851 m4_include([m4/po.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6852 m4_include([m4/progtest.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6853 m4_include([m4/stdint_h.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6854 m4_include([m4/uintmax_t.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6855 m4_include([m4/ulonglong.m4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6856 m4_include([acinclude.m4])