annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/share/gettext/config.rpath @ 68:5028fdace37b

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 16:23:26 -0400
parents
children
rev   line source
jpayne@68 1 #! /bin/sh
jpayne@68 2 # Output a system dependent set of variables, describing how to set the
jpayne@68 3 # run time search path of shared libraries in an executable.
jpayne@68 4 #
jpayne@68 5 # Copyright 1996-2024 Free Software Foundation, Inc.
jpayne@68 6 # Taken from GNU libtool, 2001
jpayne@68 7 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
jpayne@68 8 #
jpayne@68 9 # This file is free software; the Free Software Foundation gives
jpayne@68 10 # unlimited permission to copy and/or distribute it, with or without
jpayne@68 11 # modifications, as long as this notice is preserved.
jpayne@68 12 #
jpayne@68 13 # The first argument passed to this file is the canonical host specification,
jpayne@68 14 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
jpayne@68 15 # or
jpayne@68 16 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
jpayne@68 17 # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
jpayne@68 18 # should be set by the caller.
jpayne@68 19 #
jpayne@68 20 # The set of defined variables is at the end of this script.
jpayne@68 21
jpayne@68 22 # Known limitations:
jpayne@68 23 # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
jpayne@68 24 # than 256 bytes, otherwise the compiler driver will dump core. The only
jpayne@68 25 # known workaround is to choose shorter directory names for the build
jpayne@68 26 # directory and/or the installation directory.
jpayne@68 27
jpayne@68 28 # All known linkers require a '.a' archive for static linking (except MSVC,
jpayne@68 29 # which needs '.lib').
jpayne@68 30 libext=a
jpayne@68 31 shrext=.so
jpayne@68 32
jpayne@68 33 host="$1"
jpayne@68 34 host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
jpayne@68 35 host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
jpayne@68 36 host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
jpayne@68 37
jpayne@68 38 # Code taken from libtool.m4's _LT_CC_BASENAME.
jpayne@68 39
jpayne@68 40 for cc_temp in $CC""; do
jpayne@68 41 case $cc_temp in
jpayne@68 42 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
jpayne@68 43 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
jpayne@68 44 \-*) ;;
jpayne@68 45 *) break;;
jpayne@68 46 esac
jpayne@68 47 done
jpayne@68 48 cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
jpayne@68 49
jpayne@68 50 # Code taken from libtool.m4's _LT_COMPILER_PIC.
jpayne@68 51
jpayne@68 52 wl=
jpayne@68 53 if test "$GCC" = yes; then
jpayne@68 54 wl='-Wl,'
jpayne@68 55 else
jpayne@68 56 case "$host_os" in
jpayne@68 57 aix*)
jpayne@68 58 wl='-Wl,'
jpayne@68 59 ;;
jpayne@68 60 mingw* | cygwin* | pw32* | os2* | cegcc*)
jpayne@68 61 ;;
jpayne@68 62 hpux9* | hpux10* | hpux11*)
jpayne@68 63 wl='-Wl,'
jpayne@68 64 ;;
jpayne@68 65 irix5* | irix6* | nonstopux*)
jpayne@68 66 wl='-Wl,'
jpayne@68 67 ;;
jpayne@68 68 linux* | k*bsd*-gnu | kopensolaris*-gnu)
jpayne@68 69 case $cc_basename in
jpayne@68 70 ecc*)
jpayne@68 71 wl='-Wl,'
jpayne@68 72 ;;
jpayne@68 73 icc* | ifort*)
jpayne@68 74 wl='-Wl,'
jpayne@68 75 ;;
jpayne@68 76 lf95*)
jpayne@68 77 wl='-Wl,'
jpayne@68 78 ;;
jpayne@68 79 nagfor*)
jpayne@68 80 wl='-Wl,-Wl,,'
jpayne@68 81 ;;
jpayne@68 82 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
jpayne@68 83 wl='-Wl,'
jpayne@68 84 ;;
jpayne@68 85 ccc*)
jpayne@68 86 wl='-Wl,'
jpayne@68 87 ;;
jpayne@68 88 xl* | bgxl* | bgf* | mpixl*)
jpayne@68 89 wl='-Wl,'
jpayne@68 90 ;;
jpayne@68 91 como)
jpayne@68 92 wl='-lopt='
jpayne@68 93 ;;
jpayne@68 94 *)
jpayne@68 95 case `$CC -V 2>&1 | sed 5q` in
jpayne@68 96 *Sun\ F* | *Sun*Fortran*)
jpayne@68 97 wl=
jpayne@68 98 ;;
jpayne@68 99 *Sun\ C*)
jpayne@68 100 wl='-Wl,'
jpayne@68 101 ;;
jpayne@68 102 esac
jpayne@68 103 ;;
jpayne@68 104 esac
jpayne@68 105 ;;
jpayne@68 106 newsos6)
jpayne@68 107 ;;
jpayne@68 108 *nto* | *qnx*)
jpayne@68 109 ;;
jpayne@68 110 osf3* | osf4* | osf5*)
jpayne@68 111 wl='-Wl,'
jpayne@68 112 ;;
jpayne@68 113 rdos*)
jpayne@68 114 ;;
jpayne@68 115 solaris*)
jpayne@68 116 case $cc_basename in
jpayne@68 117 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
jpayne@68 118 wl='-Qoption ld '
jpayne@68 119 ;;
jpayne@68 120 *)
jpayne@68 121 wl='-Wl,'
jpayne@68 122 ;;
jpayne@68 123 esac
jpayne@68 124 ;;
jpayne@68 125 sunos4*)
jpayne@68 126 wl='-Qoption ld '
jpayne@68 127 ;;
jpayne@68 128 sysv4 | sysv4.2uw2* | sysv4.3*)
jpayne@68 129 wl='-Wl,'
jpayne@68 130 ;;
jpayne@68 131 sysv4*MP*)
jpayne@68 132 ;;
jpayne@68 133 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
jpayne@68 134 wl='-Wl,'
jpayne@68 135 ;;
jpayne@68 136 unicos*)
jpayne@68 137 wl='-Wl,'
jpayne@68 138 ;;
jpayne@68 139 uts4*)
jpayne@68 140 ;;
jpayne@68 141 esac
jpayne@68 142 fi
jpayne@68 143
jpayne@68 144 # Code taken from libtool.m4's _LT_LINKER_SHLIBS.
jpayne@68 145
jpayne@68 146 hardcode_libdir_flag_spec=
jpayne@68 147 hardcode_libdir_separator=
jpayne@68 148 hardcode_direct=no
jpayne@68 149 hardcode_minus_L=no
jpayne@68 150
jpayne@68 151 case "$host_os" in
jpayne@68 152 cygwin* | mingw* | pw32* | cegcc*)
jpayne@68 153 # FIXME: the MSVC++ port hasn't been tested in a loooong time
jpayne@68 154 # When not using gcc, we currently assume that we are using
jpayne@68 155 # Microsoft Visual C++.
jpayne@68 156 if test "$GCC" != yes; then
jpayne@68 157 with_gnu_ld=no
jpayne@68 158 fi
jpayne@68 159 ;;
jpayne@68 160 interix*)
jpayne@68 161 # we just hope/assume this is gcc and not c89 (= MSVC++)
jpayne@68 162 with_gnu_ld=yes
jpayne@68 163 ;;
jpayne@68 164 openbsd*)
jpayne@68 165 with_gnu_ld=no
jpayne@68 166 ;;
jpayne@68 167 esac
jpayne@68 168
jpayne@68 169 ld_shlibs=yes
jpayne@68 170 if test "$with_gnu_ld" = yes; then
jpayne@68 171 # Set some defaults for GNU ld with shared library support. These
jpayne@68 172 # are reset later if shared libraries are not supported. Putting them
jpayne@68 173 # here allows them to be overridden if necessary.
jpayne@68 174 # Unlike libtool, we use -rpath here, not --rpath, since the documented
jpayne@68 175 # option of GNU ld is called -rpath, not --rpath.
jpayne@68 176 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
jpayne@68 177 case "$host_os" in
jpayne@68 178 aix[3-9]*)
jpayne@68 179 # On AIX/PPC, the GNU linker is very broken
jpayne@68 180 if test "$host_cpu" != ia64; then
jpayne@68 181 ld_shlibs=no
jpayne@68 182 fi
jpayne@68 183 ;;
jpayne@68 184 amigaos*)
jpayne@68 185 case "$host_cpu" in
jpayne@68 186 powerpc)
jpayne@68 187 ;;
jpayne@68 188 m68k)
jpayne@68 189 hardcode_libdir_flag_spec='-L$libdir'
jpayne@68 190 hardcode_minus_L=yes
jpayne@68 191 ;;
jpayne@68 192 esac
jpayne@68 193 ;;
jpayne@68 194 beos*)
jpayne@68 195 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
jpayne@68 196 :
jpayne@68 197 else
jpayne@68 198 ld_shlibs=no
jpayne@68 199 fi
jpayne@68 200 ;;
jpayne@68 201 cygwin* | mingw* | pw32* | cegcc*)
jpayne@68 202 # hardcode_libdir_flag_spec is actually meaningless, as there is
jpayne@68 203 # no search path for DLLs.
jpayne@68 204 hardcode_libdir_flag_spec='-L$libdir'
jpayne@68 205 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
jpayne@68 206 :
jpayne@68 207 else
jpayne@68 208 ld_shlibs=no
jpayne@68 209 fi
jpayne@68 210 ;;
jpayne@68 211 haiku*)
jpayne@68 212 ;;
jpayne@68 213 interix[3-9]*)
jpayne@68 214 hardcode_direct=no
jpayne@68 215 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
jpayne@68 216 ;;
jpayne@68 217 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
jpayne@68 218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
jpayne@68 219 :
jpayne@68 220 else
jpayne@68 221 ld_shlibs=no
jpayne@68 222 fi
jpayne@68 223 ;;
jpayne@68 224 netbsd*)
jpayne@68 225 ;;
jpayne@68 226 solaris*)
jpayne@68 227 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
jpayne@68 228 ld_shlibs=no
jpayne@68 229 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
jpayne@68 230 :
jpayne@68 231 else
jpayne@68 232 ld_shlibs=no
jpayne@68 233 fi
jpayne@68 234 ;;
jpayne@68 235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
jpayne@68 236 case `$LD -v 2>&1` in
jpayne@68 237 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
jpayne@68 238 ld_shlibs=no
jpayne@68 239 ;;
jpayne@68 240 *)
jpayne@68 241 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
jpayne@68 242 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
jpayne@68 243 else
jpayne@68 244 ld_shlibs=no
jpayne@68 245 fi
jpayne@68 246 ;;
jpayne@68 247 esac
jpayne@68 248 ;;
jpayne@68 249 sunos4*)
jpayne@68 250 hardcode_direct=yes
jpayne@68 251 ;;
jpayne@68 252 *)
jpayne@68 253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
jpayne@68 254 :
jpayne@68 255 else
jpayne@68 256 ld_shlibs=no
jpayne@68 257 fi
jpayne@68 258 ;;
jpayne@68 259 esac
jpayne@68 260 if test "$ld_shlibs" = no; then
jpayne@68 261 hardcode_libdir_flag_spec=
jpayne@68 262 fi
jpayne@68 263 else
jpayne@68 264 case "$host_os" in
jpayne@68 265 aix3*)
jpayne@68 266 # Note: this linker hardcodes the directories in LIBPATH if there
jpayne@68 267 # are no directories specified by -L.
jpayne@68 268 hardcode_minus_L=yes
jpayne@68 269 if test "$GCC" = yes; then
jpayne@68 270 # Neither direct hardcoding nor static linking is supported with a
jpayne@68 271 # broken collect2.
jpayne@68 272 hardcode_direct=unsupported
jpayne@68 273 fi
jpayne@68 274 ;;
jpayne@68 275 aix[4-9]*)
jpayne@68 276 if test "$host_cpu" = ia64; then
jpayne@68 277 # On IA64, the linker does run time linking by default, so we don't
jpayne@68 278 # have to do anything special.
jpayne@68 279 aix_use_runtimelinking=no
jpayne@68 280 else
jpayne@68 281 aix_use_runtimelinking=no
jpayne@68 282 # Test if we are trying to use run time linking or normal
jpayne@68 283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
jpayne@68 284 # need to do runtime linking.
jpayne@68 285 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
jpayne@68 286 for ld_flag in $LDFLAGS; do
jpayne@68 287 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
jpayne@68 288 aix_use_runtimelinking=yes
jpayne@68 289 break
jpayne@68 290 fi
jpayne@68 291 done
jpayne@68 292 ;;
jpayne@68 293 esac
jpayne@68 294 fi
jpayne@68 295 hardcode_direct=yes
jpayne@68 296 hardcode_libdir_separator=':'
jpayne@68 297 if test "$GCC" = yes; then
jpayne@68 298 case $host_os in aix4.[012]|aix4.[012].*)
jpayne@68 299 collect2name=`${CC} -print-prog-name=collect2`
jpayne@68 300 if test -f "$collect2name" && \
jpayne@68 301 strings "$collect2name" | grep resolve_lib_name >/dev/null
jpayne@68 302 then
jpayne@68 303 # We have reworked collect2
jpayne@68 304 :
jpayne@68 305 else
jpayne@68 306 # We have old collect2
jpayne@68 307 hardcode_direct=unsupported
jpayne@68 308 hardcode_minus_L=yes
jpayne@68 309 hardcode_libdir_flag_spec='-L$libdir'
jpayne@68 310 hardcode_libdir_separator=
jpayne@68 311 fi
jpayne@68 312 ;;
jpayne@68 313 esac
jpayne@68 314 fi
jpayne@68 315 # Begin _LT_AC_SYS_LIBPATH_AIX.
jpayne@68 316 echo 'int main () { return 0; }' > conftest.c
jpayne@68 317 ${CC} ${LDFLAGS} conftest.c -o conftest
jpayne@68 318 aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
jpayne@68 319 }'`
jpayne@68 320 if test -z "$aix_libpath"; then
jpayne@68 321 aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
jpayne@68 322 }'`
jpayne@68 323 fi
jpayne@68 324 if test -z "$aix_libpath"; then
jpayne@68 325 aix_libpath="/usr/lib:/lib"
jpayne@68 326 fi
jpayne@68 327 rm -f conftest.c conftest
jpayne@68 328 # End _LT_AC_SYS_LIBPATH_AIX.
jpayne@68 329 if test "$aix_use_runtimelinking" = yes; then
jpayne@68 330 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
jpayne@68 331 else
jpayne@68 332 if test "$host_cpu" = ia64; then
jpayne@68 333 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
jpayne@68 334 else
jpayne@68 335 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
jpayne@68 336 fi
jpayne@68 337 fi
jpayne@68 338 ;;
jpayne@68 339 amigaos*)
jpayne@68 340 case "$host_cpu" in
jpayne@68 341 powerpc)
jpayne@68 342 ;;
jpayne@68 343 m68k)
jpayne@68 344 hardcode_libdir_flag_spec='-L$libdir'
jpayne@68 345 hardcode_minus_L=yes
jpayne@68 346 ;;
jpayne@68 347 esac
jpayne@68 348 ;;
jpayne@68 349 bsdi[45]*)
jpayne@68 350 ;;
jpayne@68 351 cygwin* | mingw* | pw32* | cegcc*)
jpayne@68 352 # When not using gcc, we currently assume that we are using
jpayne@68 353 # Microsoft Visual C++.
jpayne@68 354 # hardcode_libdir_flag_spec is actually meaningless, as there is
jpayne@68 355 # no search path for DLLs.
jpayne@68 356 hardcode_libdir_flag_spec=' '
jpayne@68 357 libext=lib
jpayne@68 358 ;;
jpayne@68 359 darwin* | rhapsody*)
jpayne@68 360 hardcode_direct=no
jpayne@68 361 if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then
jpayne@68 362 :
jpayne@68 363 else
jpayne@68 364 ld_shlibs=no
jpayne@68 365 fi
jpayne@68 366 ;;
jpayne@68 367 dgux*)
jpayne@68 368 hardcode_libdir_flag_spec='-L$libdir'
jpayne@68 369 ;;
jpayne@68 370 freebsd2.[01]*)
jpayne@68 371 hardcode_direct=yes
jpayne@68 372 hardcode_minus_L=yes
jpayne@68 373 ;;
jpayne@68 374 freebsd* | dragonfly* | midnightbsd*)
jpayne@68 375 hardcode_libdir_flag_spec='-R$libdir'
jpayne@68 376 hardcode_direct=yes
jpayne@68 377 ;;
jpayne@68 378 hpux9*)
jpayne@68 379 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
jpayne@68 380 hardcode_libdir_separator=:
jpayne@68 381 hardcode_direct=yes
jpayne@68 382 # hardcode_minus_L: Not really in the search PATH,
jpayne@68 383 # but as the default location of the library.
jpayne@68 384 hardcode_minus_L=yes
jpayne@68 385 ;;
jpayne@68 386 hpux10*)
jpayne@68 387 if test "$with_gnu_ld" = no; then
jpayne@68 388 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
jpayne@68 389 hardcode_libdir_separator=:
jpayne@68 390 hardcode_direct=yes
jpayne@68 391 # hardcode_minus_L: Not really in the search PATH,
jpayne@68 392 # but as the default location of the library.
jpayne@68 393 hardcode_minus_L=yes
jpayne@68 394 fi
jpayne@68 395 ;;
jpayne@68 396 hpux11*)
jpayne@68 397 if test "$with_gnu_ld" = no; then
jpayne@68 398 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
jpayne@68 399 hardcode_libdir_separator=:
jpayne@68 400 case $host_cpu in
jpayne@68 401 hppa*64*|ia64*)
jpayne@68 402 hardcode_direct=no
jpayne@68 403 ;;
jpayne@68 404 *)
jpayne@68 405 hardcode_direct=yes
jpayne@68 406 # hardcode_minus_L: Not really in the search PATH,
jpayne@68 407 # but as the default location of the library.
jpayne@68 408 hardcode_minus_L=yes
jpayne@68 409 ;;
jpayne@68 410 esac
jpayne@68 411 fi
jpayne@68 412 ;;
jpayne@68 413 irix5* | irix6* | nonstopux*)
jpayne@68 414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
jpayne@68 415 hardcode_libdir_separator=:
jpayne@68 416 ;;
jpayne@68 417 netbsd*)
jpayne@68 418 hardcode_libdir_flag_spec='-R$libdir'
jpayne@68 419 hardcode_direct=yes
jpayne@68 420 ;;
jpayne@68 421 newsos6)
jpayne@68 422 hardcode_direct=yes
jpayne@68 423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
jpayne@68 424 hardcode_libdir_separator=:
jpayne@68 425 ;;
jpayne@68 426 *nto* | *qnx*)
jpayne@68 427 ;;
jpayne@68 428 openbsd*)
jpayne@68 429 if test -f /usr/libexec/ld.so; then
jpayne@68 430 hardcode_direct=yes
jpayne@68 431 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
jpayne@68 432 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
jpayne@68 433 else
jpayne@68 434 case "$host_os" in
jpayne@68 435 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
jpayne@68 436 hardcode_libdir_flag_spec='-R$libdir'
jpayne@68 437 ;;
jpayne@68 438 *)
jpayne@68 439 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
jpayne@68 440 ;;
jpayne@68 441 esac
jpayne@68 442 fi
jpayne@68 443 else
jpayne@68 444 ld_shlibs=no
jpayne@68 445 fi
jpayne@68 446 ;;
jpayne@68 447 os2*)
jpayne@68 448 hardcode_libdir_flag_spec='-L$libdir'
jpayne@68 449 hardcode_minus_L=yes
jpayne@68 450 ;;
jpayne@68 451 osf3*)
jpayne@68 452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
jpayne@68 453 hardcode_libdir_separator=:
jpayne@68 454 ;;
jpayne@68 455 osf4* | osf5*)
jpayne@68 456 if test "$GCC" = yes; then
jpayne@68 457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
jpayne@68 458 else
jpayne@68 459 # Both cc and cxx compiler support -rpath directly
jpayne@68 460 hardcode_libdir_flag_spec='-rpath $libdir'
jpayne@68 461 fi
jpayne@68 462 hardcode_libdir_separator=:
jpayne@68 463 ;;
jpayne@68 464 solaris*)
jpayne@68 465 hardcode_libdir_flag_spec='-R$libdir'
jpayne@68 466 ;;
jpayne@68 467 sunos4*)
jpayne@68 468 hardcode_libdir_flag_spec='-L$libdir'
jpayne@68 469 hardcode_direct=yes
jpayne@68 470 hardcode_minus_L=yes
jpayne@68 471 ;;
jpayne@68 472 sysv4)
jpayne@68 473 case $host_vendor in
jpayne@68 474 sni)
jpayne@68 475 hardcode_direct=yes # is this really true???
jpayne@68 476 ;;
jpayne@68 477 siemens)
jpayne@68 478 hardcode_direct=no
jpayne@68 479 ;;
jpayne@68 480 motorola)
jpayne@68 481 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
jpayne@68 482 ;;
jpayne@68 483 esac
jpayne@68 484 ;;
jpayne@68 485 sysv4.3*)
jpayne@68 486 ;;
jpayne@68 487 sysv4*MP*)
jpayne@68 488 if test -d /usr/nec; then
jpayne@68 489 ld_shlibs=yes
jpayne@68 490 fi
jpayne@68 491 ;;
jpayne@68 492 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
jpayne@68 493 ;;
jpayne@68 494 sysv5* | sco3.2v5* | sco5v6*)
jpayne@68 495 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
jpayne@68 496 hardcode_libdir_separator=':'
jpayne@68 497 ;;
jpayne@68 498 uts4*)
jpayne@68 499 hardcode_libdir_flag_spec='-L$libdir'
jpayne@68 500 ;;
jpayne@68 501 *)
jpayne@68 502 ld_shlibs=no
jpayne@68 503 ;;
jpayne@68 504 esac
jpayne@68 505 fi
jpayne@68 506
jpayne@68 507 # Check dynamic linker characteristics
jpayne@68 508 # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER.
jpayne@68 509 # Unlike libtool.m4, here we don't care about _all_ names of the library, but
jpayne@68 510 # only about the one the linker finds when passed -lNAME. This is the last
jpayne@68 511 # element of library_names_spec in libtool.m4, or possibly two of them if the
jpayne@68 512 # linker has special search rules.
jpayne@68 513 library_names_spec= # the last element of library_names_spec in libtool.m4
jpayne@68 514 libname_spec='lib$name'
jpayne@68 515 case "$host_os" in
jpayne@68 516 aix3*)
jpayne@68 517 library_names_spec='$libname.a'
jpayne@68 518 ;;
jpayne@68 519 aix[4-9]*)
jpayne@68 520 library_names_spec='$libname$shrext'
jpayne@68 521 ;;
jpayne@68 522 amigaos*)
jpayne@68 523 case "$host_cpu" in
jpayne@68 524 powerpc*)
jpayne@68 525 library_names_spec='$libname$shrext' ;;
jpayne@68 526 m68k)
jpayne@68 527 library_names_spec='$libname.a' ;;
jpayne@68 528 esac
jpayne@68 529 ;;
jpayne@68 530 beos*)
jpayne@68 531 library_names_spec='$libname$shrext'
jpayne@68 532 ;;
jpayne@68 533 bsdi[45]*)
jpayne@68 534 library_names_spec='$libname$shrext'
jpayne@68 535 ;;
jpayne@68 536 cygwin* | mingw* | pw32* | cegcc*)
jpayne@68 537 shrext=.dll
jpayne@68 538 library_names_spec='$libname.dll.a $libname.lib'
jpayne@68 539 ;;
jpayne@68 540 darwin* | rhapsody*)
jpayne@68 541 shrext=.dylib
jpayne@68 542 library_names_spec='$libname$shrext'
jpayne@68 543 ;;
jpayne@68 544 dgux*)
jpayne@68 545 library_names_spec='$libname$shrext'
jpayne@68 546 ;;
jpayne@68 547 freebsd[23].*)
jpayne@68 548 library_names_spec='$libname$shrext$versuffix'
jpayne@68 549 ;;
jpayne@68 550 freebsd* | dragonfly* | midnightbsd*)
jpayne@68 551 library_names_spec='$libname$shrext'
jpayne@68 552 ;;
jpayne@68 553 gnu*)
jpayne@68 554 library_names_spec='$libname$shrext'
jpayne@68 555 ;;
jpayne@68 556 haiku*)
jpayne@68 557 library_names_spec='$libname$shrext'
jpayne@68 558 ;;
jpayne@68 559 hpux9* | hpux10* | hpux11*)
jpayne@68 560 case $host_cpu in
jpayne@68 561 ia64*)
jpayne@68 562 shrext=.so
jpayne@68 563 ;;
jpayne@68 564 hppa*64*)
jpayne@68 565 shrext=.sl
jpayne@68 566 ;;
jpayne@68 567 *)
jpayne@68 568 shrext=.sl
jpayne@68 569 ;;
jpayne@68 570 esac
jpayne@68 571 library_names_spec='$libname$shrext'
jpayne@68 572 ;;
jpayne@68 573 interix[3-9]*)
jpayne@68 574 library_names_spec='$libname$shrext'
jpayne@68 575 ;;
jpayne@68 576 irix5* | irix6* | nonstopux*)
jpayne@68 577 library_names_spec='$libname$shrext'
jpayne@68 578 case "$host_os" in
jpayne@68 579 irix5* | nonstopux*)
jpayne@68 580 libsuff= shlibsuff=
jpayne@68 581 ;;
jpayne@68 582 *)
jpayne@68 583 case $LD in
jpayne@68 584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
jpayne@68 585 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
jpayne@68 586 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
jpayne@68 587 *) libsuff= shlibsuff= ;;
jpayne@68 588 esac
jpayne@68 589 ;;
jpayne@68 590 esac
jpayne@68 591 ;;
jpayne@68 592 linux*oldld* | linux*aout* | linux*coff*)
jpayne@68 593 ;;
jpayne@68 594 linux* | k*bsd*-gnu | kopensolaris*-gnu)
jpayne@68 595 library_names_spec='$libname$shrext'
jpayne@68 596 ;;
jpayne@68 597 knetbsd*-gnu)
jpayne@68 598 library_names_spec='$libname$shrext'
jpayne@68 599 ;;
jpayne@68 600 netbsd*)
jpayne@68 601 library_names_spec='$libname$shrext'
jpayne@68 602 ;;
jpayne@68 603 newsos6)
jpayne@68 604 library_names_spec='$libname$shrext'
jpayne@68 605 ;;
jpayne@68 606 *nto* | *qnx*)
jpayne@68 607 library_names_spec='$libname$shrext'
jpayne@68 608 ;;
jpayne@68 609 openbsd*)
jpayne@68 610 library_names_spec='$libname$shrext$versuffix'
jpayne@68 611 ;;
jpayne@68 612 os2*)
jpayne@68 613 libname_spec='$name'
jpayne@68 614 shrext=.dll
jpayne@68 615 library_names_spec='$libname.a'
jpayne@68 616 ;;
jpayne@68 617 osf3* | osf4* | osf5*)
jpayne@68 618 library_names_spec='$libname$shrext'
jpayne@68 619 ;;
jpayne@68 620 rdos*)
jpayne@68 621 ;;
jpayne@68 622 solaris*)
jpayne@68 623 library_names_spec='$libname$shrext'
jpayne@68 624 ;;
jpayne@68 625 sunos4*)
jpayne@68 626 library_names_spec='$libname$shrext$versuffix'
jpayne@68 627 ;;
jpayne@68 628 sysv4 | sysv4.3*)
jpayne@68 629 library_names_spec='$libname$shrext'
jpayne@68 630 ;;
jpayne@68 631 sysv4*MP*)
jpayne@68 632 library_names_spec='$libname$shrext'
jpayne@68 633 ;;
jpayne@68 634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
jpayne@68 635 library_names_spec='$libname$shrext'
jpayne@68 636 ;;
jpayne@68 637 tpf*)
jpayne@68 638 library_names_spec='$libname$shrext'
jpayne@68 639 ;;
jpayne@68 640 uts4*)
jpayne@68 641 library_names_spec='$libname$shrext'
jpayne@68 642 ;;
jpayne@68 643 esac
jpayne@68 644
jpayne@68 645 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
jpayne@68 646 escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
jpayne@68 647 shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
jpayne@68 648 escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
jpayne@68 649 escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
jpayne@68 650 escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
jpayne@68 651
jpayne@68 652 LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
jpayne@68 653
jpayne@68 654 # How to pass a linker flag through the compiler.
jpayne@68 655 wl="$escaped_wl"
jpayne@68 656
jpayne@68 657 # Static library suffix (normally "a").
jpayne@68 658 libext="$libext"
jpayne@68 659
jpayne@68 660 # Shared library suffix (normally "so").
jpayne@68 661 shlibext="$shlibext"
jpayne@68 662
jpayne@68 663 # Format of library name prefix.
jpayne@68 664 libname_spec="$escaped_libname_spec"
jpayne@68 665
jpayne@68 666 # Library names that the linker finds when passed -lNAME.
jpayne@68 667 library_names_spec="$escaped_library_names_spec"
jpayne@68 668
jpayne@68 669 # Flag to hardcode \$libdir into a binary during linking.
jpayne@68 670 # This must work even if \$libdir does not exist.
jpayne@68 671 hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
jpayne@68 672
jpayne@68 673 # Whether we need a single -rpath flag with a separated argument.
jpayne@68 674 hardcode_libdir_separator="$hardcode_libdir_separator"
jpayne@68 675
jpayne@68 676 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
jpayne@68 677 # resulting binary.
jpayne@68 678 hardcode_direct="$hardcode_direct"
jpayne@68 679
jpayne@68 680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
jpayne@68 681 # resulting binary.
jpayne@68 682 hardcode_minus_L="$hardcode_minus_L"
jpayne@68 683
jpayne@68 684 EOF