annotate libtool.m4 @ 1846:cc910a778b5f trunk

[svn] - Make sure to redraw shaded playlistwin when toggling bitmap fonts.
author nhjm449
date Sat, 07 Oct 2006 15:43:56 -0700
parents cb178e5ad177
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3 ## Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 ##
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 ## This file is free software; the Free Software Foundation gives
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 ## unlimited permission to copy and/or distribute it, with or without
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8 ## modifications, as long as this notice is preserved.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10 # serial 47 AC_PROG_LIBTOOL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 # -----------------------------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 # If this macro is not defined by Autoconf, define it here.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 m4_ifdef([AC_PROVIDE_IFELSE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 [],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 [m4_define([AC_PROVIDE_IFELSE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 [m4_ifdef([AC_PROVIDE_$1],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 [$2], [$3])])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 # AC_PROG_LIBTOOL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24 # ---------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 AC_DEFUN([AC_PROG_LIBTOOL],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 AC_PROVIDE_IFELSE([AC_PROG_CXX],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 [AC_LIBTOOL_CXX],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32 ])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33 dnl And a similar setup for Fortran 77 support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 AC_PROVIDE_IFELSE([AC_PROG_F77],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 [AC_LIBTOOL_F77],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 ])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 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
41 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 [AC_LIBTOOL_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 [AC_LIBTOOL_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 [AC_LIBTOOL_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 [ifdef([AC_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50 ifdef([A][M_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52 ifdef([LT_AC_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 [define([LT_AC_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 ])])# AC_PROG_LIBTOOL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 # _AC_PROG_LIBTOOL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 # ----------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60 AC_DEFUN([_AC_PROG_LIBTOOL],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
66 # This can be used to rebuild libtool when needed
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69 # Always use our own libtool.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 AC_SUBST(LIBTOOL)dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73 # Prevent multiple expansion
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74 define([AC_PROG_LIBTOOL], [])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75 ])# _AC_PROG_LIBTOOL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78 # AC_LIBTOOL_SETUP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79 # ----------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
80 AC_DEFUN([AC_LIBTOOL_SETUP],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
81 [AC_PREREQ(2.50)dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
82 AC_REQUIRE([AC_ENABLE_SHARED])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
83 AC_REQUIRE([AC_ENABLE_STATIC])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
84 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
85 AC_REQUIRE([AC_CANONICAL_HOST])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
86 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
87 AC_REQUIRE([AC_PROG_CC])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
88 AC_REQUIRE([AC_PROG_LD])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
89 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
90 AC_REQUIRE([AC_PROG_NM])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
91
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
92 AC_REQUIRE([AC_PROG_LN_S])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
93 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
94 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
95 AC_REQUIRE([AC_OBJEXT])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
96 AC_REQUIRE([AC_EXEEXT])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
97 dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
98
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
99 AC_LIBTOOL_SYS_MAX_CMD_LEN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
100 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
101 AC_LIBTOOL_OBJDIR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
102
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
103 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
104 _LT_AC_PROG_ECHO_BACKSLASH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
105
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
106 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
107 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
108 # AIX sometimes has problems with the GCC collect2 program. For some
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
109 # reason, if we set the COLLECT_NAMES environment variable, the problems
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
110 # vanish in a puff of smoke.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
111 if test "X${COLLECT_NAMES+set}" != Xset; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
112 COLLECT_NAMES=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
113 export COLLECT_NAMES
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
114 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
115 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
116 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
117
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
118 # Sed substitution that helps us do robust quoting. It backslashifies
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
119 # metacharacters that are still active within double-quoted strings.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
120 Xsed='sed -e 1s/^X//'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
121 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
122
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
123 # Same as above, but do not quote variable references.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
124 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
125
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
126 # Sed substitution to delay expansion of an escaped shell variable in a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
127 # double_quote_subst'ed string.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
128 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
129
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
130 # Sed substitution to avoid accidental globbing in evaled expressions
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
131 no_glob_subst='s/\*/\\\*/g'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
132
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
133 # Constants:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
134 rm="rm -f"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
135
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
136 # Global variables:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
137 default_ofile=libtool
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
138 can_build_shared=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
139
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
140 # All known linkers require a `.a' archive for static linking (except MSVC,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
141 # which needs '.lib').
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
142 libext=a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
143 ltmain="$ac_aux_dir/ltmain.sh"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
144 ofile="$default_ofile"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
145 with_gnu_ld="$lt_cv_prog_gnu_ld"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
146
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
147 AC_CHECK_TOOL(AR, ar, false)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
148 AC_CHECK_TOOL(RANLIB, ranlib, :)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
149 AC_CHECK_TOOL(STRIP, strip, :)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
150
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
151 old_CC="$CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
152 old_CFLAGS="$CFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
153
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
154 # Set sane defaults for various variables
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
155 test -z "$AR" && AR=ar
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
156 test -z "$AR_FLAGS" && AR_FLAGS=cru
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
157 test -z "$AS" && AS=as
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
158 test -z "$CC" && CC=cc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
159 test -z "$LTCC" && LTCC=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
160 test -z "$DLLTOOL" && DLLTOOL=dlltool
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
161 test -z "$LD" && LD=ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
162 test -z "$LN_S" && LN_S="ln -s"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
163 test -z "$MAGIC_CMD" && MAGIC_CMD=file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
164 test -z "$NM" && NM=nm
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
165 test -z "$SED" && SED=sed
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
166 test -z "$OBJDUMP" && OBJDUMP=objdump
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
167 test -z "$RANLIB" && RANLIB=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
168 test -z "$STRIP" && STRIP=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
169 test -z "$ac_objext" && ac_objext=o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
170
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
171 # Determine commands to create old-style static archives.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
172 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
173 old_postinstall_cmds='chmod 644 $oldlib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
174 old_postuninstall_cmds=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
175
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
176 if test -n "$RANLIB"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
177 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
178 openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
179 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
180 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
181 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
182 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
183 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
184 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
185 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
186 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
187
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
188 _LT_CC_BASENAME([$compiler])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
189
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
190 # Only perform the check for file, if the check method requires it
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
191 case $deplibs_check_method in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
192 file_magic*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
193 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
194 AC_PATH_MAGIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
195 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
196 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
197 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
198
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
199 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
200 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
201 enable_win32_dll=yes, enable_win32_dll=no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
202
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
203 AC_ARG_ENABLE([libtool-lock],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
204 [AC_HELP_STRING([--disable-libtool-lock],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
205 [avoid locking (might break parallel builds)])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
206 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
207
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
208 AC_ARG_WITH([pic],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
209 [AC_HELP_STRING([--with-pic],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
210 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
211 [pic_mode="$withval"],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
212 [pic_mode=default])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
213 test -z "$pic_mode" && pic_mode=default
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
214
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
215 # Use C for the default configuration in the libtool script
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
216 tagname=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
217 AC_LIBTOOL_LANG_C_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
218 _LT_AC_TAGCONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
219 ])# AC_LIBTOOL_SETUP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
220
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
221
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
222 # _LT_AC_SYS_COMPILER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
223 # -------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
224 AC_DEFUN([_LT_AC_SYS_COMPILER],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
225 [AC_REQUIRE([AC_PROG_CC])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
226
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
227 # If no C compiler was specified, use CC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
228 LTCC=${LTCC-"$CC"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
229
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
230 # Allow CC to be a program name with arguments.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
231 compiler=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
232 ])# _LT_AC_SYS_COMPILER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
233
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
234
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
235 # _LT_CC_BASENAME(CC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
236 # -------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
237 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
238 AC_DEFUN([_LT_CC_BASENAME],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
239 [for cc_temp in $1""; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
240 case $cc_temp in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
241 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
242 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
243 \-*) ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
244 *) break;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
245 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
246 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
247 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
248 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
249
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
250
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
251 # _LT_COMPILER_BOILERPLATE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
252 # ------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
253 # Check for compiler boilerplate output or warnings with
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
254 # the simple compiler test code.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
255 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
256 [ac_outfile=conftest.$ac_objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
257 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
258 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
259 _lt_compiler_boilerplate=`cat conftest.err`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
260 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
261 ])# _LT_COMPILER_BOILERPLATE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
262
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
263
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
264 # _LT_LINKER_BOILERPLATE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
265 # ----------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
266 # Check for linker boilerplate output or warnings with
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
267 # the simple link test code.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
268 AC_DEFUN([_LT_LINKER_BOILERPLATE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
269 [ac_outfile=conftest.$ac_objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
270 printf "$lt_simple_link_test_code" >conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
271 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
272 _lt_linker_boilerplate=`cat conftest.err`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
273 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
274 ])# _LT_LINKER_BOILERPLATE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
275
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
276
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
277 # _LT_AC_SYS_LIBPATH_AIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
278 # ----------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
279 # Links a minimal program and checks the executable
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
280 # for the system default hardcoded library path. In most cases,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
281 # this is /usr/lib:/lib, but when the MPI compilers are used
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
282 # the location of the communication and MPI libs are included too.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
283 # If we don't find anything, use the default library path according
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
284 # to the aix ld manual.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
285 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
286 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
287 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
288 }'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
289 # Check for a 64-bit object if we didn't find anything.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
290 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
291 }'`; fi],[])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
292 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
293 ])# _LT_AC_SYS_LIBPATH_AIX
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 # _LT_AC_SHELL_INIT(ARG)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
297 # ----------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
298 AC_DEFUN([_LT_AC_SHELL_INIT],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
299 [ifdef([AC_DIVERSION_NOTICE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
300 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
301 [AC_DIVERT_PUSH(NOTICE)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
302 $1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
303 AC_DIVERT_POP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
304 ])# _LT_AC_SHELL_INIT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
305
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
306
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
307 # _LT_AC_PROG_ECHO_BACKSLASH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
308 # --------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
309 # Add some code to the start of the generated configure script which
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
310 # will find an echo command which doesn't interpret backslashes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
311 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
312 [_LT_AC_SHELL_INIT([
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
313 # Check that we are running under the correct shell.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
314 SHELL=${CONFIG_SHELL-/bin/sh}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
315
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
316 case X$ECHO in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
317 X*--fallback-echo)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
318 # Remove one level of quotation (which was required for Make).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
319 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
320 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
321 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
322
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
323 echo=${ECHO-echo}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
324 if test "X[$]1" = X--no-reexec; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
325 # Discard the --no-reexec flag, and continue.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
326 shift
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
327 elif test "X[$]1" = X--fallback-echo; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
328 # Avoid inline document here, it may be left over
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
329 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
330 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
331 # Yippee, $echo works!
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
332 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
333 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
334 # Restart under the correct shell.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
335 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
336 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
337
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
338 if test "X[$]1" = X--fallback-echo; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
339 # used as fallback echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
340 shift
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
341 cat <<EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
342 [$]*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
343 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
344 exit 0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
345 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
346
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
347 # The HP-UX ksh and POSIX shell print the target directory to stdout
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
348 # if CDPATH is set.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
349 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
350
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
351 if test -z "$ECHO"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
352 if test "X${echo_test_string+set}" != Xset; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
353 # 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
354 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
355 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
356 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
357 echo_test_string=`eval $cmd` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
358 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
359 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
360 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
361 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
362 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
363 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
364
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
365 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
366 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
367 test "X$echo_testing_string" = "X$echo_test_string"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
368 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
369 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
370 # The Solaris, AIX, and Digital Unix default echo programs unquote
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
371 # backslashes. This makes it impossible to quote backslashes using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
372 # echo "$something" | sed 's/\\/\\\\/g'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
373 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
374 # So, first we look for a working echo in the user's PATH.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
375
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
376 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
377 for dir in $PATH /usr/ucb; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
378 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
379 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
380 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
381 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
382 test "X$echo_testing_string" = "X$echo_test_string"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
383 echo="$dir/echo"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
384 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
385 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
386 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
387 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
388
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
389 if test "X$echo" = Xecho; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
390 # We didn't find a better echo, so look for alternatives.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
391 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
392 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
393 test "X$echo_testing_string" = "X$echo_test_string"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
394 # This shell has a builtin print -r that does the trick.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
395 echo='print -r'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
396 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
397 test "X$CONFIG_SHELL" != X/bin/ksh; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
398 # If we have ksh, try running configure again with it.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
399 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
400 export ORIGINAL_CONFIG_SHELL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
401 CONFIG_SHELL=/bin/ksh
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
402 export CONFIG_SHELL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
403 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
404 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
405 # Try using printf.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
406 echo='printf %s\n'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
407 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
408 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
409 test "X$echo_testing_string" = "X$echo_test_string"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
410 # Cool, printf works
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
411 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
412 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
413 test "X$echo_testing_string" = 'X\t' &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
414 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
415 test "X$echo_testing_string" = "X$echo_test_string"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
416 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
417 export CONFIG_SHELL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
418 SHELL="$CONFIG_SHELL"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
419 export SHELL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
420 echo="$CONFIG_SHELL [$]0 --fallback-echo"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
421 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
422 test "X$echo_testing_string" = 'X\t' &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
423 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
424 test "X$echo_testing_string" = "X$echo_test_string"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
425 echo="$CONFIG_SHELL [$]0 --fallback-echo"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
426 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
427 # maybe with a smaller string...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
428 prev=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
429
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
430 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
431 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
432 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
433 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
434 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
435 prev="$cmd"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
436 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
437
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
438 if test "$prev" != 'sed 50q "[$]0"'; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
439 echo_test_string=`eval $prev`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
440 export echo_test_string
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
441 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
442 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
443 # Oops. We lost completely, so just stick with echo.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
444 echo=echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
445 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
446 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
447 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
448 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
449 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
450 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
451
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
452 # Copy echo and quote the copy suitably for passing to libtool from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
453 # the Makefile, instead of quoting the original, which is used later.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
454 ECHO=$echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
455 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
456 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
457 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
458
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
459 AC_SUBST(ECHO)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
460 ])])# _LT_AC_PROG_ECHO_BACKSLASH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
461
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
462
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
463 # _LT_AC_LOCK
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
464 # -----------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
465 AC_DEFUN([_LT_AC_LOCK],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
466 [AC_ARG_ENABLE([libtool-lock],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
467 [AC_HELP_STRING([--disable-libtool-lock],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
468 [avoid locking (might break parallel builds)])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
469 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
470
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
471 # Some flags need to be propagated to the compiler or linker for good
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
472 # libtool support.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
473 case $host in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
474 ia64-*-hpux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
475 # Find out which ABI we are using.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
476 echo 'int i;' > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
477 if AC_TRY_EVAL(ac_compile); then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
478 case `/usr/bin/file conftest.$ac_objext` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
479 *ELF-32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
480 HPUX_IA64_MODE="32"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
481 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
482 *ELF-64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
483 HPUX_IA64_MODE="64"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
484 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
485 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
486 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
487 rm -rf conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
488 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
489 *-*-irix6*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
490 # Find out which ABI we are using.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
491 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
492 if AC_TRY_EVAL(ac_compile); then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
493 if test "$lt_cv_prog_gnu_ld" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
494 case `/usr/bin/file conftest.$ac_objext` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
495 *32-bit*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
496 LD="${LD-ld} -melf32bsmip"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
497 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
498 *N32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
499 LD="${LD-ld} -melf32bmipn32"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
500 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
501 *64-bit*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
502 LD="${LD-ld} -melf64bmip"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
503 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
504 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
505 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
506 case `/usr/bin/file conftest.$ac_objext` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
507 *32-bit*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
508 LD="${LD-ld} -32"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
509 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
510 *N32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
511 LD="${LD-ld} -n32"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
512 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
513 *64-bit*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
514 LD="${LD-ld} -64"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
515 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
516 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
517 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
518 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
519 rm -rf conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
520 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
521
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
522 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
523 # Find out which ABI we are using.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
524 echo 'int i;' > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
525 if AC_TRY_EVAL(ac_compile); then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
526 case `/usr/bin/file conftest.o` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
527 *32-bit*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
528 case $host in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
529 x86_64-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
530 LD="${LD-ld} -m elf_i386"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
531 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
532 ppc64-*linux*|powerpc64-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
533 LD="${LD-ld} -m elf32ppclinux"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
534 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
535 s390x-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
536 LD="${LD-ld} -m elf_s390"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
537 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
538 sparc64-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
539 LD="${LD-ld} -m elf32_sparc"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
540 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
541 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
542 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
543 *64-bit*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
544 case $host in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
545 x86_64-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
546 LD="${LD-ld} -m elf_x86_64"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
547 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
548 ppc*-*linux*|powerpc*-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
549 LD="${LD-ld} -m elf64ppc"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
550 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
551 s390*-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
552 LD="${LD-ld} -m elf64_s390"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
553 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
554 sparc*-*linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
555 LD="${LD-ld} -m elf64_sparc"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
556 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
557 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
558 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
559 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
560 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
561 rm -rf conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
562 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
563
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
564 *-*-sco3.2v5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
565 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
566 SAVE_CFLAGS="$CFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
567 CFLAGS="$CFLAGS -belf"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
568 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
569 [AC_LANG_PUSH(C)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
570 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
571 AC_LANG_POP])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
572 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
573 # 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
574 CFLAGS="$SAVE_CFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
575 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
576 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
577 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
578 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
579 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
580 AC_CHECK_TOOL(AS, as, false)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
581 AC_CHECK_TOOL(OBJDUMP, objdump, false)
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 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
585
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
586 need_locks="$enable_libtool_lock"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
587
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
588 ])# _LT_AC_LOCK
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
589
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
590
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
591 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
592 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
593 # ----------------------------------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
594 # Check whether the given compiler option works
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
595 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
596 [AC_REQUIRE([LT_AC_PROG_SED])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
597 AC_CACHE_CHECK([$1], [$2],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
598 [$2=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
599 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
600 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
601 lt_compiler_flag="$3"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
602 # Insert the option either (1) after the last *FLAGS variable, or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
603 # (2) before a word containing "conftest.", or (3) at the end.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
604 # Note that $ac_compile itself does not contain backslashes and begins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
605 # with a dollar sign (not a hyphen), so the echo should work correctly.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
606 # The option is referenced via a variable to avoid confusing sed.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
607 lt_compile=`echo "$ac_compile" | $SED \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
609 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
610 -e 's:$: $lt_compiler_flag:'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
611 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
612 (eval "$lt_compile" 2>conftest.err)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
613 ac_status=$?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
614 cat conftest.err >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
615 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
616 if (exit $ac_status) && test -s "$ac_outfile"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
617 # The compiler can only warn and ignore the option if not recognized
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
618 # So say no if there are warnings other than the usual output.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
619 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
621 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
622 $2=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
623 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
624 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
625 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
626 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
627
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
628 if test x"[$]$2" = xyes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
629 ifelse([$5], , :, [$5])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
630 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
631 ifelse([$6], , :, [$6])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
632 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
633 ])# AC_LIBTOOL_COMPILER_OPTION
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
634
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
635
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
636 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
637 # [ACTION-SUCCESS], [ACTION-FAILURE])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
638 # ------------------------------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
639 # Check whether the given compiler option works
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
640 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
641 [AC_CACHE_CHECK([$1], [$2],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
642 [$2=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
643 save_LDFLAGS="$LDFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
644 LDFLAGS="$LDFLAGS $3"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
645 printf "$lt_simple_link_test_code" > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
647 # The linker can only warn and ignore the option if not recognized
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
648 # So say no if there are warnings
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
649 if test -s conftest.err; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
650 # Append any errors to the config.log.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
651 cat conftest.err 1>&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
652 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
654 if diff conftest.exp conftest.er2 >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
655 $2=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
656 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
657 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
658 $2=yes
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 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
662 LDFLAGS="$save_LDFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
663 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
664
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
665 if test x"[$]$2" = xyes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
666 ifelse([$4], , :, [$4])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
667 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
668 ifelse([$5], , :, [$5])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
669 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
670 ])# AC_LIBTOOL_LINKER_OPTION
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
671
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
672
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
673 # AC_LIBTOOL_SYS_MAX_CMD_LEN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
674 # --------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
675 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
676 [# find the maximum length of command line arguments
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
677 AC_MSG_CHECKING([the maximum length of command line arguments])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
678 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
679 i=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
680 teststring="ABCD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
681
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
682 case $build_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
683 msdosdjgpp*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
684 # On DJGPP, this test can blow up pretty badly due to problems in libc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
685 # (any single argument exceeding 2000 bytes causes a buffer overrun
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
686 # during glob expansion). Even if it were fixed, the result of this
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
687 # check would be larger than it should be.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
688 lt_cv_sys_max_cmd_len=12288; # 12K is about right
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
689 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
690
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
691 gnu*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
692 # Under GNU Hurd, this test is not required because there is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
693 # no limit to the length of command line arguments.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
694 # Libtool will interpret -1 as no limit whatsoever
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
695 lt_cv_sys_max_cmd_len=-1;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
696 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
697
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
698 cygwin* | mingw*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
699 # On Win9x/ME, this test blows up -- it succeeds, but takes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
700 # about 5 minutes as the teststring grows exponentially.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
701 # Worse, since 9x/ME are not pre-emptively multitasking,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
702 # you end up with a "frozen" computer, even though with patience
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
703 # the test eventually succeeds (with a max line length of 256k).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
704 # Instead, let's just punt: use the minimum linelength reported by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
705 # all of the supported platforms: 8192 (on NT/2K/XP).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
706 lt_cv_sys_max_cmd_len=8192;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
707 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
708
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
709 amigaos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
710 # On AmigaOS with pdksh, this test takes hours, literally.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
711 # So we just punt and use a minimum line length of 8192.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
712 lt_cv_sys_max_cmd_len=8192;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
713 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
714
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
715 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
716 # This has been around since 386BSD, at least. Likely further.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
717 if test -x /sbin/sysctl; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
718 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
719 elif test -x /usr/sbin/sysctl; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
720 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
721 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
722 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
723 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
724 # And add a safety zone
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
727 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
728 osf*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
729 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
730 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
731 # nice to cause kernel panics so lets avoid the loop below.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
732 # First set a reasonable default.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
733 lt_cv_sys_max_cmd_len=16384
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
734 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
735 if test -x /sbin/sysconfig; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
736 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
737 *1*) lt_cv_sys_max_cmd_len=-1 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
738 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
739 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
740 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
741 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
742 # If test is not a shell built-in, we'll probably end up computing a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
743 # maximum length that is only half of the actual maximum length, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
744 # we can't tell.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
745 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
746 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
747 = "XX$teststring") >/dev/null 2>&1 &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
748 new_result=`expr "X$teststring" : ".*" 2>&1` &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
749 lt_cv_sys_max_cmd_len=$new_result &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
750 test $i != 17 # 1/2 MB should be enough
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
751 do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
752 i=`expr $i + 1`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
753 teststring=$teststring$teststring
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
754 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
755 teststring=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
756 # Add a significant safety factor because C++ compilers can tack on massive
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
757 # amounts of additional arguments before passing them to the linker.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
758 # It appears as though 1/2 is a usable value.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
760 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
761 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
762 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
763 if test -n $lt_cv_sys_max_cmd_len ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
764 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
765 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
766 AC_MSG_RESULT(none)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
767 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
768 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
769
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
770
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
771 # _LT_AC_CHECK_DLFCN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
772 # --------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
773 AC_DEFUN([_LT_AC_CHECK_DLFCN],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
774 [AC_CHECK_HEADERS(dlfcn.h)dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
775 ])# _LT_AC_CHECK_DLFCN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
776
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
777
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
778 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
779 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
780 # ------------------------------------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
781 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
782 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
783 if test "$cross_compiling" = yes; then :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
784 [$4]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
785 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
786 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
787 lt_status=$lt_dlunknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
788 cat > conftest.$ac_ext <<EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
789 [#line __oline__ "configure"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
790 #include "confdefs.h"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
791
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
792 #if HAVE_DLFCN_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
793 #include <dlfcn.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
794 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
795
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
796 #include <stdio.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
797
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
798 #ifdef RTLD_GLOBAL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
799 # define LT_DLGLOBAL RTLD_GLOBAL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
800 #else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
801 # ifdef DL_GLOBAL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
802 # define LT_DLGLOBAL DL_GLOBAL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
803 # else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
804 # define LT_DLGLOBAL 0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
805 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
806 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
807
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
808 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
809 find out it does not work in some platform. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
810 #ifndef LT_DLLAZY_OR_NOW
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
811 # ifdef RTLD_LAZY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
812 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
813 # else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
814 # ifdef DL_LAZY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
815 # define LT_DLLAZY_OR_NOW DL_LAZY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
816 # else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
817 # ifdef RTLD_NOW
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
818 # define LT_DLLAZY_OR_NOW RTLD_NOW
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
819 # else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
820 # ifdef DL_NOW
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
821 # define LT_DLLAZY_OR_NOW DL_NOW
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
822 # else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
823 # define LT_DLLAZY_OR_NOW 0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
824 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
825 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
826 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
827 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
828 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
829
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
830 #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
831 extern "C" void exit (int);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
832 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
833
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
834 void fnord() { int i=42;}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
835 int main ()
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
836 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
837 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
838 int status = $lt_dlunknown;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
839
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
840 if (self)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
841 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
842 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
843 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
844 /* dlclose (self); */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
845 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
846
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
847 exit (status);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
848 }]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
849 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
850 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
851 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
852 lt_status=$?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
853 case x$lt_status in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
854 x$lt_dlno_uscore) $1 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
855 x$lt_dlneed_uscore) $2 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
856 x$lt_unknown|x*) $3 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
857 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
858 else :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
859 # compilation failed
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
860 $3
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
861 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
862 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
863 rm -fr conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
864 ])# _LT_AC_TRY_DLOPEN_SELF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
865
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
866
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
867 # AC_LIBTOOL_DLOPEN_SELF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
868 # -------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
869 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
870 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
871 if test "x$enable_dlopen" != xyes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
872 enable_dlopen=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
873 enable_dlopen_self=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
874 enable_dlopen_self_static=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
875 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
876 lt_cv_dlopen=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
877 lt_cv_dlopen_libs=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
878
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
879 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
880 beos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
881 lt_cv_dlopen="load_add_on"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
882 lt_cv_dlopen_libs=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
883 lt_cv_dlopen_self=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
884 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
885
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
886 mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
887 lt_cv_dlopen="LoadLibrary"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
888 lt_cv_dlopen_libs=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
889 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
890
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
891 cygwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
892 lt_cv_dlopen="dlopen"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
893 lt_cv_dlopen_libs=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
894 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
895
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
896 darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
897 # if libdl is installed we need to link against it
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
898 AC_CHECK_LIB([dl], [dlopen],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
899 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
900 lt_cv_dlopen="dyld"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
901 lt_cv_dlopen_libs=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
902 lt_cv_dlopen_self=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
903 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
904 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
905
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
906 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
907 AC_CHECK_FUNC([shl_load],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
908 [lt_cv_dlopen="shl_load"],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
909 [AC_CHECK_LIB([dld], [shl_load],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
910 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
911 [AC_CHECK_FUNC([dlopen],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
912 [lt_cv_dlopen="dlopen"],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
913 [AC_CHECK_LIB([dl], [dlopen],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
914 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
915 [AC_CHECK_LIB([svld], [dlopen],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
916 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
917 [AC_CHECK_LIB([dld], [dld_link],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
918 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
919 ])
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 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
923 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
924 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
925 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
926
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
927 if test "x$lt_cv_dlopen" != xno; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
928 enable_dlopen=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
929 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
930 enable_dlopen=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
931 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
932
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
933 case $lt_cv_dlopen in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
934 dlopen)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
935 save_CPPFLAGS="$CPPFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
936 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
937
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
938 save_LDFLAGS="$LDFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
939 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
940
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
941 save_LIBS="$LIBS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
942 LIBS="$lt_cv_dlopen_libs $LIBS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
943
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
944 AC_CACHE_CHECK([whether a program can dlopen itself],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
945 lt_cv_dlopen_self, [dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
946 _LT_AC_TRY_DLOPEN_SELF(
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
947 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
948 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
949 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
950
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
951 if test "x$lt_cv_dlopen_self" = xyes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
952 LDFLAGS="$LDFLAGS $link_static_flag"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
953 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
954 lt_cv_dlopen_self_static, [dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
955 _LT_AC_TRY_DLOPEN_SELF(
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
956 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
957 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
958 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
959 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
960
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
961 CPPFLAGS="$save_CPPFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
962 LDFLAGS="$save_LDFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
963 LIBS="$save_LIBS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
964 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
965 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
966
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
967 case $lt_cv_dlopen_self in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
968 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
969 *) enable_dlopen_self=unknown ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
970 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
971
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
972 case $lt_cv_dlopen_self_static in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
973 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
974 *) enable_dlopen_self_static=unknown ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
975 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
976 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
977 ])# AC_LIBTOOL_DLOPEN_SELF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
978
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
979
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
980 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
981 # ---------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
982 # Check to see if options -c and -o are simultaneously supported by compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
983 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
984 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
985 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
986 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
987 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
988 $rm -r conftest 2>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
989 mkdir conftest
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
990 cd conftest
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
991 mkdir out
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
992 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
993
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
994 lt_compiler_flag="-o out/conftest2.$ac_objext"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
995 # Insert the option either (1) after the last *FLAGS variable, or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
996 # (2) before a word containing "conftest.", or (3) at the end.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
997 # Note that $ac_compile itself does not contain backslashes and begins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
998 # with a dollar sign (not a hyphen), so the echo should work correctly.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
999 lt_compile=`echo "$ac_compile" | $SED \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1001 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1002 -e 's:$: $lt_compiler_flag:'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1003 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1004 (eval "$lt_compile" 2>out/conftest.err)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1005 ac_status=$?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1006 cat out/conftest.err >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1007 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1009 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1010 # The compiler can only warn and ignore the option if not recognized
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1011 # So say no if there are warnings
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1012 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1013 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1014 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1015 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1016 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1017 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1018 chmod u+w . 2>&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1019 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1020 # SGI C++ compiler will create directory out/ii_files/ for
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1021 # template instantiation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1022 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1023 $rm out/* && rmdir out
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1024 cd ..
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1025 rmdir conftest
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1026 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1027 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1028 ])# AC_LIBTOOL_PROG_CC_C_O
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1029
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1030
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1031 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1032 # -----------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1033 # Check to see if we can do hard links to lock some files if needed
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1034 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1035 [AC_REQUIRE([_LT_AC_LOCK])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1036
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1037 hard_links="nottested"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1038 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
1039 # do not overwrite the value of need_locks provided by the user
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1040 AC_MSG_CHECKING([if we can lock with hard links])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1041 hard_links=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1042 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1043 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1044 touch conftest.a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1045 ln conftest.a conftest.b 2>&5 || hard_links=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1047 AC_MSG_RESULT([$hard_links])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1048 if test "$hard_links" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1049 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1050 need_locks=warn
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1051 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1052 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1053 need_locks=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1054 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1055 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1056
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1057
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1058 # AC_LIBTOOL_OBJDIR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1059 # -----------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1060 AC_DEFUN([AC_LIBTOOL_OBJDIR],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1061 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1062 [rm -f .libs 2>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1063 mkdir .libs 2>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1064 if test -d .libs; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1065 lt_cv_objdir=.libs
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1066 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1067 # MS-DOS does not allow filenames that begin with a dot.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1068 lt_cv_objdir=_libs
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1069 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1070 rmdir .libs 2>/dev/null])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1071 objdir=$lt_cv_objdir
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1072 ])# AC_LIBTOOL_OBJDIR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1073
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1074
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1075 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1076 # ----------------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1077 # Check hardcoding attributes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1078 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1079 [AC_MSG_CHECKING([how to hardcode library paths into programs])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1080 _LT_AC_TAGVAR(hardcode_action, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1081 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1082 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1083 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1084
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1085 # We can hardcode non-existant directories.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1086 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1087 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1088 # have to relink, otherwise we might link with an installed library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1089 # when we should be linking with a yet-to-be-installed one
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1090 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1091 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1092 # Linking always hardcodes the temporary library directory.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1093 _LT_AC_TAGVAR(hardcode_action, $1)=relink
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1094 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1095 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1096 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1097 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1098 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1099 # We cannot hardcode anything, or else we can only hardcode existing
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1100 # directories.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1101 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1102 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1103 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1104
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1105 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1106 # Fast installation is not supported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1107 enable_fast_install=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1108 elif test "$shlibpath_overrides_runpath" = yes ||
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1109 test "$enable_shared" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1110 # Fast installation is not necessary
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1111 enable_fast_install=needless
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1112 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1113 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1114
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1115
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1116 # AC_LIBTOOL_SYS_LIB_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1117 # ------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1118 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1119 [striplib=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1120 old_striplib=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1121 AC_MSG_CHECKING([whether stripping libraries is possible])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1122 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1123 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1124 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1125 AC_MSG_RESULT([yes])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1126 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1127 # FIXME - insert some real tests, host_os isn't really good enough
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1128 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1129 darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1130 if test -n "$STRIP" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1131 striplib="$STRIP -x"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1132 AC_MSG_RESULT([yes])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1133 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1134 AC_MSG_RESULT([no])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1135 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1136 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1137 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1138 AC_MSG_RESULT([no])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1139 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1140 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1141 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1142 ])# AC_LIBTOOL_SYS_LIB_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1143
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1144
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1145 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1146 # -----------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1147 # PORTME Fill in your ld.so characteristics
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1148 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1149 [AC_MSG_CHECKING([dynamic linker characteristics])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1150 library_names_spec=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1151 libname_spec='lib$name'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1152 soname_spec=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1153 shrext_cmds=".so"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1154 postinstall_cmds=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1155 postuninstall_cmds=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1156 finish_cmds=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1157 finish_eval=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1158 shlibpath_var=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1159 shlibpath_overrides_runpath=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1160 version_type=none
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1161 dynamic_linker="$host_os ld.so"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1162 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1163 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1164 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
1165 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1166 # if the path contains ";" then we assume it to be the separator
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1167 # otherwise default to the standard path separator (i.e. ":") - it is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1168 # assumed that no part of a normal pathname contains ";" but that should
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1169 # okay in the real world where ";" in dirpaths is itself problematic.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1171 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1172 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
1173 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1174 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1175 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1176 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1177 need_lib_prefix=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1178 hardcode_into_libs=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1179
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1180 # when you set need_version to no, make sure it does not cause -set_version
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1181 # flags to be left without arguments
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1182 need_version=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1183
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1184 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1185 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1186 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1187 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1188 shlibpath_var=LIBPATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1189
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1190 # AIX 3 has no versioning support, so we append a major version to the name.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1191 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1192 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1193
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1194 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1195 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1196 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1197 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1198 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1199 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1200 # AIX 5 supports IA64
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1201 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
1202 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1203 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1204 # With GCC up to 2.95.x, collect2 would create an import file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1205 # for dependence libraries. The import file would start with
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1206 # the line `#! .'. This would cause the generated library to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1207 # depend on `.', always an invalid library. This was fixed in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1208 # development snapshots of GCC prior to 3.0.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1209 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1210 aix4 | aix4.[[01]] | aix4.[[01]].*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1211 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1212 echo ' yes '
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1213 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1214 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1215 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1216 can_build_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1217 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1218 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1219 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1220 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1221 # soname into executable. Probably we can add versioning support to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1222 # collect2, so additional links can be useful in future.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1223 if test "$aix_use_runtimelinking" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1224 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1225 # instead of lib<name>.a to let people know that these are not
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1226 # typical AIX shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1227 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
1228 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1229 # We preserve .a as extension for shared libraries through AIX4.2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1230 # and later when we are not doing run time linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1231 library_names_spec='${libname}${release}.a $libname.a'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1232 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1233 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1234 shlibpath_var=LIBPATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1235 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1236 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1237
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1238 amigaos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1239 library_names_spec='$libname.ixlibrary $libname.a'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1240 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1241 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
1242 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1243
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1244 beos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1245 library_names_spec='${libname}${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1246 dynamic_linker="$host_os ld.so"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1247 shlibpath_var=LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1248 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1249
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1250 bsdi[[45]]*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1251 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1252 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1253 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
1254 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1255 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1256 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1257 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
1258 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1259 # the default ld.so.conf also contains /usr/contrib/lib and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1260 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1261 # libtool to hard-code these into programs
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1262 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1263
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1264 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1265 version_type=windows
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1266 shrext_cmds=".dll"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1267 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1268 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1269
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1270 case $GCC,$host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1271 yes,cygwin* | yes,mingw* | yes,pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1272 library_names_spec='$libname.dll.a'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1273 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1274 postinstall_cmds='base_file=`basename \${file}`~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1275 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1276 dldir=$destdir/`dirname \$dlpath`~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1277 test -d \$dldir || mkdir -p \$dldir~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1278 $install_prog $dir/$dlname \$dldir/$dlname~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1279 chmod a+x \$dldir/$dlname'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1280 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1281 dlpath=$dir/\$dldll~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1282 $rm \$dlpath'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1283 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1284
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1285 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1286 cygwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1287 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1288 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
1289 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1290 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1291 mingw*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1292 # MinGW DLLs use traditional 'lib' prefix
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1293 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1294 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
1295 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1296 # It is most probably a Windows format PATH printed by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1297 # mingw gcc, but we are running on Cygwin. Gcc prints its search
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1298 # path with ; separators, and with drive letters. We can handle the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1299 # drive letters (cygwin fileutils understands them), so leave them,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1300 # especially as we might pass files found there to a mingw objdump,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1301 # which wouldn't understand a cygwinified path. Ahh.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1303 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1304 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
1305 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1306 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1307 pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1308 # pw32 DLLs use 'pw' prefix rather than 'lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1309 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
1310 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1311 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1312 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1313
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1314 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1315 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1316 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1317 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1318 dynamic_linker='Win32 ld.exe'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1319 # FIXME: first we should search . and the directory the executable is in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1320 shlibpath_var=PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1321 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1322
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1323 darwin* | rhapsody*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1324 dynamic_linker="$host_os dyld"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1325 version_type=darwin
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1326 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1327 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1328 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
1329 soname_spec='${libname}${release}${major}$shared_ext'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1330 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1331 shlibpath_var=DYLD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1332 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1333 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1334 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1335 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
1336 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1337 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1338 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1339 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1340 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1341
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1342 dgux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1343 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1344 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1345 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1346 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
1347 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1348 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1349 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1350
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1351 freebsd1*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1352 dynamic_linker=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1353 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1354
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1355 kfreebsd*-gnu)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1356 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1357 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1358 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1359 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
1360 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1361 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1362 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1363 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1364 dynamic_linker='GNU ld.so'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1365 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1366
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1367 freebsd* | dragonfly*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1368 # DragonFly does not have aout. When/if they implement a new
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1369 # versioning mechanism, adjust this.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1370 if test -x /usr/bin/objformat; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1371 objformat=`/usr/bin/objformat`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1372 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1373 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1374 freebsd[[123]]*) objformat=aout ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1375 *) objformat=elf ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1376 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1377 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1378 version_type=freebsd-$objformat
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1379 case $version_type in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1380 freebsd-elf*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1382 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1383 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1384 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1385 freebsd-*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1387 need_version=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1388 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1389 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1390 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1391 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1392 freebsd2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1393 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1394 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1395 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1396 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1397 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1398 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1399 *) # from 3.2 on
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1400 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1401 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1402 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1403 esac
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 gnu*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1407 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1408 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1409 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1410 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
1411 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1412 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1413 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1414 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1415
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1416 hpux9* | hpux10* | hpux11*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1417 # Give a soname corresponding to the major version so that dld.sl refuses to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1418 # link against other versions.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1419 version_type=sunos
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1420 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1421 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1422 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1423 ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1424 shrext_cmds='.so'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1425 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1426 dynamic_linker="$host_os dld.so"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1427 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1428 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1429 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
1430 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1431 if test "X$HPUX_IA64_MODE" = X32; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1432 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1433 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1434 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1435 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1437 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1438 hppa*64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1439 shrext_cmds='.sl'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1440 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1441 dynamic_linker="$host_os dld.sl"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1442 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1443 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1444 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
1445 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1446 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1447 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1448 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1449 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1450 shrext_cmds='.sl'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1451 dynamic_linker="$host_os dld.sl"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1452 shlibpath_var=SHLIB_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1453 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1454 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
1455 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1456 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1457 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1458 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1459 postinstall_cmds='chmod 555 $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1460 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1461
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1462 irix5* | irix6* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1463 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1464 nonstopux*) version_type=nonstopux ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1465 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1466 if test "$lt_cv_prog_gnu_ld" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1467 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1468 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1469 version_type=irix
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1470 fi ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1471 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1472 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1473 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1474 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1475 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
1476 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1477 irix5* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1478 libsuff= shlibsuff=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1479 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1480 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1481 case $LD in # libtool.m4 will add one of these switches to LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1482 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1483 libsuff= shlibsuff= libmagic=32-bit;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1484 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1485 libsuff=32 shlibsuff=N32 libmagic=N32;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1486 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1487 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1488 *) libsuff= shlibsuff= libmagic=never-match;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1489 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1490 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1491 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1492 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1493 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1494 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1495 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1496 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1497 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1498
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1499 # No shared lib support for Linux oldld, aout, or coff.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1500 linux*oldld* | linux*aout* | linux*coff*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1501 dynamic_linker=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1502 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1503
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1504 # This must be Linux ELF.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1505 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1506 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1507 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1508 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1509 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
1510 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1512 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1513 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1514 # This implies no fast_install, which is unacceptable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1515 # Some rework will be needed to allow for fast_install
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1516 # before this can be enabled.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1517 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1518
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1519 # Append ld.so.conf contents to the search path
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1520 if test -f /etc/ld.so.conf; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1521 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1522 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1523 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1524
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1525 # We used to test for /lib/ld.so.1 and disable shared libraries on
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1526 # powerpc, because MkLinux only supported shared libraries with the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1527 # GNU dynamic linker. Since this was broken with cross compilers,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1528 # most powerpc-linux boxes support dynamic linking these days and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1529 # people can always --disable-shared, the test was removed, and we
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1530 # assume the GNU/Linux dynamic linker is in use.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1531 dynamic_linker='GNU/Linux ld.so'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1532 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1533
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1534 knetbsd*-gnu)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1535 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1536 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1537 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1538 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
1539 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1540 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1541 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1542 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1543 dynamic_linker='GNU ld.so'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1544 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1545
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1546 netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1547 version_type=sunos
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1548 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1549 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1550 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1553 dynamic_linker='NetBSD (a.out) ld.so'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1554 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1555 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
1556 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1557 dynamic_linker='NetBSD ld.elf_so'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1558 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1559 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1560 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1561 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1562 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1563
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1564 newsos6)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1565 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1566 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
1567 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1568 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1569 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1570
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1571 nto-qnx*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1572 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1573 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1574 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1575 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
1576 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1577 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1578 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1579 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1580
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1581 openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1582 version_type=sunos
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1583 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1584 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1585 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1586 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1587 *) need_version=no ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1588 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1591 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1592 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
1593 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1594 openbsd2.[[89]] | openbsd2.[[89]].*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1595 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1596 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1597 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1598 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1599 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1600 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1601 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1602 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1603 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1604 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1605
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1606 os2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1607 libname_spec='$name'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1608 shrext_cmds=".dll"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1609 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1610 library_names_spec='$libname${shared_ext} $libname.a'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1611 dynamic_linker='OS/2 ld.exe'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1612 shlibpath_var=LIBPATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1613 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1614
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1615 osf3* | osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1616 version_type=osf
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1617 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1618 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1619 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1620 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
1621 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1622 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
1623 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1624 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1625
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1626 sco3.2v5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1627 version_type=osf
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1628 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1629 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
1630 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1631 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1632
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1633 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1634 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1635 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1636 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1637 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
1638 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1639 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1640 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1641 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1642 # ldd complains unless libraries are executable
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1643 postinstall_cmds='chmod +x $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1644 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1645
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1646 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1647 version_type=sunos
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1649 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1650 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1651 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1652 if test "$with_gnu_ld" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1653 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1654 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1655 need_version=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1656 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1657
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1658 sysv4 | sysv4.2uw2* | sysv4.3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1659 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1660 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
1661 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1662 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1663 case $host_vendor in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1664 sni)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1665 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1666 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1667 export_dynamic_flag_spec='${wl}-Blargedynsym'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1668 runpath_var=LD_RUN_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1669 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1670 siemens)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1671 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1672 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1673 motorola)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1674 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1675 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1676 shlibpath_overrides_runpath=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1677 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1678 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1679 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1680 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1681
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1682 sysv4*MP*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1683 if test -d /usr/nec ;then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1684 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1685 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1686 soname_spec='$libname${shared_ext}.$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1687 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1688 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1689 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1690
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1691 sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1692 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1693 need_lib_prefix=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1694 need_version=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1695 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
1696 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1697 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1698 shlibpath_overrides_runpath=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1699 hardcode_into_libs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1700 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1701 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1702 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1703
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1704 uts4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1705 version_type=linux
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1706 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
1707 soname_spec='${libname}${release}${shared_ext}$major'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1708 shlibpath_var=LD_LIBRARY_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1709 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1710
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1711 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1712 dynamic_linker=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1713 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1714 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1715 AC_MSG_RESULT([$dynamic_linker])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1716 test "$dynamic_linker" = no && can_build_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1717 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1718
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1719
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1720 # _LT_AC_TAGCONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1721 # ----------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1722 AC_DEFUN([_LT_AC_TAGCONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1723 [AC_ARG_WITH([tags],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1724 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1725 [include additional configurations @<:@automatic@:>@])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1726 [tagnames="$withval"])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1727
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1728 if test -f "$ltmain" && test -n "$tagnames"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1729 if test ! -f "${ofile}"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1730 AC_MSG_WARN([output file `$ofile' does not exist])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1731 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1732
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1733 if test -z "$LTCC"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1734 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1735 if test -z "$LTCC"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1736 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1737 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1738 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1739 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1740 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1741
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1742 # Extract list of available tagged configurations in $ofile.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1743 # Note that this assumes the entire list is on one line.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1744 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1745
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1746 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1747 for tagname in $tagnames; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1748 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1749 # Check whether tagname contains only valid characters
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1750 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1751 "") ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1752 *) AC_MSG_ERROR([invalid tag name: $tagname])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1753 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1754 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1755
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1756 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1757 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1758 AC_MSG_ERROR([tag name \"$tagname\" already exists])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1759 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1760
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1761 # Update the list of available tags.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1762 if test -n "$tagname"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1763 echo appending configuration tag \"$tagname\" to $ofile
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1764
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1765 case $tagname in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1766 CXX)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1767 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1768 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1769 (test "X$CXX" != "Xg++"))) ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1770 AC_LIBTOOL_LANG_CXX_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1771 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1772 tagname=""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1773 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1774 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1775
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1776 F77)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1777 if test -n "$F77" && test "X$F77" != "Xno"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1778 AC_LIBTOOL_LANG_F77_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1779 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1780 tagname=""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1781 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1782 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1783
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1784 GCJ)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1785 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1786 AC_LIBTOOL_LANG_GCJ_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1787 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1788 tagname=""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1789 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1790 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1791
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1792 RC)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1793 AC_LIBTOOL_LANG_RC_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1794 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1795
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1796 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1797 AC_MSG_ERROR([Unsupported tag name: $tagname])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1798 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1799 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1800
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1801 # Append the new tag name to the list of available tags.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1802 if test -n "$tagname" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1803 available_tags="$available_tags $tagname"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1804 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1805 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1806 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1807 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1808
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1809 # Now substitute the updated list of available tags.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1810 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1811 mv "${ofile}T" "$ofile"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1812 chmod +x "$ofile"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1813 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1814 rm -f "${ofile}T"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1815 AC_MSG_ERROR([unable to update list of available tagged configurations.])
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 ])# _LT_AC_TAGCONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1819
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1820
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1821 # AC_LIBTOOL_DLOPEN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1822 # -----------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1823 # enable checks for dlopen support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1824 AC_DEFUN([AC_LIBTOOL_DLOPEN],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1825 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1826 ])# AC_LIBTOOL_DLOPEN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1827
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1828
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1829 # AC_LIBTOOL_WIN32_DLL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1830 # --------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1831 # declare package support for building win32 DLLs
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1832 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1833 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1834 ])# AC_LIBTOOL_WIN32_DLL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1835
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1836
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1837 # AC_ENABLE_SHARED([DEFAULT])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1838 # ---------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1839 # implement the --enable-shared flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1840 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1841 AC_DEFUN([AC_ENABLE_SHARED],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1842 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1843 AC_ARG_ENABLE([shared],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1844 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1845 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1846 [p=${PACKAGE-default}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1847 case $enableval in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1848 yes) enable_shared=yes ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1849 no) enable_shared=no ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1850 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1851 enable_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1852 # Look at the argument we got. We use all the common list separators.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1854 for pkg in $enableval; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1855 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1856 if test "X$pkg" = "X$p"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1857 enable_shared=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1858 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1859 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1860 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1861 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1862 esac],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1863 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1864 ])# AC_ENABLE_SHARED
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1865
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1866
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1867 # AC_DISABLE_SHARED
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1868 # -----------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1869 #- set the default shared flag to --disable-shared
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1870 AC_DEFUN([AC_DISABLE_SHARED],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1871 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1872 AC_ENABLE_SHARED(no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1873 ])# AC_DISABLE_SHARED
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1874
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1875
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1876 # AC_ENABLE_STATIC([DEFAULT])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1877 # ---------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1878 # implement the --enable-static flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1879 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1880 AC_DEFUN([AC_ENABLE_STATIC],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1881 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1882 AC_ARG_ENABLE([static],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1883 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1884 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1885 [p=${PACKAGE-default}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1886 case $enableval in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1887 yes) enable_static=yes ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1888 no) enable_static=no ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1889 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1890 enable_static=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1891 # Look at the argument we got. We use all the common list separators.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1893 for pkg in $enableval; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1894 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1895 if test "X$pkg" = "X$p"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1896 enable_static=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1897 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1898 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1899 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1900 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1901 esac],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1902 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1903 ])# AC_ENABLE_STATIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1904
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1905
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1906 # AC_DISABLE_STATIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1907 # -----------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1908 # set the default static flag to --disable-static
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1909 AC_DEFUN([AC_DISABLE_STATIC],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1910 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1911 AC_ENABLE_STATIC(no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1912 ])# AC_DISABLE_STATIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1913
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1914
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1915 # AC_ENABLE_FAST_INSTALL([DEFAULT])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1916 # ---------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1917 # implement the --enable-fast-install flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1918 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1919 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1920 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1921 AC_ARG_ENABLE([fast-install],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1922 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1923 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1924 [p=${PACKAGE-default}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1925 case $enableval in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1926 yes) enable_fast_install=yes ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1927 no) enable_fast_install=no ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1928 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1929 enable_fast_install=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1930 # Look at the argument we got. We use all the common list separators.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1932 for pkg in $enableval; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1933 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1934 if test "X$pkg" = "X$p"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1935 enable_fast_install=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1936 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1937 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1938 IFS="$lt_save_ifs"
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 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1942 ])# AC_ENABLE_FAST_INSTALL
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_DISABLE_FAST_INSTALL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1946 # -----------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1947 # set the default to --disable-fast-install
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1948 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1949 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1950 AC_ENABLE_FAST_INSTALL(no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1951 ])# AC_DISABLE_FAST_INSTALL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1952
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1953
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1954 # AC_LIBTOOL_PICMODE([MODE])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1955 # --------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1956 # implement the --with-pic flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1957 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1958 AC_DEFUN([AC_LIBTOOL_PICMODE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1959 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1960 pic_mode=ifelse($#,1,$1,default)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1961 ])# AC_LIBTOOL_PICMODE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1962
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1963
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1964 # AC_PROG_EGREP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1965 # -------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1966 # This is predefined starting with Autoconf 2.54, so this conditional
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1967 # definition can be removed once we require Autoconf 2.54 or later.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1968 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1969 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1970 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1971 then ac_cv_prog_egrep='grep -E'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1972 else ac_cv_prog_egrep='egrep'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1973 fi])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1974 EGREP=$ac_cv_prog_egrep
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1975 AC_SUBST([EGREP])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1976 ])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1977
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1978
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1979 # AC_PATH_TOOL_PREFIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1980 # -------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1981 # find a file program which can recognise shared library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1982 AC_DEFUN([AC_PATH_TOOL_PREFIX],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1983 [AC_REQUIRE([AC_PROG_EGREP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1984 AC_MSG_CHECKING([for $1])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1985 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1986 [case $MAGIC_CMD in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1987 [[\\/*] | ?:[\\/]*])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1988 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
1989 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1990 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1991 lt_save_MAGIC_CMD="$MAGIC_CMD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1993 dnl $ac_dummy forces splitting on constant user-supplied paths.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1994 dnl POSIX.2 word splitting is done only on the output of word expansions,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1995 dnl not every word. This closes a longstanding sh security hole.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1996 ac_dummy="ifelse([$2], , $PATH, [$2])"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1997 for ac_dir in $ac_dummy; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1998 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1999 test -z "$ac_dir" && ac_dir=.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2000 if test -f $ac_dir/$1; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2001 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2002 if test -n "$file_magic_test_file"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2003 case $deplibs_check_method in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2004 "file_magic "*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2005 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2007 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2008 $EGREP "$file_magic_regex" > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2009 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2010 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2011 cat <<EOF 1>&2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2012
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2013 *** Warning: the command libtool uses to detect shared libraries,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2014 *** $file_magic_cmd, produces output that libtool cannot recognize.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2015 *** The result is that libtool may fail to recognize shared libraries
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2016 *** as such. This will affect the creation of libtool libraries that
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2017 *** depend on shared libraries, but programs linked with such libtool
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2018 *** libraries will work regardless of this problem. Nevertheless, you
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2019 *** may want to report the problem to your system manager and/or to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2020 *** bug-libtool@gnu.org
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2021
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2022 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2023 fi ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2024 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2025 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2026 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2027 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2028 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2029 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2030 MAGIC_CMD="$lt_save_MAGIC_CMD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2031 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2032 esac])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2034 if test -n "$MAGIC_CMD"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2035 AC_MSG_RESULT($MAGIC_CMD)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2036 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2037 AC_MSG_RESULT(no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2038 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2039 ])# AC_PATH_TOOL_PREFIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2040
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2041
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2042 # AC_PATH_MAGIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2043 # -------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2044 # find a file program which can recognise a shared library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2045 AC_DEFUN([AC_PATH_MAGIC],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2046 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2047 if test -z "$lt_cv_path_MAGIC_CMD"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2048 if test -n "$ac_tool_prefix"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2049 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2050 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2051 MAGIC_CMD=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2052 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2053 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2054 ])# AC_PATH_MAGIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2055
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2056
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2057 # AC_PROG_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2058 # ----------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2059 # find the pathname to the GNU or non-GNU linker
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2060 AC_DEFUN([AC_PROG_LD],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2061 [AC_ARG_WITH([gnu-ld],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2062 [AC_HELP_STRING([--with-gnu-ld],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2063 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2064 [test "$withval" = no || with_gnu_ld=yes],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2065 [with_gnu_ld=no])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2066 AC_REQUIRE([LT_AC_PROG_SED])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2067 AC_REQUIRE([AC_PROG_CC])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2068 AC_REQUIRE([AC_CANONICAL_HOST])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2069 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2070 ac_prog=ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2071 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2072 # Check if gcc -print-prog-name=ld gives a path.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2073 AC_MSG_CHECKING([for ld used by $CC])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2074 case $host in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2075 *-*-mingw*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2076 # gcc leaves a trailing carriage return which upsets mingw
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2077 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2078 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2079 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2080 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2081 case $ac_prog in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2082 # Accept absolute paths.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2083 [[\\/]]* | ?:[[\\/]]*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2084 re_direlt='/[[^/]][[^/]]*/\.\./'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2085 # Canonicalize the pathname of ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2086 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2087 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2088 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2089 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2090 test -z "$LD" && LD="$ac_prog"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2091 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2092 "")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2093 # If it fails, then pretend we aren't using GCC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2094 ac_prog=ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2095 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2096 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2097 # If it is relative, then search for the first ld in PATH.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2098 with_gnu_ld=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2099 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2100 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2101 elif test "$with_gnu_ld" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2102 AC_MSG_CHECKING([for GNU ld])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2103 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2104 AC_MSG_CHECKING([for non-GNU ld])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2105 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2106 AC_CACHE_VAL(lt_cv_path_LD,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2107 [if test -z "$LD"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2109 for ac_dir in $PATH; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2110 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2111 test -z "$ac_dir" && ac_dir=.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2112 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
2113 lt_cv_path_LD="$ac_dir/$ac_prog"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2114 # Check to see if the program is GNU ld. I'd rather use --version,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2115 # but apparently some variants of GNU ld only accept -v.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2116 # Break only if it was the GNU/non-GNU ld that we prefer.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2117 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2118 *GNU* | *'with BFD'*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2119 test "$with_gnu_ld" != no && break
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 test "$with_gnu_ld" != yes && break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2123 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2124 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2125 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2126 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2127 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2128 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2129 lt_cv_path_LD="$LD" # Let the user override the test with a path.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2130 fi])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2131 LD="$lt_cv_path_LD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2132 if test -n "$LD"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2133 AC_MSG_RESULT($LD)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2134 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2135 AC_MSG_RESULT(no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2136 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2137 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2138 AC_PROG_LD_GNU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2139 ])# AC_PROG_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2140
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2141
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2142 # AC_PROG_LD_GNU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2143 # --------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2144 AC_DEFUN([AC_PROG_LD_GNU],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2145 [AC_REQUIRE([AC_PROG_EGREP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2146 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2147 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2148 case `$LD -v 2>&1 </dev/null` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2149 *GNU* | *'with BFD'*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2150 lt_cv_prog_gnu_ld=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2151 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2152 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2153 lt_cv_prog_gnu_ld=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2154 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2155 esac])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2156 with_gnu_ld=$lt_cv_prog_gnu_ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2157 ])# AC_PROG_LD_GNU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2158
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2159
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2160 # AC_PROG_LD_RELOAD_FLAG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2161 # ----------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2162 # find reload flag for linker
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2163 # -- PORTME Some linkers may need a different reload flag.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2164 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2165 [AC_CACHE_CHECK([for $LD option to reload object files],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2166 lt_cv_ld_reload_flag,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2167 [lt_cv_ld_reload_flag='-r'])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2168 reload_flag=$lt_cv_ld_reload_flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2169 case $reload_flag in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2170 "" | " "*) ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2171 *) reload_flag=" $reload_flag" ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2172 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2174 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2175 darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2176 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2177 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2178 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2179 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2180 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2181 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2182 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2183 ])# AC_PROG_LD_RELOAD_FLAG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2184
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2185
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2186 # AC_DEPLIBS_CHECK_METHOD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2187 # -----------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2188 # how to check for library dependencies
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2189 # -- PORTME fill in with the dynamic library characteristics
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2190 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2191 [AC_CACHE_CHECK([how to recognise dependent libraries],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2192 lt_cv_deplibs_check_method,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2193 [lt_cv_file_magic_cmd='$MAGIC_CMD'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2194 lt_cv_file_magic_test_file=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2195 lt_cv_deplibs_check_method='unknown'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2196 # Need to set the preceding variable on all platforms that support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2197 # interlibrary dependencies.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2198 # 'none' -- dependencies not supported.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2199 # `unknown' -- same as none, but documents that we really don't know.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2200 # 'pass_all' -- all dependencies passed with no checks.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2201 # 'test_compile' -- check by making test program.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2202 # 'file_magic [[regex]]' -- check by looking for files in library path
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2203 # which responds to the $file_magic_cmd with a given extended regex.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2204 # If you have `file' or equivalent on your system and you're not sure
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2205 # whether `pass_all' will *always* work, you probably want this one.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2206
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2207 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2208 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2209 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2210 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2211
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2212 beos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2213 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2214 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2215
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2216 bsdi[[45]]*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2217 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
2218 lt_cv_file_magic_cmd='/usr/bin/file -L'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2219 lt_cv_file_magic_test_file=/shlib/libc.so
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2220 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2221
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2222 cygwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2223 # func_win32_libid is a shell function defined in ltmain.sh
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2224 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2225 lt_cv_file_magic_cmd='func_win32_libid'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2226 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2227
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2228 mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2229 # Base MSYS/MinGW do not provide the 'file' command needed by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2230 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2231 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2232 lt_cv_file_magic_cmd='$OBJDUMP -f'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2233 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2234
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2235 darwin* | rhapsody*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2236 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2237 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2238
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2239 freebsd* | kfreebsd*-gnu | dragonfly*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2240 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2241 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2242 i*86 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2243 # Not sure whether the presence of OpenBSD here was a mistake.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2244 # Let's accept both of them until this is cleared up.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2245 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2246 lt_cv_file_magic_cmd=/usr/bin/file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2248 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2249 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2250 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2251 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2252 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2253 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2254
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2255 gnu*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2256 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2257 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2258
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2259 hpux10.20* | hpux11*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2260 lt_cv_file_magic_cmd=/usr/bin/file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2261 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2262 ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2263 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
2264 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2265 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2266 hppa*64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2267 [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
2268 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
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 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
2272 lt_cv_file_magic_test_file=/usr/lib/libc.sl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2273 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2274 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2275 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2276
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2277 irix5* | irix6* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2278 case $LD in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2279 *-32|*"-32 ") libmagic=32-bit;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2280 *-n32|*"-n32 ") libmagic=N32;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2281 *-64|*"-64 ") libmagic=64-bit;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2282 *) libmagic=never-match;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2283 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2284 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2285 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2286
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2287 # This must be Linux ELF.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2288 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2289 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2290 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2291
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2292 netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2293 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2294 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2295 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2296 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2297 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2298 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2299
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2300 newos6*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2301 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
2302 lt_cv_file_magic_cmd=/usr/bin/file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2303 lt_cv_file_magic_test_file=/usr/lib/libnls.so
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2304 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2305
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2306 nto-qnx*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2307 lt_cv_deplibs_check_method=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2308 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2309
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2310 openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2311 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
2312 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
2313 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2314 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2315 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2316 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2317
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2318 osf3* | osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2319 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2320 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2321
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2322 sco3.2v5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2323 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2324 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2325
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2326 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2327 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2328 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2329
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2330 sysv4 | sysv4.2uw2* | sysv4.3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2331 case $host_vendor in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2332 motorola)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2333 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
2334 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2335 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2336 ncr)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2337 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2338 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2339 sequent)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2340 lt_cv_file_magic_cmd='/bin/file'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2341 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
2342 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2343 sni)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2344 lt_cv_file_magic_cmd='/bin/file'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2345 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
2346 lt_cv_file_magic_test_file=/lib/libc.so
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2347 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2348 siemens)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2349 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2350 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2351 pc)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2352 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2353 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2354 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2355 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2356
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2357 unixware7* | sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2358 lt_cv_deplibs_check_method=pass_all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2359 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2360 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2361 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2362 file_magic_cmd=$lt_cv_file_magic_cmd
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2363 deplibs_check_method=$lt_cv_deplibs_check_method
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2364 test -z "$deplibs_check_method" && deplibs_check_method=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2365 ])# AC_DEPLIBS_CHECK_METHOD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2366
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2367
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2368 # AC_PROG_NM
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2369 # ----------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2370 # find the pathname to a BSD-compatible name lister
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2371 AC_DEFUN([AC_PROG_NM],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2372 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2373 [if test -n "$NM"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2374 # Let the user override the test.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2375 lt_cv_path_NM="$NM"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2376 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2378 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2379 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2380 test -z "$ac_dir" && ac_dir=.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2381 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2382 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2383 # Check to see if the nm accepts a BSD-compat flag.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2384 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2385 # nm: unknown option "B" ignored
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2386 # Tru64's nm complains that /dev/null is an invalid object file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2387 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2388 */dev/null* | *'Invalid file or object type'*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2389 lt_cv_path_NM="$tmp_nm -B"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2390 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2391 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2392 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2393 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2394 */dev/null*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2395 lt_cv_path_NM="$tmp_nm -p"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2396 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2397 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2398 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2399 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2400 continue # so that we can try to find one that supports BSD flags
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2401 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2402 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2403 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2404 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2405 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2406 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2407 IFS="$lt_save_ifs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2408 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2409 fi])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2410 NM="$lt_cv_path_NM"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2411 ])# AC_PROG_NM
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2412
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2413
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2414 # AC_CHECK_LIBM
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2415 # -------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2416 # check for math library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2417 AC_DEFUN([AC_CHECK_LIBM],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2418 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2419 LIBM=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2420 case $host in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2421 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2422 # These system don't have libm, or don't need it
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2423 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2424 *-ncr-sysv4.3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2425 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2426 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2427 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2428 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2429 AC_CHECK_LIB(m, cos, LIBM="-lm")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2430 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2431 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2432 ])# AC_CHECK_LIBM
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2433
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2434
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2435 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2436 # -----------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2437 # sets LIBLTDL to the link flags for the libltdl convenience library and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2438 # LTDLINCL to the include flags for the libltdl header and adds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2439 # --enable-ltdl-convenience to the configure arguments. Note that
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2440 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2441 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2442 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2443 # (note the single quotes!). If your package is not flat and you're not
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2444 # using automake, define top_builddir and top_srcdir appropriately in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2445 # the Makefiles.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2446 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2447 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2448 case $enable_ltdl_convenience in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2449 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2450 "") enable_ltdl_convenience=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2451 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2452 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2453 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2454 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2455 # For backwards non-gettext consistent compatibility...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2456 INCLTDL="$LTDLINCL"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2457 ])# AC_LIBLTDL_CONVENIENCE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2458
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2459
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2460 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2461 # -----------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2462 # sets LIBLTDL to the link flags for the libltdl installable library and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2463 # LTDLINCL to the include flags for the libltdl header and adds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2464 # --enable-ltdl-install to the configure arguments. Note that
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2465 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2466 # and an installed libltdl is not found, it is assumed to be `libltdl'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2467 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2468 # '${top_srcdir}/' (note the single quotes!). If your package is not
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2469 # flat and you're not using automake, define top_builddir and top_srcdir
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2470 # appropriately in the Makefiles.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2471 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2472 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2473 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2474 AC_CHECK_LIB(ltdl, lt_dlinit,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2475 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2476 [if test x"$enable_ltdl_install" = xno; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2477 AC_MSG_WARN([libltdl not installed, but installation disabled])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2478 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2479 enable_ltdl_install=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2480 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2481 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2482 if test x"$enable_ltdl_install" = x"yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2483 ac_configure_args="$ac_configure_args --enable-ltdl-install"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2484 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2485 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2486 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2487 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2488 LIBLTDL="-lltdl"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2489 LTDLINCL=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2490 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2491 # For backwards non-gettext consistent compatibility...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2492 INCLTDL="$LTDLINCL"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2493 ])# AC_LIBLTDL_INSTALLABLE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2494
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2495
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2496 # AC_LIBTOOL_CXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2497 # --------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2498 # enable support for C++ libraries
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2499 AC_DEFUN([AC_LIBTOOL_CXX],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2500 [AC_REQUIRE([_LT_AC_LANG_CXX])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2501 ])# AC_LIBTOOL_CXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2502
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2503
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2504 # _LT_AC_LANG_CXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2505 # ---------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2506 AC_DEFUN([_LT_AC_LANG_CXX],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2507 [AC_REQUIRE([AC_PROG_CXX])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2508 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2509 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2510 ])# _LT_AC_LANG_CXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2511
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2512 # _LT_AC_PROG_CXXCPP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2513 # ---------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2514 AC_DEFUN([_LT_AC_PROG_CXXCPP],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2515 [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2516 AC_REQUIRE([AC_PROG_CXX])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2517 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2518 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2519 (test "X$CXX" != "Xg++"))) ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2520 AC_PROG_CXXCPP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2521 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2522 ])# _LT_AC_PROG_CXXCPP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2523
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2524 # AC_LIBTOOL_F77
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2525 # --------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2526 # enable support for Fortran 77 libraries
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2527 AC_DEFUN([AC_LIBTOOL_F77],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2528 [AC_REQUIRE([_LT_AC_LANG_F77])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2529 ])# AC_LIBTOOL_F77
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2530
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2531
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2532 # _LT_AC_LANG_F77
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2533 # ---------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2534 AC_DEFUN([_LT_AC_LANG_F77],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2535 [AC_REQUIRE([AC_PROG_F77])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2536 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2537 ])# _LT_AC_LANG_F77
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2538
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2539
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2540 # AC_LIBTOOL_GCJ
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2541 # --------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2542 # enable support for GCJ libraries
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2543 AC_DEFUN([AC_LIBTOOL_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2544 [AC_REQUIRE([_LT_AC_LANG_GCJ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2545 ])# AC_LIBTOOL_GCJ
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2546
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2547
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2548 # _LT_AC_LANG_GCJ
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2549 # ---------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2550 AC_DEFUN([_LT_AC_LANG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2551 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2552 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2553 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2554 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2555 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2556 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2557 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2558 ])# _LT_AC_LANG_GCJ
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2559
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2560
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2561 # AC_LIBTOOL_RC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2562 # --------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2563 # enable support for Windows resource files
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2564 AC_DEFUN([AC_LIBTOOL_RC],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2565 [AC_REQUIRE([LT_AC_PROG_RC])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2566 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2567 ])# AC_LIBTOOL_RC
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_LIBTOOL_LANG_C_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2571 # ------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2572 # Ensure that the configuration vars for the C compiler are
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2573 # suitably defined. Those variables are subsequently used by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2574 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2575 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2576 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2577 [lt_save_CC="$CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2578 AC_LANG_PUSH(C)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2579
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2580 # Source file extension for C test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2581 ac_ext=c
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2582
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2583 # Object file extension for compiled C test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2584 objext=o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2585 _LT_AC_TAGVAR(objext, $1)=$objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2586
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2587 # Code to be used in simple compile tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2588 lt_simple_compile_test_code="int some_variable = 0;\n"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2589
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2590 # Code to be used in simple link tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2591 lt_simple_link_test_code='int main(){return(0);}\n'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2592
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2593 _LT_AC_SYS_COMPILER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2594
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2595 # save warnings/boilerplate of simple test code
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2596 _LT_COMPILER_BOILERPLATE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2597 _LT_LINKER_BOILERPLATE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2598
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2599 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2600 # Check for any special shared library compilation flags.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2601 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2602 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2603 if test "$GCC" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2604 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2605 sco3.2v5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2606 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2607 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2608 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2609 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2610 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2611 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
2612 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
2613 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2614 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
2615 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2616 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2617 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2618
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2619
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2620 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2621 # Check to make sure the static flag actually works.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2622 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2623 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
2624 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2625 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2626 [],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2627 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2628
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2629
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2630 ## CAVEAT EMPTOR:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2631 ## There is no encapsulation within the following macros, do not change
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2632 ## the running order or otherwise move them around unless you know exactly
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2633 ## what you are doing...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2634 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2635 AC_LIBTOOL_PROG_COMPILER_PIC($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2636 AC_LIBTOOL_PROG_CC_C_O($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2637 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2638 AC_LIBTOOL_PROG_LD_SHLIBS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2639 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2640 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2641 AC_LIBTOOL_SYS_LIB_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2642 AC_LIBTOOL_DLOPEN_SELF($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2643
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2644 # Report which librarie types wil actually be built
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2645 AC_MSG_CHECKING([if libtool supports shared libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2646 AC_MSG_RESULT([$can_build_shared])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2647
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2648 AC_MSG_CHECKING([whether to build shared libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2649 test "$can_build_shared" = "no" && enable_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2650
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2651 # On AIX, shared libraries and static libraries use the same namespace, and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2652 # are all built from PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2653 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2654 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2655 test "$enable_shared" = yes && enable_static=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2656 if test -n "$RANLIB"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2657 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2658 postinstall_cmds='$RANLIB $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2659 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2660 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2661
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2662 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2663 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2664 test "$enable_shared" = yes && enable_static=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2665 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2666 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2667 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2668 AC_MSG_RESULT([$enable_shared])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2669
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2670 AC_MSG_CHECKING([whether to build static libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2671 # Make sure either enable_shared or enable_static is yes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2672 test "$enable_shared" = yes || enable_static=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2673 AC_MSG_RESULT([$enable_static])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2674
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2675 AC_LIBTOOL_CONFIG($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2676
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2677 AC_LANG_POP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2678 CC="$lt_save_CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2679 ])# AC_LIBTOOL_LANG_C_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2680
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2681
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2682 # AC_LIBTOOL_LANG_CXX_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2683 # --------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2684 # Ensure that the configuration vars for the C compiler are
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2685 # suitably defined. Those variables are subsequently used by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2686 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2687 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2688 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2689 [AC_LANG_PUSH(C++)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2690 AC_REQUIRE([AC_PROG_CXX])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2691 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2692
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2693 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2694 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2695 _LT_AC_TAGVAR(always_export_symbols, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2696 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2697 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2698 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2699 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2700 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2701 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2702 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2703 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2704 _LT_AC_TAGVAR(module_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2705 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2706 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2707 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2708 _LT_AC_TAGVAR(no_undefined_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2709 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2710 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2711
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2712 # Dependencies to place before and after the object being linked:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2713 _LT_AC_TAGVAR(predep_objects, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2714 _LT_AC_TAGVAR(postdep_objects, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2715 _LT_AC_TAGVAR(predeps, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2716 _LT_AC_TAGVAR(postdeps, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2717 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2718
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2719 # Source file extension for C++ test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2720 ac_ext=cpp
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2721
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2722 # Object file extension for compiled C++ test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2723 objext=o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2724 _LT_AC_TAGVAR(objext, $1)=$objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2725
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2726 # Code to be used in simple compile tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2727 lt_simple_compile_test_code="int some_variable = 0;\n"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2728
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2729 # Code to be used in simple link tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2730 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2731
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2733 _LT_AC_SYS_COMPILER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2734
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2735 # save warnings/boilerplate of simple test code
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2736 _LT_COMPILER_BOILERPLATE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2737 _LT_LINKER_BOILERPLATE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2738
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2739 # Allow CC to be a program name with arguments.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2740 lt_save_CC=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2741 lt_save_LD=$LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2742 lt_save_GCC=$GCC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2743 GCC=$GXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2744 lt_save_with_gnu_ld=$with_gnu_ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2745 lt_save_path_LD=$lt_cv_path_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2746 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2747 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2748 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2749 unset lt_cv_prog_gnu_ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2750 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2751 if test -n "${lt_cv_path_LDCXX+set}"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2752 lt_cv_path_LD=$lt_cv_path_LDCXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2753 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2754 unset lt_cv_path_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2755 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2756 test -z "${LDCXX+set}" || LD=$LDCXX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2757 CC=${CXX-"c++"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2758 compiler=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2759 _LT_AC_TAGVAR(compiler, $1)=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2760 _LT_CC_BASENAME([$compiler])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2761
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2762 # We don't want -fno-exception wen compiling C++ code, so set the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2763 # no_builtin_flag separately
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2764 if test "$GXX" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2765 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2766 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2767 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2768 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2769
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2770 if test "$GXX" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2771 # Set up default GNU C++ configuration
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2772
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2773 AC_PROG_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2774
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2775 # Check if GNU C++ uses GNU ld as the underlying linker, since the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2776 # archiving commands below assume that GNU ld is being used.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2777 if test "$with_gnu_ld" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2778 _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
2779 _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
2780
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2781 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2782 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2783
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2784 # If archive_cmds runs LD, not CC, wlarc should be empty
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2785 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2786 # investigate it a little bit more. (MM)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2787 wlarc='${wl}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2788
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2789 # ancient GNU ld didn't support --whole-archive et. al.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2790 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2791 grep 'no-whole-archive' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2792 _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
2793 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2794 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2795 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2796 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2797 with_gnu_ld=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2798 wlarc=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2799
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2800 # A generic and very simple default shared library creation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2801 # command for GNU C++ for the case where it uses the native
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2802 # linker, instead of GNU ld. If possible, this setting should
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2803 # overridden to take advantage of the native linker features on
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2804 # the platform it is being used on.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2805 _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
2806 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2807
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2808 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2809 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2810 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2811 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2812
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2813 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2814 GXX=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2815 with_gnu_ld=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2816 wlarc=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2817 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2818
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2819 # PORTME: fill in a description of your system's C++ link characteristics
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2820 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2821 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2822 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2823 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2824 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2825 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2826 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2827 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2828 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2829 # On IA64, the linker does run time linking by default, so we don't
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2830 # have to do anything special.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2831 aix_use_runtimelinking=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2832 exp_sym_flag='-Bexport'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2833 no_entry_flag=""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2834 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2835 aix_use_runtimelinking=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2836
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2837 # Test if we are trying to use run time linking or normal
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2838 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2839 # need to do runtime linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2840 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2841 for ld_flag in $LDFLAGS; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2842 case $ld_flag in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2843 *-brtl*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2844 aix_use_runtimelinking=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2845 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2846 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2847 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2848 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2849 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2850 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2851
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2852 exp_sym_flag='-bexport'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2853 no_entry_flag='-bnoentry'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2854 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2855
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2856 # When large executables or shared objects are built, AIX ld can
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2857 # have problems creating the table of contents. If linking a library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2858 # or program results in "error TOC overflow" add -mminimal-toc to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2859 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2860 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2861
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2862 _LT_AC_TAGVAR(archive_cmds, $1)=''
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2863 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2864 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2865 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2866
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2867 if test "$GXX" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2868 case $host_os in aix4.[[012]]|aix4.[[012]].*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2869 # We only want to do this on AIX 4.2 and lower, the check
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2870 # below for broken collect2 doesn't work under 4.3+
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2871 collect2name=`${CC} -print-prog-name=collect2`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2872 if test -f "$collect2name" && \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2873 strings "$collect2name" | grep resolve_lib_name >/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2874 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2875 # We have reworked collect2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2876 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2877 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2878 # We have old collect2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2879 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2880 # It fails to find uninstalled libraries when the uninstalled
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2881 # path is not listed in the libpath. Setting hardcode_minus_L
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2882 # to unsupported forces relinking
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2883 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2884 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2885 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2886 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2887 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2888 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2889 shared_flag='-shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2890 if test "$aix_use_runtimelinking" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2891 shared_flag="$shared_flag "'${wl}-G'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2892 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2893 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2894 # not using gcc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2895 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2897 # chokes on -Wl,-G. The following line is correct:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2898 shared_flag='-G'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2899 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2900 if test "$aix_use_runtimelinking" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2901 shared_flag='${wl}-G'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2902 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2903 shared_flag='${wl}-bM:SRE'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2904 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2905 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2906 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2907
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2908 # It seems that -bexpall does not export symbols beginning with
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2909 # underscore (_), so it is better to generate a list of symbols to export.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2910 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2911 if test "$aix_use_runtimelinking" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2912 # Warning - without using the other runtime loading flags (-brtl),
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2913 # -berok will link without error, but may produce a broken library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2914 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2915 # Determine the default libpath from the value encoded in an empty executable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2916 _LT_AC_SYS_LIBPATH_AIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2917 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2918
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2919 _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
2920 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2921 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2922 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2923 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2924 _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
2925 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2926 # Determine the default libpath from the value encoded in an empty executable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2927 _LT_AC_SYS_LIBPATH_AIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2928 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2929 # Warning - without using the other run time loading flags,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2930 # -berok will link without error, but may produce a broken library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2931 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2932 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2933 # -bexpall does not export symbols beginning with underscore (_)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2934 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2935 # Exported symbols can be pulled into shared objects from archives
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2936 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2937 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2938 # This is similar to how AIX traditionally builds its shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2939 _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
2940 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2941 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2942 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2943
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2944 beos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2945 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2946 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2947 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2948 # support --undefined. This deserves some investigation. FIXME
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2949 _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
2950 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2951 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2952 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2953 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2954
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2955 chorus*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2956 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2957 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2958 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2959 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2960 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2961 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2962 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2963
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2964 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2965 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2966 # as there is no search path for DLLs.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2967 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2968 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2969 _LT_AC_TAGVAR(always_export_symbols, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2970 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2971
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2972 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2973 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2974 # If the export-symbols file already is a .def file (1st line
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2975 # is EXPORTS), use it as is; otherwise, prepend...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2976 _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
2977 cp $export_symbols $output_objdir/$soname.def;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2978 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2979 echo EXPORTS > $output_objdir/$soname.def;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2980 cat $export_symbols >> $output_objdir/$soname.def;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2981 fi~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2982 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2983 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2984 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2985 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2986 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2987 darwin* | rhapsody*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2988 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2989 rhapsody* | darwin1.[[012]])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2990 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2991 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2992 *) # Darwin 1.3 on
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2993 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2994 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2995 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2996 case ${MACOSX_DEPLOYMENT_TARGET} in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2997 10.[[012]])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2998 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2999 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3000 10.*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3001 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3002 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3003 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3004 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3005 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3006 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3007 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3008 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3009 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3010 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3011 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3012 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3013
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3014 if test "$GXX" = yes ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3015 lt_int_apple_cc_single_mod=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3016 output_verbose_link_cmd='echo'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3017 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3018 lt_int_apple_cc_single_mod=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3019 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3020 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3021 _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
3022 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3023 _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
3024 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3025 _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
3026 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3027 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3028 _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
3029 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3030 _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
3031 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3032 _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
3033 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3034 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3035 xlc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3036 output_verbose_link_cmd='echo'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3037 _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
3038 _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
3039 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3040 _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
3041 _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
3042 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3043 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3044 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3045 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3046 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3047 fi
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 dgux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3051 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3052 ec++*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3053 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3054 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3055 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3056 ghcx*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3057 # Green Hills C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3058 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3059 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3060 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3061 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3062 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3063 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3064 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3065 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3066 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3067 freebsd[[12]]*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3068 # C++ shared libraries reported to be fairly broken before switch to ELF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3069 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3070 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3071 freebsd-elf*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3072 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3073 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3074 freebsd* | kfreebsd*-gnu | dragonfly*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3075 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3076 # conventions
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3077 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3078 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3079 gnu*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3080 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3081 hpux9*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3082 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3083 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3084 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3085 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3086 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3087 # but as the default
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3088 # location of the library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3089
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3090 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3091 CC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3092 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3093 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3094 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3095 aCC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3096 _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
3097 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3098 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3099 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3100 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3101 # There doesn't appear to be a way to prevent this compiler from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3102 # explicitly linking system object files so we need to strip them
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3103 # from the output so that they don't get included in the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3104 # dependencies.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3105 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
3106 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3107 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3108 if test "$GXX" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3109 _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
3110 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3111 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3112 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3113 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3114 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3115 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3116 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3117 hpux10*|hpux11*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3118 if test $with_gnu_ld = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3119 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3120 hppa*64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3121 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3122 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3123 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3124 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3125 ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3126 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3127 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3128 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3129 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3130 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3131 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3132 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3133 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3134 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3135 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3136 hppa*64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3137 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3138 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3139 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3140 ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3141 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3142 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3143 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3144 # but as the default
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3145 # location of the library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3146 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3147 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3148 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3149 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3150 # but as the default
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3151 # location of the library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3152 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3153 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3154
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3155 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3156 CC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3157 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3158 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3159 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3160 aCC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3161 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3162 hppa*64*|ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3163 _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
3164 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3165 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3166 _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
3167 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3168 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3169 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3170 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3171 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3172 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3173 # There doesn't appear to be a way to prevent this compiler from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3174 # explicitly linking system object files so we need to strip them
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3175 # from the output so that they don't get included in the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3176 # dependencies.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3177 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
3178 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3179 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3180 if test "$GXX" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3181 if test $with_gnu_ld = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3182 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3183 ia64*|hppa*64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3184 _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
3185 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3186 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3187 _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
3188 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3189 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3190 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3191 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3192 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3193 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3194 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3195 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3196 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3197 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3198 irix5* | irix6*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3199 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3200 CC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3201 # SGI C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3202 _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 ${output_objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3203
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3204 # Archives containing C++ object files must be created using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3205 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3206 # necessary to make sure instantiated templates are included
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3207 # in the archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3208 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3209 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3210 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3211 if test "$GXX" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3212 if test "$with_gnu_ld" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3213 _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}${output_objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3214 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3215 _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
3216 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3217 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3218 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3219 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3220 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3221 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3222 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3223 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3224 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3225 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3226 KCC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3227 # Kuck and Associates, Inc. (KAI) C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3228
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3229 # KCC will only create a shared library if the output file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3230 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3231 # to its proper name (with version) after linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3232 _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
3233 _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
3234 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3235 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3236 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3237 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3238 # There doesn't appear to be a way to prevent this compiler from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3239 # explicitly linking system object files so we need to strip them
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3240 # from the output so that they don't get included in the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3241 # dependencies.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3242 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
3243
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3244 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3245 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3246
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3247 # Archives containing C++ object files must be created using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3248 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3249 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3250 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3251 icpc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3252 # Intel C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3253 with_gnu_ld=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3254 # version 8.0 and above of icpc choke on multiply defined symbols
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3255 # if we add $predep_objects and $postdep_objects, however 7.1 and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3256 # earlier do not add the objects themselves.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3257 case `$CC -V 2>&1` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3258 *"Version 7."*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3259 _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
3260 _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
3261 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3262 *) # Version 8.0 or newer
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3263 tmp_idyn=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3264 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3265 ia64*) tmp_idyn=' -i_dynamic';;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3266 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3267 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3268 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $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
3269 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3270 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3271 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3272 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3273 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3274 _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
3275 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3276 pgCC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3277 # Portland Group C++ compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3278 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3279 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $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
3280
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3281 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3282 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3283 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3284 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3285 cxx*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3286 # Compaq C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3287 _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
3288 _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
3289
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3290 runpath_var=LD_RUN_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3291 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3292 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3293
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3294 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3295 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3296 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3297 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3298 # There doesn't appear to be a way to prevent this compiler from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3299 # explicitly linking system object files so we need to strip them
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3300 # from the output so that they don't get included in the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3301 # dependencies.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3302 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
3303 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3304 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3305 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3306 lynxos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3307 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3308 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3309 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3310 m88k*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3311 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3312 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3313 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3314 mvs*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3315 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3316 cxx*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3317 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3318 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3319 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3320 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3321 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3322 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3323 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3324 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3325 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3326 netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3327 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3328 _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
3329 wlarc=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3330 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3331 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3332 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3333 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3334 # Workaround some broken pre-1.5 toolchains
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3335 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
3336 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3337 openbsd2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3338 # C++ shared libraries are fairly broken
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3339 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3340 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3341 openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3342 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3343 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3344 _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
3345 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3346 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
3347 _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
3348 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3349 _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
3350 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3351 output_verbose_link_cmd='echo'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3352 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3353 osf3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3354 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3355 KCC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3356 # Kuck and Associates, Inc. (KAI) C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3357
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3358 # KCC will only create a shared library if the output file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3359 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3360 # to its proper name (with version) after linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3361 _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
3362
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3363 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3364 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3365
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3366 # Archives containing C++ object files must be created using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3367 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3368 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3369
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3370 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3371 RCC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3372 # Rational C++ 2.4.1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3373 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3374 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3375 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3376 cxx*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3377 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3378 _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 ${output_objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3379
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3380 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3381 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3382
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3383 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3384 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3385 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3386 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3387 # There doesn't appear to be a way to prevent this compiler from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3388 # explicitly linking system object files so we need to strip them
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3389 # from the output so that they don't get included in the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3390 # dependencies.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3391 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
3392 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3393 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3394 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3395 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3396 _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}${output_objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3397
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3398 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3399 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3400
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3401 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3402 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3403 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3404 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3405
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3406 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3407 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3408 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3409 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3410 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3411 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3412 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3413 osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3414 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3415 KCC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3416 # Kuck and Associates, Inc. (KAI) C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3417
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3418 # KCC will only create a shared library if the output file
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3419 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3420 # to its proper name (with version) after linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3421 _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
3422
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3423 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3424 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3425
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3426 # Archives containing C++ object files must be created using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3427 # the KAI C++ compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3428 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3429 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3430 RCC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3431 # Rational C++ 2.4.1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3432 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3433 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3434 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3435 cxx*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3436 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3437 _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 ${output_objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3438 _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
3439 echo "-hidden">> $lib.exp~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3440 $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 ${output_objdir}/so_locations -o $lib~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3441 $rm $lib.exp'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3442
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3443 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3444 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3445
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3446 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3447 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3448 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3449 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3450 # There doesn't appear to be a way to prevent this compiler from
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3451 # explicitly linking system object files so we need to strip them
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3452 # from the output so that they don't get included in the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3453 # dependencies.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3454 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
3455 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3456 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3457 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3458 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3459 _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}${output_objdir}/so_locations -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3460
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3461 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3464 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3465 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3466 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3468
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3469 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3470 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3471 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3472 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3473 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3474 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3475 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3476 psos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3477 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3478 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3479 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3480 sco*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3481 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3482 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3483 CC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3484 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3485 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3486 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3487 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3488 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3489 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3490 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3491 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3492 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3493 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3494 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3495 CC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3496 # Sun C++ 4.x
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3497 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3498 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3499 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3500 lcc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3501 # Lucid
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3502 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3503 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3504 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3505 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3506 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3507 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3508 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3509 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3510 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3511 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3512 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3513 CC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3514 # Sun C++ 4.2, 5.x and Centerline C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3515 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3516 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3517 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3518 _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
3519 $CC -G${allow_undefined_flag} ${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
3520
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3521 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3522 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3523 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3524 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3525 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3526 # The C++ compiler is used as linker so we must use $wl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3527 # flag to pass the commands to the underlying system
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3528 # linker. We must also pass each convience library through
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3529 # to the system linker between allextract/defaultextract.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3530 # The C++ compiler will combine linker options so we
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3531 # cannot just pass the convience library names through
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3532 # without $wl.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3533 # Supported since Solaris 2.6 (maybe 2.5.1?)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3534 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3535 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3536 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3537 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3538
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3539 output_verbose_link_cmd='echo'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3540
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3541 # Archives containing C++ object files must be created using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3542 # "CC -xar", where "CC" is the Sun C++ compiler. This is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3543 # necessary to make sure instantiated templates are included
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3544 # in the archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3545 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3546 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3547 gcx*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3548 # Green Hills C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3549 _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
3550
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3551 # The C++ compiler must be used to create the archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3552 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3553 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3554 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3555 # GNU C++ compiler with Solaris linker
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3556 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3557 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3558 if $CC --version | grep -v '^2\.7' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3559 _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
3560 _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
3561 $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
3562
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3563 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3564 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3565 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3566 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3567 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3568 # g++ 2.7 appears to require `-G' NOT `-shared' on this
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3569 # platform.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3570 _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
3571 _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
3572 $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
3573
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3574 # Commands to make compiler produce verbose output that lists
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3575 # what "hidden" libraries, object files and flags are used when
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3576 # linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3577 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3578 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3579
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3580 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3581 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3582 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3583 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3584 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3585 sysv5OpenUNIX8* | sysv5UnixWare7.[[01]].[[01]]* | sysv5uw[[78]]* | unixware7*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3586 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3587 CC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3588 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3589 _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
3590 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3591 runpath_var='LD_RUN_PATH'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3592 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3593 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3594 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3595 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3596 sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3597 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3598 CC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3599 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3600 _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
3601 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3602 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3603 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3604 runpath_var='LD_RUN_PATH'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3605 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3606 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3607 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3608 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3609 tandem*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3610 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3611 NCC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3612 # NonStop-UX NCC 3.20
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3613 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3614 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3615 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3616 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3617 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3618 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3619 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3620 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3621 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3622 vxworks*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3623 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3624 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3625 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3626 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3627 # FIXME: insert proper C++ library support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3628 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3629 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3630 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3631 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3632 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3633
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3634 _LT_AC_TAGVAR(GCC, $1)="$GXX"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3635 _LT_AC_TAGVAR(LD, $1)="$LD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3636
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3637 ## CAVEAT EMPTOR:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3638 ## There is no encapsulation within the following macros, do not change
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3639 ## the running order or otherwise move them around unless you know exactly
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3640 ## what you are doing...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3641 AC_LIBTOOL_POSTDEP_PREDEP($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3642 AC_LIBTOOL_PROG_COMPILER_PIC($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3643 AC_LIBTOOL_PROG_CC_C_O($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3644 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3645 AC_LIBTOOL_PROG_LD_SHLIBS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3646 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3647 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3648 AC_LIBTOOL_SYS_LIB_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3649 AC_LIBTOOL_DLOPEN_SELF($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3650
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3651 AC_LIBTOOL_CONFIG($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3652
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3653 AC_LANG_POP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3654 CC=$lt_save_CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3655 LDCXX=$LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3656 LD=$lt_save_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3657 GCC=$lt_save_GCC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3658 with_gnu_ldcxx=$with_gnu_ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3659 with_gnu_ld=$lt_save_with_gnu_ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3660 lt_cv_path_LDCXX=$lt_cv_path_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3661 lt_cv_path_LD=$lt_save_path_LD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3662 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3663 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3664 ])# AC_LIBTOOL_LANG_CXX_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3665
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3666 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3667 # ------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3668 # Figure out "hidden" library dependencies from verbose
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3669 # compiler output when linking a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3670 # Parse the compiler output and extract the necessary
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3671 # objects, libraries and library flags.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3672 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3673 dnl we can't use the lt_simple_compile_test_code here,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3674 dnl because it contains code intended for an executable,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3675 dnl not a library. It's possible we should let each
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3676 dnl tag define a new lt_????_link_test_code variable,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3677 dnl but it's only used here...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3678 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3679 int a;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3680 void foo (void) { a = 0; }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3681 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3682 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3683 class Foo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3684 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3685 public:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3686 Foo (void) { a = 0; }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3687 private:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3688 int a;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3689 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3690 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3691 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3692 subroutine foo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3693 implicit none
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3694 integer*4 a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3695 a=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3696 return
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3697 end
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3698 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3699 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3700 public class foo {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3701 private int a;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3702 public void bar (void) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3703 a = 0;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3704 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3705 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3706 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3707 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3708 dnl Parse the compiler output and extract the necessary
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3709 dnl objects, libraries and library flags.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3710 if AC_TRY_EVAL(ac_compile); then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3711 # Parse the compiler output and extract the necessary
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3712 # objects, libraries and library flags.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3713
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3714 # Sentinel used to keep track of whether or not we are before
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3715 # the conftest object file.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3716 pre_test_object_deps_done=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3717
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3718 # The `*' in the case matches for architectures that use `case' in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3719 # $output_verbose_cmd can trigger glob expansion during the loop
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3720 # eval without this substitution.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3721 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3722
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3723 for p in `eval $output_verbose_link_cmd`; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3724 case $p in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3725
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3726 -L* | -R* | -l*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3727 # Some compilers place space between "-{L,R}" and the path.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3728 # Remove the space.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3729 if test $p = "-L" \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3730 || test $p = "-R"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3731 prev=$p
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3732 continue
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3733 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3734 prev=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3735 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3736
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3737 if test "$pre_test_object_deps_done" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3738 case $p in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3739 -L* | -R*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3740 # Internal compiler library paths should come after those
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3741 # provided the user. The postdeps already come after the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3742 # user supplied libs so there is no need to process them.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3743 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3744 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3745 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3746 _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
3747 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3748 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3749 # The "-l" case would never come before the object being
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3750 # linked, so don't bother handling this case.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3751 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3752 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3753 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3754 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3755 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3756 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3757 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3758 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3759 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3760
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3761 *.$objext)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3762 # This assumes that the test object file only shows up
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3763 # once in the compiler output.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3764 if test "$p" = "conftest.$objext"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3765 pre_test_object_deps_done=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3766 continue
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3767 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3768
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3769 if test "$pre_test_object_deps_done" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3770 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3771 _LT_AC_TAGVAR(predep_objects, $1)="$p"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3772 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3773 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3774 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3775 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3776 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3777 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3778 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3779 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3780 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3781 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3782 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3783
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3784 *) ;; # Ignore the rest.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3785
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3786 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3787 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3788
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3789 # Clean up.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3790 rm -f a.out a.exe
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3791 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3792 echo "libtool.m4: error: problem compiling $1 test program"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3793 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3794
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3795 $rm -f confest.$objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3796
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3797 # PORTME: override above test on systems where it is broken
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3798 ifelse([$1],[CXX],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3799 [case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3800 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3801 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3802 CC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3803 # Adding this requires a known-good setup of shared libraries for
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3804 # Sun compiler versions before 5.6, else PIC objects from an old
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3805 # archive will be linked into the output, leading to subtle bugs.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3806 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3807 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3808 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3809 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3810 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3811 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3812
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3813 case " $_LT_AC_TAGVAR(postdeps, $1) " in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3814 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3815 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3816 ])# AC_LIBTOOL_POSTDEP_PREDEP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3817
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3818 # AC_LIBTOOL_LANG_F77_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3819 # ------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3820 # Ensure that the configuration vars for the C compiler are
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3821 # suitably defined. Those variables are subsequently used by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3822 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3823 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3824 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3825 [AC_REQUIRE([AC_PROG_F77])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3826 AC_LANG_PUSH(Fortran 77)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3827
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3828 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3829 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3830 _LT_AC_TAGVAR(always_export_symbols, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3831 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3832 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3833 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3834 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3835 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3836 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3837 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3838 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3839 _LT_AC_TAGVAR(module_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3840 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3841 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3842 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3843 _LT_AC_TAGVAR(no_undefined_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3844 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3845 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3846
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3847 # Source file extension for f77 test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3848 ac_ext=f
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3849
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3850 # Object file extension for compiled f77 test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3851 objext=o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3852 _LT_AC_TAGVAR(objext, $1)=$objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3853
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3854 # Code to be used in simple compile tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3855 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3856
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3857 # Code to be used in simple link tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3858 lt_simple_link_test_code=" program t\n end\n"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3859
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3860 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3861 _LT_AC_SYS_COMPILER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3862
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3863 # save warnings/boilerplate of simple test code
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3864 _LT_COMPILER_BOILERPLATE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3865 _LT_LINKER_BOILERPLATE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3866
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3867 # Allow CC to be a program name with arguments.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3868 lt_save_CC="$CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3869 CC=${F77-"f77"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3870 compiler=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3871 _LT_AC_TAGVAR(compiler, $1)=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3872 _LT_CC_BASENAME([$compiler])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3873
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3874 AC_MSG_CHECKING([if libtool supports shared libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3875 AC_MSG_RESULT([$can_build_shared])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3876
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3877 AC_MSG_CHECKING([whether to build shared libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3878 test "$can_build_shared" = "no" && enable_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3879
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3880 # On AIX, shared libraries and static libraries use the same namespace, and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3881 # are all built from PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3882 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3883 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3884 test "$enable_shared" = yes && enable_static=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3885 if test -n "$RANLIB"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3886 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3887 postinstall_cmds='$RANLIB $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3888 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3889 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3890 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3891 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3892 test "$enable_shared" = yes && enable_static=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3893 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3894 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3895 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3896 AC_MSG_RESULT([$enable_shared])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3897
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3898 AC_MSG_CHECKING([whether to build static libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3899 # Make sure either enable_shared or enable_static is yes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3900 test "$enable_shared" = yes || enable_static=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3901 AC_MSG_RESULT([$enable_static])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3902
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3903 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3904
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3905 _LT_AC_TAGVAR(GCC, $1)="$G77"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3906 _LT_AC_TAGVAR(LD, $1)="$LD"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3907
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3908 AC_LIBTOOL_PROG_COMPILER_PIC($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3909 AC_LIBTOOL_PROG_CC_C_O($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3910 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3911 AC_LIBTOOL_PROG_LD_SHLIBS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3912 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3913 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3914 AC_LIBTOOL_SYS_LIB_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3915
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3916
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3917 AC_LIBTOOL_CONFIG($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3918
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3919 AC_LANG_POP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3920 CC="$lt_save_CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3921 ])# AC_LIBTOOL_LANG_F77_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3922
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3923
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3924 # AC_LIBTOOL_LANG_GCJ_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3925 # --------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3926 # Ensure that the configuration vars for the C compiler are
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3927 # suitably defined. Those variables are subsequently used by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3928 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3929 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3930 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3931 [AC_LANG_SAVE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3932
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3933 # Source file extension for Java test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3934 ac_ext=java
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3935
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3936 # Object file extension for compiled Java test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3937 objext=o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3938 _LT_AC_TAGVAR(objext, $1)=$objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3939
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3940 # Code to be used in simple compile tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3941 lt_simple_compile_test_code="class foo {}\n"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3942
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3943 # Code to be used in simple link tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3944 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3945
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3946 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3947 _LT_AC_SYS_COMPILER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3948
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3949 # save warnings/boilerplate of simple test code
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3950 _LT_COMPILER_BOILERPLATE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3951 _LT_LINKER_BOILERPLATE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3952
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3953 # Allow CC to be a program name with arguments.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3954 lt_save_CC="$CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3955 CC=${GCJ-"gcj"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3956 compiler=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3957 _LT_AC_TAGVAR(compiler, $1)=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3958 _LT_CC_BASENAME([$compiler])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3959
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3960 # GCJ did not exist at the time GCC didn't implicitly link libc in.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3961 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3962
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3963 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3964
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3965 ## CAVEAT EMPTOR:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3966 ## There is no encapsulation within the following macros, do not change
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3967 ## the running order or otherwise move them around unless you know exactly
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3968 ## what you are doing...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3969 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3970 AC_LIBTOOL_PROG_COMPILER_PIC($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3971 AC_LIBTOOL_PROG_CC_C_O($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3972 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3973 AC_LIBTOOL_PROG_LD_SHLIBS($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3974 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3975 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3976 AC_LIBTOOL_SYS_LIB_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3977 AC_LIBTOOL_DLOPEN_SELF($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3978
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3979 AC_LIBTOOL_CONFIG($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3980
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3981 AC_LANG_RESTORE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3982 CC="$lt_save_CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3983 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3984
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3985
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3986 # AC_LIBTOOL_LANG_RC_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3987 # --------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3988 # Ensure that the configuration vars for the Windows resource compiler are
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3989 # suitably defined. Those variables are subsequently used by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3990 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3991 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3992 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3993 [AC_LANG_SAVE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3994
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3995 # Source file extension for RC test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3996 ac_ext=rc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3997
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3998 # Object file extension for compiled RC test sources.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3999 objext=o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4000 _LT_AC_TAGVAR(objext, $1)=$objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4001
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4002 # Code to be used in simple compile tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4003 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4004
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4005 # Code to be used in simple link tests
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4006 lt_simple_link_test_code="$lt_simple_compile_test_code"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4007
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4008 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4009 _LT_AC_SYS_COMPILER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4010
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4011 # save warnings/boilerplate of simple test code
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4012 _LT_COMPILER_BOILERPLATE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4013 _LT_LINKER_BOILERPLATE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4014
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4015 # Allow CC to be a program name with arguments.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4016 lt_save_CC="$CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4017 CC=${RC-"windres"}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4018 compiler=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4019 _LT_AC_TAGVAR(compiler, $1)=$CC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4020 _LT_CC_BASENAME([$compiler])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4021 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4022
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4023 AC_LIBTOOL_CONFIG($1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4024
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4025 AC_LANG_RESTORE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4026 CC="$lt_save_CC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4027 ])# AC_LIBTOOL_LANG_RC_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4028
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4029
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4030 # AC_LIBTOOL_CONFIG([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4031 # ----------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4032 # If TAGNAME is not passed, then create an initial libtool script
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4033 # with a default configuration from the untagged config vars. Otherwise
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4034 # add code to config.status for appending the configuration named by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4035 # TAGNAME from the matching tagged config vars.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4036 AC_DEFUN([AC_LIBTOOL_CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4037 [# The else clause should only fire when bootstrapping the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4038 # libtool distribution, otherwise you forgot to ship ltmain.sh
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4039 # with your package, and you will get complaints that there are
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4040 # no rules to generate ltmain.sh.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4041 if test -f "$ltmain"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4042 # 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
4043 # without removal of \ escapes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4044 if test -n "${ZSH_VERSION+set}" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4045 setopt NO_GLOB_SUBST
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4046 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4047 # Now quote all the things that may contain metacharacters while being
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4048 # careful not to overquote the AC_SUBSTed values. We take copies of the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4049 # variables and quote the copies for generation of the libtool script.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4050 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
4051 SED SHELL STRIP \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4052 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4053 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4054 deplibs_check_method reload_flag reload_cmds need_locks \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4055 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4056 lt_cv_sys_global_symbol_to_c_name_address \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4057 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4058 old_postinstall_cmds old_postuninstall_cmds \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4059 _LT_AC_TAGVAR(compiler, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4060 _LT_AC_TAGVAR(CC, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4061 _LT_AC_TAGVAR(LD, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4062 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4063 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4064 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4065 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4066 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4067 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4068 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4069 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4070 _LT_AC_TAGVAR(old_archive_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4071 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4072 _LT_AC_TAGVAR(predep_objects, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4073 _LT_AC_TAGVAR(postdep_objects, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4074 _LT_AC_TAGVAR(predeps, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4075 _LT_AC_TAGVAR(postdeps, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4076 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4077 _LT_AC_TAGVAR(archive_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4078 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4079 _LT_AC_TAGVAR(postinstall_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4080 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4081 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4082 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4083 _LT_AC_TAGVAR(no_undefined_flag, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4084 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4085 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4086 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4087 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4088 _LT_AC_TAGVAR(hardcode_automatic, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4089 _LT_AC_TAGVAR(module_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4090 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4091 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4092 _LT_AC_TAGVAR(exclude_expsyms, $1) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4093 _LT_AC_TAGVAR(include_expsyms, $1); do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4094
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4095 case $var in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4096 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4097 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4098 _LT_AC_TAGVAR(archive_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4099 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4100 _LT_AC_TAGVAR(module_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4101 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4102 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4103 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4104 extract_expsyms_cmds | reload_cmds | finish_cmds | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4105 postinstall_cmds | postuninstall_cmds | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4106 old_postinstall_cmds | old_postuninstall_cmds | \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4107 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4108 # Double-quote double-evaled strings.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4109 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
4110 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4111 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4112 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4113 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4114 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4115 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4116
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4117 case $lt_echo in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4118 *'\[$]0 --fallback-echo"')
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4119 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4120 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4121 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4122
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4123 ifelse([$1], [],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4124 [cfgfile="${ofile}T"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4125 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4126 $rm -f "$cfgfile"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4127 AC_MSG_NOTICE([creating $ofile])],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4128 [cfgfile="$ofile"])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4129
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4130 cat <<__EOF__ >> "$cfgfile"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4131 ifelse([$1], [],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4132 [#! $SHELL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4133
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4134 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4135 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4136 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4137 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4138 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4139 # Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4140 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4141 # This file is part of GNU Libtool:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4142 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4143 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4144 # This program is free software; you can redistribute it and/or modify
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4145 # it under the terms of the GNU General Public License as published by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4146 # the Free Software Foundation; either version 2 of the License, or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4147 # (at your option) any later version.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4148 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4149 # This program is distributed in the hope that it will be useful, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4150 # WITHOUT ANY WARRANTY; without even the implied warranty of
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4151 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4152 # General Public License for more details.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4153 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4154 # You should have received a copy of the GNU General Public License
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4155 # along with this program; if not, write to the Free Software
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4156 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4157 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4158 # As a special exception to the GNU General Public License, if you
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4159 # distribute this file as part of a program that contains a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4160 # configuration script generated by Autoconf, you may include it under
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4161 # the same distribution terms that you use for the rest of that program.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4162
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4163 # A sed program that does not truncate output.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4164 SED=$lt_SED
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4165
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4166 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4167 Xsed="$SED -e 1s/^X//"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4168
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4169 # The HP-UX ksh and POSIX shell print the target directory to stdout
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4170 # if CDPATH is set.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4171 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4172
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4173 # The names of the tagged configurations supported by this script.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4174 available_tags=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4175
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4176 # ### BEGIN LIBTOOL CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4177 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4178
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4179 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4180
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4181 # Shell to use when invoking shell scripts.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4182 SHELL=$lt_SHELL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4183
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4184 # Whether or not to build shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4185 build_libtool_libs=$enable_shared
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4186
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4187 # Whether or not to build static libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4188 build_old_libs=$enable_static
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4189
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4190 # Whether or not to add -lc for building shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4191 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4192
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4193 # Whether or not to disallow shared libs when runtime libs are static
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4194 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4195
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4196 # Whether or not to optimize for fast installation.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4197 fast_install=$enable_fast_install
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4198
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4199 # The host system.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4200 host_alias=$host_alias
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4201 host=$host
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4202 host_os=$host_os
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4203
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4204 # The build system.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4205 build_alias=$build_alias
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4206 build=$build
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4207 build_os=$build_os
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4208
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4209 # An echo program that does not interpret backslashes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4210 echo=$lt_echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4211
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4212 # The archiver.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4213 AR=$lt_AR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4214 AR_FLAGS=$lt_AR_FLAGS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4215
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4216 # A C compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4217 LTCC=$lt_LTCC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4218
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4219 # A language-specific compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4220 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4221
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4222 # Is the compiler the GNU C compiler?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4223 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4224
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4225 # An ERE matcher.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4226 EGREP=$lt_EGREP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4227
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4228 # The linker used to build libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4229 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4230
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4231 # Whether we need hard or soft links.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4232 LN_S=$lt_LN_S
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4233
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4234 # A BSD-compatible nm program.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4235 NM=$lt_NM
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4236
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4237 # A symbol stripping program
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4238 STRIP=$lt_STRIP
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4239
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4240 # Used to examine libraries when file_magic_cmd begins "file"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4241 MAGIC_CMD=$MAGIC_CMD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4242
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4243 # Used on cygwin: DLL creation program.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4244 DLLTOOL="$DLLTOOL"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4245
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4246 # Used on cygwin: object dumper.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4247 OBJDUMP="$OBJDUMP"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4248
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4249 # Used on cygwin: assembler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4250 AS="$AS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4251
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4252 # The name of the directory that contains temporary libtool files.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4253 objdir=$objdir
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4254
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4255 # How to create reloadable object files.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4256 reload_flag=$lt_reload_flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4257 reload_cmds=$lt_reload_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4258
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4259 # How to pass a linker flag through the compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4260 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4261
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4262 # Object file suffix (normally "o").
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4263 objext="$ac_objext"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4264
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4265 # Old archive suffix (normally "a").
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4266 libext="$libext"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4267
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4268 # Shared library suffix (normally ".so").
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4269 shrext_cmds='$shrext_cmds'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4270
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4271 # Executable file suffix (normally "").
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4272 exeext="$exeext"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4273
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4274 # Additional compiler flags for building library objects.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4275 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4276 pic_mode=$pic_mode
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4277
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4278 # What is the maximum length of a command?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4279 max_cmd_len=$lt_cv_sys_max_cmd_len
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4280
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4281 # Does compiler simultaneously support -c and -o options?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4282 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4283
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4284 # Must we lock files when doing compilation?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4285 need_locks=$lt_need_locks
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4286
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4287 # Do we need the lib prefix for modules?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4288 need_lib_prefix=$need_lib_prefix
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4289
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4290 # Do we need a version for libraries?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4291 need_version=$need_version
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4292
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4293 # Whether dlopen is supported.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4294 dlopen_support=$enable_dlopen
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4295
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4296 # Whether dlopen of programs is supported.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4297 dlopen_self=$enable_dlopen_self
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4298
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4299 # Whether dlopen of statically linked programs is supported.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4300 dlopen_self_static=$enable_dlopen_self_static
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4301
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4302 # Compiler flag to prevent dynamic linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4303 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4304
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4305 # Compiler flag to turn off builtin functions.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4306 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4307
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4308 # Compiler flag to allow reflexive dlopens.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4309 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4310
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4311 # Compiler flag to generate shared objects directly from archives.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4312 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4313
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4314 # Compiler flag to generate thread-safe objects.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4315 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4316
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4317 # Library versioning type.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4318 version_type=$version_type
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4319
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4320 # Format of library name prefix.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4321 libname_spec=$lt_libname_spec
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4322
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4323 # List of archive names. First name is the real one, the rest are links.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4324 # The last name is the one that the linker finds with -lNAME.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4325 library_names_spec=$lt_library_names_spec
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4326
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4327 # The coded name of the library, if different from the real name.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4328 soname_spec=$lt_soname_spec
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4329
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4330 # Commands used to build and install an old-style archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4331 RANLIB=$lt_RANLIB
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4332 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4333 old_postinstall_cmds=$lt_old_postinstall_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4334 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4335
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4336 # Create an old-style archive from a shared archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4337 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4338
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4339 # Create a temporary old-style archive to link instead of a shared archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4340 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4341
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4342 # Commands used to build and install a shared archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4343 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4344 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4345 postinstall_cmds=$lt_postinstall_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4346 postuninstall_cmds=$lt_postuninstall_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4347
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4348 # Commands used to build a loadable module (assumed same as above if empty)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4349 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4350 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4351
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4352 # Commands to strip libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4353 old_striplib=$lt_old_striplib
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4354 striplib=$lt_striplib
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4355
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4356 # Dependencies to place before the objects being linked to create a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4357 # shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4358 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4359
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4360 # Dependencies to place after the objects being linked to create a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4361 # shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4362 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4363
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4364 # Dependencies to place before the objects being linked to create a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4365 # shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4366 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4367
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4368 # Dependencies to place after the objects being linked to create a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4369 # shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4370 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4371
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4372 # The library search path used internally by the compiler when linking
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4373 # a shared library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4374 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4375
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4376 # Method to check whether dependent libraries are shared objects.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4377 deplibs_check_method=$lt_deplibs_check_method
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4378
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4379 # Command to use when deplibs_check_method == file_magic.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4380 file_magic_cmd=$lt_file_magic_cmd
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4381
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4382 # Flag that allows shared libraries with undefined symbols to be built.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4383 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4384
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4385 # Flag that forces no undefined symbols.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4386 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4387
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4388 # Commands used to finish a libtool library installation in a directory.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4389 finish_cmds=$lt_finish_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4390
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4391 # Same as above, but a single script fragment to be evaled but not shown.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4392 finish_eval=$lt_finish_eval
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4393
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4394 # Take the output of nm and produce a listing of raw symbols and C names.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4395 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4396
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4397 # Transform the output of nm in a proper C declaration
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4398 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4399
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4400 # Transform the output of nm in a C name address pair
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4401 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
4402
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4403 # This is the shared library runtime path variable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4404 runpath_var=$runpath_var
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4405
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4406 # This is the shared library path variable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4407 shlibpath_var=$shlibpath_var
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4408
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4409 # Is shlibpath searched before the hard-coded library search path?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4410 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4411
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4412 # How to hardcode a shared library path into an executable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4413 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4414
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4415 # Whether we should hardcode library paths into libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4416 hardcode_into_libs=$hardcode_into_libs
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4417
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4418 # Flag to hardcode \$libdir into a binary during linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4419 # This must work even if \$libdir does not exist.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4420 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4421
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4422 # If ld is used when linking, flag to hardcode \$libdir into
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4423 # a binary during linking. This must work even if \$libdir does
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4424 # not exist.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4425 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4426
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4427 # Whether we need a single -rpath flag with a separated argument.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4428 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4429
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4430 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4431 # resulting binary.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4432 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4433
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4434 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4435 # resulting binary.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4436 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4437
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4438 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4439 # the resulting binary.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4440 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4441
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4442 # Set to yes if building a shared library automatically hardcodes DIR into the library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4443 # and all subsequent libraries and executables linked against it.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4444 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4445
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4446 # Variables whose values should be saved in libtool wrapper scripts and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4447 # restored at relink time.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4448 variables_saved_for_relink="$variables_saved_for_relink"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4449
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4450 # Whether libtool must link a program against all its dependency libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4451 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4452
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4453 # Compile-time system search path for libraries
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4454 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4455
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4456 # Run-time system search path for libraries
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4457 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4458
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4459 # Fix the shell variable \$srcfile for the compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4460 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4461
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4462 # Set to yes if exported symbols are required.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4463 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4464
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4465 # The commands to list exported symbols.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4466 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4467
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4468 # The commands to extract the exported symbol list from a shared archive.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4469 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4470
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4471 # Symbols that should not be listed in the preloaded symbols.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4472 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4473
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4474 # Symbols that must always be exported.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4475 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4476
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4477 ifelse([$1],[],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4478 [# ### END LIBTOOL CONFIG],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4479 [# ### END LIBTOOL TAG CONFIG: $tagname])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4480
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4481 __EOF__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4482
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4483 ifelse([$1],[], [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4484 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4485 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4486 cat <<\EOF >> "$cfgfile"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4487
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4488 # AIX sometimes has problems with the GCC collect2 program. For some
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4489 # reason, if we set the COLLECT_NAMES environment variable, the problems
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4490 # vanish in a puff of smoke.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4491 if test "X${COLLECT_NAMES+set}" != Xset; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4492 COLLECT_NAMES=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4493 export COLLECT_NAMES
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4494 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4495 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4496 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4497 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4498
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4499 # We use sed instead of cat because bash on DJGPP gets confused if
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4500 # if finds mixed CR/LF and LF-only lines. Since sed operates in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4501 # text mode, it properly converts lines to CR/LF. This bash problem
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4502 # is reportedly fixed, but why not run on old versions too?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4503 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4504
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4505 mv -f "$cfgfile" "$ofile" || \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4506 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4507 chmod +x "$ofile"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4508 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4509 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4510 # If there is no Makefile yet, we rely on a make rule to execute
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4511 # `config.status --recheck' to rerun these tests and create the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4512 # libtool script then.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4513 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4514 if test -f "$ltmain_in"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4515 test -f Makefile && make "$ltmain"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4516 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4517 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4518 ])# AC_LIBTOOL_CONFIG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4519
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4520
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4521 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4522 # -------------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4523 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4524 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4525
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4526 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4527
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4528 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4529 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4530
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4531 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4532 lt_cv_prog_compiler_rtti_exceptions,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4533 [-fno-rtti -fno-exceptions], [],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4534 [_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
4535 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4536 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4537
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4538
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4539 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4540 # ---------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4541 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4542 [AC_REQUIRE([AC_CANONICAL_HOST])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4543 AC_REQUIRE([AC_PROG_NM])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4544 AC_REQUIRE([AC_OBJEXT])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4545 # Check for command to grab the raw symbol name followed by C symbol from nm.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4546 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4547 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4548 [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4549 # These are sane defaults that work on at least a few old systems.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4550 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4551
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4552 # Character class describing NM global symbol codes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4553 symcode='[[BCDEGRST]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4554
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4555 # Regexp to match symbols that can be accessed directly from C.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4556 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4557
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4558 # Transform an extracted symbol line into a proper C declaration
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4559 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4560
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4561 # Transform an extracted symbol line into symbol name and symbol address
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4562 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
4563
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4564 # Define system-specific variables.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4565 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4566 aix*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4567 symcode='[[BCDT]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4568 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4569 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4570 symcode='[[ABCDGISTW]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4571 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4572 hpux*) # Its linker distinguishes data from code symbols
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4573 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4574 symcode='[[ABCDEGRST]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4575 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4576 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
4577 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
4578 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4579 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4580 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4581 symcode='[[ABCDGIRSTW]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4582 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
4583 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
4584 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4585 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4586 irix* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4587 symcode='[[BCDEGRST]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4588 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4589 osf*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4590 symcode='[[BCDEGQRST]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4591 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4592 solaris* | sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4593 symcode='[[BDRT]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4594 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4595 sysv4)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4596 symcode='[[DFNSTU]]'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4597 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4598 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4599
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4600 # Handle CRLF in mingw tool chain
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4601 opt_cr=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4602 case $build_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4603 mingw*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4604 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4605 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4606 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4607
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4608 # If we're using GNU nm, then use its standard symbol codes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4609 case `$NM -V 2>&1` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4610 *GNU* | *'with BFD'*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4611 symcode='[[ABCDGIRSTW]]' ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4612 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4613
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4614 # Try without a prefix undercore, then with it.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4615 for ac_symprfx in "" "_"; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4616
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4617 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4618 symxfrm="\\1 $ac_symprfx\\2 \\2"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4619
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4620 # Write the raw and C identifiers.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4621 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
4622
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4623 # Check to see that the pipe works correctly.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4624 pipe_works=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4625
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4626 rm -f conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4627 cat > conftest.$ac_ext <<EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4628 #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4629 extern "C" {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4630 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4631 char nm_test_var;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4632 void nm_test_func(){}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4633 #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4634 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4635 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4636 int main(){nm_test_var='a';nm_test_func();return(0);}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4637 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4638
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4639 if AC_TRY_EVAL(ac_compile); then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4640 # Now try to grab the symbols.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4641 nlist=conftest.nm
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4642 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
4643 # Try sorting and uniquifying the output.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4644 if sort "$nlist" | uniq > "$nlist"T; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4645 mv -f "$nlist"T "$nlist"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4646 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4647 rm -f "$nlist"T
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4648 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4649
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4650 # Make sure that we snagged all the symbols we need.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4651 if grep ' nm_test_var$' "$nlist" >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4652 if grep ' nm_test_func$' "$nlist" >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4653 cat <<EOF > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4654 #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4655 extern "C" {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4656 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4657
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4658 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4659 # Now generate the symbol file.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4660 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4661
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4662 cat <<EOF >> conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4663 #if defined (__STDC__) && __STDC__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4664 # define lt_ptr_t void *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4665 #else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4666 # define lt_ptr_t char *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4667 # define const
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4668 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4669
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4670 /* The mapping between symbol names and symbols. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4671 const struct {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4672 const char *name;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4673 lt_ptr_t address;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4674 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4675 lt_preloaded_symbols[[]] =
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4676 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4677 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4678 $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
4679 cat <<\EOF >> conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4680 {0, (lt_ptr_t) 0}
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4681 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4682
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4683 #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4684 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4685 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4686 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4687 # Now try linking the two files.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4688 mv conftest.$ac_objext conftstm.$ac_objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4689 lt_save_LIBS="$LIBS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4690 lt_save_CFLAGS="$CFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4691 LIBS="conftstm.$ac_objext"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4692 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4693 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4694 pipe_works=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4695 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4696 LIBS="$lt_save_LIBS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4697 CFLAGS="$lt_save_CFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4698 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4699 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4700 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4701 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4702 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4703 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4704 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4705 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4706 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4707 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4708 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4709 cat conftest.$ac_ext >&5
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4710 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4711 rm -f conftest* conftst*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4712
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4713 # Do not use the global_symbol_pipe unless it works.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4714 if test "$pipe_works" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4715 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4716 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4717 lt_cv_sys_global_symbol_pipe=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4718 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4719 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4720 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4721 if test -z "$lt_cv_sys_global_symbol_pipe"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4722 lt_cv_sys_global_symbol_to_cdecl=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4723 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4724 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
4725 AC_MSG_RESULT(failed)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4726 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4727 AC_MSG_RESULT(ok)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4728 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4729 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4730
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4731
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4732 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4733 # ---------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4734 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4735 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4736 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4737 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4738
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4739 AC_MSG_CHECKING([for $compiler option to produce PIC])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4740 ifelse([$1],[CXX],[
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4741 # C++ specific cases for pic, static, wl, etc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4742 if test "$GXX" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4743 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4744 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4745
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4746 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4747 aix*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4748 # All AIX code is PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4749 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4750 # AIX 5 now supports IA64 processor
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4751 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4752 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4753 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4754 amigaos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4755 # FIXME: we need at least 68020 code to build shared libraries, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4756 # adding the `-m68020' flag to GCC prevents building anything better,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4757 # like `-m68040'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4758 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4759 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4760 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4761 # PIC is the default for these OSes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4762 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4763 mingw* | os2* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4764 # This hack is so that the source file can tell whether it is being
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4765 # built for inclusion in a dll (and should export symbols for example).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4766 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4767 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4768 darwin* | rhapsody*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4769 # PIC is the default on this platform
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4770 # Common symbols not allowed in MH_DYLIB files
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4771 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4772 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4773 *djgpp*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4774 # DJGPP does not support shared libraries at all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4775 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4776 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4777 sysv4*MP*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4778 if test -d /usr/nec; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4779 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4780 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4781 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4782 hpux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4784 # not for PA HP-UX.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4785 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4786 hppa*64*|ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4787 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4788 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4789 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4790 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4791 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4792 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4793 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4794 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4795 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4796 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4797 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4798 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4799 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4800 # All AIX code is PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4801 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4802 # AIX 5 now supports IA64 processor
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4803 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4804 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4805 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4806 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4807 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4808 chorus*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4809 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4810 cxch68*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4811 # Green Hills C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4812 # _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
4813 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4814 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4815 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4816 darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4817 # PIC is the default on this platform
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4818 # Common symbols not allowed in MH_DYLIB files
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4819 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4820 xlc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4821 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4822 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4823 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4824 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4825 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4826 dgux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4827 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4828 ec++*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4829 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4830 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4831 ghcx*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4832 # Green Hills C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4833 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4834 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4835 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4836 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4837 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4838 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4839 freebsd* | kfreebsd*-gnu | dragonfly*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4840 # FreeBSD uses GNU C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4841 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4842 hpux9* | hpux10* | hpux11*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4843 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4844 CC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4845 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4846 _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
4847 if test "$host_cpu" != ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4848 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4849 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4850 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4851 aCC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4852 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4853 _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
4854 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4855 hppa*64*|ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4856 # +Z the default
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4857 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4858 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4859 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4860 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4861 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4862 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4863 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4864 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4865 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4866 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4867 irix5* | irix6* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4868 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4869 CC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4870 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4871 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4872 # CC pic flag -KPIC is the default.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4873 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4874 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4875 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4876 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4877 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4878 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4879 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4880 KCC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4881 # KAI C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4882 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4883 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4884 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4885 icpc* | ecpc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4886 # Intel C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4887 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4888 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4889 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4890 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4891 pgCC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4892 # Portland Group C++ compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4893 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4894 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4895 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4896 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4897 cxx*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4898 # Compaq C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4899 # Make sure the PIC flag is empty. It appears that all Alpha
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4900 # Linux and Compaq Tru64 Unix objects are PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4901 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4902 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4903 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4904 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4905 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4906 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4907 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4908 lynxos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4909 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4910 m88k*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4911 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4912 mvs*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4913 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4914 cxx*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4915 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4916 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4917 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4918 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4919 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4920 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4921 netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4922 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4923 osf3* | osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4924 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4925 KCC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4926 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4927 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4928 RCC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4929 # Rational C++ 2.4.1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4930 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4931 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4932 cxx*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4933 # Digital/Compaq C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4934 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4935 # Make sure the PIC flag is empty. It appears that all Alpha
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4936 # Linux and Compaq Tru64 Unix objects are PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4937 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4938 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4939 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4940 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4941 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4942 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4943 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4944 psos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4945 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4946 sco*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4947 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4948 CC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4949 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4950 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4951 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4952 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4953 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4954 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4955 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4956 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4957 CC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4958 # Sun C++ 4.2, 5.x and Centerline C++
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4959 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4960 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4961 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4962 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4963 gcx*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4964 # Green Hills C++ Compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4965 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4966 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4967 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4968 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4969 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4970 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4971 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4972 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4973 CC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4974 # Sun C++ 4.x
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4975 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4976 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4977 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4978 lcc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4979 # Lucid
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4980 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4981 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4982 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4983 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4984 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4985 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4986 tandem*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4987 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4988 NCC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4989 # NonStop-UX NCC 3.20
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4990 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4991 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4992 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4993 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4994 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4995 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4996 unixware* | sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4997 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4998 CC*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4999 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5000 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5001 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5002 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5003 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5004 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5005 vxworks*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5006 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5007 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5008 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5009 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5010 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5011 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5012 ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5013 [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5014 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5015 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5016 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5017
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5018 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5019 aix*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5020 # All AIX code is PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5021 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5022 # AIX 5 now supports IA64 processor
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5023 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5024 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5025 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5026
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5027 amigaos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5028 # FIXME: we need at least 68020 code to build shared libraries, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5029 # adding the `-m68020' flag to GCC prevents building anything better,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5030 # like `-m68040'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5031 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5032 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5033
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5034 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5035 # PIC is the default for these OSes.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5036 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5037
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5038 mingw* | pw32* | os2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5039 # This hack is so that the source file can tell whether it is being
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5040 # built for inclusion in a dll (and should export symbols for example).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5041 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5042 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5043
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5044 darwin* | rhapsody*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5045 # PIC is the default on this platform
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5046 # Common symbols not allowed in MH_DYLIB files
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5047 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5048 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5049
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5050 msdosdjgpp*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5051 # Just because we use GCC doesn't mean we suddenly get shared libraries
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5052 # on systems that don't support them.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5053 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5054 enable_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5055 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5056
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5057 sysv4*MP*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5058 if test -d /usr/nec; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5059 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5060 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5061 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5062
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5063 hpux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5064 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5065 # not for PA HP-UX.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5066 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5067 hppa*64*|ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5068 # +Z the default
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5069 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5070 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5071 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5072 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5073 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5074 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5075
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5076 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5077 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5078 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5079 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5080 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5081 # PORTME Check for flag to pass linker flags through the system compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5082 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5083 aix*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5084 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5085 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5086 # AIX 5 now supports IA64 processor
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5087 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5088 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5089 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5090 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5091 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5092 darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5093 # PIC is the default on this platform
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5094 # Common symbols not allowed in MH_DYLIB files
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5095 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5096 xlc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5097 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5098 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5099 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5100 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5101 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5102
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5103 mingw* | pw32* | os2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5104 # This hack is so that the source file can tell whether it is being
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5105 # built for inclusion in a dll (and should export symbols for example).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5106 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5107 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5108
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5109 hpux9* | hpux10* | hpux11*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5110 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5111 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5112 # not for PA HP-UX.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5113 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5114 hppa*64*|ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5115 # +Z the default
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5116 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5117 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5118 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5119 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5120 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5121 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5122 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5123 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5124
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5125 irix5* | irix6* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5126 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5127 # PIC (with -KPIC) is the default.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5128 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5129 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5130
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5131 newsos6)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5132 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5133 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5134 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5135
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5136 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5137 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5138 icc* | ecc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5139 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5140 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5141 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5142 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5143 pgcc* | pgf77* | pgf90* | pgf95*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5144 # Portland Group compilers (*not* the Pentium gcc compiler,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5145 # which looks to be a dead project)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5146 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5147 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5148 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5149 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5150 ccc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5151 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5152 # All Alpha code is PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5153 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5154 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5155 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5156 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5157
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5158 osf3* | osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5159 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5160 # All OSF/1 code is PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5161 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5162 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5163
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5164 sco3.2v5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5165 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5166 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5167 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5168
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5169 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5170 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5171 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5172 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5173 f77* | f90* | f95*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5174 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5175 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5176 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5177 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5178 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5179
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5180 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5181 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5182 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5183 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5184 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5185
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5186 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5187 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5188 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5189 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5190 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5191
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5192 sysv4*MP*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5193 if test -d /usr/nec ;then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5194 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5195 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5196 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5197 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5198
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5199 unicos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5200 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5201 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5202 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5203
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5204 uts4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5205 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5206 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5207 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5208
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5209 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5210 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5211 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5212 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5213 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5214 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5215 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5216
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5217 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5218 # Check to make sure the PIC flag actually works.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5219 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5220 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5221 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
5222 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5223 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5224 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5225 "" | " "*) ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5226 *) _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
5227 esac],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5228 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5229 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5230 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5231 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5232 # For platforms which do not support PIC, -DPIC is meaningless:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5233 *djgpp*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5234 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5235 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5236 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5237 _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
5238 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5239 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5240 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5241
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5242
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5243 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5244 # ------------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5245 # See if the linker supports building shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5246 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5247 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5248 ifelse([$1],[CXX],[
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5249 _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
5250 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5251 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5252 # If we're using GNU nm, then we don't want the "-C" option.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5253 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5254 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5255 _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
5256 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5257 _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
5258 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5259 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5260 pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5261 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5262 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5263 cygwin* | mingw*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5264 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5265 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5266 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5267 _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
5268 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5269 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5270 ],[
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5271 runpath_var=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5272 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5273 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5274 _LT_AC_TAGVAR(archive_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5275 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5276 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5277 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5278 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5279 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5280 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5281 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5282 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5283 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5284 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5285 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5286 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5287 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5288 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5289 _LT_AC_TAGVAR(module_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5290 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5291 _LT_AC_TAGVAR(always_export_symbols, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5292 _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
5293 # include_expsyms should be a list of space-separated symbols to be *always*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5294 # included in the symbol list
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5295 _LT_AC_TAGVAR(include_expsyms, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5296 # exclude_expsyms can be an extended regexp of symbols to exclude
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5297 # it will be wrapped by ` (' and `)$', so one must not match beginning or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5298 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5299 # as well as any symbol that contains `d'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5300 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5301 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5302 # platforms (ab)use it in PIC code, but their linkers get confused if
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5303 # the symbol is explicitly referenced. Since portable code cannot
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5304 # rely on this symbol name, it's probably fine to never include it in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5305 # preloaded symbol tables.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5306 extract_expsyms_cmds=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5307 # Just being paranoid about ensuring that cc_basename is set.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5308 _LT_CC_BASENAME([$compiler])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5309 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5310 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5311 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5312 # When not using gcc, we currently assume that we are using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5313 # Microsoft Visual C++.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5314 if test "$GCC" != yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5315 with_gnu_ld=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5316 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5317 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5318 openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5319 with_gnu_ld=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5320 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5321 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5322
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5323 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5324 if test "$with_gnu_ld" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5325 # If archive_cmds runs LD, not CC, wlarc should be empty
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5326 wlarc='${wl}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5327
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5328 # Set some defaults for GNU ld with shared library support. These
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5329 # are reset later if shared libraries are not supported. Putting them
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5330 # here allows them to be overridden if necessary.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5331 runpath_var=LD_RUN_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5332 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5333 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5334 # ancient GNU ld didn't support --whole-archive et. al.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5335 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5336 _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
5337 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5338 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5339 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5340 supports_anon_versioning=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5341 case `$LD -v 2>/dev/null` in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5342 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5343 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5344 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5345 *\ 2.11.*) ;; # other 2.11 versions
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5346 *) supports_anon_versioning=yes ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5347 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5348
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5349 # See if GNU ld supports shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5350 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5351 aix3* | aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5352 # On AIX/PPC, the GNU linker is very broken
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5353 if test "$host_cpu" != ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5354 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5355 cat <<EOF 1>&2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5356
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5357 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5358 *** to be unable to reliably create shared libraries on AIX.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5359 *** Therefore, libtool is disabling shared libraries support. If you
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5360 *** really care for shared libraries, you may want to modify your PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5361 *** so that a non-GNU linker is found, and then restart.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5362
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5363 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5364 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5365 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5366
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5367 amigaos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5368 _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
5369 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5370 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5371
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5372 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5373 # that the semantics of dynamic libraries on AmigaOS, at least up
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5374 # to version 4, is to share data among multiple programs linked
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5375 # with the same dynamic library. Since this doesn't match the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5376 # behavior of shared libraries on other platforms, we can't use
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5377 # them.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5378 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5379 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5380
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5381 beos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5382 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5383 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5384 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5385 # support --undefined. This deserves some investigation. FIXME
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5386 _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
5387 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5388 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5389 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5390 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5391
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5392 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5393 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5394 # as there is no search path for DLLs.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5395 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5396 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5397 _LT_AC_TAGVAR(always_export_symbols, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5398 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5399 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5400
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5401 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5402 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5403 # If the export-symbols file already is a .def file (1st line
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5404 # is EXPORTS), use it as is; otherwise, prepend...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5405 _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
5406 cp $export_symbols $output_objdir/$soname.def;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5407 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5408 echo EXPORTS > $output_objdir/$soname.def;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5409 cat $export_symbols >> $output_objdir/$soname.def;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5410 fi~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5411 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5412 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5413 _LT_AC_TAGVAR(ld_shlibs, $1)=no
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5417 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5418 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5419 tmp_addflag=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5420 case $cc_basename,$host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5421 pgcc*) # Portland Group C compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5422 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5423 tmp_addflag=' $pic_flag'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5424 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5425 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5426 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5427 tmp_addflag=' $pic_flag -Mnomain' ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5428 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5429 tmp_addflag=' -i_dynamic' ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5430 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5431 tmp_addflag=' -i_dynamic -nofor_main' ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5432 ifc* | ifort*) # Intel Fortran compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5433 tmp_addflag=' -nofor_main' ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5434 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5435 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5436
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5437 if test $supports_anon_versioning = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5438 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5439 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5440 $echo "local: *; };" >> $output_objdir/$libname.ver~
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5441 $CC -shared'"$tmp_addflag"' $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
5442 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5443 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5444 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5445 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5446 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5447
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5448 netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5450 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5451 wlarc=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5452 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5453 _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
5454 _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
5455 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5456 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5457
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5458 solaris* | sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5459 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5460 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5461 cat <<EOF 1>&2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5462
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5463 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5464 *** create shared libraries on Solaris systems. Therefore, libtool
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5465 *** is disabling shared libraries support. We urge you to upgrade GNU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5466 *** binutils to release 2.9.1 or newer. Another option is to modify
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5467 *** your PATH or compiler configuration so that the native linker is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5468 *** used, and then restart.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5469
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5470 EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5471 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5472 _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
5473 _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
5474 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5475 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5476 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5477 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5478
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5479 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5480 _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
5481 wlarc=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5482 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5483 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5484 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5485
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5486 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5487 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5488 _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
5489 _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
5490 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5491 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5492 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5493 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5494 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5495
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5496 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5497 runpath_var=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5498 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5499 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5500 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5501 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5502 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5503 # PORTME fill in a description of your system's linker (not GNU ld)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5504 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5505 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5506 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5507 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5508 _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
5509 # Note: this linker hardcodes the directories in LIBPATH if there
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5510 # are no directories specified by -L.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5511 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5512 if test "$GCC" = yes && test -z "$link_static_flag"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5513 # Neither direct hardcoding nor static linking is supported with a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5514 # broken collect2.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5515 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5516 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5517 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5518
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5519 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5520 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5521 # On IA64, the linker does run time linking by default, so we don't
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5522 # have to do anything special.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5523 aix_use_runtimelinking=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5524 exp_sym_flag='-Bexport'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5525 no_entry_flag=""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5526 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5527 # If we're using GNU nm, then we don't want the "-C" option.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5528 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5529 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5530 _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
5531 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5532 _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
5533 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5534 aix_use_runtimelinking=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5535
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5536 # Test if we are trying to use run time linking or normal
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5537 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5538 # need to do runtime linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5539 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5540 for ld_flag in $LDFLAGS; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5541 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5542 aix_use_runtimelinking=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5543 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5544 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5545 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5546 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5547 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5548
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5549 exp_sym_flag='-bexport'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5550 no_entry_flag='-bnoentry'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5551 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5552
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5553 # When large executables or shared objects are built, AIX ld can
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5554 # have problems creating the table of contents. If linking a library
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5555 # or program results in "error TOC overflow" add -mminimal-toc to
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5556 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5557 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5558
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5559 _LT_AC_TAGVAR(archive_cmds, $1)=''
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5560 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5561 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5562 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5563
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5564 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5565 case $host_os in aix4.[[012]]|aix4.[[012]].*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5566 # We only want to do this on AIX 4.2 and lower, the check
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5567 # below for broken collect2 doesn't work under 4.3+
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5568 collect2name=`${CC} -print-prog-name=collect2`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5569 if test -f "$collect2name" && \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5570 strings "$collect2name" | grep resolve_lib_name >/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5571 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5572 # We have reworked collect2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5573 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5574 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5575 # We have old collect2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5576 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5577 # It fails to find uninstalled libraries when the uninstalled
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5578 # path is not listed in the libpath. Setting hardcode_minus_L
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5579 # to unsupported forces relinking
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5580 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5581 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5582 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5583 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5584 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5585 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5586 shared_flag='-shared'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5587 if test "$aix_use_runtimelinking" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5588 shared_flag="$shared_flag "'${wl}-G'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5589 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5590 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5591 # not using gcc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5592 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5593 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5594 # chokes on -Wl,-G. The following line is correct:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5595 shared_flag='-G'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5596 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5597 if test "$aix_use_runtimelinking" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5598 shared_flag='${wl}-G'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5599 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5600 shared_flag='${wl}-bM:SRE'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5601 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5602 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5603 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5604
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5605 # It seems that -bexpall does not export symbols beginning with
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5606 # underscore (_), so it is better to generate a list of symbols to export.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5607 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5608 if test "$aix_use_runtimelinking" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5609 # Warning - without using the other runtime loading flags (-brtl),
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5610 # -berok will link without error, but may produce a broken library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5611 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5612 # Determine the default libpath from the value encoded in an empty executable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5613 _LT_AC_SYS_LIBPATH_AIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5614 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5615 _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
5616 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5617 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5618 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5619 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5620 _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
5621 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5622 # Determine the default libpath from the value encoded in an empty executable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5623 _LT_AC_SYS_LIBPATH_AIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5624 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5625 # Warning - without using the other run time loading flags,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5626 # -berok will link without error, but may produce a broken library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5627 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5628 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5629 # -bexpall does not export symbols beginning with underscore (_)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5630 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5631 # Exported symbols can be pulled into shared objects from archives
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5632 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5633 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5634 # This is similar to how AIX traditionally builds its shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5635 _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
5636 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5637 fi
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 amigaos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5641 _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
5642 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5643 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5644 # see comment about different semantics on the GNU ld section
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5645 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5646 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5647
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5648 bsdi[[45]]*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5649 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5650 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5651
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5652 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5653 # When not using gcc, we currently assume that we are using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5654 # Microsoft Visual C++.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5655 # hardcode_libdir_flag_spec is actually meaningless, as there is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5656 # no search path for DLLs.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5657 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5658 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5659 # Tell ltmain to make .lib files, not .a files.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5660 libext=lib
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5661 # Tell ltmain to make .dll files, not .so files.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5662 shrext_cmds=".dll"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5663 # FIXME: Setting linknames here is a bad hack.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5664 _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
5665 # The linker will automatically build a .lib file if we build a DLL.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5666 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5667 # FIXME: Should let the user specify the lib program.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5668 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5669 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5670 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5671 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5672
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5673 darwin* | rhapsody*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5674 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5675 rhapsody* | darwin1.[[012]])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5676 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5677 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5678 *) # Darwin 1.3 on
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5679 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5680 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5681 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5682 case ${MACOSX_DEPLOYMENT_TARGET} in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5683 10.[[012]])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5684 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5685 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5686 10.*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5687 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5688 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5689 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5690 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5691 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5692 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5693 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5694 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5695 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5696 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5697 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5698 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5699 if test "$GCC" = yes ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5700 output_verbose_link_cmd='echo'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5701 _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
5702 _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
5703 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5704 _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
5705 _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
5706 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5707 case $cc_basename in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5708 xlc*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5709 output_verbose_link_cmd='echo'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5710 _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
5711 _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
5712 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5713 _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
5714 _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
5715 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5716 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5717 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5718 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5719 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5720 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5721 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5722
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5723 dgux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5724 _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
5725 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5726 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5727 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5728
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5729 freebsd1*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5730 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5731 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5732
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5733 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5734 # support. Future versions do this automatically, but an explicit c++rt0.o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5735 # does not break anything, and helps significantly (at the cost of a little
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5736 # extra space).
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5737 freebsd2.2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5738 _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
5739 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5740 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5741 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5742 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5743
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5744 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5745 freebsd2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5746 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5747 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5748 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5749 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
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 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5753 freebsd* | kfreebsd*-gnu | dragonfly*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5754 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5755 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5756 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5757 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5758 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5759
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5760 hpux9*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5761 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5762 _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
5763 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5764 _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
5765 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5766 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5767 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5768 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5769
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5770 # hardcode_minus_L: Not really in the search PATH,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5771 # but as the default location of the library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5772 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5773 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5774 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5775
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5776 hpux10* | hpux11*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5777 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5778 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5779 hppa*64*|ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5780 _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
5781 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5782 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5783 _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
5784 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5785 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5786 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5787 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5788 hppa*64*|ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5789 _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
5790 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5791 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5792 _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
5793 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5794 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5795 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5796 if test "$with_gnu_ld" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5797 case $host_cpu in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5798 hppa*64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5799 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5800 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5801 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5802 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5803 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5804 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5805 ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5806 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5807 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5808 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5809
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5810 # hardcode_minus_L: Not really in the search PATH,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5811 # but as the default location of the library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5812 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5813 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5814 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5815 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5816 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5817 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5818 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5819
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5820 # hardcode_minus_L: Not really in the search PATH,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5821 # but as the default location of the library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5822 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5823 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5824 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5825 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5826 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5827
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5828 irix5* | irix6* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5829 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5830 _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
5831 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5832 _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
5833 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5834 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5835 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5836 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5837 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5838 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5839
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5840 netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5842 _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
5843 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5844 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5845 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5846 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5847 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5848 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5849 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5850
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5851 newsos6)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5852 _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
5853 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5854 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5855 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5856 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5857 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5858
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5859 openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5860 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5861 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5862 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
5863 _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
5864 _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
5865 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5866 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5867 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5868 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5869 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5870 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5871 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
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 _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
5875 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5876 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5877 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5878 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5879 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5880
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5881 os2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5882 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5883 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5884 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5885 _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
5886 _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
5887 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5888
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5889 osf3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5890 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5891 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5892 _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
5893 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5894 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5895 _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
5896 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5897 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5898 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5899 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5900
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5901 osf4* | osf5*) # as osf3* with the addition of -msym flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5902 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5903 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5904 _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
5905 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5906 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5907 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5908 _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
5909 _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
5910 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5911
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5912 # Both c and cxx compiler support -rpath directly
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5913 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5914 fi
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 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5917
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5918 sco3.2v5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5919 _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
5920 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5921 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5922 runpath_var=LD_RUN_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5923 hardcode_runpath_var=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5924 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5925
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5926 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5927 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5928 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5929 wlarc='${wl}'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5930 _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
5931 _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
5932 $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
5933 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5934 wlarc=''
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5935 _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
5936 _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
5937 $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
5938 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5939 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5940 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5941 case $host_os in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5942 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5943 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5944 # The compiler driver will combine linker options so we
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5945 # cannot just pass the convience library names through
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5946 # without $wl, iff we do not link with $LD.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5947 # Luckily, gcc supports the same syntax we need for Sun Studio.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5948 # Supported since Solaris 2.6 (maybe 2.5.1?)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5949 case $wlarc in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5950 '')
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5951 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5952 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5953 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5954 esac ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5955 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5956 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5957 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5958
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5959 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5960 if test "x$host_vendor" = xsequent; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5961 # Use $CC to link under sequent, because it throws in some extra .o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5962 # files that make .init and .fini sections work.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5963 _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
5964 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5965 _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
5966 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5967 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5968 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5969 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5970 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5971 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5972
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5973 sysv4)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5974 case $host_vendor in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5975 sni)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5976 _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
5977 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5978 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5979 siemens)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5980 ## LD is ld it makes a PLAMLIB
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5981 ## CC just makes a GrossModule.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5982 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5983 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5984 _LT_AC_TAGVAR(hardcode_direct, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5985 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5986 motorola)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5987 _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
5988 _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
5989 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5990 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5991 runpath_var='LD_RUN_PATH'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5992 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5993 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5994
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5995 sysv4.3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5996 _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
5997 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5998 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5999 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6000
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6001 sysv4*MP*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6002 if test -d /usr/nec; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6003 _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
6004 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6005 runpath_var=LD_RUN_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6006 hardcode_runpath_var=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6007 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6008 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6009 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6010
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6011 sysv4.2uw2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6012 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6013 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6014 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6015 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6016 hardcode_runpath_var=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6017 runpath_var=LD_RUN_PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6018 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6019
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6020 sysv5OpenUNIX8* | sysv5UnixWare7.[[01]].[[10]]* | sysv5uw[[78]]* | unixware7*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6021 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6022 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6023 _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
6024 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6025 _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
6026 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6027 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6028 runpath_var='LD_RUN_PATH'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6029 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6030 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6031
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6032 sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6033 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6034 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6035 _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
6036 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6037 _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
6038 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6039 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6040 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6041 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6042 runpath_var='LD_RUN_PATH'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6043 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6044 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6045
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6046 uts4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6047 _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
6048 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6049 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6050 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6051
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6052 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6053 _LT_AC_TAGVAR(ld_shlibs, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6054 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6055 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6056 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6057 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6058 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6059 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6060
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6061 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6062 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6063 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6064 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6065
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6066 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6067 # Do we need to explicitly link libc?
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6068 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6069 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6070 x|xyes)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6071 # Assume -lc should be added
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6072 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6073
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6074 if test "$enable_shared" = yes && test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6075 case $_LT_AC_TAGVAR(archive_cmds, $1) in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6076 *'~'*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6077 # FIXME: we may have to deal with multi-command sequences.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6078 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6079 '$CC '*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6080 # Test whether the compiler implicitly links with -lc since on some
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6081 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6082 # to ld, don't add -lc before -lgcc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6083 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6084 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6085 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6086
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6087 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6088 soname=conftest
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6089 lib=conftest
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6090 libobjs=conftest.$ac_objext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6091 deplibs=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6092 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6093 compiler_flags=-v
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6094 linker_flags=-v
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6095 verstring=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6096 output_objdir=.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6097 libname=conftest
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6098 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6099 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6100 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
6101 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6102 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6103 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6104 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6105 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6106 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6107 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6108 cat conftest.err 1>&5
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6109 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6110 $rm conftest*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6111 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6112 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6113 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6114 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6115 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6116 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6117 ])# AC_LIBTOOL_PROG_LD_SHLIBS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6118
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6119
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6120 # _LT_AC_FILE_LTDLL_C
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6121 # -------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6122 # Be careful that the start marker always follows a newline.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6123 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6124 # /* ltdll.c starts here */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6125 # #define WIN32_LEAN_AND_MEAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6126 # #include <windows.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6127 # #undef WIN32_LEAN_AND_MEAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6128 # #include <stdio.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6129 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6130 # #ifndef __CYGWIN__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6131 # # ifdef __CYGWIN32__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6132 # # define __CYGWIN__ __CYGWIN32__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6133 # # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6134 # #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6135 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6136 # #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6137 # extern "C" {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6138 # #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6139 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6140 # #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6141 # }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6142 # #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6143 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6144 # #ifdef __CYGWIN__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6145 # #include <cygwin/cygwin_dll.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6146 # DECLARE_CYGWIN_DLL( DllMain );
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6147 # #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6148 # HINSTANCE __hDllInstance_base;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6149 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6150 # BOOL APIENTRY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6151 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6152 # {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6153 # __hDllInstance_base = hInst;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6154 # return TRUE;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6155 # }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6156 # /* ltdll.c ends here */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6157 ])# _LT_AC_FILE_LTDLL_C
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6158
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6159
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6160 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6161 # ---------------------------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6162 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6163
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6164
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6165 # old names
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6166 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6167 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6168 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6169 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6170 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6171 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6172 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6173
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6174 # This is just to silence aclocal about the macro not being used
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6175 ifelse([AC_DISABLE_FAST_INSTALL])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6176
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6177 AC_DEFUN([LT_AC_PROG_GCJ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6178 [AC_CHECK_TOOL(GCJ, gcj, no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6179 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6180 AC_SUBST(GCJFLAGS)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6181 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6182
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6183 AC_DEFUN([LT_AC_PROG_RC],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6184 [AC_CHECK_TOOL(RC, windres, no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6185 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6186
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6187 ############################################################
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6188 # NOTE: This macro has been submitted for inclusion into #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6189 # GNU Autoconf as AC_PROG_SED. When it is available in #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6190 # a released version of Autoconf we should remove this #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6191 # macro and use it instead. #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6192 ############################################################
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6193 # LT_AC_PROG_SED
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6194 # --------------
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6195 # Check for a fully-functional sed program, that truncates
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6196 # as few characters as possible. Prefer GNU sed if found.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6197 AC_DEFUN([LT_AC_PROG_SED],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6198 [AC_MSG_CHECKING([for a sed that does not truncate output])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6199 AC_CACHE_VAL(lt_cv_path_SED,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6200 [# Loop through the user's path and test for sed and gsed.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6201 # Then use that list of sed's as ones to test for truncation.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6203 for as_dir in $PATH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6204 do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6205 IFS=$as_save_IFS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6206 test -z "$as_dir" && as_dir=.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6207 for lt_ac_prog in sed gsed; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6208 for ac_exec_ext in '' $ac_executable_extensions; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6209 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6210 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
6211 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6212 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6213 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6214 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6215 lt_ac_max=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6216 lt_ac_count=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6217 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6218 # along with /bin/sed that truncates output.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6219 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6220 test ! -f $lt_ac_sed && continue
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6221 cat /dev/null > conftest.in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6222 lt_ac_count=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6223 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6224 # Check for GNU sed and select it if it is found.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6225 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6226 lt_cv_path_SED=$lt_ac_sed
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6227 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6228 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6229 while true; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6230 cat conftest.in conftest.in >conftest.tmp
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6231 mv conftest.tmp conftest.in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6232 cp conftest.in conftest.nl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6233 echo >>conftest.nl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6234 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6235 cmp -s conftest.out conftest.nl || break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6236 # 10000 chars as input seems more than enough
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6237 test $lt_ac_count -gt 10 && break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6238 lt_ac_count=`expr $lt_ac_count + 1`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6239 if test $lt_ac_count -gt $lt_ac_max; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6240 lt_ac_max=$lt_ac_count
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6241 lt_cv_path_SED=$lt_ac_sed
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6242 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6243 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6244 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6245 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6246 SED=$lt_cv_path_SED
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6247 AC_MSG_RESULT([$SED])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6248 ])