config.rpath 18 KB

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