~ubuntu-branches/ubuntu/precise/wget/precise-proposed

« back to all changes in this revision

Viewing changes to build-aux/config.rpath

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-10-19 00:00:09 UTC
  • mfrom: (2.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20111019000009-8p33w3wz4b1rdri0
Tags: 1.13-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add wget-udeb to ship wget.gnu as alternative to busybox wget
    implementation.
  - Depend on libssl-dev 0.9.8k-7ubuntu4 (LP: #503339)
* Dropped changes, superseded in Debian:
  - Keep build dependencies in main:
    + debian/control: remove info2man build-dep
    + debian/patches/series: disable wget-infopod_generated_manpage
  - Mark wget Multi-Arch: foreign, so packages that aren't of the same arch
    can depend on it.
* Pass --with-ssl=openssl; we don't want to use gnutls, there's no udeb for
  it.
* Add a second build pass for the udeb, so we can build without libidn.

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, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
6
 
#   2005, 2006, 2007, 2009 Free Software Foundation, Inc.
 
5
#   Copyright 1996-2011 Free Software Foundation, Inc.
7
6
#   Taken from GNU libtool, 2001
8
7
#   Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9
8
#
48
47
done
49
48
cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
50
49
 
51
 
# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
 
50
# Code taken from libtool.m4's _LT_COMPILER_PIC.
52
51
 
53
52
wl=
54
53
if test "$GCC" = yes; then
58
57
    aix*)
59
58
      wl='-Wl,'
60
59
      ;;
61
 
    darwin*)
62
 
      case $cc_basename in
63
 
        xlc*)
64
 
          wl='-Wl,'
65
 
          ;;
66
 
      esac
67
 
      ;;
68
 
    mingw* | cygwin* | pw32* | os2*)
 
60
    mingw* | cygwin* | pw32* | os2* | cegcc*)
69
61
      ;;
70
62
    hpux9* | hpux10* | hpux11*)
71
63
      wl='-Wl,'
73
65
    irix5* | irix6* | nonstopux*)
74
66
      wl='-Wl,'
75
67
      ;;
76
 
    newsos6)
77
 
      ;;
78
 
    linux* | k*bsd*-gnu)
 
68
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
79
69
      case $cc_basename in
80
 
        icc* | ecc*)
81
 
          wl='-Wl,'
82
 
          ;;
83
 
        pgcc | pgf77 | pgf90)
 
70
        ecc*)
 
71
          wl='-Wl,'
 
72
          ;;
 
73
        icc* | ifort*)
 
74
          wl='-Wl,'
 
75
          ;;
 
76
        lf95*)
 
77
          wl='-Wl,'
 
78
          ;;
 
79
        nagfor*)
 
80
          wl='-Wl,-Wl,,'
 
81
          ;;
 
82
        pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
84
83
          wl='-Wl,'
85
84
          ;;
86
85
        ccc*)
87
86
          wl='-Wl,'
88
87
          ;;
 
88
        xl* | bgxl* | bgf* | mpixl*)
 
89
          wl='-Wl,'
 
90
          ;;
89
91
        como)
90
92
          wl='-lopt='
91
93
          ;;
92
94
        *)
93
95
          case `$CC -V 2>&1 | sed 5q` in
 
96
            *Sun\ F* | *Sun*Fortran*)
 
97
              wl=
 
98
              ;;
94
99
            *Sun\ C*)
95
100
              wl='-Wl,'
96
101
              ;;
98
103
          ;;
99
104
      esac
100
105
      ;;
 
106
    newsos6)
 
107
      ;;
 
108
    *nto* | *qnx*)
 
109
      ;;
101
110
    osf3* | osf4* | osf5*)
102
111
      wl='-Wl,'
103
112
      ;;
104
113
    rdos*)
105
114
      ;;
106
115
    solaris*)
107
 
      wl='-Wl,'
 
116
      case $cc_basename in
 
117
        f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
118
          wl='-Qoption ld '
 
119
          ;;
 
120
        *)
 
121
          wl='-Wl,'
 
122
          ;;
 
123
      esac
108
124
      ;;
109
125
    sunos4*)
