diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-07 15:32:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-07 15:32:41 +0000 |
commit | 0169892db251df639bf53e0014d0d74e8f748d5c (patch) | |
tree | 043e2449dd0fe0c8b95f7e837e066eb98c2c056c /config.rpath | |
parent | e3135a87b4b6b8df0296919ae70c63f2460aacac (diff) | |
download | gnunet-ext-0169892db251df639bf53e0014d0d74e8f748d5c.tar.gz gnunet-ext-0169892db251df639bf53e0014d0d74e8f748d5c.zip |
-updating build system
Diffstat (limited to 'config.rpath')
-rwxr-xr-x | config.rpath | 132 |
1 files changed, 95 insertions, 37 deletions
diff --git a/config.rpath b/config.rpath index c492a93..17298f2 100755 --- a/config.rpath +++ b/config.rpath | |||
@@ -2,7 +2,7 @@ | |||
2 | # Output a system dependent set of variables, describing how to set the | 2 | # Output a system dependent set of variables, describing how to set the |
3 | # run time search path of shared libraries in an executable. | 3 | # run time search path of shared libraries in an executable. |
4 | # | 4 | # |
5 | # Copyright 1996-2006 Free Software Foundation, Inc. | 5 | # Copyright 1996-2010 Free Software Foundation, Inc. |
6 | # Taken from GNU libtool, 2001 | 6 | # Taken from GNU libtool, 2001 |
7 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 7 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
8 | # | 8 | # |
@@ -47,7 +47,7 @@ for cc_temp in $CC""; do | |||
47 | done | 47 | done |
48 | cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` | 48 | cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` |
49 | 49 | ||
50 | # Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. | 50 | # Code taken from libtool.m4's _LT_COMPILER_PIC. |
51 | 51 | ||
52 | wl= | 52 | wl= |
53 | if test "$GCC" = yes; then | 53 | if test "$GCC" = yes; then |
@@ -64,7 +64,7 @@ else | |||
64 | ;; | 64 | ;; |
65 | esac | 65 | esac |
66 | ;; | 66 | ;; |
67 | mingw* | pw32* | os2*) | 67 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
68 | ;; | 68 | ;; |
69 | hpux9* | hpux10* | hpux11*) | 69 | hpux9* | hpux10* | hpux11*) |
70 | wl='-Wl,' | 70 | wl='-Wl,' |
@@ -74,9 +74,15 @@ else | |||
74 | ;; | 74 | ;; |
75 | newsos6) | 75 | newsos6) |
76 | ;; | 76 | ;; |
77 | linux*) | 77 | linux* | k*bsd*-gnu) |
78 | case $cc_basename in | 78 | case $cc_basename in |
79 | icc* | ecc*) | 79 | ecc*) |
80 | wl='-Wl,' | ||
81 | ;; | ||
82 | icc* | ifort*) | ||
83 | wl='-Wl,' | ||
84 | ;; | ||
85 | lf95*) | ||
80 | wl='-Wl,' | 86 | wl='-Wl,' |
81 | ;; | 87 | ;; |
82 | pgcc | pgf77 | pgf90) | 88 | pgcc | pgf77 | pgf90) |
@@ -100,7 +106,7 @@ else | |||
100 | osf3* | osf4* | osf5*) | 106 | osf3* | osf4* | osf5*) |
101 | wl='-Wl,' | 107 | wl='-Wl,' |
102 | ;; | 108 | ;; |
103 | sco3.2v5*) | 109 | rdos*) |
104 | ;; | 110 | ;; |
105 | solaris*) | 111 | solaris*) |
106 | wl='-Wl,' | 112 | wl='-Wl,' |
@@ -108,11 +114,14 @@ else | |||
108 | sunos4*) | 114 | sunos4*) |
109 | wl='-Qoption ld ' | 115 | wl='-Qoption ld ' |
110 | ;; | 116 | ;; |
111 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 117 | sysv4 | sysv4.2uw2* | sysv4.3*) |
112 | wl='-Wl,' | 118 | wl='-Wl,' |
113 | ;; | 119 | ;; |
114 | sysv4*MP*) | 120 | sysv4*MP*) |
115 | ;; | 121 | ;; |
122 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
123 | wl='-Wl,' | ||
124 | ;; | ||
116 | unicos*) | 125 | unicos*) |
117 | wl='-Wl,' | 126 | wl='-Wl,' |
118 | ;; | 127 | ;; |
@@ -121,7 +130,7 @@ else | |||
121 | esac | 130 | esac |
122 | fi | 131 | fi |
123 | 132 | ||
124 | # Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. | 133 | # Code taken from libtool.m4's _LT_LINKER_SHLIBS. |
125 | 134 | ||
126 | hardcode_libdir_flag_spec= | 135 | hardcode_libdir_flag_spec= |
127 | hardcode_libdir_separator= | 136 | hardcode_libdir_separator= |
@@ -129,7 +138,7 @@ hardcode_direct=no | |||
129 | hardcode_minus_L=no | 138 | hardcode_minus_L=no |
130 | 139 | ||
131 | case "$host_os" in | 140 | case "$host_os" in |
132 | cygwin* | mingw* | pw32*) | 141 | cygwin* | mingw* | pw32* | cegcc*) |
133 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | 142 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
134 | # When not using gcc, we currently assume that we are using | 143 | # When not using gcc, we currently assume that we are using |
135 | # Microsoft Visual C++. | 144 | # Microsoft Visual C++. |
@@ -155,7 +164,7 @@ if test "$with_gnu_ld" = yes; then | |||
155 | # option of GNU ld is called -rpath, not --rpath. | 164 | # option of GNU ld is called -rpath, not --rpath. |
156 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 165 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
157 | case "$host_os" in | 166 | case "$host_os" in |
158 | aix3* | aix4* | aix5*) | 167 | aix[3-9]*) |
159 | # On AIX/PPC, the GNU linker is very broken | 168 | # On AIX/PPC, the GNU linker is very broken |
160 | if test "$host_cpu" != ia64; then | 169 | if test "$host_cpu" != ia64; then |
161 | ld_shlibs=no | 170 | ld_shlibs=no |
@@ -179,7 +188,7 @@ if test "$with_gnu_ld" = yes; then | |||
179 | ld_shlibs=no | 188 | ld_shlibs=no |
180 | fi | 189 | fi |
181 | ;; | 190 | ;; |
182 | cygwin* | mingw* | pw32*) | 191 | cygwin* | mingw* | pw32* | cegcc*) |
183 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 192 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
184 | # no search path for DLLs. | 193 | # no search path for DLLs. |
185 | hardcode_libdir_flag_spec='-L$libdir' | 194 | hardcode_libdir_flag_spec='-L$libdir' |
@@ -189,11 +198,11 @@ if test "$with_gnu_ld" = yes; then | |||
189 | ld_shlibs=no | 198 | ld_shlibs=no |
190 | fi | 199 | fi |
191 | ;; | 200 | ;; |
192 | interix3*) | 201 | interix[3-9]*) |
193 | hardcode_direct=no | 202 | hardcode_direct=no |
194 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 203 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
195 | ;; | 204 | ;; |
196 | linux*) | 205 | gnu* | linux* | k*bsd*-gnu) |
197 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 206 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
198 | : | 207 | : |
199 | else | 208 | else |
@@ -251,7 +260,7 @@ else | |||
251 | hardcode_direct=unsupported | 260 | hardcode_direct=unsupported |
252 | fi | 261 | fi |
253 | ;; | 262 | ;; |
254 | aix4* | aix5*) | 263 | aix[4-9]*) |
255 | if test "$host_cpu" = ia64; then | 264 | if test "$host_cpu" = ia64; then |
256 | # On IA64, the linker does run time linking by default, so we don't | 265 | # On IA64, the linker does run time linking by default, so we don't |
257 | # have to do anything special. | 266 | # have to do anything special. |
@@ -261,7 +270,7 @@ else | |||
261 | # Test if we are trying to use run time linking or normal | 270 | # Test if we are trying to use run time linking or normal |
262 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 271 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
263 | # need to do runtime linking. | 272 | # need to do runtime linking. |
264 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 273 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
265 | for ld_flag in $LDFLAGS; do | 274 | for ld_flag in $LDFLAGS; do |
266 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 275 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
267 | aix_use_runtimelinking=yes | 276 | aix_use_runtimelinking=yes |
@@ -280,7 +289,7 @@ else | |||
280 | strings "$collect2name" | grep resolve_lib_name >/dev/null | 289 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
281 | then | 290 | then |
282 | # We have reworked collect2 | 291 | # We have reworked collect2 |
283 | hardcode_direct=yes | 292 | : |
284 | else | 293 | else |
285 | # We have old collect2 | 294 | # We have old collect2 |
286 | hardcode_direct=unsupported | 295 | hardcode_direct=unsupported |
@@ -323,7 +332,7 @@ else | |||
323 | ;; | 332 | ;; |
324 | bsdi[45]*) | 333 | bsdi[45]*) |
325 | ;; | 334 | ;; |
326 | cygwin* | mingw* | pw32*) | 335 | cygwin* | mingw* | pw32* | cegcc*) |
327 | # When not using gcc, we currently assume that we are using | 336 | # When not using gcc, we currently assume that we are using |
328 | # Microsoft Visual C++. | 337 | # Microsoft Visual C++. |
329 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 338 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
@@ -359,7 +368,7 @@ else | |||
359 | hardcode_direct=yes | 368 | hardcode_direct=yes |
360 | hardcode_minus_L=yes | 369 | hardcode_minus_L=yes |
361 | ;; | 370 | ;; |
362 | freebsd* | kfreebsd*-gnu | dragonfly*) | 371 | freebsd* | dragonfly*) |
363 | hardcode_libdir_flag_spec='-R$libdir' | 372 | hardcode_libdir_flag_spec='-R$libdir' |
364 | hardcode_direct=yes | 373 | hardcode_direct=yes |
365 | ;; | 374 | ;; |
@@ -412,18 +421,22 @@ else | |||
412 | hardcode_libdir_separator=: | 421 | hardcode_libdir_separator=: |
413 | ;; | 422 | ;; |
414 | openbsd*) | 423 | openbsd*) |
415 | hardcode_direct=yes | 424 | if test -f /usr/libexec/ld.so; then |
416 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 425 | hardcode_direct=yes |
417 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 426 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
427 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
428 | else | ||
429 | case "$host_os" in | ||
430 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
431 | hardcode_libdir_flag_spec='-R$libdir' | ||
432 | ;; | ||
433 | *) | ||
434 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
435 | ;; | ||
436 | esac | ||
437 | fi | ||
418 | else | 438 | else |
419 | case "$host_os" in | 439 | ld_shlibs=no |
420 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
421 | hardcode_libdir_flag_spec='-R$libdir' | ||
422 | ;; | ||
423 | *) | ||
424 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
425 | ;; | ||
426 | esac | ||
427 | fi | 440 | fi |
428 | ;; | 441 | ;; |
429 | os2*) | 442 | os2*) |
@@ -471,7 +484,7 @@ else | |||
471 | ld_shlibs=yes | 484 | ld_shlibs=yes |
472 | fi | 485 | fi |
473 | ;; | 486 | ;; |
474 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | 487 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
475 | ;; | 488 | ;; |
476 | sysv5* | sco3.2v5* | sco5v6*) | 489 | sysv5* | sco3.2v5* | sco5v6*) |
477 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | 490 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
@@ -487,34 +500,52 @@ else | |||
487 | fi | 500 | fi |
488 | 501 | ||
489 | # Check dynamic linker characteristics | 502 | # Check dynamic linker characteristics |
490 | # Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. | 503 | # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. |
504 | # Unlike libtool.m4, here we don't care about _all_ names of the library, but | ||
505 | # only about the one the linker finds when passed -lNAME. This is the last | ||
506 | # element of library_names_spec in libtool.m4, or possibly two of them if the | ||
507 | # linker has special search rules. | ||
508 | library_names_spec= # the last element of library_names_spec in libtool.m4 | ||
491 | libname_spec='lib$name' | 509 | libname_spec='lib$name' |
492 | case "$host_os" in | 510 | case "$host_os" in |
493 | aix3*) | 511 | aix3*) |
512 | library_names_spec='$libname.a' | ||
494 | ;; | 513 | ;; |
495 | aix4* | aix5*) | 514 | aix[4-9]*) |
515 | library_names_spec='$libname$shrext' | ||
496 | ;; | 516 | ;; |
497 | amigaos*) | 517 | amigaos*) |
518 | library_names_spec='$libname.a' | ||
498 | ;; | 519 | ;; |
499 | beos*) | 520 | beos*) |
521 | library_names_spec='$libname$shrext' | ||
500 | ;; | 522 | ;; |
501 | bsdi[45]*) | 523 | bsdi[45]*) |
524 | library_names_spec='$libname$shrext' | ||
502 | ;; | 525 | ;; |
503 | cygwin* | mingw* | pw32*) | 526 | cygwin* | mingw* | pw32* | cegcc*) |
504 | shrext=.dll | 527 | shrext=.dll |
528 | library_names_spec='$libname.dll.a $libname.lib' | ||
505 | ;; | 529 | ;; |
506 | darwin* | rhapsody*) | 530 | darwin* | rhapsody*) |
507 | shrext=.dylib | 531 | shrext=.dylib |
532 | library_names_spec='$libname$shrext' | ||
508 | ;; | 533 | ;; |
509 | dgux*) | 534 | dgux*) |
535 | library_names_spec='$libname$shrext' | ||
510 | ;; | 536 | ;; |
511 | freebsd1*) | 537 | freebsd1*) |
512 | ;; | 538 | ;; |
513 | kfreebsd*-gnu) | ||
514 | ;; | ||
515 | freebsd* | dragonfly*) | 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 | ||
516 | ;; | 546 | ;; |
517 | gnu*) | 547 | gnu*) |
548 | library_names_spec='$libname$shrext' | ||
518 | ;; | 549 | ;; |
519 | hpux9* | hpux10* | hpux11*) | 550 | hpux9* | hpux10* | hpux11*) |
520 | case $host_cpu in | 551 | case $host_cpu in |
@@ -528,10 +559,13 @@ case "$host_os" in | |||
528 | shrext=.sl | 559 | shrext=.sl |
529 | ;; | 560 | ;; |
530 | esac | 561 | esac |
562 | library_names_spec='$libname$shrext' | ||
531 | ;; | 563 | ;; |
532 | interix3*) | 564 | interix[3-9]*) |
565 | library_names_spec='$libname$shrext' | ||
533 | ;; | 566 | ;; |
534 | irix5* | irix6* | nonstopux*) | 567 | irix5* | irix6* | nonstopux*) |
568 | library_names_spec='$libname$shrext' | ||
535 | case "$host_os" in | 569 | case "$host_os" in |
536 | irix5* | nonstopux*) | 570 | irix5* | nonstopux*) |
537 | libsuff= shlibsuff= | 571 | libsuff= shlibsuff= |
@@ -548,41 +582,59 @@ case "$host_os" in | |||
548 | ;; | 582 | ;; |
549 | linux*oldld* | linux*aout* | linux*coff*) | 583 | linux*oldld* | linux*aout* | linux*coff*) |
550 | ;; | 584 | ;; |
551 | linux*) | 585 | linux* | k*bsd*-gnu) |
586 | library_names_spec='$libname$shrext' | ||
552 | ;; | 587 | ;; |
553 | knetbsd*-gnu) | 588 | knetbsd*-gnu) |
589 | library_names_spec='$libname$shrext' | ||
554 | ;; | 590 | ;; |
555 | netbsd*) | 591 | netbsd*) |
592 | library_names_spec='$libname$shrext' | ||
556 | ;; | 593 | ;; |
557 | newsos6) | 594 | newsos6) |
595 | library_names_spec='$libname$shrext' | ||
558 | ;; | 596 | ;; |
559 | nto-qnx*) | 597 | nto-qnx*) |
598 | library_names_spec='$libname$shrext' | ||
560 | ;; | 599 | ;; |
561 | openbsd*) | 600 | openbsd*) |
601 | library_names_spec='$libname$shrext$versuffix' | ||
562 | ;; | 602 | ;; |
563 | os2*) | 603 | os2*) |
564 | libname_spec='$name' | 604 | libname_spec='$name' |
565 | shrext=.dll | 605 | shrext=.dll |
606 | library_names_spec='$libname.a' | ||
566 | ;; | 607 | ;; |
567 | osf3* | osf4* | osf5*) | 608 | osf3* | osf4* | osf5*) |
609 | library_names_spec='$libname$shrext' | ||
610 | ;; | ||
611 | rdos*) | ||
568 | ;; | 612 | ;; |
569 | solaris*) | 613 | solaris*) |
614 | library_names_spec='$libname$shrext' | ||
570 | ;; | 615 | ;; |
571 | sunos4*) | 616 | sunos4*) |
617 | library_names_spec='$libname$shrext$versuffix' | ||
572 | ;; | 618 | ;; |
573 | sysv4 | sysv4.3*) | 619 | sysv4 | sysv4.3*) |
620 | library_names_spec='$libname$shrext' | ||
574 | ;; | 621 | ;; |
575 | sysv4*MP*) | 622 | sysv4*MP*) |
623 | library_names_spec='$libname$shrext' | ||
576 | ;; | 624 | ;; |
577 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 625 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
626 | library_names_spec='$libname$shrext' | ||
578 | ;; | 627 | ;; |
579 | uts4*) | 628 | uts4*) |
629 | library_names_spec='$libname$shrext' | ||
580 | ;; | 630 | ;; |
581 | esac | 631 | esac |
582 | 632 | ||
583 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | 633 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
584 | escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` | 634 | escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` |
585 | shlibext=`echo "$shrext" | sed -e 's,^\.,,'` | 635 | shlibext=`echo "$shrext" | sed -e 's,^\.,,'` |
636 | escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
637 | escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
586 | escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | 638 | escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` |
587 | 639 | ||
588 | LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF | 640 | LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF |
@@ -596,6 +648,12 @@ libext="$libext" | |||
596 | # Shared library suffix (normally "so"). | 648 | # Shared library suffix (normally "so"). |
597 | shlibext="$shlibext" | 649 | shlibext="$shlibext" |
598 | 650 | ||
651 | # Format of library name prefix. | ||
652 | libname_spec="$escaped_libname_spec" | ||
653 | |||
654 | # Library names that the linker finds when passed -lNAME. | ||
655 | library_names_spec="$escaped_library_names_spec" | ||
656 | |||
599 | # Flag to hardcode \$libdir into a binary during linking. | 657 | # Flag to hardcode \$libdir into a binary during linking. |
600 | # This must work even if \$libdir does not exist. | 658 | # This must work even if \$libdir does not exist. |
601 | hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" | 659 | hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" |