config.rpath revision 195595
189857Sobrien#! /bin/sh 2218822Sdim# Output a system dependent set of variables, describing how to set the 3218822Sdim# run time search path of shared libraries in an executable. 489857Sobrien# 589857Sobrien# Copyright 1996-2005 Free Software Foundation, Inc. 6104834Sobrien# Taken from GNU libtool, 2001 789857Sobrien# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 8104834Sobrien# 9104834Sobrien# This file is free software; the Free Software Foundation gives 10104834Sobrien# unlimited permission to copy and/or distribute it, with or without 11104834Sobrien# modifications, as long as this notice is preserved. 1289857Sobrien# 13104834Sobrien# The first argument passed to this file is the canonical host specification, 14104834Sobrien# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 15104834Sobrien# or 16104834Sobrien# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 1789857Sobrien# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld 18104834Sobrien# should be set by the caller. 19104834Sobrien# 20218822Sdim# The set of defined variables is at the end of this script. 2189857Sobrien 2289857Sobrien# Known limitations: 2389857Sobrien# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer 2489857Sobrien# than 256 bytes, otherwise the compiler driver will dump core. The only 25218822Sdim# known workaround is to choose shorter directory names for the build 2689857Sobrien# directory and/or the installation directory. 2789857Sobrien 2889857Sobrien# All known linkers require a `.a' archive for static linking (except M$VC, 29104834Sobrien# which needs '.lib'). 3089857Sobrienlibext=a 3189857Sobrienshrext=.so 3289857Sobrien 3389857Sobrienhost="$1" 3489857Sobrienhost_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3589857Sobrienhost_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3689857Sobrienhost_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3789857Sobrien 38130561Sobriencc_basename=`echo "$CC" | sed -e 's%^.*/%%'` 3989857Sobrien 4089857Sobrien# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. 4189857Sobrien 4289857Sobrienwl= 43104834Sobrienif test "$GCC" = yes; then 44104834Sobrien wl='-Wl,' 4589857Sobrienelse 4689857Sobrien case "$host_os" in 4789857Sobrien aix*) 4889857Sobrien wl='-Wl,' 4989857Sobrien ;; 5089857Sobrien darwin*) 5189857Sobrien case "$cc_basename" in 5289857Sobrien xlc*) 5389857Sobrien wl='-Wl,' 5489857Sobrien ;; 5589857Sobrien esac 5689857Sobrien ;; 5789857Sobrien mingw* | pw32* | os2*) 5889857Sobrien ;; 5989857Sobrien hpux9* | hpux10* | hpux11*) 6089857Sobrien wl='-Wl,' 6189857Sobrien ;; 6289857Sobrien irix5* | irix6* | nonstopux*) 6389857Sobrien wl='-Wl,' 6489857Sobrien ;; 6589857Sobrien newsos6) 6689857Sobrien ;; 6789857Sobrien linux*) 6889857Sobrien case $cc_basename in 6989857Sobrien icc* | ecc*) 70130561Sobrien wl='-Wl,' 7189857Sobrien ;; 7289857Sobrien pgcc | pgf77 | pgf90) 7389857Sobrien wl='-Wl,' 7489857Sobrien ;; 7589857Sobrien ccc*) 7689857Sobrien wl='-Wl,' 7789857Sobrien ;; 7889857Sobrien como) 7989857Sobrien wl='-lopt=' 8089857Sobrien ;; 8189857Sobrien esac 8289857Sobrien ;; 8389857Sobrien osf3* | osf4* | osf5*) 8489857Sobrien wl='-Wl,' 8589857Sobrien ;; 8689857Sobrien sco3.2v5*) 8789857Sobrien ;; 8889857Sobrien solaris*) 8989857Sobrien wl='-Wl,' 90130561Sobrien ;; 9189857Sobrien sunos4*) 9289857Sobrien wl='-Qoption ld ' 9389857Sobrien ;; 94218822Sdim sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9589857Sobrien wl='-Wl,' 9689857Sobrien ;; 9789857Sobrien sysv4*MP*) 9889857Sobrien ;; 9989857Sobrien unicos*) 10089857Sobrien wl='-Wl,' 10189857Sobrien ;; 10289857Sobrien uts4*) 103130561Sobrien ;; 104130561Sobrien esac 10589857Sobrienfi 10689857Sobrien 10789857Sobrien# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. 108218822Sdim 109218822Sdimhardcode_libdir_flag_spec= 110218822Sdimhardcode_libdir_separator= 11189857Sobrienhardcode_direct=no 11289857Sobrienhardcode_minus_L=no 11389857Sobrien 114218822Sdimcase "$host_os" in 11589857Sobrien cygwin* | mingw* | pw32*) 116218822Sdim # FIXME: the MSVC++ port hasn't been tested in a loooong time 11789857Sobrien # When not using gcc, we currently assume that we are using 11889857Sobrien # Microsoft Visual C++. 119218822Sdim if test "$GCC" != yes; then 120218822Sdim with_gnu_ld=no 12189857Sobrien fi 12289857Sobrien ;; 12389857Sobrien openbsd*) 12489857Sobrien with_gnu_ld=no 12589857Sobrien ;; 12689857Sobrienesac 127218822Sdim 12889857Sobrienld_shlibs=yes 12989857Sobrienif test "$with_gnu_ld" = yes; then 13089857Sobrien case "$host_os" in 13189857Sobrien aix3* | aix4* | aix5*) 13289857Sobrien # On AIX/PPC, the GNU linker is very broken 133130561Sobrien if test "$host_cpu" != ia64; then 134130561Sobrien ld_shlibs=no 13589857Sobrien fi 13689857Sobrien ;; 13789857Sobrien amigaos*) 13889857Sobrien hardcode_libdir_flag_spec='-L$libdir' 13989857Sobrien hardcode_minus_L=yes 14089857Sobrien # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14189857Sobrien # that the semantics of dynamic libraries on AmigaOS, at least up 14289857Sobrien # to version 4, is to share data among multiple programs linked 14389857Sobrien # with the same dynamic library. Since this doesn't match the 14489857Sobrien # behavior of shared libraries on other platforms, we cannot use 14589857Sobrien # them. 14689857Sobrien ld_shlibs=no 14789857Sobrien ;; 14889857Sobrien beos*) 14989857Sobrien if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15089857Sobrien : 15189857Sobrien else 15289857Sobrien ld_shlibs=no 15389857Sobrien fi 15489857Sobrien ;; 15589857Sobrien cygwin* | mingw* | pw32*) 15689857Sobrien # hardcode_libdir_flag_spec is actually meaningless, as there is 15789857Sobrien # no search path for DLLs. 15889857Sobrien hardcode_libdir_flag_spec='-L$libdir' 15989857Sobrien if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16089857Sobrien : 16189857Sobrien else 16289857Sobrien ld_shlibs=no 16389857Sobrien fi 16489857Sobrien ;; 16589857Sobrien netbsd*) 16689857Sobrien ;; 16789857Sobrien solaris* | sysv5*) 16889857Sobrien if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16989857Sobrien ld_shlibs=no 17089857Sobrien elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17189857Sobrien : 17289857Sobrien else 17389857Sobrien ld_shlibs=no 17489857Sobrien fi 17589857Sobrien ;; 17689857Sobrien sunos4*) 17789857Sobrien hardcode_direct=yes 17889857Sobrien ;; 17989857Sobrien linux*) 18089857Sobrien if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18189857Sobrien : 18289857Sobrien else 18389857Sobrien ld_shlibs=no 18489857Sobrien fi 18589857Sobrien ;; 18689857Sobrien *) 18789857Sobrien if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18889857Sobrien : 18989857Sobrien else 19089857Sobrien ld_shlibs=no 19189857Sobrien fi 19289857Sobrien ;; 19389857Sobrien esac 194218822Sdim if test "$ld_shlibs" = yes; then 19589857Sobrien # Unlike libtool, we use -rpath here, not --rpath, since the documented 19689857Sobrien # option of GNU ld is called -rpath, not --rpath. 19789857Sobrien hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 19889857Sobrien fi 19989857Sobrienelse 20089857Sobrien case "$host_os" in 20189857Sobrien aix3*) 20289857Sobrien # Note: this linker hardcodes the directories in LIBPATH if there 20389857Sobrien # are no directories specified by -L. 20489857Sobrien hardcode_minus_L=yes 205130561Sobrien if test "$GCC" = yes; then 206130561Sobrien # Neither direct hardcoding nor static linking is supported with a 207130561Sobrien # broken collect2. 208130561Sobrien hardcode_direct=unsupported 209130561Sobrien fi 210130561Sobrien ;; 21189857Sobrien aix4* | aix5*) 21289857Sobrien if test "$host_cpu" = ia64; then 21389857Sobrien # On IA64, the linker does run time linking by default, so we don't 21489857Sobrien # have to do anything special. 21589857Sobrien aix_use_runtimelinking=no 21689857Sobrien else 21789857Sobrien aix_use_runtimelinking=no 218218822Sdim # Test if we are trying to use run time linking or normal 21989857Sobrien # AIX style linking. If -brtl is somewhere in LDFLAGS, we 220218822Sdim # need to do runtime linking. 221218822Sdim case $host_os in aix4.[23]|aix4.[23].*|aix5*) 222218822Sdim for ld_flag in $LDFLAGS; do 223218822Sdim if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 22489857Sobrien aix_use_runtimelinking=yes 22589857Sobrien break 22689857Sobrien fi 22789857Sobrien done 22889857Sobrien esac 22989857Sobrien fi 23089857Sobrien hardcode_direct=yes 23189857Sobrien hardcode_libdir_separator=':' 23289857Sobrien if test "$GCC" = yes; then 23389857Sobrien case $host_os in aix4.[012]|aix4.[012].*) 23489857Sobrien collect2name=`${CC} -print-prog-name=collect2` 23589857Sobrien if test -f "$collect2name" && \ 23689857Sobrien strings "$collect2name" | grep resolve_lib_name >/dev/null 237130561Sobrien then 23889857Sobrien # We have reworked collect2 23989857Sobrien hardcode_direct=yes 24089857Sobrien else 241218822Sdim # We have old collect2 24289857Sobrien hardcode_direct=unsupported 24389857Sobrien hardcode_minus_L=yes 24489857Sobrien hardcode_libdir_flag_spec='-L$libdir' 245218822Sdim hardcode_libdir_separator= 246218822Sdim fi 24789857Sobrien esac 24889857Sobrien fi 24989857Sobrien # Begin _LT_AC_SYS_LIBPATH_AIX. 25089857Sobrien echo 'int main () { return 0; }' > conftest.c 25189857Sobrien ${CC} ${LDFLAGS} conftest.c -o conftest 25289857Sobrien aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 25389857Sobrien}'` 25489857Sobrien if test -z "$aix_libpath"; then 25589857Sobrien aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 25689857Sobrien}'` 25789857Sobrien fi 25889857Sobrien if test -z "$aix_libpath"; then 25989857Sobrien aix_libpath="/usr/lib:/lib" 26089857Sobrien fi 26189857Sobrien rm -f conftest.c conftest 26289857Sobrien # End _LT_AC_SYS_LIBPATH_AIX. 26389857Sobrien if test "$aix_use_runtimelinking" = yes; then 26489857Sobrien hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 265130561Sobrien else 266130561Sobrien if test "$host_cpu" = ia64; then 26789857Sobrien hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 26889857Sobrien else 26989857Sobrien hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 270130561Sobrien fi 27189857Sobrien fi 27289857Sobrien ;; 27389857Sobrien amigaos*) 27489857Sobrien hardcode_libdir_flag_spec='-L$libdir' 27589857Sobrien hardcode_minus_L=yes 27689857Sobrien # see comment about different semantics on the GNU ld section 27789857Sobrien ld_shlibs=no 27889857Sobrien ;; 27989857Sobrien bsdi[45]*) 28089857Sobrien ;; 28189857Sobrien cygwin* | mingw* | pw32*) 28289857Sobrien # When not using gcc, we currently assume that we are using 28389857Sobrien # Microsoft Visual C++. 28489857Sobrien # hardcode_libdir_flag_spec is actually meaningless, as there is 28589857Sobrien # no search path for DLLs. 28689857Sobrien hardcode_libdir_flag_spec=' ' 28789857Sobrien libext=lib 288130561Sobrien ;; 289130561Sobrien darwin* | rhapsody*) 29089857Sobrien hardcode_direct=no 29189857Sobrien if test "$GCC" = yes ; then 29289857Sobrien : 293218822Sdim else 29489857Sobrien case "$cc_basename" in 295218822Sdim xlc*) 29689857Sobrien ;; 29789857Sobrien *) 298218822Sdim ld_shlibs=no 299218822Sdim ;; 300218822Sdim esac 301218822Sdim fi 302218822Sdim ;; 30389857Sobrien dgux*) 30489857Sobrien hardcode_libdir_flag_spec='-L$libdir' 30589857Sobrien ;; 306218822Sdim freebsd1*) 307218822Sdim ld_shlibs=no 30889857Sobrien ;; 309218822Sdim freebsd2.2*) 310218822Sdim hardcode_libdir_flag_spec='-R$libdir' 31189857Sobrien hardcode_direct=yes 312218822Sdim ;; 313218822Sdim freebsd2*) 31489857Sobrien hardcode_direct=yes 31589857Sobrien hardcode_minus_L=yes 31689857Sobrien ;; 31789857Sobrien freebsd* | kfreebsd*-gnu | dragonfly*) 31889857Sobrien hardcode_libdir_flag_spec='-R$libdir' 31989857Sobrien hardcode_direct=yes 320218822Sdim ;; 321218822Sdim hpux9*) 32289857Sobrien hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 32389857Sobrien hardcode_libdir_separator=: 32489857Sobrien hardcode_direct=yes 32589857Sobrien # hardcode_minus_L: Not really in the search PATH, 326218822Sdim # but as the default location of the library. 327218822Sdim hardcode_minus_L=yes 328218822Sdim ;; 329218822Sdim hpux10* | hpux11*) 330218822Sdim if test "$with_gnu_ld" = no; then 331218822Sdim case "$host_cpu" in 332218822Sdim hppa*64*) 33389857Sobrien hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 334218822Sdim hardcode_libdir_separator=: 33589857Sobrien hardcode_direct=no 336218822Sdim ;; 337218822Sdim ia64*) 338218822Sdim hardcode_libdir_flag_spec='-L$libdir' 339218822Sdim hardcode_direct=no 34089857Sobrien # hardcode_minus_L: Not really in the search PATH, 34189857Sobrien # but as the default location of the library. 342218822Sdim hardcode_minus_L=yes 343218822Sdim ;; 34489857Sobrien *) 345130561Sobrien hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 346218822Sdim hardcode_libdir_separator=: 347218822Sdim hardcode_direct=yes 34889857Sobrien # hardcode_minus_L: Not really in the search PATH, 34989857Sobrien # but as the default location of the library. 35089857Sobrien hardcode_minus_L=yes 35189857Sobrien ;; 35289857Sobrien esac 35389857Sobrien fi 354218822Sdim ;; 355218822Sdim irix5* | irix6* | nonstopux*) 356218822Sdim hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 357218822Sdim hardcode_libdir_separator=: 358218822Sdim ;; 359218822Sdim netbsd*) 36089857Sobrien hardcode_libdir_flag_spec='-R$libdir' 361130561Sobrien hardcode_direct=yes 36289857Sobrien ;; 36389857Sobrien newsos6) 36489857Sobrien hardcode_direct=yes 36589857Sobrien hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 366130561Sobrien hardcode_libdir_separator=: 36789857Sobrien ;; 36889857Sobrien openbsd*) 369218822Sdim hardcode_direct=yes 370218822Sdim if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 37189857Sobrien hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 37289857Sobrien else 373218822Sdim case "$host_os" in 374218822Sdim openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 37589857Sobrien hardcode_libdir_flag_spec='-R$libdir' 37689857Sobrien ;; 37789857Sobrien *) 37889857Sobrien hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 37989857Sobrien ;; 38089857Sobrien esac 38189857Sobrien fi 382130561Sobrien ;; 38389857Sobrien os2*) 38489857Sobrien hardcode_libdir_flag_spec='-L$libdir' 38589857Sobrien hardcode_minus_L=yes 38689857Sobrien ;; 38789857Sobrien osf3*) 38889857Sobrien hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 389218822Sdim hardcode_libdir_separator=: 390218822Sdim ;; 39189857Sobrien osf4* | osf5*) 39289857Sobrien if test "$GCC" = yes; then 39389857Sobrien hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 39489857Sobrien else 39589857Sobrien # Both cc and cxx compiler support -rpath directly 396218822Sdim hardcode_libdir_flag_spec='-rpath $libdir' 39789857Sobrien fi 39889857Sobrien hardcode_libdir_separator=: 39989857Sobrien ;; 40089857Sobrien sco3.2v5*) 401130561Sobrien ;; 402104834Sobrien solaris*) 40389857Sobrien hardcode_libdir_flag_spec='-R$libdir' 40489857Sobrien ;; 40589857Sobrien sunos4*) 40689857Sobrien hardcode_libdir_flag_spec='-L$libdir' 40789857Sobrien hardcode_direct=yes 40889857Sobrien hardcode_minus_L=yes 409218822Sdim ;; 41089857Sobrien sysv4) 41189857Sobrien case $host_vendor in 41289857Sobrien sni) 41389857Sobrien hardcode_direct=yes # is this really true??? 414218822Sdim ;; 41589857Sobrien siemens) 41689857Sobrien hardcode_direct=no 41789857Sobrien ;; 41889857Sobrien motorola) 41989857Sobrien hardcode_direct=no #Motorola manual says yes, but my tests say they lie 42089857Sobrien ;; 42189857Sobrien esac 42289857Sobrien ;; 42389857Sobrien sysv4.3*) 42489857Sobrien ;; 42589857Sobrien sysv4*MP*) 426218822Sdim if test -d /usr/nec; then 42789857Sobrien ld_shlibs=yes 428218822Sdim fi 42989857Sobrien ;; 430218822Sdim sysv4.2uw2*) 43189857Sobrien hardcode_direct=yes 43289857Sobrien hardcode_minus_L=no 433130561Sobrien ;; 43489857Sobrien sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 43589857Sobrien ;; 43689857Sobrien sysv5*) 437130561Sobrien hardcode_libdir_flag_spec= 43889857Sobrien ;; 43989857Sobrien uts4*) 44089857Sobrien hardcode_libdir_flag_spec='-L$libdir' 441130561Sobrien ;; 442130561Sobrien *) 443130561Sobrien ld_shlibs=no 44489857Sobrien ;; 44589857Sobrien esac 44689857Sobrienfi 447130561Sobrien 44889857Sobrien# Check dynamic linker characteristics 44989857Sobrien# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. 45089857Sobrienlibname_spec='lib$name' 45189857Sobriencase "$host_os" in 452218822Sdim aix3*) 453218822Sdim ;; 454130561Sobrien aix4* | aix5*) 45589857Sobrien ;; 45689857Sobrien amigaos*) 45789857Sobrien ;; 45889857Sobrien beos*) 45989857Sobrien ;; 46089857Sobrien bsdi[45]*) 46189857Sobrien ;; 46289857Sobrien cygwin* | mingw* | pw32*) 46389857Sobrien shrext=.dll 464218822Sdim ;; 465218822Sdim darwin* | rhapsody*) 46689857Sobrien shrext=.dylib 46789857Sobrien ;; 46889857Sobrien dgux*) 46989857Sobrien ;; 47089857Sobrien freebsd1*) 47189857Sobrien ;; 47289857Sobrien kfreebsd*-gnu) 47389857Sobrien ;; 47489857Sobrien freebsd*) 475130561Sobrien ;; 47689857Sobrien gnu*) 47789857Sobrien ;; 47889857Sobrien hpux9* | hpux10* | hpux11*) 47989857Sobrien case "$host_cpu" in 48089857Sobrien ia64*) 48189857Sobrien shrext=.so 482130561Sobrien ;; 48389857Sobrien hppa*64*) 48489857Sobrien shrext=.sl 48589857Sobrien ;; 48689857Sobrien *) 48789857Sobrien shrext=.sl 48889857Sobrien ;; 48989857Sobrien esac 49089857Sobrien ;; 49189857Sobrien irix5* | irix6* | nonstopux*) 49289857Sobrien case "$host_os" in 49389857Sobrien irix5* | nonstopux*) 49489857Sobrien libsuff= shlibsuff= 495130561Sobrien ;; 496218822Sdim *) 49789857Sobrien case $LD in 49889857Sobrien *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; 49989857Sobrien *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; 50089857Sobrien *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; 50189857Sobrien *) libsuff= shlibsuff= ;; 50289857Sobrien esac 50389857Sobrien ;; 50489857Sobrien esac 50589857Sobrien ;; 50689857Sobrien linux*oldld* | linux*aout* | linux*coff*) 50789857Sobrien ;; 50889857Sobrien linux*) 50989857Sobrien ;; 510218822Sdim knetbsd*-gnu) 51189857Sobrien ;; 51289857Sobrien netbsd*) 51389857Sobrien ;; 51489857Sobrien newsos6) 51589857Sobrien ;; 516130561Sobrien nto-qnx*) 51789857Sobrien ;; 51889857Sobrien openbsd*) 51989857Sobrien ;; 52089857Sobrien os2*) 521130561Sobrien libname_spec='$name' 52289857Sobrien shrext=.dll 52389857Sobrien ;; 524130561Sobrien osf3* | osf4* | osf5*) 525130561Sobrien ;; 526130561Sobrien sco3.2v5*) 527130561Sobrien ;; 528130561Sobrien solaris*) 529130561Sobrien ;; 530130561Sobrien sunos4*) 531218822Sdim ;; 532218822Sdim sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 533130561Sobrien ;; 534130561Sobrien sysv4*MP*) 535130561Sobrien ;; 536130561Sobrien uts4*) 537130561Sobrien ;; 538130561Sobrienesac 539130561Sobrien 540130561Sobriensed_quote_subst='s/\(["`$\\]\)/\\\1/g' 541130561Sobrienescaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` 542130561Sobrienshlibext=`echo "$shrext" | sed -e 's,^\.,,'` 543130561Sobrienescaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` 544130561Sobrien 545130561SobrienLC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF 546130561Sobrien 547130561Sobrien# How to pass a linker flag through the compiler. 548130561Sobrienwl="$escaped_wl" 549130561Sobrien 550130561Sobrien# Static library suffix (normally "a"). 551130561Sobrienlibext="$libext" 552130561Sobrien 553130561Sobrien# Shared library suffix (normally "so"). 554130561Sobrienshlibext="$shlibext" 555130561Sobrien 556218822Sdim# Flag to hardcode \$libdir into a binary during linking. 557218822Sdim# This must work even if \$libdir does not exist. 558130561Sobrienhardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" 559130561Sobrien 560130561Sobrien# Whether we need a single -rpath flag with a separated argument. 561130561Sobrienhardcode_libdir_separator="$hardcode_libdir_separator" 562130561Sobrien 563130561Sobrien# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 564130561Sobrien# resulting binary. 565130561Sobrienhardcode_direct="$hardcode_direct" 566130561Sobrien 567130561Sobrien# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 568130561Sobrien# resulting binary. 569130561Sobrienhardcode_minus_L="$hardcode_minus_L" 570130561Sobrien 571130561SobrienEOF 572130561Sobrien