110
126
      wl='-Qoption ld '
125
141
  esac
126
142
fi
127
143
 
128
 
# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.
 
144
# Code taken from libtool.m4's _LT_LINKER_SHLIBS.
129
145
 
130
146
hardcode_libdir_flag_spec=
131
147
hardcode_libdir_separator=
133
149
hardcode_minus_L=no
134
150
 
135
151
case "$host_os" in
136
 
  cygwin* | mingw* | pw32*)
 
152
  cygwin* | mingw* | pw32* | cegcc*)
137
153
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
138
154
    # When not using gcc, we currently assume that we are using
139
155
    # Microsoft Visual C++.
159
175
  # option of GNU ld is called -rpath, not --rpath.
160
176
  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
161
177
  case "$host_os" in
162
 
    aix3* | aix4* | aix5*)
 
178
    aix[3-9]*)
163
179
      # On AIX/PPC, the GNU linker is very broken
164
180
      if test "$host_cpu" != ia64; then
165
181
        ld_shlibs=no
166
182
      fi
167
183
      ;;
168
184
    amigaos*)
169
 
      hardcode_libdir_flag_spec='-L$libdir'
170
 
      hardcode_minus_L=yes
171
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
172
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
173
 
      # to version 4, is to share data among multiple programs linked
174
 
      # with the same dynamic library.  Since this doesn't match the
175
 
      # behavior of shared libraries on other platforms, we cannot use
176
 
      # them.
177
 
      ld_shlibs=no
 
185
      case "$host_cpu" in
 
186
        powerpc)
 
187
          ;;
 
188
        m68k)
 
189
          hardcode_libdir_flag_spec='-L$libdir'
 
190
          hardcode_minus_L=yes
 
191
          ;;
 
192
      esac
178
193
      ;;
179
194
    beos*)
180
195
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
183
198
        ld_shlibs=no
184
199
      fi
185
200
      ;;
186
 
    cygwin* | mingw* | pw32*)
 
201
    cygwin* | mingw* | pw32* | cegcc*)
187
202
      # hardcode_libdir_flag_spec is actually meaningless, as there is
188
203
      # no search path for DLLs.
189
204
      hardcode_libdir_flag_spec='-L$libdir'
193
208
        ld_shlibs=no
194
209
      fi
195
210
      ;;
 
211
    haiku*)
 
212
      ;;
196
213
    interix[3-9]*)
197
214
      hardcode_direct=no
198
215
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
199
216
      ;;
200
 
    gnu* | linux* | k*bsd*-gnu)
 
217
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
201
218
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
202
219
        :
203
220
      else
255
272
        hardcode_direct=unsupported
256
273
      fi
257
274
      ;;
258
 
    aix4* | aix5*)
 
275
    aix[4-9]*)
259
276
      if test "$host_cpu" = ia64; then
260
277
        # On IA64, the linker does run time linking by default, so we don't
261
278
        # have to do anything special.
265
282
        # Test if we are trying to use run time linking or normal
266
283
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
267
284
        # need to do runtime linking.
268
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
285
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
269
286
          for ld_flag in $LDFLAGS; do
270
287
            if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
271
288
              aix_use_runtimelinking=yes
320
337
      fi
321
338
      ;;
322
339
    amigaos*)
323
 
      hardcode_libdir_flag_spec='-L$libdir'
324
 
      hardcode_minus_L=yes
325
 
      # see comment about different semantics on the GNU ld section
326
 
      ld_shlibs=no
 
340
      case "$host_cpu" in
 
341
        powerpc)
 
342
          ;;
 
343
        m68k)
 
344
          hardcode_libdir_flag_spec='-L$libdir'
 
345
          hardcode_minus_L=yes
 
346
          ;;
 
347
      esac
327
348
      ;;
328
349
    bsdi[45]*)
329
350
      ;;
330
 
    cygwin* | mingw* | pw32*)
 
351
    cygwin* | mingw* | pw32* | cegcc*)
331
352
      # When not using gcc, we currently assume that we are using
332
353
      # Microsoft Visual C++.
333
354
      # hardcode_libdir_flag_spec is actually meaningless, as there is
