~ubuntu-branches/ubuntu/hardy/gnupg/hardy-updates

« back to all changes in this revision

Viewing changes to scripts/config.rpath

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-12-16 16:57:39 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051216165739-v0m2d1you6hd8jho
Tags: upstream-1.4.2
ImportĀ upstreamĀ versionĀ 1.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Output a system dependent set of variables, describing how to set the
3
3
# run time search path of shared libraries in an executable.
4
4
#
5
 
#   Copyright 1996-2003 Free Software Foundation, Inc.
 
5
#   Copyright 1996-2005 Free Software Foundation, Inc.
6
6
#   Taken from GNU libtool, 2001
7
7
#   Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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.
 
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.
27
12
#
28
13
# The first argument passed to this file is the canonical host specification,
29
14
#    CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
50
35
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
51
36
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
52
37
 
 
38
cc_basename=`echo "$CC" | sed -e 's%^.*/%%'`
 
39
 
53
40
# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
54
41
 
55
42
wl=
60
47
    aix*)
61
48
      wl='-Wl,'
62
49
      ;;
 
50
    darwin*)
 
51
      case "$cc_basename" in
 
52
        xlc*)
 
53
          wl='-Wl,'
 
54
          ;;
 
55
      esac
 
56
      ;;
63
57
    mingw* | pw32* | os2*)
64
58
      ;;
65
59
    hpux9* | hpux10* | hpux11*)
71
65
    newsos6)
72
66
      ;;
73
67
    linux*)
74
 
      case $CC in
75
 
        icc|ecc)
76
 
          wl='-Wl,'
77
 
          ;;
78
 
        ccc)
79
 
          wl='-Wl,'
 
68
      case $cc_basename in
 
69
        icc* | ecc*)
 
70
          wl='-Wl,'
 
71
          ;;
 
72
        pgcc | pgf77 | pgf90)
 
73
          wl='-Wl,'
 
74
          ;;
 
75
        ccc*)
 
76
          wl='-Wl,'
 
77
          ;;
 
78
        como)
 
79
          wl='-lopt='
80
80
          ;;
81
81
      esac
82
82
      ;;
96
96
      ;;
97
97
    sysv4*MP*)
98
98
      ;;
 
99
    unicos*)
 
100
      wl='-Wl,'
 
101
      ;;
99
102
    uts4*)
100
103
      ;;
101
104
  esac
138
141
      # that the semantics of dynamic libraries on AmigaOS, at least up
139
142
      # to version 4, is to share data among multiple programs linked
140
143
      # with the same dynamic library.  Since this doesn't match the
141
 
      # behavior of shared libraries on other platforms, we can use
 
144
      # behavior of shared libraries on other platforms, we cannot use
142
145
      # them.
143
146
      ld_shlibs=no
144
147
      ;;
173
176
    sunos4*)
174
177
      hardcode_direct=yes
175
178
      ;;
 
179
    linux*)
 
180
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
181
        :
 
182
      else
 
183
        ld_shlibs=no
 
184
      fi
 
185
      ;;
176
186
    *)
177
187
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
178
188
        :
266
276
      # see comment about different semantics on the GNU ld section
267
277
      ld_shlibs=no
268
278
      ;;
269
 
    bsdi4*)
 
279
    bsdi[45]*)
270
280
      ;;
271
281
    cygwin* | mingw* | pw32*)
272
282
      # When not using gcc, we currently assume that we are using
277
287
      libext=lib
278
288
      ;;
279
289
    darwin* | rhapsody*)
280
 
      if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
281
 
        hardcode_direct=no
 
290
      hardcode_direct=no
 
291
      if test "$GCC" = yes ; then
 
292
        :
 
293
      else
 
294
        case "$cc_basename" in
 
295
          xlc*)
 
296
            ;;
 
297
          *)
 
298
            ld_shlibs=no
 
299
            ;;
 
300
        esac
282
301
      fi
283
302
      ;;
284
303
    dgux*)
295
314
      hardcode_direct=yes
296
315
      hardcode_minus_L=yes
297
316
      ;;
298
 
    freebsd*)
 
317
    freebsd* | kfreebsd*-gnu | dragonfly*)
299
318
      hardcode_libdir_flag_spec='-R$libdir'
300
319
      hardcode_direct=yes
301
320
      ;;
438
457
    ;;
439
458
  beos*)
440
459
    ;;
441
 
  bsdi4*)
 
460
  bsdi[45]*)
442
461
    ;;
443
462
  cygwin* | mingw* | pw32*)
444
463
    shrext=.dll
450
469
    ;;
451
470
  freebsd1*)
452
471
    ;;
 
472
  kfreebsd*-gnu)
 
473
    ;;
453
474
  freebsd*)
454
475
    ;;
455
476
  gnu*)
486
507
    ;;
487
508
  linux*)
488
509
    ;;
 
510
  knetbsd*-gnu)
 
511
    ;;
489
512
  netbsd*)
490
513
    ;;
491
514
  newsos6)
492
515
    ;;
493
 
  nto-qnx)
 
516
  nto-qnx*)
494
517
    ;;
495
518
  openbsd*)
496
519
    ;;
519
542
shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
520
543
escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
521
544
 
522
 
sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
 
545
LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
523
546
 
524
547
# How to pass a linker flag through the compiler.
525
548
wl="$escaped_wl"