Statistics
| Revision:

root / config.rpath @ 489

History | View | Annotate | Download (14.6 kB)

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