337
358
      ;;
338
359
    darwin* | rhapsody*)
339
360
      hardcode_direct=no
340
 
      if test "$GCC" = yes ; then
 
361
      if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then
341
362
        :
342
363
      else
343
 
        case $cc_basename in
344
 
          xlc*)
345
 
            ;;
346
 
          *)
347
 
            ld_shlibs=no
348
 
            ;;
349
 
        esac
 
364
        ld_shlibs=no
350
365
      fi
351
366
      ;;
352
367
    dgux*)
353
368
      hardcode_libdir_flag_spec='-L$libdir'
354
369
      ;;
355
 
    freebsd1*)
356
 
      ld_shlibs=no
357
 
      ;;
358
370
    freebsd2.2*)
359
371
      hardcode_libdir_flag_spec='-R$libdir'
360
372
      hardcode_direct=yes
415
427
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
416
428
      hardcode_libdir_separator=:
417
429
      ;;
 
430
    *nto* | *qnx*)
 
431
      ;;
418
432
    openbsd*)
419
433
      if test -f /usr/libexec/ld.so; then
420
434
        hardcode_direct=yes
495
509
fi
496
510
 
497
511
# Check dynamic linker characteristics
498
 
# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER.
 
512
# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER.
499
513
# Unlike libtool.m4, here we don't care about _all_ names of the library, but
500
514
# only about the one the linker finds when passed -lNAME. This is the last
501
515
# element of library_names_spec in libtool.m4, or possibly two of them if the
506
520
  aix3*)
507
521
    library_names_spec='$libname.a'
508
522
    ;;
509
 
  aix4* | aix5*)
 
523
  aix[4-9]*)
510
524
    library_names_spec='$libname$shrext'
511
525
    ;;
512
526
  amigaos*)
513
 
    library_names_spec='$libname.a'
 
527
    case "$host_cpu" in
 
528
      powerpc*)
 
529
        library_names_spec='$libname$shrext' ;;
 
530
      m68k)
 
531
        library_names_spec='$libname.a' ;;
 
532
    esac
514
533
    ;;
515
534
  beos*)
516
535
    library_names_spec='$libname$shrext'
518
537
  bsdi[45]*)
519
538
    library_names_spec='$libname$shrext'
520
539
    ;;
521
 
  cygwin* | mingw* | pw32*)
 
540
  cygwin* | mingw* | pw32* | cegcc*)
522
541
    shrext=.dll
523
542
    library_names_spec='$libname.dll.a $libname.lib'
524
543
    ;;
529
548
  dgux*)
530
549
    library_names_spec='$libname$shrext'
531
550
    ;;
532
 
  freebsd1*)
533
 
    ;;
534
551
  freebsd* | dragonfly*)
535
552
    case "$host_os" in
536
553
      freebsd[123]*)
542
559
  gnu*)
543
560
    library_names_spec='$libname$shrext'
544
561
    ;;
 
562
  haiku*)
 
563
    library_names_spec='$libname$shrext'
 
564
    ;;
545
565
  hpux9* | hpux10* | hpux11*)
546
566
    case $host_cpu in
547
567
      ia64*)
577
597
    ;;
578
598
  linux*oldld* | linux*aout* | linux*coff*)
579
599
    ;;
580
 
  linux* | k*bsd*-gnu)
 
600
  linux* | k*bsd*-gnu | kopensolaris*-gnu)
581
601
    library_names_spec='$libname$shrext'
582
602
    ;;
583
603
  knetbsd*-gnu)
589
609
  newsos6)
590
610
    library_names_spec='$libname$shrext'
591
611
    ;;
592
 
  nto-qnx*)
 
612
  *nto* | *qnx*)
593
613
    library_names_spec='$libname$shrext'
594
614
    ;;
595
615
  openbsd*)
620
640
  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
621
641
    library_names_spec='$libname$shrext'
622
642
    ;;
 
643
  tpf*)
 
644
    library_names_spec='$libname$shrext'
 
645
    ;;
623
646
  uts4*)
624
647
    library_names_spec='$libname$shrext'
625
648
    ;;