GCC with OpenMP stream-computing extension and BatchQueue algorithm
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

config.rpath 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  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-2003 Free Software Foundation, Inc.
  6. # Taken from GNU libtool, 2001
  7. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; either version 2 of the License, or
  12. # (at your option) any later version.
  13. #
  14. # This program is distributed in the hope that it will be useful, but
  15. # WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. # General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU General Public License
  20. # along with this program; if not, write to the Free Software
  21. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22. #
  23. # As a special exception to the GNU General Public License, if you
  24. # distribute this file as part of a program that contains a
  25. # configuration script generated by Autoconf, you may include it under
  26. # the same distribution terms that you use for the rest of that program.
  27. #
  28. # The first argument passed to this file is the canonical host specification,
  29. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
  30. # or
  31. # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
  32. # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
  33. # should be set by the caller.
  34. #
  35. # The set of defined variables is at the end of this script.
  36. # Known limitations:
  37. # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
  38. # than 256 bytes, otherwise the compiler driver will dump core. The only
  39. # known workaround is to choose shorter directory names for the build
  40. # directory and/or the installation directory.
  41. # All known linkers require a `.a' archive for static linking (except M$VC,
  42. # which needs '.lib').
  43. libext=a
  44. shrext=.so
  45. host="$1"
  46. host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  47. host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  48. host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  49. # Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
  50. wl=
  51. if test "$GCC" = yes; then
  52. wl='-Wl,'
  53. else
  54. case "$host_os" in
  55. aix*)
  56. wl='-Wl,'
  57. ;;
  58. mingw* | pw32* | os2*)
  59. ;;
  60. hpux9* | hpux10* | hpux11*)
  61. wl='-Wl,'
  62. ;;
  63. irix5* | irix6* | nonstopux*)
  64. wl='-Wl,'
  65. ;;
  66. newsos6)
  67. ;;
  68. linux*)
  69. case $CC in
  70. icc|ecc)
  71. wl='-Wl,'
  72. ;;
  73. ccc)
  74. wl='-Wl,'
  75. ;;
  76. esac
  77. ;;
  78. osf3* | osf4* | osf5*)
  79. wl='-Wl,'
  80. ;;
  81. sco3.2v5*)
  82. ;;
  83. solaris*)
  84. wl='-Wl,'
  85. ;;
  86. sunos4*)
  87. wl='-Qoption ld '
  88. ;;
  89. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  90. wl='-Wl,'
  91. ;;
  92. sysv4*MP*)
  93. ;;
  94. uts4*)
  95. ;;
  96. esac
  97. fi
  98. # Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.
  99. hardcode_libdir_flag_spec=
  100. hardcode_libdir_separator=
  101. hardcode_direct=no
  102. hardcode_minus_L=no
  103. case "$host_os" in
  104. cygwin* | mingw* | pw32*)
  105. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  106. # When not using gcc, we currently assume that we are using
  107. # Microsoft Visual C++.
  108. if test "$GCC" != yes; then
  109. with_gnu_ld=no
  110. fi
  111. ;;
  112. openbsd*)
  113. with_gnu_ld=no
  114. ;;
  115. esac
  116. ld_shlibs=yes
  117. if test "$with_gnu_ld" = yes; then
  118. case "$host_os" in
  119. aix[3-9]*)
  120. # On AIX/PPC, the GNU linker is very broken
  121. if test "$host_cpu" != ia64; then
  122. ld_shlibs=no
  123. fi
  124. ;;
  125. amigaos*)
  126. hardcode_libdir_flag_spec='-L$libdir'
  127. hardcode_minus_L=yes
  128. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  129. # that the semantics of dynamic libraries on AmigaOS, at least up
  130. # to version 4, is to share data among multiple programs linked
  131. # with the same dynamic library. Since this doesn't match the
  132. # behavior of shared libraries on other platforms, we can use
  133. # them.
  134. ld_shlibs=no
  135. ;;
  136. beos*)
  137. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  138. :
  139. else
  140. ld_shlibs=no
  141. fi
  142. ;;
  143. cygwin* | mingw* | pw32*)
  144. # hardcode_libdir_flag_spec is actually meaningless, as there is
  145. # no search path for DLLs.
  146. hardcode_libdir_flag_spec='-L$libdir'
  147. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  148. :
  149. else
  150. ld_shlibs=no
  151. fi
  152. ;;
  153. netbsd*)
  154. ;;
  155. solaris* | sysv5*)
  156. if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  157. ld_shlibs=no
  158. elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  159. :
  160. else
  161. ld_shlibs=no
  162. fi
  163. ;;
  164. sunos4*)
  165. hardcode_direct=yes
  166. ;;
  167. *)
  168. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  169. :
  170. else
  171. ld_shlibs=no
  172. fi
  173. ;;
  174. esac
  175. if test "$ld_shlibs" = yes; then
  176. # Unlike libtool, we use -rpath here, not --rpath, since the documented
  177. # option of GNU ld is called -rpath, not --rpath.
  178. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  179. fi
  180. else
  181. case "$host_os" in
  182. aix3*)
  183. # Note: this linker hardcodes the directories in LIBPATH if there
  184. # are no directories specified by -L.
  185. hardcode_minus_L=yes
  186. if test "$GCC" = yes; then
  187. # Neither direct hardcoding nor static linking is supported with a
  188. # broken collect2.
  189. hardcode_direct=unsupported
  190. fi
  191. ;;
  192. aix[4-9]*)
  193. if test "$host_cpu" = ia64; then
  194. # On IA64, the linker does run time linking by default, so we don't
  195. # have to do anything special.
  196. aix_use_runtimelinking=no
  197. else
  198. aix_use_runtimelinking=no
  199. # Test if we are trying to use run time linking or normal
  200. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  201. # need to do runtime linking.
  202. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  203. for ld_flag in $LDFLAGS; do
  204. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  205. aix_use_runtimelinking=yes
  206. break
  207. fi
  208. done
  209. esac
  210. fi
  211. hardcode_direct=yes
  212. hardcode_libdir_separator=':'
  213. if test "$GCC" = yes; then
  214. case $host_os in aix4.[012]|aix4.[012].*)
  215. collect2name=`${CC} -print-prog-name=collect2`
  216. if test -f "$collect2name" && \
  217. strings "$collect2name" | grep resolve_lib_name >/dev/null
  218. then
  219. # We have reworked collect2
  220. hardcode_direct=yes
  221. else
  222. # We have old collect2
  223. hardcode_direct=unsupported
  224. hardcode_minus_L=yes
  225. hardcode_libdir_flag_spec='-L$libdir'
  226. hardcode_libdir_separator=
  227. fi
  228. esac
  229. fi
  230. # Begin _LT_AC_SYS_LIBPATH_AIX.
  231. echo 'int main () { return 0; }' > conftest.c
  232. ${CC} ${LDFLAGS} conftest.c -o conftest
  233. aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  234. }'`
  235. if test -z "$aix_libpath"; then
  236. aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  237. }'`
  238. fi
  239. if test -z "$aix_libpath"; then
  240. aix_libpath="/usr/lib:/lib"
  241. fi
  242. rm -f conftest.c conftest
  243. # End _LT_AC_SYS_LIBPATH_AIX.
  244. if test "$aix_use_runtimelinking" = yes; then
  245. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  246. else
  247. if test "$host_cpu" = ia64; then
  248. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  249. else
  250. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  251. fi
  252. fi
  253. ;;
  254. amigaos*)
  255. hardcode_libdir_flag_spec='-L$libdir'
  256. hardcode_minus_L=yes
  257. # see comment about different semantics on the GNU ld section
  258. ld_shlibs=no
  259. ;;
  260. bsdi4*)
  261. ;;
  262. cygwin* | mingw* | pw32*)
  263. # When not using gcc, we currently assume that we are using
  264. # Microsoft Visual C++.
  265. # hardcode_libdir_flag_spec is actually meaningless, as there is
  266. # no search path for DLLs.
  267. hardcode_libdir_flag_spec=' '
  268. libext=lib
  269. ;;
  270. darwin* | rhapsody*)
  271. if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  272. hardcode_direct=no
  273. fi
  274. ;;
  275. dgux*)
  276. hardcode_libdir_flag_spec='-L$libdir'
  277. ;;
  278. freebsd1*)
  279. ld_shlibs=no
  280. ;;
  281. freebsd2.2*)
  282. hardcode_libdir_flag_spec='-R$libdir'
  283. hardcode_direct=yes
  284. ;;
  285. freebsd2*)
  286. hardcode_direct=yes
  287. hardcode_minus_L=yes
  288. ;;
  289. freebsd*)
  290. hardcode_libdir_flag_spec='-R$libdir'
  291. hardcode_direct=yes
  292. ;;
  293. hpux9*)
  294. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  295. hardcode_libdir_separator=:
  296. hardcode_direct=yes
  297. # hardcode_minus_L: Not really in the search PATH,
  298. # but as the default location of the library.
  299. hardcode_minus_L=yes
  300. ;;
  301. hpux10* | hpux11*)
  302. if test "$with_gnu_ld" = no; then
  303. case "$host_cpu" in
  304. hppa*64*)
  305. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  306. hardcode_libdir_separator=:
  307. hardcode_direct=no
  308. ;;
  309. ia64*)
  310. hardcode_libdir_flag_spec='-L$libdir'
  311. hardcode_direct=no
  312. # hardcode_minus_L: Not really in the search PATH,
  313. # but as the default location of the library.
  314. hardcode_minus_L=yes
  315. ;;
  316. *)
  317. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  318. hardcode_libdir_separator=:
  319. hardcode_direct=yes
  320. # hardcode_minus_L: Not really in the search PATH,
  321. # but as the default location of the library.
  322. hardcode_minus_L=yes
  323. ;;
  324. esac
  325. fi
  326. ;;
  327. irix5* | irix6* | nonstopux*)
  328. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  329. hardcode_libdir_separator=:
  330. ;;
  331. netbsd*)
  332. hardcode_libdir_flag_spec='-R$libdir'
  333. hardcode_direct=yes
  334. ;;
  335. newsos6)
  336. hardcode_direct=yes
  337. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  338. hardcode_libdir_separator=:
  339. ;;
  340. openbsd*)
  341. hardcode_direct=yes
  342. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  343. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  344. else
  345. case "$host_os" in
  346. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  347. hardcode_libdir_flag_spec='-R$libdir'
  348. ;;
  349. *)
  350. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  351. ;;
  352. esac
  353. fi
  354. ;;
  355. os2*)
  356. hardcode_libdir_flag_spec='-L$libdir'
  357. hardcode_minus_L=yes
  358. ;;
  359. osf3*)
  360. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  361. hardcode_libdir_separator=:
  362. ;;
  363. osf4* | osf5*)
  364. if test "$GCC" = yes; then
  365. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  366. else
  367. # Both cc and cxx compiler support -rpath directly
  368. hardcode_libdir_flag_spec='-rpath $libdir'
  369. fi
  370. hardcode_libdir_separator=:
  371. ;;
  372. sco3.2v5*)
  373. ;;
  374. solaris*)
  375. hardcode_libdir_flag_spec='-R$libdir'
  376. ;;
  377. sunos4*)
  378. hardcode_libdir_flag_spec='-L$libdir'
  379. hardcode_direct=yes
  380. hardcode_minus_L=yes
  381. ;;
  382. sysv4)
  383. case $host_vendor in
  384. sni)
  385. hardcode_direct=yes # is this really true???
  386. ;;
  387. siemens)
  388. hardcode_direct=no
  389. ;;
  390. motorola)
  391. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  392. ;;
  393. esac
  394. ;;
  395. sysv4.3*)
  396. ;;
  397. sysv4*MP*)
  398. if test -d /usr/nec; then
  399. ld_shlibs=yes
  400. fi
  401. ;;
  402. sysv4.2uw2*)
  403. hardcode_direct=yes
  404. hardcode_minus_L=no
  405. ;;
  406. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  407. ;;
  408. sysv5*)
  409. hardcode_libdir_flag_spec=
  410. ;;
  411. uts4*)
  412. hardcode_libdir_flag_spec='-L$libdir'
  413. ;;
  414. *)
  415. ld_shlibs=no
  416. ;;
  417. esac
  418. fi
  419. # Check dynamic linker characteristics
  420. # Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER.
  421. libname_spec='lib$name'
  422. case "$host_os" in
  423. aix3*)
  424. ;;
  425. aix[4-9]*)
  426. ;;
  427. amigaos*)
  428. ;;
  429. beos*)
  430. ;;
  431. bsdi4*)
  432. ;;
  433. cygwin* | mingw* | pw32*)
  434. shrext=.dll
  435. ;;
  436. darwin* | rhapsody*)
  437. shrext=.dylib
  438. ;;
  439. dgux*)
  440. ;;
  441. freebsd1*)
  442. ;;
  443. freebsd*)
  444. ;;
  445. gnu*)
  446. ;;
  447. hpux9* | hpux10* | hpux11*)
  448. case "$host_cpu" in
  449. ia64*)
  450. shrext=.so
  451. ;;
  452. hppa*64*)
  453. shrext=.sl
  454. ;;
  455. *)
  456. shrext=.sl
  457. ;;
  458. esac
  459. ;;
  460. irix5* | irix6* | nonstopux*)
  461. case "$host_os" in
  462. irix5* | nonstopux*)
  463. libsuff= shlibsuff=
  464. ;;
  465. *)
  466. case $LD in
  467. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
  468. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
  469. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
  470. *) libsuff= shlibsuff= ;;
  471. esac
  472. ;;
  473. esac
  474. ;;
  475. linux*oldld* | linux*aout* | linux*coff*)
  476. ;;
  477. linux*)
  478. ;;
  479. netbsd*)
  480. ;;
  481. newsos6)
  482. ;;
  483. nto-qnx)
  484. ;;
  485. openbsd*)
  486. ;;
  487. os2*)
  488. libname_spec='$name'
  489. shrext=.dll
  490. ;;
  491. osf3* | osf4* | osf5*)
  492. ;;
  493. sco3.2v5*)
  494. ;;
  495. solaris*)
  496. ;;
  497. sunos4*)
  498. ;;
  499. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  500. ;;
  501. sysv4*MP*)
  502. ;;
  503. uts4*)
  504. ;;
  505. esac
  506. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  507. escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
  508. shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
  509. escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
  510. sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
  511. # How to pass a linker flag through the compiler.
  512. wl="$escaped_wl"
  513. # Static library suffix (normally "a").
  514. libext="$libext"
  515. # Shared library suffix (normally "so").
  516. shlibext="$shlibext"
  517. # Flag to hardcode \$libdir into a binary during linking.
  518. # This must work even if \$libdir does not exist.
  519. hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
  520. # Whether we need a single -rpath flag with a separated argument.
  521. hardcode_libdir_separator="$hardcode_libdir_separator"
  522. # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  523. # resulting binary.
  524. hardcode_direct="$hardcode_direct"
  525. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  526. # resulting binary.
  527. hardcode_minus_L="$hardcode_minus_L"
  528. EOF