config.rpath 18 KB

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