annotate config.rpath @ 165:d2c091891237 trunk

[svn] sndfile checks
author nenolod
date Sat, 12 Nov 2005 18:02:29 -0800
parents cb178e5ad177
children f12d7e208b43
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 #! /bin/sh
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2 # Output a system dependent set of variables, describing how to set the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3 # run time search path of shared libraries in an executable.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 # Copyright 1996-2003 Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 # Taken from GNU libtool, 2001
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 # This program is free software; you can redistribute it and/or modify
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10 # it under the terms of the GNU General Public License as published by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 # the Free Software Foundation; either version 2 of the License, or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 # (at your option) any later version.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 # This program is distributed in the hope that it will be useful, but
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 # General Public License for more details.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 # You should have received a copy of the GNU General Public License
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 # along with this program; if not, write to the Free Software
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 # As a special exception to the GNU General Public License, if you
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24 # distribute this file as part of a program that contains a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 # configuration script generated by Autoconf, you may include it under
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26 # the same distribution terms that you use for the rest of that program.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28 # The first argument passed to this file is the canonical host specification,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 # or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32 # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33 # should be set by the caller.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 # The set of defined variables is at the end of this script.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 # Known limitations:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39 # than 256 bytes, otherwise the compiler driver will dump core. The only
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 # known workaround is to choose shorter directory names for the build
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41 # directory and/or the installation directory.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 # All known linkers require a `.a' archive for static linking (except M$VC,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 # which needs '.lib').
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 libext=a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 shrext=.so
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 host="$1"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50 host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 # Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 wl=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 wl='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 case "$host_os" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60 aix*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61 wl='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63 mingw* | pw32* | os2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 hpux9* | hpux10* | hpux11*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
66 wl='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68 irix5* | irix6* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69 wl='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 newsos6)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74 case $CC in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75 icc|ecc)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76 wl='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78 ccc)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79 wl='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
80 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
81 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
82 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
83 osf3* | osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
84 wl='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
85 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
86 sco3.2v5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
87 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
88 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
89 wl='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
90 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
91 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
92 wl='-Qoption ld '
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
93 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
94 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
95 wl='-Wl,'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
96 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
97 sysv4*MP*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
98 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
99 uts4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
100 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
101 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
102 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
103
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
104 # Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
105
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
106 hardcode_libdir_flag_spec=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
107 hardcode_libdir_separator=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
108 hardcode_direct=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
109 hardcode_minus_L=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
110
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
111 case "$host_os" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
112 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
113 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
114 # When not using gcc, we currently assume that we are using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
115 # Microsoft Visual C++.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
116 if test "$GCC" != yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
117 with_gnu_ld=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
118 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
119 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
120 openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
121 with_gnu_ld=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
122 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
123 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
124
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
125 ld_shlibs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
126 if test "$with_gnu_ld" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
127 case "$host_os" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
128 aix3* | aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
129 # On AIX/PPC, the GNU linker is very broken
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
130 if test "$host_cpu" != ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
131 ld_shlibs=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
132 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
133 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
134 amigaos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
135 hardcode_libdir_flag_spec='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
136 hardcode_minus_L=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
137 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
138 # that the semantics of dynamic libraries on AmigaOS, at least up
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
139 # to version 4, is to share data among multiple programs linked
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
140 # with the same dynamic library. Since this doesn't match the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
141 # behavior of shared libraries on other platforms, we can use
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
142 # them.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
143 ld_shlibs=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
144 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
145 beos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
146 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
147 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
148 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
149 ld_shlibs=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
150 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
151 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
152 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
153 # hardcode_libdir_flag_spec is actually meaningless, as there is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
154 # no search path for DLLs.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
155 hardcode_libdir_flag_spec='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
156 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
157 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
158 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
159 ld_shlibs=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
160 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
161 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
162 netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
163 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
164 solaris* | sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
165 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
166 ld_shlibs=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
167 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
168 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
169 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
170 ld_shlibs=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
171 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
172 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
173 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
174 hardcode_direct=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
175 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
176 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
177 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
178 :
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
179 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
180 ld_shlibs=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
181 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
182 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
183 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
184 if test "$ld_shlibs" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
185 # Unlike libtool, we use -rpath here, not --rpath, since the documented
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
186 # option of GNU ld is called -rpath, not --rpath.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
188 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
189 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
190 case "$host_os" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
191 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
192 # Note: this linker hardcodes the directories in LIBPATH if there
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
193 # are no directories specified by -L.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
194 hardcode_minus_L=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
195 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
196 # Neither direct hardcoding nor static linking is supported with a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
197 # broken collect2.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
198 hardcode_direct=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
199 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
200 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
201 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
202 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
203 # On IA64, the linker does run time linking by default, so we don't
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
204 # have to do anything special.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
205 aix_use_runtimelinking=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
206 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
207 aix_use_runtimelinking=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
208 # Test if we are trying to use run time linking or normal
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
209 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
210 # need to do runtime linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
211 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
212 for ld_flag in $LDFLAGS; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
213 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
214 aix_use_runtimelinking=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
215 break
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
216 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
217 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
218 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
219 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
220 hardcode_direct=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
221 hardcode_libdir_separator=':'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
222 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
223 case $host_os in aix4.[012]|aix4.[012].*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
224 collect2name=`${CC} -print-prog-name=collect2`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
225 if test -f "$collect2name" && \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
226 strings "$collect2name" | grep resolve_lib_name >/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
227 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
228 # We have reworked collect2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
229 hardcode_direct=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
230 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
231 # We have old collect2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
232 hardcode_direct=unsupported
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
233 hardcode_minus_L=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
234 hardcode_libdir_flag_spec='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
235 hardcode_libdir_separator=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
236 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
237 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
238 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
239 # Begin _LT_AC_SYS_LIBPATH_AIX.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
240 echo 'int main () { return 0; }' > conftest.c
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
241 ${CC} ${LDFLAGS} conftest.c -o conftest
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
242 aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
243 }'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
244 if test -z "$aix_libpath"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
245 aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
246 }'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
247 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
248 if test -z "$aix_libpath"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
249 aix_libpath="/usr/lib:/lib"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
250 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
251 rm -f conftest.c conftest
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
252 # End _LT_AC_SYS_LIBPATH_AIX.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
253 if test "$aix_use_runtimelinking" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
254 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
255 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
256 if test "$host_cpu" = ia64; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
257 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
258 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
259 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
260 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
261 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
262 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
263 amigaos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
264 hardcode_libdir_flag_spec='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
265 hardcode_minus_L=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
266 # see comment about different semantics on the GNU ld section
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
267 ld_shlibs=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
268 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
269 bsdi4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
270 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
271 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
272 # When not using gcc, we currently assume that we are using
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
273 # Microsoft Visual C++.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
274 # hardcode_libdir_flag_spec is actually meaningless, as there is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
275 # no search path for DLLs.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
276 hardcode_libdir_flag_spec=' '
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
277 libext=lib
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
278 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
279 darwin* | rhapsody*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
280 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
281 hardcode_direct=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
282 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
283 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
284 dgux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
285 hardcode_libdir_flag_spec='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
286 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
287 freebsd1*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
288 ld_shlibs=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
289 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
290 freebsd2.2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
291 hardcode_libdir_flag_spec='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
292 hardcode_direct=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
293 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
294 freebsd2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
295 hardcode_direct=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
296 hardcode_minus_L=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
297 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
298 freebsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
299 hardcode_libdir_flag_spec='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
300 hardcode_direct=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
301 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
302 hpux9*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
303 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
304 hardcode_libdir_separator=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
305 hardcode_direct=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
306 # hardcode_minus_L: Not really in the search PATH,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
307 # but as the default location of the library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
308 hardcode_minus_L=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
309 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
310 hpux10* | hpux11*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
311 if test "$with_gnu_ld" = no; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
312 case "$host_cpu" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
313 hppa*64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
314 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
315 hardcode_libdir_separator=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
316 hardcode_direct=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
317 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
318 ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
319 hardcode_libdir_flag_spec='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
320 hardcode_direct=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
321 # hardcode_minus_L: Not really in the search PATH,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
322 # but as the default location of the library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
323 hardcode_minus_L=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
324 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
325 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
327 hardcode_libdir_separator=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
328 hardcode_direct=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
329 # hardcode_minus_L: Not really in the search PATH,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
330 # but as the default location of the library.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
331 hardcode_minus_L=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
332 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
333 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
334 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
335 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
336 irix5* | irix6* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
338 hardcode_libdir_separator=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
339 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
340 netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
341 hardcode_libdir_flag_spec='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
342 hardcode_direct=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
343 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
344 newsos6)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
345 hardcode_direct=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
347 hardcode_libdir_separator=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
348 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
349 openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
350 hardcode_direct=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
351 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
352 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
353 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
354 case "$host_os" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
355 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
356 hardcode_libdir_flag_spec='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
357 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
358 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
359 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
360 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
361 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
362 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
363 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
364 os2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
365 hardcode_libdir_flag_spec='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
366 hardcode_minus_L=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
367 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
368 osf3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
370 hardcode_libdir_separator=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
371 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
372 osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
373 if test "$GCC" = yes; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
375 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
376 # Both cc and cxx compiler support -rpath directly
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
377 hardcode_libdir_flag_spec='-rpath $libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
378 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
379 hardcode_libdir_separator=:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
380 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
381 sco3.2v5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
382 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
383 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
384 hardcode_libdir_flag_spec='-R$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
385 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
386 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
387 hardcode_libdir_flag_spec='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
388 hardcode_direct=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
389 hardcode_minus_L=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
390 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
391 sysv4)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
392 case $host_vendor in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
393 sni)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
394 hardcode_direct=yes # is this really true???
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
395 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
396 siemens)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
397 hardcode_direct=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
398 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
399 motorola)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
400 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
401 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
402 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
403 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
404 sysv4.3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
405 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
406 sysv4*MP*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
407 if test -d /usr/nec; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
408 ld_shlibs=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
409 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
410 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
411 sysv4.2uw2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
412 hardcode_direct=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
413 hardcode_minus_L=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
414 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
415 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
416 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
417 sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
418 hardcode_libdir_flag_spec=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
419 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
420 uts4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
421 hardcode_libdir_flag_spec='-L$libdir'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
422 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
423 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
424 ld_shlibs=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
425 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
426 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
427 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
428
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
429 # Check dynamic linker characteristics
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
430 # Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
431 libname_spec='lib$name'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
432 case "$host_os" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
433 aix3*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
434 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
435 aix4* | aix5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
436 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
437 amigaos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
438 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
439 beos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
440 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
441 bsdi4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
442 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
443 cygwin* | mingw* | pw32*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
444 shrext=.dll
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
445 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
446 darwin* | rhapsody*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
447 shrext=.dylib
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
448 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
449 dgux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
450 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
451 freebsd1*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
452 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
453 freebsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
454 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
455 gnu*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
456 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
457 hpux9* | hpux10* | hpux11*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
458 case "$host_cpu" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
459 ia64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
460 shrext=.so
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
461 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
462 hppa*64*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
463 shrext=.sl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
464 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
465 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
466 shrext=.sl
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
467 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
468 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
469 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
470 irix5* | irix6* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
471 case "$host_os" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
472 irix5* | nonstopux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
473 libsuff= shlibsuff=
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
474 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
475 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
476 case $LD in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
477 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
478 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
479 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
480 *) libsuff= shlibsuff= ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
481 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
482 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
483 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
484 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
485 linux*oldld* | linux*aout* | linux*coff*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
486 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
487 linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
488 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
489 netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
490 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
491 newsos6)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
492 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
493 nto-qnx)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
494 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
495 openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
496 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
497 os2*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
498 libname_spec='$name'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
499 shrext=.dll
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
500 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
501 osf3* | osf4* | osf5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
502 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
503 sco3.2v5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
504 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
505 solaris*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
506 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
507 sunos4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
508 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
509 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
510 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
511 sysv4*MP*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
512 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
513 uts4*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
514 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
515 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
516
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
517 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
518 escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
519 shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
520 escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
521
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
522 sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
523
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
524 # How to pass a linker flag through the compiler.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
525 wl="$escaped_wl"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
526
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
527 # Static library suffix (normally "a").
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
528 libext="$libext"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
529
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
530 # Shared library suffix (normally "so").
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
531 shlibext="$shlibext"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
532
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
533 # Flag to hardcode \$libdir into a binary during linking.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
534 # This must work even if \$libdir does not exist.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
535 hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
536
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
537 # Whether we need a single -rpath flag with a separated argument.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
538 hardcode_libdir_separator="$hardcode_libdir_separator"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
539
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
540 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
541 # resulting binary.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
542 hardcode_direct="$hardcode_direct"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
543
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
544 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
545 # resulting binary.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
546 hardcode_minus_L="$hardcode_minus_L"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
547
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
548 EOF