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