comparison config.rpath @ 806:fa9851e0da4e

Update gettext stuff.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 07 Nov 2012 12:20:24 +0200
parents 1aed5dfaa9ae
children
comparison
equal deleted inserted replaced
805:7a75726aed55 806:fa9851e0da4e
1 #! /bin/sh 1 #! /bin/sh
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 #
9 # This file is free software; the Free Software Foundation gives 9 # This file is free software; the Free Software Foundation gives
10 # unlimited permission to copy and/or distribute it, with or without 10 # unlimited permission to copy and/or distribute it, with or without
45 *) break;; 45 *) break;;
46 esac 46 esac
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
54 wl='-Wl,' 54 wl='-Wl,'
55 else 55 else
62 xlc*) 62 xlc*)
63 wl='-Wl,' 63 wl='-Wl,'
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,'
71 ;; 71 ;;
72 irix5* | irix6* | nonstopux*) 72 irix5* | irix6* | nonstopux*)
73 wl='-Wl,' 73 wl='-Wl,'
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)
83 wl='-Wl,' 89 wl='-Wl,'
84 ;; 90 ;;
98 esac 104 esac
99 ;; 105 ;;
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,'
107 ;; 113 ;;
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*)
121 ;;
122 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
123 wl='-Wl,'
115 ;; 124 ;;
116 unicos*) 125 unicos*)
117 wl='-Wl,' 126 wl='-Wl,'
118 ;; 127 ;;
119 uts4*) 128 uts4*)
120 ;; 129 ;;
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=
128 hardcode_direct=no 137 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++.
136 if test "$GCC" != yes; then 145 if test "$GCC" != yes; then
137 with_gnu_ld=no 146 with_gnu_ld=no
153 # here allows them to be overridden if necessary. 162 # here allows them to be overridden if necessary.
154 # Unlike libtool, we use -rpath here, not --rpath, since the documented 163 # Unlike libtool, we use -rpath here, not --rpath, since the documented
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
162 fi 171 fi
163 ;; 172 ;;
177 : 186 :
178 else 187 else
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'
186 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 195 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
187 : 196 :
188 else 197 else
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
200 ld_shlibs=no 209 ld_shlibs=no
201 fi 210 fi
249 # Neither direct hardcoding nor static linking is supported with a 258 # Neither direct hardcoding nor static linking is supported with a
250 # broken collect2. 259 # broken collect2.
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.
258 aix_use_runtimelinking=no 267 aix_use_runtimelinking=no
259 else 268 else
260 aix_use_runtimelinking=no 269 aix_use_runtimelinking=no
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
268 break 277 break
269 fi 278 fi
278 collect2name=`${CC} -print-prog-name=collect2` 287 collect2name=`${CC} -print-prog-name=collect2`
279 if test -f "$collect2name" && \ 288 if test -f "$collect2name" && \
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
287 hardcode_minus_L=yes 296 hardcode_minus_L=yes
288 hardcode_libdir_flag_spec='-L$libdir' 297 hardcode_libdir_flag_spec='-L$libdir'
321 # see comment about different semantics on the GNU ld section 330 # see comment about different semantics on the GNU ld section
322 ld_shlibs=no 331 ld_shlibs=no
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
330 # no search path for DLLs. 339 # no search path for DLLs.
331 hardcode_libdir_flag_spec=' ' 340 hardcode_libdir_flag_spec=' '
357 ;; 366 ;;
358 freebsd2*) 367 freebsd2*)
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 ;;
366 hpux9*) 375 hpux9*)
367 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
410 hardcode_direct=yes 419 hardcode_direct=yes
411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
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
418 else 427 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
419 case "$host_os" in 428 else
420 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 429 case "$host_os" in
421 hardcode_libdir_flag_spec='-R$libdir' 430 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
422 ;; 431 hardcode_libdir_flag_spec='-R$libdir'
423 *) 432 ;;
424 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 433 *)
425 ;; 434 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
426 esac 435 ;;
436 esac
437 fi
438 else
439 ld_shlibs=no
427 fi 440 fi
428 ;; 441 ;;
429 os2*) 442 os2*)
430 hardcode_libdir_flag_spec='-L$libdir' 443 hardcode_libdir_flag_spec='-L$libdir'
431 hardcode_minus_L=yes 444 hardcode_minus_L=yes
469 sysv4*MP*) 482 sysv4*MP*)
470 if test -d /usr/nec; then 483 if test -d /usr/nec; then
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`'
478 hardcode_libdir_separator=':' 491 hardcode_libdir_separator=':'
479 ;; 492 ;;
485 ;; 498 ;;
486 esac 499 esac
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*)
494 ;; 512 library_names_spec='$libname.a'
495 aix4* | aix5*) 513 ;;
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]*)
502 ;; 524 library_names_spec='$libname$shrext'
503 cygwin* | mingw* | pw32*) 525 ;;
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
521 ia64*) 552 ia64*)
522 shrext=.so 553 shrext=.so
526 ;; 557 ;;
527 *) 558 *)
528 shrext=.sl 559 shrext=.sl
529 ;; 560 ;;
530 esac 561 esac
531 ;; 562 library_names_spec='$libname$shrext'
532 interix3*) 563 ;;
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=
538 ;; 572 ;;
539 *) 573 *)
546 ;; 580 ;;
547 esac 581 esac
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
589 641
590 # How to pass a linker flag through the compiler. 642 # How to pass a linker flag through the compiler.
593 # Static library suffix (normally "a"). 645 # Static library suffix (normally "a").
594 libext="$libext" 646 libext="$libext"
595 647
596 # Shared library suffix (normally "so"). 648 # Shared library suffix (normally "so").
597 shlibext="$shlibext" 649 shlibext="$shlibext"
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"
598 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"
602 660